yo-moss-ai 0.0.2 → 0.0.3
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/dist/assets/face-detect-BP1Ar9Ko.js +41 -0
- package/dist/assets/index-BAYktGYI.js +45 -0
- package/dist/assets/{index-D4vYjZYJ.css → index-lCBfqkmu.css} +1 -1
- package/dist/earth-propulsion.webp +0 -0
- package/dist/index.html +2 -2
- package/dist/models/mediapipe/blaze_face_full_range.tflite +0 -0
- package/dist/models/mediapipe/blaze_face_short_range.tflite +0 -0
- package/dist/models/mediapipe/wasm/vision_wasm_internal.js +8841 -0
- package/dist/models/mediapipe/wasm/vision_wasm_internal.wasm +0 -0
- package/dist/models/mediapipe/wasm/vision_wasm_nosimd_internal.js +8832 -0
- package/dist/models/mediapipe/wasm/vision_wasm_nosimd_internal.wasm +0 -0
- package/dist-server/camera.mjs +1 -1
- package/dist-server/ffmpeg.mjs +1 -1
- package/dist-server/index.mjs +1 -1
- package/package.json +2 -1
- package/dist/assets/index-Cn2y0c-u.js +0 -45
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var wt=typeof self<"u"?self:{};function Oa(e,t){e:{for(var r=["CLOSURE_FLAGS"],n=wt,i=0;i<r.length;i++)if((n=n[r[i]])==null){r=null;break e}r=n}return(e=r&&r[e])!=null?e:t}function P(e,t){e=e.split(".");for(var r,n=wt;e.length&&(r=e.shift());)e.length||t===void 0?n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={}:n[r]=t}function pt(){throw Error("Invalid UTF8")}function fs(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}var Fn,Q2,Rr=void 0,e1=typeof TextDecoder<"u",t1=typeof TextEncoder<"u";function Da(e){if(t1)e=(Q2||(Q2=new TextEncoder)).encode(e);else{let r=0,n=new Uint8Array(3*e.length);for(let i=0;i<e.length;i++){var t=e.charCodeAt(i);if(t<128)n[r++]=t;else{if(t<2048)n[r++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&i<e.length){let s=e.charCodeAt(++i);if(s>=56320&&s<=57343){t=1024*(t-55296)+s-56320+65536,n[r++]=t>>18|240,n[r++]=t>>12&63|128,n[r++]=t>>6&63|128,n[r++]=63&t|128;continue}i--}t=65533}n[r++]=t>>12|224,n[r++]=t>>6&63|128}n[r++]=63&t|128}}e=r===n.length?n:n.subarray(0,r)}return e}function Pa(e){wt.setTimeout(()=>{throw e},0)}var r1=Oa(610401301,!1),ds=Oa(748402147,!0);function ps(){var e=wt.navigator;return e&&(e=e.userAgent)?e:""}var jn,gs=wt.navigator;function an(e){return an[" "](e),e}jn=gs&&gs.userAgentData||null,an[" "]=function(){};var $a={},ar=null;function n1(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):"=.".indexOf(e[t-1])!=-1&&(r="=.".indexOf(e[t-2])!=-1?r-2:r-1);var n=new Uint8Array(r),i=0;return(function(s,a){function h(f){for(;o<s.length;){let u=s.charAt(o++),c=ar[u];if(c!=null)return c;if(!/^[\s\xa0]*$/.test(u))throw Error("Unknown base64 encoding at char: "+u)}return f}Ua();for(var o=0;;){let f=h(-1),u=h(0),c=h(64),l=h(64);if(l===64&&f===-1)break;a(f<<2|u>>4),c!=64&&(a(u<<4&240|c>>2),l!=64&&a(c<<6&192|l))}})(e,function(s){n[i++]=s}),i!==r?n.subarray(0,i):n}function Ua(){if(!ar){ar={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){let n=e.concat(t[r].split(""));$a[r]=n;for(let i=0;i<n.length;i++){let s=n[i];ar[s]===void 0&&(ar[s]=i)}}}}var i1=typeof Uint8Array<"u",Ba=!(!(r1&&jn&&jn.brands.length>0)&&(ps().indexOf("Trident")!=-1||ps().indexOf("MSIE")!=-1))&&typeof btoa=="function",ms=/[-_.]/g,s1={"-":"+",_:"/",".":"="};function a1(e){return s1[e]||""}function Ga(e){if(!Ba)return n1(e);e=ms.test(e)?e.replace(ms,a1):e,e=atob(e);var t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function fi(e){return i1&&e!=null&&e instanceof Uint8Array}var Dt={};function bt(){return o1||(o1=new Me(null,Dt))}function di(e){ja(Dt);var t=e.g;return(t=t==null||fi(t)?t:typeof t=="string"?Ga(t):null)==null?t:e.g=t}var o1,Me=class{h(){return new Uint8Array(di(this)||0)}constructor(e,t){if(ja(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}};function ja(e){if(e!==Dt)throw Error("illegal external caller")}function Va(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}var h1=void 0;function cr(e){return Va(e=Error(e),"warning"),e}function Pt(e,t){if(e!=null){var r=h1??(h1={}),n=r[e]||0;n>=t||(r[e]=n+1,Va(e=Error(),"incident"),Pa(e))}}function kt(){return typeof BigInt=="function"}var Wt=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Ue(e,t,r=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?r&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t}var ct,u1=Ue("jas",void 0,!0),vs=Ue(void 0,"0di"),tr=Ue(void 0,"1oa"),pe=Ue(void 0,Symbol()),c1=Ue(void 0,"0ub"),l1=Ue(void 0,"0ubs"),Vn=Ue(void 0,"0ubsb"),f1=Ue(void 0,"0actk"),$t=Ue("m_m","kb",!0),_s=Ue(),Ha={Va:{value:0,configurable:!0,writable:!0,enumerable:!1}},Ka=Object.defineProperties,m=Wt?u1:"Va",ys=[];function mr(e,t){Wt||m in e||Ka(e,Ha),e[m]|=t}function q(e,t){Wt||m in e||Ka(e,Ha),e[m]=t}function vr(e){return mr(e,34),e}function lr(e){return mr(e,8192),e}q(ys,7),ct=Object.freeze(ys);var Ut={};function le(e,t){return t===void 0?e.h!==Tt&&!!(2&e.A[m]):!!(2&t)&&e.h!==Tt}var Tt={};function on(e,t){if(e!=null){if(typeof e=="string")e=e?new Me(e,Dt):bt();else if(e.constructor!==Me)if(fi(e))e=e.length?new Me(new Uint8Array(e),Dt):bt();else{if(!t)throw Error();e=void 0}}return e}class Es{constructor(t,r,n){this.g=t,this.h=r,this.j=n}next(){var t=this.g.next();return t.done||(t.value=this.h.call(this.j,t.value)),t}[Symbol.iterator](){return this}}var d1=Object.freeze({});function Xa(e,t,r){var n,i=128&t?0:-1,s=e.length;(n=!!s)&&(n=(n=e[s-1])!=null&&typeof n=="object"&&n.constructor===Object);var a=s+(n?-1:0);for(t=128&t?1:0;t<a;t++)r(t-i,e[t]);if(n){e=e[s-1];for(let h in e)!isNaN(h)&&r(+h,e[h])}}var Wa={};function zt(e){return 128&e?Wa:void 0}function hn(e){return e.ib=!0,e}var p1=hn(e=>typeof e=="number"),As=hn(e=>typeof e=="string"),g1=hn(e=>typeof e=="boolean"),un=typeof wt.BigInt=="function"&&typeof wt.BigInt(0)=="bigint";function Y(e){var t=e;if(As(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(p1(t)&&!Number.isSafeInteger(t))throw Error(String(t));return un?BigInt(e):e=g1(e)?e?"1":"0":As(e)?e.trim()||"0":String(e)}var Hn=hn(e=>un?e>=v1&&e<=y1:e[0]==="-"?ws(e,m1):ws(e,_1)),m1=Number.MIN_SAFE_INTEGER.toString(),v1=un?BigInt(Number.MIN_SAFE_INTEGER):void 0,_1=Number.MAX_SAFE_INTEGER.toString(),y1=un?BigInt(Number.MAX_SAFE_INTEGER):void 0;function ws(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n>i)return!1;if(n<i)return!0}}var za,E1=typeof Uint8Array.prototype.slice=="function",R=0,M=0;function Kn(e){var t=e>>>0;R=t,M=(e-t)/4294967296>>>0}function St(e){if(e<0){Kn(-e);let[t,r]=mi(R,M);R=t>>>0,M=r>>>0}else Kn(e)}function pi(e){var t=za||(za=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),M=0,R=t.getUint32(0,!0)}function Ya(e,t){var r=4294967296*t+(e>>>0);return Number.isSafeInteger(r)?r:Bt(e,t)}function A1(e,t){return Y(kt()?BigInt.asUintN(64,(BigInt(t>>>0)<<BigInt(32))+BigInt(e>>>0)):Bt(e,t))}function qa(e,t){return kt()?Y(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(t))<<BigInt(32))+BigInt.asUintN(32,BigInt(e)))):Y(gi(e,t))}function Bt(e,t){if(e>>>=0,(t>>>=0)<=2097151)var r=""+(4294967296*t+e);else kt()?r=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(r=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),r+=8147497*t,t*=2,e>=1e7&&(r+=e/1e7>>>0,e%=1e7),r>=1e7&&(t+=r/1e7>>>0,r%=1e7),r=t+bs(r)+bs(e));return r}function bs(e){return e=String(e),"0000000".slice(e.length)+e}function gi(e,t){if(2147483648&t)if(kt())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{let[r,n]=mi(e,t);e="-"+Bt(r,n)}else e=Bt(e,t);return e}function _r(e){if(e.length<16)St(Number(e));else if(kt())e=BigInt(e),R=Number(e&BigInt(4294967295))>>>0,M=Number(e>>BigInt(32)&BigInt(4294967295));else{let t=+(e[0]==="-");M=R=0;let r=e.length;for(let n=t,i=(r-t)%6+t;i<=r;n=i,i+=6){let s=Number(e.slice(n,i));M*=1e6,(R=1e6*R+s)>=4294967296&&(M+=Math.trunc(R/4294967296),M>>>=0,R>>>=0)}if(t){let[n,i]=mi(R,M);R=n,M=i}}}function mi(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function Te(e){return Array.prototype.slice.call(e)}var _t=typeof BigInt=="function"?BigInt.asIntN:void 0,Xn=typeof BigInt=="function"?BigInt.asUintN:void 0,Oe=Number.isSafeInteger,yr=Number.isFinite,ht=Math.trunc,w1=Y(0);function Ja(e){if(typeof e!="number")throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);return e}function Le(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function Vr(e){if(typeof e!="boolean"){var t=typeof e;throw Error(`Expected boolean but got ${t!="object"?t:e?Array.isArray(e)?"array":t:"null"}: ${e}`)}return e}var b1=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Yt(e){switch(typeof e){case"bigint":return!0;case"number":return yr(e);case"string":return b1.test(e);default:return!1}}function We(e){if(e!=null){if(!yr(e))throw cr("enum");e|=0}return e}function Lt(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return yr(e)?0|e:void 0}function Za(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return yr(e)?e>>>0:void 0}function Qa(e,t){if(t??(t=1024),!Yt(e))throw cr("int64");var r=typeof e;switch(t){case 512:switch(r){case"string":return Hr(e);case"bigint":return String(_t(64,e));default:return no(e)}case 1024:switch(r){case"string":return io(e);case"bigint":return Y(_t(64,e));default:return so(e)}case 0:switch(r){case"string":return Hr(e);case"bigint":return Y(_t(64,e));default:return cn(e)}default:return(function(n,i=`unexpected value ${n}!`){throw Error(i)})(t,"Unknown format requested type for int64")}}function eo(e){var t=e.length;return(e[0]==="-"?t<20||t===20&&e<="-9223372036854775808":t<19||t===19&&e<="9223372036854775807")?e:(_r(e),gi(R,M))}function to(e){if(e[0]==="-")var t=!1;else t=(t=e.length)<20||t===20&&e<="18446744073709551615";return t?e:(_r(e),Bt(R,M))}function cn(e){if(e=ht(e),!Oe(e)){St(e);var t=R,r=M;(e=2147483648&r)&&(r=~r>>>0,(t=1+~t>>>0)==0&&(r=r+1>>>0)),e=typeof(t=Ya(t,r))=="number"?e?-t:t:e?"-"+t:t}return e}function ro(e){return(e=ht(e))>=0&&Oe(e)||(St(e),e=Ya(R,M)),e}function no(e){return e=ht(e),Oe(e)?e=String(e):(St(e),e=gi(R,M)),e}function Hr(e){var t=ht(Number(e));return Oe(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),eo(e))}function io(e){var t=ht(Number(e));return Oe(t)?Y(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),kt()?Y(_t(64,BigInt(e))):Y(eo(e)))}function so(e){return Oe(e)?Y(cn(e)):Y(no(e))}function Kr(e){var t=typeof e;return e==null?e:t==="bigint"?Y(_t(64,e)):Yt(e)?t==="string"?io(e):so(e):void 0}function vi(e){if(e==null)return e;var t=typeof e;if(t==="bigint")return String(_t(64,e));if(Yt(e)){if(t==="string")return Hr(e);if(t==="number")return cn(e)}}function ao(e){if(e==null||typeof e=="string"||e instanceof Me)return e}function oo(e){if(typeof e!="string")throw Error();return e}function Xe(e){if(e!=null&&typeof e!="string")throw Error();return e}function te(e){return e==null||typeof e=="string"?e:void 0}function _i(e,t,r,n){return e!=null&&e[$t]===Ut?e:Array.isArray(e)?((n=(r=0|e[m])|32&n|2&n)!==r&&q(e,n),new t(e)):(r?2&n?((e=t[vs])||(vr((e=new t).A),e=t[vs]=e),t=e):t=new t:t=void 0,t)}function T1(e,t,r){return(e=t?Qa(e,1024):Kr(e))==null?r?w1:void 0:e}function k1(e){return e}var S1={},L1=(function(){try{return an(new class extends Map{constructor(){super()}}),!1}catch{return!0}})();class Cn{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,r){return this.g.set(t,r),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,r){return this.g.forEach(t,r)}[Symbol.iterator](){return this.entries()}}var x1=L1?(Object.setPrototypeOf(Cn.prototype,Map.prototype),Object.defineProperties(Cn.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Cn):class extends Map{constructor(){super()}};function Ts(e){return e}function Nn(e){if(2&e.M)throw Error("Cannot mutate an immutable Map")}var R1,Ye=class extends x1{constructor(e,t,r=Ts,n=Ts){super(),this.M=0|e[m],this.N=t,this.ba=r,this.na=this.N?I1:n;for(let i=0;i<e.length;i++){let s=e[i],a=r(s[0],!1,!0),h=s[1];t?h===void 0&&(h=null):h=n(s[1],!1,!0,void 0,void 0,this.M),super.set(a,h)}}ea(e){return lr(Array.from(super.entries(),e))}clear(){Nn(this),super.clear()}delete(e){return Nn(this),super.delete(this.ba(e,!0,!1))}entries(){if(this.N){var e=super.keys();e=new Es(e,F1,this)}else e=super.entries();return e}values(){if(this.N){var e=super.keys();e=new Es(e,Ye.prototype.get,this)}else e=super.values();return e}forEach(e,t){this.N?super.forEach((r,n,i)=>{e.call(t,i.get(n),n,i)}):super.forEach(e,t)}set(e,t){return Nn(this),(e=this.ba(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.na(t,!0,!0,this.N,!1,this.M))}gb(e){var t=this.ba(e[0],!1,!0);e=e[1],e=this.N?e===void 0?null:e:this.na(e,!1,!0,void 0,!1,this.M),super.set(t,e)}has(e){return super.has(this.ba(e,!1,!1))}get(e){e=this.ba(e,!1,!1);var t=super.get(e);if(t!==void 0){var r=this.N;return r?((r=this.na(t,!1,!0,r,this.Fa,this.M))!==t&&super.set(e,r),r):t}}[Symbol.iterator](){return this.entries()}};function I1(e,t,r,n,i,s){return e=_i(e,n,r,s),i&&(e=Ei(e)),e}function F1(e){return[e,this.get(e)]}function ks(){return R1||(R1=new Ye(vr([]),void 0,void 0,void 0,S1))}function ln(e){return pe?e[pe]:void 0}function Xr(e,t){for(let r in e)!isNaN(r)&&t(e,+r,e[r])}Ye.prototype.toJSON=void 0;var C1,N1,Wn=class{},M1={cb:!0};function O1(e,t){t<100||Pt(l1,1)}function fn(e,t,r,n){var i=n!==void 0;n=!!n;var s,a=pe;!i&&Wt&&a&&(s=e[a])&&Xr(s,O1),a=[];var h=e.length;s=4294967295;var o=!1,f=!!(64&t),u=f?128&t?0:-1:void 0;if(!(1&t)){var c=h&&e[h-1];c!=null&&typeof c=="object"&&c.constructor===Object?s=--h:c=void 0,!f||128&t||i||(o=!0,s=k1(s-u,u,e,c,void 0)+u)}t=void 0;for(var l=0;l<h;l++){let A=e[l];if(A!=null&&(A=r(A,n))!=null)if(f&&l>=s){let T=l-u;(t??(t={}))[T]=A}else a[l]=A}if(c)for(let A in c){if((h=c[A])==null||(h=r(h,n))==null)continue;let T;l=+A,f&&!Number.isNaN(l)&&(T=l+u)<s?a[T]=h:(t??(t={}))[A]=h}return t&&(o?a.push(t):a[s]=t),i&&pe&&(e=ln(e))&&e instanceof Wn&&(a[pe]=(function(A){var T=new Wn;return Xr(A,(W,re,ye)=>{T[re]=Te(ye)}),T.ka=A.ka,T})(e)),a}function D1(e){return e[0]=fr(e[0]),e[1]=fr(e[1]),e}function fr(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return Hn(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(Array.isArray(e)){var t=0|e[m];return e.length===0&&1&t?void 0:fn(e,t,fr)}if(e!=null&&e[$t]===Ut)return ho(e);if(e instanceof Me){if((t=e.g)==null)e="";else if(typeof t=="string")e=t;else{if(Ba){for(var r="",n=0,i=t.length-10240;n<i;)r+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));r+=String.fromCharCode.apply(null,n?t.subarray(n):t),t=btoa(r)}else{r===void 0&&(r=0),Ua(),r=$a[r],n=Array(Math.floor(t.length/3)),i=r[64]||"";let f=0,u=0;for(;f<t.length-2;f+=3){var s=t[f],a=t[f+1],h=t[f+2],o=r[s>>2];s=r[(3&s)<<4|a>>4],a=r[(15&a)<<2|h>>6],h=r[63&h],n[u++]=o+s+a+h}switch(o=0,h=i,t.length-f){case 2:h=r[(15&(o=t[f+1]))<<2]||i;case 1:t=t[f],n[u]=r[t>>2]+r[(3&t)<<4|o>>4]+h+i}t=n.join("")}e=e.g=t}return e}return e instanceof Ye?e=e.size!==0?e.ea(D1):void 0:void 0}return e}function ho(e){return fn(e=e.A,0|e[m],fr)}function yt(e,t){return uo(e,t[0],t[1])}function uo(e,t,r,n=0){if(e==null){var i=32;r?(e=[r],i|=128):e=[],t&&(i=-16760833&i|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(i=0|e[m],ds&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&(function(){if(ds)throw Error("carr");Pt(f1,5)})(),256&i)throw Error("farr");if(64&i)return(i|n)!==i&&q(e,i|n),e;if(r&&(i|=128,r!==e[0]))throw Error("mid");e:{i|=64;var s=(r=e).length;if(s){var a=s-1;let o=r[a];if(o!=null&&typeof o=="object"&&o.constructor===Object){if((a-=t=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var h in o)(s=+h)<a&&(r[s+t]=o[h],delete o[h]);i=-16760833&i|(1023&a)<<14;break e}}if(t){if((h=Math.max(t,s-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&h)<<14}}}return q(e,64|i|n),e}function P1(e,t){if(typeof e!="object")return e;if(Array.isArray(e)){var r=0|e[m];return e.length===0&&1&r?void 0:Ss(e,r,t)}if(e!=null&&e[$t]===Ut)return Ls(e);if(e instanceof Ye){if(2&(t=e.M))return e;if(!e.size)return;if(r=vr(e.ea()),e.N)for(e=0;e<r.length;e++){let n=r[e],i=n[1];i=i==null||typeof i!="object"?void 0:i!=null&&i[$t]===Ut?Ls(i):Array.isArray(i)?Ss(i,0|i[m],!!(32&t)):void 0,n[1]=i}return r}return e instanceof Me?e:void 0}function Ss(e,t,r){return 2&t||(!r||4096&t||16&t?e=qt(e,t,!1,r&&!(16&t)):(mr(e,34),4&t&&Object.freeze(e))),e}function yi(e,t,r){return e=new e.constructor(t),r&&(e.h=Tt),e.m=Tt,e}function Ls(e){var t=e.A,r=0|t[m];return le(e,r)?e:Ai(e,t,r)?yi(e,t):qt(t,r)}function qt(e,t,r,n){return n??(n=!!(34&t)),e=fn(e,t,P1,n),n=32,r&&(n|=2),q(e,t=16769217&t|n),e}function Ei(e){var t=e.A,r=0|t[m];return le(e,r)?Ai(e,t,r)?yi(e,t,!0):new e.constructor(qt(t,r,!1)):e}function Jt(e){if(e.h!==Tt)return!1;var t=e.A;return mr(t=qt(t,0|t[m]),2048),e.A=t,e.h=void 0,e.m=void 0,!0}function xt(e){if(!Jt(e)&&le(e,0|e.A[m]))throw Error()}function lt(e,t){t===void 0&&(t=0|e[m]),32&t&&!(4096&t)&&q(e,4096|t)}function Ai(e,t,r){return!!(2&r)||!(!(32&r)||4096&r)&&(q(t,2|r),e.h=Tt,!0)}var co=Y(0),nt={};function G(e,t,r,n){if((t=qe(e.A,t,void 0,n))!==null||r&&e.m!==Tt)return t}function qe(e,t,r,n){if(t===-1)return null;var i=t+(r?0:-1),s=e.length-1;if(!(s<1+(r?0:-1))){if(i>=s){var a=e[s];if(a!=null&&typeof a=="object"&&a.constructor===Object){r=a[t];var h=!0}else{if(i!==s)return;r=a}}else r=e[i];if(n&&r!=null){if((n=n(r))==null)return n;if(!Object.is(n,r))return h?a[t]=n:e[i]=n,n}return r}}function w(e,t,r,n){xt(e);var i=e.A;return H(i,0|i[m],t,r,n),e}function H(e,t,r,n,i){var s=r+(i?0:-1),a=e.length-1;if(a>=1+(i?0:-1)&&s>=a){let h=e[a];if(h!=null&&typeof h=="object"&&h.constructor===Object)return h[r]=n,t}return s<=a?(e[s]=n,t):(n!==void 0&&(r>=(a=(t??(t=0|e[m]))>>14&1023||536870912)?n!=null&&(e[a+(i?0:-1)]={[r]:n}):e[s]=n),t)}function lo(e,t,r,n){var i=e.A;return _o(i,0|i[m],t,e=mo(e,n)===r?r:-1)!==void 0}function gt(){return d1===void 0?2:4}function mt(e,t,r,n,i){var s=e.A,a=0|s[m];n=le(e,a)?1:n,i=!!i||n===3,n===2&&Jt(e)&&(a=0|(s=e.A)[m]);var h=(e=wi(s,t))===ct?7:0|e[m],o=bi(h,a),f=!(4&o);if(f){4&o&&(e=Te(e),h=0,o=at(o,a),a=H(s,a,t,e));let u=0,c=0;for(;u<e.length;u++){let l=r(e[u]);l!=null&&(e[c++]=l)}c<u&&(e.length=c),r=-513&o|4,o=r&=-1025,o&=-4097}return o!==h&&(q(e,o),2&o&&Object.freeze(e)),fo(e,o,s,a,t,n,f,i)}function fo(e,t,r,n,i,s,a,h){var o=t;return s===1||s===4&&(2&t||!(16&t)&&32&n)?st(t)||((t|=!e.length||a&&!(4096&t)||32&n&&!(4096&t||16&t)?2:256)!==o&&q(e,t),Object.freeze(e)):(s===2&&st(t)&&(e=Te(e),o=0,t=at(t,n),n=H(r,n,i,e)),st(t)||(h||(t|=16),t!==o&&q(e,t))),2&t||!(4096&t||16&t)||lt(r,n),e}function wi(e,t,r){return e=qe(e,t,r),Array.isArray(e)?e:ct}function bi(e,t){return 2&t&&(e|=2),1|e}function st(e){return!!(2&e)&&!!(4&e)||!!(256&e)}function po(e){return on(e,!0)}function go(e){e=Te(e);for(let t=0;t<e.length;t++){let r=e[t]=Te(e[t]);Array.isArray(r[1])&&(r[1]=vr(r[1]))}return lr(e)}function Er(e,t,r,n){xt(e),H(e=e.A,0|e[m],t,(n==="0"?Number(r)===0:r===n)?void 0:r)}function ft(e,t,r){if(2&t)throw Error();var n=zt(t),i=wi(e,r,n),s=i===ct?7:0|i[m],a=bi(s,t);return(2&a||st(a)||16&a)&&(a===s||st(a)||q(i,a),i=Te(i),s=0,a=at(a,t),H(e,t,r,i,n)),(a&=-13)!==s&&q(i,a),i}function mo(e,t){return ki(Ti(e=e.A),e,void 0,t)}function Ti(e){if(Wt)return e[tr]??(e[tr]=new Map);if(tr in e)return e[tr];var t=new Map;return Object.defineProperty(e,tr,{value:t}),t}function vo(e,t,r,n,i){var s=Ti(e),a=ki(s,e,t,r,i);return a!==n&&(a&&(t=H(e,t,a,void 0,i)),s.set(r,n)),t}function ki(e,t,r,n,i){var s=e.get(n);if(s!=null)return s;s=0;for(let a=0;a<n.length;a++){let h=n[a];qe(t,h,i)!=null&&(s!==0&&(r=H(t,r,s,void 0,i)),s=h)}return e.set(n,s),s}function Si(e,t,r){var n=0|e[m],i=zt(n),s=qe(e,r,i);if(s!=null&&s[$t]===Ut){if(!le(s))return Jt(s),s.A;var a=s.A}else Array.isArray(s)&&(a=s);if(a){let h=0|a[m];2&h&&(a=qt(a,h))}return(a=yt(a,t))!==s&&H(e,n,r,a,i),a}function _o(e,t,r,n,i){var s=!1;if((n=qe(e,n,i,a=>{var h=_i(a,r,!1,t);return s=h!==a&&h!=null,h}))!=null)return s&&!le(n)&<(e,t),n}function C(e,t,r,n){var i=e.A,s=0|i[m];if((t=_o(i,s,t,r,n))==null)return t;if(!le(e,s=0|i[m])){let a=Ei(t);a!==t&&(Jt(e)&&(s=0|(i=e.A)[m]),lt(i,s=H(i,s,r,t=a,n)))}return t}function yo(e,t,r,n,i,s,a,h){var o=le(e,r);s=o?1:s,a=!!a||s===3,o=h&&!o,(s===2||o)&&Jt(e)&&(r=0|(t=e.A)[m]);var f=(e=wi(t,i))===ct?7:0|e[m],u=bi(f,r);if(h=!(4&u)){var c=e,l=r;let A=!!(2&u);A&&(l|=2);let T=!A,W=!0,re=0,ye=0;for(;re<c.length;re++){let tt=_i(c[re],n,!1,l);if(tt instanceof n){if(!A){let rt=le(tt);T&&(T=!rt),W&&(W=rt)}c[ye++]=tt}}ye<re&&(c.length=ye),u|=4,u=W?-4097&u:4096|u,u=T?8|u:-9&u}if(u!==f&&(q(e,u),2&u&&Object.freeze(e)),o&&!(8&u||!e.length&&(s===1||s===4&&(2&u||!(16&u)&&32&r)))){for(st(u)&&(e=Te(e),u=at(u,r),r=H(t,r,i,e)),n=e,o=u,f=0;f<n.length;f++)(c=n[f])!==(u=Ei(c))&&(n[f]=u);o|=8,q(e,u=o=n.length?4096|o:-4097&o)}return fo(e,u,t,r,i,s,h,a)}function Je(e,t,r){var n=e.A;return yo(e,n,0|n[m],t,r,gt(),!1,!0)}function Eo(e){return e==null&&(e=void 0),e}function E(e,t,r,n,i){return w(e,r,n=Eo(n),i),n&&!le(n)&<(e.A),e}function De(e,t,r,n){e:{var i=n=Eo(n);xt(e);let s=e.A,a=0|s[m];if(i==null){let h=Ti(s);if(ki(h,s,a,r)!==t)break e;h.set(r,0)}else a=vo(s,a,r,t);H(s,a,t,i)}return n&&!le(n)&<(e.A),e}function zn(e,t,r){xt(e);var n=e.A,i=0|n[m];if(r==null)return H(n,i,t),e;var s=r===ct?7:0|r[m],a=s,h=st(s),o=h||Object.isFrozen(r),f=!0,u=!0;for(let l=0;l<r.length;l++){var c=r[l];h||(c=le(c),f&&(f=!c),u&&(u=c))}return h||(s=f?13:5,s=u?-4097&s:4096|s),o&&s===a||(r=Te(r),a=0,s=at(s,i)),s!==a&&q(r,s),i=H(n,i,t,r),2&s||!(4096&s||16&s)||lt(n,i),e}function at(e,t){return-273&(2&t?2|e:-3&e)}function dr(e,t,r,n){var i=n;xt(e),e=yo(e,n=e.A,0|n[m],r,t,2,!0),i=i??new r,e.push(i),t=r=e===ct?7:0|e[m],(i=le(i))?(r&=-9,e.length===1&&(r&=-4097)):r|=4096,r!==t&&q(e,r),i||lt(n)}function be(e,t,r){return Lt(G(e,t,r))}function V(e,t){return G(e,t,void 0,Le)??0}function xs(e,t,r){return C(e,t,r=mo(e,Ki)===r?r:-1,void 0)}function Yn(e,t){Er(e,3,t==null?t:Vr(t),!1)}function Pe(e,t,r){if(r!=null){if(typeof r!="number"||!yr(r))throw cr("int32");r|=0}w(e,t,r)}function Mn(e,t,r){return w(e,t,r==null?r:Qa(r))}function Dr(e,t,r){return w(e,t,r==null?r:(function(n){if(!Yt(n))throw cr("uint64");switch(typeof n){case"string":var i=ht(Number(n));return Oe(i)&&i>=0?n=Y(i):((i=n.indexOf("."))!==-1&&(n=n.substring(0,i)),n=kt()?Y(Xn(64,BigInt(n))):Y(to(n))),n;case"bigint":return Y(Xn(64,n));default:return Oe(n)?n=Y(ro(n)):((n=ht(n))>=0&&Oe(n)?n=String(n):(St(n),n=Bt(R,M)),n=Y(n)),n}})(r))}function y(e,t,r){w(e,t,r==null?r:Ja(r))}function Nt(e,t,r){Er(e,t,r==null?r:Ja(r),0)}function ge(e,t,r){Er(e,t,Xe(r),"")}function Wr(e,t,r){{xt(e);let a=e.A,h=0|a[m];if(r==null)H(a,h,t);else{var n=e=r===ct?7:0|r[m],i=st(e),s=i||Object.isFrozen(r);for(i||(e=0),s||(r=Te(r),n=0,e=at(e,h),s=!1),e|=5,e|=(4&e?512&e?512:1024&e?1024:0:void 0)??1024,i=0;i<r.length;i++){let o=r[i],f=oo(o);Object.is(o,f)||(s&&(r=Te(r),n=0,e=at(e,h),s=!1),r[i]=f)}e!==n&&(s&&(r=Te(r),e=at(e,h)),q(r,e)),H(a,h,t,r)}}}function dn(e,t,r){xt(e),mt(e,t,te,2,!0).push(oo(r))}var Ft=class{constructor(e,t,r){if(this.buffer=e,r&&!t)throw Error();this.g=t}};function pn(e,t){if(typeof e=="string")return new Ft(Ga(e),t);if(Array.isArray(e))return new Ft(new Uint8Array(e),t);if(e.constructor===Uint8Array)return new Ft(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new Ft(e,!1);if(e.constructor===Me)return t=di(e)||new Uint8Array(0),new Ft(t,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Ft(e,!1);throw Error()}function Li(e,t){var r=0,n=0,i=0,s=e.h,a=e.g;do{var h=s[a++];r|=(127&h)<<i,i+=7}while(i<32&&128&h);if(i>32)for(n|=(127&h)>>4,i=3;i<32&&128&h;i+=7)n|=(127&(h=s[a++]))<<i;if(Et(e,a),!(128&h))return t(r>>>0,n>>>0);throw Error()}function xi(e){for(var t=0,r=e.g,n=r+10,i=e.h;r<n;){let s=i[r++];if(t|=s,!(128&s))return Et(e,r),!!(127&t)}throw Error()}function Ze(e){var t=e.h,r=e.g,n=t[r++],i=127&n;if(128&n&&(i|=(127&(n=t[r++]))<<7,128&n&&(i|=(127&(n=t[r++]))<<14,128&n&&(i|=(127&(n=t[r++]))<<21,128&n&&(i|=(n=t[r++])<<28,128&n&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++])))))throw Error();return Et(e,r),i}function $e(e){return Ze(e)>>>0}function zr(e){return Li(e,qa)}function qn(e){var t=e.h,r=e.g,n=t[r],i=t[r+1],s=t[r+2];return t=t[r+3],Et(e,e.g+4),(n|i<<8|s<<16|t<<24)>>>0}function Yr(e){var t=qn(e);e=2*(t>>31)+1;var r=t>>>23&255;return t&=8388607,r==255?t?NaN:e*(1/0):r==0?1401298464324817e-60*e*t:e*Math.pow(2,r-150)*(t+8388608)}function $1(e){return Ze(e)}function Et(e,t){if(e.g=t,t>e.j)throw Error()}function Ao(e,t){if(t<0)throw Error();var r=e.g;if((t=r+t)>e.j)throw Error();return e.g=t,r}function wo(e,t){if(t==0)return bt();var r=Ao(e,t);return e.fa&&e.o?r=e.h.subarray(r,r+t):(e=e.h,r=r===(t=r+t)?new Uint8Array(0):E1?e.slice(r,t):new Uint8Array(e.subarray(r,t))),r.length==0?bt():new Me(r,Dt)}var U1=class{constructor(e,t,r,n){this.h=null,this.o=!1,this.g=this.j=this.m=0,this.init(e,t,r,n)}init(e,t,r,{fa:n=!1,ma:i=!1}={}){this.fa=n,this.ma=i,e&&(e=pn(e,this.ma),this.h=e.buffer,this.o=e.g,this.m=t||0,this.j=r!==void 0?this.m+r:this.h.length,this.g=this.m)}clear(){this.h=null,this.o=!1,this.g=this.j=this.m=0,this.fa=!1}},Rs=[],Gt=0;function bo(e,t,r,n){if(qr.length){let i=qr.pop();return i.v(n),i.g.init(e,t,r,n),i}return new B1(e,t,r,n)}function To(e){e.g.clear(),e.j=-1,e.h=-1,qr.length<100&&qr.push(e)}function ko(e){var t=e.g;if(t.g==t.j)return!1;e.m=e.g.g;var r=$e(e.g);if(t=r>>>3,!((r&=7)>=0&&r<=5)||t<1)throw Error();return e.j=t,e.h=r,!0}function Pr(e){try{switch(e.h){case 0:e.h!=0?Pr(e):xi(e.g);break;case 1:var t=e.g;Et(t,t.g+8);break;case 2:if(e.h!=2)Pr(e);else{var r=$e(e.g),n=e.g;Et(n,n.g+r)}break;case 5:var i=e.g;Et(i,i.g+4);break;case 3:So();let s=e.j;try{for(;;){if(!ko(e))throw Error();if(e.h==4){if(e.j!=s)throw Error();break}Pr(e)}}catch(a){throw a instanceof RangeError?new SyntaxError:a}finally{Gt>0&&Gt--}break;default:throw Error()}}catch(s){throw s instanceof RangeError?new SyntaxError:s}}function So(){if(Gt>=100)throw new SyntaxError;Gt++}function Ar(e,t,r){var n=e.g.j,i=$e(e.g),s=(i=e.g.g+i)-n;if(s<=0&&(e.g.j=i,r(t,e,void 0,void 0,void 0),s=i-e.g.g),s)throw Error();return e.g.g=i,e.g.j=n,t}function Ri(e){var t=$e(e.g),r=Ao(e=e.g,t);if(e=e.h,e1){var n,i=e;(n=Fn)||(n=Fn=new TextDecoder("utf-8",{fatal:!0})),t=r+t,i=r===0&&t===i.length?i:i.subarray(r,t);try{var s=n.decode(i)}catch(h){if(Rr===void 0){try{n.decode(new Uint8Array([128]))}catch{}try{n.decode(new Uint8Array([97])),Rr=!0}catch{Rr=!1}}throw!Rr&&(Fn=void 0),h}}else{t=(s=r)+t,r=[];let h,o=null;for(;s<t;){var a=e[s++];a<128?r.push(a):a<224?s>=t?pt():(h=e[s++],a<194||(192&h)!=128?(s--,pt()):r.push((31&a)<<6|63&h)):a<240?s>=t-1?pt():(h=e[s++],(192&h)!=128||a===224&&h<160||a===237&&h>=160||(192&(n=e[s++]))!=128?(s--,pt()):r.push((15&a)<<12|(63&h)<<6|63&n)):a<=244?s>=t-2?pt():(h=e[s++],(192&h)!=128||h-144+(a<<28)>>30||(192&(n=e[s++]))!=128||(192&(i=e[s++]))!=128?(s--,pt()):(a=(7&a)<<18|(63&h)<<12|(63&n)<<6|63&i,a-=65536,r.push(55296+(a>>10&1023),56320+(1023&a)))):pt(),r.length>=8192&&(o=fs(o,r),r.length=0)}s=fs(o,r)}return s}function Ii(e){var t=$e(e.g);return wo(e.g,t)}function wr(e,t,r){var n=$e(e.g);for(n=e.g.g+n;e.g.g<n;)r.push(t(e.g))}var B1=class{constructor(e,t,r,n){if(Rs.length){let i=Rs.pop();i.init(e,t,r,n),e=i}else e=new U1(e,t,r,n);this.g=e,this.m=this.g.g,this.h=this.j=-1,this.v(n)}v({ra:e=!1}={}){this.ra=e}},qr=[];function G1(e){return new Jr(4294967295&e,Math.floor(e/4294967296))}function Is(e){return e?/^\d+$/.test(e)?(_r(e),new Jr(R,M)):null:j1||(j1=new Jr(0,0))}var j1,Jr=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};function V1(e){return new Zr(4294967295&e,Math.floor(e/4294967296))}function Lo(e){return e?/^-?\d+$/.test(e)?(_r(e),new Zr(R,M)):null:H1||(H1=new Zr(0,0))}var H1,Fs,Cs,Ns,On,Ms,rr,Ir,Zr=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};function xo(e,t,r){return typeof BigInt64Array<"u"?(rr||(rr=new BigInt64Array(1),Ir=new Uint32Array(rr.buffer),rr[0]=BigInt(1),Ms=Ir[0]===1),rr[0]=e,new t(Ir[e=Ms?0:1],Ir[1-e])):(On||(Fs=BigInt(Number.MIN_SAFE_INTEGER),Cs=BigInt(Number.MAX_SAFE_INTEGER),Ns=BigInt(4294967295),On=BigInt(32)),e>=Fs&&e<=Cs?r(Number(e)):(e=BigInt.asUintN(64,e),new t(Number(e&Ns),Number(e>>On))))}function ze(e,t,r){for(;r>0||t>127;)e.g.push(127&t|128),t=(t>>>7|r<<25)>>>0,r>>>=7;e.g.push(t)}function Zt(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function br(e,t){if(t>=0)Zt(e,t);else{for(let r=0;r<9;r++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function K1(e,t){_r(t),(function(r){var n=M>>31;r(R<<1^n,(M<<1|R>>>31)^n)})((r,n)=>{ze(e,r>>>0,n>>>0)})}function pr(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)}var X1=class{constructor(){this.g=[]}length(){return this.g.length}end(){var e=this.g;return this.g=[],e}};function jt(e,t){t.length!==0&&(e.j.push(t),e.h+=t.length)}function ie(e,t,r){Zt(e.g,8*t+r)}function Fi(e,t){return ie(e,t,2),t=e.g.end(),jt(e,t),t.push(e.h),t}function Ci(e,t){var r=t.pop();for(r=e.h+e.g.length()-r;r>127;)t.push(127&r|128),r>>>=7,e.h++;t.push(r),e.h++}function Ro(e,t,r){if(r!=null)switch(ie(e,t,0),typeof r){case"number":e=e.g,St(r),ze(e,R,M);break;case"bigint":r=xo(r,Zr,V1),ze(e.g,r.h,r.g);break;default:r=Lo(r),ze(e.g,r.h,r.g)}}function Tr(e,t,r){ie(e,t,2),Zt(e.g,r.length),jt(e,e.g.end()),jt(e,r)}function Qr(e,t,r,n){r!=null&&(t=Fi(e,t),n(r,e),Ci(e,t))}var W1=class{constructor(){this.j=[],this.h=0,this.g=new X1}};function Io(e){typeof e=="string"&&Lo(e)}function ke(){var e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var Ni=ke(),Fo=ke(),Mi=ke(),gn=ke(),Oi=ke(),mn=ke(),z1=ke(),Y1=ke(),vn=ke(),q1=ke(),_n=ke(),Di=ke();function Be(e,t,r){var n=e.A;pe&&pe in n&&(n=n[pe])&&delete n[t.g],t.h?t.o(e,t.h,t.g,r,t.j):t.o(e,t.g,r,t.j)}var p=class{constructor(e,t){this.A=uo(e,t,void 0,2048)}toJSON(){return ho(this)}o(){var i;var e=Dh,t=this.A,r=e.g,n=pe;if(Wt&&n&&((i=t[n])==null?void 0:i[r])!=null&&Pt(c1,3),t=e.g,_s&&pe&&_s===void 0&&(n=(r=this.A)[pe])&&(n=n.ka))try{n(r,t,M1)}catch(s){Pa(s)}return e.h?e.m(this,e.h,e.g,e.j):e.m(this,e.g,e.defaultValue,e.j)}clone(){var e=this.A,t=0|e[m];return Ai(this,e,t)?yi(this,e,!0):new this.constructor(qt(e,t,!1))}};p.prototype[$t]=Ut,p.prototype.toString=function(){return this.A.toString()};var Qt=class{constructor(e,t,r){this.g=e,this.h=t,e=Ni,this.j=!!e&&r===e||!1}};function yn(e,t){return new Qt(e,t,Ni)}function Co(e,t,r,n,i){Qr(e,r,Do(t,n),i)}var No,Mo,J1=yn(function(e,t,r,n,i){return e.h===2&&(Ar(e,Si(t,n,r),i),!0)},Co),Z1=yn(function(e,t,r,n,i){return e.h===2&&(Ar(e,Si(t,n,r),i),!0)},Co),En=Symbol(),An=Symbol(),Jn=Symbol(),Os=Symbol(),Ds=Symbol();function Rt(e,t,r,n){var i=n[e];if(i)return i;(i={}).Ea=n,i.ca=(function(c){switch(typeof c){case"boolean":return C1||(C1=[0,void 0,!0]);case"number":return c>0?void 0:c===0?N1||(N1=[0,void 0]):[-c,void 0];case"string":return[0,c];case"object":return c}})(n[0]);var s=n[1],a=1;s&&s.constructor===Object&&(i.ia=s,typeof(s=n[++a])=="function"&&(i.wa=!0,No??(No=s),Mo??(Mo=n[a+1]),s=n[a+=2]));for(var h={};s&&Array.isArray(s)&&s.length&&typeof s[0]=="number"&&s[0]>0;){for(var o=0;o<s.length;o++)h[s[o]]=s;s=n[++a]}for(o=1;s!==void 0;){let c;typeof s=="number"&&(o+=s,s=n[++a]);var f=void 0;if(s instanceof Qt?c=s:(c=J1,a--),c==null?void 0:c.j){s=n[++a],f=n;var u=a;typeof s=="function"&&(s=s(),f[u]=s),f=s}for(u=o+1,typeof(s=n[++a])=="number"&&s<0&&(u-=s,s=n[++a]);o<u;o++){let l=h[o];f?r(i,o,c,f,l):t(i,o,c,l)}}return n[e]=i}function Oo(e){return Array.isArray(e)?e[0]instanceof Qt?e:[Z1,e]:[e,void 0]}function Do(e,t){return e instanceof p?e.A:Array.isArray(e)?yt(e,t):void 0}function Pi(e,t,r,n){var i=r.g;e[t]=n?(s,a,h)=>i(s,a,h,n):i}function $i(e,t,r,n,i){var s,a,h=r.g;e[t]=(o,f,u)=>h(o,f,u,a||(a=Rt(An,Pi,$i,n).ca),s||(s=Ui(n)),i)}function Ui(e){var t=e[Jn];if(t!=null)return t;var r=Rt(An,Pi,$i,e);return t=r.wa?(n,i)=>No(n,i,r):(n,i)=>{e:{So();try{for(;ko(i)&&i.h!=4;){let l=i.j,A=r[l];if(A==null){let T=r.ia;if(T){let W=T[l];if(W){let re=eh(W);re!=null&&(A=r[l]=re)}}}if(A==null||!A(i,n,l)){var s=i;let T=s.m;if(Pr(s),s.ra)var a=void 0;else{let W=s.g.g-T;s.g.g=T,a=wo(s.g,W)}s=void 0;var h=n,o=l,f=a;f&&((s=h[pe]??(h[pe]=new Wn))[o]??(s[o]=[])).push(f)}}let c=ln(n);c&&(c.ka=r.Ea[Ds]);var u=!0;break e}catch(c){throw c instanceof RangeError?new SyntaxError:c}finally{Gt>0&&Gt--}u=void 0}return u},e[Jn]=t,e[Ds]=Q1.bind(e),t}function Q1(e,t,r,n){var i=this[An],s=this[Jn],a=yt(void 0,i.ca),h=ln(e);if(h){var o=!1,f=i.ia;if(f){if(i=(u,c,l)=>{if(l.length!==0)if(f[c])for(let A of l){u=bo(A);try{o=!0,s(a,u)}finally{To(u)}}else n==null||n(e,c,l)},t==null)Xr(h,i);else if(h!=null){let u=h[t];u&&i(h,t,u)}if(o){let u=0|e[m];if(2&u&&2048&u&&!(r!=null&&r.cb))throw Error();let c=zt(u),l=(A,T)=>{if(qe(e,A,c)!=null){if((r==null?void 0:r.lb)===1)return;throw Error()}T!=null&&(u=H(e,u,A,T,c)),delete h[A]};t==null?Xa(a,0|a[m],(A,T)=>{l(A,T)}):l(t,qe(a,t,c))}}}}function eh(e){var t=(e=Oo(e))[0].g;if(e=e[1]){let r=Ui(e),n=Rt(An,Pi,$i,e).ca;return(i,s,a)=>t(i,s,a,n,r)}return t}function wn(e,t,r){e[t]=r.h}function bn(e,t,r,n){var i,s,a=r.h;e[t]=(h,o,f)=>a(h,o,f,s||(s=Rt(En,wn,bn,n).ca),i||(i=Po(n)))}function Po(e){var t=e[Os];if(!t){let r=Rt(En,wn,bn,e);t=(n,i)=>$o(n,i,r),e[Os]=t}return t}function $o(e,t,r){Xa(e,0|e[m],(n,i)=>{if(i!=null){var s=(function(a,h){var o=a[h];if(o)return o;if((o=a.ia)&&(o=o[h])){var f=(o=Oo(o))[0].h;if(o=o[1]){let u=Po(o),c=Rt(En,wn,bn,o).ca;o=a.wa?Mo(c,u):(l,A,T)=>f(l,A,T,c,u)}else o=f;return a[h]=o}})(r,n);s?s(t,i,n):n<500||Pt(Vn,3)}}),(e=ln(e))&&Xr(e,(n,i,s)=>{for(jt(t,t.g.end()),n=0;n<s.length;n++)jt(t,di(s[n])||new Uint8Array(0))})}var th=Y(0);function Qe(e,t,r){if(Array.isArray(t)){var n=0|t[m];if(4&n)return t;for(var i=0,s=0;i<t.length;i++){let a=e(t[i]);a!=null&&(t[s++]=a)}return s<i&&(t.length=s),e=1|n,r&&(e=-1537&e|4),e!==n&&q(t,e),r&&2&e&&Object.freeze(t),t}}var Uo=(e,t)=>{var r=new W1;$o(e.A,r,Rt(En,wn,bn,t)),jt(r,r.g.end()),e=new Uint8Array(r.h);var n=(t=r.j).length,i=0;for(let s=0;s<n;s++){let a=t[s];e.set(a,i),i+=a.length}return r.j=[e],e};function X(e,t,r){return new Qt(e,t,r)}function et(e,t,r){return new Qt(e,t,r)}function Z(e,t,r){H(e,0|e[m],t,r,zt(0|e[m]))}var rh=yn(function(e,t,r,n,i){if(e.h!==2)return!1;if(e=Te(e=Ar(e,yt([void 0,void 0],n),i)),i=zt(n=0|t[m]),2&n)throw Error();var s=qe(t,r,i);if(s instanceof Ye)2&s.M?((s=s.ea()).push(e),H(t,n,r,s,i)):s.gb(e);else if(Array.isArray(s)){var a=0|s[m];8192&a||q(s,a|=8192),2&a&&H(t,n,r,s=go(s),i),s.push(e)}else H(t,n,r,lr([e]),i);return!0},function(e,t,r,n,i){if(t instanceof Ye)t.forEach((s,a)=>{Qr(e,r,yt([a,s],n),i)});else if(Array.isArray(t)){for(let s=0;s<t.length;s++){let a=t[s];Array.isArray(a)&&Qr(e,r,yt(a,n),i)}lr(t)}});function Bo(e,t,r){(t=Le(t))!=null&&(ie(e,r,5),e=e.g,pi(t),pr(e,R))}function Bi(e,t,r){(t=vi(t))!=null&&(Io(t),Ro(e,r,t))}function Go(e,t,r){(t=Lt(t))!=null&&t!=null&&(ie(e,r,0),br(e.g,t))}function jo(e,t,r){(t=t==null||typeof t=="boolean"?t:typeof t=="number"?!!t:void 0)!=null&&(ie(e,r,0),e.g.g.push(t?1:0))}function Vo(e,t,r){(t=te(t))!=null&&Tr(e,r,Da(t))}function Ho(e,t,r,n,i){Qr(e,r,Do(t,n),i)}function Gi(e,t,r){(t=ao(t))!=null&&Tr(e,r,pn(t,!0).buffer)}function Ko(e,t,r){(t=Za(t))!=null&&t!=null&&(ie(e,r,0),Zt(e.g,t))}function Xo(e,t,r){(t=Lt(t))!=null&&(t=parseInt(t,10),ie(e,r,0),br(e.g,t))}function Wo(e,t,r){return(e.h===5||e.h===2)&&(t=ft(t,0|t[m],r),e.h==2?wr(e,Yr,t):t.push(Yr(e.g)),!0)}function zo(e,t,r){return e.h===0&&(Z(t,r,zr(e.g)),!0)}function Yo(e,t,r){return(e.h===0||e.h===2)&&(t=ft(t,0|t[m],r),e.h==2?wr(e,Ze,t):t.push(Ze(e.g)),!0)}function qo(e,t,r){return e.h===2&&(Z(t,r,(e=Ii(e))===bt()?void 0:e),!0)}var Ps=X(function(e,t,r){if(e.h!==1)return!1;var n=e.g;e=qn(n);var i=qn(n);n=2*(i>>31)+1;var s=i>>>20&2047;return e=4294967296*(1048575&i)+e,Z(t,r,s==2047?e?NaN:n*(1/0):s==0?5e-324*n*e:n*Math.pow(2,s-1075)*(e+4503599627370496)),!0},function(e,t,r){(t=Le(t))!=null&&(ie(e,r,1),e=e.g,(r=za||(za=new DataView(new ArrayBuffer(8)))).setFloat64(0,+t,!0),R=r.getUint32(0,!0),M=r.getUint32(4,!0),pr(e,R),pr(e,M))},q1),j=X(function(e,t,r){return e.h===5&&(Z(t,r,Yr(e.g)),!0)},Bo,vn),nh=et(Wo,function(e,t,r){if((t=Qe(Le,t,!0))!=null)for(let a=0;a<t.length;a++){var n=e,i=r,s=t[a];s!=null&&(ie(n,i,5),n=n.g,pi(s),pr(n,R))}},vn),ji=et(Wo,function(e,t,r){if((t=Qe(Le,t,!0))!=null&&t.length){ie(e,r,2),Zt(e.g,4*t.length);for(let n=0;n<t.length;n++)r=e.g,pi(t[n]),pr(r,R)}},vn),Jo=X(function(e,t,r){return e.h===5&&(Z(t,r,(e=Yr(e.g))===0?void 0:e),!0)},Bo,vn),nr=X(function(e,t,r){return zo(e,t,r)},Bi,mn),D=X(function(e,t,r){return zo(e,t,r)},Bi,mn),ih=et(function(e,t,r){return e.h!==0&&e.h!==2?e=!1:(t=ft(t,0|t[m],r),e.h==2?wr(e,zr,t):t.push(zr(e.g)),e=!0),e},function(e,t,r){if((t=Qe(vi,t,!1))!=null)for(let n=0;n<t.length;n++)Ro(e,r,t[n])},mn),$r=X(function(e,t,r){return e.h!==0?t=!1:(Z(t,r,(e=zr(e.g))===th?void 0:e),t=!0),t},Bi,mn),en=X(function(e,t,r){return e.h!==0?e=!1:(Z(t,r,Li(e.g,A1)),e=!0),e},function(e,t,r){if(t=(function(n){if(n==null)return n;var i=typeof n;if(i==="bigint")return String(Xn(64,n));if(Yt(n)){if(i==="string")return i=ht(Number(n)),Oe(i)&&i>=0?n=String(i):((i=n.indexOf("."))!==-1&&(n=n.substring(0,i)),n=to(n)),n;if(i==="number")return ro(n)}})(t),t!=null&&(typeof t=="string"&&Is(t),t!=null))switch(ie(e,r,0),typeof t){case"number":e=e.g,St(t),ze(e,R,M);break;case"bigint":r=xo(t,Jr,G1),ze(e.g,r.h,r.g);break;default:r=Is(t),ze(e.g,r.h,r.g)}},z1),L=X(function(e,t,r){return e.h===0&&(Z(t,r,Ze(e.g)),!0)},Go,gn),$s=et(Yo,function(e,t,r){if((t=Qe(Lt,t,!0))!=null)for(let a=0;a<t.length;a++){var n=e,i=r,s=t[a];s!=null&&(ie(n,i,0),br(n.g,s))}},gn),er=et(Yo,function(e,t,r){if((t=Qe(Lt,t,!0))!=null&&t.length){r=Fi(e,r);for(let n=0;n<t.length;n++)br(e.g,t[n]);Ci(e,r)}},gn),vt=X(function(e,t,r){return e.h===0&&(Z(t,r,(e=Ze(e.g))===0?void 0:e),!0)},Go,gn),b=X(function(e,t,r){return e.h===0&&(Z(t,r,xi(e.g)),!0)},jo,Fo),ot=X(function(e,t,r){return e.h===0&&(Z(t,r,(e=xi(e.g))===!1?void 0:e),!0)},jo,Fo),ee=et(function(e,t,r){return e.h===2&&(e=Ri(e),ft(t,0|t[m],r).push(e),!0)},function(e,t,r){if((t=Qe(te,t,!0))!=null)for(let a=0;a<t.length;a++){var n=e,i=r,s=t[a];s!=null&&Tr(n,i,Da(s))}},Mi),He=X(function(e,t,r){return e.h===2&&(Z(t,r,(e=Ri(e))===""?void 0:e),!0)},Vo,Mi),d=X(function(e,t,r){return e.h===2&&(Z(t,r,Ri(e)),!0)},Vo,Mi),O=(function(e,t,r=Ni){return new Qt(e,t,r)})(function(e,t,r,n,i){return e.h===2&&(n=yt(void 0,n),ft(t,0|t[m],r).push(n),Ar(e,n,i),!0)},function(e,t,r,n,i){if(Array.isArray(t)){for(let s=0;s<t.length;s++)Ho(e,t[s],r,n,i);1&(e=0|t[m])||q(t,1|e)}}),S=yn(function(e,t,r,n,i,s){if(e.h!==2)return!1;var a=0|t[m];return vo(t,a,s,r,zt(a)),Ar(e,t=Si(t,n,r),i),!0},Ho),Mt=X(function(e,t,r){return e.h===2&&(Z(t,r,Ii(e)),!0)},Gi,_n),Zo=et(function(e,t,r){return e.h===2&&(e=Ii(e),ft(t,0|t[m],r).push(e),!0)},function(e,t,r){if((t=Qe(ao,t,!1))!=null)for(let a=0;a<t.length;a++){var n=e,i=r,s=t[a];s!=null&&Tr(n,i,pn(s,!0).buffer)}},_n),Qo=X(function(e,t,r){return e.h===0&&(Z(t,r,$e(e.g)),!0)},Ko,Oi),sh=et(function(e,t,r){return(e.h===0||e.h===2)&&(t=ft(t,0|t[m],r),e.h==2?wr(e,$e,t):t.push($e(e.g)),!0)},function(e,t,r){if((t=Qe(Za,t,!0))!=null)for(let a=0;a<t.length;a++){var n=e,i=r,s=t[a];s!=null&&(ie(n,i,0),Zt(n.g,s))}},Oi),ah=X(function(e,t,r){return e.h===0&&(Z(t,r,(e=$e(e.g))===0?void 0:e),!0)},Ko,Oi),v=X(function(e,t,r){return e.h===0&&(Z(t,r,Ze(e.g)),!0)},Xo,Di),Ur=X(function(e,t,r){return e.h===0&&(Z(t,r,(e=Ze(e.g))===0?void 0:e),!0)},Xo,Di),oh=X(function(e,t,r){return e.h!==0?e=!1:(Z(t,r,(function(n){return Li(n,(i,s)=>{var a=-(1&i);return qa(i=(i>>>1|s<<31)^a,s>>>1^a)})})(e.g)),e=!0),e},function(e,t,r){if((t=vi(t))!=null&&(Io(t),t!=null))switch(ie(e,r,0),typeof t){case"number":e=e.g,t=(r=t)<0,Kn(r=2*Math.abs(r)),r=R;let n=M;t&&(r==0?n==0?n=r=4294967295:(n--,r=4294967295):r--),ze(e,R=r,M=n);break;case"bigint":e=e.g,t=t<<BigInt(1)^t>>BigInt(63),R=Number(BigInt.asUintN(32,t)),M=Number(BigInt.asUintN(32,t>>BigInt(32))),ze(e,R,M);break;default:K1(e.g,t)}},Y1);class hh{constructor(t,r){var n=ve;this.g=t,this.h=r,this.m=C,this.o=E,this.defaultValue=void 0,this.j=n.jb!=null?Wa:void 0}register(){an(this)}}function Ge(e,t){return new hh(e,t)}function dt(e,t){return(r,n)=>{e:{let s={ma:!0};n&&Object.assign(s,n),r=bo(r,void 0,void 0,s);try{let a=new e,h=a.A;Ui(t)(h,r);var i=a;break e}catch(a){throw a instanceof RangeError?new SyntaxError:a}finally{To(r)}i=void 0}return i}}function Vi(e){return t=>Uo(t,e)}function kr(e){return function(){return Uo(this,e)}}var uh=[0,Mt,Zo,b,d],ch=[0,He,[0,Ur,[0,$r,vt],Ur,-1,[0,v],Ur,-1],X(qo,Gi,_n)],Dn,Us=class extends p{constructor(e){super(e)}},Bs=[0,He,X(qo,function(e,t,r){if(t!=null){if(t instanceof p){let n=t.mb;return void(n?(t=n(t),t!=null&&Tr(e,r,pn(t,!0).buffer)):Pt(Vn,3))}if(Array.isArray(t))return void Pt(Vn,3)}Gi(e,t,r)},_n)],lh=[0,1,[0,12,L,10,b],[0,7,[0,L,-1]]],Gs=globalThis.trustedTypes,fh=class{constructor(e){this.g=e}toString(){return this.g+""}};function js(e){var t;return Dn===void 0&&(Dn=(function(){var r=null;if(!Gs)return r;try{let n=i=>i;r=Gs.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch{}return r})()),e=(t=Dn)?t.createScriptURL(e):e,new fh(e)}function Fr(e,...t){if(t.length===0)return js(e[0]);var r=e[0];for(let n=0;n<t.length;n++)r+=encodeURIComponent(t[n])+e[n+1];return js(r)}var e2=[0,L,v,b,-1,er,v,-1,b,-1],t2=[0,v,-1,b],Hi=class extends p{constructor(e){super(e)}},r2=[0,b,d,b,v,-1,et(function(e,t,r){return(e.h===0||e.h===2)&&(t=ft(t,0|t[m],r),e.h==2?wr(e,$1,t):t.push(Ze(e.g)),!0)},function(e,t,r){if((t=Qe(Lt,t,!0))!=null&&t.length){r=Fi(e,r);for(let n=0;n<t.length;n++)br(e.g,t[n]);Ci(e,r)}},Di),d,-1,[0,b,-1],v,b,-1,t2],n2=[0,3,b,-1,2,[0,[2],L,S,[0,Qo]],[0,v,b,v,b,v,4,[0,b,d,-1,b]],[0,[3,4],d,-1,S,[0,L],S,[0,v,-1]],[0]],i2=[0,d,-2],Vs=class extends p{constructor(e){super(e)}},s2=[0],dh=class extends p{constructor(e){super(e)}},a2=[0,L,b,1,b,-4],ve=class extends p{constructor(e){super(e,2)}},J={};J[336783863]=[0,d,b,-1,L,[0,[1,2,3,4,5,6,7,8,9],S,s2,S,r2,S,i2,S,a2,S,e2,S,[0,d,-2],S,[0,d,v],S,n2,S,t2],[0,d],b,[0,[1,3],[2,4],S,[0,er],-1,S,[0,ee],-1,O,[0,d,-1]],d];var Hs=[0,$r,-1,ot,-3,$r,er,He,vt,$r,-1,ot,vt,ot,-2,He];function $(e,t){dn(e,3,t)}function x(e,t){dn(e,4,t)}var fe=class extends p{constructor(e){super(e,500)}v(e){return E(this,0,7,e)}},hr=[-1,{}],Ks=[0,d,1,hr],Xs=[0,d,ee,hr];function Se(e,t){dr(e,1,fe,t)}function U(e,t){dn(e,10,t)}function N(e,t){dn(e,15,t)}var _e=class extends p{constructor(e){super(e,500)}v(e){return E(this,0,1001,e)}},o2=[-500,O,[-500,He,-1,ee,-3,[-2,J,b],O,Bs,vt,-1,Ks,Xs,O,[0,He,ot],He,Hs,vt,ee,987,ee],4,O,[-500,d,-1,[-1,{}],998,d],O,[-500,d,ee,-1,[-2,{},b],997,ee,-1],vt,O,[-500,d,ee,hr,998,ee],ee,vt,Ks,Xs,O,[0,He,-1,hr],ee,-2,Hs,He,-1,ot,[0,ot,ah],978,hr,O,Bs];_e.prototype.g=kr(o2);var ph=dt(_e,o2),gh=class extends p{constructor(e){super(e)}},h2=class extends p{constructor(e){super(e)}g(){return Je(this,gh,1)}},u2=[0,O,[0,L,j,d,-1]],Tn=dt(h2,u2),mh=class extends p{constructor(e){super(e)}},vh=class extends p{constructor(e){super(e)}},Pn=class extends p{constructor(e){super(e)}j(){return C(this,mh,2)}g(){return Je(this,vh,5)}},c2=dt(class extends p{constructor(e){super(e)}},[0,ee,er,ji,[0,v,[0,L,-3],[0,j,-3],[0,L,-1,[0,O,[0,L,-2]]],O,[0,j,-1,d,j]],d,-1,D,O,[0,L,j],ee,D]),l2=class extends p{constructor(e){super(e)}},Ot=dt(class extends p{constructor(e){super(e)}},[0,O,[0,j,-4]]),f2=class extends p{constructor(e){super(e)}},Sr=dt(class extends p{constructor(e){super(e)}},[0,O,[0,j,-4]]),_h=class extends p{constructor(e){super(e)}},yh=[0,L,-1,ji,v],d2=class extends p{constructor(e){super(e)}};d2.prototype.g=kr([0,j,-4,D]);var Eh=class extends p{constructor(e){super(e)}},Ah=dt(class extends p{constructor(e){super(e)}},[0,O,[0,1,L,d,u2],D]),Ws=class extends p{constructor(e){super(e)}},wh=class extends p{constructor(e){super(e)}g(){var e=G(this,1,void 0,po);return e??bt()}},bh=class extends p{constructor(e){super(e)}},Ki=[1,2],Th=dt(class extends p{constructor(e){super(e)}},[0,O,[0,Ki,S,[0,ji],S,[0,Mt],L,d],D]),Xi=class extends p{constructor(e){super(e)}},p2=[0,d,L,j,ee,-1],zs=class extends p{constructor(e){super(e)}},kh=[0,b,-1],tn=class extends p{constructor(e){super(e)}g(){return lo(this,Hi,2,At)}},At=[1,2,3,4,5,6],rn=class extends p{constructor(e){super(e)}g(){return G(this,1,void 0,po)!=null}j(){return te(G(this,2))!=null}},B=class extends p{constructor(e){super(e)}},g2=[0,Mt,d,[0,L,D,-1],[0,en,D]],K=[0,g2,b,[0,At,S,a2,S,r2,S,e2,S,s2,S,i2,S,n2],v],Sh=Vi(K),kn=class extends p{constructor(e){super(e)}},Wi=[0,K,j,-1,L],Lh=Ge(502141897,kn);J[502141897]=Wi;var xh=dt(class extends p{constructor(e){super(e)}},[0,[0,v,-1,nh,sh],yh]),m2=class extends p{constructor(e){super(e)}},v2=class extends p{constructor(e){super(e)}},Zn=[0,K,j,[0,K],b],Rh=Ge(508968150,v2);J[508968150]=[0,K,Wi,Zn,j,[0,[0,g2]]],J[508968149]=Zn;var Ct=class extends p{constructor(e){super(e)}j(){return C(this,Xi,2)}g(){w(this,2)}},_2=[0,K,p2];J[478825465]=_2;var Ih=class extends p{constructor(e){super(e)}},y2=class extends p{constructor(e){super(e)}},zi=class extends p{constructor(e){super(e)}},Yi=class extends p{constructor(e){super(e)}},E2=class extends p{constructor(e){super(e)}},Ys=[0,K,[0,K],_2,-1],A2=[0,K,j,L],qi=[0,K,j],w2=[0,K,A2,qi,j],Fh=Ge(479097054,E2);J[479097054]=[0,K,w2,Ys],J[463370452]=Ys,J[464864288]=A2;var Ch=Ge(462713202,Yi);J[462713202]=w2,J[474472470]=qi;var Nh=class extends p{constructor(e){super(e)}},b2=class extends p{constructor(e){super(e)}},T2=class extends p{constructor(e){super(e)}},k2=class extends p{constructor(e){super(e)}},Ji=[0,K,j,-1,L],Qn=[0,K,j,b];k2.prototype.g=kr([0,K,qi,[0,K],Wi,Zn,Ji,Qn]);var S2=class extends p{constructor(e){super(e)}},Mh=Ge(456383383,S2);J[456383383]=[0,K,p2];var L2=class extends p{constructor(e){super(e)}},Oh=Ge(476348187,L2);J[476348187]=[0,K,kh];var x2=class extends p{constructor(e){super(e)}},qs=class extends p{constructor(e){super(e)}},R2=[0,v,-1],Dh=Ge(458105876,class extends p{constructor(e){super(e)}g(){var e=this.A,t=0|e[m],r=le(this,t);return e=(function(n,i,s,a){var h=qs;!a&&Jt(n)&&(s=0|(i=n.A)[m]);var o=qe(i,2);if(n=!1,o==null){if(a)return ks();o=[]}else if(o.constructor===Ye){if(!(2&o.M)||a)return o;o=o.ea()}else Array.isArray(o)?n=!!(2&o[m]):o=[];if(a){if(!o.length)return ks();n||(n=!0,vr(o))}else n&&(n=!1,lr(o),o=go(o));return!n&&32&s&&mr(o,32),s=H(i,s,2,a=new Ye(o,h,T1,void 0)),n||lt(i,s),a})(this,e,t,r),!r&&qs&&(e.Fa=!0),e}});J[458105876]=[0,R2,rh,[!0,D,[0,d,-1,ee]],[0,er,b,v],b];var Zi=class extends p{constructor(e){super(e)}},I2=Ge(458105758,Zi);J[458105758]=[0,K,d,R2];var Ph=class extends p{constructor(e){super(e)}},$h=class extends p{constructor(e){super(e)}},Uh=class extends p{constructor(e){super(e)}},Bh=Vi([0,O,[0,Ur,O,[0,Jo,-1],ot]]),$n=class extends p{constructor(e){super(e)}},Js=[0,Jo,-1,ot],Gh=class extends p{constructor(e){super(e)}},F2=class extends p{constructor(e){super(e)}},ei=[1,2];F2.prototype.g=kr([0,ei,S,Js,S,[0,O,Js]]);var C2=class extends p{constructor(e){super(e)}},jh=Ge(443442058,C2);J[443442058]=[0,K,d,L,j,ee,-1,b,j],J[514774813]=Ji;var N2=class extends p{constructor(e){super(e)}},Vh=Ge(516587230,N2);function ti(e,t){return t=t?t.clone():new Xi,e.displayNamesLocale!==void 0?w(t,1,Xe(e.displayNamesLocale)):e.displayNamesLocale===void 0&&w(t,1),e.maxResults!==void 0?Pe(t,2,e.maxResults):"maxResults"in e&&w(t,2),e.scoreThreshold!==void 0?y(t,3,e.scoreThreshold):"scoreThreshold"in e&&w(t,3),e.categoryAllowlist!==void 0?Wr(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&w(t,4),e.categoryDenylist!==void 0?Wr(t,5,e.categoryDenylist):"categoryDenylist"in e&&w(t,5),t}function M2(e){var t=Number(e);return Number.isSafeInteger(t)?t:String(e)}function Qi(e,t=-1,r=""){return{categories:e.map(n=>({index:be(n,1)??0??-1,score:V(n,2)??0,categoryName:te(G(n,3))??""??"",displayName:te(G(n,4))??""??""})),headIndex:t,headName:r}}function Hh(e){var t={classifications:Je(e,Eh,1).map(r=>{var n;return Qi(((n=C(r,h2,4))==null?void 0:n.g())??[],be(r,2)??0,te(G(r,3))??"")})};return(function(r){return r==null?r:typeof r=="bigint"?(Hn(r)?r=Number(r):(r=_t(64,r),r=Hn(r)?Number(r):String(r)),r):Yt(r)?typeof r=="number"?cn(r):Hr(r):void 0})(G(e,2,void 0,Kr))!=null&&(t.timestampMs=M2(G(e,2,void 0,Kr)??co)),t}function O2(e){var a,h;var t=mt(e,3,Le,gt()),r=mt(e,2,Lt,gt()),n=mt(e,1,te,gt()),i=mt(e,9,te,gt()),s={categories:[],keypoints:[]};for(let o=0;o<t.length;o++)s.categories.push({score:t[o],index:r[o]??-1,categoryName:n[o]??"",displayName:i[o]??""});if((t=(a=C(e,Pn,4))==null?void 0:a.j())&&(s.boundingBox={originX:be(t,1,nt)??0,originY:be(t,2,nt)??0,width:be(t,3,nt)??0,height:be(t,4,nt)??0,angle:0}),(h=C(e,Pn,4))==null?void 0:h.g().length)for(let o of C(e,Pn,4).g())s.keypoints.push({x:G(o,1,nt,Le)??0,y:G(o,2,nt,Le)??0,score:G(o,4,nt,Le)??0,label:te(G(o,3,nt))??""});return s}function Sn(e){var t=[];for(let r of Je(e,f2,1))t.push({x:V(r,1)??0,y:V(r,2)??0,z:V(r,3)??0,visibility:V(r,4)??0});return t}function ur(e){var t=[];for(let r of Je(e,l2,1))t.push({x:V(r,1)??0,y:V(r,2)??0,z:V(r,3)??0,visibility:V(r,4)??0});return t}function Zs(e){return Array.from(e,t=>t>127?t-256:t)}function Qs(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);var r=0,n=0,i=0;for(let s=0;s<e.length;s++)r+=e[s]*t[s],n+=e[s]*e[s],i+=t[s]*t[s];if(n<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*i)}J[516587230]=[0,K,Ji,Qn,j],J[518928384]=Qn;var Cr,Kh=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 D2(e){if(e)return!0;if(Cr===void 0)try{await WebAssembly.instantiate(Kh),Cr=!0}catch{Cr=!1}return Cr}async function Nr(e,t,r){return{wasmLoaderPath:`${t}/${e}_${r=`wasm${r?"_module":""}${await D2(r)?"":"_nosimd"}_internal`}.js`,wasmBinaryPath:`${t}/${e}_${r}.wasm`}}var ir=class{};function ea(e){return w(new ri,1,We(e))}ir.forVisionTasks=function(e,t=!1){return Nr("vision",e??Fr``,t)},ir.forTextTasks=function(e,t=!1){return Nr("text",e??Fr``,t)},ir.forGenAiTasks=function(e,t=!1){return Nr("genai",e??Fr``,t)},ir.forAudioTasks=function(e,t=!1){return Nr("audio",e??Fr``,t)},ir.isSimdSupported=function(e=!1){return D2(e)};var ri=class extends p{constructor(e){super(e)}},Xh=class extends p{constructor(e){super(e)}},ta=[0,v,2,en,-2,D,O,[0,v,D]],Wh=class extends p{constructor(e){super(e)}},zh=class extends p{constructor(e){super(e)}};function ni(e,t){return w(e,1,We(t))}function ii(e,t){return w(e,2,We(t))}var si=class extends p{constructor(e){super(e)}},nn=[3,4,5,6,7],Yh=class extends p{constructor(e){super(e)}},P2=class extends p{constructor(e){super(e)}};P2.prototype.g=kr([0,[0,v,d,-3,v],[0,nn,v,-1,S,[0,v,d,en],S,ta,S,[0,1,ta],S,[0,v],S,[0,v,d,en]]]);var qh=class{constructor(){this.g=typeof AbortController<"u"}async send(e,t,r){var n=this.g?new AbortController:void 0,i=n&&e.la>0?setTimeout(()=>{n.abort()},e.la):void 0;try{let s=await fetch(e.url,{method:e.bb,headers:{...e.ab},...e.body&&{body:e.body},...e.withCredentials&&{credentials:"include"},signal:e.la&&n?n.signal:null});s.status===200?t==null||t(await s.text()):r==null||r(s.status)}catch(s){(s==null?void 0:s.name)==="AbortError"?r==null||r(408):r==null||r(400)}finally{clearTimeout(i)}}},Jh=class extends p{constructor(e){super(e,37)}},ra=[-4,{},lh,v,ch],na=[0,d,v,1,d,-1,v,1,v,1,D],ia=[0,v,d,-2],sa=[0,d,v],aa=[0,d,v],oa=[0,b,-3],ha=[0,v,d,-1,D,L,-1,d,-5,O,[0,d,-4],-1,b,[0,b,-3],v],Zh=class extends p{constructor(e){super(e,19)}},Qh=Vi([-19,{},[0,v,1,[0,d,-6,D,L,d,-1,D],1,[0,d,1,d,-5],d,-1,[0,v,d,-8],[0,d,-3],[0,d,v,d,-2],[0,d,-1,v,d,-1,v,d,-1,[0,O,[0,d,-1],b,d,-5],[0,v,b,L,-2]],D,[0,d,-3,D,L,d,-1],[0,v,d,-1],[0,d,-9],[0,d,-6,v,d,1,d,b,v,-1,b,d,-2,v,d,v,d,L,-1],1,[0,v],1,[0,d,-4],1,na,[0,[1,2,3,4,5,6],S,na,S,sa,S,aa,S,[0,v],S,ha,S,ia],sa,aa,ha,[0,[0,v,d,-1,D,L,-1,d,-4,O,[0,d,-4],-1,1,oa],[0,v,d,-1,D,L,-1,d,-4,oa]],ia,[0,d,[0,L,-3,v],v,-2,[0,L,-1],b],4,[0,d,v,d,-1,D,v,d,-1,v,L,-1]],v,O,[-37,{},nr,d,O,[0,d,-1],Mt,1,Mt,[0,ee,-1,$s,ih,-1],d,[0,L,d,-1],b,L,D,d,-1,oh,uh,nr,Mt,v,$s,D,-1,[0,v,-1],d,b,d,er,d,-1,Ps,1,Ps,ra,b,[0,v,[0,j,L,-2],[0,j]],[0,v,D]],nr,Zo,d,-1,nr,v,-1,[0,b,-1,v,b],[0,D,-1,d],[0,nr,b,D],D,1,Qo,1,ra]),eu=class{constructor(e){this.h=[],this.m=new qh,this.j=e??"",this.g=setInterval(()=>{this.flush()},6e4)}close(){this.g!==void 0&&(clearInterval(this.g),this.g=void 0),this.flush()}flush(e,t){if(this.error)t==null||t("net-send-failed");else if(this.h.length===0)e==null||e();else{var r=this.h;this.h=[],r=(function(n){var i=new Zh;return zn(i=w(i,2,We(1786)),3,n)})(r),r=Qh(r),this.m.send({url:"https://odml.pa.googleapis.com/v1/log",bb:"POST",la:1e4,body:r,hb:2,ab:{"Content-Type":"application/x-protobuf","x-goog-api-key":this.j},withCredentials:!1},()=>{e==null||e()},n=>{this.error=Error(`Logging failed with HTTP error: ${n}`),this.h=[],this.g!==void 0&&(clearInterval(this.g),this.g=void 0),t==null||t("net-send-failed",n)})}}};class ua{constructor(){this.aa=this.U=this.X=this.R=this.V=this.T=this.P=0}}function ai(e,t){var r=new P2;r=E(r,0,1,e.B),r=E(r,0,2,t),t=w(t=new Jh,6,on(r=r.g(),!1)),(e=e.l).error||e.h.push(t)}function ca(e,t){var r={P:t.P-e.j.P,T:t.T-e.j.T,V:t.V-e.j.V,R:t.R-e.j.R,X:t.X-e.j.X,U:t.U,aa:t.aa},n=ii(ni(new si,e.C),1);r=$2(e,r),ai(e,n=De(n,4,nn,r)),e.j=t}function $2(e,t){var r=new Xh;return e=Dr(e=Mn(e=w(r,1,We(e.D)),7,t.R),5,t.U),e=Dr(e,6,t.aa),t.V>0&&Dr(e,4,t.X/t.V),t.P!==0&&(r=Mn(r=ea(3),2,t.P),dr(e,8,ri,r)),t.T!==0&&(t=Mn(r=ea(4),2,t.T),dr(e,8,ri,t)),e}var tu=class{constructor(e,t,r){this.u=performance.now(),this.m=performance.now(),this.h=new Map,this.o=0,this.g=new ua,this.j=new ua,this.l=new eu(r),this.C=(function(n){switch(n){case"AudioClassifier":return 4;case"AudioEmbedder":return 5;case"TextClassifier":return 6;case"TextEmbedder":return 7;case"GestureRecognizer":return 8;case"HandDetector":return 9;case"HandLandmarker":return 10;case"ImageClassifier":return 11;case"ImageEmbedder":return 12;case"ImageSegmenter":return 13;case"ObjectDetector":return 14;case"FaceDetector":return 15;case"FaceLandmarker":return 16;case"InteractiveSegmenter":case"InteractiveSegmenterLegacy":return 18;case"HolisticLandmarker":return 20;case"LlmInference":return 21;case"LanguageDetector":return 22;case"PoseLandmarker":return 23;default:return 0}})(e),this.D=(function(n){switch(n){case"IMAGE":return 11;case"VIDEO":return 12;case"LIVE_STREAM":return 13;case"AUDIO_CLIPS":return 14;case"AUDIO_STREAM":return 15;default:return 10}})(t),e=new Yh,typeof window>"u"?t=0:(t=navigator.userAgent,t=/Android/i.test(t)?1:/iPhone|iPad|iPod/i.test(t)?2:/Windows/i.test(t)?5:/Macintosh/i.test(t)?4:/Linux/i.test(t)?3:0),e=w(e,1,We(t)),e=w(e,2,Xe("")),e=w(e,3,Xe("")),e=w(e,4,Xe("1.0.1")),e=w(e,5,Xe("")),this.B=w(e,6,We(4))}ya(){var e=new zh;e=Dr(e=w(e,1,We(this.D)),3,performance.now()-this.u),ai(this,e=De(ii(ni(new si,this.C),0),3,nn,e)),this.m=performance.now()}za(e){var t=this.h.get(e);if(t!==void 0&&(this.h.delete(e),e=performance.now()-t,++this.g.V,this.g.X+=e,this.g.U=Math.max(this.g.U,e),this.o=Math.max(this.o,e),performance.now()>this.m+3e4)){for(let[r,n]of this.h.entries())e=r,n<t&&(this.g.R++,this.h.delete(e));t={...this.g,aa:performance.now()-this.m},this.g.U=0,this.m=performance.now(),ca(this,t)}}xa(){var e={...this.g,R:this.g.R+this.h.size,U:this.o,aa:performance.now()-this.u};ca(this,e);var t=new Wh;t=E(t,0,2,e=$2(this,e)),ai(this,t=De(e=ii(ni(new si,this.C),2),5,nn,t))}close(){var e=this.l;typeof e.close=="function"?e.close():e.flush()}};function es(){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 la(e){if(typeof importScripts!="function"){let t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise((r,n)=>{t.addEventListener("load",()=>{r()},!1),t.addEventListener("error",i=>{n(i)},!1),document.body.appendChild(t)})}try{importScripts(e.toString())}catch(t){if(!(t instanceof TypeError))throw t;{let r=self.import;r?await r(e.toString()):await import(e.toString())}}}function ts(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 _(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),r(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function U2(e,t,r){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(r?e.i._bindTextureToStream(r):e.i._bindTextureToCanvas(),!(r=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&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);var[n,i]=ts(t);return!e.j||n===e.i.canvas.width&&i===e.i.canvas.height||(e.i.canvas.width=n,e.i.canvas.height=i),[n,i]}function fa(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");var n=new Uint32Array(t.length);for(let i=0;i<t.length;i++)n[i]=e.i.stringToNewUTF8(t[i]);t=e.i._malloc(4*n.length),e.i.HEAPU32.set(n,t>>2),r(t);for(let i of n)e.i._free(i);e.i._free(t)}function Ce(e,t,r){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=r}function it(e,t,r){var n=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(i,s,a)=>{s?(r(n,a),n=[]):n.push(i)}}var B2=class{constructor(e,t){this.j=!0,this.i=e,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",t!==void 0?this.i.canvas=t:es()?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){var 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){var r=e.length,n=this.i._malloc(r);this.i.HEAPU8.set(e,n),t?this.i._changeBinaryGraph(r,n):this.i._changeTextGraph(r,n),this.i._free(n)}configureAudio(e,t,r,n,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),_(this,n||"input_audio",s=>{_(this,i=i||"audio_header",a=>{this.i._configureAudio(s,a,e,t??0,r)})})}setAutoResizeCanvas(e){this.j=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}ja(e){Ce(this,"__graph_config__",t=>{e(t)}),_(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,r){this.addAudioToStreamWithShape(e,0,0,t,r)}addAudioToStreamWithShape(e,t,r,n,i){var s=4*e.length;this.h!==s&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(s),this.h=s),this.i.HEAPF32.set(e,this.g/4),_(this,n,a=>{this.i._addAudioToInputStream(this.g,t,r,a,i)})}addGpuBufferToStream(e,t,r){_(this,t,n=>{var[i,s]=U2(this,e,n);this.i._addBoundTextureToStream(n,i,s,r)})}addBoolToStream(e,t,r){_(this,t,n=>{this.i._addBoolToInputStream(e,n,r)})}addDoubleToStream(e,t,r){_(this,t,n=>{this.i._addDoubleToInputStream(e,n,r)})}addFloatToStream(e,t,r){_(this,t,n=>{this.i._addFloatToInputStream(e,n,r)})}addIntToStream(e,t,r){_(this,t,n=>{this.i._addIntToInputStream(e,n,r)})}addUintToStream(e,t,r){_(this,t,n=>{this.i._addUintToInputStream(e,n,r)})}addStringToStream(e,t,r){_(this,t,n=>{_(this,e,i=>{this.i._addStringToInputStream(i,n,r)})})}addStringRecordToStream(e,t,r){_(this,t,n=>{fa(this,Object.keys(e),i=>{fa(this,Object.values(e),s=>{this.i._addFlatHashMapToInputStream(i,s,Object.keys(e).length,n,r)})})})}addProtoToStream(e,t,r,n){_(this,r,i=>{_(this,t,s=>{var a=this.i._malloc(e.length);this.i.HEAPU8.set(e,a),this.i._addProtoToInputStream(a,e.length,s,i,n),this.i._free(a)})})}addEmptyPacketToStream(e,t){_(this,e,r=>{this.i._addEmptyPacketToInputStream(r,t)})}addBoolVectorToStream(e,t,r){_(this,t,n=>{var i=this.i._allocateBoolVector(e.length);if(!i)throw Error("Unable to allocate new bool vector on heap.");for(let s of e)this.i._addBoolVectorEntry(i,s);this.i._addBoolVectorToInputStream(i,n,r)})}addDoubleVectorToStream(e,t,r){_(this,t,n=>{var i=this.i._allocateDoubleVector(e.length);if(!i)throw Error("Unable to allocate new double vector on heap.");for(let s of e)this.i._addDoubleVectorEntry(i,s);this.i._addDoubleVectorToInputStream(i,n,r)})}addFloatVectorToStream(e,t,r){_(this,t,n=>{var i=this.i._allocateFloatVector(e.length);if(!i)throw Error("Unable to allocate new float vector on heap.");for(let s of e)this.i._addFloatVectorEntry(i,s);this.i._addFloatVectorToInputStream(i,n,r)})}addIntVectorToStream(e,t,r){_(this,t,n=>{var i=this.i._allocateIntVector(e.length);if(!i)throw Error("Unable to allocate new int vector on heap.");for(let s of e)this.i._addIntVectorEntry(i,s);this.i._addIntVectorToInputStream(i,n,r)})}addUintVectorToStream(e,t,r){_(this,t,n=>{var i=this.i._allocateUintVector(e.length);if(!i)throw Error("Unable to allocate new unsigned int vector on heap.");for(let s of e)this.i._addUintVectorEntry(i,s);this.i._addUintVectorToInputStream(i,n,r)})}addStringVectorToStream(e,t,r){_(this,t,n=>{var i=this.i._allocateStringVector(e.length);if(!i)throw Error("Unable to allocate new string vector on heap.");for(let s of e)_(this,s,a=>{this.i._addStringVectorEntry(i,a)});this.i._addStringVectorToInputStream(i,n,r)})}addBoolToInputSidePacket(e,t){_(this,t,r=>{this.i._addBoolToInputSidePacket(e,r)})}addDoubleToInputSidePacket(e,t){_(this,t,r=>{this.i._addDoubleToInputSidePacket(e,r)})}addFloatToInputSidePacket(e,t){_(this,t,r=>{this.i._addFloatToInputSidePacket(e,r)})}addIntToInputSidePacket(e,t){_(this,t,r=>{this.i._addIntToInputSidePacket(e,r)})}addUintToInputSidePacket(e,t){_(this,t,r=>{this.i._addUintToInputSidePacket(e,r)})}addStringToInputSidePacket(e,t){_(this,t,r=>{_(this,e,n=>{this.i._addStringToInputSidePacket(n,r)})})}addProtoToInputSidePacket(e,t,r){_(this,r,n=>{_(this,t,i=>{var s=this.i._malloc(e.length);this.i.HEAPU8.set(e,s),this.i._addProtoToInputSidePacket(s,e.length,i,n),this.i._free(s)})})}addBoolVectorToInputSidePacket(e,t){_(this,t,r=>{var n=this.i._allocateBoolVector(e.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(let i of e)this.i._addBoolVectorEntry(n,i);this.i._addBoolVectorToInputSidePacket(n,r)})}addDoubleVectorToInputSidePacket(e,t){_(this,t,r=>{var n=this.i._allocateDoubleVector(e.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(let i of e)this.i._addDoubleVectorEntry(n,i);this.i._addDoubleVectorToInputSidePacket(n,r)})}addFloatVectorToInputSidePacket(e,t){_(this,t,r=>{var n=this.i._allocateFloatVector(e.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(let i of e)this.i._addFloatVectorEntry(n,i);this.i._addFloatVectorToInputSidePacket(n,r)})}addIntVectorToInputSidePacket(e,t){_(this,t,r=>{var n=this.i._allocateIntVector(e.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(let i of e)this.i._addIntVectorEntry(n,i);this.i._addIntVectorToInputSidePacket(n,r)})}addUintVectorToInputSidePacket(e,t){_(this,t,r=>{var n=this.i._allocateUintVector(e.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(let i of e)this.i._addUintVectorEntry(n,i);this.i._addUintVectorToInputSidePacket(n,r)})}addStringVectorToInputSidePacket(e,t){_(this,t,r=>{var n=this.i._allocateStringVector(e.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(let i of e)_(this,i,s=>{this.i._addStringVectorEntry(n,s)});this.i._addStringVectorToInputSidePacket(n,r)})}attachBoolListener(e,t){Ce(this,e,t),_(this,e,r=>{this.i._attachBoolListener(r)})}attachBoolVectorListener(e,t){it(this,e,t),_(this,e,r=>{this.i._attachBoolVectorListener(r)})}attachIntListener(e,t){Ce(this,e,t),_(this,e,r=>{this.i._attachIntListener(r)})}attachIntVectorListener(e,t){it(this,e,t),_(this,e,r=>{this.i._attachIntVectorListener(r)})}attachUintListener(e,t){Ce(this,e,t),_(this,e,r=>{this.i._attachUintListener(r)})}attachUintVectorListener(e,t){it(this,e,t),_(this,e,r=>{this.i._attachUintVectorListener(r)})}attachDoubleListener(e,t){Ce(this,e,t),_(this,e,r=>{this.i._attachDoubleListener(r)})}attachDoubleVectorListener(e,t){it(this,e,t),_(this,e,r=>{this.i._attachDoubleVectorListener(r)})}attachFloatListener(e,t){Ce(this,e,t),_(this,e,r=>{this.i._attachFloatListener(r)})}attachFloatVectorListener(e,t){it(this,e,t),_(this,e,r=>{this.i._attachFloatVectorListener(r)})}attachStringListener(e,t){Ce(this,e,t),_(this,e,r=>{this.i._attachStringListener(r)})}attachStringVectorListener(e,t){it(this,e,t),_(this,e,r=>{this.i._attachStringVectorListener(r)})}attachProtoListener(e,t,r){Ce(this,e,t),_(this,e,n=>{this.i._attachProtoListener(n,r||!1)})}attachProtoVectorListener(e,t,r){it(this,e,t),_(this,e,n=>{this.i._attachProtoVectorListener(n,r||!1)})}attachAudioListener(e,t,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),Ce(this,e,(n,i)=>{n=new Float32Array(n.buffer,n.byteOffset,n.length/4),t(n,i)}),_(this,e,n=>{this.i._attachAudioListener(n,r||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}};function G2(e){return class extends e{get pa(){return this.i}Sa(){if(typeof this.pa._mediapipeLoggerGetEncodedApiKey=="function"){let t=this.pa._mediapipeLoggerGetEncodedApiKey();return this.pa._decodeBase64(t)}}}}function j2(e){return class extends e{Za(){this.i._registerModelResourcesGraphService()}}}var ru=G2(j2(B2)),nu=class extends ru{};async function iu(e,t,r,n){return e=await(async(i,s,a,h,o)=>{if(s&&await la(s),!self.ModuleFactory||a&&(await la(a),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&o&&((s=self.Module).locateFile=o.locateFile,o.mainScriptUrlOrBlob&&(s.mainScriptUrlOrBlob=o.mainScriptUrlOrBlob)),o=await self.ModuleFactory(self.Module||o),self.ModuleFactory=self.Module=void 0,new i(o,h)})(e,r.wasmLoaderPath,r.assetLoaderPath,t,{locateFile:i=>i.endsWith(".wasm")?r.wasmBinaryPath.toString():r.assetBinaryPath&&i.endsWith(".data")?r.assetBinaryPath.toString():i}),(function(i,s){s=s.runningMode??"";var a=i.g.Sa();i.m=new tu(i.C(),s,a)})(e,n),await e.v(n),e}async function Br(e,t,r,n){return iu(e,t,r,n)}function Un(e,t){var r=C(e.baseOptions,rn,1)||new rn;typeof t=="string"?(w(r,2,Xe(t)),w(r,1)):t instanceof Uint8Array&&(w(r,1,on(t,!1)),w(r,2)),E(e.baseOptions,0,1,r)}function da(e){try{let t=e.K.length;if(t===1)throw Error(e.K[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.K.map(r=>r.message).join(", "))}finally{e.K=[]}}function g(e,t){e.I=Math.max(e.I,t)}function Ln(e,t){e.D=new fe,ge(e.D,2,"PassThroughCalculator"),$(e.D,"free_memory"),x(e.D,"free_memory_unused_out"),U(t,"free_memory"),Se(t,e.D)}function Vt(e,t){$(e.D,t),x(e.D,t+"_unused_out")}function xn(e){e.g.addBoolToStream(!0,"free_memory",e.I)}var sn=class{constructor(e){this.g=e,this.K=[],this.I=0,this.g.setAutoRenderToScreen(!1)}j(e,t=!0){var r,n,i,s,a,h;if(t){let o=e.baseOptions||{};if((r=e.baseOptions)!=null&&r.modelAssetBuffer&&((n=e.baseOptions)!=null&&n.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((i=C(this.baseOptions,rn,1))!=null&&i.g()||(s=C(this.baseOptions,rn,1))!=null&&s.j()||(a=e.baseOptions)!=null&&a.modelAssetBuffer||(h=e.baseOptions)!=null&&h.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if((function(f,u){var c=C(f.baseOptions,tn,3);if(!c){var l=c=new tn,A=new Vs;De(l,4,At,A)}"delegate"in u&&(u.delegate==="GPU"?(u=c,l=new Hi,De(u,2,At,l)):(u=c,l=new Vs,De(u,4,At,l))),E(f.baseOptions,0,3,c)})(this,o),o.modelAssetPath)return fetch(o.modelAssetPath.toString()).then(f=>{if(f.ok)return f.arrayBuffer();throw Error(`Failed to fetch model: ${o.modelAssetPath} (${f.status})`)}).then(f=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(f),!0,!1,!1),Un(this,"/model.dat"),this.o(),this.L()});if(o.modelAssetBuffer instanceof Uint8Array)Un(this,o.modelAssetBuffer);else if(o.modelAssetBuffer)return(async function(f){for(var u=[],c=0;;){let{done:l,value:A}=await f.read();if(l)break;u.push(A),c+=A.length}if(u.length===0)return new Uint8Array(0);if(u.length===1)return u[0];f=new Uint8Array(c),c=0;for(let l of u)f.set(l,c),c+=l.length;return f})(o.modelAssetBuffer).then(f=>{Un(this,f),this.o(),this.L()})}return this.o(),this.L(),Promise.resolve()}L(){}ja(){var e;if(this.g.ja(t=>{e=ph(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){var r;this.g.attachErrorListener((n,i)=>{this.K.push(Error(i))}),this.g.Za(),this.g.setGraph(e,t),(r=this.m)==null||r.ya(),this.D=void 0,da(this)}finishProcessing(e){this.g.finishProcessing(),da(this),this.m&&e!==void 0&&this.m.za(e)}close(){var e,t;this.D=void 0,(e=this.m)==null||e.xa(),(t=this.m)==null||t.close(),this.g.closeGraph()}};function ne(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}sn.prototype.close=sn.prototype.close;class su{constructor(t,r,n,i){this.g=t,this.h=r,this.m=n,this.j=i}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.j)}}function pa(e,t,r){var n=e.g;if(r=ne(n.createShader(r),"Failed to create WebGL shader"),n.shaderSource(r,t),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${n.getShaderInfoLog(r)}`);return n.attachShader(e.h,r),r}function ga(e,t){var r=e.g,n=ne(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(n);var i=ne(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,i),r.enableVertexAttribArray(e.F),r.vertexAttribPointer(e.F,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);var s=ne(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(e.K),r.vertexAttribPointer(e.K,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),r.STATIC_DRAW),r.bindBuffer(r.ARRAY_BUFFER,null),r.bindVertexArray(null),new su(r,n,i,s)}function rs(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function Lr(e,t,r,n){return rs(e,t),e.h||(e.m(),e.I()),r?(e.l||(e.l=ga(e,!0)),r=e.l):(e.D||(e.D=ga(e,!1)),r=e.D),t.useProgram(e.h),r.bind(),e.j(),e=n(),r.g.bindVertexArray(null),e}function ut(e,t,r){return rs(e,t),e=ne(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,r??t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,r??t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function Rn(e,t,r){rs(e,t),e.C||(e.C=ne(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.C),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,r,0)}function ns(e){var t;(t=e.g)==null||t.bindFramebuffer(e.g.FRAMEBUFFER,null)}var It=class{B(){return`
|
|
2
|
+
precision mediump float;
|
|
3
|
+
varying vec2 vTex;
|
|
4
|
+
uniform sampler2D inputTexture;
|
|
5
|
+
void main() {
|
|
6
|
+
gl_FragColor = texture2D(inputTexture, vTex);
|
|
7
|
+
}
|
|
8
|
+
`}m(){var e=this.g;if(this.h=ne(e.createProgram(),"Failed to create WebGL program"),this.da=pa(this,`
|
|
9
|
+
attribute vec2 aVertex;
|
|
10
|
+
attribute vec2 aTex;
|
|
11
|
+
varying vec2 vTex;
|
|
12
|
+
void main(void) {
|
|
13
|
+
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
14
|
+
vTex = aTex;
|
|
15
|
+
}`,e.VERTEX_SHADER),this.Z=pa(this,this.B(),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.F=e.getAttribLocation(this.h,"aVertex"),this.K=e.getAttribLocation(this.h,"aTex")}I(){}j(){}close(){if(this.h){let e=this.g;e.deleteProgram(this.h),e.deleteShader(this.da),e.deleteShader(this.Z)}this.C&&this.g.deleteFramebuffer(this.C),this.D&&this.D.close(),this.l&&this.l.close()}},au=class extends It{B(){return`
|
|
16
|
+
precision mediump float;
|
|
17
|
+
uniform sampler2D backgroundTexture;
|
|
18
|
+
uniform sampler2D maskTexture;
|
|
19
|
+
uniform sampler2D colorMappingTexture;
|
|
20
|
+
varying vec2 vTex;
|
|
21
|
+
void main() {
|
|
22
|
+
vec4 backgroundColor = texture2D(backgroundTexture, vTex);
|
|
23
|
+
float category = texture2D(maskTexture, vTex).r;
|
|
24
|
+
vec4 categoryColor = texture2D(colorMappingTexture, vec2(category, 0.0));
|
|
25
|
+
gl_FragColor = mix(backgroundColor, categoryColor, categoryColor.a);
|
|
26
|
+
}
|
|
27
|
+
`}I(){var e=this.g;e.activeTexture(e.TEXTURE1),this.u=ut(this,e,e.LINEAR),e.activeTexture(e.TEXTURE2),this.o=ut(this,e,e.NEAREST)}m(){super.m();var e=this.g;this.O=ne(e.getUniformLocation(this.h,"backgroundTexture"),"Uniform location"),this.Y=ne(e.getUniformLocation(this.h,"colorMappingTexture"),"Uniform location"),this.L=ne(e.getUniformLocation(this.h,"maskTexture"),"Uniform location")}j(){super.j();var e=this.g;e.uniform1i(this.L,0),e.uniform1i(this.O,1),e.uniform1i(this.Y,2)}close(){this.u&&this.g.deleteTexture(this.u),this.o&&this.g.deleteTexture(this.o),super.close()}},ou=class extends It{B(){return`
|
|
28
|
+
precision mediump float;
|
|
29
|
+
uniform sampler2D maskTexture;
|
|
30
|
+
uniform sampler2D defaultTexture;
|
|
31
|
+
uniform sampler2D overlayTexture;
|
|
32
|
+
varying vec2 vTex;
|
|
33
|
+
void main() {
|
|
34
|
+
float confidence = texture2D(maskTexture, vTex).r;
|
|
35
|
+
vec4 defaultColor = texture2D(defaultTexture, vTex);
|
|
36
|
+
vec4 overlayColor = texture2D(overlayTexture, vTex);
|
|
37
|
+
// Apply the alpha from the overlay and merge in the default color
|
|
38
|
+
overlayColor = mix(defaultColor, overlayColor, overlayColor.a);
|
|
39
|
+
gl_FragColor = mix(defaultColor, overlayColor, confidence);
|
|
40
|
+
}
|
|
41
|
+
`}I(){var e=this.g;e.activeTexture(e.TEXTURE1),this.o=ut(this,e),e.activeTexture(e.TEXTURE2),this.u=ut(this,e)}m(){super.m();var e=this.g;this.L=ne(e.getUniformLocation(this.h,"defaultTexture"),"Uniform location"),this.O=ne(e.getUniformLocation(this.h,"overlayTexture"),"Uniform location"),this.J=ne(e.getUniformLocation(this.h,"maskTexture"),"Uniform location")}j(){super.j();var e=this.g;e.uniform1i(this.J,0),e.uniform1i(this.L,1),e.uniform1i(this.O,2)}close(){this.o&&this.g.deleteTexture(this.o),this.u&&this.g.deleteTexture(this.u),super.close()}};function Ke(e,t){switch(t){case 0:return e.g.find(r=>r instanceof Uint8Array);case 1:return e.g.find(r=>r instanceof Float32Array);case 2:return e.g.find(r=>typeof WebGLTexture<"u"&&r instanceof WebGLTexture);default:throw Error(`Type is not supported: ${t}`)}}function oi(e){var t=Ke(e,1);if(!t){if(t=Ke(e,0))t=new Float32Array(t).map(n=>n/255);else{t=new Float32Array(e.width*e.height);let n=Ht(e);var r=is(e);if(Rn(r,n,V2(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){r=new Float32Array(e.width*e.height*4),n.readPixels(0,0,e.width,e.height,n.RGBA,n.FLOAT,r);for(let i=0,s=0;i<t.length;++i,s+=4)t[i]=r[s]}else n.readPixels(0,0,e.width,e.height,n.RED,n.FLOAT,t)}e.g.push(t)}return t}function V2(e){var t=Ke(e,2);if(!t){let r=Ht(e);t=K2(e);let n=oi(e),i=H2(e);r.texImage2D(r.TEXTURE_2D,0,i,e.width,e.height,0,r.RED,r.FLOAT,n),hi(e)}return t}function Ht(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=ne(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function H2(e){if(e=Ht(e),!Mr)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))Mr=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");Mr=e.R16F}return Mr}function is(e){return e.j||(e.j=new It),e.j}function K2(e){var t=Ht(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);var r=Ke(e,2);return r||(r=ut(is(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(r),e.o=!0),t.bindTexture(t.TEXTURE_2D,r),r}function hi(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var Mr,z=class{constructor(e,t,r,n,i,s,a){this.g=e,this.m=t,this.o=r,this.canvas=n,this.j=i,this.width=s,this.height=a,this.o&&--ma===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Ua(){return!!Ke(this,0)}ua(){return!!Ke(this,1)}W(){return!!Ke(this,2)}ta(){return(t=Ke(e=this,0))||(t=oi(e),t=new Uint8Array(t.map(r=>Math.round(255*r))),e.g.push(t)),t;var e,t}sa(){return oi(this)}S(){return V2(this)}clone(){var e=[];for(let t of this.g){let r;if(t instanceof Uint8Array)r=new Uint8Array(t);else if(t instanceof Float32Array)r=new Float32Array(t);else{if(!(t instanceof WebGLTexture))throw Error(`Type is not supported: ${t}`);{let n=Ht(this),i=is(this);n.activeTexture(n.TEXTURE1),r=ut(i,n,this.m?n.LINEAR:n.NEAREST),n.bindTexture(n.TEXTURE_2D,r);let s=H2(this);n.texImage2D(n.TEXTURE_2D,0,s,this.width,this.height,0,n.RED,n.FLOAT,null),n.bindTexture(n.TEXTURE_2D,null),Rn(i,n,r),Lr(i,n,!1,()=>{K2(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),hi(this)}),ns(i),hi(this)}}e.push(r)}return new z(e,this.m,this.W(),this.canvas,this.j,this.width,this.height)}close(){this.o&&Ht(this).deleteTexture(Ke(this,2)),ma=-1}};z.prototype.close=z.prototype.close,z.prototype.clone=z.prototype.clone,z.prototype.getAsWebGLTexture=z.prototype.S,z.prototype.getAsFloat32Array=z.prototype.sa,z.prototype.getAsUint8Array=z.prototype.ta,z.prototype.hasWebGLTexture=z.prototype.W,z.prototype.hasFloat32Array=z.prototype.ua,z.prototype.hasUint8Array=z.prototype.Ua;var ma=250,hu={color:"white",lineWidth:4,radius:6};function Bn(e){return{...hu,fillColor:(e=e||{}).color,...e}}function Ve(e,t){return e instanceof Function?e(t):e}function va(e,t,r){return Math.max(Math.min(t,r),Math.min(Math.max(t,r),e))}function sr(e){if(!e.j)throw Error("CPU rendering requested but CanvasRenderingContext2D not provided.");return e.j}function gr(e){if(!e.o)throw Error("GPU rendering requested but WebGL2RenderingContext not provided.");return e.o}function _a(e,t,r){if(t.W())r(t.S());else{let n=t.ua()?t.sa():t.ta();e.m=e.m??new It;let i=gr(e);r((e=new z([n],t.m,!1,i.canvas,e.m,t.width,t.height)).S()),e.close()}}function ya(e,t,r,n){var i=(function(h){return h.g||(h.g=new au),h.g})(e),s=gr(e),a=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r;Lr(i,s,!0,()=>{(function(o,f,u,c){var l=o.g;if(l.activeTexture(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,f),l.activeTexture(l.TEXTURE1),l.bindTexture(l.TEXTURE_2D,o.u),l.texImage2D(l.TEXTURE_2D,0,l.RGBA,l.RGBA,l.UNSIGNED_BYTE,u),o.J&&(function(A,T){if(A!==T)return!1;A=A.entries(),T=T.entries();for(let[W,re]of A){A=W;let ye=re,tt=T.next();if(tt.done)return!1;let[rt,xr]=tt.value;if(A!==rt||ye[0]!==xr[0]||ye[1]!==xr[1]||ye[2]!==xr[2]||ye[3]!==xr[3])return!1}return!!T.next().done})(o.J,c))l.activeTexture(l.TEXTURE2),l.bindTexture(l.TEXTURE_2D,o.o);else{o.J=c;let A=Array(1024).fill(0);c.forEach((T,W)=>{if(T.length!==4)throw Error(`Color at index ${W} is not a four-channel value.`);A[4*W]=T[0],A[4*W+1]=T[1],A[4*W+2]=T[2],A[4*W+3]=T[3]}),l.activeTexture(l.TEXTURE2),l.bindTexture(l.TEXTURE_2D,o.o),l.texImage2D(l.TEXTURE_2D,0,l.RGBA,256,1,0,l.RGBA,l.UNSIGNED_BYTE,new Uint8Array(A))}})(i,t,a,n),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4);var h=i.g;h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,null),h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,null),h.activeTexture(h.TEXTURE2),h.bindTexture(h.TEXTURE_2D,null)})}function Ea(e,t,r,n){var i=gr(e),s=(function(o){return o.h||(o.h=new ou),o.h})(e),a=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r,h=Array.isArray(n)?new ImageData(new Uint8ClampedArray(n),1,1):n;Lr(s,i,!0,()=>{var o=s.g;o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t),o.activeTexture(o.TEXTURE1),o.bindTexture(o.TEXTURE_2D,s.o),o.texImage2D(o.TEXTURE_2D,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,a),o.activeTexture(o.TEXTURE2),o.bindTexture(o.TEXTURE_2D,s.u),o.texImage2D(o.TEXTURE_2D,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,h),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),i.bindTexture(i.TEXTURE_2D,null),(o=s.g).activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,null),o.activeTexture(o.TEXTURE1),o.bindTexture(o.TEXTURE_2D,null),o.activeTexture(o.TEXTURE2),o.bindTexture(o.TEXTURE_2D,null)})}var se=class{constructor(e,t){typeof CanvasRenderingContext2D<"u"&&e instanceof CanvasRenderingContext2D||e instanceof OffscreenCanvasRenderingContext2D?(this.j=e,this.o=t):this.o=e}Ma(e,t){if(e){var r=sr(this);t=Bn(t),r.save();var n=r.canvas,i=0;for(let s of e)r.fillStyle=Ve(t.fillColor,{index:i,from:s}),r.strokeStyle=Ve(t.color,{index:i,from:s}),r.lineWidth=Ve(t.lineWidth,{index:i,from:s}),(e=new Path2D).arc(s.x*n.width,s.y*n.height,Ve(t.radius,{index:i,from:s}),0,2*Math.PI),r.fill(e),r.stroke(e),++i;r.restore()}}La(e,t,r){if(e&&t){var n=sr(this);r=Bn(r),n.save();var i=n.canvas,s=0;for(let a of t){n.beginPath(),t=e[a.start];let h=e[a.end];t&&h&&(n.strokeStyle=Ve(r.color,{index:s,from:t,to:h}),n.lineWidth=Ve(r.lineWidth,{index:s,from:t,to:h}),n.moveTo(t.x*i.width,t.y*i.height),n.lineTo(h.x*i.width,h.y*i.height)),++s,n.stroke()}n.restore()}}Ia(e,t){var r=sr(this);t=Bn(t),r.save(),r.beginPath(),r.lineWidth=Ve(t.lineWidth,{}),r.strokeStyle=Ve(t.color,{}),r.fillStyle=Ve(t.fillColor,{}),r.moveTo(e.originX,e.originY),r.lineTo(e.originX+e.width,e.originY),r.lineTo(e.originX+e.width,e.originY+e.height),r.lineTo(e.originX,e.originY+e.height),r.lineTo(e.originX,e.originY),r.stroke(),r.fill(),r.restore()}Ja(e,t,r=[0,0,0,255]){this.j?(function(n,i,s,a){var h=gr(n);_a(n,i,o=>{ya(n,o,s,a),(o=sr(n)).drawImage(h.canvas,0,0,o.canvas.width,o.canvas.height)})})(this,e,r,t):ya(this,e.S(),r,t)}Ka(e,t,r){this.j?(function(n,i,s,a){var h=gr(n);_a(n,i,o=>{Ea(n,o,s,a),(o=sr(n)).drawImage(h.canvas,0,0,o.canvas.width,o.canvas.height)})})(this,e,t,r):Ea(this,e.S(),t,r)}close(){var e,t,r;(e=this.g)==null||e.close(),this.g=void 0,(t=this.h)==null||t.close(),this.h=void 0,(r=this.m)==null||r.close(),this.m=void 0}};function Ne(e,t){switch(t){case 0:return e.g.find(r=>r instanceof ImageData);case 1:return e.g.find(r=>typeof ImageBitmap<"u"&&r instanceof ImageBitmap);case 2:return e.g.find(r=>typeof WebGLTexture<"u"&&r instanceof WebGLTexture);default:throw Error(`Type is not supported: ${t}`)}}function X2(e){var t=Ne(e,0);if(!t){t=Kt(e);let r=In(e),n=new Uint8Array(e.width*e.height*4);Rn(r,t,Gr(e)),t.readPixels(0,0,e.width,e.height,t.RGBA,t.UNSIGNED_BYTE,n),ns(r),t=new ImageData(new Uint8ClampedArray(n.buffer),e.width,e.height),e.g.push(t)}return t}function Gr(e){var t=Ne(e,2);if(!t){let r=Kt(e);t=jr(e);let n=Ne(e,1)||X2(e);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),or(e)}return t}function Kt(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=ne(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function In(e){return e.j||(e.j=new It),e.j}function jr(e){var t=Kt(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);var r=Ne(e,2);return r||(r=ut(In(e),t),e.g.push(r),e.m=!0),t.bindTexture(t.TEXTURE_2D,r),r}function or(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}function Aa(e){var t=Kt(e);return Lr(In(e),t,!0,()=>(function(r,n){var i=r.canvas;if(i.width===r.width&&i.height===r.height)return n();var s=i.width,a=i.height;return i.width=r.width,i.height=r.height,r=n(),i.width=s,i.height=a,r})(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()}))}se.prototype.close=se.prototype.close,se.prototype.drawConfidenceMask=se.prototype.Ka,se.prototype.drawCategoryMask=se.prototype.Ja,se.prototype.drawBoundingBox=se.prototype.Ia,se.prototype.drawConnectors=se.prototype.La,se.prototype.drawLandmarks=se.prototype.Ma,se.lerp=function(e,t,r,n,i){return va(n*(1-(e-t)/(r-t))+i*(1-(r-e)/(r-t)),n,i)},se.clamp=va;var Q=class{constructor(e,t,r,n,i,s,a){this.g=e,this.o=t,this.m=r,this.canvas=n,this.j=i,this.width=s,this.height=a,(this.o||this.m)&&--wa===0&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ta(){return!!Ne(this,0)}va(){return!!Ne(this,1)}W(){return!!Ne(this,2)}Qa(){return X2(this)}Pa(){var e=Ne(this,1);return e||(Gr(this),jr(this),e=Aa(this),or(this),this.g.push(e),this.o=!0),e}S(){return Gr(this)}clone(){var e=[];for(let t of this.g){let r;if(t instanceof ImageData)r=new ImageData(t.data,this.width,this.height);else if(t instanceof WebGLTexture){let n=Kt(this),i=In(this);n.activeTexture(n.TEXTURE1),r=ut(i,n),n.bindTexture(n.TEXTURE_2D,r),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,this.width,this.height,0,n.RGBA,n.UNSIGNED_BYTE,null),n.bindTexture(n.TEXTURE_2D,null),Rn(i,n,r),Lr(i,n,!1,()=>{jr(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),or(this)}),ns(i),or(this)}else{if(!(t instanceof ImageBitmap))throw Error(`Type is not supported: ${t}`);Gr(this),jr(this),r=Aa(this),or(this)}e.push(r)}return new Q(e,this.va(),this.W(),this.canvas,this.j,this.width,this.height)}close(){this.o&&Ne(this,1).close(),this.m&&Kt(this).deleteTexture(Ne(this,2)),wa=-1}};Q.prototype.close=Q.prototype.close,Q.prototype.clone=Q.prototype.clone,Q.prototype.getAsWebGLTexture=Q.prototype.S,Q.prototype.getAsImageBitmap=Q.prototype.Pa,Q.prototype.getAsImageData=Q.prototype.Qa,Q.prototype.hasWebGLTexture=Q.prototype.W,Q.prototype.hasImageBitmap=Q.prototype.va,Q.prototype.hasImageData=Q.prototype.Ta;var wa=250;function xe(...e){return e.map(([t,r])=>({start:t,end:r}))}var ba,uu=j2((ba=G2(B2),class extends ba{get oa(){return this.i}Da(e,t,r){_(this,t,n=>{var[i,s]=U2(this,e,n);this.oa._addBoundTextureAsImageToStream(n,i,s,r)})}ga(e,t){Ce(this,e,t),_(this,e,r=>{this.oa._attachImageListener(r)})}ha(e,t){it(this,e,t),_(this,e,r=>{this.oa._attachImageVectorListener(r)})}})),Re=class extends uu{};async function I(e,t,r){return Br(e,r.canvas??(es()?void 0:document.createElement("canvas")),t,r)}function W2(e,t,r,n){var a;if(e.m&&n!==void 0)if((a=C(e.baseOptions,tn,3))!=null&&a.g()){var i=e.m;++i.g.T,i.h.set(n,performance.now())}else++(i=e.m).g.P,i.h.set(n,performance.now());if(e.qa){if(i=new d2,r==null?void 0:r.regionOfInterest){if(!e.Ca)throw Error("This task doesn't support region-of-interest.");var s=r.regionOfInterest;if(s.left>=s.right||s.top>=s.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(s.left<0||s.top<0||s.right>1||s.bottom>1)throw Error("Expected RectF values to be in [0,1].");y(i,1,(s.left+s.right)/2),y(i,2,(s.top+s.bottom)/2),y(i,4,s.right-s.left),y(i,3,s.bottom-s.top)}else y(i,1,.5),y(i,2,.5),y(i,4,1),y(i,3,1);if(r!=null&&r.rotationDegrees){if((r==null?void 0:r.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(y(i,5,-Math.PI*r.rotationDegrees/180),(r==null?void 0:r.rotationDegrees)%180!=0){let[h,o]=ts(t);r=V(i,3)*o/h,s=V(i,4)*h/o,y(i,4,r),y(i,3,s)}}e.g.addProtoToStream(i.g(),"mediapipe.NormalizedRect",e.qa,n)}e.g.Da(t,e.Ba,n??performance.now()),e.finishProcessing(n)}function Ie(e,t,r){if(e.J)throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");W2(e,t,r,e.I+1)}function je(e,t,r,n){if(!e.J)throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");W2(e,t,r,n)}function Xt(e,t,r,n){var i=t.data,s=t.width,a=s*(t=t.height);if((i instanceof Uint8Array||i instanceof Float32Array)&&i.length!==a)throw Error("Unsupported channel count: "+i.length/a);return e=new z([i],r,!1,e.g.i.canvas,e.da,s,t),n?e.clone():e}var me=class extends sn{constructor(e,t,r,n){super(e),this.g=e,this.Ba=t,this.qa=r,this.Ca=n,this.da=new It,this.J=!1}j(e,t=!0){if("runningMode"in e){var r=this.J=!!e.runningMode&&e.runningMode!=="IMAGE";w(this.baseOptions,2,r==null?r:Vr(r))}if(e.canvas!==void 0&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.j(e,t)}close(){this.da.close(),super.close()}};me.prototype.close=me.prototype.close;var Ee=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect_in",!1),this.l={detections:[]},E(e=this.h=new kn,0,1,t=new B),y(this.h,2,.5),y(this.h,3,.3)}C(){return"FaceDetector"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return"minDetectionConfidence"in e&&y(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&y(this.h,3,e.minSuppressionThreshold??.3),this.j(e)}G(e,t){return this.l={detections:[]},Ie(this,e,t),this.l}H(e,t,r){return this.l={detections:[]},je(this,e,r,t),this.l}o(){var e=new _e;U(e,"image_in"),U(e,"norm_rect_in"),N(e,"detections");var t=new ve;Be(t,Lh,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect_in"),x(r,"DETECTIONS:detections"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("detections",(n,i)=>{for(let s of n)n=c2(s),this.l.detections.push(O2(n));g(this,i)}),this.g.attachEmptyPacketListener("detections",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ee.prototype.detectForVideo=Ee.prototype.H,Ee.prototype.detect=Ee.prototype.G,Ee.prototype.setOptions=Ee.prototype.v,Ee.createFromModelPath=async function(e,t){return I(Ee,e,{baseOptions:{modelAssetPath:t}})},Ee.createFromModelBuffer=function(e,t){return I(Ee,e,{baseOptions:{modelAssetBuffer:t}})},Ee.createFromOptions=function(e,t){return I(Ee,e,t)};var ss=xe([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]),as=xe([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]),os=xe([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),z2=xe([474,475],[475,476],[476,477],[477,474]),hs=xe([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]),us=xe([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),Y2=xe([469,470],[470,471],[471,472],[472,469]),cs=xe([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]),q2=[...ss,...as,...os,...hs,...us,...cs],J2=xe([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 Ta(e){e.l={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var F=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect",!1),this.l={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,E(e=this.h=new v2,0,1,t=new B),this.B=new m2,E(this.h,0,3,this.B),this.u=new kn,E(this.h,0,2,this.u),Pe(this.u,4,1),y(this.u,2,.5),y(this.B,2,.5),y(this.h,4,.5)}C(){return"FaceLandmarker"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return"numFaces"in e&&Pe(this.u,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&y(this.u,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&y(this.B,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.j(e)}G(e,t){return Ta(this),Ie(this,e,t),this.l}H(e,t,r){return Ta(this),je(this,e,r,t),this.l}o(){var e=new _e;U(e,"image_in"),U(e,"norm_rect"),N(e,"face_landmarks");var t=new ve;Be(t,Rh,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"NORM_LANDMARKS:face_landmarks"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("face_landmarks",(n,i)=>{for(let s of n)n=Sr(s),this.l.faceLandmarks.push(Sn(n));g(this,i)}),this.g.attachEmptyPacketListener("face_landmarks",n=>{g(this,n)}),this.outputFaceBlendshapes&&(N(e,"blendshapes"),x(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(n,i)=>{if(this.outputFaceBlendshapes)for(let s of n)n=Tn(s),this.l.faceBlendshapes.push(Qi(n.g()??[]));g(this,i)}),this.g.attachEmptyPacketListener("blendshapes",n=>{g(this,n)})),this.outputFacialTransformationMatrixes&&(N(e,"face_geometry"),x(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(n,i)=>{if(this.outputFacialTransformationMatrixes)for(let s of n)(n=C(n=xh(s),_h,2))&&this.l.facialTransformationMatrixes.push({rows:be(n,1)??0??0,columns:be(n,2)??0??0,data:mt(n,3,Le,gt()).slice()??[]});g(this,i)}),this.g.attachEmptyPacketListener("face_geometry",n=>{g(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};F.prototype.detectForVideo=F.prototype.H,F.prototype.detect=F.prototype.G,F.prototype.setOptions=F.prototype.v,F.createFromModelPath=function(e,t){return I(F,e,{baseOptions:{modelAssetPath:t}})},F.createFromModelBuffer=function(e,t){return I(F,e,{baseOptions:{modelAssetBuffer:t}})},F.createFromOptions=function(e,t){return I(F,e,t)},F.FACE_LANDMARKS_LIPS=ss,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LIPS",F.FACE_LANDMARKS_LIPS),F.FACE_LANDMARKS_LEFT_EYE=as,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYE",F.FACE_LANDMARKS_LEFT_EYE),F.FACE_LANDMARKS_LEFT_EYEBROW=os,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYEBROW",F.FACE_LANDMARKS_LEFT_EYEBROW),F.FACE_LANDMARKS_LEFT_IRIS=z2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_IRIS",F.FACE_LANDMARKS_LEFT_IRIS),F.FACE_LANDMARKS_RIGHT_EYE=hs,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYE",F.FACE_LANDMARKS_RIGHT_EYE),F.FACE_LANDMARKS_RIGHT_EYEBROW=us,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW",F.FACE_LANDMARKS_RIGHT_EYEBROW),F.FACE_LANDMARKS_RIGHT_IRIS=Y2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_IRIS",F.FACE_LANDMARKS_RIGHT_IRIS),F.FACE_LANDMARKS_FACE_OVAL=cs,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_FACE_OVAL",F.FACE_LANDMARKS_FACE_OVAL),F.FACE_LANDMARKS_CONTOURS=q2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_CONTOURS",F.FACE_LANDMARKS_CONTOURS),F.FACE_LANDMARKS_TESSELATION=J2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_TESSELATION",F.FACE_LANDMARKS_TESSELATION);var ls=xe([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 ka(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function Sa(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 La(e,t=!0){var r=[];for(let i of e){var n=Tn(i);e=[];for(let s of n.g())n=t&&be(s,1)!=null?be(s,1)??0:-1,e.push({score:V(s,2)??0,index:n,categoryName:te(G(s,3))??""??"",displayName:te(G(s,4))??""??""});r.push(e)}return r}var ae=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],E(e=this.l=new E2,0,1,t=new B),this.u=new Yi,E(this.l,0,2,this.u),this.F=new zi,E(this.u,0,3,this.F),this.B=new y2,E(this.u,0,2,this.B),this.h=new Ih,E(this.l,0,3,this.h),y(this.B,2,.5),y(this.u,4,.5),y(this.F,2,.5)}C(){return"GestureRecognizer"}get baseOptions(){return C(this.l,B,1)}set baseOptions(e){E(this.l,0,1,e)}v(e){var i,s,a,h;if(Pe(this.B,3,e.numHands??1),"minHandDetectionConfidence"in e&&y(this.B,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.u,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&y(this.F,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var t=new Ct,r=t,n=ti(e.cannedGesturesClassifierOptions,(i=C(this.h,Ct,3))==null?void 0:i.j());E(r,0,2,n),E(this.h,0,3,t)}else e.cannedGesturesClassifierOptions===void 0&&((s=C(this.h,Ct,3))==null||s.g());return e.customGesturesClassifierOptions?(E(r=t=new Ct,0,2,n=ti(e.customGesturesClassifierOptions,(a=C(this.h,Ct,4))==null?void 0:a.j())),E(this.h,0,4,t)):e.customGesturesClassifierOptions===void 0&&((h=C(this.h,Ct,4))==null||h.g()),this.j(e)}Xa(e,t){return ka(this),Ie(this,e,t),Sa(this)}Ya(e,t,r){return ka(this),je(this,e,r,t),Sa(this)}o(){var e=new _e;U(e,"image_in"),U(e,"norm_rect"),N(e,"hand_gestures"),N(e,"hand_landmarks"),N(e,"world_hand_landmarks"),N(e,"handedness");var t=new ve;Be(t,Fh,this.l);var r=new fe;ge(r,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"HAND_GESTURES:hand_gestures"),x(r,"LANDMARKS:hand_landmarks"),x(r,"WORLD_LANDMARKS:world_hand_landmarks"),x(r,"HANDEDNESS:handedness"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,i)=>{for(let s of n){n=Sr(s);let a=[];for(let h of Je(n,f2,1))a.push({x:V(h,1)??0,y:V(h,2)??0,z:V(h,3)??0,visibility:V(h,4)??0});this.landmarks.push(a)}g(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,i)=>{for(let s of n){n=Ot(s);let a=[];for(let h of Je(n,l2,1))a.push({x:V(h,1)??0,y:V(h,2)??0,z:V(h,3)??0,visibility:V(h,4)??0});this.worldLandmarks.push(a)}g(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("hand_gestures",(n,i)=>{this.gestures.push(...La(n,!1)),g(this,i)}),this.g.attachEmptyPacketListener("hand_gestures",n=>{g(this,n)}),this.g.attachProtoVectorListener("handedness",(n,i)=>{this.handedness.push(...La(n)),g(this,i)}),this.g.attachEmptyPacketListener("handedness",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function xa(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}ae.prototype.recognizeForVideo=ae.prototype.Ya,ae.prototype.recognize=ae.prototype.Xa,ae.prototype.setOptions=ae.prototype.v,ae.createFromModelPath=function(e,t){return I(ae,e,{baseOptions:{modelAssetPath:t}})},ae.createFromModelBuffer=function(e,t){return I(ae,e,{baseOptions:{modelAssetBuffer:t}})},ae.createFromOptions=function(e,t){return I(ae,e,t)},ae.HAND_CONNECTIONS=ls,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$gesture_recognizer$gesture_recognizer.GestureRecognizer.HAND_CONNECTIONS",ae.HAND_CONNECTIONS);var oe=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],E(e=this.h=new Yi,0,1,t=new B),this.u=new zi,E(this.h,0,3,this.u),this.l=new y2,E(this.h,0,2,this.l),Pe(this.l,3,1),y(this.l,2,.5),y(this.u,2,.5),y(this.h,4,.5)}C(){return"HandLandmarker"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return"numHands"in e&&Pe(this.l,3,e.numHands??1),"minHandDetectionConfidence"in e&&y(this.l,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.h,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&y(this.u,2,e.minHandPresenceConfidence??.5),this.j(e)}G(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Ie(this,e,t),xa(this)}H(e,t,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],je(this,e,r,t),xa(this)}o(){var e=new _e;U(e,"image_in"),U(e,"norm_rect"),N(e,"hand_landmarks"),N(e,"world_hand_landmarks"),N(e,"handedness");var t=new ve;Be(t,Ch,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"LANDMARKS:hand_landmarks"),x(r,"WORLD_LANDMARKS:world_hand_landmarks"),x(r,"HANDEDNESS:handedness"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,i)=>{for(let s of n)n=Sr(s),this.landmarks.push(Sn(n));g(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,i)=>{for(let s of n)n=Ot(s),this.worldLandmarks.push(ur(n));g(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("handedness",(n,i)=>{var s=this.handedness,a=s.push,h=[];for(let o of n){n=Tn(o);let f=[];for(let u of n.g())f.push({score:V(u,2)??0,index:be(u,1)??0??-1,categoryName:te(G(u,3))??""??"",displayName:te(G(u,4))??""??""});h.push(f)}a.call(s,...h),g(this,i)}),this.g.attachEmptyPacketListener("handedness",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};oe.prototype.detectForVideo=oe.prototype.H,oe.prototype.detect=oe.prototype.G,oe.prototype.setOptions=oe.prototype.v,oe.createFromModelPath=function(e,t){return I(oe,e,{baseOptions:{modelAssetPath:t}})},oe.createFromModelBuffer=function(e,t){return I(oe,e,{baseOptions:{modelAssetBuffer:t}})},oe.createFromOptions=function(e,t){return I(oe,e,t)},oe.HAND_CONNECTIONS=ls,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$hand_landmarker$hand_landmarker.HandLandmarker.HAND_CONNECTIONS",oe.HAND_CONNECTIONS);var Z2=xe([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 Ra(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function Ia(e){try{if(!e.F)return e.h;e.F(e.h)}finally{xn(e)}}function Or(e,t){e=Sr(e),t.push(Sn(e))}var k=class extends me{constructor(e,t){super(new Re(e,t),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,E(e=this.l=new k2,0,1,t=new B),this.Y=new zi,E(this.l,0,2,this.Y),this.Aa=new Nh,E(this.l,0,3,this.Aa),this.u=new kn,E(this.l,0,4,this.u),this.O=new m2,E(this.l,0,5,this.O),this.B=new b2,E(this.l,0,6,this.B),this.Z=new T2,E(this.l,0,7,this.Z),y(this.u,2,.5),y(this.u,3,.3),y(this.O,2,.5),y(this.B,2,.5),y(this.B,3,.3),y(this.Z,2,.5),y(this.Y,2,.5)}C(){return"HolisticLandmarker"}get baseOptions(){return C(this.l,B,1)}set baseOptions(e){E(this.l,0,1,e)}v(e){return"minFaceDetectionConfidence"in e&&y(this.u,2,e.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in e&&y(this.u,3,e.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in e&&y(this.O,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"minPoseDetectionConfidence"in e&&y(this.B,2,e.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in e&&y(this.B,3,e.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in e&&y(this.Z,2,e.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in e&&(this.outputPoseSegmentationMasks=!!e.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in e&&y(this.Y,2,e.minHandLandmarksConfidence??.5),this.j(e)}G(e,t,r){var n=typeof t!="function"?t:{};return this.F=typeof t=="function"?t:r,Ra(this),Ie(this,e,n),Ia(this)}H(e,t,r,n){var i=typeof r!="function"?r:{};return this.F=typeof r=="function"?r:n,Ra(this),je(this,e,i,t),Ia(this)}o(){var e=new _e;U(e,"input_frames_image"),N(e,"pose_landmarks"),N(e,"pose_world_landmarks"),N(e,"face_landmarks"),N(e,"left_hand_landmarks"),N(e,"left_hand_world_landmarks"),N(e,"right_hand_landmarks"),N(e,"right_hand_world_landmarks");var t=new ve,r=new Us;ge(r,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),(function(i,s){if(s!=null)if(Array.isArray(s))w(i,2,fn(s,0,fr));else{if(!(typeof s=="string"||s instanceof Me||fi(s)))throw Error("invalid value in Any.value field: "+s+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");Er(i,2,on(s,!1),bt())}})(r,this.l.g());var n=new fe;ge(n,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),dr(n,8,Us,r),$(n,"IMAGE:input_frames_image"),x(n,"POSE_LANDMARKS:pose_landmarks"),x(n,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),x(n,"FACE_LANDMARKS:face_landmarks"),x(n,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),x(n,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),x(n,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),x(n,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),n.v(t),Se(e,n),Ln(this,e),this.g.attachProtoListener("pose_landmarks",(i,s)=>{Or(i,this.h.poseLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("pose_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("pose_world_landmarks",(i,s)=>{var a=this.h.poseWorldLandmarks;i=Ot(i),a.push(ur(i)),g(this,s)}),this.g.attachEmptyPacketListener("pose_world_landmarks",i=>{g(this,i)}),this.outputPoseSegmentationMasks&&(x(n,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),Vt(this,"pose_segmentation_mask"),this.g.ga("pose_segmentation_mask",(i,s)=>{this.h.poseSegmentationMasks=[Xt(this,i,!0,!this.F)],g(this,s)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",i=>{this.h.poseSegmentationMasks=[],g(this,i)})),this.g.attachProtoListener("face_landmarks",(i,s)=>{Or(i,this.h.faceLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("face_landmarks",i=>{g(this,i)}),this.outputFaceBlendshapes&&(N(e,"extra_blendshapes"),x(n,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(i,s)=>{var a=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(i=Tn(i),a.push(Qi(i.g()??[]))),g(this,s)}),this.g.attachEmptyPacketListener("extra_blendshapes",i=>{g(this,i)})),this.g.attachProtoListener("left_hand_landmarks",(i,s)=>{Or(i,this.h.leftHandLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("left_hand_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("left_hand_world_landmarks",(i,s)=>{var a=this.h.leftHandWorldLandmarks;i=Ot(i),a.push(ur(i)),g(this,s)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("right_hand_landmarks",(i,s)=>{Or(i,this.h.rightHandLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("right_hand_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("right_hand_world_landmarks",(i,s)=>{var a=this.h.rightHandWorldLandmarks;i=Ot(i),a.push(ur(i)),g(this,s)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",i=>{g(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};k.prototype.detectForVideo=k.prototype.H,k.prototype.detect=k.prototype.G,k.prototype.setOptions=k.prototype.v,k.createFromModelPath=function(e,t){return I(k,e,{baseOptions:{modelAssetPath:t}})},k.createFromModelBuffer=function(e,t){return I(k,e,{baseOptions:{modelAssetBuffer:t}})},k.createFromOptions=function(e,t){return I(k,e,t)},k.HAND_CONNECTIONS=ls,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.HAND_CONNECTIONS",k.HAND_CONNECTIONS),k.POSE_CONNECTIONS=Z2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.POSE_CONNECTIONS",k.POSE_CONNECTIONS),k.FACE_LANDMARKS_LIPS=ss,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LIPS",k.FACE_LANDMARKS_LIPS),k.FACE_LANDMARKS_LEFT_EYE=as,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_EYE",k.FACE_LANDMARKS_LEFT_EYE),k.FACE_LANDMARKS_LEFT_EYEBROW=os,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_EYEBROW",k.FACE_LANDMARKS_LEFT_EYEBROW),k.FACE_LANDMARKS_LEFT_IRIS=z2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_IRIS",k.FACE_LANDMARKS_LEFT_IRIS),k.FACE_LANDMARKS_RIGHT_EYE=hs,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_EYE",k.FACE_LANDMARKS_RIGHT_EYE),k.FACE_LANDMARKS_RIGHT_EYEBROW=us,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW",k.FACE_LANDMARKS_RIGHT_EYEBROW),k.FACE_LANDMARKS_RIGHT_IRIS=Y2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_IRIS",k.FACE_LANDMARKS_RIGHT_IRIS),k.FACE_LANDMARKS_FACE_OVAL=cs,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_FACE_OVAL",k.FACE_LANDMARKS_FACE_OVAL),k.FACE_LANDMARKS_CONTOURS=q2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_CONTOURS",k.FACE_LANDMARKS_CONTOURS),k.FACE_LANDMARKS_TESSELATION=J2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_TESSELATION",k.FACE_LANDMARKS_TESSELATION);var Ae=class extends me{constructor(e,t){super(new Re(e,t),"input_image","norm_rect",!0),this.l={classifications:[]},E(e=this.h=new S2,0,1,t=new B)}C(){return"ImageClassifier"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return E(this.h,0,2,ti(e,C(this.h,Xi,2))),this.j(e)}Ga(e,t){return this.l={classifications:[]},Ie(this,e,t),this.l}Ha(e,t,r){return this.l={classifications:[]},je(this,e,r,t),this.l}o(){var e=new _e;U(e,"input_image"),U(e,"norm_rect"),N(e,"classifications");var t=new ve;Be(t,Mh,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),$(r,"IMAGE:input_image"),$(r,"NORM_RECT:norm_rect"),x(r,"CLASSIFICATIONS:classifications"),r.v(t),Se(e,r),this.g.attachProtoListener("classifications",(n,i)=>{this.l=Hh(Ah(n)),g(this,i)}),this.g.attachEmptyPacketListener("classifications",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ae.prototype.classifyForVideo=Ae.prototype.Ha,Ae.prototype.classify=Ae.prototype.Ga,Ae.prototype.setOptions=Ae.prototype.v,Ae.createFromModelPath=function(e,t){return I(Ae,e,{baseOptions:{modelAssetPath:t}})},Ae.createFromModelBuffer=function(e,t){return I(Ae,e,{baseOptions:{modelAssetBuffer:t}})},Ae.createFromOptions=function(e,t){return I(Ae,e,t)};var de=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect",!0),this.h=new L2,this.embeddings={embeddings:[]},E(e=this.h,0,1,t=new B)}C(){return"ImageEmbedder"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){var t=this.h,r=C(this.h,zs,2);if(r=r?r.clone():new zs,e.l2Normalize!==void 0){var n=e.l2Normalize;w(r,1,n==null?n:Vr(n))}else"l2Normalize"in e&&w(r,1);return e.quantize!==void 0?w(r,2,(n=e.quantize)==null?n:Vr(n)):"quantize"in e&&w(r,2),E(t,0,2,r),this.j(e)}Na(e,t){return Ie(this,e,t),this.embeddings}Oa(e,t,r){return je(this,e,r,t),this.embeddings}o(){var e=new _e;U(e,"image_in"),U(e,"norm_rect"),N(e,"embeddings_out");var t=new ve;Be(t,Oh,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"EMBEDDINGS:embeddings_out"),r.v(t),Se(e,r),this.g.attachProtoListener("embeddings_out",(n,i)=>{n=Th(n),this.embeddings=(function(s){return{embeddings:Je(s,bh,1).map(a=>{var o,f;var h={headIndex:be(a,3)??0??-1,headName:te(G(a,4))??""??""};if(lo(a,Ws,1,Ki))a=mt(a=xs(a,Ws,1),1,Le,gt()),h.floatEmbedding=a.slice();else{let u=new Uint8Array(0);h.quantizedEmbedding=((f=(o=xs(a,wh,2))==null?void 0:o.g())==null?void 0:f.h())??u}return h}),timestampMs:M2(G(s,2,void 0,Kr)??co)}})(n),g(this,i)}),this.g.attachEmptyPacketListener("embeddings_out",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};de.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=Qs(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=Qs(Zs(e.quantizedEmbedding),Zs(t.quantizedEmbedding))}return e},de.prototype.embedForVideo=de.prototype.Oa,de.prototype.embed=de.prototype.Na,de.prototype.setOptions=de.prototype.v,de.createFromModelPath=function(e,t){return I(de,e,{baseOptions:{modelAssetPath:t}})},de.createFromModelBuffer=function(e,t){return I(de,e,{baseOptions:{modelAssetBuffer:t}})},de.createFromOptions=function(e,t){return I(de,e,t)};var ui=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach(r=>{r.close()}),(t=this.categoryMask)==null||t.close()}};function cu(e){var r,n;var t=(function(i){return Je(i,fe,1)})(e.ja()).filter(i=>(te(G(i,1))??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(e.u=[],t.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");t.length===1&&(((n=(r=C(t[0],ve,7))==null?void 0:r.o())==null?void 0:n.g())??new Map).forEach((i,s)=>{e.u[Number(s)]=te(G(i,1))??""})}function Fa(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function Ca(e){try{let t=new ui(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.l)return t;e.l(t)}finally{xn(e)}}ui.prototype.close=ui.prototype.close;var he=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Zi,this.B=new x2,E(this.h,0,3,this.B),E(e=this.h,0,1,t=new B)}C(){return"ImageSegmenter"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return e.displayNamesLocale!==void 0?w(this.h,2,Xe(e.displayNamesLocale)):"displayNamesLocale"in e&&w(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.j(e)}L(){cu(this)}segment(e,t,r){var n=typeof t!="function"?t:{};return this.l=typeof t=="function"?t:r,Fa(this),Ie(this,e,n),Ca(this)}eb(e,t,r,n){var i=typeof r!="function"?r:{};return this.l=typeof r=="function"?r:n,Fa(this),je(this,e,i,t),Ca(this)}Ra(){return this.u}o(){var e=new _e;U(e,"image_in"),U(e,"norm_rect");var t=new ve;Be(t,I2,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),r.v(t),Se(e,r),Ln(this,e),this.outputConfidenceMasks&&(N(e,"confidence_masks"),x(r,"CONFIDENCE_MASKS:confidence_masks"),Vt(this,"confidence_masks"),this.g.ha("confidence_masks",(n,i)=>{this.confidenceMasks=n.map(s=>Xt(this,s,!0,!this.l)),g(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],g(this,n)})),this.outputCategoryMask&&(N(e,"category_mask"),x(r,"CATEGORY_MASK:category_mask"),Vt(this,"category_mask"),this.g.ga("category_mask",(n,i)=>{this.categoryMask=Xt(this,n,!1,!this.l),g(this,i)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,g(this,n)})),N(e,"quality_scores"),x(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,i)=>{this.qualityScores=n,g(this,i)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};he.prototype.getLabels=he.prototype.Ra,he.prototype.segmentForVideo=he.prototype.eb,he.prototype.segment=he.prototype.segment,he.prototype.setOptions=he.prototype.v,he.createFromModelPath=function(e,t){return I(he,e,{baseOptions:{modelAssetPath:t}})},he.createFromModelBuffer=function(e,t){return I(he,e,{baseOptions:{modelAssetBuffer:t}})},he.createFromOptions=function(e,t){return I(he,e,t)};var lu={0:0,1:1,2:2,3:3};function Gn(){return es()?void 0:document.createElement("canvas")}var ue=class extends sn{constructor(e,t){super(new nu(e,t)),this.u=new It,this.delegate="CPU",this.h=0,this.baseOptions=new B,this.B=this.l=0}C(){return"InteractiveSegmenter"}get i(){return this.g.i}v(e){var t;return this.delegate=((t=e.baseOptions)==null?void 0:t.delegate)??"CPU",super.j(e)}fb(e){if(this.h===0)throw Error("Segmenter is not initialized.");var t;if(this.l!==0&&(this.i._free(this.l),this.l=0),!(t=typeof ImageData<"u"&&e instanceof ImageData))if(typeof e!="object"||e===null)t=!1;else{t=e.data;var r=e.width,n=e.height;t=Number.isInteger(r)&&r>0&&Number.isInteger(n)&&n>0&&(t instanceof Uint8ClampedArray||t instanceof Uint8Array)}if(t)t=e.width,r=e.height,e=e.data;else{if([t,r]=ts(e),typeof OffscreenCanvas<"u")n=new OffscreenCanvas(t,r);else{if(typeof document>"u")throw Error("Canvas is not supported in this environment.");n=document.createElement("canvas")}if(n.width=t,n.height=r,!(n=n.getContext("2d")))throw Error("Canvas 2D context is not supported in this environment.");n.drawImage(e,0,0),e=n.getImageData(0,0,t,r).data}if(!e)throw Error("Unsupported image source or failed to extract image pixels.");n=(function({Wa:s,width:a,height:h}){if(a<=0||h<=0)throw Error(`Invalid image dimensions: ${a}x${h}. Dimensions must be positive.`);if(s%(a*h)!==0)throw Error(`Invalid image dimensions or pixel data length. Pixel data length ${s} is not a multiple of the number of pixels (${a*h}).`);if((s/=a*h)!==4&&s!==3&&s!==1)throw Error(`Invalid image dimensions or pixel data length. Calculated channels: ${s}. Expected 1, 3, or 4.`);return s})({Wa:e.length,width:t,height:r});var i=this.i._malloc(e.length);if(this.i.HEAPU8.set(e,i),this.l=i,!this.i._interactive_segmenter_set_image(this.h,i,t,r,n))throw Error("Failed to set image on native engine.")}segment(e){var u;if(this.h===0)throw Error("Segmenter is not initialized.");var t=(function(c){c=c.map(({isCompleted:A,brushMode:T,point:W})=>{T=lu[T]??0,W=W.map(({x:ye,y:tt})=>{var rt=new Ph;return Nt(rt,1,ye),Nt(rt,2,tt),rt});var re=new $h;return Yn(re,A),Er(re,1,We(T),0),zn(re,2,W),re});var l=new Uh;return zn(l,1,c),Bh(l)})(e);e=this.i._malloc(t.length),this.i.HEAPU8.set(t,e);var r=this.i._malloc(12),n=r+4,i=r+8,s=0,a=this.B++;try{if(this.m)if(this.delegate==="GPU"){var h=this.m;++h.g.T,h.h.set(a,performance.now())}else{var o=this.m;++o.g.P,o.h.set(a,performance.now())}if((s=this.i._interactive_segmenter_segment(this.h,e,t.length,r,n,i))===0)throw Error("Segmentation failed.");(u=this.m)==null||u.za(a);let c=this.i.HEAPU32[r/4],l=this.i.HEAPU32[n/4],A=new Float32Array(this.i.HEAPU8.buffer,s,this.i.HEAPU32[i/4]/4);var f=new Float32Array(A);if(h=c*l,(f instanceof Uint8Array||f instanceof Float32Array)&&f.length!==h)throw Error("Unsupported channel count: "+f.length/h);return new z([f],!0,!1,this.g.i.canvas??void 0,this.u,c,l)}finally{e!==0&&this.i._free(e),r!==0&&this.i._free(r),s!==0&&this.i._free(s)}}o(){var r,n;this.h!==0&&((r=this.m)==null||r.xa(),this.i._interactive_segmenter_close(this.h),this.h=0),this.l!==0&&(this.i._free(this.l),this.l=0);var e=new tn;if(this.delegate==="GPU"){var t=new Hi;De(e,2,At,t)}else Pe(t=new dh,1,4),De(e,1,At,t);if(E(this.baseOptions,0,3,e),e=Sh(this.baseOptions),t=this.i._malloc(e.length),this.i.HEAPU8.set(e,t),this.h=this.i._interactive_segmenter_create(t,e.length),this.i._free(t),this.h===0)throw Error("Failed to create native InteractiveSegmenter engine.");(n=this.m)==null||n.ya()}close(){this.h!==0&&(this.i._interactive_segmenter_close(this.h),this.h=0),this.l!==0&&(this.i._free(this.l),this.l=0),this.u.close(),super.close()}};ue.prototype.close=ue.prototype.close,ue.prototype.segment=ue.prototype.segment,ue.prototype.setImage=ue.prototype.fb,ue.prototype.setOptions=ue.prototype.v,ue.createFromModelPath=function(e,t){return Br(ue,Gn(),e,{baseOptions:{modelAssetPath:t}})},ue.createFromModelBuffer=function(e,t){return Br(ue,Gn(),e,{baseOptions:{modelAssetBuffer:t}})},ue.createFromOptions=function(e,t){var r=t.canvas??Gn();return Br(ue,r,e,t)};var ci=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach(r=>{r.close()}),(t=this.categoryMask)==null||t.close()}};ci.prototype.close=ci.prototype.close;var Fe=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Zi,this.u=new x2,E(this.h,0,3,this.u),E(e=this.h,0,1,t=new B)}C(){return"InteractiveSegmenterLegacy"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.j(e)}segment(e,t,r,n){var i=typeof r!="function"?r:{};if(this.l=typeof r=="function"?r:n,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.I+1,n=new F2,t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var s=new $n;Yn(s,!0),Nt(s,1,t.keypoint.x),Nt(s,2,t.keypoint.y),De(n,1,ei,s)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");{let h=new Gh;for(s of t.scribble)Yn(t=new $n,!0),Nt(t,1,s.x),Nt(t,2,s.y),dr(h,1,$n,t);De(n,2,ei,h)}}this.g.addProtoToStream(n.g(),"mediapipe.tasks.vision.interactive_segmenter_legacy.proto.RegionOfInterest","roi_in",r),Ie(this,e,i);e:{try{let h=new ci(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.l){var a=h;break e}this.l(h)}finally{xn(this)}a=void 0}return a}o(){var e=new _e;U(e,"image_in"),U(e,"roi_in"),U(e,"norm_rect_in");var t=new ve;Be(t,I2,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.interactive_segmenter_legacy.InteractiveSegmenterGraphV2"),$(r,"IMAGE:image_in"),$(r,"ROI:roi_in"),$(r,"NORM_RECT:norm_rect_in"),r.v(t),Se(e,r),Ln(this,e),this.outputConfidenceMasks&&(N(e,"confidence_masks"),x(r,"CONFIDENCE_MASKS:confidence_masks"),Vt(this,"confidence_masks"),this.g.ha("confidence_masks",(n,i)=>{this.confidenceMasks=n.map(s=>Xt(this,s,!0,!this.l)),g(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],g(this,n)})),this.outputCategoryMask&&(N(e,"category_mask"),x(r,"CATEGORY_MASK:category_mask"),Vt(this,"category_mask"),this.g.ga("category_mask",(n,i)=>{this.categoryMask=Xt(this,n,!1,!this.l),g(this,i)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,g(this,n)})),N(e,"quality_scores"),x(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,i)=>{this.qualityScores=n,g(this,i)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Fe.prototype.segment=Fe.prototype.segment,Fe.prototype.setOptions=Fe.prototype.v,Fe.createFromModelPath=function(e,t){return I(Fe,e,{baseOptions:{modelAssetPath:t}})},Fe.createFromModelBuffer=function(e,t){return I(Fe,e,{baseOptions:{modelAssetBuffer:t}})},Fe.createFromOptions=function(e,t){return I(Fe,e,t)};var we=class extends me{constructor(e,t){super(new Re(e,t),"input_frame_gpu","norm_rect",!1),this.l={detections:[]},E(e=this.h=new C2,0,1,t=new B)}C(){return"ObjectDetector"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return e.displayNamesLocale!==void 0?w(this.h,2,Xe(e.displayNamesLocale)):"displayNamesLocale"in e&&w(this.h,2),e.maxResults!==void 0?Pe(this.h,3,e.maxResults):"maxResults"in e&&w(this.h,3),e.scoreThreshold!==void 0?y(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&w(this.h,4),e.categoryAllowlist!==void 0?Wr(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&w(this.h,5),e.categoryDenylist!==void 0?Wr(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&w(this.h,6),this.j(e)}G(e,t){return this.l={detections:[]},Ie(this,e,t),this.l}H(e,t,r){return this.l={detections:[]},je(this,e,r,t),this.l}o(){var e=new _e;U(e,"input_frame_gpu"),U(e,"norm_rect"),N(e,"detections");var t=new ve;Be(t,jh,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),$(r,"IMAGE:input_frame_gpu"),$(r,"NORM_RECT:norm_rect"),x(r,"DETECTIONS:detections"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("detections",(n,i)=>{for(let s of n)n=c2(s),this.l.detections.push(O2(n));g(this,i)}),this.g.attachEmptyPacketListener("detections",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};we.prototype.detectForVideo=we.prototype.H,we.prototype.detect=we.prototype.G,we.prototype.setOptions=we.prototype.v,we.createFromModelPath=async function(e,t){return I(we,e,{baseOptions:{modelAssetPath:t}})},we.createFromModelBuffer=function(e,t){return I(we,e,{baseOptions:{modelAssetBuffer:t}})},we.createFromOptions=function(e,t){return I(we,e,t)};var li=class{constructor(e,t,r){this.landmarks=e,this.worldLandmarks=t,this.segmentationMasks=r}close(){var e;(e=this.segmentationMasks)==null||e.forEach(t=>{t.close()})}};function Na(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}function Ma(e){try{let t=new li(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.u)return t;e.u(t)}finally{xn(e)}}li.prototype.close=li.prototype.close;var ce=class extends me{constructor(e,t){super(new Re(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,E(e=this.h=new N2,0,1,t=new B),this.B=new T2,E(this.h,0,3,this.B),this.l=new b2,E(this.h,0,2,this.l),Pe(this.l,4,1),y(this.l,2,.5),y(this.B,2,.5),y(this.h,4,.5)}C(){return"PoseLandmarker"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){E(this.h,0,1,e)}v(e){return"numPoses"in e&&Pe(this.l,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&y(this.l,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&y(this.B,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.j(e)}G(e,t,r){var n=typeof t!="function"?t:{};return this.u=typeof t=="function"?t:r,Na(this),Ie(this,e,n),Ma(this)}H(e,t,r,n){var i=typeof r!="function"?r:{};return this.u=typeof r=="function"?r:n,Na(this),je(this,e,i,t),Ma(this)}o(){var e=new _e;U(e,"image_in"),U(e,"norm_rect"),N(e,"normalized_landmarks"),N(e,"world_landmarks"),N(e,"segmentation_masks");var t=new ve;Be(t,Vh,this.h);var r=new fe;ge(r,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"NORM_LANDMARKS:normalized_landmarks"),x(r,"WORLD_LANDMARKS:world_landmarks"),r.v(t),Se(e,r),Ln(this,e),this.g.attachProtoVectorListener("normalized_landmarks",(n,i)=>{this.landmarks=[];for(let s of n)n=Sr(s),this.landmarks.push(Sn(n));g(this,i)}),this.g.attachEmptyPacketListener("normalized_landmarks",n=>{this.landmarks=[],g(this,n)}),this.g.attachProtoVectorListener("world_landmarks",(n,i)=>{this.worldLandmarks=[];for(let s of n)n=Ot(s),this.worldLandmarks.push(ur(n));g(this,i)}),this.g.attachEmptyPacketListener("world_landmarks",n=>{this.worldLandmarks=[],g(this,n)}),this.outputSegmentationMasks&&(x(r,"SEGMENTATION_MASK:segmentation_masks"),Vt(this,"segmentation_masks"),this.g.ha("segmentation_masks",(n,i)=>{this.segmentationMasks=n.map(s=>Xt(this,s,!0,!this.u)),g(this,i)}),this.g.attachEmptyPacketListener("segmentation_masks",n=>{this.segmentationMasks=[],g(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ce.prototype.detectForVideo=ce.prototype.H,ce.prototype.detect=ce.prototype.G,ce.prototype.setOptions=ce.prototype.v,ce.createFromModelPath=function(e,t){return I(ce,e,{baseOptions:{modelAssetPath:t}})},ce.createFromModelBuffer=function(e,t){return I(ce,e,{baseOptions:{modelAssetBuffer:t}})},ce.createFromOptions=function(e,t){return I(ce,e,t)},ce.POSE_CONNECTIONS=Z2,P("module$exports$google3$third_party$mediapipe$tasks$web$vision$pose_landmarker$pose_landmarker.PoseLandmarker.POSE_CONNECTIONS",ce.POSE_CONNECTIONS);export{se as DrawingUtils,Ee as FaceDetector,F as FaceLandmarker,ir as FilesetResolver,ae as GestureRecognizer,oe as HandLandmarker,k as HolisticLandmarker,Ae as ImageClassifier,de as ImageEmbedder,he as ImageSegmenter,ui as ImageSegmenterResult,ue as InteractiveSegmenter,Fe as InteractiveSegmenterLegacy,ci as InteractiveSegmenterLegacyResult,Q as MPImage,z as MPMask,we as ObjectDetector,ce as PoseLandmarker,sn as TaskRunner,me as VisionTaskRunner};
|