@pexip/media-processor 19.0.0 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/workers/mediaWorker.js +18 -18
- package/dist/workers/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var Ct=typeof self<"u"?self:{};function Xn(e,t){e:{for(var r=["CLOSURE_FLAGS"],n=Ct,o=0;o<r.length;o++)if((n=n[r[o]])==null){r=null;break e}r=n}return(e=r&&r[e])!=null?e:t}function At(){throw Error("Invalid UTF8")}function Ts(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}var Lr,In,ou=typeof TextDecoder<"u",su,iu=typeof TextEncoder<"u";function Ui(e){if(iu)e=(su||(su=new TextEncoder)).encode(e);else{let r=0,n=new Uint8Array(3*e.length);for(let o=0;o<e.length;o++){var t=e.charCodeAt(o);if(t<128)n[r++]=t;else{if(t<2048)n[r++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&o<e.length){let s=e.charCodeAt(++o);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}o--}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}var mr,Pi=Xn(610401301,!1),au=Xn(653718497,Xn(1,!0)),bs=Ct.navigator;function Hn(e){return!!Pi&&!!mr&&mr.brands.some(({brand:t})=>t&&t.indexOf(e)!=-1)}function Fe(e){var t;return(t=Ct.navigator)&&(t=t.userAgent)||(t=""),t.indexOf(e)!=-1}function ht(){return!!Pi&&!!mr&&mr.brands.length>0}function Fn(){return ht()?Hn("Chromium"):(Fe("Chrome")||Fe("CriOS"))&&!(!ht()&&Fe("Edge"))||Fe("Silk")}function fo(e){return fo[" "](e),e}mr=bs&&bs.userAgentData||null,fo[" "]=function(){};var cu=!ht()&&(Fe("Trident")||Fe("MSIE"));!Fe("Android")||Fn(),Fn(),Fe("Safari")&&(Fn()||!ht()&&Fe("Coast")||!ht()&&Fe("Opera")||!ht()&&Fe("Edge")||(ht()?Hn("Microsoft Edge"):Fe("Edg/"))||ht()&&Hn("Opera"));var Bi={},cr=null;function uu(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),o=0;return function(s,i){function c(x){for(;a<s.length;){var b=s.charAt(a++),A=cr[b];if(A!=null)return A;if(!/^[\s\xa0]*$/.test(b))throw Error("Unknown base64 encoding at char: "+b)}return x}Di();for(var a=0;;){var u=c(-1),f=c(0),g=c(64),p=c(64);if(p===64&&u===-1)break;i(u<<2|f>>4),g!=64&&(i(f<<4&240|g>>2),p!=64&&i(g<<6&192|p))}}(e,function(s){n[o++]=s}),o!==r?n.subarray(0,o):n}function Di(){if(!cr){cr={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;r<5;r++){var n=e.concat(t[r].split(""));Bi[r]=n;for(var o=0;o<n.length;o++){var s=n[o];cr[s]===void 0&&(cr[s]=o)}}}}var Ni=typeof Uint8Array<"u",Gi=!cu&&typeof btoa=="function";function As(e){if(!Gi){var t;t===void 0&&(t=0),Di(),t=Bi[t];var r=Array(Math.floor(e.length/3)),n=t[64]||"";let a=0,u=0;for(;a<e.length-2;a+=3){var o=e[a],s=e[a+1],i=e[a+2],c=t[o>>2];o=t[(3&o)<<4|s>>4],s=t[(15&s)<<2|i>>6],i=t[63&i],r[u++]=c+o+s+i}switch(c=0,i=n,e.length-a){case 2:i=t[(15&(c=e[a+1]))<<2]||n;case 1:e=e[a],r[u]=t[e>>2]+t[(3&e)<<4|c>>4]+i+n}return r.join("")}for(t="",r=0,n=e.length-10240;r<n;)t+=String.fromCharCode.apply(null,e.subarray(r,r+=10240));return t+=String.fromCharCode.apply(null,r?e.subarray(r):e),btoa(t)}var ws=/[-_.]/g,hu={"-":"+",_:"/",".":"="};function fu(e){return hu[e]||""}function Vi(e){if(!Gi)return uu(e);ws.test(e)&&(e=e.replace(ws,fu)),e=atob(e);let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function vr(e){return Ni&&e!=null&&e instanceof Uint8Array}var Nt={},lu;function ji(e){if(e!==Nt)throw Error("illegal external caller")}function Lt(){return lu||(lu=new st(null,Nt))}function lo(e){ji(Nt);var t=e.g;return(t=t==null||vr(t)?t:typeof t=="string"?Vi(t):null)==null?t:e.g=t}var st=class{constructor(e,t){if(ji(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}h(){return new Uint8Array(lo(this)||0)}};function Wi(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}var du;function Tr(){let e=Error();Wi(e,"incident"),function(t){Ct.setTimeout(()=>{throw t},0)}(e)}function Yn(e){return Wi(e=Error(e),"warning"),e}function po(){return typeof BigInt=="function"}function we(e){return Array.prototype.slice.call(e)}var zt=typeof Symbol=="function"&&typeof Symbol()=="symbol";function br(e){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?Symbol():e}var Ar=br(),Rs=br("0di"),Mn=br("2ex"),or=br("1oa"),Ss=br("0dg"),en=zt?(e,t)=>{e[Ar]|=t}:(e,t)=>{e.G!==void 0?e.G|=t:Object.defineProperties(e,{G:{value:t,configurable:!0,writable:!0,enumerable:!1}})},Vr=zt?(e,t)=>{e[Ar]&=~t}:(e,t)=>{e.G!==void 0&&(e.G&=~t)},J=zt?e=>0|e[Ar]:e=>0|e.G,P=zt?e=>e[Ar]:e=>e.G,q=zt?(e,t)=>{e[Ar]=t}:(e,t)=>{e.G!==void 0?e.G=t:Object.defineProperties(e,{G:{value:t,configurable:!0,writable:!0,enumerable:!1}})};function Ft(e){return en(e,34),e}function pu(e,t){q(t,-30975&(0|e))}function Kn(e,t){q(t,-30941&(34|e))}var mo,wr={},Xi={};function ks(e){return!(!e||typeof e!="object"||e.Ja!==Xi)}function tn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.constructor===Object}function go(e,t,r){if(e!=null){if(typeof e=="string")e=e?new st(e,Nt):Lt();else if(e.constructor!==st)if(vr(e))e=e.length?new st(r?e:new Uint8Array(e),Nt):Lt();else{if(!t)throw Error();e=void 0}}return e}function jr(e){return!(!Array.isArray(e)||e.length)&&!!(1&J(e))}var Cs=[];function at(e){if(2&e)throw Error()}q(Cs,55),mo=Object.freeze(Cs);var Wr=class e{constructor(t,r,n){this.l=0,this.g=t,this.h=r,this.m=n}next(){if(this.l<this.g.length){let t=this.g[this.l++];return{done:!1,value:this.h?this.h.call(this.m,t):t}}return{done:!0,value:void 0}}[Symbol.iterator](){return new e(this.g,this.h,this.m)}},lt;function Hi(e,t){(t=lt?t[lt]:void 0)&&(e[lt]=we(t))}var mu=Object.freeze({}),gu=Object.freeze({}),yu=Object.freeze({});function rn(e){return e.Qa=!0,e}var Eu=rn(e=>typeof e=="number"),Ls=rn(e=>typeof e=="string"),xu=rn(e=>typeof e=="boolean"),nn=typeof Ct.BigInt=="function"&&typeof Ct.BigInt(0)=="bigint",zn=rn(e=>nn?e>=vu&&e<=bu:e[0]==="-"?Is(e,_u):Is(e,Tu)),_u=Number.MIN_SAFE_INTEGER.toString(),vu=nn?BigInt(Number.MIN_SAFE_INTEGER):void 0,Tu=Number.MAX_SAFE_INTEGER.toString(),bu=nn?BigInt(Number.MAX_SAFE_INTEGER):void 0;function Is(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],o=t[r];if(n>o)return!1;if(n<o)return!0}}var Au=typeof Uint8Array.prototype.slice=="function",Yi,N=0,ee=0;function Fs(e){let t=e>>>0;N=t,ee=(e-t)/4294967296>>>0}function Gt(e){if(e<0){Fs(-e);let[t,r]=_o(N,ee);N=t>>>0,ee=r>>>0}else Fs(e)}function yo(e){let t=Yi||(Yi=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),ee=0,N=t.getUint32(0,!0)}function Eo(e,t){return 4294967296*t+(e>>>0)}function xo(e,t){let r=2147483648&t;return r&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),e=Eo(e,t),r?-e:e}function Xr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var r=""+(4294967296*t+e);else po()?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+Ms(r)+Ms(e));return r}function Ms(e){return e=String(e),"0000000".slice(e.length)+e}function on(e){if(e.length<16)Gt(Number(e));else if(po())e=BigInt(e),N=Number(e&BigInt(4294967295))>>>0,ee=Number(e>>BigInt(32)&BigInt(4294967295));else{let t=+(e[0]==="-");ee=N=0;let r=e.length;for(let n=t,o=(r-t)%6+t;o<=r;n=o,o+=6){let s=Number(e.slice(n,o));ee*=1e6,N=1e6*N+s,N>=4294967296&&(ee+=Math.trunc(N/4294967296),ee>>>=0,N>>>=0)}if(t){let[n,o]=_o(N,ee);N=n,ee=o}}}function _o(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function _t(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function Ki(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}var wu=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function sn(e){let t=typeof e;switch(t){case"bigint":return!0;case"number":return Number.isFinite(e)}return t==="string"&&wu.test(e)}function $t(e){if(e==null)return e;if(typeof e=="string"){if(!e)return;e=+e}return typeof e=="number"&&Number.isFinite(e)?0|e:void 0}function Ru(e){if(e==null)return e;if(typeof e=="string"){if(!e)return;e=+e}return typeof e=="number"&&Number.isFinite(e)?e>>>0:void 0}function Os(e){return e[0]!=="-"&&(e.length<20||e.length===20&&Number(e.substring(0,6))<184467)}function vo(e){return e=Math.trunc(e),Number.isSafeInteger(e)||(Gt(e),e=xo(N,ee)),e}function To(e){var t=Math.trunc(Number(e));if(Number.isSafeInteger(t))return String(t);if((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),!(e[0]==="-"?e.length<20||e.length===20&&Number(e.substring(0,7))>-922337:e.length<19||e.length===19&&Number(e.substring(0,6))<922337))if(on(e),e=N,2147483648&(t=ee))if(po())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{let[r,n]=_o(e,t);e="-"+Xr(r,n)}else e=Xr(e,t);return e}function Hr(e){return e==null?e:typeof e=="bigint"?(zn(e)?e=Number(e):(e=BigInt.asIntN(64,e),e=zn(e)?Number(e):String(e)),e):sn(e)?typeof e=="number"?vo(e):To(e):void 0}function Su(e){if(e==null)return e;var t=typeof e;if(t==="bigint")return String(BigInt.asUintN(64,e));if(sn(e)){if(t==="string")return t=Math.trunc(Number(e)),Number.isSafeInteger(t)&&t>=0?e=String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),Os(e)||(on(e),e=Xr(N,ee))),e;if(t==="number")return(e=Math.trunc(e))>=0&&Number.isSafeInteger(e)?e:function(r){if(r<0){Gt(r);let n=Xr(N,ee);return r=Number(n),Number.isSafeInteger(r)?r:n}return Os(String(r))?r:(Gt(r),Eo(N,ee))}(e)}}function zi(e){if(typeof e!="string")throw Error();return e}function qt(e){if(e!=null&&typeof e!="string")throw Error();return e}function dt(e){return e==null||typeof e=="string"?e:void 0}function bo(e,t,r,n){if(e!=null&&typeof e=="object"&&e.X===wr)return e;if(!Array.isArray(e))return r?2&n?(e=t[Rs])?t=e:(Ft((e=new t).u),t=t[Rs]=e):t=new t:t=void 0,t;let o=r=J(e);return o===0&&(o|=32&n),o|=2&n,o!==r&&q(e,o),new t(e)}function ku(e,t,r){if(t)e:{if(!sn(t=e))throw Yn("int64");switch(typeof t){case"string":t=To(t);break e;case"bigint":if(e=t=BigInt.asIntN(64,t),Ls(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(Eu(e)&&!Number.isSafeInteger(e))throw Error(String(e));t=nn?BigInt(t):xu(t)?t?"1":"0":Ls(t)?t.trim()||"0":String(t);break e;default:t=vo(t)}}else t=Hr(e);return typeof(r=(e=t)==null?r?0:void 0:e)=="string"&&(t=+r,Number.isSafeInteger(t))?t:r}function $i(e){if(sr===void 0&&(sr=typeof Proxy=="function"?Zi(Proxy):null),!sr||!Qi())return e;let t=Vt?.get(e);return t||(Math.random()>.01?e:(function(r){if(On===void 0){let n=new sr([],{});On=Array.prototype.concat.call([],n).length===1}On&&typeof Symbol=="function"&&Symbol.isConcatSpreadable&&(r[Symbol.isConcatSpreadable]=!0)}(e),t=new sr(e,{set:(r,n,o)=>(Tr(),r[n]=o,!0)}),function(r,n){(Vt||(Vt=new St)).set(r,n),(qi||(qi=new St)).set(n,r)}(e,t),t))}var Vt,qi,sr,St,On,gr,Yr,Ji,Cu;function Qi(){return St===void 0&&(St=typeof WeakMap=="function"?Zi(WeakMap):null),St}function Zi(e){try{return e.toString().indexOf("[native code]")!==-1?e:null}catch{return null}}function Ao(e,t,r){if(Qi()){if(gr?.get(t)?.get(e)){if(r)return}else if(Math.random()>.01)return;var n=e.length;r={length:n};for(var o=0;o<Math.min(n,10);o++){if(n<=10)var s=o;else{s=n/10;let i=Math.floor(o*s);s=i+Math.floor(Math.random()*(Math.floor((o+1)*s)-i))}r[s]=e[s]}ea(e,r)?((o=(n=gr||(gr=new St)).get(t))||(o=new St,n.set(t,o)),o.set(e,r)):(Tr(),yr(e,t))}}function Kr(e,t){let r=gr?.get(t)?.get(e);r&&!ea(e,r)&&(Tr(),yr(e,t))}function ea(e,t){if(e.length!==t.length)return!1;for(let o in t){var r,n=Number(o);if((r=Number.isInteger(n))&&(r=e[n],n=t[n],r=!(Number.isNaN(r)?Number.isNaN(n):r===n)),r)return!1}return!0}function an(e){if(e&&gr?.has(e)){var t=e.u;if(t)for(let r=0;r<t.length;r++){let n=t[r];if(r===t.length-1&&tn(n))for(let o in n){let s=n[o];Array.isArray(s)&&Kr(s,e)}else Array.isArray(n)&&Kr(n,e)}}}function yr(e,t){gr?.get(t)?.delete(e)}function pt(e,t,r){return e=ta(e,t[0],t[1],r?1:2),t!==Ji&&r&&en(e,16384),e}function ta(e,t,r,n){if(n=n??0,e==null&&(e=Yr),Yr=void 0,e==null){var o=96;r?(e=[r],o|=512):e=[],t&&(o=-33521665&o|(1023&t)<<15)}else{if(!Array.isArray(e))throw Error("narr");if(2048&(o=J(e)))throw Error("farr");if(64&o)return e;if(n===1||n===2||(o|=64),r&&(o|=512,r!==e[0]))throw Error("mid");e:{if(n=(r=e).length){let s=n-1;if(tn(r[s])){if((t=s-(+!!(512&(o|=256))-1))>=1024)throw Error("pvtlmt");o=-33521665&o|(1023&t)<<15;break e}}if(t){if((t=Math.max(t,n-(+!!(512&o)-1)))>1024)throw Error("spvt");o=-33521665&o|(1023&t)<<15}}}return q(e,o),e}var Lu={},Iu=function(){try{return fo(new class extends Map{constructor(){super()}}),!1}catch{return!0}}(),hr=class{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()}},Fu=Iu?(Object.setPrototypeOf(hr.prototype,Map.prototype),Object.defineProperties(hr.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),hr):class extends Map{constructor(){super()}};function Us(e){return e}function Un(e){if(2&e.M)throw Error("Cannot mutate an immutable Map")}var Oe=class extends Fu{constructor(e,t,r=Us,n=Us){super();let o=J(e);o|=64,q(e,o),this.M=o,this.T=t,this.S=r,this.Z=this.T?Mu:n;for(let s=0;s<e.length;s++){let i=e[s],c=r(i[0],!1,!0),a=i[1];t?a===void 0&&(a=null):a=n(i[1],!1,!0,void 0,void 0,o),super.set(c,a)}}pa(e=Ps){if(this.size!==0)return this.Y(e)}Y(e=Ps){let t=[],r=super.entries();for(var n;!(n=r.next()).done;)(n=n.value)[0]=e(n[0]),n[1]=e(n[1]),t.push(n);return t}clear(){Un(this),super.clear()}delete(e){return Un(this),super.delete(this.S(e,!0,!1))}entries(){var e=this.oa();return new Wr(e,Ou,this)}keys(){return this.Ia()}values(){var e=this.oa();return new Wr(e,Oe.prototype.get,this)}forEach(e,t){super.forEach((r,n)=>{e.call(t,this.get(n),n,this)})}set(e,t){return Un(this),(e=this.S(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.Z(t,!0,!0,this.T,!1,this.M))}Oa(e){let t=this.S(e[0],!1,!0);e=e[1],e=this.T?e===void 0?null:e:this.Z(e,!1,!0,void 0,!1,this.M),super.set(t,e)}has(e){return super.has(this.S(e,!1,!1))}get(e){e=this.S(e,!1,!1);let t=super.get(e);if(t!==void 0){var r=this.T;return r?((r=this.Z(t,!1,!0,r,this.ta,this.M))!==t&&super.set(e,r),r):t}}oa(){return Array.from(super.keys())}Ia(){return super.keys()}[Symbol.iterator](){return this.entries()}};function Mu(e,t,r,n,o,s){return e=bo(e,n,r,s),o&&(e=un(e)),e}function Ps(e){return e}function Ou(e){return[e,this.get(e)]}var Uu;function Bs(){return Uu||(Uu=new Oe(Ft([]),void 0,void 0,void 0,Lu))}function wo(e,t,r,n,o){if(e!=null){if(Array.isArray(e))e=jr(e)?void 0:o&&2&J(e)?e:cn(e,t,r,n!==void 0,o);else if(tn(e)){let s={};for(let i in e)s[i]=wo(e[i],t,r,n,o);e=s}else e=t(e,n);return e}}function cn(e,t,r,n,o){let s=n||r?J(e):0;n=n?!!(32&s):void 0;let i=we(e);for(let c=0;c<i.length;c++)i[c]=wo(i[c],t,r,n,o);return r&&(Hi(i,e),r(s,i)),i}function Pu(e){return wo(e,Ro,void 0,void 0,!1)}function Ro(e){return e.X===wr?e.toJSON():e instanceof Oe?e.pa(Pu):function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"bigint":return zn(t)?Number(t):String(t);case"boolean":return t?1:0;case"object":if(t)if(Array.isArray(t)){if(jr(t))return}else{if(vr(t))return As(t);if(t instanceof st){let r=t.g;return r==null?"":typeof r=="string"?r:t.g=As(r)}if(t instanceof Oe)return t.pa()}}return t}(e)}function $n(e,t,r=Kn){if(e!=null){if(Ni&&e instanceof Uint8Array)return t?e:new Uint8Array(e);if(Array.isArray(e)){var n=J(e);return 2&n?e:(t&&(t=n===0||!!(32&n)&&!(64&n||!(16&n))),t?(q(e,-12293&(34|n)),e):cn(e,$n,4&n?Kn:r,!0,!0))}return e.X===wr?(r=e.u,e=2&(n=P(r))?e:So(e,r,n,!0)):e instanceof Oe&&!(2&e.M)&&(r=Ft(e.Y($n)),e=new Oe(r,e.T,e.S,e.Z)),e}}function So(e,t,r,n){return an(e),e=e.constructor,Yr=t=ra(t,r,n),t=new e(t),Yr=void 0,t}function ra(e,t,r){let n=r||2&t?Kn:pu,o=!!(32&t);return e=function(s,i,c){let a=we(s);var u=a.length;let f=256&i?a[u-1]:void 0;for(u+=f?-1:0,i=512&i?1:0;i<u;i++)a[i]=c(a[i]);if(f){i=a[i]={};for(let g in f)i[g]=c(f[g])}return Hi(a,s),a}(e,t,s=>$n(s,o,n)),en(e,32|(r?2:0)),e}function un(e){let t=e.u,r=P(t);return 2&r?So(e,t,r,!1):e}function na(e,t,r,n){return!(4&t)||r!=null&&(!n&&r===0&&(4096&t||8192&t)&&(e.constructor[Ss]=1+(0|e.constructor[Ss]))<5&&Tr(),r!==0&&!(r&t))}function mt(e,t){return Ze(e=e.u,P(e),t)}function Ds(e,t,r,n){if(!((t=n+(+!!(512&t)-1))<0||t>=e.length||t>=r))return e[t]}function Ze(e,t,r,n){if(r===-1)return null;let o=t>>15&1023||536870912;if(!(r>=o)){var s=e.length;return n&&256&t&&(n=e[s-1][r])!=null?(Ds(e,t,o,r)&&Mn!=null&&((t=(e=du??(du={}))[Mn]||0)>=4||(e[Mn]=t+1,Tr())),n):Ds(e,t,o,r)}return 256&t?e[e.length-1][r]:void 0}function G(e,t,r){let n=e.u,o=P(n);return at(o),Y(n,o,t,r),e}function Y(e,t,r,n){let o=t>>15&1023||536870912;if(r>=o){let s,i=t;if(256&t)s=e[e.length-1];else{if(n==null)return i;s=e[o+(+!!(512&t)-1)]={},i|=256}return s[r]=n,r<o&&(e[r+(+!!(512&t)-1)]=void 0),i!==t&&q(e,i),i}return e[r+(+!!(512&t)-1)]=n,256&t&&r in(e=e[e.length-1])&&delete e[r],t}function Jt(e,t,r,n,o){var s=2&t;o=Ze(e,t,r,o),Array.isArray(o)||(o=mo);let i=!(2&n);n=!(1&n);let c=!!(32&t),a=J(o);return a!==0||!c||s||i?1&a||(a|=1,q(o,a)):(a|=33,q(o,a)),s?(e=!1,2&a||(Ft(o),e=!!(4&a)),(n||e)&&Object.freeze(o)):(s=!!(2&a)||!!(2048&a),n&&s?(o=we(o),s=1,c&&!i&&(s|=32),q(o,s),Y(e,t,r,o)):i&&32&a&&!s&&Vr(o,32)),o}function Ur(e,t){e=e.u;let r=P(e),n=Ze(e,r,t),o=_t(n);return o!=null&&o!==n&&Y(e,r,t,o),o}function oa(e){e=e.u;let t=P(e),r=Ze(e,t,1),n=go(r,!0,!!(34&t));return n!=null&&n!==r&&Y(e,t,1,n),n}function wt(){return mu===void 0?2:5}function Rt(e,t,r,n,o,s){let i=e.u,c=P(i);n=2&c?1:n,s=!!s,o=sa(i,c,t,o);var a=J(o),u=o;if(Kr(u,e),n!==2&&n!==1||yr(u,e),na(e,a,void 0,s)){4&a&&(o=we(o),a=It(a,c),c=Y(i,c,t,o));let g=u=0;for(;u<o.length;u++){let p=r(o[u]);p!=null&&(o[g++]=p)}g<u&&(o.length=g),a=-4097&(20|(a=ia(a,c))),q(o,a&=-8193),2&a&&Object.freeze(o)}let f;return n===1||n===4&&32&a?nt(a)||(e=a,(a|=2)!==e&&q(o,a),Object.freeze(o)):(r=n===5&&(!!(32&a)||nt(a)||!!Vt?.get(o)),(n===2||r)&&nt(a)&&(o=we(o),a=jt(a=It(a,c),c,s),q(o,a),c=Y(i,c,t,o)),nt(a)||(t=a,(a=jt(a,c,s))!==t&&q(o,a)),r?(f=$i(o),Ao(o,e,!0)):n!==2||s||Vt?.delete(o)),f||o}function sa(e,t,r,n){return e=Ze(e,t,r,n),Array.isArray(e)?e:mo}function ia(e,t){return e===0&&(e=It(e,t)),1|e}function nt(e){return!!(2&e)&&!!(4&e)||!!(2048&e)}function aa(e){e=we(e);for(let t=0;t<e.length;t++){let r=e[t]=we(e[t]);Array.isArray(r[1])&&(r[1]=Ft(r[1]))}return e}function qn(e,t,r,n){e=e.u;let o=P(e);at(o),Y(e,o,t,(n==="0"?Number(r)===0:r===n)?void 0:r)}function Pn(e,t){var r=$a;return Co(ko(e=e.u),e,P(e),r)===t?t:-1}function ko(e){if(zt)return e[or]??(e[or]=new Map);if(or in e)return e[or];let t=new Map;return Object.defineProperty(e,or,{value:t}),t}function ca(e,t,r,n){let o=ko(e),s=Co(o,e,t,r);return s!==n&&(s&&(t=Y(e,t,s)),o.set(r,n)),t}function Co(e,t,r,n){let o=e.get(n);if(o!=null)return o;o=0;for(let s=0;s<n.length;s++){let i=n[s];Ze(t,r,i)!=null&&(o!==0&&(r=Y(t,r,o)),o=i)}return e.set(n,o),o}function Lo(e,t,r,n){let o,s=P(e);if((n=Ze(e,s,r,n))!=null&&n.X===wr)return(t=un(n))!==n&&Y(e,s,r,t),t.u;if(Array.isArray(n)){let i=J(n);o=2&i?pt(ra(n,i,!1),t,!0):64&i?n:pt(o,t,!0)}else o=pt(void 0,t,!0);return o!==n&&Y(e,s,r,o),o}function ua(e,t,r,n){e=e.u;let o=P(e);return(t=bo(n=Ze(e,o,r,n),t,!1,o))!==n&&t!=null&&Y(e,o,r,t),t}function k(e,t,r,n=!1){if((t=ua(e,t,r,n))==null)return t;if(e=e.u,!(2&(n=P(e)))){let o=un(t);o!==t&&Y(e,n,r,t=o)}return t}function ha(e,t,r,n,o,s,i){let c=e.u;var a=!!(2&t);o=a?1:o,s=!!s,i&&(i=!a),a=sa(c,t,n);var u=J(a),f=a;if(Kr(f,e),o!==2&&o!==1||yr(f,e),!(f=!!(4&u))){var g=a,p=t;let b=!!(2&(u=ia(u,t)));b&&(p|=2);let A=!b,W=!0,C=0,l=0;for(;C<g.length;C++){let _=bo(g[C],r,!1,p);if(_ instanceof r){if(!b){let T=!!(2&J(_.u));A&&(A=!T),W&&(W=T)}g[l++]=_}}l<C&&(g.length=l),u|=4,u=W?16|u:-17&u,q(g,u=A?8|u:-9&u),b&&Object.freeze(g)}if(i&&!(8&u||!a.length&&(o===1||o===4&&32&u))){for(nt(u)?(a=we(a),u=It(u,t),t=Y(c,t,n,a)):yr(a,e),r=a,i=u,g=0;g<r.length;g++)(u=r[g])!==(p=un(u))&&(r[g]=p);i|=8,i=r.length?-17&i:16|i,q(r,i),u=i}let x;return o===1||o===4&&32&u?nt(u)||(e=u,(u|=!a.length||16&u&&(!f||32&u)?2:2048)!==e&&q(a,u),Object.freeze(a)):(f=o===5&&(!!(32&u)||nt(u)||!!Vt?.get(a)),(o===2||f)&&nt(u)&&(a=we(a),u=jt(u=It(u,t),t,s),q(a,u),t=Y(c,t,n,a)),nt(u)||(n=u,(u=jt(u,t,s))!==n&&q(a,u)),f?(x=$i(a),Ao(a,e,!0)):o!==2||s||Vt?.delete(a)),x||a}function it(e,t,r){let n=P(e.u);return ha(e,n,t,r,wt(),!1,!(2&n))}function v(e,t,r,n){return n==null&&(n=void 0),G(e,r,n)}function fr(e,t,r,n){n==null&&(n=void 0);e:{e=e.u;let o=P(e);if(at(o),n==null){let s=ko(e);if(Co(s,e,o,r)!==t)break e;s.set(r,0)}else o=ca(e,o,r,t);Y(e,o,t,n)}}function It(e,t){return-2049&(e=32|(2&t?2|e:-3&e))}function jt(e,t,r){return 32&t&&r||(e&=-33),e}function zr(e,t,r,n){let o=P(e.u);at(o),e=ha(e,o,r,t,2,!0),n=n??new r,e.push(n),2&J(n.u)?Vr(e,8):Vr(e,16)}function Ge(e,t){return e??t}function Me(e,t){return $t(mt(e,t))}function re(e,t){return Ge(Ur(e,t),0)}function Je(e,t){return Ge(dt(mt(e,t)),"")}function Er(e,t,r){if(r!=null&&typeof r!="boolean")throw e=typeof r,Error(`Expected boolean but got ${e!="object"?e:r?Array.isArray(r)?"array":e:"null"}: ${r}`);G(e,t,r)}function Qe(e,t,r){if(r!=null){if(typeof r!="number"||!Number.isFinite(r))throw Yn("int32");r|=0}G(e,t,r)}function y(e,t,r){if(r!=null&&typeof r!="number")throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);G(e,t,r)}function $r(e,t,r){{let c=e.u,a=P(c);if(at(a),r==null)Y(c,a,t);else{r=qi?.get(r)||r;var n,o=J(r),s=o,i=!!(2&o)||Object.isFrozen(r);if((n=!i)&&((n=yu===void 0)||(n=!!au&&gu!==void 0)),na(e,o)){o=21,i&&(r=we(r),s=0,o=jt(o=It(o,a),a,!0));for(let u=0;u<r.length;u++)r[u]=zi(r[u])}n?(r=we(r),s=0,o=jt(o=It(o,a),a,!0)):i||Ao(r,e),o!==s&&q(r,o),Y(c,a,t,r)}}}function hn(e,t,r){at(P(e.u)),Rt(e,t,dt,2,void 0,!0).push(zi(r))}function fa(e,t){return Error(`Invalid wire type: ${e} (at position ${t})`)}function Io(){return Error("Failed to read varint, encoding is invalid.")}function la(e,t){return Error(`Tried to read past the end of the data ${t} > ${e}`)}function Fo(e){if(typeof e=="string")return{buffer:Vi(e),O:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Uint8Array)return{buffer:e,O:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),O:!1};if(e.constructor===st)return{buffer:lo(e)||new Uint8Array(0),O:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function Mo(e,t){let r,n=0,o=0,s=0,i=e.h,c=e.g;do r=i[c++],n|=(127&r)<<s,s+=7;while(s<32&&128&r);for(s>32&&(o|=(127&r)>>4),s=3;s<32&&128&r;s+=7)r=i[c++],o|=(127&r)<<s;if(kt(e,c),r<128)return t(n>>>0,o>>>0);throw Io()}function Oo(e){let t=0,r=e.g,n=r+10,o=e.h;for(;r<n;){let s=o[r++];if(t|=s,(128&s)==0)return kt(e,r),!!(127&t)}throw Io()}function gt(e){let t=e.h,r=e.g,n=t[r++],o=127&n;if(128&n&&(n=t[r++],o|=(127&n)<<7,128&n&&(n=t[r++],o|=(127&n)<<14,128&n&&(n=t[r++],o|=(127&n)<<21,128&n&&(n=t[r++],o|=n<<28,128&n&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++])))))throw Io();return kt(e,r),o}function yt(e){return gt(e)>>>0}function Jn(e){var t=e.h;let r=e.g,n=t[r],o=t[r+1],s=t[r+2];return t=t[r+3],kt(e,e.g+4),(n<<0|o<<8|s<<16|t<<24)>>>0}function Qn(e){var t=Jn(e);e=2*(t>>31)+1;let 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 Bu(e){return gt(e)}function Bn(e,t,{ca:r=!1}={}){e.ca=r,t&&(t=Fo(t),e.h=t.buffer,e.m=t.O,e.j=0,e.l=e.h.length,e.g=e.j)}function kt(e,t){if(e.g=t,t>e.l)throw la(e.l,t)}function da(e,t){if(t<0)throw Error(`Tried to read a negative byte length: ${t}`);let r=e.g,n=r+t;if(n>e.l)throw la(t,e.l-r);return e.g=n,r}function pa(e,t){if(t==0)return Lt();var r=da(e,t);return e.ca&&e.m?r=e.h.subarray(r,r+t):(e=e.h,r=r===(t=r+t)?new Uint8Array(0):Au?e.slice(r,t):new Uint8Array(e.subarray(r,t))),r.length==0?Lt():new st(r,Nt)}Oe.prototype.toJSON=void 0,Oe.prototype.Ja=Xi;var Ns=[];function ma(e){var t=e.g;if(t.g==t.l)return!1;e.l=e.g.g;var r=yt(e.g);if(t=r>>>3,!((r&=7)>=0&&r<=5))throw fa(r,e.l);if(t<1)throw Error(`Invalid field number: ${t} (at position ${e.l})`);return e.m=t,e.h=r,!0}function Pr(e){switch(e.h){case 0:e.h!=0?Pr(e):Oo(e.g);break;case 1:kt(e=e.g,e.g+8);break;case 2:if(e.h!=2)Pr(e);else{var t=yt(e.g);kt(e=e.g,e.g+t)}break;case 5:kt(e=e.g,e.g+4);break;case 3:for(t=e.m;;){if(!ma(e))throw Error("Unmatched start-group tag: stream EOF");if(e.h==4){if(e.m!=t)throw Error("Unmatched end-group tag");break}Pr(e)}break;default:throw fa(e.h,e.l)}}function Rr(e,t,r){let n=e.g.l,o=yt(e.g),s=e.g.g+o,i=s-n;if(i<=0&&(e.g.l=s,r(t,e,void 0,void 0,void 0),i=s-e.g.g),i)throw Error(`Message parsing ended unexpectedly. Expected to read ${o} bytes, instead read ${o-i} bytes, either the data ended unexpectedly or the message misreported its own length`);return e.g.g=s,e.g.l=n,t}function Uo(e){var t=yt(e.g),r=da(e=e.g,t);if(e=e.h,ou){var n,o=e;(n=In)||(n=In=new TextDecoder("utf-8",{fatal:!0})),t=r+t,o=r===0&&t===o.length?o:o.subarray(r,t);try{var s=n.decode(o)}catch(c){if(Lr===void 0){try{n.decode(new Uint8Array([128]))}catch{}try{n.decode(new Uint8Array([97])),Lr=!0}catch{Lr=!1}}throw!Lr&&(In=void 0),c}}else{t=(s=r)+t,r=[];let c,a=null;for(;s<t;){var i=e[s++];i<128?r.push(i):i<224?s>=t?At():(c=e[s++],i<194||(192&c)!=128?(s--,At()):r.push((31&i)<<6|63&c)):i<240?s>=t-1?At():(c=e[s++],(192&c)!=128||i===224&&c<160||i===237&&c>=160||(192&(n=e[s++]))!=128?(s--,At()):r.push((15&i)<<12|(63&c)<<6|63&n)):i<=244?s>=t-2?At():(c=e[s++],(192&c)!=128||c-144+(i<<28)>>30||(192&(n=e[s++]))!=128||(192&(o=e[s++]))!=128?(s--,At()):(i=(7&i)<<18|(63&c)<<12|(63&n)<<6|63&o,i-=65536,r.push(55296+(i>>10&1023),56320+(1023&i)))):At(),r.length>=8192&&(a=Ts(a,r),r.length=0)}s=Ts(a,r)}return s}function ga(e){let t=yt(e.g);return pa(e.g,t)}function fn(e,t,r){var n=yt(e.g);for(n=e.g.g+n;e.g.g<n;)r.push(t(e.g))}var Ir=[],qr;function je(e,t,r){t.g?t.m(e,t.g,t.h,r,!0):t.m(e,t.h,r,!0)}var m=class{constructor(e,t){this.u=ta(e,t)}toJSON(){return ya(this)}l(){var e=y1;return e.g?e.l(this,e.g,e.h,!0):e.l(this,e.h,e.defaultValue,!0)}clone(){let e=this.u;return So(this,e,P(e),!1)}O(){return!!(2&J(this.u))}};function ya(e){an(e),e=qr?e.u:cn(e.u,Ro,void 0,void 0,!1);{var t=!qr;let u=e.length;if(u){var r=e[u-1],n=tn(r);n?u--:r=void 0;var o=e;if(n){e:{var s,i=r,c=!1;if(i)for(let f in i)isNaN(+f)?(s??(s={}))[f]=i[f]:(n=i[f],Array.isArray(n)&&(jr(n)||ks(n)&&n.size===0)&&(n=null),n==null&&(c=!0),n!=null&&((s??(s={}))[f]=n));if(c||(s=i),s)for(let f in s){c=s;break e}c=null}i=c==null?r!=null:c!==r}for(;u>0&&((s=o[u-1])==null||jr(s)||ks(s)&&s.size===0);u--)var a=!0;(o!==e||i||a)&&(t?(a||i||c)&&(o.length=u):o=Array.prototype.slice.call(o,0,u),c&&o.push(c)),a=o}else a=e}return a}function Gs(e){return e?/^\d+$/.test(e)?(on(e),new Zn(N,ee)):null:Du||(Du=new Zn(0,0))}m.prototype.X=wr,m.prototype.toString=function(){try{return qr=!0,ya(this).toString()}finally{qr=!1}};var Zn=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}},Du;function Vs(e){return e?/^-?\d+$/.test(e)?(on(e),new eo(N,ee)):null:Nu||(Nu=new eo(0,0))}var eo=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}},Nu;function Bt(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 Sr(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function ln(e,t){if(t>=0)Sr(e,t);else{for(let r=0;r<9;r++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function xr(e,t){e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function Wt(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function Ue(e,t,r){Sr(e.g,8*t+r)}function Po(e,t){return Ue(e,t,2),t=e.g.end(),Wt(e,t),t.push(e.h),t}function Bo(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 dn(e,t,r){Ue(e,t,2),Sr(e.g,r.length),Wt(e,e.g.end()),Wt(e,r)}function Jr(e,t,r,n){r!=null&&(t=Po(e,t),n(r,e),Bo(e,t))}function We(){let e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var Do=We(),Ea=We(),No=We(),Go=We(),xa=We(),Vo=We(),_a=We(),va=We(),Qt=class{constructor(e,t,r){this.g=e,this.h=t,e=Do,this.l=!!e&&r===e||!1}};function pn(e,t){return new Qt(e,t,Do)}function Ta(e,t,r,n,o){Jr(e,r,Ra(t,n),o)}var Gu=pn(function(e,t,r,n,o){return e.h===2&&(Rr(e,Lo(t,n,r),o),!0)},Ta),Vu=pn(function(e,t,r,n,o){return e.h===2&&(Rr(e,Lo(t,n,r,!0),o),!0)},Ta),mn=Symbol(),jo=Symbol(),js=Symbol(),Ws=Symbol(),ba,Aa;function Mt(e,t,r,n){var o=n[e];if(o)return o;(o={}).W=function(g){switch(typeof g){case"boolean":return Ji||(Ji=[0,void 0,!0]);case"number":return g>0?void 0:g===0?Cu||(Cu=[0,void 0]):[-g,void 0];case"string":return[0,g];case"object":return g}}(n[0]);var s=n[1];let i=1;s&&s.constructor===Object&&(o.ia=s,typeof(s=n[++i])=="function"&&(o.na=!0,ba??(ba=s),Aa??(Aa=n[i+1]),s=n[i+=2]));let c={};for(;s&&Array.isArray(s)&&s.length&&typeof s[0]=="number"&&s[0]>0;){for(var a=0;a<s.length;a++)c[s[a]]=s;s=n[++i]}for(a=1;s!==void 0;){let g;typeof s=="number"&&(a+=s,s=n[++i]);var u=void 0;if(s instanceof Qt?g=s:(g=Gu,i--),g?.l){s=n[++i],u=n;var f=i;typeof s=="function"&&(s=s(),u[f]=s),u=s}for(f=a+1,typeof(s=n[++i])=="number"&&s<0&&(f-=s,s=n[++i]);a<f;a++){let p=c[a];u?r(o,a,g,u,p):t(o,a,g,p)}}return n[e]=o}function wa(e){return Array.isArray(e)?e[0]instanceof Qt?e:[Vu,e]:[e,void 0]}function Ra(e,t){return e instanceof m?(an(e),e.u):Array.isArray(e)?pt(e,t,!1):void 0}function Wo(e,t,r,n){let o=r.g;e[t]=n?(s,i,c)=>o(s,i,c,n):o}function Xo(e,t,r,n,o){let s=r.g,i,c;e[t]=(a,u,f)=>s(a,u,f,c||(c=Mt(jo,Wo,Xo,n).W),i||(i=Ho(n)),o)}function Ho(e){let t=e[js];if(t!=null)return t;let r=Mt(jo,Wo,Xo,e);return t=r.na?(n,o)=>ba(n,o,r):(n,o)=>{let s=P(n);for(;ma(o)&&o.h!=4;){var i=o.m,c=r[i];if(c==null){var a=r.ia;a&&(a=a[i])&&(a=ju(a))!=null&&(c=r[i]=a)}c!=null&&c(o,n,i)||(i=(c=o).l,Pr(c),c.ha?c=void 0:(a=c.g.g-i,c.g.g=i,c=pa(c.g,a)),i=n,c&&(lt||(lt=Symbol()),(a=i[lt])?a.push(c):i[lt]=[c]))}return 16384&s&&Ft(n),!0},e[js]=t}function ju(e){let t=(e=wa(e))[0].g;if(e=e[1]){let r=Ho(e),n=Mt(jo,Wo,Xo,e).W;return(o,s,i)=>t(o,s,i,n,r)}return t}function gn(e,t,r){e[t]=r.h}function yn(e,t,r,n){let o,s,i=r.h;e[t]=(c,a,u)=>i(c,a,u,s||(s=Mt(mn,gn,yn,n).W),o||(o=Sa(n)))}function Sa(e){let t=e[Ws];if(!t){let r=Mt(mn,gn,yn,e);t=(n,o)=>ka(n,o,r),e[Ws]=t}return t}function ka(e,t,r){for(var n=J(e),o=+!!(512&n)-1,s=e.length,i=512&n?1:0,c=s+(256&n?-1:0);i<c;i++){let a=e[i];if(a==null)continue;let u=i-o,f=Xs(r,u);f&&f(t,a,u)}if(256&n){n=e[s-1];for(let a in n)o=+a,Number.isNaN(o)||(s=n[o])!=null&&(c=Xs(r,o))&&c(t,s,o)}if(e=lt?e[lt]:void 0)for(Wt(t,t.g.end()),r=0;r<e.length;r++)Wt(t,lo(e[r])||new Uint8Array(0))}function Xs(e,t){var r=e[t];if(r)return r;if((r=e.ia)&&(r=r[t])){var n=(r=wa(r))[0].h;if(r=r[1]){let o=Sa(r),s=Mt(mn,gn,yn,r).W;r=e.na?Aa(s,o):(i,c,a)=>n(i,c,a,s,o)}else r=n;return e[t]=r}}function Zt(e,t){if(Array.isArray(t)){var r=J(t);if(4&r)return t;for(var n=0,o=0;n<t.length;n++){let s=e(t[n]);s!=null&&(t[o++]=s)}return o<n&&(t.length=o),q(t,-12289&(5|r)),2&r&&Object.freeze(t),t}}function Ee(e,t,r){return new Qt(e,t,r)}function er(e,t,r){return new Qt(e,t,r)}function xe(e,t,r){Y(e,P(e),t,r)}var Wu=pn(function(e,t,r,n,o){return e.h===2&&(e=Rr(e,pt([void 0,void 0],n,!0),o),at(n=P(t)),(o=Ze(t,n,r))instanceof Oe?2&o.M?((o=o.Y()).push(e),Y(t,n,r,o)):o.Oa(e):Array.isArray(o)?(2&J(o)&&Y(t,n,r,o=aa(o)),o.push(e)):Y(t,n,r,[e]),!0)},function(e,t,r,n,o){if(t instanceof Oe)t.forEach((s,i)=>{Jr(e,r,pt([i,s],n,!1),o)});else if(Array.isArray(t))for(let s=0;s<t.length;s++){let i=t[s];Array.isArray(i)&&Jr(e,r,pt(i,n,!1),o)}});function Ca(e,t,r){if(t=function(n){if(n==null)return n;let o=typeof n;if(o==="bigint")return String(BigInt.asIntN(64,n));if(sn(n)){if(o==="string")return To(n);if(o==="number")return vo(n)}}(t),t!=null&&(typeof t=="string"&&Vs(t),t!=null))switch(Ue(e,r,0),typeof t){case"number":e=e.g,Gt(t),Bt(e,N,ee);break;case"bigint":r=BigInt.asUintN(64,t),r=new eo(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),Bt(e.g,r.h,r.g);break;default:r=Vs(t),Bt(e.g,r.h,r.g)}}function La(e,t,r){(t=$t(t))!=null&&t!=null&&(Ue(e,r,0),ln(e.g,t))}function Ia(e,t,r){(t=Ki(t))!=null&&(Ue(e,r,0),e.g.g.push(t?1:0))}function Fa(e,t,r){(t=dt(t))!=null&&dn(e,r,Ui(t))}function Ma(e,t,r,n,o){Jr(e,r,Ra(t,n),o)}function Oa(e,t,r){(t=t==null||typeof t=="string"||vr(t)||t instanceof st?t:void 0)!=null&&dn(e,r,Fo(t).buffer)}function Ua(e,t,r){return(e.h===5||e.h===2)&&(t=Jt(t,P(t),r,2,!1),e.h==2?fn(e,Qn,t):t.push(Qn(e.g)),!0)}var rt=Ee(function(e,t,r){if(e.h!==1)return!1;var n=e.g;e=Jn(n);let o=Jn(n);n=2*(o>>31)+1;let s=o>>>20&2047;return e=4294967296*(1048575&o)+e,xe(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=_t(t))!=null&&(Ue(e,r,1),e=e.g,(r=Yi||(Yi=new DataView(new ArrayBuffer(8)))).setFloat64(0,+t,!0),N=r.getUint32(0,!0),ee=r.getUint32(4,!0),xr(e,N),xr(e,ee))},We()),ce=Ee(function(e,t,r){return e.h===5&&(xe(t,r,Qn(e.g)),!0)},function(e,t,r){(t=_t(t))!=null&&(Ue(e,r,5),e=e.g,yo(t),xr(e,N))},Vo),Xu=er(Ua,function(e,t,r){if((t=Zt(_t,t))!=null)for(let i=0;i<t.length;i++){var n=e,o=r,s=t[i];s!=null&&(Ue(n,o,5),n=n.g,yo(s),xr(n,N))}},Vo),Yo=er(Ua,function(e,t,r){if((t=Zt(_t,t))!=null&&t.length){Ue(e,r,2),Sr(e.g,4*t.length);for(let n=0;n<t.length;n++)r=e.g,yo(t[n]),xr(r,N)}},Vo),Et=Ee(function(e,t,r){return e.h===0&&(xe(t,r,Mo(e.g,xo)),!0)},Ca,xa),Dn=Ee(function(e,t,r){return e.h===0&&(xe(t,r,(e=Mo(e.g,xo))===0?void 0:e),!0)},Ca,xa),Hu=Ee(function(e,t,r){return e.h===0&&(xe(t,r,Mo(e.g,Eo)),!0)},function(e,t,r){if((t=Su(t))!=null&&(typeof t=="string"&&Gs(t),t!=null))switch(Ue(e,r,0),typeof t){case"number":e=e.g,Gt(t),Bt(e,N,ee);break;case"bigint":r=BigInt.asUintN(64,t),r=new Zn(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),Bt(e.g,r.h,r.g);break;default:r=Gs(t),Bt(e.g,r.h,r.g)}},We()),te=Ee(function(e,t,r){return e.h===0&&(xe(t,r,gt(e.g)),!0)},La,Go),En=er(function(e,t,r){return(e.h===0||e.h===2)&&(t=Jt(t,P(t),r,2,!1),e.h==2?fn(e,gt,t):t.push(gt(e.g)),!0)},function(e,t,r){if((t=Zt($t,t))!=null&&t.length){r=Po(e,r);for(let n=0;n<t.length;n++)ln(e.g,t[n]);Bo(e,r)}},Go),Pt=Ee(function(e,t,r){return e.h===0&&(xe(t,r,(e=gt(e.g))===0?void 0:e),!0)},La,Go),$=Ee(function(e,t,r){return e.h===0&&(xe(t,r,Oo(e.g)),!0)},Ia,Ea),lr=Ee(function(e,t,r){return e.h===0&&(xe(t,r,(e=Oo(e.g))===!1?void 0:e),!0)},Ia,Ea),le=er(function(e,t,r){if(e.h!==2)return!1;e=Uo(e);let n=P(t);return at(n),Jt(t,n,r,2).push(e),!0},function(e,t,r){if((t=Zt(dt,t))!=null)for(let i=0;i<t.length;i++){var n=e,o=r,s=t[i];s!=null&&dn(n,o,Ui(s))}},No),ft=Ee(function(e,t,r){return e.h===2&&(xe(t,r,(e=Uo(e))===""?void 0:e),!0)},Fa,No),U=Ee(function(e,t,r){return e.h===2&&(xe(t,r,Uo(e)),!0)},Fa,No),ae=function(e,t,r=Do){return new Qt(e,t,r)}(function(e,t,r,n,o){if(e.h!==2)return!1;n=pt(void 0,n,!0);let s=P(t);at(s);let i=Jt(t,s,r,3);return s=P(t),4&J(i)&&(i=we(i),q(i,-2079&(1|J(i))),Y(t,s,r,i)),i.push(n),Rr(e,n,o),!0},function(e,t,r,n,o){if(Array.isArray(t))for(let s=0;s<t.length;s++)Ma(e,t[s],r,n,o)}),B=pn(function(e,t,r,n,o,s){return e.h===2&&(ca(t,J(t),s,r),Rr(e,t=Lo(t,n,r),o),!0)},Ma),Pa=Ee(function(e,t,r){return e.h===2&&(xe(t,r,ga(e)),!0)},Oa,_a),Yu=er(function(e,t,r){return(e.h===0||e.h===2)&&(t=Jt(t,P(t),r,2,!1),e.h==2?fn(e,yt,t):t.push(yt(e.g)),!0)},function(e,t,r){if((t=Zt(Ru,t))!=null)for(let i=0;i<t.length;i++){var n=e,o=r,s=t[i];s!=null&&(Ue(n,o,0),Sr(n.g,s))}},We()),Ve=Ee(function(e,t,r){return e.h===0&&(xe(t,r,gt(e.g)),!0)},function(e,t,r){(t=$t(t))!=null&&(t=parseInt(t,10),Ue(e,r,0),ln(e.g,t))},va),to=class{constructor(t,r){this.h=t,this.g=r,this.l=k,this.m=v,this.defaultValue=void 0}};function Xe(e,t){return new to(e,t)}function vt(e,t){return(r,n)=>{if(Ir.length){let s=Ir.pop();s.o(n),Bn(s.g,r,n),r=s}else r=new class{constructor(s,i){if(Ns.length){let c=Ns.pop();Bn(c,s,i),s=c}else s=new class{constructor(c,a){this.h=null,this.m=!1,this.g=this.l=this.j=0,Bn(this,c,a)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.ca=!1}}(s,i);this.g=s,this.l=this.g.g,this.h=this.m=-1,this.o(i)}o({ha:s=!1}={}){this.ha=s}}(r,n);try{let s=new e,i=s.u;Ho(t)(i,r);var o=s}finally{r.g.clear(),r.m=-1,r.h=-1,Ir.length<100&&Ir.push(r)}return o}}function xn(e){return function(){an(this);let t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){let i=this.g;return this.g=[],i}}}};ka(this.u,t,Mt(mn,gn,yn,e)),Wt(t,t.g.end());let r=new Uint8Array(t.h),n=t.l,o=n.length,s=0;for(let i=0;i<o;i++){let c=n[i];r.set(c,s),s+=c.length}return t.l=[r],r}}var Hs=class extends m{constructor(e){super(e)}},Ys=[0,ft,Ee(function(e,t,r){return e.h===2&&(xe(t,r,(e=ga(e))===Lt()?void 0:e),!0)},function(e,t,r){if(t!=null){if(t instanceof m){let n=t.Ra;return void(n&&(t=n(t),t!=null&&dn(e,r,Fo(t).buffer)))}if(Array.isArray(t))return}Oa(e,t,r)},_a)],Nn,Ks=globalThis.trustedTypes;function zs(e){Nn===void 0&&(Nn=function(){let r=null;if(!Ks)return r;try{let n=o=>o;r=Ks.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch{}return r}());var t=Nn;return new class{constructor(r){this.g=r}toString(){return this.g+""}}(t?t.createScriptURL(e):e)}function Ku(e,...t){if(t.length===0)return zs(e[0]);let r=e[0];for(let n=0;n<t.length;n++)r+=encodeURIComponent(t[n])+e[n+1];return zs(r)}var Ba=[0,te,Ve,$,-1,En,Ve,-1],zu=class extends m{constructor(){super()}},Da=[0,$,U,$,Ve,-1,er(function(e,t,r){return(e.h===0||e.h===2)&&(t=Jt(t,P(t),r,2,!1),e.h==2?fn(e,Bu,t):t.push(gt(e.g)),!0)},function(e,t,r){if((t=Zt($t,t))!=null&&t.length){r=Po(e,r);for(let n=0;n<t.length;n++)ln(e.g,t[n]);Bo(e,r)}},va),U,-1,[0,$,-1],Ve,$,-1],Na=[0,U,-2],$s=class extends m{constructor(){super()}},Ga=[0],Va=[0,te,$,1,$,-3],Re=class extends m{constructor(e){super(e,2)}},se={};se[336783863]=[0,U,$,-1,te,[0,[1,2,3,4,5,6,7],B,Ga,B,Da,B,Na,B,Va,B,Ba,B,[0,U,-2],B,[0,U,Ve]],[0,U],$,[0,[1,3],[2,4],B,[0,En],-1,B,[0,le],-1,ae,[0,U,-1]],U];var qs=[0,Dn,-1,lr,-3,Dn,En,ft,Pt,Dn,-1,lr,Pt,lr,-2,ft];function Se(e,t){qn(e,2,qt(t),"")}function V(e,t){hn(e,3,t)}function R(e,t){hn(e,4,t)}var pe=class extends m{constructor(e){super(e,500)}o(e){return v(this,0,7,e)}},dr=[-1,{}],Js=[0,U,1,dr],Qs=[0,U,le,dr];function ke(e,t){zr(e,1,pe,t)}function j(e,t){hn(e,10,t)}function L(e,t){hn(e,15,t)}var _e=class extends m{constructor(e){super(e,500)}o(e){return v(this,0,1001,e)}},ja=[-500,ae,[-500,ft,-1,le,-3,[-2,se,$],ae,Ys,Pt,-1,Js,Qs,ae,[0,ft,lr],ft,qs,Pt,le,987,le],4,ae,[-500,U,-1,[-1,{}],998,U],ae,[-500,U,le,-1,[-2,{},$],997,le,-1],Pt,ae,[-500,U,le,dr,998,le],le,Pt,Js,Qs,ae,[0,ft,-1,dr],le,-2,qs,ft,-1,lr,979,dr,ae,Ys];_e.prototype.g=xn(ja);var $u=vt(_e,ja),qu=class extends m{constructor(e){super(e)}},Wa=class extends m{constructor(e){super(e)}g(){return it(this,qu,1)}},Xa=[0,ae,[0,te,ce,U,-1]],_n=vt(Wa,Xa),Ju=class extends m{constructor(e){super(e)}},Qu=class extends m{constructor(e){super(e)}},Gn=class extends m{constructor(e){super(e)}h(){return k(this,Ju,2)}g(){return it(this,Qu,5)}},Ha=vt(class extends m{constructor(e){super(e)}},[0,le,En,Yo,[0,Ve,[0,te,-3],[0,ce,-3],[0,te,-1,[0,ae,[0,te,-2]]],ae,[0,ce,-1,U,ce]],U,-1,Et,ae,[0,te,ce],le,Et]),Ya=class extends m{constructor(e){super(e)}},Dt=vt(class extends m{constructor(e){super(e)}},[0,ae,[0,ce,-4]]),Ka=class extends m{constructor(e){super(e)}},kr=vt(class extends m{constructor(e){super(e)}},[0,ae,[0,ce,-4]]),Zu=class extends m{constructor(e){super(e)}},e1=[0,te,-1,Yo,Ve],za=class extends m{constructor(){super()}};za.prototype.g=xn([0,ce,-4,Et]);var t1=class extends m{constructor(e){super(e)}},r1=vt(class extends m{constructor(e){super(e)}},[0,ae,[0,1,te,U,Xa],Et]),Zs=class extends m{constructor(e){super(e)}},n1=class extends m{constructor(e){super(e)}qa(){let e=oa(this);return e??Lt()}},o1=class extends m{constructor(e){super(e)}},$a=[1,2],s1=vt(class extends m{constructor(e){super(e)}},[0,ae,[0,$a,B,[0,Yo],B,[0,Pa],te,U],Et]),Ko=class extends m{constructor(e){super(e)}},qa=[0,U,te,ce,le,-1],ei=class extends m{constructor(e){super(e)}},i1=[0,$,-1],ti=class extends m{constructor(e){super(e)}},Br=[1,2,3,4,5],Qr=class extends m{constructor(e){super(e)}g(){return oa(this)!=null}h(){return dt(mt(this,2))!=null}},K=class extends m{constructor(e){super(e)}g(){return Ki(mt(this,2))??!1}},Ja=[0,Pa,U,[0,te,Et,-1],[0,Hu,Et]],ne=[0,Ja,$,[0,Br,B,Va,B,Da,B,Ba,B,Ga,B,Na],Ve],vn=class extends m{constructor(e){super(e)}},zo=[0,ne,ce,-1,te],a1=Xe(502141897,vn);se[502141897]=zo;var c1=vt(class extends m{constructor(e){super(e)}},[0,[0,Ve,-1,Xu,Yu],e1]),Qa=class extends m{constructor(e){super(e)}},Za=class extends m{constructor(e){super(e)}},$o=[0,ne,ce,[0,ne],$],ec=[0,ne,zo,$o,ce,[0,[0,Ja]]],u1=Xe(508968150,Za);se[508968150]=ec,se[508968149]=$o;var tc=class extends m{constructor(e){super(e)}},h1=Xe(513916220,tc);se[513916220]=[0,ne,ec,te];var Ot=class extends m{constructor(e){super(e)}h(){return k(this,Ko,2)}g(){G(this,2)}},rc=[0,ne,qa];se[478825465]=rc;var f1=class extends m{constructor(e){super(e)}},nc=class extends m{constructor(e){super(e)}},qo=class extends m{constructor(e){super(e)}},Jo=class extends m{constructor(e){super(e)}},oc=class extends m{constructor(e){super(e)}},ri=[0,ne,[0,ne],rc,-1],sc=[0,ne,ce,te],Qo=[0,ne,ce],ic=[0,ne,sc,Qo,ce],l1=Xe(479097054,oc);se[479097054]=[0,ne,ic,ri],se[463370452]=ri,se[464864288]=sc;var d1=Xe(462713202,Jo);se[462713202]=ic,se[474472470]=Qo;var p1=class extends m{constructor(e){super(e)}},ac=class extends m{constructor(e){super(e)}},cc=class extends m{constructor(e){super(e)}},uc=class extends m{constructor(){super()}},Zo=[0,ne,ce,-1,te],ro=[0,ne,ce,$];uc.prototype.g=xn([0,ne,Qo,[0,ne],zo,$o,Zo,ro]);var hc=class extends m{constructor(e){super(e)}},m1=Xe(456383383,hc);se[456383383]=[0,ne,qa];var fc=class extends m{constructor(e){super(e)}},g1=Xe(476348187,fc);se[476348187]=[0,ne,i1];var lc=class extends m{constructor(e){super(e)}},ni=class extends m{constructor(e){super(e)}},dc=[0,Ve,-1],y1=Xe(458105876,class extends m{constructor(e){super(e)}g(){var e=this.u;let t=P(e),r=2&t;return e=function(n,o,s){var i=ni;let c=2&o,a=!1;if(s==null){if(c)return Bs();s=[]}else if(s.constructor===Oe){if(!(2&s.M)||c)return s;s=s.Y()}else Array.isArray(s)?a=!!(2&J(s)):s=[];if(c){if(!s.length)return Bs();a||(a=!0,Ft(s))}else a&&(a=!1,s=aa(s));return a||(64&J(s)?Vr(s,32):32&o&&en(s,32)),Y(n,o,2,i=new Oe(s,i,ku,void 0)),i}(e,t,Ze(e,t,2)),!r&&ni&&(e.ta=!0),e}});se[458105876]=[0,dc,Wu,[!0,Et,[0,U,-1,le]]];var es=class extends m{constructor(e){super(e)}},pc=Xe(458105758,es);se[458105758]=[0,ne,U,dc];var mc=class extends m{constructor(e){super(e)}},E1=Xe(443442058,mc);se[443442058]=[0,ne,U,te,ce,le,-1],se[514774813]=Zo;var gc=class extends m{constructor(e){super(e)}},x1=Xe(516587230,gc);function no(e,t){return t=t?t.clone():new Ko,e.displayNamesLocale!==void 0?G(t,1,qt(e.displayNamesLocale)):e.displayNamesLocale===void 0&&G(t,1),e.maxResults!==void 0?Qe(t,2,e.maxResults):"maxResults"in e&&G(t,2),e.scoreThreshold!==void 0?y(t,3,e.scoreThreshold):"scoreThreshold"in e&&G(t,3),e.categoryAllowlist!==void 0?$r(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&G(t,4),e.categoryDenylist!==void 0?$r(t,5,e.categoryDenylist):"categoryDenylist"in e&&G(t,5),t}function ts(e,t=-1,r=""){return{categories:e.map(n=>({index:Ge(Me(n,1),0)??-1,score:re(n,2)??0,categoryName:Je(n,3)??"",displayName:Je(n,4)??""})),headIndex:t,headName:r}}function yc(e){var t=Rt(e,3,_t,wt()),r=Rt(e,2,$t,wt()),n=Rt(e,1,dt,wt()),o=Rt(e,9,dt,wt());let s={categories:[],keypoints:[]};for(let i=0;i<t.length;i++)s.categories.push({score:t[i],index:r[i]??-1,categoryName:n[i]??"",displayName:o[i]??""});if((t=k(e,Gn,4)?.h())&&(s.boundingBox={originX:Me(t,1)??0,originY:Me(t,2)??0,width:Me(t,3)??0,height:Me(t,4)??0,angle:0}),k(e,Gn,4)?.g().length)for(let i of k(e,Gn,4).g())s.keypoints.push({x:Ur(i,1)??0,y:Ur(i,2)??0,score:Ur(i,4)??0,label:dt(mt(i,3))??""});return s}function Tn(e){let t=[];for(let r of it(e,Ka,1))t.push({x:re(r,1)??0,y:re(r,2)??0,z:re(r,3)??0,visibility:re(r,4)??0});return t}function pr(e){let t=[];for(let r of it(e,Ya,1))t.push({x:re(r,1)??0,y:re(r,2)??0,z:re(r,3)??0,visibility:re(r,4)??0});return t}function oi(e){return Array.from(e,t=>t>127?t-256:t)}function si(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let r=0,n=0,o=0;for(let s=0;s<e.length;s++)r+=e[s]*t[s],n+=e[s]*e[s],o+=t[s]*t[s];if(n<=0||o<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*o)}var Fr;se[516587230]=[0,ne,Zo,ro,ce],se[518928384]=ro;var _1=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 Ec(){if(Fr===void 0)try{await WebAssembly.instantiate(_1),Fr=!0}catch{Fr=!1}return Fr}async function ir(e,t=Ku``){let r=await Ec()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${r}.js`,wasmBinaryPath:`${t}/${e}_${r}.wasm`}}var ut=class{};function xc(){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 ii(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",o=>{n(o)},!1),document.body.appendChild(t)})}importScripts(e.toString())}function _c(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(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 ai(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);let[n,o]=_c(t);return!e.l||n===e.i.canvas.width&&o===e.i.canvas.height||(e.i.canvas.width=n,e.i.canvas.height=o),[n,o]}function ci(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");let n=new Uint32Array(t.length);for(let o=0;o<t.length;o++)n[o]=e.i.stringToNewUTF8(t[o]);t=e.i._malloc(4*n.length),e.i.HEAPU32.set(n,t>>2),r(t);for(let o of n)e.i._free(o);e.i._free(t)}function Ke(e,t,r){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=r}function ct(e,t,r){let n=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(o,s,i)=>{s?(r(n,i),n=[]):n.push(o)}}ut.forVisionTasks=function(e){return ir("vision",e)},ut.forTextTasks=function(e){return ir("text",e)},ut.forGenAiExperimentalTasks=function(e){return ir("genai_experimental",e)},ut.forGenAiTasks=function(e){return ir("genai",e)},ut.forAudioTasks=function(e){return ir("audio",e)},ut.isSimdSupported=function(){return Ec()};async function v1(e,t,r,n){return e=await(async(o,s,i,c,a)=>{if(s&&await ii(s),!self.ModuleFactory||i&&(await ii(i),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&a&&((s=self.Module).locateFile=a.locateFile,a.mainScriptUrlOrBlob&&(s.mainScriptUrlOrBlob=a.mainScriptUrlOrBlob)),a=await self.ModuleFactory(self.Module||a),self.ModuleFactory=self.Module=void 0,new o(a,c)})(e,r.wasmLoaderPath,r.assetLoaderPath,t,{locateFile:o=>o.endsWith(".wasm")?r.wasmBinaryPath.toString():r.assetBinaryPath&&o.endsWith(".data")?r.assetBinaryPath.toString():o}),await e.o(n),e}function Vn(e,t){let r=k(e.baseOptions,Qr,1)||new Qr;typeof t=="string"?(G(r,2,qt(t)),G(r,1)):t instanceof Uint8Array&&(G(r,1,go(t,!1,!1)),G(r,2)),v(e.baseOptions,0,1,r)}function ui(e){try{let t=e.H.length;if(t===1)throw Error(e.H[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.H.map(r=>r.message).join(", "))}finally{e.H=[]}}function d(e,t){e.B=Math.max(e.B,t)}function bn(e,t){e.A=new pe,Se(e.A,"PassThroughCalculator"),V(e.A,"free_memory"),R(e.A,"free_memory_unused_out"),j(t,"free_memory"),ke(t,e.A)}function Xt(e,t){V(e.A,t),R(e.A,t+"_unused_out")}function An(e){e.g.addBoolToStream(!0,"free_memory",e.B)}var Dr=class{constructor(e){this.g=e,this.H=[],this.B=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){if(t){let r=e.baseOptions||{};if(e.baseOptions?.modelAssetBuffer&&e.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(k(this.baseOptions,Qr,1)?.g()||k(this.baseOptions,Qr,1)?.h()||e.baseOptions?.modelAssetBuffer||e.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(n,o){let s=k(n.baseOptions,ti,3);if(!s){var i=s=new ti,c=new $s;fr(i,4,Br,c)}"delegate"in o&&(o.delegate==="GPU"?(o=s,i=new zu,fr(o,2,Br,i)):(o=s,i=new $s,fr(o,4,Br,i))),v(n.baseOptions,0,3,s)}(this,r),r.modelAssetPath)return fetch(r.modelAssetPath.toString()).then(n=>{if(n.ok)return n.arrayBuffer();throw Error(`Failed to fetch model: ${r.modelAssetPath} (${n.status})`)}).then(n=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(n),!0,!1,!1),Vn(this,"/model.dat"),this.m(),this.J()});if(r.modelAssetBuffer instanceof Uint8Array)Vn(this,r.modelAssetBuffer);else if(r.modelAssetBuffer)return async function(n){let o=[];for(var s=0;;){let{done:i,value:c}=await n.read();if(i)break;o.push(c),s+=c.length}if(o.length===0)return new Uint8Array(0);if(o.length===1)return o[0];n=new Uint8Array(s),s=0;for(let i of o)n.set(i,s),s+=i.length;return n}(r.modelAssetBuffer).then(n=>{Vn(this,n),this.m(),this.J()})}return this.m(),this.J(),Promise.resolve()}J(){}ea(){let e;if(this.g.ea(t=>{e=$u(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener((r,n)=>{this.H.push(Error(n))}),this.g.Ma(),this.g.setGraph(e,t),this.A=void 0,ui(this)}finishProcessing(){this.g.finishProcessing(),ui(this)}close(){this.A=void 0,this.g.closeGraph()}};function de(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}Dr.prototype.close=Dr.prototype.close,function(e,t){e=e.split(".");var r,n=Ct;for((e[0]in n)||n.execScript===void 0||n.execScript("var "+e[0]);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}("TaskRunner",Dr);var oo=class{constructor(t,r,n,o){this.g=t,this.h=r,this.m=n,this.l=o}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}};function hi(e,t,r){let n=e.g;if(r=de(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 fi(e,t){let r=e.g,n=de(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(n);let o=de(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,o),r.enableVertexAttribArray(e.P),r.vertexAttribPointer(e.P,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);let s=de(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(e.J),r.vertexAttribPointer(e.J,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 oo(r,n,o,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 Cr(e,t,r,n){return rs(e,t),e.h||(e.m(),e.C()),r?(e.s||(e.s=fi(e,!0)),r=e.s):(e.v||(e.v=fi(e,!1)),r=e.v),t.useProgram(e.h),r.bind(),e.l(),e=n(),r.g.bindVertexArray(null),e}function xt(e,t,r){return rs(e,t),e=de(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 wn(e,t,r){rs(e,t),e.A||(e.A=de(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.A),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,r,0)}function ns(e){e.g?.bindFramebuffer(e.g.FRAMEBUFFER,null)}var tr=class{H(){return`
|
|
1
|
+
var Lt=typeof self<"u"?self:{};function Pi(e,t){e=e.split(".");var r,n=Lt;for((e[0]in n)||n.execScript===void 0||n.execScript("var "+e[0]);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 Rt(){throw Error("Invalid UTF8")}function Ts(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}var Sr,Sn,ru=typeof TextDecoder<"u",nu,ou=typeof TextEncoder<"u";function Bi(e){if(ou)e=(nu||(nu=new TextEncoder)).encode(e);else{let r=0,n=new Uint8Array(3*e.length);for(let o=0;o<e.length;o++){var t=e.charCodeAt(o);if(t<128)n[r++]=t;else{if(t<2048)n[r++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&o<e.length){let s=e.charCodeAt(++o);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}o--}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}var co,Gr;e:{for(kn=["CLOSURE_FLAGS"],kr=Lt,Cr=0;Cr<kn.length;Cr++)if((kr=kr[kn[Cr]])==null){Gr=null;break e}Gr=kr}var kn,kr,Cr,gr,bs=Gr&&Gr[610401301];co=bs!=null&&bs;var As=Lt.navigator;function Vn(e){return!!co&&!!gr&&gr.brands.some(({brand:t})=>t&&t.indexOf(e)!=-1)}function Oe(e){var t;return(t=Lt.navigator)&&(t=t.userAgent)||(t=""),t.indexOf(e)!=-1}function lt(){return!!co&&!!gr&&gr.brands.length>0}function Cn(){return lt()?Vn("Chromium"):(Oe("Chrome")||Oe("CriOS"))&&!(!lt()&&Oe("Edge"))||Oe("Silk")}function uo(e){return uo[" "](e),e}gr=As&&As.userAgentData||null,uo[" "]=function(){};var su=!lt()&&(Oe("Trident")||Oe("MSIE"));!Oe("Android")||Cn(),Cn(),Oe("Safari")&&(Cn()||!lt()&&Oe("Coast")||!lt()&&Oe("Opera")||!lt()&&Oe("Edge")||(lt()?Vn("Microsoft Edge"):Oe("Edg/"))||lt()&&Vn("Opera"));var Di={},hr=null;function iu(e){let 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);let n=new Uint8Array(r),o=0;return function(s,i){function a(h){for(;c<s.length;){let l=s.charAt(c++),x=hr[l];if(x!=null)return x;if(!/^[\s\xa0]*$/.test(l))throw Error("Unknown base64 encoding at char: "+l)}return h}Ni();let c=0;for(;;){let h=a(-1),l=a(0),x=a(64),g=a(64);if(g===64&&h===-1)break;i(h<<2|l>>4),x!=64&&(i(l<<4&240|x>>2),g!=64&&i(x<<6&192|g))}}(e,function(s){n[o++]=s}),o!==r?n.subarray(0,o):n}function Ni(){if(!hr){hr={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){let n=e.concat(t[r].split(""));Di[r]=n;for(let o=0;o<n.length;o++){let s=n[o];hr[s]===void 0&&(hr[s]=o)}}}}var Gi=typeof Uint8Array<"u",Vi=!su&&typeof btoa=="function";function ws(e){if(!Vi){var t;t===void 0&&(t=0),Ni(),t=Di[t];var r=Array(Math.floor(e.length/3)),n=t[64]||"";let c=0,h=0;for(;c<e.length-2;c+=3){var o=e[c],s=e[c+1],i=e[c+2],a=t[o>>2];o=t[(3&o)<<4|s>>4],s=t[(15&s)<<2|i>>6],i=t[63&i],r[h++]=a+o+s+i}switch(a=0,i=n,e.length-c){case 2:i=t[(15&(a=e[c+1]))<<2]||n;case 1:e=e[c],r[h]=t[e>>2]+t[(3&e)<<4|a>>4]+i+n}return r.join("")}for(t="",r=0,n=e.length-10240;r<n;)t+=String.fromCharCode.apply(null,e.subarray(r,r+=10240));return t+=String.fromCharCode.apply(null,r?e.subarray(r):e),btoa(t)}var Rs=/[-_.]/g,au={"-":"+",_:"/",".":"="};function cu(e){return au[e]||""}function ji(e){if(!Vi)return iu(e);Rs.test(e)&&(e=e.replace(Rs,cu)),e=atob(e);let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function vr(e){return Gi&&e!=null&&e instanceof Uint8Array}var Nt={};function It(){return uu||(uu=new ot(null,Nt))}function ho(e){Wi(Nt);var t=e.g;return(t=t==null||vr(t)?t:typeof t=="string"?ji(t):null)==null?t:e.g=t}var ot=class{h(){return new Uint8Array(ho(this)||0)}constructor(e,t){if(Wi(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}},uu,hu;function Wi(e){if(e!==Nt)throw Error("illegal external caller")}function Xi(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}function Hi(){let e=Error();Xi(e,"incident"),function(t){Lt.setTimeout(()=>{throw t},0)}(e)}function jn(e){return Xi(e=Error(e),"warning"),e}function lo(){return typeof BigInt=="function"}function we(e){return Array.prototype.slice.call(e)}var Kt=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Jr(e){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?Symbol():e}var Tr=Jr(),Ss=Jr("0di"),Ln=Jr("2ex"),sr=Jr("1oa"),Qr=Kt?(e,t)=>{e[Tr]|=t}:(e,t)=>{e.G!==void 0?e.G|=t:Object.defineProperties(e,{G:{value:t,configurable:!0,writable:!0,enumerable:!1}})},Wn=Kt?(e,t)=>{e[Tr]&=~t}:(e,t)=>{e.G!==void 0&&(e.G&=~t)},te=Kt?e=>0|e[Tr]:e=>0|e.G,B=Kt?e=>e[Tr]:e=>e.G,oe=Kt?(e,t)=>{e[Tr]=t}:(e,t)=>{e.G!==void 0?e.G=t:Object.defineProperties(e,{G:{value:t,configurable:!0,writable:!0,enumerable:!1}})};function $t(e){return Qr(e,34),e}function lu(e,t){oe(t,-30975&(0|e))}function Xn(e,t){oe(t,-30941&(34|e))}var fo,br={},Yi={};function ks(e){return!(!e||typeof e!="object"||e.Ia!==Yi)}function po(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.constructor===Object}function mo(e,t){if(e!=null){if(typeof e=="string")e=e?new ot(e,Nt):It();else if(e.constructor!==ot)if(vr(e))e=e.length?new ot(new Uint8Array(e),Nt):It();else{if(!t)throw Error();e=void 0}}return e}function Vr(e){return!(!Array.isArray(e)||e.length)&&!!(1&te(e))}var Cs=[];function vt(e){if(2&e)throw Error()}oe(Cs,55),fo=Object.freeze(Cs);var jr=class e{constructor(t,r,n){this.l=0,this.g=t,this.h=r,this.m=n}next(){if(this.l<this.g.length){let t=this.g[this.l++];return{done:!1,value:this.h?this.h.call(this.m,t):t}}return{done:!0,value:void 0}}[Symbol.iterator](){return new e(this.g,this.h,this.m)}},dt;function Ki(e,t){(t=dt?t[dt]:void 0)&&(e[dt]=we(t))}var fu=Object.freeze({});function Zr(e){return e.Pa=!0,e}var du=Zr(e=>typeof e=="number"),Ls=Zr(e=>typeof e=="string"),pu=Zr(e=>typeof e=="boolean"),en=typeof Lt.BigInt=="function"&&typeof Lt.BigInt(0)=="bigint",Hn=Zr(e=>en?e>=gu&&e<=Eu:e[0]==="-"?Is(e,mu):Is(e,yu)),mu=Number.MIN_SAFE_INTEGER.toString(),gu=en?BigInt(Number.MIN_SAFE_INTEGER):void 0,yu=Number.MAX_SAFE_INTEGER.toString(),Eu=en?BigInt(Number.MAX_SAFE_INTEGER):void 0;function Is(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],o=t[r];if(n>o)return!1;if(n<o)return!0}}var xu=typeof Uint8Array.prototype.slice=="function",$i,N=0,Q=0;function Fs(e){let t=e>>>0;N=t,Q=(e-t)/4294967296>>>0}function Gt(e){if(e<0){Fs(-e);let[t,r]=xo(N,Q);N=t>>>0,Q=r>>>0}else Fs(e)}function go(e){let t=$i||($i=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),Q=0,N=t.getUint32(0,!0)}function yo(e,t){let r=4294967296*t+(e>>>0);return Number.isSafeInteger(r)?r:yr(e,t)}function Eo(e,t){let r=2147483648&t;return r&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),typeof(e=yo(e,t))=="number"?r?-e:e:r?"-"+e:e}function yr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var r=""+(4294967296*t+e);else lo()?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+Os(r)+Os(e));return r}function Os(e){return e=String(e),"0000000".slice(e.length)+e}function tn(e){if(e.length<16)Gt(Number(e));else if(lo())e=BigInt(e),N=Number(e&BigInt(4294967295))>>>0,Q=Number(e>>BigInt(32)&BigInt(4294967295));else{let t=+(e[0]==="-");Q=N=0;let r=e.length;for(let n=t,o=(r-t)%6+t;o<=r;n=o,o+=6){let s=Number(e.slice(n,o));Q*=1e6,N=1e6*N+s,N>=4294967296&&(Q+=Math.trunc(N/4294967296),Q>>>=0,N>>>=0)}if(t){let[n,o]=xo(N,Q);N=n,Q=o}}}function xo(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function Tt(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function zi(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}var _u=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function rn(e){let t=typeof e;switch(t){case"bigint":return!0;case"number":return Number.isFinite(e)}return t==="string"&&_u.test(e)}function zt(e){if(e==null)return e;if(typeof e=="string"){if(!e)return;e=+e}return typeof e=="number"&&Number.isFinite(e)?0|e:void 0}function qi(e){if(e==null)return e;if(typeof e=="string"){if(!e)return;e=+e}return typeof e=="number"&&Number.isFinite(e)?e>>>0:void 0}function Ms(e){return e[0]!=="-"&&(e.length<20||e.length===20&&Number(e.substring(0,6))<184467)}function _o(e){return e=Math.trunc(e),Number.isSafeInteger(e)||(Gt(e),e=Eo(N,Q)),e}function vo(e){var t=Math.trunc(Number(e));if(Number.isSafeInteger(t))return String(t);if((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),!(e[0]==="-"?e.length<20||e.length===20&&Number(e.substring(0,7))>-922337:e.length<19||e.length===19&&Number(e.substring(0,6))<922337))if(tn(e),e=N,2147483648&(t=Q))if(lo())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{let[r,n]=xo(e,t);e="-"+yr(r,n)}else e=yr(e,t);return e}function Wr(e){return e==null?e:typeof e=="bigint"?(Hn(e)?e=Number(e):(e=BigInt.asIntN(64,e),e=Hn(e)?Number(e):String(e)),e):rn(e)?typeof e=="number"?_o(e):vo(e):void 0}function vu(e){if(e==null)return e;var t=typeof e;if(t==="bigint")return String(BigInt.asUintN(64,e));if(rn(e)){if(t==="string")return t=Math.trunc(Number(e)),Number.isSafeInteger(t)&&t>=0?e=String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),Ms(e)||(tn(e),e=yr(N,Q))),e;if(t==="number")return(e=Math.trunc(e))>=0&&Number.isSafeInteger(e)?e:function(r){if(r<0){Gt(r);var n=yr(N,Q);return r=Number(n),Number.isSafeInteger(r)?r:n}return Ms(n=String(r))?n:(Gt(r),yo(N,Q))}(e)}}function Ji(e){if(typeof e!="string")throw Error();return e}function qt(e){if(e!=null&&typeof e!="string")throw Error();return e}function pt(e){return e==null||typeof e=="string"?e:void 0}function To(e,t,r,n){if(e!=null&&typeof e=="object"&&e.X===br)return e;if(!Array.isArray(e))return r?2&n?(e=t[Ss])?t=e:($t((e=new t).u),t=t[Ss]=e):t=new t:t=void 0,t;let o=r=te(e);return o===0&&(o|=32&n),o|=2&n,o!==r&&oe(e,o),new t(e)}function Tu(e,t,r){if(t)e:{if(!rn(t=e))throw jn("int64");switch(typeof t){case"string":t=vo(t);break e;case"bigint":if(e=t=BigInt.asIntN(64,t),Ls(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(du(e)&&!Number.isSafeInteger(e))throw Error(String(e));t=en?BigInt(t):pu(t)?t?"1":"0":Ls(t)?t.trim()||"0":String(t);break e;default:t=_o(t)}}else t=Wr(e);return typeof(r=(e=t)==null?r?0:void 0:e)=="string"&&(t=+r,Number.isSafeInteger(t))?t:r}function Qi(e){var t;return ir===void 0&&(ir=typeof Proxy=="function"?Us(Proxy):null),(t=!ir)||(ar===void 0&&(ar=typeof WeakMap=="function"?Us(WeakMap):null),t=!ar),t?e:(t=Vt?.get(e))?t:Math.random()>.01?e:(function(r){if(In===void 0){let n=new ir([],{});In=Array.prototype.concat.call([],n).length===1}In&&typeof Symbol=="function"&&Symbol.isConcatSpreadable&&(r[Symbol.isConcatSpreadable]=!0)}(e),function(r,n){(Vt||(Vt=new ar)).set(r,n),(Zi||(Zi=new ar)).set(n,r)}(e,t=new ir(e,{set:(r,n,o)=>(Hi(),r[n]=o,!0)})),t)}var Vt,Zi,ir,ar,In,Xr,ea,bu;function Us(e){try{return e.toString().indexOf("[native code]")!==-1?e:null}catch{return null}}function mt(e,t,r){return e=ta(e,t[0],t[1],r?1:2),t!==ea&&r&&Qr(e,16384),e}function ta(e,t,r,n){if(n=n??0,e==null&&(e=Xr),Xr=void 0,e==null){var o=96;r?(e=[r],o|=512):e=[],t&&(o=-33521665&o|(1023&t)<<15)}else{if(!Array.isArray(e))throw Error("narr");if(2048&(o=te(e)))throw Error("farr");if(64&o)return e;if(n===1||n===2||(o|=64),r&&(o|=512,r!==e[0]))throw Error("mid");e:{if(n=(r=e).length){let s=n-1;if(po(r[s])){if((t=s-(+!!(512&(o|=256))-1))>=1024)throw Error("pvtlmt");o=-33521665&o|(1023&t)<<15;break e}}if(t){if((t=Math.max(t,n-(+!!(512&o)-1)))>1024)throw Error("spvt");o=-33521665&o|(1023&t)<<15}}}return oe(e,o),e}var Au={},wu=function(){try{return uo(new class extends Map{constructor(){super()}}),!1}catch{return!0}}(),fr=class{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()}},Ru=wu?(Object.setPrototypeOf(fr.prototype,Map.prototype),Object.defineProperties(fr.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),fr):class extends Map{constructor(){super()}};function Ps(e){return e}function Fn(e){if(2&e.M)throw Error("Cannot mutate an immutable Map")}var Ue=class extends Ru{constructor(e,t,r=Ps,n=Ps){super();let o=te(e);o|=64,oe(e,o),this.M=o,this.T=t,this.S=r,this.Z=this.T?Su:n;for(let s=0;s<e.length;s++){let i=e[s],a=r(i[0],!1,!0),c=i[1];t?c===void 0&&(c=null):c=n(i[1],!1,!0,void 0,void 0,o),super.set(a,c)}}oa(e=Bs){if(this.size!==0)return this.Y(e)}Y(e=Bs){let t=[],r=super.entries();for(var n;!(n=r.next()).done;)(n=n.value)[0]=e(n[0]),n[1]=e(n[1]),t.push(n);return t}clear(){Fn(this),super.clear()}delete(e){return Fn(this),super.delete(this.S(e,!0,!1))}entries(){var e=this.na();return new jr(e,ku,this)}keys(){return this.Ha()}values(){var e=this.na();return new jr(e,Ue.prototype.get,this)}forEach(e,t){super.forEach((r,n)=>{e.call(t,this.get(n),n,this)})}set(e,t){return Fn(this),(e=this.S(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.Z(t,!0,!0,this.T,!1,this.M))}Na(e){let t=this.S(e[0],!1,!0);e=e[1],e=this.T?e===void 0?null:e:this.Z(e,!1,!0,void 0,!1,this.M),super.set(t,e)}has(e){return super.has(this.S(e,!1,!1))}get(e){e=this.S(e,!1,!1);let t=super.get(e);if(t!==void 0){var r=this.T;return r?((r=this.Z(t,!1,!0,r,this.sa,this.M))!==t&&super.set(e,r),r):t}}na(){return Array.from(super.keys())}Ha(){return super.keys()}[Symbol.iterator](){return this.entries()}};function Su(e,t,r,n,o,s){return e=To(e,n,r,s),o&&(e=on(e)),e}function Bs(e){return e}function ku(e){return[e,this.get(e)]}var Cu;function Ds(){return Cu||(Cu=new Ue($t([]),void 0,void 0,void 0,Au))}function bo(e,t,r,n,o){if(e!=null){if(Array.isArray(e))e=Vr(e)?void 0:o&&2&te(e)?e:nn(e,t,r,n!==void 0,o);else if(po(e)){let s={};for(let i in e)s[i]=bo(e[i],t,r,n,o);e=s}else e=t(e,n);return e}}function nn(e,t,r,n,o){let s=n||r?te(e):0;n=n?!!(32&s):void 0;let i=we(e);for(let a=0;a<i.length;a++)i[a]=bo(i[a],t,r,n,o);return r&&(Ki(i,e),r(s,i)),i}function Lu(e){return bo(e,Ao,void 0,void 0,!1)}function Ao(e){return e.X===br?e.toJSON():e instanceof Ue?e.oa(Lu):function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"bigint":return Hn(t)?Number(t):String(t);case"boolean":return t?1:0;case"object":if(t)if(Array.isArray(t)){if(Vr(t))return}else{if(vr(t))return ws(t);if(t instanceof ot){let r=t.g;return r==null?"":typeof r=="string"?r:t.g=ws(r)}if(t instanceof Ue)return t.oa()}}return t}(e)}function Yn(e,t,r=Xn){if(e!=null){if(Gi&&e instanceof Uint8Array)return t?e:new Uint8Array(e);if(Array.isArray(e)){var n=te(e);return 2&n?e:(t&&(t=n===0||!!(32&n)&&!(64&n||!(16&n))),t?(oe(e,-12293&(34|n)),e):nn(e,Yn,4&n?Xn:r,!0,!0))}return e.X===br?(r=e.u,e=2&(n=B(r))?e:wo(e,r,n,!0)):e instanceof Ue&&!(2&e.M)&&(r=$t(e.Y(Yn)),e=new Ue(r,e.T,e.S,e.Z)),e}}function wo(e,t,r,n){return e=e.constructor,Xr=t=ra(t,r,n),t=new e(t),Xr=void 0,t}function ra(e,t,r){let n=r||2&t?Xn:lu,o=!!(32&t);return e=function(s,i,a){let c=we(s);var h=c.length;let l=256&i?c[h-1]:void 0;for(h+=l?-1:0,i=512&i?1:0;i<h;i++)c[i]=a(c[i]);if(l){i=c[i]={};for(let x in l)i[x]=a(l[x])}return Ki(c,s),c}(e,t,s=>Yn(s,o,n)),Qr(e,32|(r?2:0)),e}function on(e){let t=e.u,r=B(t);return 2&r?wo(e,t,r,!1):e}function yt(e,t){return ct(e=e.u,B(e),t)}function Ns(e,t,r,n){if(!((t=n+(+!!(512&t)-1))<0||t>=e.length||t>=r))return e[t]}function ct(e,t,r,n){if(r===-1)return null;let o=t>>15&1023||536870912;if(!(r>=o)){var s=e.length;return n&&256&t&&(n=e[s-1][r])!=null?(Ns(e,t,o,r)&&Ln!=null&&((t=(e=hu??(hu={}))[Ln]||0)>=4||(e[Ln]=t+1,Hi())),n):Ns(e,t,o,r)}return 256&t?e[e.length-1][r]:void 0}function V(e,t,r){let n=e.u,o=B(n);return vt(o),z(n,o,t,r),e}function z(e,t,r,n){let o=t>>15&1023||536870912;if(r>=o){let s,i=t;if(256&t)s=e[e.length-1];else{if(n==null)return i;s=e[o+(+!!(512&t)-1)]={},i|=256}return s[r]=n,r<o&&(e[r+(+!!(512&t)-1)]=void 0),i!==t&&oe(e,i),i}return e[r+(+!!(512&t)-1)]=n,256&t&&r in(e=e[e.length-1])&&delete e[r],t}function Mr(e,t){e=e.u;let r=B(e),n=ct(e,r,t),o=Tt(n);return o!=null&&o!==n&&z(e,r,t,o),o}function na(e){e=e.u;let t=B(e),r=ct(e,t,1),n=mo(r,!0);return n!=null&&n!==r&&z(e,t,1,n),n}function St(){return fu===void 0?2:4}function kt(e,t,r,n,o){let s=e.u,i=2&(e=B(s))?1:n;o=!!o,n=Ro(s,e,t);var a=te(n);if(!(4&a)){4&a&&(n=we(n),a=st(a,e),e=z(s,e,t,n));let h=0,l=0;for(;h<n.length;h++){let x=r(n[h]);x!=null&&(n[l++]=x)}l<h&&(n.length=l),a=-4097&(20|(a=So(a,e))),oe(n,a&=-8193),2&a&&Object.freeze(n)}let c;return i===1||i===4&&32&a?Ge(a)||(o=a,(a|=2)!==o&&oe(n,a),Object.freeze(n)):(r=i===5&&(!!(32&a)||Ge(a)||!!Vt?.get(n)),(i===2||r)&&Ge(a)&&(n=we(n),a=gt(a=st(a,e),e,o),oe(n,a),e=z(s,e,t,n)),Ge(a)||(t=a,(a=gt(a,e,o))!==t&&oe(n,a)),r?c=Qi(n):i!==2||o||Vt?.delete(n)),c||n}function Ro(e,t,r,n){return e=ct(e,t,r,n),Array.isArray(e)?e:fo}function So(e,t){return e===0&&(e=st(e,t)),1|e}function Ge(e){return!!(2&e)&&!!(4&e)||!!(2048&e)}function oa(e){e=we(e);for(let t=0;t<e.length;t++){let r=e[t]=we(e[t]);Array.isArray(r[1])&&(r[1]=$t(r[1]))}return e}function Kn(e,t,r,n){e=e.u;let o=B(e);vt(o),z(e,o,t,(n==="0"?Number(r)===0:r===n)?void 0:r)}function Jt(e,t,r,n,o){vt(t);var s=!(!(64&t)&&16384&t);let i=(o=Ro(e,t,r,o))!==fo;if(s||!i){let a=s=i?te(o):0;(!i||2&a||Ge(a)||4&a&&!(32&a))&&(o=we(o),a=st(a,t),t=z(e,t,r,o)),a=-13&So(a,t),a=gt(n?-17&a:16|a,t,!0),a!==s&&oe(o,a)}return o}function On(e,t){var r=Ka;return Co(ko(e=e.u),e,B(e),r)===t?t:-1}function ko(e){if(Kt)return e[sr]??(e[sr]=new Map);if(sr in e)return e[sr];let t=new Map;return Object.defineProperty(e,sr,{value:t}),t}function sa(e,t,r,n){let o=ko(e),s=Co(o,e,t,r);return s!==n&&(s&&(t=z(e,t,s)),o.set(r,n)),t}function Co(e,t,r,n){let o=e.get(n);if(o!=null)return o;o=0;for(let s=0;s<n.length;s++){let i=n[s];ct(t,r,i)!=null&&(o!==0&&(r=z(t,r,o)),o=i)}return e.set(n,o),o}function Lo(e,t,r,n){let o,s=B(e);if((n=ct(e,s,r,n))!=null&&n.X===br)return(t=on(n))!==n&&z(e,s,r,t),t.u;if(Array.isArray(n)){let i=te(n);o=2&i?mt(ra(n,i,!1),t,!0):64&i?n:mt(o,t,!0)}else o=mt(void 0,t,!0);return o!==n&&z(e,s,r,o),o}function ia(e,t,r,n){e=e.u;let o=B(e);return(t=To(n=ct(e,o,r,n),t,!1,o))!==n&&t!=null&&z(e,o,r,t),t}function k(e,t,r,n=!1){if((t=ia(e,t,r,n))==null)return t;if(e=e.u,!(2&(n=B(e)))){let o=on(t);o!==t&&z(e,n,r,t=o)}return t}function aa(e,t,r,n,o,s,i){e=e.u;var a=!!(2&t);o=a?1:o,s=!!s,i&&(i=!a),a=Ro(e,t,n);var c=te(a),h=!!(4&c);if(!h){var l=a,x=t;let E=!!(2&(c=So(c,t)));E&&(x|=2);let A=!E,b=!0,G=0,L=0;for(;G<l.length;G++){let f=To(l[G],r,!1,x);if(f instanceof r){if(!E){let _=!!(2&te(f.u));A&&(A=!_),b&&(b=_)}l[L++]=f}}L<G&&(l.length=L),c|=4,c=b?16|c:-17&c,oe(l,c=A?8|c:-9&c),E&&Object.freeze(l)}if(i&&!(8&c||!a.length&&(o===1||o===4&&32&c))){for(Ge(c)&&(a=we(a),c=st(c,t),t=z(e,t,n,a)),r=a,i=c,l=0;l<r.length;l++)(c=r[l])!==(x=on(c))&&(r[l]=x);i|=8,i=r.length?-17&i:16|i,oe(r,i),c=i}let g;return o===1||o===4&&32&c?Ge(c)||(t=c,(c|=!a.length||16&c&&(!h||32&c)?2:2048)!==t&&oe(a,c),Object.freeze(a)):(h=o===5&&(!!(32&c)||Ge(c)||!!Vt?.get(a)),(o===2||h)&&Ge(c)&&(a=we(a),c=gt(c=st(c,t),t,s),oe(a,c),t=z(e,t,n,a)),Ge(c)||(n=c,(c=gt(c,t,s))!==n&&oe(a,c)),h?g=Qi(a):o!==2||s||Vt?.delete(a)),g||a}function it(e,t,r){let n=B(e.u);return aa(e,n,t,r,St(),!1,!(2&n))}function v(e,t,r,n){return n==null&&(n=void 0),V(e,r,n)}function dr(e,t,r,n){n==null&&(n=void 0);e:{e=e.u;let o=B(e);if(vt(o),n==null){let s=ko(e);if(Co(s,e,o,r)!==t)break e;s.set(r,0)}else o=sa(e,o,r,t);z(e,o,t,n)}}function st(e,t){return-2049&(e=32|(2&t?2|e:-3&e))}function gt(e,t,r){return 32&t&&r||(e&=-33),e}function Hr(e,t,r,n){let o=B(e.u);vt(o),e=aa(e,o,r,t,2,!0),n=n??new r,e.push(n),2&te(n.u)?Wn(e,8):Wn(e,16)}function Ve(e,t){return e??t}function Me(e,t){return zt(yt(e,t))}function ee(e,t){return Ve(Mr(e,t),0)}function Qe(e,t){return Ve(pt(yt(e,t)),"")}function Er(e,t,r){if(r!=null&&typeof r!="boolean")throw e=typeof r,Error(`Expected boolean but got ${e!="object"?e:r?Array.isArray(r)?"array":e:"null"}: ${r}`);V(e,t,r)}function Ze(e,t,r){if(r!=null){if(typeof r!="number"||!Number.isFinite(r))throw jn("int32");r|=0}V(e,t,r)}function m(e,t,r){if(r!=null&&typeof r!="number")throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);V(e,t,r)}function Yr(e,t,r){{let i=e.u,a=B(i);if(vt(a),r==null)z(i,a,t);else{r=Zi?.get(r)||r;var n=e=te(r),o=Ge(e),s=o||Object.isFrozen(r);for(o||(e=0),s||(r=we(r),n=0,e=gt(e=st(e,a),a,!0),s=!1),e|=21,o=0;o<r.length;o++){let c=r[o],h=Ji(c);Object.is(c,h)||(s&&(r=we(r),n=0,e=gt(e=st(e,a),a,!0),s=!1),r[o]=h)}e!==n&&(s&&(r=we(r),e=gt(e=st(e,a),a,!0)),oe(r,e)),z(i,a,t,r)}}}function sn(e,t,r){vt(B(e.u)),kt(e,t,pt,2,!0).push(Ji(r))}function ca(e,t){return Error(`Invalid wire type: ${e} (at position ${t})`)}function Io(){return Error("Failed to read varint, encoding is invalid.")}function ua(e,t){return Error(`Tried to read past the end of the data ${t} > ${e}`)}function Fo(e){if(typeof e=="string")return{buffer:ji(e),O:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Uint8Array)return{buffer:e,O:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),O:!1};if(e.constructor===ot)return{buffer:ho(e)||new Uint8Array(0),O:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function Oo(e,t){let r,n=0,o=0,s=0,i=e.h,a=e.g;do r=i[a++],n|=(127&r)<<s,s+=7;while(s<32&&128&r);for(s>32&&(o|=(127&r)>>4),s=3;s<32&&128&r;s+=7)r=i[a++],o|=(127&r)<<s;if(Ct(e,a),r<128)return t(n>>>0,o>>>0);throw Io()}function Mo(e){let t=0,r=e.g,n=r+10,o=e.h;for(;r<n;){let s=o[r++];if(t|=s,(128&s)==0)return Ct(e,r),!!(127&t)}throw Io()}function Et(e){let t=e.h,r=e.g,n=t[r++],o=127&n;if(128&n&&(n=t[r++],o|=(127&n)<<7,128&n&&(n=t[r++],o|=(127&n)<<14,128&n&&(n=t[r++],o|=(127&n)<<21,128&n&&(n=t[r++],o|=n<<28,128&n&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++])))))throw Io();return Ct(e,r),o}function at(e){return Et(e)>>>0}function $n(e){var t=e.h;let r=e.g,n=t[r],o=t[r+1],s=t[r+2];return t=t[r+3],Ct(e,e.g+4),(n<<0|o<<8|s<<16|t<<24)>>>0}function zn(e){var t=$n(e);e=2*(t>>31)+1;let 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 Iu(e){return Et(e)}function Mn(e,t,{ca:r=!1}={}){e.ca=r,t&&(t=Fo(t),e.h=t.buffer,e.m=t.O,e.j=0,e.l=e.h.length,e.g=e.j)}function Ct(e,t){if(e.g=t,t>e.l)throw ua(e.l,t)}function ha(e,t){if(t<0)throw Error(`Tried to read a negative byte length: ${t}`);let r=e.g,n=r+t;if(n>e.l)throw ua(t,e.l-r);return e.g=n,r}function la(e,t){if(t==0)return It();var r=ha(e,t);return e.ca&&e.m?r=e.h.subarray(r,r+t):(e=e.h,r=r===(t=r+t)?new Uint8Array(0):xu?e.slice(r,t):new Uint8Array(e.subarray(r,t))),r.length==0?It():new ot(r,Nt)}Ue.prototype.toJSON=void 0,Ue.prototype.Ia=Yi;var Gs=[];function fa(e){var t=e.g;if(t.g==t.l)return!1;e.l=e.g.g;var r=at(e.g);if(t=r>>>3,!((r&=7)>=0&&r<=5))throw ca(r,e.l);if(t<1)throw Error(`Invalid field number: ${t} (at position ${e.l})`);return e.m=t,e.h=r,!0}function Ur(e){switch(e.h){case 0:e.h!=0?Ur(e):Mo(e.g);break;case 1:Ct(e=e.g,e.g+8);break;case 2:if(e.h!=2)Ur(e);else{var t=at(e.g);Ct(e=e.g,e.g+t)}break;case 5:Ct(e=e.g,e.g+4);break;case 3:for(t=e.m;;){if(!fa(e))throw Error("Unmatched start-group tag: stream EOF");if(e.h==4){if(e.m!=t)throw Error("Unmatched end-group tag");break}Ur(e)}break;default:throw ca(e.h,e.l)}}function Ar(e,t,r){let n=e.g.l,o=at(e.g),s=e.g.g+o,i=s-n;if(i<=0&&(e.g.l=s,r(t,e,void 0,void 0,void 0),i=s-e.g.g),i)throw Error(`Message parsing ended unexpectedly. Expected to read ${o} bytes, instead read ${o-i} bytes, either the data ended unexpectedly or the message misreported its own length`);return e.g.g=s,e.g.l=n,t}function Uo(e){var t=at(e.g),r=ha(e=e.g,t);if(e=e.h,ru){var n,o=e;(n=Sn)||(n=Sn=new TextDecoder("utf-8",{fatal:!0})),t=r+t,o=r===0&&t===o.length?o:o.subarray(r,t);try{var s=n.decode(o)}catch(a){if(Sr===void 0){try{n.decode(new Uint8Array([128]))}catch{}try{n.decode(new Uint8Array([97])),Sr=!0}catch{Sr=!1}}throw!Sr&&(Sn=void 0),a}}else{t=(s=r)+t,r=[];let a,c=null;for(;s<t;){var i=e[s++];i<128?r.push(i):i<224?s>=t?Rt():(a=e[s++],i<194||(192&a)!=128?(s--,Rt()):r.push((31&i)<<6|63&a)):i<240?s>=t-1?Rt():(a=e[s++],(192&a)!=128||i===224&&a<160||i===237&&a>=160||(192&(n=e[s++]))!=128?(s--,Rt()):r.push((15&i)<<12|(63&a)<<6|63&n)):i<=244?s>=t-2?Rt():(a=e[s++],(192&a)!=128||a-144+(i<<28)>>30||(192&(n=e[s++]))!=128||(192&(o=e[s++]))!=128?(s--,Rt()):(i=(7&i)<<18|(63&a)<<12|(63&n)<<6|63&o,i-=65536,r.push(55296+(i>>10&1023),56320+(1023&i)))):Rt(),r.length>=8192&&(c=Ts(c,r),r.length=0)}s=Ts(c,r)}return s}function da(e){let t=at(e.g);return la(e.g,t)}function an(e,t,r){var n=at(e.g);for(n=e.g.g+n;e.g.g<n;)r.push(t(e.g))}var Lr=[],Kr;function We(e,t,r){t.g?t.m(e,t.g,t.h,r,!0):t.m(e,t.h,r,!0)}var p=class{constructor(e,t){this.u=ta(e,t)}toJSON(){return pa(this)}l(){var e=f1;return e.g?e.l(this,e.g,e.h,!0):e.l(this,e.h,e.defaultValue,!0)}clone(){let e=this.u;return wo(this,e,B(e),!1)}O(){return!!(2&te(this.u))}};function pa(e){e=e.u,e=Kr?e:nn(e,Ao,void 0,void 0,!1);{var t=!Kr;let h=e.length;if(h){var r=e[h-1],n=po(r);n?h--:r=void 0;var o=e;if(n){e:{var s,i=r,a=!1;if(i)for(let l in i)isNaN(+l)?(s??(s={}))[l]=i[l]:(n=i[l],Array.isArray(n)&&(Vr(n)||ks(n)&&n.size===0)&&(n=null),n==null&&(a=!0),n!=null&&((s??(s={}))[l]=n));if(a||(s=i),s)for(let l in s){a=s;break e}a=null}i=a==null?r!=null:a!==r}for(;h>0&&((s=o[h-1])==null||Vr(s)||ks(s)&&s.size===0);h--)var c=!0;(o!==e||i||c)&&(t?(c||i||a)&&(o.length=h):o=Array.prototype.slice.call(o,0,h),a&&o.push(a)),c=o}else c=e}return c}function Vs(e){return e?/^\d+$/.test(e)?(tn(e),new qn(N,Q)):null:Fu||(Fu=new qn(0,0))}p.prototype.X=br,p.prototype.toString=function(){try{return Kr=!0,pa(this).toString()}finally{Kr=!1}};var qn=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}},Fu;function js(e){return e?/^-?\d+$/.test(e)?(tn(e),new Jn(N,Q)):null:Ou||(Ou=new Jn(0,0))}var Jn=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}},Ou;function Pt(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 Qt(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function cn(e,t){if(t>=0)Qt(e,t);else{for(let r=0;r<9;r++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function xr(e,t){e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function jt(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function Se(e,t,r){Qt(e.g,8*t+r)}function Po(e,t){return Se(e,t,2),t=e.g.end(),jt(e,t),t.push(e.h),t}function Bo(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 un(e,t,r){Se(e,t,2),Qt(e.g,r.length),jt(e,e.g.end()),jt(e,r)}function $r(e,t,r,n){r!=null&&(t=Po(e,t),n(r,e),Bo(e,t))}function Xe(){let e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var Do=Xe(),ma=Xe(),No=Xe(),Go=Xe(),ga=Xe(),ya=Xe(),Vo=Xe(),Ea=Xe(),xa=Xe(),Zt=class{constructor(e,t,r){this.g=e,this.h=t,e=Do,this.l=!!e&&r===e||!1}};function hn(e,t){return new Zt(e,t,Do)}function _a(e,t,r,n,o){$r(e,r,Aa(t,n),o)}var Mu=hn(function(e,t,r,n,o){return e.h===2&&(Ar(e,Lo(t,n,r),o),!0)},_a),Uu=hn(function(e,t,r,n,o){return e.h===2&&(Ar(e,Lo(t,n,r,!0),o),!0)},_a),ln=Symbol(),jo=Symbol(),Ws=Symbol(),Xs=Symbol(),va,Ta;function Ft(e,t,r,n){var o=n[e];if(o)return o;(o={}).W=function(x){switch(typeof x){case"boolean":return ea||(ea=[0,void 0,!0]);case"number":return x>0?void 0:x===0?bu||(bu=[0,void 0]):[-x,void 0];case"string":return[0,x];case"object":return x}}(n[0]);var s=n[1];let i=1;s&&s.constructor===Object&&(o.ha=s,typeof(s=n[++i])=="function"&&(o.ma=!0,va??(va=s),Ta??(Ta=n[i+1]),s=n[i+=2]));let a={};for(;s&&Array.isArray(s)&&s.length&&typeof s[0]=="number"&&s[0]>0;){for(var c=0;c<s.length;c++)a[s[c]]=s;s=n[++i]}for(c=1;s!==void 0;){let x;typeof s=="number"&&(c+=s,s=n[++i]);var h=void 0;if(s instanceof Zt?x=s:(x=Mu,i--),x?.l){s=n[++i],h=n;var l=i;typeof s=="function"&&(s=s(),h[l]=s),h=s}for(l=c+1,typeof(s=n[++i])=="number"&&s<0&&(l-=s,s=n[++i]);c<l;c++){let g=a[c];h?r(o,c,x,h,g):t(o,c,x,g)}}return n[e]=o}function ba(e){return Array.isArray(e)?e[0]instanceof Zt?e:[Uu,e]:[e,void 0]}function Aa(e,t){return e instanceof p?e.u:Array.isArray(e)?mt(e,t,!1):void 0}function Wo(e,t,r,n){let o=r.g;e[t]=n?(s,i,a)=>o(s,i,a,n):o}function Xo(e,t,r,n,o){let s=r.g,i,a;e[t]=(c,h,l)=>s(c,h,l,a||(a=Ft(jo,Wo,Xo,n).W),i||(i=Ho(n)),o)}function Ho(e){let t=e[Ws];if(t!=null)return t;let r=Ft(jo,Wo,Xo,e);return t=r.ma?(n,o)=>va(n,o,r):(n,o)=>{let s=B(n);for(;fa(o)&&o.h!=4;){var i=o.m,a=r[i];if(a==null){var c=r.ha;c&&(c=c[i])&&(c=Pu(c))!=null&&(a=r[i]=c)}a!=null&&a(o,n,i)||(i=(a=o).l,Ur(a),a.ga?a=void 0:(c=a.g.g-i,a.g.g=i,a=la(a.g,c)),i=n,a&&(dt||(dt=Symbol()),(c=i[dt])?c.push(a):i[dt]=[a]))}return 16384&s&&$t(n),!0},e[Ws]=t}function Pu(e){let t=(e=ba(e))[0].g;if(e=e[1]){let r=Ho(e),n=Ft(jo,Wo,Xo,e).W;return(o,s,i)=>t(o,s,i,n,r)}return t}function fn(e,t,r){e[t]=r.h}function dn(e,t,r,n){let o,s,i=r.h;e[t]=(a,c,h)=>i(a,c,h,s||(s=Ft(ln,fn,dn,n).W),o||(o=wa(n)))}function wa(e){let t=e[Xs];if(!t){let r=Ft(ln,fn,dn,e);t=(n,o)=>Ra(n,o,r),e[Xs]=t}return t}function Ra(e,t,r){for(var n=te(e),o=+!!(512&n)-1,s=e.length,i=512&n?1:0,a=s+(256&n?-1:0);i<a;i++){let c=e[i];if(c==null)continue;let h=i-o,l=Hs(r,h);l&&l(t,c,h)}if(256&n){n=e[s-1];for(let c in n)o=+c,Number.isNaN(o)||(s=n[o])!=null&&(a=Hs(r,o))&&a(t,s,o)}if(e=dt?e[dt]:void 0)for(jt(t,t.g.end()),r=0;r<e.length;r++)jt(t,ho(e[r])||new Uint8Array(0))}function Hs(e,t){var r=e[t];if(r)return r;if((r=e.ha)&&(r=r[t])){var n=(r=ba(r))[0].h;if(r=r[1]){let o=wa(r),s=Ft(ln,fn,dn,r).W;r=e.ma?Ta(s,o):(i,a,c)=>n(i,a,c,s,o)}else r=n;return e[t]=r}}function er(e,t){if(Array.isArray(t)){var r=te(t);if(4&r)return t;for(var n=0,o=0;n<t.length;n++){let s=e(t[n]);s!=null&&(t[o++]=s)}return o<n&&(t.length=o),oe(t,-12289&(5|r)),2&r&&Object.freeze(t),t}}function ge(e,t,r){return new Zt(e,t,r)}function tr(e,t,r){return new Zt(e,t,r)}function ye(e,t,r){z(e,B(e),t,r)}var Bu=hn(function(e,t,r,n,o){return e.h===2&&(e=Ar(e,mt([void 0,void 0],n,!0),o),vt(n=B(t)),(o=ct(t,n,r))instanceof Ue?2&o.M?((o=o.Y()).push(e),z(t,n,r,o)):o.Na(e):Array.isArray(o)?(2&te(o)&&z(t,n,r,o=oa(o)),o.push(e)):z(t,n,r,[e]),!0)},function(e,t,r,n,o){if(t instanceof Ue)t.forEach((s,i)=>{$r(e,r,mt([i,s],n,!1),o)});else if(Array.isArray(t))for(let s=0;s<t.length;s++){let i=t[s];Array.isArray(i)&&$r(e,r,mt(i,n,!1),o)}});function Sa(e,t,r){if(t=function(n){if(n==null)return n;let o=typeof n;if(o==="bigint")return String(BigInt.asIntN(64,n));if(rn(n)){if(o==="string")return vo(n);if(o==="number")return _o(n)}}(t),t!=null&&(typeof t=="string"&&js(t),t!=null))switch(Se(e,r,0),typeof t){case"number":e=e.g,Gt(t),Pt(e,N,Q);break;case"bigint":r=BigInt.asUintN(64,t),r=new Jn(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),Pt(e.g,r.h,r.g);break;default:r=js(t),Pt(e.g,r.h,r.g)}}function ka(e,t,r){(t=zt(t))!=null&&t!=null&&(Se(e,r,0),cn(e.g,t))}function Ca(e,t,r){(t=zi(t))!=null&&(Se(e,r,0),e.g.g.push(t?1:0))}function La(e,t,r){(t=pt(t))!=null&&un(e,r,Bi(t))}function Ia(e,t,r,n,o){$r(e,r,Aa(t,n),o)}function Fa(e,t,r){(t=t==null||typeof t=="string"||vr(t)||t instanceof ot?t:void 0)!=null&&un(e,r,Fo(t).buffer)}function Oa(e,t,r){return(e.h===5||e.h===2)&&(t=Jt(t,B(t),r,!1,!1),e.h==2?an(e,zn,t):t.push(zn(e.g)),!0)}var rt=ge(function(e,t,r){if(e.h!==1)return!1;var n=e.g;e=$n(n);let o=$n(n);n=2*(o>>31)+1;let s=o>>>20&2047;return e=4294967296*(1048575&o)+e,ye(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=Tt(t))!=null&&(Se(e,r,1),e=e.g,(r=$i||($i=new DataView(new ArrayBuffer(8)))).setFloat64(0,+t,!0),N=r.getUint32(0,!0),Q=r.getUint32(4,!0),xr(e,N),xr(e,Q))},Xe()),ce=ge(function(e,t,r){return e.h===5&&(ye(t,r,zn(e.g)),!0)},function(e,t,r){(t=Tt(t))!=null&&(Se(e,r,5),e=e.g,go(t),xr(e,N))},Vo),Du=tr(Oa,function(e,t,r){if((t=er(Tt,t))!=null)for(let i=0;i<t.length;i++){var n=e,o=r,s=t[i];s!=null&&(Se(n,o,5),n=n.g,go(s),xr(n,N))}},Vo),Yo=tr(Oa,function(e,t,r){if((t=er(Tt,t))!=null&&t.length){Se(e,r,2),Qt(e.g,4*t.length);for(let n=0;n<t.length;n++)r=e.g,go(t[n]),xr(r,N)}},Vo),xt=ge(function(e,t,r){return e.h===0&&(ye(t,r,Oo(e.g,Eo)),!0)},Sa,ya),Un=ge(function(e,t,r){return e.h===0&&(ye(t,r,(e=Oo(e.g,Eo))===0?void 0:e),!0)},Sa,ya),Nu=ge(function(e,t,r){return e.h===0&&(ye(t,r,Oo(e.g,yo)),!0)},function(e,t,r){if((t=vu(t))!=null&&(typeof t=="string"&&Vs(t),t!=null))switch(Se(e,r,0),typeof t){case"number":e=e.g,Gt(t),Pt(e,N,Q);break;case"bigint":r=BigInt.asUintN(64,t),r=new qn(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),Pt(e.g,r.h,r.g);break;default:r=Vs(t),Pt(e.g,r.h,r.g)}},Xe()),Z=ge(function(e,t,r){return e.h===0&&(ye(t,r,Et(e.g)),!0)},ka,Go),pn=tr(function(e,t,r){return(e.h===0||e.h===2)&&(t=Jt(t,B(t),r,!1,!1),e.h==2?an(e,Et,t):t.push(Et(e.g)),!0)},function(e,t,r){if((t=er(zt,t))!=null&&t.length){r=Po(e,r);for(let n=0;n<t.length;n++)cn(e.g,t[n]);Bo(e,r)}},Go),Ut=ge(function(e,t,r){return e.h===0&&(ye(t,r,(e=Et(e.g))===0?void 0:e),!0)},ka,Go),$=ge(function(e,t,r){return e.h===0&&(ye(t,r,Mo(e.g)),!0)},Ca,ma),Bt=ge(function(e,t,r){return e.h===0&&(ye(t,r,(e=Mo(e.g))===!1?void 0:e),!0)},Ca,ma),fe=tr(function(e,t,r){return e.h===2&&(e=Uo(e),Jt(t,B(t),r,!1).push(e),!0)},function(e,t,r){if((t=er(pt,t))!=null)for(let i=0;i<t.length;i++){var n=e,o=r,s=t[i];s!=null&&un(n,o,Bi(s))}},No),ft=ge(function(e,t,r){return e.h===2&&(ye(t,r,(e=Uo(e))===""?void 0:e),!0)},La,No),U=ge(function(e,t,r){return e.h===2&&(ye(t,r,Uo(e)),!0)},La,No),ae=function(e,t,r=Do){return new Zt(e,t,r)}(function(e,t,r,n,o){return e.h===2&&(n=mt(void 0,n,!0),Jt(t,B(t),r,!0).push(n),Ar(e,n,o),!0)},function(e,t,r,n,o){if(Array.isArray(t))for(let s=0;s<t.length;s++)Ia(e,t[s],r,n,o)}),P=hn(function(e,t,r,n,o,s){return e.h===2&&(sa(t,te(t),s,r),Ar(e,t=Lo(t,n,r),o),!0)},Ia),Ma=ge(function(e,t,r){return e.h===2&&(ye(t,r,da(e)),!0)},Fa,Ea),Gu=tr(function(e,t,r){return(e.h===0||e.h===2)&&(t=Jt(t,B(t),r,!1,!1),e.h==2?an(e,at,t):t.push(at(e.g)),!0)},function(e,t,r){if((t=er(qi,t))!=null)for(let i=0;i<t.length;i++){var n=e,o=r,s=t[i];s!=null&&(Se(n,o,0),Qt(n.g,s))}},ga),Vu=ge(function(e,t,r){return e.h===0&&(ye(t,r,(e=at(e.g))===0?void 0:e),!0)},function(e,t,r){(t=qi(t))!=null&&t!=null&&(Se(e,r,0),Qt(e.g,t))},ga),je=ge(function(e,t,r){return e.h===0&&(ye(t,r,Et(e.g)),!0)},function(e,t,r){(t=zt(t))!=null&&(t=parseInt(t,10),Se(e,r,0),cn(e.g,t))},xa),Qn=class{constructor(t,r){this.h=t,this.g=r,this.l=k,this.m=v,this.defaultValue=void 0}};function He(e,t){return new Qn(e,t)}function bt(e,t){return(r,n)=>{if(Lr.length){let s=Lr.pop();s.o(n),Mn(s.g,r,n),r=s}else r=new class{constructor(s,i){if(Gs.length){let a=Gs.pop();Mn(a,s,i),s=a}else s=new class{constructor(a,c){this.h=null,this.m=!1,this.g=this.l=this.j=0,Mn(this,a,c)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.ca=!1}}(s,i);this.g=s,this.l=this.g.g,this.h=this.m=-1,this.o(i)}o({ga:s=!1}={}){this.ga=s}}(r,n);try{let s=new e,i=s.u;Ho(t)(i,r);var o=s}finally{r.g.clear(),r.m=-1,r.h=-1,Lr.length<100&&Lr.push(r)}return o}}function mn(e){return function(){let t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){let i=this.g;return this.g=[],i}}}};Ra(this.u,t,Ft(ln,fn,dn,e)),jt(t,t.g.end());let r=new Uint8Array(t.h),n=t.l,o=n.length,s=0;for(let i=0;i<o;i++){let a=n[i];r.set(a,s),s+=a.length}return t.l=[r],r}}var Ys=class extends p{constructor(e){super(e)}},Ks=[0,ft,ge(function(e,t,r){return e.h===2&&(ye(t,r,(e=da(e))===It()?void 0:e),!0)},function(e,t,r){if(t!=null){if(t instanceof p){let n=t.Qa;return void(n&&(t=n(t),t!=null&&un(e,r,Fo(t).buffer)))}if(Array.isArray(t))return}Fa(e,t,r)},Ea)],Pn,$s=globalThis.trustedTypes;function zs(e){Pn===void 0&&(Pn=function(){let r=null;if(!$s)return r;try{let n=o=>o;r=$s.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch{}return r}());var t=Pn;return new class{constructor(r){this.g=r}toString(){return this.g+""}}(t?t.createScriptURL(e):e)}function ju(e,...t){if(t.length===0)return zs(e[0]);let r=e[0];for(let n=0;n<t.length;n++)r+=encodeURIComponent(t[n])+e[n+1];return zs(r)}var Ua=[0,Z,je,$,-1,pn,je,-1],Wu=class extends p{constructor(){super()}},Pa=[0,$,U,$,je,-1,tr(function(e,t,r){return(e.h===0||e.h===2)&&(t=Jt(t,B(t),r,!1,!1),e.h==2?an(e,Iu,t):t.push(Et(e.g)),!0)},function(e,t,r){if((t=er(zt,t))!=null&&t.length){r=Po(e,r);for(let n=0;n<t.length;n++)cn(e.g,t[n]);Bo(e,r)}},xa),U,-1,[0,$,-1],je,$,-1],Ba=[0,U,-2],qs=class extends p{constructor(){super()}},Da=[0],Na=[0,Z,$,1,$,-3],Re=class extends p{constructor(e){super(e,2)}},se={};se[336783863]=[0,U,$,-1,Z,[0,[1,2,3,4,5,6,7],P,Da,P,Pa,P,Ba,P,Na,P,Ua,P,[0,U,-2],P,[0,U,je]],[0,U],$,[0,[1,3],[2,4],P,[0,pn],-1,P,[0,fe],-1,ae,[0,U,-1]],U];var Js=[0,Un,-1,Bt,-3,Un,pn,ft,Ut,Un,-1,Bt,Ut,Bt,-2,ft];function ke(e,t){Kn(e,2,qt(t),"")}function j(e,t){sn(e,3,t)}function R(e,t){sn(e,4,t)}var me=class extends p{constructor(e){super(e,500)}o(e){return v(this,0,7,e)}},pr=[-1,{}],Qs=[0,U,1,pr],Zs=[0,U,fe,pr];function Ce(e,t){Hr(e,1,me,t)}function W(e,t){sn(e,10,t)}function C(e,t){sn(e,15,t)}var _e=class extends p{constructor(e){super(e,500)}o(e){return v(this,0,1001,e)}},Ga=[-500,ae,[-500,ft,-1,fe,-3,[-2,se,$],ae,Ks,Ut,-1,Qs,Zs,ae,[0,ft,Bt],ft,Js,Ut,fe,987,fe],4,ae,[-500,U,-1,[-1,{}],998,U],ae,[-500,U,fe,-1,[-2,{},$],997,fe,-1],Ut,ae,[-500,U,fe,pr,998,fe],fe,Ut,Qs,Zs,ae,[0,ft,-1,pr],fe,-2,Js,ft,-1,Bt,[0,Bt,Vu],978,pr,ae,Ks];_e.prototype.g=mn(Ga);var Xu=bt(_e,Ga),Hu=class extends p{constructor(e){super(e)}},Va=class extends p{constructor(e){super(e)}g(){return it(this,Hu,1)}},ja=[0,ae,[0,Z,ce,U,-1]],gn=bt(Va,ja),Yu=class extends p{constructor(e){super(e)}},Ku=class extends p{constructor(e){super(e)}},Bn=class extends p{constructor(e){super(e)}h(){return k(this,Yu,2)}g(){return it(this,Ku,5)}},Wa=bt(class extends p{constructor(e){super(e)}},[0,fe,pn,Yo,[0,je,[0,Z,-3],[0,ce,-3],[0,Z,-1,[0,ae,[0,Z,-2]]],ae,[0,ce,-1,U,ce]],U,-1,xt,ae,[0,Z,ce],fe,xt]),Xa=class extends p{constructor(e){super(e)}},Dt=bt(class extends p{constructor(e){super(e)}},[0,ae,[0,ce,-4]]),Ha=class extends p{constructor(e){super(e)}},wr=bt(class extends p{constructor(e){super(e)}},[0,ae,[0,ce,-4]]),$u=class extends p{constructor(e){super(e)}},zu=[0,Z,-1,Yo,je],Ya=class extends p{constructor(){super()}};Ya.prototype.g=mn([0,ce,-4,xt]);var qu=class extends p{constructor(e){super(e)}},Ju=bt(class extends p{constructor(e){super(e)}},[0,ae,[0,1,Z,U,ja],xt]),ei=class extends p{constructor(e){super(e)}},Qu=class extends p{constructor(e){super(e)}pa(){let e=na(this);return e??It()}},Zu=class extends p{constructor(e){super(e)}},Ka=[1,2],e1=bt(class extends p{constructor(e){super(e)}},[0,ae,[0,Ka,P,[0,Yo],P,[0,Ma],Z,U],xt]),Ko=class extends p{constructor(e){super(e)}},$a=[0,U,Z,ce,fe,-1],ti=class extends p{constructor(e){super(e)}},t1=[0,$,-1],ri=class extends p{constructor(e){super(e)}},Pr=[1,2,3,4,5],zr=class extends p{constructor(e){super(e)}g(){return na(this)!=null}h(){return pt(yt(this,2))!=null}},Y=class extends p{constructor(e){super(e)}g(){return zi(yt(this,2))??!1}},za=[0,Ma,U,[0,Z,xt,-1],[0,Nu,xt]],re=[0,za,$,[0,Pr,P,Na,P,Pa,P,Ua,P,Da,P,Ba],je],yn=class extends p{constructor(e){super(e)}},$o=[0,re,ce,-1,Z],r1=He(502141897,yn);se[502141897]=$o;var n1=bt(class extends p{constructor(e){super(e)}},[0,[0,je,-1,Du,Gu],zu]),qa=class extends p{constructor(e){super(e)}},Ja=class extends p{constructor(e){super(e)}},zo=[0,re,ce,[0,re],$],Qa=[0,re,$o,zo,ce,[0,[0,za]]],o1=He(508968150,Ja);se[508968150]=Qa,se[508968149]=zo;var Za=class extends p{constructor(e){super(e)}},s1=He(513916220,Za);se[513916220]=[0,re,Qa,Z];var Ot=class extends p{constructor(e){super(e)}h(){return k(this,Ko,2)}g(){V(this,2)}},ec=[0,re,$a];se[478825465]=ec;var i1=class extends p{constructor(e){super(e)}},tc=class extends p{constructor(e){super(e)}},qo=class extends p{constructor(e){super(e)}},Jo=class extends p{constructor(e){super(e)}},rc=class extends p{constructor(e){super(e)}},ni=[0,re,[0,re],ec,-1],nc=[0,re,ce,Z],Qo=[0,re,ce],oc=[0,re,nc,Qo,ce],a1=He(479097054,rc);se[479097054]=[0,re,oc,ni],se[463370452]=ni,se[464864288]=nc;var c1=He(462713202,Jo);se[462713202]=oc,se[474472470]=Qo;var u1=class extends p{constructor(e){super(e)}},sc=class extends p{constructor(e){super(e)}},ic=class extends p{constructor(e){super(e)}},ac=class extends p{constructor(){super()}},Zo=[0,re,ce,-1,Z],Zn=[0,re,ce,$];ac.prototype.g=mn([0,re,Qo,[0,re],$o,zo,Zo,Zn]);var cc=class extends p{constructor(e){super(e)}},h1=He(456383383,cc);se[456383383]=[0,re,$a];var uc=class extends p{constructor(e){super(e)}},l1=He(476348187,uc);se[476348187]=[0,re,t1];var hc=class extends p{constructor(e){super(e)}},oi=class extends p{constructor(e){super(e)}},lc=[0,je,-1],f1=He(458105876,class extends p{constructor(e){super(e)}g(){var e=this.u;let t=B(e),r=2&t;return e=function(n,o,s){var i=oi;let a=2&o,c=!1;if(s==null){if(a)return Ds();s=[]}else if(s.constructor===Ue){if(!(2&s.M)||a)return s;s=s.Y()}else Array.isArray(s)?c=!!(2&te(s)):s=[];if(a){if(!s.length)return Ds();c||(c=!0,$t(s))}else c&&(c=!1,s=oa(s));return c||(64&te(s)?Wn(s,32):32&o&&Qr(s,32)),z(n,o,2,i=new Ue(s,i,Tu,void 0)),i}(e,t,ct(e,t,2)),!r&&oi&&(e.sa=!0),e}});se[458105876]=[0,lc,Bu,[!0,xt,[0,U,-1,fe]]];var es=class extends p{constructor(e){super(e)}},fc=He(458105758,es);se[458105758]=[0,re,U,lc];var dc=class extends p{constructor(e){super(e)}},d1=He(443442058,dc);se[443442058]=[0,re,U,Z,ce,fe,-1],se[514774813]=Zo;var pc=class extends p{constructor(e){super(e)}},p1=He(516587230,pc);function eo(e,t){return t=t?t.clone():new Ko,e.displayNamesLocale!==void 0?V(t,1,qt(e.displayNamesLocale)):e.displayNamesLocale===void 0&&V(t,1),e.maxResults!==void 0?Ze(t,2,e.maxResults):"maxResults"in e&&V(t,2),e.scoreThreshold!==void 0?m(t,3,e.scoreThreshold):"scoreThreshold"in e&&V(t,3),e.categoryAllowlist!==void 0?Yr(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&V(t,4),e.categoryDenylist!==void 0?Yr(t,5,e.categoryDenylist):"categoryDenylist"in e&&V(t,5),t}function ts(e,t=-1,r=""){return{categories:e.map(n=>({index:Ve(Me(n,1),0)??-1,score:ee(n,2)??0,categoryName:Qe(n,3)??"",displayName:Qe(n,4)??""})),headIndex:t,headName:r}}function mc(e){var t=kt(e,3,Tt,St()),r=kt(e,2,zt,St()),n=kt(e,1,pt,St()),o=kt(e,9,pt,St());let s={categories:[],keypoints:[]};for(let i=0;i<t.length;i++)s.categories.push({score:t[i],index:r[i]??-1,categoryName:n[i]??"",displayName:o[i]??""});if((t=k(e,Bn,4)?.h())&&(s.boundingBox={originX:Me(t,1)??0,originY:Me(t,2)??0,width:Me(t,3)??0,height:Me(t,4)??0,angle:0}),k(e,Bn,4)?.g().length)for(let i of k(e,Bn,4).g())s.keypoints.push({x:Mr(i,1)??0,y:Mr(i,2)??0,score:Mr(i,4)??0,label:pt(yt(i,3))??""});return s}function En(e){let t=[];for(let r of it(e,Ha,1))t.push({x:ee(r,1)??0,y:ee(r,2)??0,z:ee(r,3)??0,visibility:ee(r,4)??0});return t}function mr(e){let t=[];for(let r of it(e,Xa,1))t.push({x:ee(r,1)??0,y:ee(r,2)??0,z:ee(r,3)??0,visibility:ee(r,4)??0});return t}function si(e){return Array.from(e,t=>t>127?t-256:t)}function ii(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let r=0,n=0,o=0;for(let s=0;s<e.length;s++)r+=e[s]*t[s],n+=e[s]*e[s],o+=t[s]*t[s];if(n<=0||o<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*o)}var Ir;se[516587230]=[0,re,Zo,Zn,ce],se[518928384]=Zn;var m1=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 gc(){if(Ir===void 0)try{await WebAssembly.instantiate(m1),Ir=!0}catch{Ir=!1}return Ir}async function cr(e,t=ju``){let r=await gc()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${r}.js`,wasmBinaryPath:`${t}/${e}_${r}.wasm`}}var ht=class{};function yc(){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 ai(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",o=>{n(o)},!1),document.body.appendChild(t)})}importScripts(e.toString())}function Ec(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 y(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 ci(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);let[n,o]=Ec(t);return!e.l||n===e.i.canvas.width&&o===e.i.canvas.height||(e.i.canvas.width=n,e.i.canvas.height=o),[n,o]}function ui(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");let n=new Uint32Array(t.length);for(let o=0;o<t.length;o++)n[o]=e.i.stringToNewUTF8(t[o]);t=e.i._malloc(4*n.length),e.i.HEAPU32.set(n,t>>2),r(t);for(let o of n)e.i._free(o);e.i._free(t)}function $e(e,t,r){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=r}function ut(e,t,r){let n=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(o,s,i)=>{s?(r(n,i),n=[]):n.push(o)}}ht.forVisionTasks=function(e){return cr("vision",e)},ht.forTextTasks=function(e){return cr("text",e)},ht.forGenAiExperimentalTasks=function(e){return cr("genai_experimental",e)},ht.forGenAiTasks=function(e){return cr("genai",e)},ht.forAudioTasks=function(e){return cr("audio",e)},ht.isSimdSupported=function(){return gc()};async function g1(e,t,r,n){return e=await(async(o,s,i,a,c)=>{if(s&&await ai(s),!self.ModuleFactory||i&&(await ai(i),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&c&&((s=self.Module).locateFile=c.locateFile,c.mainScriptUrlOrBlob&&(s.mainScriptUrlOrBlob=c.mainScriptUrlOrBlob)),c=await self.ModuleFactory(self.Module||c),self.ModuleFactory=self.Module=void 0,new o(c,a)})(e,r.wasmLoaderPath,r.assetLoaderPath,t,{locateFile:o=>o.endsWith(".wasm")?r.wasmBinaryPath.toString():r.assetBinaryPath&&o.endsWith(".data")?r.assetBinaryPath.toString():o}),await e.o(n),e}function Dn(e,t){let r=k(e.baseOptions,zr,1)||new zr;typeof t=="string"?(V(r,2,qt(t)),V(r,1)):t instanceof Uint8Array&&(V(r,1,mo(t,!1)),V(r,2)),v(e.baseOptions,0,1,r)}function hi(e){try{let t=e.H.length;if(t===1)throw Error(e.H[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.H.map(r=>r.message).join(", "))}finally{e.H=[]}}function d(e,t){e.B=Math.max(e.B,t)}function xn(e,t){e.A=new me,ke(e.A,"PassThroughCalculator"),j(e.A,"free_memory"),R(e.A,"free_memory_unused_out"),W(t,"free_memory"),Ce(t,e.A)}function Wt(e,t){j(e.A,t),R(e.A,t+"_unused_out")}function _n(e){e.g.addBoolToStream(!0,"free_memory",e.B)}var Br=class{constructor(e){this.g=e,this.H=[],this.B=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){if(t){let r=e.baseOptions||{};if(e.baseOptions?.modelAssetBuffer&&e.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(k(this.baseOptions,zr,1)?.g()||k(this.baseOptions,zr,1)?.h()||e.baseOptions?.modelAssetBuffer||e.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(n,o){let s=k(n.baseOptions,ri,3);if(!s){var i=s=new ri,a=new qs;dr(i,4,Pr,a)}"delegate"in o&&(o.delegate==="GPU"?(o=s,i=new Wu,dr(o,2,Pr,i)):(o=s,i=new qs,dr(o,4,Pr,i))),v(n.baseOptions,0,3,s)}(this,r),r.modelAssetPath)return fetch(r.modelAssetPath.toString()).then(n=>{if(n.ok)return n.arrayBuffer();throw Error(`Failed to fetch model: ${r.modelAssetPath} (${n.status})`)}).then(n=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(n),!0,!1,!1),Dn(this,"/model.dat"),this.m(),this.J()});if(r.modelAssetBuffer instanceof Uint8Array)Dn(this,r.modelAssetBuffer);else if(r.modelAssetBuffer)return async function(n){let o=[];for(var s=0;;){let{done:i,value:a}=await n.read();if(i)break;o.push(a),s+=a.length}if(o.length===0)return new Uint8Array(0);if(o.length===1)return o[0];n=new Uint8Array(s),s=0;for(let i of o)n.set(i,s),s+=i.length;return n}(r.modelAssetBuffer).then(n=>{Dn(this,n),this.m(),this.J()})}return this.m(),this.J(),Promise.resolve()}J(){}ea(){let e;if(this.g.ea(t=>{e=Xu(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener((r,n)=>{this.H.push(Error(n))}),this.g.La(),this.g.setGraph(e,t),this.A=void 0,hi(this)}finishProcessing(){this.g.finishProcessing(),hi(this)}close(){this.A=void 0,this.g.closeGraph()}};function pe(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}Br.prototype.close=Br.prototype.close,Pi("TaskRunner",Br);var to=class{constructor(t,r,n,o){this.g=t,this.h=r,this.m=n,this.l=o}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}};function li(e,t,r){let n=e.g;if(r=pe(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 fi(e,t){let r=e.g,n=pe(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(n);let o=pe(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,o),r.enableVertexAttribArray(e.P),r.vertexAttribPointer(e.P,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);let s=pe(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(e.J),r.vertexAttribPointer(e.J,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 to(r,n,o,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 Rr(e,t,r,n){return rs(e,t),e.h||(e.m(),e.C()),r?(e.s||(e.s=fi(e,!0)),r=e.s):(e.v||(e.v=fi(e,!1)),r=e.v),t.useProgram(e.h),r.bind(),e.l(),e=n(),r.g.bindVertexArray(null),e}function _t(e,t,r){return rs(e,t),e=pe(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 vn(e,t,r){rs(e,t),e.A||(e.A=pe(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.A),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,r,0)}function ns(e){e.g?.bindFramebuffer(e.g.FRAMEBUFFER,null)}var rr=class{H(){return`
|
|
2
2
|
precision mediump float;
|
|
3
3
|
varying vec2 vTex;
|
|
4
4
|
uniform sampler2D inputTexture;
|
|
5
5
|
void main() {
|
|
6
6
|
gl_FragColor = texture2D(inputTexture, vTex);
|
|
7
7
|
}
|
|
8
|
-
`}m(){let e=this.g;if(this.h=
|
|
8
|
+
`}m(){let e=this.g;if(this.h=pe(e.createProgram(),"Failed to create WebGL program"),this.ba=li(this,`
|
|
9
9
|
attribute vec2 aVertex;
|
|
10
10
|
attribute vec2 aTex;
|
|
11
11
|
varying vec2 vTex;
|
|
12
12
|
void main(void) {
|
|
13
13
|
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
14
14
|
vTex = aTex;
|
|
15
|
-
}`,e.VERTEX_SHADER),this.aa=
|
|
15
|
+
}`,e.VERTEX_SHADER),this.aa=li(this,this.H(),e.FRAGMENT_SHADER),e.linkProgram(this.h),!e.getProgramParameter(this.h,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);this.P=e.getAttribLocation(this.h,"aVertex"),this.J=e.getAttribLocation(this.h,"aTex")}C(){}l(){}close(){if(this.h){let e=this.g;e.deleteProgram(this.h),e.deleteShader(this.ba),e.deleteShader(this.aa)}this.A&&this.g.deleteFramebuffer(this.A),this.v&&this.v.close(),this.s&&this.s.close()}},y1=class extends rr{H(){return`
|
|
16
16
|
precision mediump float;
|
|
17
17
|
uniform sampler2D backgroundTexture;
|
|
18
18
|
uniform sampler2D maskTexture;
|
|
@@ -24,7 +24,7 @@ var Ct=typeof self<"u"?self:{};function Xn(e,t){e:{for(var r=["CLOSURE_FLAGS"],n
|
|
|
24
24
|
vec4 categoryColor = texture2D(colorMappingTexture, vec2(category, 0.0));
|
|
25
25
|
gl_FragColor = mix(backgroundColor, categoryColor, categoryColor.a);
|
|
26
26
|
}
|
|
27
|
-
`}C(){let e=this.g;e.activeTexture(e.TEXTURE1),this.B=
|
|
27
|
+
`}C(){let e=this.g;e.activeTexture(e.TEXTURE1),this.B=_t(this,e,e.LINEAR),e.activeTexture(e.TEXTURE2),this.j=_t(this,e,e.NEAREST)}m(){super.m();let e=this.g;this.L=pe(e.getUniformLocation(this.h,"backgroundTexture"),"Uniform location"),this.U=pe(e.getUniformLocation(this.h,"colorMappingTexture"),"Uniform location"),this.K=pe(e.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();let e=this.g;e.uniform1i(this.K,0),e.uniform1i(this.L,1),e.uniform1i(this.U,2)}close(){this.B&&this.g.deleteTexture(this.B),this.j&&this.g.deleteTexture(this.j),super.close()}},E1=class extends rr{H(){return`
|
|
28
28
|
precision mediump float;
|
|
29
29
|
uniform sampler2D maskTexture;
|
|
30
30
|
uniform sampler2D defaultTexture;
|
|
@@ -38,15 +38,15 @@ var Ct=typeof self<"u"?self:{};function Xn(e,t){e:{for(var r=["CLOSURE_FLAGS"],n
|
|
|
38
38
|
overlayColor = mix(defaultColor, overlayColor, overlayColor.a);
|
|
39
39
|
gl_FragColor = mix(defaultColor, overlayColor, confidence);
|
|
40
40
|
}
|
|
41
|
-
`}C(){let e=this.g;e.activeTexture(e.TEXTURE1),this.j=xt(this,e),e.activeTexture(e.TEXTURE2),this.B=xt(this,e)}m(){super.m();let e=this.g;this.K=de(e.getUniformLocation(this.h,"defaultTexture"),"Uniform location"),this.L=de(e.getUniformLocation(this.h,"overlayTexture"),"Uniform location"),this.I=de(e.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();let e=this.g;e.uniform1i(this.I,0),e.uniform1i(this.K,1),e.uniform1i(this.L,2)}close(){this.j&&this.g.deleteTexture(this.j),this.B&&this.g.deleteTexture(this.B),super.close()}};function ot(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 so(e){var t=ot(e,1);if(!t){if(t=ot(e,0))t=new Float32Array(t).map(n=>n/255);else{t=new Float32Array(e.width*e.height);let n=Ht(e);var r=os(e);if(wn(r,n,vc(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 o=0,s=0;o<t.length;++o,s+=4)t[o]=r[s]}else n.readPixels(0,0,e.width,e.height,n.RED,n.FLOAT,t)}e.g.push(t)}return t}function vc(e){let t=ot(e,2);if(!t){let r=Ht(e);t=bc(e);let n=so(e),o=Tc(e);r.texImage2D(r.TEXTURE_2D,0,o,e.width,e.height,0,r.RED,r.FLOAT,n),io(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=de(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function Tc(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 os(e){return e.l||(e.l=new tr),e.l}function bc(e){let t=Ht(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let r=ot(e,2);return r||(r=xt(os(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(r),e.j=!0),t.bindTexture(t.TEXTURE_2D,r),r}function io(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var Mr,ie=class{constructor(e,t,r,n,o,s,i){this.g=e,this.m=t,this.j=r,this.canvas=n,this.l=o,this.width=s,this.height=i,this.j&&--li===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Ha(){return!!ot(this,0)}la(){return!!ot(this,1)}R(){return!!ot(this,2)}ka(){return(t=ot(e=this,0))||(t=so(e),t=new Uint8Array(t.map(r=>255*r)),e.g.push(t)),t;var e,t}ja(){return so(this)}N(){return vc(this)}clone(){let 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),o=os(this);n.activeTexture(n.TEXTURE1),r=xt(o,n,this.m?n.LINEAR:n.NEAREST),n.bindTexture(n.TEXTURE_2D,r);let s=Tc(this);n.texImage2D(n.TEXTURE_2D,0,s,this.width,this.height,0,n.RED,n.FLOAT,null),n.bindTexture(n.TEXTURE_2D,null),wn(o,n,r),Cr(o,n,!1,()=>{bc(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),io(this)}),ns(o),io(this)}}e.push(r)}return new ie(e,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&Ht(this).deleteTexture(ot(this,2)),li=-1}};ie.prototype.close=ie.prototype.close,ie.prototype.clone=ie.prototype.clone,ie.prototype.getAsWebGLTexture=ie.prototype.N,ie.prototype.getAsFloat32Array=ie.prototype.ja,ie.prototype.getAsUint8Array=ie.prototype.ka,ie.prototype.hasWebGLTexture=ie.prototype.R,ie.prototype.hasFloat32Array=ie.prototype.la,ie.prototype.hasUint8Array=ie.prototype.Ha;var li=250,A1={color:"white",lineWidth:4,radius:6};function jn(e){return{...A1,fillColor:(e=e||{}).color,...e}}function tt(e,t){return e instanceof Function?e(t):e}function di(e,t,r){return Math.max(Math.min(t,r),Math.min(Math.max(t,r),e))}function ar(e){if(!e.l)throw Error("CPU rendering requested but CanvasRenderingContext2D not provided.");return e.l}function _r(e){if(!e.j)throw Error("GPU rendering requested but WebGL2RenderingContext not provided.");return e.j}function pi(e,t,r){if(t.R())r(t.N());else{let n=t.la()?t.ja():t.ka();e.m=e.m??new tr;let o=_r(e);r((e=new ie([n],t.m,!1,o.canvas,e.m,t.width,t.height)).N()),e.close()}}function mi(e,t,r,n){let o=function(c){return c.g||(c.g=new T1),c.g}(e),s=_r(e),i=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r;Cr(o,s,!0,()=>{(function(a,u,f,g){let p=a.g;if(p.activeTexture(p.TEXTURE0),p.bindTexture(p.TEXTURE_2D,u),p.activeTexture(p.TEXTURE1),p.bindTexture(p.TEXTURE_2D,a.B),p.texImage2D(p.TEXTURE_2D,0,p.RGBA,p.RGBA,p.UNSIGNED_BYTE,f),a.I&&function(x,b){if(x!==b)return!1;x=x.entries(),b=b.entries();for(let[W,C]of x){x=W;let l=C;var A=b.next();if(A.done)return!1;let[_,T]=A.value;if(A=T,x!==_||l[0]!==A[0]||l[1]!==A[1]||l[2]!==A[2]||l[3]!==A[3])return!1}return!!b.next().done}(a.I,g))p.activeTexture(p.TEXTURE2),p.bindTexture(p.TEXTURE_2D,a.j);else{a.I=g;let x=Array(1024).fill(0);g.forEach((b,A)=>{if(b.length!==4)throw Error(`Color at index ${A} is not a four-channel value.`);x[4*A]=b[0],x[4*A+1]=b[1],x[4*A+2]=b[2],x[4*A+3]=b[3]}),p.activeTexture(p.TEXTURE2),p.bindTexture(p.TEXTURE_2D,a.j),p.texImage2D(p.TEXTURE_2D,0,p.RGBA,256,1,0,p.RGBA,p.UNSIGNED_BYTE,new Uint8Array(x))}})(o,t,i,n),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4);let c=o.g;c.activeTexture(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,null),c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),c.activeTexture(c.TEXTURE2),c.bindTexture(c.TEXTURE_2D,null)})}function gi(e,t,r,n){let o=_r(e),s=function(a){return a.h||(a.h=new b1),a.h}(e),i=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r,c=Array.isArray(n)?new ImageData(new Uint8ClampedArray(n),1,1):n;Cr(s,o,!0,()=>{var a=s.g;a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,t),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,s.j),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,i),a.activeTexture(a.TEXTURE2),a.bindTexture(a.TEXTURE_2D,s.B),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,c),o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT),o.drawArrays(o.TRIANGLE_FAN,0,4),o.bindTexture(o.TEXTURE_2D,null),(a=s.g).activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,null),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),a.activeTexture(a.TEXTURE2),a.bindTexture(a.TEXTURE_2D,null)})}var ge=class{constructor(e,t){e instanceof CanvasRenderingContext2D||e instanceof OffscreenCanvasRenderingContext2D?(this.l=e,this.j=t):this.j=e}Aa(e,t){if(e){var r=ar(this);t=jn(t),r.save();var n=r.canvas,o=0;for(let s of e)r.fillStyle=tt(t.fillColor,{index:o,from:s}),r.strokeStyle=tt(t.color,{index:o,from:s}),r.lineWidth=tt(t.lineWidth,{index:o,from:s}),(e=new Path2D).arc(s.x*n.width,s.y*n.height,tt(t.radius,{index:o,from:s}),0,2*Math.PI),r.fill(e),r.stroke(e),++o;r.restore()}}za(e,t,r){if(e&&t){var n=ar(this);r=jn(r),n.save();var o=n.canvas,s=0;for(let i of t){n.beginPath(),t=e[i.start];let c=e[i.end];t&&c&&(n.strokeStyle=tt(r.color,{index:s,from:t,to:c}),n.lineWidth=tt(r.lineWidth,{index:s,from:t,to:c}),n.moveTo(t.x*o.width,t.y*o.height),n.lineTo(c.x*o.width,c.y*o.height)),++s,n.stroke()}n.restore()}}wa(e,t){let r=ar(this);t=jn(t),r.save(),r.beginPath(),r.lineWidth=tt(t.lineWidth,{}),r.strokeStyle=tt(t.color,{}),r.fillStyle=tt(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()}xa(e,t,r=[0,0,0,255]){this.l?function(n,o,s,i){let c=_r(n);pi(n,o,a=>{mi(n,a,s,i),(a=ar(n)).drawImage(c.canvas,0,0,a.canvas.width,a.canvas.height)})}(this,e,r,t):mi(this,e.N(),r,t)}ya(e,t,r){this.l?function(n,o,s,i){let c=_r(n);pi(n,o,a=>{gi(n,a,s,i),(a=ar(n)).drawImage(c.canvas,0,0,a.canvas.width,a.canvas.height)})}(this,e,t,r):gi(this,e.N(),t,r)}close(){this.g?.close(),this.g=void 0,this.h?.close(),this.h=void 0,this.m?.close(),this.m=void 0}};function qe(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 Ac(e){var t=qe(e,0);if(!t){t=Yt(e);let r=Rn(e),n=new Uint8Array(e.width*e.height*4);wn(r,t,Nr(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 Nr(e){let t=qe(e,2);if(!t){let r=Yt(e);t=Gr(e);let n=qe(e,1)||Ac(e);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),ur(e)}return t}function Yt(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when iniitializing the image.");return e.h||(e.h=de(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function Rn(e){return e.l||(e.l=new tr),e.l}function Gr(e){let t=Yt(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let r=qe(e,2);return r||(r=xt(Rn(e),t),e.g.push(r),e.m=!0),t.bindTexture(t.TEXTURE_2D,r),r}function ur(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}function yi(e){let t=Yt(e);return Cr(Rn(e),t,!0,()=>function(r,n){let o=r.canvas;if(o.width===r.width&&o.height===r.height)return n();let s=o.width,i=o.height;return o.width=r.width,o.height=r.height,r=n(),o.width=s,o.height=i,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()}))}ge.prototype.close=ge.prototype.close,ge.prototype.drawConfidenceMask=ge.prototype.ya,ge.prototype.drawCategoryMask=ge.prototype.xa,ge.prototype.drawBoundingBox=ge.prototype.wa,ge.prototype.drawConnectors=ge.prototype.za,ge.prototype.drawLandmarks=ge.prototype.Aa,ge.lerp=function(e,t,r,n,o){return di(n*(1-(e-t)/(r-t))+o*(1-(r-e)/(r-t)),n,o)},ge.clamp=di;var he=class{constructor(e,t,r,n,o,s,i){this.g=e,this.j=t,this.m=r,this.canvas=n,this.l=o,this.width=s,this.height=i,(this.j||this.m)&&--Ei===0&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ga(){return!!qe(this,0)}ma(){return!!qe(this,1)}R(){return!!qe(this,2)}Ea(){return Ac(this)}Da(){var e=qe(this,1);return e||(Nr(this),Gr(this),e=yi(this),ur(this),this.g.push(e),this.j=!0),e}N(){return Nr(this)}clone(){let 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=Yt(this),o=Rn(this);n.activeTexture(n.TEXTURE1),r=xt(o,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),wn(o,n,r),Cr(o,n,!1,()=>{Gr(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),ur(this)}),ns(o),ur(this)}else{if(!(t instanceof ImageBitmap))throw Error(`Type is not supported: ${t}`);Nr(this),Gr(this),r=yi(this),ur(this)}e.push(r)}return new he(e,this.ma(),this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&qe(this,1).close(),this.m&&Yt(this).deleteTexture(qe(this,2)),Ei=-1}};he.prototype.close=he.prototype.close,he.prototype.clone=he.prototype.clone,he.prototype.getAsWebGLTexture=he.prototype.N,he.prototype.getAsImageBitmap=he.prototype.Da,he.prototype.getAsImageData=he.prototype.Ea,he.prototype.hasWebGLTexture=he.prototype.R,he.prototype.hasImageBitmap=he.prototype.ma,he.prototype.hasImageData=he.prototype.Ga;var Ei=250;function He(...e){return e.map(([t,r])=>({start:t,end:r}))}var w1=function(e){return class extends e{Ma(){this.i._registerModelResourcesGraphService()}}}((xi=class{constructor(e,t){this.l=!0,this.i=e,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",t!==void 0?this.i.canvas=t:xc()?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){let 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){let 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,o){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),E(this,n||"input_audio",s=>{E(this,o=o||"audio_header",i=>{this.i._configureAudio(s,i,e,t??0,r)})})}setAutoResizeCanvas(e){this.l=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}ea(e){Ke(this,"__graph_config__",t=>{e(t)}),E(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,o){let 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),E(this,n,i=>{this.i._addAudioToInputStream(this.g,t,r,i,o)})}addGpuBufferToStream(e,t,r){E(this,t,n=>{let[o,s]=ai(this,e,n);this.i._addBoundTextureToStream(n,o,s,r)})}addBoolToStream(e,t,r){E(this,t,n=>{this.i._addBoolToInputStream(e,n,r)})}addDoubleToStream(e,t,r){E(this,t,n=>{this.i._addDoubleToInputStream(e,n,r)})}addFloatToStream(e,t,r){E(this,t,n=>{this.i._addFloatToInputStream(e,n,r)})}addIntToStream(e,t,r){E(this,t,n=>{this.i._addIntToInputStream(e,n,r)})}addUintToStream(e,t,r){E(this,t,n=>{this.i._addUintToInputStream(e,n,r)})}addStringToStream(e,t,r){E(this,t,n=>{E(this,e,o=>{this.i._addStringToInputStream(o,n,r)})})}addStringRecordToStream(e,t,r){E(this,t,n=>{ci(this,Object.keys(e),o=>{ci(this,Object.values(e),s=>{this.i._addFlatHashMapToInputStream(o,s,Object.keys(e).length,n,r)})})})}addProtoToStream(e,t,r,n){E(this,r,o=>{E(this,t,s=>{let i=this.i._malloc(e.length);this.i.HEAPU8.set(e,i),this.i._addProtoToInputStream(i,e.length,s,o,n),this.i._free(i)})})}addEmptyPacketToStream(e,t){E(this,e,r=>{this.i._addEmptyPacketToInputStream(r,t)})}addBoolVectorToStream(e,t,r){E(this,t,n=>{let o=this.i._allocateBoolVector(e.length);if(!o)throw Error("Unable to allocate new bool vector on heap.");for(let s of e)this.i._addBoolVectorEntry(o,s);this.i._addBoolVectorToInputStream(o,n,r)})}addDoubleVectorToStream(e,t,r){E(this,t,n=>{let o=this.i._allocateDoubleVector(e.length);if(!o)throw Error("Unable to allocate new double vector on heap.");for(let s of e)this.i._addDoubleVectorEntry(o,s);this.i._addDoubleVectorToInputStream(o,n,r)})}addFloatVectorToStream(e,t,r){E(this,t,n=>{let o=this.i._allocateFloatVector(e.length);if(!o)throw Error("Unable to allocate new float vector on heap.");for(let s of e)this.i._addFloatVectorEntry(o,s);this.i._addFloatVectorToInputStream(o,n,r)})}addIntVectorToStream(e,t,r){E(this,t,n=>{let o=this.i._allocateIntVector(e.length);if(!o)throw Error("Unable to allocate new int vector on heap.");for(let s of e)this.i._addIntVectorEntry(o,s);this.i._addIntVectorToInputStream(o,n,r)})}addUintVectorToStream(e,t,r){E(this,t,n=>{let o=this.i._allocateUintVector(e.length);if(!o)throw Error("Unable to allocate new unsigned int vector on heap.");for(let s of e)this.i._addUintVectorEntry(o,s);this.i._addUintVectorToInputStream(o,n,r)})}addStringVectorToStream(e,t,r){E(this,t,n=>{let o=this.i._allocateStringVector(e.length);if(!o)throw Error("Unable to allocate new string vector on heap.");for(let s of e)E(this,s,i=>{this.i._addStringVectorEntry(o,i)});this.i._addStringVectorToInputStream(o,n,r)})}addBoolToInputSidePacket(e,t){E(this,t,r=>{this.i._addBoolToInputSidePacket(e,r)})}addDoubleToInputSidePacket(e,t){E(this,t,r=>{this.i._addDoubleToInputSidePacket(e,r)})}addFloatToInputSidePacket(e,t){E(this,t,r=>{this.i._addFloatToInputSidePacket(e,r)})}addIntToInputSidePacket(e,t){E(this,t,r=>{this.i._addIntToInputSidePacket(e,r)})}addUintToInputSidePacket(e,t){E(this,t,r=>{this.i._addUintToInputSidePacket(e,r)})}addStringToInputSidePacket(e,t){E(this,t,r=>{E(this,e,n=>{this.i._addStringToInputSidePacket(n,r)})})}addProtoToInputSidePacket(e,t,r){E(this,r,n=>{E(this,t,o=>{let s=this.i._malloc(e.length);this.i.HEAPU8.set(e,s),this.i._addProtoToInputSidePacket(s,e.length,o,n),this.i._free(s)})})}addBoolVectorToInputSidePacket(e,t){E(this,t,r=>{let n=this.i._allocateBoolVector(e.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(let o of e)this.i._addBoolVectorEntry(n,o);this.i._addBoolVectorToInputSidePacket(n,r)})}addDoubleVectorToInputSidePacket(e,t){E(this,t,r=>{let n=this.i._allocateDoubleVector(e.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(let o of e)this.i._addDoubleVectorEntry(n,o);this.i._addDoubleVectorToInputSidePacket(n,r)})}addFloatVectorToInputSidePacket(e,t){E(this,t,r=>{let n=this.i._allocateFloatVector(e.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(let o of e)this.i._addFloatVectorEntry(n,o);this.i._addFloatVectorToInputSidePacket(n,r)})}addIntVectorToInputSidePacket(e,t){E(this,t,r=>{let n=this.i._allocateIntVector(e.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(let o of e)this.i._addIntVectorEntry(n,o);this.i._addIntVectorToInputSidePacket(n,r)})}addUintVectorToInputSidePacket(e,t){E(this,t,r=>{let n=this.i._allocateUintVector(e.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(let o of e)this.i._addUintVectorEntry(n,o);this.i._addUintVectorToInputSidePacket(n,r)})}addStringVectorToInputSidePacket(e,t){E(this,t,r=>{let n=this.i._allocateStringVector(e.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(let o of e)E(this,o,s=>{this.i._addStringVectorEntry(n,s)});this.i._addStringVectorToInputSidePacket(n,r)})}attachBoolListener(e,t){Ke(this,e,t),E(this,e,r=>{this.i._attachBoolListener(r)})}attachBoolVectorListener(e,t){ct(this,e,t),E(this,e,r=>{this.i._attachBoolVectorListener(r)})}attachIntListener(e,t){Ke(this,e,t),E(this,e,r=>{this.i._attachIntListener(r)})}attachIntVectorListener(e,t){ct(this,e,t),E(this,e,r=>{this.i._attachIntVectorListener(r)})}attachUintListener(e,t){Ke(this,e,t),E(this,e,r=>{this.i._attachUintListener(r)})}attachUintVectorListener(e,t){ct(this,e,t),E(this,e,r=>{this.i._attachUintVectorListener(r)})}attachDoubleListener(e,t){Ke(this,e,t),E(this,e,r=>{this.i._attachDoubleListener(r)})}attachDoubleVectorListener(e,t){ct(this,e,t),E(this,e,r=>{this.i._attachDoubleVectorListener(r)})}attachFloatListener(e,t){Ke(this,e,t),E(this,e,r=>{this.i._attachFloatListener(r)})}attachFloatVectorListener(e,t){ct(this,e,t),E(this,e,r=>{this.i._attachFloatVectorListener(r)})}attachStringListener(e,t){Ke(this,e,t),E(this,e,r=>{this.i._attachStringListener(r)})}attachStringVectorListener(e,t){ct(this,e,t),E(this,e,r=>{this.i._attachStringVectorListener(r)})}attachProtoListener(e,t,r){Ke(this,e,t),E(this,e,n=>{this.i._attachProtoListener(n,r||!1)})}attachProtoVectorListener(e,t,r){ct(this,e,t),E(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?'),Ke(this,e,(n,o)=>{n=new Float32Array(n.buffer,n.byteOffset,n.length/4),t(n,o)}),E(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}},class extends xi{get ga(){return this.i}sa(e,t,r){E(this,t,n=>{let[o,s]=ai(this,e,n);this.ga._addBoundTextureAsImageToStream(n,o,s,r)})}V(e,t){Ke(this,e,t),E(this,e,r=>{this.ga._attachImageListener(r)})}da(e,t){ct(this,e,t),E(this,e,r=>{this.ga._attachImageVectorListener(r)})}})),xi,Pe=class extends w1{};async function w(e,t,r){return async function(n,o,s,i){return v1(n,o,s,i)}(e,r.canvas??(xc()?void 0:document.createElement("canvas")),t,r)}function wc(e,t,r,n){if(e.U){let s=new za;if(r?.regionOfInterest){if(!e.ra)throw Error("This task doesn't support region-of-interest.");var o=r.regionOfInterest;if(o.left>=o.right||o.top>=o.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(o.left<0||o.top<0||o.right>1||o.bottom>1)throw Error("Expected RectF values to be in [0,1].");y(s,1,(o.left+o.right)/2),y(s,2,(o.top+o.bottom)/2),y(s,4,o.right-o.left),y(s,3,o.bottom-o.top)}else y(s,1,.5),y(s,2,.5),y(s,4,1),y(s,3,1);if(r?.rotationDegrees){if(r?.rotationDegrees%90!=0)throw Error("Expected rotation to be a multiple of 90\xB0.");if(y(s,5,-Math.PI*r.rotationDegrees/180),r?.rotationDegrees%180!=0){let[i,c]=_c(t);r=re(s,3)*c/i,o=re(s,4)*i/c,y(s,4,r),y(s,3,o)}}e.g.addProtoToStream(s.g(),"mediapipe.NormalizedRect",e.U,n)}e.g.sa(t,e.ba,n??performance.now()),e.finishProcessing()}function Be(e,t,r){if(e.baseOptions?.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");wc(e,t,r,e.B+1)}function et(e,t,r,n){if(!e.baseOptions?.g())throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");wc(e,t,r,n)}function Kt(e,t,r,n){var o=t.data;let s=t.width,i=s*(t=t.height);if((o instanceof Uint8Array||o instanceof Float32Array)&&o.length!==i)throw Error("Unsupported channel count: "+o.length/i);return e=new ie([o],r,!1,e.g.i.canvas,e.P,s,t),n?e.clone():e}var ye=class extends Dr{constructor(e,t,r,n){super(e),this.g=e,this.ba=t,this.U=r,this.ra=n,this.P=new tr}l(e,t=!0){if("runningMode"in e&&Er(this.baseOptions,2,!!e.runningMode&&e.runningMode!=="IMAGE"),e.canvas!==void 0&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(e,t)}close(){this.P.close(),super.close()}};ye.prototype.close=ye.prototype.close;var Ce=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect_in",!1),this.j={detections:[]},v(e=this.h=new vn,0,1,t=new K),y(this.h,2,.5),y(this.h,3,.3)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"minDetectionConfidence"in e&&y(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&y(this.h,3,e.minSuppressionThreshold??.3),this.l(e)}D(e,t){return this.j={detections:[]},Be(this,e,t),this.j}F(e,t,r){return this.j={detections:[]},et(this,e,r,t),this.j}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect_in"),L(e,"detections");let t=new Re;je(t,a1,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect_in"),R(r,"DETECTIONS:detections"),r.o(t),ke(e,r),this.g.attachProtoVectorListener("detections",(n,o)=>{for(let s of n)n=Ha(s),this.j.detections.push(yc(n));d(this,o)}),this.g.attachEmptyPacketListener("detections",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ce.prototype.detectForVideo=Ce.prototype.F,Ce.prototype.detect=Ce.prototype.D,Ce.prototype.setOptions=Ce.prototype.o,Ce.createFromModelPath=async function(e,t){return w(Ce,e,{baseOptions:{modelAssetPath:t}})},Ce.createFromModelBuffer=function(e,t){return w(Ce,e,{baseOptions:{modelAssetBuffer:t}})},Ce.createFromOptions=function(e,t){return w(Ce,e,t)};var ss=He([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]),is=He([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]),as=He([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),Rc=He([474,475],[475,476],[476,477],[477,474]),cs=He([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=He([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),Sc=He([469,470],[470,471],[471,472],[472,469]),hs=He([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]),kc=[...ss,...is,...as,...cs,...us,...hs],Cc=He([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 _i(e){e.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var Z=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,v(e=this.h=new Za,0,1,t=new K),this.v=new Qa,v(this.h,0,3,this.v),this.s=new vn,v(this.h,0,2,this.s),Qe(this.s,4,1),y(this.s,2,.5),y(this.v,2,.5),y(this.h,4,.5)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"numFaces"in e&&Qe(this.s,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&y(this.s,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&y(this.v,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.l(e)}D(e,t){return _i(this),Be(this,e,t),this.j}F(e,t,r){return _i(this),et(this,e,r,t),this.j}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect"),L(e,"face_landmarks");let t=new Re;je(t,u1,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect"),R(r,"NORM_LANDMARKS:face_landmarks"),r.o(t),ke(e,r),this.g.attachProtoVectorListener("face_landmarks",(n,o)=>{for(let s of n)n=kr(s),this.j.faceLandmarks.push(Tn(n));d(this,o)}),this.g.attachEmptyPacketListener("face_landmarks",n=>{d(this,n)}),this.outputFaceBlendshapes&&(L(e,"blendshapes"),R(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(n,o)=>{if(this.outputFaceBlendshapes)for(let s of n)n=_n(s),this.j.faceBlendshapes.push(ts(n.g()??[]));d(this,o)}),this.g.attachEmptyPacketListener("blendshapes",n=>{d(this,n)})),this.outputFacialTransformationMatrixes&&(L(e,"face_geometry"),R(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(n,o)=>{if(this.outputFacialTransformationMatrixes)for(let s of n)(n=k(c1(s),Zu,2))&&this.j.facialTransformationMatrixes.push({rows:Ge(Me(n,1),0)??0,columns:Ge(Me(n,2),0)??0,data:Rt(n,3,_t,wt()).slice()??[]});d(this,o)}),this.g.attachEmptyPacketListener("face_geometry",n=>{d(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Z.prototype.detectForVideo=Z.prototype.F,Z.prototype.detect=Z.prototype.D,Z.prototype.setOptions=Z.prototype.o,Z.createFromModelPath=function(e,t){return w(Z,e,{baseOptions:{modelAssetPath:t}})},Z.createFromModelBuffer=function(e,t){return w(Z,e,{baseOptions:{modelAssetBuffer:t}})},Z.createFromOptions=function(e,t){return w(Z,e,t)},Z.FACE_LANDMARKS_LIPS=ss,Z.FACE_LANDMARKS_LEFT_EYE=is,Z.FACE_LANDMARKS_LEFT_EYEBROW=as,Z.FACE_LANDMARKS_LEFT_IRIS=Rc,Z.FACE_LANDMARKS_RIGHT_EYE=cs,Z.FACE_LANDMARKS_RIGHT_EYEBROW=us,Z.FACE_LANDMARKS_RIGHT_IRIS=Sc,Z.FACE_LANDMARKS_FACE_OVAL=hs,Z.FACE_LANDMARKS_CONTOURS=kc,Z.FACE_LANDMARKS_TESSELATION=Cc;var ze=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!0),v(e=this.j=new tc,0,1,t=new K)}get baseOptions(){return k(this.j,K,1)}set baseOptions(e){v(this.j,0,1,e)}o(e){return super.l(e)}Pa(e,t,r){let n=typeof t!="function"?t:{};if(this.h=typeof t=="function"?t:r,Be(this,e,n??{}),!this.h)return this.s}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect"),L(e,"stylized_image");let t=new Re;je(t,h1,this.j);let r=new pe;Se(r,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect"),R(r,"STYLIZED_IMAGE:stylized_image"),r.o(t),ke(e,r),this.g.V("stylized_image",(n,o)=>{var s=!this.h,i=n.data,c=n.width;let a=c*(n=n.height);if(i instanceof Uint8Array)if(i.length===3*a){let u=new Uint8ClampedArray(4*a);for(let f=0;f<a;++f)u[4*f]=i[3*f],u[4*f+1]=i[3*f+1],u[4*f+2]=i[3*f+2],u[4*f+3]=255;i=new ImageData(u,c,n)}else{if(i.length!==4*a)throw Error("Unsupported channel count: "+i.length/a);i=new ImageData(new Uint8ClampedArray(i.buffer,i.byteOffset,i.length),c,n)}else if(!(i instanceof WebGLTexture))throw Error(`Unsupported format: ${i.constructor.name}`);c=new he([i],!1,!1,this.g.i.canvas,this.P,c,n),this.s=s=s?c.clone():c,this.h&&this.h(s),d(this,o)}),this.g.attachEmptyPacketListener("stylized_image",n=>{this.s=null,this.h&&this.h(null),d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ze.prototype.stylize=ze.prototype.Pa,ze.prototype.setOptions=ze.prototype.o,ze.createFromModelPath=function(e,t){return w(ze,e,{baseOptions:{modelAssetPath:t}})},ze.createFromModelBuffer=function(e,t){return w(ze,e,{baseOptions:{modelAssetBuffer:t}})},ze.createFromOptions=function(e,t){return w(ze,e,t)};var fs=He([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 vi(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function Ti(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 bi(e,t=!0){let r=[];for(let o of e){var n=_n(o);e=[];for(let s of n.g())n=t&&Me(s,1)!=null?Ge(Me(s,1),0):-1,e.push({score:re(s,2)??0,index:n,categoryName:Je(s,3)??"",displayName:Je(s,4)??""});r.push(e)}return r}var ve=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],v(e=this.j=new oc,0,1,t=new K),this.s=new Jo,v(this.j,0,2,this.s),this.C=new qo,v(this.s,0,3,this.C),this.v=new nc,v(this.s,0,2,this.v),this.h=new f1,v(this.j,0,3,this.h),y(this.v,2,.5),y(this.s,4,.5),y(this.C,2,.5)}get baseOptions(){return k(this.j,K,1)}set baseOptions(e){v(this.j,0,1,e)}o(e){if(Qe(this.v,3,e.numHands??1),"minHandDetectionConfidence"in e&&y(this.v,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.s,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&y(this.C,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var t=new Ot,r=t,n=no(e.cannedGesturesClassifierOptions,k(this.h,Ot,3)?.h());v(r,0,2,n),v(this.h,0,3,t)}else e.cannedGesturesClassifierOptions===void 0&&k(this.h,Ot,3)?.g();return e.customGesturesClassifierOptions?(v(r=t=new Ot,0,2,n=no(e.customGesturesClassifierOptions,k(this.h,Ot,4)?.h())),v(this.h,0,4,t)):e.customGesturesClassifierOptions===void 0&&k(this.h,Ot,4)?.g(),this.l(e)}Ka(e,t){return vi(this),Be(this,e,t),Ti(this)}La(e,t,r){return vi(this),et(this,e,r,t),Ti(this)}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect"),L(e,"hand_gestures"),L(e,"hand_landmarks"),L(e,"world_hand_landmarks"),L(e,"handedness");let t=new Re;je(t,l1,this.j);let r=new pe;Se(r,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect"),R(r,"HAND_GESTURES:hand_gestures"),R(r,"LANDMARKS:hand_landmarks"),R(r,"WORLD_LANDMARKS:world_hand_landmarks"),R(r,"HANDEDNESS:handedness"),r.o(t),ke(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,o)=>{for(let s of n){n=kr(s);let i=[];for(let c of it(n,Ka,1))i.push({x:re(c,1)??0,y:re(c,2)??0,z:re(c,3)??0,visibility:re(c,4)??0});this.landmarks.push(i)}d(this,o)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,o)=>{for(let s of n){n=Dt(s);let i=[];for(let c of it(n,Ya,1))i.push({x:re(c,1)??0,y:re(c,2)??0,z:re(c,3)??0,visibility:re(c,4)??0});this.worldLandmarks.push(i)}d(this,o)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("hand_gestures",(n,o)=>{this.gestures.push(...bi(n,!1)),d(this,o)}),this.g.attachEmptyPacketListener("hand_gestures",n=>{d(this,n)}),this.g.attachProtoVectorListener("handedness",(n,o)=>{this.handedness.push(...bi(n)),d(this,o)}),this.g.attachEmptyPacketListener("handedness",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function Ai(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}ve.prototype.recognizeForVideo=ve.prototype.La,ve.prototype.recognize=ve.prototype.Ka,ve.prototype.setOptions=ve.prototype.o,ve.createFromModelPath=function(e,t){return w(ve,e,{baseOptions:{modelAssetPath:t}})},ve.createFromModelBuffer=function(e,t){return w(ve,e,{baseOptions:{modelAssetBuffer:t}})},ve.createFromOptions=function(e,t){return w(ve,e,t)},ve.HAND_CONNECTIONS=fs;var Te=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],v(e=this.h=new Jo,0,1,t=new K),this.s=new qo,v(this.h,0,3,this.s),this.j=new nc,v(this.h,0,2,this.j),Qe(this.j,3,1),y(this.j,2,.5),y(this.s,2,.5),y(this.h,4,.5)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"numHands"in e&&Qe(this.j,3,e.numHands??1),"minHandDetectionConfidence"in e&&y(this.j,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.h,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&y(this.s,2,e.minHandPresenceConfidence??.5),this.l(e)}D(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Be(this,e,t),Ai(this)}F(e,t,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],et(this,e,r,t),Ai(this)}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect"),L(e,"hand_landmarks"),L(e,"world_hand_landmarks"),L(e,"handedness");let t=new Re;je(t,d1,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect"),R(r,"LANDMARKS:hand_landmarks"),R(r,"WORLD_LANDMARKS:world_hand_landmarks"),R(r,"HANDEDNESS:handedness"),r.o(t),ke(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,o)=>{for(let s of n)n=kr(s),this.landmarks.push(Tn(n));d(this,o)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,o)=>{for(let s of n)n=Dt(s),this.worldLandmarks.push(pr(n));d(this,o)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("handedness",(n,o)=>{var s=this.handedness,i=s.push;let c=[];for(let a of n){n=_n(a);let u=[];for(let f of n.g())u.push({score:re(f,2)??0,index:Ge(Me(f,1),0)??-1,categoryName:Je(f,3)??"",displayName:Je(f,4)??""});c.push(u)}i.call(s,...c),d(this,o)}),this.g.attachEmptyPacketListener("handedness",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Te.prototype.detectForVideo=Te.prototype.F,Te.prototype.detect=Te.prototype.D,Te.prototype.setOptions=Te.prototype.o,Te.createFromModelPath=function(e,t){return w(Te,e,{baseOptions:{modelAssetPath:t}})},Te.createFromModelBuffer=function(e,t){return w(Te,e,{baseOptions:{modelAssetBuffer:t}})},Te.createFromOptions=function(e,t){return w(Te,e,t)},Te.HAND_CONNECTIONS=fs;var Lc=He([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 wi(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function Ri(e){try{if(!e.C)return e.h;e.C(e.h)}finally{An(e)}}function Or(e,t){e=kr(e),t.push(Tn(e))}var H=class extends ye{constructor(e,t){super(new Pe(e,t),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,v(e=this.j=new uc,0,1,t=new K),this.K=new qo,v(this.j,0,2,this.K),this.aa=new p1,v(this.j,0,3,this.aa),this.s=new vn,v(this.j,0,4,this.s),this.I=new Qa,v(this.j,0,5,this.I),this.v=new ac,v(this.j,0,6,this.v),this.L=new cc,v(this.j,0,7,this.L),y(this.s,2,.5),y(this.s,3,.3),y(this.I,2,.5),y(this.v,2,.5),y(this.v,3,.3),y(this.L,2,.5),y(this.K,2,.5)}get baseOptions(){return k(this.j,K,1)}set baseOptions(e){v(this.j,0,1,e)}o(e){return"minFaceDetectionConfidence"in e&&y(this.s,2,e.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in e&&y(this.s,3,e.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in e&&y(this.I,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"minPoseDetectionConfidence"in e&&y(this.v,2,e.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in e&&y(this.v,3,e.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in e&&y(this.L,2,e.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in e&&(this.outputPoseSegmentationMasks=!!e.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in e&&y(this.K,2,e.minHandLandmarksConfidence??.5),this.l(e)}D(e,t,r){let n=typeof t!="function"?t:{};return this.C=typeof t=="function"?t:r,wi(this),Be(this,e,n),Ri(this)}F(e,t,r,n){let o=typeof r!="function"?r:{};return this.C=typeof r=="function"?r:n,wi(this),et(this,e,o,t),Ri(this)}m(){var e=new _e;j(e,"input_frames_image"),L(e,"pose_landmarks"),L(e,"pose_world_landmarks"),L(e,"face_landmarks"),L(e,"left_hand_landmarks"),L(e,"left_hand_world_landmarks"),L(e,"right_hand_landmarks"),L(e,"right_hand_world_landmarks");let t=new Re,r=new Hs;qn(r,1,qt("type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),""),function(o,s){if(s!=null)if(Array.isArray(s))G(o,2,cn(s,Ro,void 0,void 0,!1));else{if(!(typeof s=="string"||s instanceof st||vr(s)))throw Error("invalid value in Any.value field: "+s+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");qn(o,2,go(s,!1,!1),Lt())}}(r,this.j.g());let n=new pe;Se(n,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),zr(n,8,Hs,r),V(n,"IMAGE:input_frames_image"),R(n,"POSE_LANDMARKS:pose_landmarks"),R(n,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),R(n,"FACE_LANDMARKS:face_landmarks"),R(n,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),R(n,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),R(n,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),R(n,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),n.o(t),ke(e,n),bn(this,e),this.g.attachProtoListener("pose_landmarks",(o,s)=>{Or(o,this.h.poseLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("pose_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("pose_world_landmarks",(o,s)=>{var i=this.h.poseWorldLandmarks;o=Dt(o),i.push(pr(o)),d(this,s)}),this.g.attachEmptyPacketListener("pose_world_landmarks",o=>{d(this,o)}),this.outputPoseSegmentationMasks&&(R(n,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),Xt(this,"pose_segmentation_mask"),this.g.V("pose_segmentation_mask",(o,s)=>{this.h.poseSegmentationMasks=[Kt(this,o,!0,!this.C)],d(this,s)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",o=>{this.h.poseSegmentationMasks=[],d(this,o)})),this.g.attachProtoListener("face_landmarks",(o,s)=>{Or(o,this.h.faceLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("face_landmarks",o=>{d(this,o)}),this.outputFaceBlendshapes&&(L(e,"extra_blendshapes"),R(n,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(o,s)=>{var i=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(o=_n(o),i.push(ts(o.g()??[]))),d(this,s)}),this.g.attachEmptyPacketListener("extra_blendshapes",o=>{d(this,o)})),this.g.attachProtoListener("left_hand_landmarks",(o,s)=>{Or(o,this.h.leftHandLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("left_hand_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("left_hand_world_landmarks",(o,s)=>{var i=this.h.leftHandWorldLandmarks;o=Dt(o),i.push(pr(o)),d(this,s)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("right_hand_landmarks",(o,s)=>{Or(o,this.h.rightHandLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("right_hand_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("right_hand_world_landmarks",(o,s)=>{var i=this.h.rightHandWorldLandmarks;o=Dt(o),i.push(pr(o)),d(this,s)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",o=>{d(this,o)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};H.prototype.detectForVideo=H.prototype.F,H.prototype.detect=H.prototype.D,H.prototype.setOptions=H.prototype.o,H.createFromModelPath=function(e,t){return w(H,e,{baseOptions:{modelAssetPath:t}})},H.createFromModelBuffer=function(e,t){return w(H,e,{baseOptions:{modelAssetBuffer:t}})},H.createFromOptions=function(e,t){return w(H,e,t)},H.HAND_CONNECTIONS=fs,H.POSE_CONNECTIONS=Lc,H.FACE_LANDMARKS_LIPS=ss,H.FACE_LANDMARKS_LEFT_EYE=is,H.FACE_LANDMARKS_LEFT_EYEBROW=as,H.FACE_LANDMARKS_LEFT_IRIS=Rc,H.FACE_LANDMARKS_RIGHT_EYE=cs,H.FACE_LANDMARKS_RIGHT_EYEBROW=us,H.FACE_LANDMARKS_RIGHT_IRIS=Sc,H.FACE_LANDMARKS_FACE_OVAL=hs,H.FACE_LANDMARKS_CONTOURS=kc,H.FACE_LANDMARKS_TESSELATION=Cc;var Le=class extends ye{constructor(e,t){super(new Pe(e,t),"input_image","norm_rect",!0),this.j={classifications:[]},v(e=this.h=new hc,0,1,t=new K)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return v(this.h,0,2,no(e,k(this.h,Ko,2))),this.l(e)}ua(e,t){return this.j={classifications:[]},Be(this,e,t),this.j}va(e,t,r){return this.j={classifications:[]},et(this,e,r,t),this.j}m(){var e=new _e;j(e,"input_image"),j(e,"norm_rect"),L(e,"classifications");let t=new Re;je(t,m1,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),V(r,"IMAGE:input_image"),V(r,"NORM_RECT:norm_rect"),R(r,"CLASSIFICATIONS:classifications"),r.o(t),ke(e,r),this.g.attachProtoListener("classifications",(n,o)=>{this.j=function(s){let i={classifications:it(s,t1,1).map(c=>ts(k(c,Wa,4)?.g()??[],Ge(Me(c,2),0),Je(c,3)))};return Hr(mt(s,2))!=null&&(i.timestampMs=Ge(Hr(mt(s,2)),0)),i}(r1(n)),d(this,o)}),this.g.attachEmptyPacketListener("classifications",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Le.prototype.classifyForVideo=Le.prototype.va,Le.prototype.classify=Le.prototype.ua,Le.prototype.setOptions=Le.prototype.o,Le.createFromModelPath=function(e,t){return w(Le,e,{baseOptions:{modelAssetPath:t}})},Le.createFromModelBuffer=function(e,t){return w(Le,e,{baseOptions:{modelAssetBuffer:t}})},Le.createFromOptions=function(e,t){return w(Le,e,t)};var be=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!0),this.h=new fc,this.embeddings={embeddings:[]},v(e=this.h,0,1,t=new K)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){var t=this.h,r=k(this.h,ei,2);return r=r?r.clone():new ei,e.l2Normalize!==void 0?Er(r,1,e.l2Normalize):"l2Normalize"in e&&G(r,1),e.quantize!==void 0?Er(r,2,e.quantize):"quantize"in e&&G(r,2),v(t,0,2,r),this.l(e)}Ba(e,t){return Be(this,e,t),this.embeddings}Ca(e,t,r){return et(this,e,r,t),this.embeddings}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect"),L(e,"embeddings_out");let t=new Re;je(t,g1,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect"),R(r,"EMBEDDINGS:embeddings_out"),r.o(t),ke(e,r),this.g.attachProtoListener("embeddings_out",(n,o)=>{n=s1(n),this.embeddings=function(s){return{embeddings:it(s,o1,1).map(i=>{let c={headIndex:Ge(Me(i,3),0)??-1,headName:Je(i,4)??""};if(ua(i,Zs,Pn(i,1))!==void 0)i=Rt(i=k(i,Zs,Pn(i,1)),1,_t,wt()),c.floatEmbedding=i.slice();else{let a=new Uint8Array(0);c.quantizedEmbedding=k(i,n1,Pn(i,2))?.qa()?.h()??a}return c}),timestampMs:Ge(Hr(mt(s,2)),0)}}(n),d(this,o)}),this.g.attachEmptyPacketListener("embeddings_out",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};be.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=si(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=si(oi(e.quantizedEmbedding),oi(t.quantizedEmbedding))}return e},be.prototype.embedForVideo=be.prototype.Ca,be.prototype.embed=be.prototype.Ba,be.prototype.setOptions=be.prototype.o,be.createFromModelPath=function(e,t){return w(be,e,{baseOptions:{modelAssetPath:t}})},be.createFromModelBuffer=function(e,t){return w(be,e,{baseOptions:{modelAssetBuffer:t}})},be.createFromOptions=function(e,t){return w(be,e,t)};var ao=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){this.confidenceMasks?.forEach(e=>{e.close()}),this.categoryMask?.close()}};function Si(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function ki(e){try{let t=new ao(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.j)return t;e.j(t)}finally{An(e)}}ao.prototype.close=ao.prototype.close;var fe=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.s=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new es,this.v=new lc,v(this.h,0,3,this.v),v(e=this.h,0,1,t=new K)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?G(this.h,2,qt(e.displayNamesLocale)):"displayNamesLocale"in e&&G(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}J(){(function(e){let t=it(e.ea(),pe,1).filter(r=>Je(r,1).includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(e.s=[],t.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");t.length===1&&(k(t[0],Re,7)?.l()?.g()??new Map).forEach((r,n)=>{e.s[Number(n)]=Je(r,1)})})(this)}fa(e,t,r){let n=typeof t!="function"?t:{};return this.j=typeof t=="function"?t:r,Si(this),Be(this,e,n),ki(this)}Na(e,t,r,n){let o=typeof r!="function"?r:{};return this.j=typeof r=="function"?r:n,Si(this),et(this,e,o,t),ki(this)}Fa(){return this.s}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect");let t=new Re;je(t,pc,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect"),r.o(t),ke(e,r),bn(this,e),this.outputConfidenceMasks&&(L(e,"confidence_masks"),R(r,"CONFIDENCE_MASKS:confidence_masks"),Xt(this,"confidence_masks"),this.g.da("confidence_masks",(n,o)=>{this.confidenceMasks=n.map(s=>Kt(this,s,!0,!this.j)),d(this,o)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],d(this,n)})),this.outputCategoryMask&&(L(e,"category_mask"),R(r,"CATEGORY_MASK:category_mask"),Xt(this,"category_mask"),this.g.V("category_mask",(n,o)=>{this.categoryMask=Kt(this,n,!1,!this.j),d(this,o)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,d(this,n)})),L(e,"quality_scores"),R(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,o)=>{this.qualityScores=n,d(this,o)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};fe.prototype.getLabels=fe.prototype.Fa,fe.prototype.segmentForVideo=fe.prototype.Na,fe.prototype.segment=fe.prototype.fa,fe.prototype.setOptions=fe.prototype.o,fe.createFromModelPath=function(e,t){return w(fe,e,{baseOptions:{modelAssetPath:t}})},fe.createFromModelBuffer=function(e,t){return w(fe,e,{baseOptions:{modelAssetBuffer:t}})},fe.createFromOptions=function(e,t){return w(fe,e,t)};var co=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){this.confidenceMasks?.forEach(e=>{e.close()}),this.categoryMask?.close()}};co.prototype.close=co.prototype.close;var R1=class extends m{constructor(e){super(e)}},Ut=[0,te,-2],Zr=[0,rt,-3,$,rt,-1],Ci=[0,Zr],Li=[0,Zr,te,-1],Wn=class extends m{constructor(e){super(e)}},Ii=[0,rt,-1,$],S1=class extends m{constructor(){super()}},Fi=class extends m{constructor(e){super(e)}},uo=[1,2,3,4,5,6,7,8,9,10,14,15],Ic=class extends m{constructor(){super()}};Ic.prototype.g=xn([0,ae,[0,uo,B,Zr,B,[0,Zr,Ut],B,Ci,B,[0,Ci,Ut],B,Ii,B,[0,rt,-3,$,Ve],B,[0,rt,-3,$],B,[0,U,rt,-2,$,te,$,-1,2,rt,Ut],B,Li,B,[0,Li,Ut],rt,Ut,U,B,[0,rt,-3,$,Ut,-1],B,[0,ae,Ii]],U,[0,U,te,-1,$]]);var $e=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new es,this.s=new lc,v(this.h,0,3,this.s),v(e=this.h,0,1,t=new K)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}fa(e,t,r,n){let o=typeof r!="function"?r:{};this.j=typeof r=="function"?r:n,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.B+1,n=new Ic;let s=new Fi;var i=new R1;if(Qe(i,1,255),v(s,0,12,i),t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var c=new Wn;Er(c,3,!0),y(c,1,t.keypoint.x),y(c,2,t.keypoint.y),fr(s,5,uo,c)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");for(c of(i=new S1,t.scribble))Er(t=new Wn,3,!0),y(t,1,c.x),y(t,2,c.y),zr(i,1,Wn,t);fr(s,15,uo,i)}zr(n,1,Fi,s),this.g.addProtoToStream(n.g(),"drishti.RenderData","roi_in",r),Be(this,e,o);e:{try{let u=new co(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var a=u;break e}this.j(u)}finally{An(this)}a=void 0}return a}m(){var e=new _e;j(e,"image_in"),j(e,"roi_in"),j(e,"norm_rect_in");let t=new Re;je(t,pc,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),V(r,"IMAGE:image_in"),V(r,"ROI:roi_in"),V(r,"NORM_RECT:norm_rect_in"),r.o(t),ke(e,r),bn(this,e),this.outputConfidenceMasks&&(L(e,"confidence_masks"),R(r,"CONFIDENCE_MASKS:confidence_masks"),Xt(this,"confidence_masks"),this.g.da("confidence_masks",(n,o)=>{this.confidenceMasks=n.map(s=>Kt(this,s,!0,!this.j)),d(this,o)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],d(this,n)})),this.outputCategoryMask&&(L(e,"category_mask"),R(r,"CATEGORY_MASK:category_mask"),Xt(this,"category_mask"),this.g.V("category_mask",(n,o)=>{this.categoryMask=Kt(this,n,!1,!this.j),d(this,o)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,d(this,n)})),L(e,"quality_scores"),R(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,o)=>{this.qualityScores=n,d(this,o)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};$e.prototype.segment=$e.prototype.fa,$e.prototype.setOptions=$e.prototype.o,$e.createFromModelPath=function(e,t){return w($e,e,{baseOptions:{modelAssetPath:t}})},$e.createFromModelBuffer=function(e,t){return w($e,e,{baseOptions:{modelAssetBuffer:t}})},$e.createFromOptions=function(e,t){return w($e,e,t)};var Ie=class extends ye{constructor(e,t){super(new Pe(e,t),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},v(e=this.h=new mc,0,1,t=new K)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?G(this.h,2,qt(e.displayNamesLocale)):"displayNamesLocale"in e&&G(this.h,2),e.maxResults!==void 0?Qe(this.h,3,e.maxResults):"maxResults"in e&&G(this.h,3),e.scoreThreshold!==void 0?y(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&G(this.h,4),e.categoryAllowlist!==void 0?$r(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&G(this.h,5),e.categoryDenylist!==void 0?$r(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&G(this.h,6),this.l(e)}D(e,t){return this.j={detections:[]},Be(this,e,t),this.j}F(e,t,r){return this.j={detections:[]},et(this,e,r,t),this.j}m(){var e=new _e;j(e,"input_frame_gpu"),j(e,"norm_rect"),L(e,"detections");let t=new Re;je(t,E1,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.ObjectDetectorGraph"),V(r,"IMAGE:input_frame_gpu"),V(r,"NORM_RECT:norm_rect"),R(r,"DETECTIONS:detections"),r.o(t),ke(e,r),this.g.attachProtoVectorListener("detections",(n,o)=>{for(let s of n)n=Ha(s),this.j.detections.push(yc(n));d(this,o)}),this.g.attachEmptyPacketListener("detections",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ie.prototype.detectForVideo=Ie.prototype.F,Ie.prototype.detect=Ie.prototype.D,Ie.prototype.setOptions=Ie.prototype.o,Ie.createFromModelPath=async function(e,t){return w(Ie,e,{baseOptions:{modelAssetPath:t}})},Ie.createFromModelBuffer=function(e,t){return w(Ie,e,{baseOptions:{modelAssetBuffer:t}})},Ie.createFromOptions=function(e,t){return w(Ie,e,t)};var ho=class{constructor(e,t,r){this.landmarks=e,this.worldLandmarks=t,this.segmentationMasks=r}close(){this.segmentationMasks?.forEach(e=>{e.close()})}};function Mi(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}function Oi(e){try{let t=new ho(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.s)return t;e.s(t)}finally{An(e)}}ho.prototype.close=ho.prototype.close;var Ae=class extends ye{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,v(e=this.h=new gc,0,1,t=new K),this.v=new cc,v(this.h,0,3,this.v),this.j=new ac,v(this.h,0,2,this.j),Qe(this.j,4,1),y(this.j,2,.5),y(this.v,2,.5),y(this.h,4,.5)}get baseOptions(){return k(this.h,K,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"numPoses"in e&&Qe(this.j,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&y(this.j,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&y(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&y(this.v,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.l(e)}D(e,t,r){let n=typeof t!="function"?t:{};return this.s=typeof t=="function"?t:r,Mi(this),Be(this,e,n),Oi(this)}F(e,t,r,n){let o=typeof r!="function"?r:{};return this.s=typeof r=="function"?r:n,Mi(this),et(this,e,o,t),Oi(this)}m(){var e=new _e;j(e,"image_in"),j(e,"norm_rect"),L(e,"normalized_landmarks"),L(e,"world_landmarks"),L(e,"segmentation_masks");let t=new Re;je(t,x1,this.h);let r=new pe;Se(r,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),V(r,"IMAGE:image_in"),V(r,"NORM_RECT:norm_rect"),R(r,"NORM_LANDMARKS:normalized_landmarks"),R(r,"WORLD_LANDMARKS:world_landmarks"),r.o(t),ke(e,r),bn(this,e),this.g.attachProtoVectorListener("normalized_landmarks",(n,o)=>{this.landmarks=[];for(let s of n)n=kr(s),this.landmarks.push(Tn(n));d(this,o)}),this.g.attachEmptyPacketListener("normalized_landmarks",n=>{this.landmarks=[],d(this,n)}),this.g.attachProtoVectorListener("world_landmarks",(n,o)=>{this.worldLandmarks=[];for(let s of n)n=Dt(s),this.worldLandmarks.push(pr(n));d(this,o)}),this.g.attachEmptyPacketListener("world_landmarks",n=>{this.worldLandmarks=[],d(this,n)}),this.outputSegmentationMasks&&(R(r,"SEGMENTATION_MASK:segmentation_masks"),Xt(this,"segmentation_masks"),this.g.da("segmentation_masks",(n,o)=>{this.segmentationMasks=n.map(s=>Kt(this,s,!0,!this.s)),d(this,o)}),this.g.attachEmptyPacketListener("segmentation_masks",n=>{this.segmentationMasks=[],d(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ae.prototype.detectForVideo=Ae.prototype.F,Ae.prototype.detect=Ae.prototype.D,Ae.prototype.setOptions=Ae.prototype.o,Ae.createFromModelPath=function(e,t){return w(Ae,e,{baseOptions:{modelAssetPath:t}})},Ae.createFromModelBuffer=function(e,t){return w(Ae,e,{baseOptions:{modelAssetBuffer:t}})},Ae.createFromOptions=function(e,t){return w(Ae,e,t)},Ae.POSE_CONNECTIONS=Lc;var S=(e,t="AssertError")=>{if(!e)throw new Error(t,{cause:e});return e};var ls=e=>e;var ds=(e,...t)=>{let r=t.reduce((n,o)=>s=>o(n(s)),ls);return(...n)=>r(e(...n))};var C1=e=>`(${e})`;var Fc=e=>C1(`?:${e}`),L1=e=>`${Fc(e)}?`,I1=e=>`${Fc(e)}*`;var F1=e=>`^${e}`,M1=e=>`${e}$`,O1=e=>typeof e=="function",U1=e=>t=>O1(t)?t(e):t;var P1=()=>e=>e,Sn=(e,t=P1)=>r=>n=>ds(U1(n),t(n),e)(r);var df=Sn(e=>L1(e)),pf=Sn(e=>I1(e));var mf=Sn(e=>F1(e)),gf=Sn(e=>M1(e));var z={Closed:"closed",Closing:"closing",Destroyed:"destroyed",Destroying:"destroying",Error:"Error",Idle:"idle",New:"new",Opened:"opened",Opening:"opening",Processing:"processing",Updated:"updated",Updating:"updating"},Mc={None:"none",Blur:"blur",Overlay:"overlay"},F={ContextCreationError:"ContextCreationError",ContextLost:"ContextLost",ContextRestored:"ContextRestored",Error:"Error",ProcessorRestarted:"ProcessorRestarted",SamplingError:"SamplingError"};var B1=e=>!!(typeof e=="string"&&Object.values(F).includes(e)),kn=e=>B1(e)?e:F.Error,Cn=e=>e instanceof Error?e.message:String(e),Oc=e=>{let t=new Set(Object.keys(e));return r=>{for(let n in r)t.has(n)&&typeof e[n]==typeof r[n]&&(e[n]=r[n])}},Uc=e=>{let t=new Map(e),r=new Set,n=async i=>{let a=await(await fetch(i)).blob();return await createImageBitmap(a)},o=async i=>{let c=t.get(i);if(!c){if(r.has(i))return null;r.add(i);let a=await n(i);return t.set(i,a),r.delete(i),a}return c},s=i=>(t.get(i)?.close(),t.delete(i));return{tryFetchingImage:o,setImage:(i,c)=>{t.has(i)&&s(i),t.set(i,c)},getImage:i=>t.get(i)??null,removeImage:s,clear:()=>{t.forEach(i=>i.close()),t.clear()}}},Pc=(e,t)=>r=>Math.min(Math.max(r,e),t);var Bc=(e,t,r,n)=>{if(!e||!t||!r||!n||e*n===r*t)return{sx:0,sy:0,sw:e,sh:t,dx:0,dy:0,dw:r,dh:n};let o=e/t,s=r/n;if(o>s){let u=Math.ceil(e*s)/o,f=Math.abs(e-u);return{sx:Math.ceil(f/2),sy:0,sw:u,sh:t,dx:0,dy:0,dw:r,dh:n}}let i=Math.ceil(t*o)/s,c=Math.abs(t-i);return{sx:0,sy:Math.ceil(c/2),sw:e,sh:i,dx:0,dy:0,dw:r,dh:n}};var D1={drawImageDataCanvas:"drawImageDataCanvas",maskCanvas:"maskCanvas",blurredMaskCanvas:"blurredMaskCanvas",blurredCanvas:"blurredCanvas",downScaledCanvas:"downScaledCanvas",backgroundImageCanvas:"backgroundImageCanvas",inputCanvas:"inputCanvas"},Tt=(e,t)=>{let r=e.getContext("2d",t);if(!r)throw new Error("Cannot get CanvasRenderingContext2D");return r},N1=e=>{let t=Tt(e);t.scale(-1,1),t.translate(-e.width,0)},ps=e=>"VideoFrame"in globalThis&&e instanceof VideoFrame?{height:e.displayHeight,width:e.displayWidth}:"offsetHeight"in e&&typeof e.offsetHeight=="number"&&e.offsetHeight!==0&&"offsetWidth"in e&&typeof e.offsetWidth=="number"&&e.offsetWidth!==0?{height:e.offsetHeight,width:e.offsetWidth}:"videoHeight"in e&&typeof e.videoHeight=="number"&&e.videoHeight!==0&&"videoWidth"in e&&typeof e.videoWidth=="number"&&e.videoWidth!==0?{height:e.videoHeight,width:e.videoWidth}:"height"in e&&e.height!==0&&"width"in e&&e.width!==0?{height:e.height,width:e.width}:{height:0,width:0},rr=(e,t)=>new OffscreenCanvas(e,t);var G1=e=>{Tt(e).clearRect(0,0,e.width,e.height)},Dc=(e,t)=>{let r={downScaleFactor:3},n=l=>rr(l==="downScaledCanvas"?Math.trunc(e/r.downScaleFactor):e,l==="downScaledCanvas"?Math.trunc(t/r.downScaleFactor):t),o=l=>{let _=r[l];if(!_){let T=n(l);return r[l]=T,T}return _},s=(l,_)=>{let T=o(_);return Tt(T).putImageData(l,0,0),T},i=(l,_,T,M,I,O,X,D,Q,oe)=>{let bt=_ instanceof ImageData?s(_,"drawImageDataCanvas"):_;I===void 0||O===void 0?l.drawImage(bt,T,M):X===void 0||D===void 0||Q===void 0||oe===void 0?l.drawImage(bt,T,M,I,O):l.drawImage(bt,T,M,I,O,X,D,Q,oe)},c=(l,_,T=e,M=t,I={})=>{let{height:O,width:X}=ps(l),D=Bc(X,O,T,M),Q=Tt(_,I);i(Q,l,D.sx,D.sy,D.sw,D.sh,D.dx,D.dy,D.dw,D.dh)},a=(l,_)=>{let T=o(_);return c(l,T),T},u=(l,_,T)=>{l.globalCompositeOperation=T,i(l,_,0,0)},f=(l,_,T)=>{let M=Tt(l),I=0,O=5,X=1/(2*Math.PI*O*O),D=T<3?1:2;for(let Q=-T;Q<=T;Q+=D)for(let oe=-T;oe<=T;oe+=D){let bt=X*Math.exp(-(oe*oe+Q*Q)/(2*O*O));I+=bt}for(let Q=-T;Q<=T;Q+=D)for(let oe=-T;oe<=T;oe+=D)M.globalAlpha=X*Math.exp(-(oe*oe+Q*Q)/(2*O*O))/I*T,i(M,_,oe,Q);M.globalAlpha=1},g=({image:l,blurAmount:_,canvas:T,preserveOldDrawing:M=!0})=>{let{height:I,width:O}=ps(l),X=Tt(T);if(_<=0)return i(X,l,0,0,O,I);let D=o("downScaledCanvas"),Q=Tt(D);M||(Q.clearRect(0,0,D.width,D.height),X.clearRect(0,0,O,I)),"filter"in X?(Q.filter=`blur(${_}px)`,i(Q,l,0,0,O,I,0,0,D.width,D.height),i(X,D,0,0,O,I)):f(T,l,_)},p=({image:l,blurAmount:_,offscreenCanvasName:T,preserveOldDrawing:M})=>{let I=o(T);return G1(I),_===0?c(l,I):g({image:l,blurAmount:_,canvas:I,preserveOldDrawing:M}),I},x=(l,_,T)=>{let M=Array.isArray(l)?l[0]?.canvas:l.canvas;if(!M)return o("maskCanvas");let I=p({image:M,offscreenCanvasName:"maskCanvas",blurAmount:0});return T===0?I:p({image:I,blurAmount:T,offscreenCanvasName:"blurredMaskCanvas",preserveOldDrawing:!1})},b=(l,_,T,M,I=.5,O=3,X=3,D=!1)=>{let Q=p({image:T,blurAmount:O,offscreenCanvasName:"blurredCanvas"}),oe=Tt(l);if(Array.isArray(M)&&M.length===0)return i(oe,Q,0,0);let bt=x(M,I,X);oe.save(),D&&N1(l);let{height:ru,width:nu}=ps(_);i(oe,_,0,0,nu,ru),u(oe,bt,"destination-in"),u(oe,Q,"destination-over"),oe.restore()};return{evaluateInput:l=>a(l,"inputCanvas"),renderImageToCanvas:c,drawBlurEffect:(l,_,T,M=.5,I=3,O=3,X=!1)=>b(l,_,_,T,M,I,O,X),drawOverlayEffect:(l,_,T,M,I=.5,O=0,X=3,D=!1)=>b(l,_,T,M,I,O,X,D),renderImageToOffScreenCanvas:a,renderImageDataToOffScreenCanvas:s,drawAndBlurImageOnOffScreenCanvas:p,reset:()=>{Object.keys(D1).forEach(l=>{let _=l,T=r[_];T&&T instanceof OffscreenCanvas&&(r[_]=n(_))})}}};var Ln={VertexShader:WebGLRenderingContext.VERTEX_SHADER,FragmentShader:WebGLRenderingContext.FRAGMENT_SHADER},ms={[Ln.VertexShader]:"VertexShader",[Ln.FragmentShader]:"FragmentShader"},V1=e=>typeof e=="string"?e.startsWith("#version 300 es"):!1,Nc=e=>{if(!V1(e))throw new Error("Expecting GLSL ES 3.00 shader source")},j1=/ERROR:\s*\d+:(\d+)/gi;function jc(e,t="",r=0){let n=[...t.matchAll(j1)],o=new Map(n.map((s,i)=>{if(!s[1]||s.index===void 0)return[0,t];let c=parseInt(s[1],10),a=n[i+1],u=a?a.index:t.length,f=t.substring(s.index,u);return[c-1,f]}));return e.split(`
|
|
42
|
-
`).map((s,i)=>{let
|
|
43
|
-
|
|
44
|
-
^^^ ${
|
|
45
|
-
`)}var
|
|
46
|
-
${s?
|
|
47
|
-
${t.map(
|
|
48
|
-
${
|
|
49
|
-
`)}`)}return[o,()=>{t.forEach(i=>{e.detachShader(o,i),e.deleteShader(i)}),e.deleteProgram(o)}]},
|
|
41
|
+
`}C(){let e=this.g;e.activeTexture(e.TEXTURE1),this.j=_t(this,e),e.activeTexture(e.TEXTURE2),this.B=_t(this,e)}m(){super.m();let e=this.g;this.K=pe(e.getUniformLocation(this.h,"defaultTexture"),"Uniform location"),this.L=pe(e.getUniformLocation(this.h,"overlayTexture"),"Uniform location"),this.I=pe(e.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();let e=this.g;e.uniform1i(this.I,0),e.uniform1i(this.K,1),e.uniform1i(this.L,2)}close(){this.j&&this.g.deleteTexture(this.j),this.B&&this.g.deleteTexture(this.B),super.close()}};function nt(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 ro(e){var t=nt(e,1);if(!t){if(t=nt(e,0))t=new Float32Array(t).map(n=>n/255);else{t=new Float32Array(e.width*e.height);let n=Xt(e);var r=os(e);if(vn(r,n,xc(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 o=0,s=0;o<t.length;++o,s+=4)t[o]=r[s]}else n.readPixels(0,0,e.width,e.height,n.RED,n.FLOAT,t)}e.g.push(t)}return t}function xc(e){let t=nt(e,2);if(!t){let r=Xt(e);t=vc(e);let n=ro(e),o=_c(e);r.texImage2D(r.TEXTURE_2D,0,o,e.width,e.height,0,r.RED,r.FLOAT,n),no(e)}return t}function Xt(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=pe(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function _c(e){if(e=Xt(e),!Fr)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))Fr=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");Fr=e.R16F}return Fr}function os(e){return e.l||(e.l=new rr),e.l}function vc(e){let t=Xt(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let r=nt(e,2);return r||(r=_t(os(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(r),e.j=!0),t.bindTexture(t.TEXTURE_2D,r),r}function no(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var Fr,ie=class{constructor(e,t,r,n,o,s,i){this.g=e,this.m=t,this.j=r,this.canvas=n,this.l=o,this.width=s,this.height=i,this.j&&--di===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Ga(){return!!nt(this,0)}ka(){return!!nt(this,1)}R(){return!!nt(this,2)}ja(){return(t=nt(e=this,0))||(t=ro(e),t=new Uint8Array(t.map(r=>255*r)),e.g.push(t)),t;var e,t}ia(){return ro(this)}N(){return xc(this)}clone(){let 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=Xt(this),o=os(this);n.activeTexture(n.TEXTURE1),r=_t(o,n,this.m?n.LINEAR:n.NEAREST),n.bindTexture(n.TEXTURE_2D,r);let s=_c(this);n.texImage2D(n.TEXTURE_2D,0,s,this.width,this.height,0,n.RED,n.FLOAT,null),n.bindTexture(n.TEXTURE_2D,null),vn(o,n,r),Rr(o,n,!1,()=>{vc(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),no(this)}),ns(o),no(this)}}e.push(r)}return new ie(e,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&Xt(this).deleteTexture(nt(this,2)),di=-1}};ie.prototype.close=ie.prototype.close,ie.prototype.clone=ie.prototype.clone,ie.prototype.getAsWebGLTexture=ie.prototype.N,ie.prototype.getAsFloat32Array=ie.prototype.ia,ie.prototype.getAsUint8Array=ie.prototype.ja,ie.prototype.hasWebGLTexture=ie.prototype.R,ie.prototype.hasFloat32Array=ie.prototype.ka,ie.prototype.hasUint8Array=ie.prototype.Ga;var di=250,x1={color:"white",lineWidth:4,radius:6};function Nn(e){return{...x1,fillColor:(e=e||{}).color,...e}}function tt(e,t){return e instanceof Function?e(t):e}function pi(e,t,r){return Math.max(Math.min(t,r),Math.min(Math.max(t,r),e))}function ur(e){if(!e.l)throw Error("CPU rendering requested but CanvasRenderingContext2D not provided.");return e.l}function _r(e){if(!e.j)throw Error("GPU rendering requested but WebGL2RenderingContext not provided.");return e.j}function mi(e,t,r){if(t.R())r(t.N());else{let n=t.ka()?t.ia():t.ja();e.m=e.m??new rr;let o=_r(e);r((e=new ie([n],t.m,!1,o.canvas,e.m,t.width,t.height)).N()),e.close()}}function gi(e,t,r,n){let o=function(a){return a.g||(a.g=new y1),a.g}(e),s=_r(e),i=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r;Rr(o,s,!0,()=>{(function(c,h,l,x){let g=c.g;if(g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,h),g.activeTexture(g.TEXTURE1),g.bindTexture(g.TEXTURE_2D,c.B),g.texImage2D(g.TEXTURE_2D,0,g.RGBA,g.RGBA,g.UNSIGNED_BYTE,l),c.I&&function(E,A){if(E!==A)return!1;E=E.entries(),A=A.entries();for(let[G,L]of E){E=G;let f=L;var b=A.next();if(b.done)return!1;let[_,T]=b.value;if(b=T,E!==_||f[0]!==b[0]||f[1]!==b[1]||f[2]!==b[2]||f[3]!==b[3])return!1}return!!A.next().done}(c.I,x))g.activeTexture(g.TEXTURE2),g.bindTexture(g.TEXTURE_2D,c.j);else{c.I=x;let E=Array(1024).fill(0);x.forEach((A,b)=>{if(A.length!==4)throw Error(`Color at index ${b} is not a four-channel value.`);E[4*b]=A[0],E[4*b+1]=A[1],E[4*b+2]=A[2],E[4*b+3]=A[3]}),g.activeTexture(g.TEXTURE2),g.bindTexture(g.TEXTURE_2D,c.j),g.texImage2D(g.TEXTURE_2D,0,g.RGBA,256,1,0,g.RGBA,g.UNSIGNED_BYTE,new Uint8Array(E))}})(o,t,i,n),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4);let a=o.g;a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,null),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),a.activeTexture(a.TEXTURE2),a.bindTexture(a.TEXTURE_2D,null)})}function yi(e,t,r,n){let o=_r(e),s=function(c){return c.h||(c.h=new E1),c.h}(e),i=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r,a=Array.isArray(n)?new ImageData(new Uint8ClampedArray(n),1,1):n;Rr(s,o,!0,()=>{var c=s.g;c.activeTexture(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,t),c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,s.j),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,i),c.activeTexture(c.TEXTURE2),c.bindTexture(c.TEXTURE_2D,s.B),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,a),o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT),o.drawArrays(o.TRIANGLE_FAN,0,4),o.bindTexture(o.TEXTURE_2D,null),(c=s.g).activeTexture(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,null),c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),c.activeTexture(c.TEXTURE2),c.bindTexture(c.TEXTURE_2D,null)})}var de=class{constructor(e,t){e instanceof CanvasRenderingContext2D||e instanceof OffscreenCanvasRenderingContext2D?(this.l=e,this.j=t):this.j=e}za(e,t){if(e){var r=ur(this);t=Nn(t),r.save();var n=r.canvas,o=0;for(let s of e)r.fillStyle=tt(t.fillColor,{index:o,from:s}),r.strokeStyle=tt(t.color,{index:o,from:s}),r.lineWidth=tt(t.lineWidth,{index:o,from:s}),(e=new Path2D).arc(s.x*n.width,s.y*n.height,tt(t.radius,{index:o,from:s}),0,2*Math.PI),r.fill(e),r.stroke(e),++o;r.restore()}}ya(e,t,r){if(e&&t){var n=ur(this);r=Nn(r),n.save();var o=n.canvas,s=0;for(let i of t){n.beginPath(),t=e[i.start];let a=e[i.end];t&&a&&(n.strokeStyle=tt(r.color,{index:s,from:t,to:a}),n.lineWidth=tt(r.lineWidth,{index:s,from:t,to:a}),n.moveTo(t.x*o.width,t.y*o.height),n.lineTo(a.x*o.width,a.y*o.height)),++s,n.stroke()}n.restore()}}va(e,t){let r=ur(this);t=Nn(t),r.save(),r.beginPath(),r.lineWidth=tt(t.lineWidth,{}),r.strokeStyle=tt(t.color,{}),r.fillStyle=tt(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()}wa(e,t,r=[0,0,0,255]){this.l?function(n,o,s,i){let a=_r(n);mi(n,o,c=>{gi(n,c,s,i),(c=ur(n)).drawImage(a.canvas,0,0,c.canvas.width,c.canvas.height)})}(this,e,r,t):gi(this,e.N(),r,t)}xa(e,t,r){this.l?function(n,o,s,i){let a=_r(n);mi(n,o,c=>{yi(n,c,s,i),(c=ur(n)).drawImage(a.canvas,0,0,c.canvas.width,c.canvas.height)})}(this,e,t,r):yi(this,e.N(),t,r)}close(){this.g?.close(),this.g=void 0,this.h?.close(),this.h=void 0,this.m?.close(),this.m=void 0}};function Je(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 Tc(e){var t=Je(e,0);if(!t){t=Ht(e);let r=Tn(e),n=new Uint8Array(e.width*e.height*4);vn(r,t,Dr(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 Dr(e){let t=Je(e,2);if(!t){let r=Ht(e);t=Nr(e);let n=Je(e,1)||Tc(e);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),lr(e)}return t}function Ht(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when iniitializing the image.");return e.h||(e.h=pe(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function Tn(e){return e.l||(e.l=new rr),e.l}function Nr(e){let t=Ht(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let r=Je(e,2);return r||(r=_t(Tn(e),t),e.g.push(r),e.m=!0),t.bindTexture(t.TEXTURE_2D,r),r}function lr(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}function Ei(e){let t=Ht(e);return Rr(Tn(e),t,!0,()=>function(r,n){let o=r.canvas;if(o.width===r.width&&o.height===r.height)return n();let s=o.width,i=o.height;return o.width=r.width,o.height=r.height,r=n(),o.width=s,o.height=i,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()}))}de.prototype.close=de.prototype.close,de.prototype.drawConfidenceMask=de.prototype.xa,de.prototype.drawCategoryMask=de.prototype.wa,de.prototype.drawBoundingBox=de.prototype.va,de.prototype.drawConnectors=de.prototype.ya,de.prototype.drawLandmarks=de.prototype.za,de.lerp=function(e,t,r,n,o){return pi(n*(1-(e-t)/(r-t))+o*(1-(r-e)/(r-t)),n,o)},de.clamp=pi,Pi("DrawingUtils",de);var he=class{constructor(e,t,r,n,o,s,i){this.g=e,this.j=t,this.m=r,this.canvas=n,this.l=o,this.width=s,this.height=i,(this.j||this.m)&&--xi===0&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Fa(){return!!Je(this,0)}la(){return!!Je(this,1)}R(){return!!Je(this,2)}Da(){return Tc(this)}Ca(){var e=Je(this,1);return e||(Dr(this),Nr(this),e=Ei(this),lr(this),this.g.push(e),this.j=!0),e}N(){return Dr(this)}clone(){let 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=Ht(this),o=Tn(this);n.activeTexture(n.TEXTURE1),r=_t(o,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),vn(o,n,r),Rr(o,n,!1,()=>{Nr(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),lr(this)}),ns(o),lr(this)}else{if(!(t instanceof ImageBitmap))throw Error(`Type is not supported: ${t}`);Dr(this),Nr(this),r=Ei(this),lr(this)}e.push(r)}return new he(e,this.la(),this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&Je(this,1).close(),this.m&&Ht(this).deleteTexture(Je(this,2)),xi=-1}};he.prototype.close=he.prototype.close,he.prototype.clone=he.prototype.clone,he.prototype.getAsWebGLTexture=he.prototype.N,he.prototype.getAsImageBitmap=he.prototype.Ca,he.prototype.getAsImageData=he.prototype.Da,he.prototype.hasWebGLTexture=he.prototype.R,he.prototype.hasImageBitmap=he.prototype.la,he.prototype.hasImageData=he.prototype.Fa;var xi=250;function Ye(...e){return e.map(([t,r])=>({start:t,end:r}))}var _1=function(e){return class extends e{La(){this.i._registerModelResourcesGraphService()}}}((_i=class{constructor(e,t){this.l=!0,this.i=e,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",t!==void 0?this.i.canvas=t:yc()?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){let 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){let 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,o){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),y(this,n||"input_audio",s=>{y(this,o=o||"audio_header",i=>{this.i._configureAudio(s,i,e,t??0,r)})})}setAutoResizeCanvas(e){this.l=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}ea(e){$e(this,"__graph_config__",t=>{e(t)}),y(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,o){let 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),y(this,n,i=>{this.i._addAudioToInputStream(this.g,t,r,i,o)})}addGpuBufferToStream(e,t,r){y(this,t,n=>{let[o,s]=ci(this,e,n);this.i._addBoundTextureToStream(n,o,s,r)})}addBoolToStream(e,t,r){y(this,t,n=>{this.i._addBoolToInputStream(e,n,r)})}addDoubleToStream(e,t,r){y(this,t,n=>{this.i._addDoubleToInputStream(e,n,r)})}addFloatToStream(e,t,r){y(this,t,n=>{this.i._addFloatToInputStream(e,n,r)})}addIntToStream(e,t,r){y(this,t,n=>{this.i._addIntToInputStream(e,n,r)})}addUintToStream(e,t,r){y(this,t,n=>{this.i._addUintToInputStream(e,n,r)})}addStringToStream(e,t,r){y(this,t,n=>{y(this,e,o=>{this.i._addStringToInputStream(o,n,r)})})}addStringRecordToStream(e,t,r){y(this,t,n=>{ui(this,Object.keys(e),o=>{ui(this,Object.values(e),s=>{this.i._addFlatHashMapToInputStream(o,s,Object.keys(e).length,n,r)})})})}addProtoToStream(e,t,r,n){y(this,r,o=>{y(this,t,s=>{let i=this.i._malloc(e.length);this.i.HEAPU8.set(e,i),this.i._addProtoToInputStream(i,e.length,s,o,n),this.i._free(i)})})}addEmptyPacketToStream(e,t){y(this,e,r=>{this.i._addEmptyPacketToInputStream(r,t)})}addBoolVectorToStream(e,t,r){y(this,t,n=>{let o=this.i._allocateBoolVector(e.length);if(!o)throw Error("Unable to allocate new bool vector on heap.");for(let s of e)this.i._addBoolVectorEntry(o,s);this.i._addBoolVectorToInputStream(o,n,r)})}addDoubleVectorToStream(e,t,r){y(this,t,n=>{let o=this.i._allocateDoubleVector(e.length);if(!o)throw Error("Unable to allocate new double vector on heap.");for(let s of e)this.i._addDoubleVectorEntry(o,s);this.i._addDoubleVectorToInputStream(o,n,r)})}addFloatVectorToStream(e,t,r){y(this,t,n=>{let o=this.i._allocateFloatVector(e.length);if(!o)throw Error("Unable to allocate new float vector on heap.");for(let s of e)this.i._addFloatVectorEntry(o,s);this.i._addFloatVectorToInputStream(o,n,r)})}addIntVectorToStream(e,t,r){y(this,t,n=>{let o=this.i._allocateIntVector(e.length);if(!o)throw Error("Unable to allocate new int vector on heap.");for(let s of e)this.i._addIntVectorEntry(o,s);this.i._addIntVectorToInputStream(o,n,r)})}addUintVectorToStream(e,t,r){y(this,t,n=>{let o=this.i._allocateUintVector(e.length);if(!o)throw Error("Unable to allocate new unsigned int vector on heap.");for(let s of e)this.i._addUintVectorEntry(o,s);this.i._addUintVectorToInputStream(o,n,r)})}addStringVectorToStream(e,t,r){y(this,t,n=>{let o=this.i._allocateStringVector(e.length);if(!o)throw Error("Unable to allocate new string vector on heap.");for(let s of e)y(this,s,i=>{this.i._addStringVectorEntry(o,i)});this.i._addStringVectorToInputStream(o,n,r)})}addBoolToInputSidePacket(e,t){y(this,t,r=>{this.i._addBoolToInputSidePacket(e,r)})}addDoubleToInputSidePacket(e,t){y(this,t,r=>{this.i._addDoubleToInputSidePacket(e,r)})}addFloatToInputSidePacket(e,t){y(this,t,r=>{this.i._addFloatToInputSidePacket(e,r)})}addIntToInputSidePacket(e,t){y(this,t,r=>{this.i._addIntToInputSidePacket(e,r)})}addUintToInputSidePacket(e,t){y(this,t,r=>{this.i._addUintToInputSidePacket(e,r)})}addStringToInputSidePacket(e,t){y(this,t,r=>{y(this,e,n=>{this.i._addStringToInputSidePacket(n,r)})})}addProtoToInputSidePacket(e,t,r){y(this,r,n=>{y(this,t,o=>{let s=this.i._malloc(e.length);this.i.HEAPU8.set(e,s),this.i._addProtoToInputSidePacket(s,e.length,o,n),this.i._free(s)})})}addBoolVectorToInputSidePacket(e,t){y(this,t,r=>{let n=this.i._allocateBoolVector(e.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(let o of e)this.i._addBoolVectorEntry(n,o);this.i._addBoolVectorToInputSidePacket(n,r)})}addDoubleVectorToInputSidePacket(e,t){y(this,t,r=>{let n=this.i._allocateDoubleVector(e.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(let o of e)this.i._addDoubleVectorEntry(n,o);this.i._addDoubleVectorToInputSidePacket(n,r)})}addFloatVectorToInputSidePacket(e,t){y(this,t,r=>{let n=this.i._allocateFloatVector(e.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(let o of e)this.i._addFloatVectorEntry(n,o);this.i._addFloatVectorToInputSidePacket(n,r)})}addIntVectorToInputSidePacket(e,t){y(this,t,r=>{let n=this.i._allocateIntVector(e.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(let o of e)this.i._addIntVectorEntry(n,o);this.i._addIntVectorToInputSidePacket(n,r)})}addUintVectorToInputSidePacket(e,t){y(this,t,r=>{let n=this.i._allocateUintVector(e.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(let o of e)this.i._addUintVectorEntry(n,o);this.i._addUintVectorToInputSidePacket(n,r)})}addStringVectorToInputSidePacket(e,t){y(this,t,r=>{let n=this.i._allocateStringVector(e.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(let o of e)y(this,o,s=>{this.i._addStringVectorEntry(n,s)});this.i._addStringVectorToInputSidePacket(n,r)})}attachBoolListener(e,t){$e(this,e,t),y(this,e,r=>{this.i._attachBoolListener(r)})}attachBoolVectorListener(e,t){ut(this,e,t),y(this,e,r=>{this.i._attachBoolVectorListener(r)})}attachIntListener(e,t){$e(this,e,t),y(this,e,r=>{this.i._attachIntListener(r)})}attachIntVectorListener(e,t){ut(this,e,t),y(this,e,r=>{this.i._attachIntVectorListener(r)})}attachUintListener(e,t){$e(this,e,t),y(this,e,r=>{this.i._attachUintListener(r)})}attachUintVectorListener(e,t){ut(this,e,t),y(this,e,r=>{this.i._attachUintVectorListener(r)})}attachDoubleListener(e,t){$e(this,e,t),y(this,e,r=>{this.i._attachDoubleListener(r)})}attachDoubleVectorListener(e,t){ut(this,e,t),y(this,e,r=>{this.i._attachDoubleVectorListener(r)})}attachFloatListener(e,t){$e(this,e,t),y(this,e,r=>{this.i._attachFloatListener(r)})}attachFloatVectorListener(e,t){ut(this,e,t),y(this,e,r=>{this.i._attachFloatVectorListener(r)})}attachStringListener(e,t){$e(this,e,t),y(this,e,r=>{this.i._attachStringListener(r)})}attachStringVectorListener(e,t){ut(this,e,t),y(this,e,r=>{this.i._attachStringVectorListener(r)})}attachProtoListener(e,t,r){$e(this,e,t),y(this,e,n=>{this.i._attachProtoListener(n,r||!1)})}attachProtoVectorListener(e,t,r){ut(this,e,t),y(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?'),$e(this,e,(n,o)=>{n=new Float32Array(n.buffer,n.byteOffset,n.length/4),t(n,o)}),y(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}},class extends _i{get fa(){return this.i}ra(e,t,r){y(this,t,n=>{let[o,s]=ci(this,e,n);this.fa._addBoundTextureAsImageToStream(n,o,s,r)})}V(e,t){$e(this,e,t),y(this,e,r=>{this.fa._attachImageListener(r)})}da(e,t){ut(this,e,t),y(this,e,r=>{this.fa._attachImageVectorListener(r)})}})),_i,Pe=class extends _1{};async function w(e,t,r){return async function(n,o,s,i){return g1(n,o,s,i)}(e,r.canvas??(yc()?void 0:document.createElement("canvas")),t,r)}function bc(e,t,r,n){if(e.U){let s=new Ya;if(r?.regionOfInterest){if(!e.qa)throw Error("This task doesn't support region-of-interest.");var o=r.regionOfInterest;if(o.left>=o.right||o.top>=o.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(o.left<0||o.top<0||o.right>1||o.bottom>1)throw Error("Expected RectF values to be in [0,1].");m(s,1,(o.left+o.right)/2),m(s,2,(o.top+o.bottom)/2),m(s,4,o.right-o.left),m(s,3,o.bottom-o.top)}else m(s,1,.5),m(s,2,.5),m(s,4,1),m(s,3,1);if(r?.rotationDegrees){if(r?.rotationDegrees%90!=0)throw Error("Expected rotation to be a multiple of 90\xB0.");if(m(s,5,-Math.PI*r.rotationDegrees/180),r?.rotationDegrees%180!=0){let[i,a]=Ec(t);r=ee(s,3)*a/i,o=ee(s,4)*i/a,m(s,4,r),m(s,3,o)}}e.g.addProtoToStream(s.g(),"mediapipe.NormalizedRect",e.U,n)}e.g.ra(t,e.ba,n??performance.now()),e.finishProcessing()}function Be(e,t,r){if(e.baseOptions?.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");bc(e,t,r,e.B+1)}function et(e,t,r,n){if(!e.baseOptions?.g())throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");bc(e,t,r,n)}function Yt(e,t,r,n){var o=t.data;let s=t.width,i=s*(t=t.height);if((o instanceof Uint8Array||o instanceof Float32Array)&&o.length!==i)throw Error("Unsupported channel count: "+o.length/i);return e=new ie([o],r,!1,e.g.i.canvas,e.P,s,t),n?e.clone():e}var xe=class extends Br{constructor(e,t,r,n){super(e),this.g=e,this.ba=t,this.U=r,this.qa=n,this.P=new rr}l(e,t=!0){if("runningMode"in e&&Er(this.baseOptions,2,!!e.runningMode&&e.runningMode!=="IMAGE"),e.canvas!==void 0&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(e,t)}close(){this.P.close(),super.close()}};xe.prototype.close=xe.prototype.close;var Le=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect_in",!1),this.j={detections:[]},v(e=this.h=new yn,0,1,t=new Y),m(this.h,2,.5),m(this.h,3,.3)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"minDetectionConfidence"in e&&m(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&m(this.h,3,e.minSuppressionThreshold??.3),this.l(e)}D(e,t){return this.j={detections:[]},Be(this,e,t),this.j}F(e,t,r){return this.j={detections:[]},et(this,e,r,t),this.j}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect_in"),C(e,"detections");let t=new Re;We(t,r1,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect_in"),R(r,"DETECTIONS:detections"),r.o(t),Ce(e,r),this.g.attachProtoVectorListener("detections",(n,o)=>{for(let s of n)n=Wa(s),this.j.detections.push(mc(n));d(this,o)}),this.g.attachEmptyPacketListener("detections",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Le.prototype.detectForVideo=Le.prototype.F,Le.prototype.detect=Le.prototype.D,Le.prototype.setOptions=Le.prototype.o,Le.createFromModelPath=async function(e,t){return w(Le,e,{baseOptions:{modelAssetPath:t}})},Le.createFromModelBuffer=function(e,t){return w(Le,e,{baseOptions:{modelAssetBuffer:t}})},Le.createFromOptions=function(e,t){return w(Le,e,t)};var ss=Ye([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]),is=Ye([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]),as=Ye([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),Ac=Ye([474,475],[475,476],[476,477],[477,474]),cs=Ye([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=Ye([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),wc=Ye([469,470],[470,471],[471,472],[472,469]),hs=Ye([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]),Rc=[...ss,...is,...as,...cs,...us,...hs],Sc=Ye([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 vi(e){e.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var J=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,v(e=this.h=new Ja,0,1,t=new Y),this.v=new qa,v(this.h,0,3,this.v),this.s=new yn,v(this.h,0,2,this.s),Ze(this.s,4,1),m(this.s,2,.5),m(this.v,2,.5),m(this.h,4,.5)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"numFaces"in e&&Ze(this.s,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&m(this.s,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&m(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&m(this.v,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.l(e)}D(e,t){return vi(this),Be(this,e,t),this.j}F(e,t,r){return vi(this),et(this,e,r,t),this.j}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect"),C(e,"face_landmarks");let t=new Re;We(t,o1,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect"),R(r,"NORM_LANDMARKS:face_landmarks"),r.o(t),Ce(e,r),this.g.attachProtoVectorListener("face_landmarks",(n,o)=>{for(let s of n)n=wr(s),this.j.faceLandmarks.push(En(n));d(this,o)}),this.g.attachEmptyPacketListener("face_landmarks",n=>{d(this,n)}),this.outputFaceBlendshapes&&(C(e,"blendshapes"),R(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(n,o)=>{if(this.outputFaceBlendshapes)for(let s of n)n=gn(s),this.j.faceBlendshapes.push(ts(n.g()??[]));d(this,o)}),this.g.attachEmptyPacketListener("blendshapes",n=>{d(this,n)})),this.outputFacialTransformationMatrixes&&(C(e,"face_geometry"),R(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(n,o)=>{if(this.outputFacialTransformationMatrixes)for(let s of n)(n=k(n1(s),$u,2))&&this.j.facialTransformationMatrixes.push({rows:Ve(Me(n,1),0)??0,columns:Ve(Me(n,2),0)??0,data:kt(n,3,Tt,St()).slice()??[]});d(this,o)}),this.g.attachEmptyPacketListener("face_geometry",n=>{d(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};J.prototype.detectForVideo=J.prototype.F,J.prototype.detect=J.prototype.D,J.prototype.setOptions=J.prototype.o,J.createFromModelPath=function(e,t){return w(J,e,{baseOptions:{modelAssetPath:t}})},J.createFromModelBuffer=function(e,t){return w(J,e,{baseOptions:{modelAssetBuffer:t}})},J.createFromOptions=function(e,t){return w(J,e,t)},J.FACE_LANDMARKS_LIPS=ss,J.FACE_LANDMARKS_LEFT_EYE=is,J.FACE_LANDMARKS_LEFT_EYEBROW=as,J.FACE_LANDMARKS_LEFT_IRIS=Ac,J.FACE_LANDMARKS_RIGHT_EYE=cs,J.FACE_LANDMARKS_RIGHT_EYEBROW=us,J.FACE_LANDMARKS_RIGHT_IRIS=wc,J.FACE_LANDMARKS_FACE_OVAL=hs,J.FACE_LANDMARKS_CONTOURS=Rc,J.FACE_LANDMARKS_TESSELATION=Sc;var ze=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!0),v(e=this.j=new Za,0,1,t=new Y)}get baseOptions(){return k(this.j,Y,1)}set baseOptions(e){v(this.j,0,1,e)}o(e){return super.l(e)}Oa(e,t,r){let n=typeof t!="function"?t:{};if(this.h=typeof t=="function"?t:r,Be(this,e,n??{}),!this.h)return this.s}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect"),C(e,"stylized_image");let t=new Re;We(t,s1,this.j);let r=new me;ke(r,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect"),R(r,"STYLIZED_IMAGE:stylized_image"),r.o(t),Ce(e,r),this.g.V("stylized_image",(n,o)=>{var s=!this.h,i=n.data,a=n.width;let c=a*(n=n.height);if(i instanceof Uint8Array)if(i.length===3*c){let h=new Uint8ClampedArray(4*c);for(let l=0;l<c;++l)h[4*l]=i[3*l],h[4*l+1]=i[3*l+1],h[4*l+2]=i[3*l+2],h[4*l+3]=255;i=new ImageData(h,a,n)}else{if(i.length!==4*c)throw Error("Unsupported channel count: "+i.length/c);i=new ImageData(new Uint8ClampedArray(i.buffer,i.byteOffset,i.length),a,n)}else if(!(i instanceof WebGLTexture))throw Error(`Unsupported format: ${i.constructor.name}`);a=new he([i],!1,!1,this.g.i.canvas,this.P,a,n),this.s=s=s?a.clone():a,this.h&&this.h(s),d(this,o)}),this.g.attachEmptyPacketListener("stylized_image",n=>{this.s=null,this.h&&this.h(null),d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ze.prototype.stylize=ze.prototype.Oa,ze.prototype.setOptions=ze.prototype.o,ze.createFromModelPath=function(e,t){return w(ze,e,{baseOptions:{modelAssetPath:t}})},ze.createFromModelBuffer=function(e,t){return w(ze,e,{baseOptions:{modelAssetBuffer:t}})},ze.createFromOptions=function(e,t){return w(ze,e,t)};var ls=Ye([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 Ti(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function bi(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 Ai(e,t=!0){let r=[];for(let o of e){var n=gn(o);e=[];for(let s of n.g())n=t&&Me(s,1)!=null?Ve(Me(s,1),0):-1,e.push({score:ee(s,2)??0,index:n,categoryName:Qe(s,3)??"",displayName:Qe(s,4)??""});r.push(e)}return r}var ve=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],v(e=this.j=new rc,0,1,t=new Y),this.s=new Jo,v(this.j,0,2,this.s),this.C=new qo,v(this.s,0,3,this.C),this.v=new tc,v(this.s,0,2,this.v),this.h=new i1,v(this.j,0,3,this.h),m(this.v,2,.5),m(this.s,4,.5),m(this.C,2,.5)}get baseOptions(){return k(this.j,Y,1)}set baseOptions(e){v(this.j,0,1,e)}o(e){if(Ze(this.v,3,e.numHands??1),"minHandDetectionConfidence"in e&&m(this.v,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&m(this.s,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&m(this.C,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var t=new Ot,r=t,n=eo(e.cannedGesturesClassifierOptions,k(this.h,Ot,3)?.h());v(r,0,2,n),v(this.h,0,3,t)}else e.cannedGesturesClassifierOptions===void 0&&k(this.h,Ot,3)?.g();return e.customGesturesClassifierOptions?(v(r=t=new Ot,0,2,n=eo(e.customGesturesClassifierOptions,k(this.h,Ot,4)?.h())),v(this.h,0,4,t)):e.customGesturesClassifierOptions===void 0&&k(this.h,Ot,4)?.g(),this.l(e)}Ja(e,t){return Ti(this),Be(this,e,t),bi(this)}Ka(e,t,r){return Ti(this),et(this,e,r,t),bi(this)}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect"),C(e,"hand_gestures"),C(e,"hand_landmarks"),C(e,"world_hand_landmarks"),C(e,"handedness");let t=new Re;We(t,a1,this.j);let r=new me;ke(r,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect"),R(r,"HAND_GESTURES:hand_gestures"),R(r,"LANDMARKS:hand_landmarks"),R(r,"WORLD_LANDMARKS:world_hand_landmarks"),R(r,"HANDEDNESS:handedness"),r.o(t),Ce(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,o)=>{for(let s of n){n=wr(s);let i=[];for(let a of it(n,Ha,1))i.push({x:ee(a,1)??0,y:ee(a,2)??0,z:ee(a,3)??0,visibility:ee(a,4)??0});this.landmarks.push(i)}d(this,o)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,o)=>{for(let s of n){n=Dt(s);let i=[];for(let a of it(n,Xa,1))i.push({x:ee(a,1)??0,y:ee(a,2)??0,z:ee(a,3)??0,visibility:ee(a,4)??0});this.worldLandmarks.push(i)}d(this,o)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("hand_gestures",(n,o)=>{this.gestures.push(...Ai(n,!1)),d(this,o)}),this.g.attachEmptyPacketListener("hand_gestures",n=>{d(this,n)}),this.g.attachProtoVectorListener("handedness",(n,o)=>{this.handedness.push(...Ai(n)),d(this,o)}),this.g.attachEmptyPacketListener("handedness",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function wi(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}ve.prototype.recognizeForVideo=ve.prototype.Ka,ve.prototype.recognize=ve.prototype.Ja,ve.prototype.setOptions=ve.prototype.o,ve.createFromModelPath=function(e,t){return w(ve,e,{baseOptions:{modelAssetPath:t}})},ve.createFromModelBuffer=function(e,t){return w(ve,e,{baseOptions:{modelAssetBuffer:t}})},ve.createFromOptions=function(e,t){return w(ve,e,t)},ve.HAND_CONNECTIONS=ls;var Te=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],v(e=this.h=new Jo,0,1,t=new Y),this.s=new qo,v(this.h,0,3,this.s),this.j=new tc,v(this.h,0,2,this.j),Ze(this.j,3,1),m(this.j,2,.5),m(this.s,2,.5),m(this.h,4,.5)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"numHands"in e&&Ze(this.j,3,e.numHands??1),"minHandDetectionConfidence"in e&&m(this.j,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&m(this.h,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&m(this.s,2,e.minHandPresenceConfidence??.5),this.l(e)}D(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Be(this,e,t),wi(this)}F(e,t,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],et(this,e,r,t),wi(this)}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect"),C(e,"hand_landmarks"),C(e,"world_hand_landmarks"),C(e,"handedness");let t=new Re;We(t,c1,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect"),R(r,"LANDMARKS:hand_landmarks"),R(r,"WORLD_LANDMARKS:world_hand_landmarks"),R(r,"HANDEDNESS:handedness"),r.o(t),Ce(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,o)=>{for(let s of n)n=wr(s),this.landmarks.push(En(n));d(this,o)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,o)=>{for(let s of n)n=Dt(s),this.worldLandmarks.push(mr(n));d(this,o)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{d(this,n)}),this.g.attachProtoVectorListener("handedness",(n,o)=>{var s=this.handedness,i=s.push;let a=[];for(let c of n){n=gn(c);let h=[];for(let l of n.g())h.push({score:ee(l,2)??0,index:Ve(Me(l,1),0)??-1,categoryName:Qe(l,3)??"",displayName:Qe(l,4)??""});a.push(h)}i.call(s,...a),d(this,o)}),this.g.attachEmptyPacketListener("handedness",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Te.prototype.detectForVideo=Te.prototype.F,Te.prototype.detect=Te.prototype.D,Te.prototype.setOptions=Te.prototype.o,Te.createFromModelPath=function(e,t){return w(Te,e,{baseOptions:{modelAssetPath:t}})},Te.createFromModelBuffer=function(e,t){return w(Te,e,{baseOptions:{modelAssetBuffer:t}})},Te.createFromOptions=function(e,t){return w(Te,e,t)},Te.HAND_CONNECTIONS=ls;var kc=Ye([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 Ri(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function Si(e){try{if(!e.C)return e.h;e.C(e.h)}finally{_n(e)}}function Or(e,t){e=wr(e),t.push(En(e))}var H=class extends xe{constructor(e,t){super(new Pe(e,t),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,v(e=this.j=new ac,0,1,t=new Y),this.K=new qo,v(this.j,0,2,this.K),this.aa=new u1,v(this.j,0,3,this.aa),this.s=new yn,v(this.j,0,4,this.s),this.I=new qa,v(this.j,0,5,this.I),this.v=new sc,v(this.j,0,6,this.v),this.L=new ic,v(this.j,0,7,this.L),m(this.s,2,.5),m(this.s,3,.3),m(this.I,2,.5),m(this.v,2,.5),m(this.v,3,.3),m(this.L,2,.5),m(this.K,2,.5)}get baseOptions(){return k(this.j,Y,1)}set baseOptions(e){v(this.j,0,1,e)}o(e){return"minFaceDetectionConfidence"in e&&m(this.s,2,e.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in e&&m(this.s,3,e.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in e&&m(this.I,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"minPoseDetectionConfidence"in e&&m(this.v,2,e.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in e&&m(this.v,3,e.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in e&&m(this.L,2,e.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in e&&(this.outputPoseSegmentationMasks=!!e.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in e&&m(this.K,2,e.minHandLandmarksConfidence??.5),this.l(e)}D(e,t,r){let n=typeof t!="function"?t:{};return this.C=typeof t=="function"?t:r,Ri(this),Be(this,e,n),Si(this)}F(e,t,r,n){let o=typeof r!="function"?r:{};return this.C=typeof r=="function"?r:n,Ri(this),et(this,e,o,t),Si(this)}m(){var e=new _e;W(e,"input_frames_image"),C(e,"pose_landmarks"),C(e,"pose_world_landmarks"),C(e,"face_landmarks"),C(e,"left_hand_landmarks"),C(e,"left_hand_world_landmarks"),C(e,"right_hand_landmarks"),C(e,"right_hand_world_landmarks");let t=new Re,r=new Ys;Kn(r,1,qt("type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),""),function(o,s){if(s!=null)if(Array.isArray(s))V(o,2,nn(s,Ao,void 0,void 0,!1));else{if(!(typeof s=="string"||s instanceof ot||vr(s)))throw Error("invalid value in Any.value field: "+s+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");Kn(o,2,mo(s,!1),It())}}(r,this.j.g());let n=new me;ke(n,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),Hr(n,8,Ys,r),j(n,"IMAGE:input_frames_image"),R(n,"POSE_LANDMARKS:pose_landmarks"),R(n,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),R(n,"FACE_LANDMARKS:face_landmarks"),R(n,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),R(n,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),R(n,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),R(n,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),n.o(t),Ce(e,n),xn(this,e),this.g.attachProtoListener("pose_landmarks",(o,s)=>{Or(o,this.h.poseLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("pose_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("pose_world_landmarks",(o,s)=>{var i=this.h.poseWorldLandmarks;o=Dt(o),i.push(mr(o)),d(this,s)}),this.g.attachEmptyPacketListener("pose_world_landmarks",o=>{d(this,o)}),this.outputPoseSegmentationMasks&&(R(n,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),Wt(this,"pose_segmentation_mask"),this.g.V("pose_segmentation_mask",(o,s)=>{this.h.poseSegmentationMasks=[Yt(this,o,!0,!this.C)],d(this,s)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",o=>{this.h.poseSegmentationMasks=[],d(this,o)})),this.g.attachProtoListener("face_landmarks",(o,s)=>{Or(o,this.h.faceLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("face_landmarks",o=>{d(this,o)}),this.outputFaceBlendshapes&&(C(e,"extra_blendshapes"),R(n,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(o,s)=>{var i=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(o=gn(o),i.push(ts(o.g()??[]))),d(this,s)}),this.g.attachEmptyPacketListener("extra_blendshapes",o=>{d(this,o)})),this.g.attachProtoListener("left_hand_landmarks",(o,s)=>{Or(o,this.h.leftHandLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("left_hand_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("left_hand_world_landmarks",(o,s)=>{var i=this.h.leftHandWorldLandmarks;o=Dt(o),i.push(mr(o)),d(this,s)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("right_hand_landmarks",(o,s)=>{Or(o,this.h.rightHandLandmarks),d(this,s)}),this.g.attachEmptyPacketListener("right_hand_landmarks",o=>{d(this,o)}),this.g.attachProtoListener("right_hand_world_landmarks",(o,s)=>{var i=this.h.rightHandWorldLandmarks;o=Dt(o),i.push(mr(o)),d(this,s)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",o=>{d(this,o)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};H.prototype.detectForVideo=H.prototype.F,H.prototype.detect=H.prototype.D,H.prototype.setOptions=H.prototype.o,H.createFromModelPath=function(e,t){return w(H,e,{baseOptions:{modelAssetPath:t}})},H.createFromModelBuffer=function(e,t){return w(H,e,{baseOptions:{modelAssetBuffer:t}})},H.createFromOptions=function(e,t){return w(H,e,t)},H.HAND_CONNECTIONS=ls,H.POSE_CONNECTIONS=kc,H.FACE_LANDMARKS_LIPS=ss,H.FACE_LANDMARKS_LEFT_EYE=is,H.FACE_LANDMARKS_LEFT_EYEBROW=as,H.FACE_LANDMARKS_LEFT_IRIS=Ac,H.FACE_LANDMARKS_RIGHT_EYE=cs,H.FACE_LANDMARKS_RIGHT_EYEBROW=us,H.FACE_LANDMARKS_RIGHT_IRIS=wc,H.FACE_LANDMARKS_FACE_OVAL=hs,H.FACE_LANDMARKS_CONTOURS=Rc,H.FACE_LANDMARKS_TESSELATION=Sc;var Ie=class extends xe{constructor(e,t){super(new Pe(e,t),"input_image","norm_rect",!0),this.j={classifications:[]},v(e=this.h=new cc,0,1,t=new Y)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return v(this.h,0,2,eo(e,k(this.h,Ko,2))),this.l(e)}ta(e,t){return this.j={classifications:[]},Be(this,e,t),this.j}ua(e,t,r){return this.j={classifications:[]},et(this,e,r,t),this.j}m(){var e=new _e;W(e,"input_image"),W(e,"norm_rect"),C(e,"classifications");let t=new Re;We(t,h1,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),j(r,"IMAGE:input_image"),j(r,"NORM_RECT:norm_rect"),R(r,"CLASSIFICATIONS:classifications"),r.o(t),Ce(e,r),this.g.attachProtoListener("classifications",(n,o)=>{this.j=function(s){let i={classifications:it(s,qu,1).map(a=>ts(k(a,Va,4)?.g()??[],Ve(Me(a,2),0),Qe(a,3)))};return Wr(yt(s,2))!=null&&(i.timestampMs=Ve(Wr(yt(s,2)),0)),i}(Ju(n)),d(this,o)}),this.g.attachEmptyPacketListener("classifications",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ie.prototype.classifyForVideo=Ie.prototype.ua,Ie.prototype.classify=Ie.prototype.ta,Ie.prototype.setOptions=Ie.prototype.o,Ie.createFromModelPath=function(e,t){return w(Ie,e,{baseOptions:{modelAssetPath:t}})},Ie.createFromModelBuffer=function(e,t){return w(Ie,e,{baseOptions:{modelAssetBuffer:t}})},Ie.createFromOptions=function(e,t){return w(Ie,e,t)};var be=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!0),this.h=new uc,this.embeddings={embeddings:[]},v(e=this.h,0,1,t=new Y)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){var t=this.h,r=k(this.h,ti,2);return r=r?r.clone():new ti,e.l2Normalize!==void 0?Er(r,1,e.l2Normalize):"l2Normalize"in e&&V(r,1),e.quantize!==void 0?Er(r,2,e.quantize):"quantize"in e&&V(r,2),v(t,0,2,r),this.l(e)}Aa(e,t){return Be(this,e,t),this.embeddings}Ba(e,t,r){return et(this,e,r,t),this.embeddings}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect"),C(e,"embeddings_out");let t=new Re;We(t,l1,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect"),R(r,"EMBEDDINGS:embeddings_out"),r.o(t),Ce(e,r),this.g.attachProtoListener("embeddings_out",(n,o)=>{n=e1(n),this.embeddings=function(s){return{embeddings:it(s,Zu,1).map(i=>{let a={headIndex:Ve(Me(i,3),0)??-1,headName:Qe(i,4)??""};if(ia(i,ei,On(i,1))!==void 0)i=kt(i=k(i,ei,On(i,1)),1,Tt,St()),a.floatEmbedding=i.slice();else{let c=new Uint8Array(0);a.quantizedEmbedding=k(i,Qu,On(i,2))?.pa()?.h()??c}return a}),timestampMs:Ve(Wr(yt(s,2)),0)}}(n),d(this,o)}),this.g.attachEmptyPacketListener("embeddings_out",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};be.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=ii(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=ii(si(e.quantizedEmbedding),si(t.quantizedEmbedding))}return e},be.prototype.embedForVideo=be.prototype.Ba,be.prototype.embed=be.prototype.Aa,be.prototype.setOptions=be.prototype.o,be.createFromModelPath=function(e,t){return w(be,e,{baseOptions:{modelAssetPath:t}})},be.createFromModelBuffer=function(e,t){return w(be,e,{baseOptions:{modelAssetBuffer:t}})},be.createFromOptions=function(e,t){return w(be,e,t)};var oo=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){this.confidenceMasks?.forEach(e=>{e.close()}),this.categoryMask?.close()}};function ki(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function Ci(e){try{let t=new oo(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.j)return t;e.j(t)}finally{_n(e)}}oo.prototype.close=oo.prototype.close;var le=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.s=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new es,this.v=new hc,v(this.h,0,3,this.v),v(e=this.h,0,1,t=new Y)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?V(this.h,2,qt(e.displayNamesLocale)):"displayNamesLocale"in e&&V(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}J(){(function(e){let t=it(e.ea(),me,1).filter(r=>Qe(r,1).includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(e.s=[],t.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");t.length===1&&(k(t[0],Re,7)?.l()?.g()??new Map).forEach((r,n)=>{e.s[Number(n)]=Qe(r,1)})})(this)}segment(e,t,r){let n=typeof t!="function"?t:{};return this.j=typeof t=="function"?t:r,ki(this),Be(this,e,n),Ci(this)}Ma(e,t,r,n){let o=typeof r!="function"?r:{};return this.j=typeof r=="function"?r:n,ki(this),et(this,e,o,t),Ci(this)}Ea(){return this.s}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect");let t=new Re;We(t,fc,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect"),r.o(t),Ce(e,r),xn(this,e),this.outputConfidenceMasks&&(C(e,"confidence_masks"),R(r,"CONFIDENCE_MASKS:confidence_masks"),Wt(this,"confidence_masks"),this.g.da("confidence_masks",(n,o)=>{this.confidenceMasks=n.map(s=>Yt(this,s,!0,!this.j)),d(this,o)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],d(this,n)})),this.outputCategoryMask&&(C(e,"category_mask"),R(r,"CATEGORY_MASK:category_mask"),Wt(this,"category_mask"),this.g.V("category_mask",(n,o)=>{this.categoryMask=Yt(this,n,!1,!this.j),d(this,o)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,d(this,n)})),C(e,"quality_scores"),R(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,o)=>{this.qualityScores=n,d(this,o)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};le.prototype.getLabels=le.prototype.Ea,le.prototype.segmentForVideo=le.prototype.Ma,le.prototype.segment=le.prototype.segment,le.prototype.setOptions=le.prototype.o,le.createFromModelPath=function(e,t){return w(le,e,{baseOptions:{modelAssetPath:t}})},le.createFromModelBuffer=function(e,t){return w(le,e,{baseOptions:{modelAssetBuffer:t}})},le.createFromOptions=function(e,t){return w(le,e,t)};var so=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){this.confidenceMasks?.forEach(e=>{e.close()}),this.categoryMask?.close()}};so.prototype.close=so.prototype.close;var v1=class extends p{constructor(e){super(e)}},Mt=[0,Z,-2],qr=[0,rt,-3,$,rt,-1],Li=[0,qr],Ii=[0,qr,Z,-1],Gn=class extends p{constructor(e){super(e)}},Fi=[0,rt,-1,$],T1=class extends p{constructor(){super()}},Oi=class extends p{constructor(e){super(e)}},io=[1,2,3,4,5,6,7,8,9,10,14,15],Cc=class extends p{constructor(){super()}};Cc.prototype.g=mn([0,ae,[0,io,P,qr,P,[0,qr,Mt],P,Li,P,[0,Li,Mt],P,Fi,P,[0,rt,-3,$,je],P,[0,rt,-3,$],P,[0,U,rt,-2,$,Z,$,-1,2,rt,Mt],P,Ii,P,[0,Ii,Mt],rt,Mt,U,P,[0,rt,-3,$,Mt,-1],P,[0,ae,Fi]],U,[0,U,Z,-1,$]]);var qe=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new es,this.s=new hc,v(this.h,0,3,this.s),v(e=this.h,0,1,t=new Y)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}segment(e,t,r,n){let o=typeof r!="function"?r:{};this.j=typeof r=="function"?r:n,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.B+1,n=new Cc;let s=new Oi;var i=new v1;if(Ze(i,1,255),v(s,0,12,i),t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var a=new Gn;Er(a,3,!0),m(a,1,t.keypoint.x),m(a,2,t.keypoint.y),dr(s,5,io,a)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");for(a of(i=new T1,t.scribble))Er(t=new Gn,3,!0),m(t,1,a.x),m(t,2,a.y),Hr(i,1,Gn,t);dr(s,15,io,i)}Hr(n,1,Oi,s),this.g.addProtoToStream(n.g(),"drishti.RenderData","roi_in",r),Be(this,e,o);e:{try{let h=new so(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var c=h;break e}this.j(h)}finally{_n(this)}c=void 0}return c}m(){var e=new _e;W(e,"image_in"),W(e,"roi_in"),W(e,"norm_rect_in");let t=new Re;We(t,fc,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),j(r,"IMAGE:image_in"),j(r,"ROI:roi_in"),j(r,"NORM_RECT:norm_rect_in"),r.o(t),Ce(e,r),xn(this,e),this.outputConfidenceMasks&&(C(e,"confidence_masks"),R(r,"CONFIDENCE_MASKS:confidence_masks"),Wt(this,"confidence_masks"),this.g.da("confidence_masks",(n,o)=>{this.confidenceMasks=n.map(s=>Yt(this,s,!0,!this.j)),d(this,o)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],d(this,n)})),this.outputCategoryMask&&(C(e,"category_mask"),R(r,"CATEGORY_MASK:category_mask"),Wt(this,"category_mask"),this.g.V("category_mask",(n,o)=>{this.categoryMask=Yt(this,n,!1,!this.j),d(this,o)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,d(this,n)})),C(e,"quality_scores"),R(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,o)=>{this.qualityScores=n,d(this,o)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};qe.prototype.segment=qe.prototype.segment,qe.prototype.setOptions=qe.prototype.o,qe.createFromModelPath=function(e,t){return w(qe,e,{baseOptions:{modelAssetPath:t}})},qe.createFromModelBuffer=function(e,t){return w(qe,e,{baseOptions:{modelAssetBuffer:t}})},qe.createFromOptions=function(e,t){return w(qe,e,t)};var Fe=class extends xe{constructor(e,t){super(new Pe(e,t),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},v(e=this.h=new dc,0,1,t=new Y)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?V(this.h,2,qt(e.displayNamesLocale)):"displayNamesLocale"in e&&V(this.h,2),e.maxResults!==void 0?Ze(this.h,3,e.maxResults):"maxResults"in e&&V(this.h,3),e.scoreThreshold!==void 0?m(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&V(this.h,4),e.categoryAllowlist!==void 0?Yr(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&V(this.h,5),e.categoryDenylist!==void 0?Yr(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&V(this.h,6),this.l(e)}D(e,t){return this.j={detections:[]},Be(this,e,t),this.j}F(e,t,r){return this.j={detections:[]},et(this,e,r,t),this.j}m(){var e=new _e;W(e,"input_frame_gpu"),W(e,"norm_rect"),C(e,"detections");let t=new Re;We(t,d1,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.ObjectDetectorGraph"),j(r,"IMAGE:input_frame_gpu"),j(r,"NORM_RECT:norm_rect"),R(r,"DETECTIONS:detections"),r.o(t),Ce(e,r),this.g.attachProtoVectorListener("detections",(n,o)=>{for(let s of n)n=Wa(s),this.j.detections.push(mc(n));d(this,o)}),this.g.attachEmptyPacketListener("detections",n=>{d(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Fe.prototype.detectForVideo=Fe.prototype.F,Fe.prototype.detect=Fe.prototype.D,Fe.prototype.setOptions=Fe.prototype.o,Fe.createFromModelPath=async function(e,t){return w(Fe,e,{baseOptions:{modelAssetPath:t}})},Fe.createFromModelBuffer=function(e,t){return w(Fe,e,{baseOptions:{modelAssetBuffer:t}})},Fe.createFromOptions=function(e,t){return w(Fe,e,t)};var ao=class{constructor(e,t,r){this.landmarks=e,this.worldLandmarks=t,this.segmentationMasks=r}close(){this.segmentationMasks?.forEach(e=>{e.close()})}};function Mi(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}function Ui(e){try{let t=new ao(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.s)return t;e.s(t)}finally{_n(e)}}ao.prototype.close=ao.prototype.close;var Ae=class extends xe{constructor(e,t){super(new Pe(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,v(e=this.h=new pc,0,1,t=new Y),this.v=new ic,v(this.h,0,3,this.v),this.j=new sc,v(this.h,0,2,this.j),Ze(this.j,4,1),m(this.j,2,.5),m(this.v,2,.5),m(this.h,4,.5)}get baseOptions(){return k(this.h,Y,1)}set baseOptions(e){v(this.h,0,1,e)}o(e){return"numPoses"in e&&Ze(this.j,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&m(this.j,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&m(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&m(this.v,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.l(e)}D(e,t,r){let n=typeof t!="function"?t:{};return this.s=typeof t=="function"?t:r,Mi(this),Be(this,e,n),Ui(this)}F(e,t,r,n){let o=typeof r!="function"?r:{};return this.s=typeof r=="function"?r:n,Mi(this),et(this,e,o,t),Ui(this)}m(){var e=new _e;W(e,"image_in"),W(e,"norm_rect"),C(e,"normalized_landmarks"),C(e,"world_landmarks"),C(e,"segmentation_masks");let t=new Re;We(t,p1,this.h);let r=new me;ke(r,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),j(r,"IMAGE:image_in"),j(r,"NORM_RECT:norm_rect"),R(r,"NORM_LANDMARKS:normalized_landmarks"),R(r,"WORLD_LANDMARKS:world_landmarks"),r.o(t),Ce(e,r),xn(this,e),this.g.attachProtoVectorListener("normalized_landmarks",(n,o)=>{this.landmarks=[];for(let s of n)n=wr(s),this.landmarks.push(En(n));d(this,o)}),this.g.attachEmptyPacketListener("normalized_landmarks",n=>{this.landmarks=[],d(this,n)}),this.g.attachProtoVectorListener("world_landmarks",(n,o)=>{this.worldLandmarks=[];for(let s of n)n=Dt(s),this.worldLandmarks.push(mr(n));d(this,o)}),this.g.attachEmptyPacketListener("world_landmarks",n=>{this.worldLandmarks=[],d(this,n)}),this.outputSegmentationMasks&&(R(r,"SEGMENTATION_MASK:segmentation_masks"),Wt(this,"segmentation_masks"),this.g.da("segmentation_masks",(n,o)=>{this.segmentationMasks=n.map(s=>Yt(this,s,!0,!this.s)),d(this,o)}),this.g.attachEmptyPacketListener("segmentation_masks",n=>{this.segmentationMasks=[],d(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ae.prototype.detectForVideo=Ae.prototype.F,Ae.prototype.detect=Ae.prototype.D,Ae.prototype.setOptions=Ae.prototype.o,Ae.createFromModelPath=function(e,t){return w(Ae,e,{baseOptions:{modelAssetPath:t}})},Ae.createFromModelBuffer=function(e,t){return w(Ae,e,{baseOptions:{modelAssetBuffer:t}})},Ae.createFromOptions=function(e,t){return w(Ae,e,t)},Ae.POSE_CONNECTIONS=kc;var S=(e,t="AssertError")=>{if(!e)throw new Error(t,{cause:e});return e};var fs=e=>e;var ds=(e,...t)=>{let r=t.reduce((n,o)=>s=>o(n(s)),fs);return(...n)=>r(e(...n))};var A1=e=>`(${e})`;var Lc=e=>A1(`?:${e}`),w1=e=>`${Lc(e)}?`,R1=e=>`${Lc(e)}*`;var S1=e=>`^${e}`,k1=e=>`${e}$`,C1=e=>typeof e=="function",L1=e=>t=>C1(t)?t(e):t;var I1=()=>e=>e,bn=(e,t=I1)=>r=>n=>ds(L1(n),t(n),e)(r);var a3=bn(e=>w1(e)),c3=bn(e=>R1(e));var u3=bn(e=>S1(e)),h3=bn(e=>k1(e));var K={Closed:"closed",Closing:"closing",Destroyed:"destroyed",Destroying:"destroying",Error:"Error",Idle:"idle",New:"new",Opened:"opened",Opening:"opening",Processing:"processing",Updated:"updated",Updating:"updating"},Ic={None:"none",Blur:"blur",Overlay:"overlay"},F={ContextCreationError:"ContextCreationError",ContextLost:"ContextLost",ContextRestored:"ContextRestored",Error:"Error",ProcessorRestarted:"ProcessorRestarted",SamplingError:"SamplingError"};var F1=e=>!!(typeof e=="string"&&Object.values(F).includes(e)),An=e=>F1(e)?e:F.Error,wn=e=>e instanceof Error?e.message:String(e),Fc=e=>{let t=new Set(Object.keys(e));return r=>{for(let n in r)t.has(n)&&typeof e[n]==typeof r[n]&&(e[n]=r[n])}},Oc=e=>{let t=new Map(e),r=new Set,n=async i=>{let c=await(await fetch(i)).blob();return await createImageBitmap(c)},o=async i=>{let a=t.get(i);if(!a){if(r.has(i))return null;r.add(i);let c=await n(i);return t.set(i,c),r.delete(i),c}return a},s=i=>(t.get(i)?.close(),t.delete(i));return{tryFetchingImage:o,setImage:(i,a)=>{t.has(i)&&s(i),t.set(i,a)},getImage:i=>t.get(i)??null,removeImage:s,clear:()=>{t.forEach(i=>i.close()),t.clear()}}},Mc=(e,t)=>r=>Math.min(Math.max(r,e),t);var Uc=(e,t,r,n)=>{if(!e||!t||!r||!n||e*n===r*t)return{sx:0,sy:0,sw:e,sh:t,dx:0,dy:0,dw:r,dh:n};let o=e/t,s=r/n;if(o>s){let h=Math.ceil(e*s)/o,l=Math.abs(e-h);return{sx:Math.ceil(l/2),sy:0,sw:h,sh:t,dx:0,dy:0,dw:r,dh:n}}let i=Math.ceil(t*o)/s,a=Math.abs(t-i);return{sx:0,sy:Math.ceil(a/2),sw:e,sh:i,dx:0,dy:0,dw:r,dh:n}};var O1={drawImageDataCanvas:"drawImageDataCanvas",maskCanvas:"maskCanvas",blurredMaskCanvas:"blurredMaskCanvas",blurredCanvas:"blurredCanvas",downScaledCanvas:"downScaledCanvas",backgroundImageCanvas:"backgroundImageCanvas",inputCanvas:"inputCanvas"},At=(e,t)=>{let r=e.getContext("2d",t);if(!r)throw new Error("Cannot get CanvasRenderingContext2D");return r},M1=e=>{let t=At(e);t.scale(-1,1),t.translate(-e.width,0)},ps=e=>"VideoFrame"in globalThis&&e instanceof VideoFrame?{height:e.displayHeight,width:e.displayWidth}:"offsetHeight"in e&&typeof e.offsetHeight=="number"&&e.offsetHeight!==0&&"offsetWidth"in e&&typeof e.offsetWidth=="number"&&e.offsetWidth!==0?{height:e.offsetHeight,width:e.offsetWidth}:"videoHeight"in e&&typeof e.videoHeight=="number"&&e.videoHeight!==0&&"videoWidth"in e&&typeof e.videoWidth=="number"&&e.videoWidth!==0?{height:e.videoHeight,width:e.videoWidth}:"height"in e&&e.height!==0&&"width"in e&&e.width!==0?{height:e.height,width:e.width}:{height:0,width:0},nr=(e,t)=>new OffscreenCanvas(e,t);var U1=e=>{At(e).clearRect(0,0,e.width,e.height)},Pc=(e,t)=>{let r={downScaleFactor:3},n=f=>nr(f==="downScaledCanvas"?Math.trunc(e/r.downScaleFactor):e,f==="downScaledCanvas"?Math.trunc(t/r.downScaleFactor):t),o=f=>{let _=r[f];if(!_){let T=n(f);return r[f]=T,T}return _},s=(f,_)=>{let T=o(_);return At(T).putImageData(f,0,0),T},i=(f,_,T,O,I,M,X,D,q,ne)=>{let wt=_ instanceof ImageData?s(_,"drawImageDataCanvas"):_;I===void 0||M===void 0?f.drawImage(wt,T,O):X===void 0||D===void 0||q===void 0||ne===void 0?f.drawImage(wt,T,O,I,M):f.drawImage(wt,T,O,I,M,X,D,q,ne)},a=(f,_,T=e,O=t,I={})=>{let{height:M,width:X}=ps(f),D=Uc(X,M,T,O),q=At(_,I);i(q,f,D.sx,D.sy,D.sw,D.sh,D.dx,D.dy,D.dw,D.dh)},c=(f,_)=>{let T=o(_);return a(f,T),T},h=(f,_,T)=>{f.globalCompositeOperation=T,i(f,_,0,0)},l=(f,_,T)=>{let O=At(f),I=0,M=5,X=1/(2*Math.PI*M*M),D=T<3?1:2;for(let q=-T;q<=T;q+=D)for(let ne=-T;ne<=T;ne+=D){let wt=X*Math.exp(-(ne*ne+q*q)/(2*M*M));I+=wt}for(let q=-T;q<=T;q+=D)for(let ne=-T;ne<=T;ne+=D)O.globalAlpha=X*Math.exp(-(ne*ne+q*q)/(2*M*M))/I*T,i(O,_,ne,q);O.globalAlpha=1},x=({image:f,blurAmount:_,canvas:T,preserveOldDrawing:O=!0})=>{let{height:I,width:M}=ps(f),X=At(T);if(_<=0)return i(X,f,0,0,M,I);let D=o("downScaledCanvas"),q=At(D);O||(q.clearRect(0,0,D.width,D.height),X.clearRect(0,0,M,I)),"filter"in X?(q.filter=`blur(${_}px)`,i(q,f,0,0,M,I,0,0,D.width,D.height),i(X,D,0,0,M,I)):l(T,f,_)},g=({image:f,blurAmount:_,offscreenCanvasName:T,preserveOldDrawing:O})=>{let I=o(T);return U1(I),_===0?a(f,I):x({image:f,blurAmount:_,canvas:I,preserveOldDrawing:O}),I},E=(f,_,T)=>{let O=Array.isArray(f)?f[0]?.canvas:f.canvas;if(!O)return o("maskCanvas");let I=g({image:O,offscreenCanvasName:"maskCanvas",blurAmount:0});return T===0?I:g({image:I,blurAmount:T,offscreenCanvasName:"blurredMaskCanvas",preserveOldDrawing:!1})},A=(f,_,T,O,I=.5,M=3,X=3,D=!1)=>{let q=g({image:T,blurAmount:M,offscreenCanvasName:"blurredCanvas"}),ne=At(f);if(Array.isArray(O)&&O.length===0)return i(ne,q,0,0);let wt=E(O,I,X);ne.save(),D&&M1(f);let{height:eu,width:tu}=ps(_);i(ne,_,0,0,tu,eu),h(ne,wt,"destination-in"),h(ne,q,"destination-over"),ne.restore()};return{evaluateInput:f=>c(f,"inputCanvas"),renderImageToCanvas:a,drawBlurEffect:(f,_,T,O=.5,I=3,M=3,X=!1)=>A(f,_,_,T,O,I,M,X),drawOverlayEffect:(f,_,T,O,I=.5,M=0,X=3,D=!1)=>A(f,_,T,O,I,M,X,D),renderImageToOffScreenCanvas:c,renderImageDataToOffScreenCanvas:s,drawAndBlurImageOnOffScreenCanvas:g,reset:()=>{Object.keys(O1).forEach(f=>{let _=f,T=r[_];T&&T instanceof OffscreenCanvas&&(r[_]=n(_))})}}};var Rn={VertexShader:WebGLRenderingContext.VERTEX_SHADER,FragmentShader:WebGLRenderingContext.FRAGMENT_SHADER},ms={[Rn.VertexShader]:"VertexShader",[Rn.FragmentShader]:"FragmentShader"},P1=e=>typeof e=="string"?e.startsWith("#version 300 es"):!1,Bc=e=>{if(!P1(e))throw new Error("Expecting GLSL ES 3.00 shader source")},B1=/ERROR:\s*\d+:(\d+)/gi;function Gc(e,t="",r=0){let n=[...t.matchAll(B1)],o=new Map(n.map((s,i)=>{if(!s[1]||s.index===void 0)return[0,t];let a=parseInt(s[1],10),c=n[i+1],h=c?c.index:t.length,l=t.substring(s.index,h);return[a-1,l]}));return e.split(`
|
|
42
|
+
`).map((s,i)=>{let a=o.get(i);return`${i+1+r}: ${s}${a?`
|
|
43
|
+
|
|
44
|
+
^^^ ${a}`:""}`}).join(`
|
|
45
|
+
`)}var Dc=(e,t,r)=>{let n=e.createShader(t);if(!n)throw new Error(`Unable to create ${ms[t]}`);if(e.shaderSource(n,r),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS)){let s=e.getShaderInfoLog(n);e.deleteShader(n);let i=`Error compiling ${ms[t]}: ${s??""}
|
|
46
|
+
${s?Gc(r,s):"no error message available"}`;throw new Error(i)}return n},D1=(e,t,r,n)=>{let o=e.createProgram();if(!o)throw new Error("Unable to create WebGL program");if(t.forEach(function(i){e.attachShader(o,i)}),r?.forEach(function(i,a){let c=n?.[a]??a;e.bindAttribLocation(o,c,i)}),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS)){let i=e.getProgramInfoLog(o);throw e.deleteProgram(o),new Error(`Error in program linking: ${i??""}
|
|
47
|
+
${t.map(a=>{let c=Gc(e.getShaderSource(a)??""),h=e.getShaderParameter(a,e.SHADER_TYPE);return`${ms[h]}:
|
|
48
|
+
${c}`}).join(`
|
|
49
|
+
`)}`)}return[o,()=>{t.forEach(i=>{e.detachShader(o,i),e.deleteShader(i)}),e.deleteProgram(o)}]},N1=(e,[t,r],n,o)=>D1(e,[Dc(e,Rn.VertexShader,t),Dc(e,Rn.FragmentShader,r)],n,o),Ke=e=>{let t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),t},Nc=(e,t,r)=>Object.keys(r).reduce((n,o)=>{let i=r[o];return i?{...n,[o]:i.startsWith("u_")?e.getUniformLocation(t,i):e.getAttribLocation(t,i)}:n},{}),De=(e,{attribs:t,uniforms:r,vertexSrc:n,fragmentSrc:o})=>{let s=e.getContext("webgl2",{premultipliedAlpha:!1,powerPreference:"high-performance"});if(!s)throw new Error("WebGL2 is not supported");s.enable(s.BLEND),s.blendFunc(s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA),Bc(n),Bc(o);let[i,a]=N1(s,[n,o]);return{gl:s,program:i,attribLocations:Nc(s,i,t),uniformLocations:Nc(s,i,r),release:a}},Vc=e=>({texture:e.getAsWebGLTexture(),width:e.width,height:e.height});var ue={projection:(e,t,r=-1)=>[2/e,0,0,0,2/t*r,0,-1,1*-r,1],translation:(e,t)=>[1,0,0,0,1,0,e,t,1],rotation:e=>{let t=Math.cos(e),r=Math.sin(e);return[t,-r,0,r,t,0,0,0,1]},scaling:(e,t)=>[e,0,0,0,t,0,0,0,1],multiply:(e,t)=>{let r=e[0],n=e[0*3+1],o=e[0*3+2],s=e[1*3+0],i=e[1*3+1],a=e[1*3+2],c=e[2*3+0],h=e[2*3+1],l=e[2*3+2],x=t[0*3+0],g=t[0*3+1],E=t[0*3+2],A=t[1*3+0],b=t[1*3+1],G=t[1*3+2],L=t[2*3+0],f=t[2*3+1],_=t[2*3+2];return[x*r+g*s+E*c,x*n+g*i+E*h,x*o+g*a+E*l,A*r+b*s+G*c,A*n+b*i+G*h,A*o+b*a+G*l,L*r+f*s+_*c,L*n+f*i+_*h,L*o+f*a+_*l]},translate:(e,t,r)=>ue.multiply(e,ue.translation(t,r)),rotate:(e,t)=>ue.multiply(e,ue.rotation(t)),scale:(e,t,r)=>ue.multiply(e,ue.scaling(t,r))};var Ne=`#version 300 es
|
|
50
50
|
// an attribute is an input (in) to a vertex shader.
|
|
51
51
|
// It will receive data from a buffer
|
|
52
52
|
in vec2 a_position;
|
|
@@ -64,7 +64,7 @@ void main() {
|
|
|
64
64
|
// pass the texCoord to the fragment shader
|
|
65
65
|
v_texCoord = a_texCoord;
|
|
66
66
|
}
|
|
67
|
-
`;var
|
|
67
|
+
`;var or=`#version 300 es
|
|
68
68
|
precision mediump float;
|
|
69
69
|
|
|
70
70
|
// Passed in from the vertex shader.
|
|
@@ -79,7 +79,7 @@ out vec4 outColor;
|
|
|
79
79
|
void main() {
|
|
80
80
|
outColor = texture(u_texture, v_texCoord);
|
|
81
81
|
}
|
|
82
|
-
`;var gs=e=>{let{gl:t,program:r,attribLocations:n,uniformLocations:o,release:s}=De(e,{attribs:{position:"a_position",texCoord:"a_texCoord"},uniforms:{matrix:"u_matrix",texture:"u_texture"},vertexSrc:Ne,fragmentSrc:
|
|
82
|
+
`;var gs=e=>{let{gl:t,program:r,attribLocations:n,uniformLocations:o,release:s}=De(e,{attribs:{position:"a_position",texCoord:"a_texCoord"},uniforms:{matrix:"u_matrix",texture:"u_texture"},vertexSrc:Ne,fragmentSrc:or}),i=t.createVertexArray();t.bindVertexArray(i);let a=t.createBuffer();t.enableVertexAttribArray(n.position),t.bindBuffer(t.ARRAY_BUFFER,a),t.vertexAttribPointer(n.position,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW);let c=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW),t.enableVertexAttribArray(n.texCoord),t.vertexAttribPointer(n.texCoord,2,t.FLOAT,!1,0,0);let h=Ke(t),l=Ke(t);t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e.width,e.height,0,t.RGBA,t.UNSIGNED_BYTE,null);let x=t.createFramebuffer();return t.bindFramebuffer(t.FRAMEBUFFER,x),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,l,0),{render:g=>{S(!t.isContextLost(),F.ContextLost),t.bindFramebuffer(t.FRAMEBUFFER,x),t.viewport(0,0,e.width,e.height),t.clearColor(0,0,0,1),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(r),t.bindVertexArray(i),t.uniform1i(o.texture,0);let E=ue.projection(1,1,1);return t.uniformMatrix3fv(o.matrix,!1,E),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,g.frame),t.generateMipmap(t.TEXTURE_2D),t.drawArrays(t.TRIANGLES,0,6),S(l),{texture:l,width:e.width,height:e.height}},release:()=>{t.deleteBuffer(a),t.deleteBuffer(c),t.deleteTexture(h),t.deleteTexture(l),t.deleteVertexArray(i),s()}}};var jc=`#version 300 es
|
|
83
83
|
precision mediump float;
|
|
84
84
|
|
|
85
85
|
// our textures
|
|
@@ -123,7 +123,7 @@ void main() {
|
|
|
123
123
|
}
|
|
124
124
|
outColor = Upsample(u_frame, v_texCoord, halfpixel);
|
|
125
125
|
}
|
|
126
|
-
`;var
|
|
126
|
+
`;var G1=Mc(1,9),ys=(e,t)=>{let{gl:r,program:n,attribLocations:o,uniformLocations:s,release:i}=De(e,{attribs:{position:"a_position",texCoord:"a_texCoord"},uniforms:{matrix:"u_matrix",downsampling:"u_downsampling",frame:"u_frame"},vertexSrc:Ne,fragmentSrc:jc}),a=r.createVertexArray();r.bindVertexArray(a);let c=r.createBuffer();r.enableVertexAttribArray(o.position),r.bindBuffer(r.ARRAY_BUFFER,c),r.vertexAttribPointer(o.position,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),r.STATIC_DRAW);let h=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,h),r.bufferData(r.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),r.STATIC_DRAW),r.enableVertexAttribArray(o.texCoord),r.vertexAttribPointer(o.texCoord,2,r.FLOAT,!1,0,0);let l=(A,b,G)=>{r.bindFramebuffer(r.FRAMEBUFFER,A),r.viewport(0,0,b,G)},x=A=>{let b=Ke(r);S(b);let G=Math.trunc(e.width/Math.pow(2,A)),L=Math.trunc(e.height/Math.pow(2,A));r.texImage2D(r.TEXTURE_2D,0,r.RGBA,G,L,0,r.RGBA,r.UNSIGNED_BYTE,null);let f=r.createFramebuffer();S(f),r.bindFramebuffer(r.FRAMEBUFFER,f);let _=r.COLOR_ATTACHMENT0;return r.framebufferTexture2D(r.FRAMEBUFFER,_,r.TEXTURE_2D,b,0),{texture:b,frameBuffer:f,width:G,height:L}},g=(A,b=0)=>{let G=Math.max(G1(b+A)-b,0);return Array.from({length:G}).map((L,f)=>x(b+f))},E=g(t+1);return{render:(A,b)=>{S(!r.isContextLost(),F.ContextLost),r.useProgram(n),r.bindVertexArray(a),r.activeTexture(r.TEXTURE0),r.uniform1i(s.frame,0),r.bindTexture(r.TEXTURE_2D,A.texture),r.uniform1i(s.downsampling,1);let G=b+1;for(G>E.length&&g(G-E.length,E.length).forEach(L=>E.push(L));G<E.length;){let L=E.pop();r.deleteTexture(L?.texture??null),r.deleteFramebuffer(L?.frameBuffer??null)}for(let L=1;L<G;L++){let{frameBuffer:f=null,texture:_=null,width:T=e.width,height:O=e.height}=E[L]??{};l(f,T,O);let I=ue.projection(1,1,1);r.uniformMatrix3fv(s.matrix,!1,I),r.drawArrays(r.TRIANGLES,0,6);let M=r.checkFramebufferStatus(r.FRAMEBUFFER),X=r.getError();if(S(X!==r.CONTEXT_LOST_WEBGL,F.ContextLost),S(!r.isContextLost(),F.ContextLost),M!==r.FRAMEBUFFER_COMPLETE||X!==r.NO_ERROR)throw new Error(F.SamplingError,{cause:`downsampling FrameBuffer Status: ${M}`});r.bindTexture(r.TEXTURE_2D,_)}r.uniform1i(s.downsampling,0);for(let L=b-1;L>=0;L--){let{frameBuffer:f=null,texture:_=null,width:T=e.width,height:O=e.height}=E[L]??{};l(f,T,O);let I=ue.projection(1,1,1);r.uniformMatrix3fv(s.matrix,!1,I),r.drawArrays(r.TRIANGLES,0,6);let M=r.checkFramebufferStatus(r.FRAMEBUFFER),X=r.getError();if(S(X!==r.CONTEXT_LOST_WEBGL,F.ContextLost),S(!r.isContextLost(),F.ContextLost),M!==r.FRAMEBUFFER_COMPLETE||X!==r.NO_ERROR)throw new Error(F.SamplingError,{cause:`Upsampling FrameBuffer Status: ${M}`});r.bindTexture(r.TEXTURE_2D,_)}return{texture:E[0]?.texture??A.texture,width:E[0]?.width??A.width,height:E[0]?.height??A.height}},release:()=>{E.forEach(({frameBuffer:A,texture:b})=>{r.deleteTexture(b),r.deleteFramebuffer(A)}),r.deleteBuffer(c),r.deleteBuffer(h),r.deleteVertexArray(a),i()}}};var Wc=`#version 300 es
|
|
127
127
|
precision mediump float;
|
|
128
128
|
|
|
129
129
|
// our textures
|
|
@@ -143,7 +143,7 @@ void main() {
|
|
|
143
143
|
|
|
144
144
|
outColor = mix(background, foreground, filteredMask);
|
|
145
145
|
}
|
|
146
|
-
`;var
|
|
146
|
+
`;var Xc=e=>{let{gl:t,program:r,attribLocations:n,uniformLocations:o,release:s}=De(e,{attribs:{position:"a_position",texCoord:"a_texCoord"},uniforms:{matrix:"u_matrix",frameBackground:"u_frame_background",frameForeground:"u_frame_foreground",mask:"u_mask"},vertexSrc:Ne,fragmentSrc:Wc});t.enable(t.BLEND);let i=t.createVertexArray();t.bindVertexArray(i);let a=t.createBuffer();t.enableVertexAttribArray(n.position),t.bindBuffer(t.ARRAY_BUFFER,a),t.vertexAttribPointer(n.position,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW);let c=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW),t.enableVertexAttribArray(n.texCoord),t.vertexAttribPointer(n.texCoord,2,t.FLOAT,!1,0,0);let h=Ke(t);t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e.width,e.height,0,t.RGBA,t.UNSIGNED_BYTE,null);let l=t.createFramebuffer();return t.bindFramebuffer(t.FRAMEBUFFER,l),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,h,0),{render:({mask:x,foreground:g,background:E})=>{S(!t.isContextLost(),F.ContextLost),t.bindFramebuffer(t.FRAMEBUFFER,l),t.viewport(0,0,e.width,e.height),t.useProgram(r),t.bindVertexArray(i),t.activeTexture(t.TEXTURE0),t.uniform1i(o.frameForeground,0),t.bindTexture(t.TEXTURE_2D,g.texture),t.activeTexture(t.TEXTURE1),t.uniform1i(o.frameBackground,1),t.bindTexture(t.TEXTURE_2D,E.texture),t.activeTexture(t.TEXTURE2),t.uniform1i(o.mask,2),t.bindTexture(t.TEXTURE_2D,x.texture);let A=ue.projection(1,1,1);return t.uniformMatrix3fv(o.matrix,!1,A),t.drawArrays(t.TRIANGLES,0,6),S(h),{texture:h,width:e.width,height:e.height}},release:()=>{t.deleteBuffer(a),t.deleteBuffer(c),t.deleteTexture(h),t.deleteFramebuffer(l),t.deleteVertexArray(i),s()}}};var Hc=e=>{let{gl:t,program:r,attribLocations:n,uniformLocations:o,release:s}=De(e,{attribs:{position:"a_position",texCoord:"a_texCoord"},uniforms:{matrix:"u_matrix",texture:"u_texture"},vertexSrc:Ne,fragmentSrc:or}),i=t.createVertexArray();t.bindVertexArray(i);let a=t.createBuffer();t.enableVertexAttribArray(n.position),t.bindBuffer(t.ARRAY_BUFFER,a),t.vertexAttribPointer(n.position,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW);let c=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW),t.enableVertexAttribArray(n.texCoord),t.vertexAttribPointer(n.texCoord,2,t.FLOAT,!1,0,0),{render:h=>{S(!t.isContextLost(),F.ContextLost),t.bindFramebuffer(t.FRAMEBUFFER,null),t.viewport(0,0,e.width,e.height),t.clearColor(0,0,0,1),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(r),t.bindVertexArray(i),t.uniform1i(o.texture,0);let l=ue.projection(1,1);t.uniformMatrix3fv(o.matrix,!1,l),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h.texture),t.drawArrays(t.TRIANGLES,0,6)},release:()=>{t.deleteBuffer(a),t.deleteBuffer(c),t.deleteVertexArray(i),s()}}};var Yc=e=>{let{gl:t,program:r,attribLocations:n,uniformLocations:o,release:s}=De(e,{attribs:{position:"a_position",texCoord:"a_texCoord"},uniforms:{matrix:"u_matrix",texture:"u_texture"},vertexSrc:Ne,fragmentSrc:or}),i=t.createVertexArray();t.bindVertexArray(i);let a=t.createBuffer();t.enableVertexAttribArray(n.position),t.bindBuffer(t.ARRAY_BUFFER,a),t.vertexAttribPointer(n.position,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW);let c=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW),t.enableVertexAttribArray(n.texCoord),t.vertexAttribPointer(n.texCoord,2,t.FLOAT,!1,0,0);let h=Ke(t);t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e.width,e.height,0,t.RGBA,t.UNSIGNED_BYTE,null);let l=t.createFramebuffer();return t.bindFramebuffer(t.FRAMEBUFFER,l),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,h,0),{render:x=>{S(!t.isContextLost(),F.ContextLost),t.bindFramebuffer(t.FRAMEBUFFER,l),t.viewport(0,0,e.width,e.height),t.clearColor(0,0,0,1),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(r),t.bindVertexArray(i),t.activeTexture(t.TEXTURE0),t.uniform1i(o.texture,0),t.bindTexture(t.TEXTURE_2D,x.texture);let g=ue.projection(1,1,1);return t.uniformMatrix3fv(o.matrix,!1,g),t.drawArrays(t.TRIANGLES,0,6),S(h),{texture:h,width:e.width,height:e.height}},release:()=>{t.deleteBuffer(a),t.deleteBuffer(c),t.deleteTexture(h),t.deleteVertexArray(i),s()}}};var Kc=`#version 300 es
|
|
147
147
|
precision mediump float;
|
|
148
148
|
|
|
149
149
|
// our textures
|
|
@@ -199,4 +199,4 @@ void main() {
|
|
|
199
199
|
|
|
200
200
|
outColor = vec4(backgroundMask, backgroundMask, backgroundMask, backgroundMask);
|
|
201
201
|
}
|
|
202
|
-
`;var
|
|
202
|
+
`;var $c=e=>{let{gl:t,program:r,attribLocations:n,uniformLocations:o,release:s}=De(e,{attribs:{position:"a_position",texCoord:"a_texCoord"},uniforms:{matrix:"u_matrix",mask:"u_mask",maskCombineRatio:"u_mask_combine_ratio",foregroundThreshold:"u_foreground_threshold",prevMask:"u_mask_prev"},vertexSrc:Ne,fragmentSrc:Kc}),i=t.createVertexArray();t.bindVertexArray(i);let a=t.createBuffer();t.enableVertexAttribArray(n.position),t.bindBuffer(t.ARRAY_BUFFER,a),t.vertexAttribPointer(n.position,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW);let c=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,0,0,1,1,1]),t.STATIC_DRAW),t.enableVertexAttribArray(n.texCoord),t.vertexAttribPointer(n.texCoord,2,t.FLOAT,!1,0,0);let h=Ke(t);t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e.width,e.height,0,t.RGBA,t.UNSIGNED_BYTE,null);let l=t.createFramebuffer();return t.bindFramebuffer(t.FRAMEBUFFER,l),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,h,0),{render:({mask:x,prevMask:g},E)=>{S(!t.isContextLost(),F.ContextLost),t.bindFramebuffer(t.FRAMEBUFFER,l),t.viewport(0,0,e.width,e.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(r),t.bindVertexArray(i),t.activeTexture(t.TEXTURE0),t.uniform1i(o.mask,0),t.bindTexture(t.TEXTURE_2D,x.texture),t.activeTexture(t.TEXTURE1),t.uniform1i(o.prevMask,1),t.bindTexture(t.TEXTURE_2D,g?.texture??x.texture);let A=ue.projection(1,1,1);return t.uniformMatrix3fv(o.matrix,!1,A),t.uniform1f(o.maskCombineRatio,E.maskCombineRatio),t.uniform1f(o.foregroundThreshold,E.foregroundThreshold),t.drawArrays(t.TRIANGLES,0,6),S(h),{texture:h,width:e.width,height:e.height}},release:()=>{t.deleteBuffer(a),t.deleteBuffer(c),t.deleteTexture(h),t.deleteFramebuffer(l),t.deleteVertexArray(i),s()}}};var zc=e=>{let t={};return new Proxy(t,{get(r,n,o){return r[n]||(r[n]=e[n]?.(t)),Reflect.get(r,n,o)}})},qc=(e=new OffscreenCanvas(768,432),t)=>{let r={videoFrameRenderer:()=>gs(e),canvasRenderer:()=>Hc(e),backgroundImageRenderer:()=>gs(e),blendRenderer:()=>Xc(e),blurRenderer:()=>ys(e,3),maskBlurRenderer:()=>ys(e,3),textureRenderer:()=>Yc(e),smoothingMaskRenderer:()=>$c(e),release:E=>()=>Object.keys(E).forEach(A=>A!=="release"&&E[A]?.release())},n=zc(r),o={canvas:e,gl:null,get videoFrameRenderer(){return n.videoFrameRenderer},get canvasRenderer(){return n.canvasRenderer},get backgroundImageRenderer(){return n.backgroundImageRenderer},get blendRenderer(){return n.blendRenderer},get blurRenderer(){return n.blurRenderer},get maskBlurRenderer(){return n.maskBlurRenderer},get textureRenderer(){return n.textureRenderer},get smoothingMaskRenderer(){return n.smoothingMaskRenderer}},s=E=>{E.preventDefault(),l(),t.contextLost(E.statusMessage)},i=E=>{t.contextRestored(E.statusMessage)},a=E=>{t.contextCreationError(E.statusMessage)},c=()=>{e.addEventListener("webglcontextlost",s),e.addEventListener("webglcontextrestored",i),e.addEventListener("webglcontextcreationerror",a),o.gl=e.getContext("webgl2",{premultipliedAlpha:!1,powerPreference:"high-performance"}),S(o.gl,F.ContextCreationError)},h=(E,A,b)=>{S(!o.gl?.isContextLost(),F.ContextLost);let G=o.smoothingMaskRenderer.render({mask:Vc(E),prevMask:o.prevMask},b),L=o.videoFrameRenderer.render(A),f=L;b.effects==="blur"&&b.backgroundBlurAmount?f=o.blurRenderer.render(L,b.backgroundBlurAmount):b?.effects==="overlay"&&b.backgroundImage&&(f=o.backgroundImageRenderer.render({frame:b.backgroundImage,timestamp:performance.now(),width:b.backgroundImage.width,height:b.backgroundImage.height}));let _=o.blendRenderer.render({mask:G,foreground:L,background:f});o.canvasRenderer.render(_),o.prevMask=o.textureRenderer.render(G)},l=()=>{n.release(),n=zc(r),o.prevMask=void 0};return{init:c,render:h,release:()=>{e.removeEventListener("webglcontextlost",s),e.removeEventListener("webglcontextrestored",i),e.removeEventListener("webglcontextcreationerror",a),l()},isContextLost:()=>!!o.gl?.isContextLost()}};var u={width:768,height:432,status:K.New,directOutput:!1,delegate:"GPU",modelAssetPath:"",renderOptions:{edgeBlurAmount:3,backgroundBlurAmount:3,foregroundThreshold:.5,maskCombineRatio:.5,effects:Ic.None,backgroundImageUrl:"",backgroundImage:null}},Jc=Fc(u.renderOptions),Ee=(e,t)=>postMessage(e,t??[]),Qc=async()=>{u.renderer?.release(),u.renderer=qc(u.processCanvas,{contextLost:e=>{if(u.status!==K.Error){u.status=K.Error;try{u.segmenter?.close()}catch(t){Ee({type:"event",data:{type:F.ContextLost,message:`Failed to close segmenter ${t}`}})}u.segmenter=void 0}Ee({type:"event",data:{type:F.ContextLost,message:e}})},contextRestored:e=>{Ee({type:"event",data:{type:F.ContextRestored,message:e}})},contextCreationError:e=>{u.status!==K.Error&&(u.status=K.Error),Ee({type:"event",data:{type:F.ContextCreationError,message:e}})}}),S(u.visionInstance),u.renderer?.init(),u.segmenter=await le.createFromOptions(u.visionInstance,{outputCategoryMask:!1,outputConfidenceMasks:!0,runningMode:"VIDEO",canvas:u.processCanvas,baseOptions:{modelAssetPath:u.modelAssetPath,delegate:u.delegate}})},Zc=async e=>{u.processCanvas=e,await Qc()},W1=async(e={})=>{try{u.status=K.Opening,e.processingWidth&&(u.width=e.processingWidth),e.processingHeight&&(u.height=e.processingHeight),u.directOutput=!!e.output,u.output=e.output??nr(u.width,u.height);let{basePath:t,imageSegmenterOptions:r={}}=e;u.modelAssetPath=r.modelAsset?.path??u.modelAssetPath,u.delegate=r.delegate??u.delegate,u.visionInstance=await ht.forVisionTasks(t),u.backgroundImages=Oc(e.backgroundImage&&[[e.backgroundImage.key,e.backgroundImage.image]]),await Zc(r.canvas??nr(u.width,u.height)),u.renderUtils=Pc(u.width,u.height),u.status=K.Opened,Ee({type:"opened"})}catch(t){u.status=K.Error;let r=wn(t);Ee({type:"event",data:{type:An(r),message:r}})}},X1=(e,t)=>{try{u.videoFrame=e,S(u.segmenter),S(u.renderUtils),t&&Jc(t),S(!u.renderer?.isContextLost(),F.ContextLost);let r=u.status===K.Error||u.status===K.Opening||u.status===K.Updating||u.renderOptions.effects==="none"||u.renderOptions.effects==="blur"&&u.renderOptions.backgroundBlurAmount===0||u.renderOptions?.effects==="overlay"&&!u.renderOptions.backgroundImageUrl;if(r)return Ee({type:"processed",data:e},[e.frame]),e.frame.close(),Ee({type:"debug",data:{message:"skip processing",context:{name:"media worker",renderingOptions:u.renderOptions,status:u.status,contextLost:u.renderer?.isContextLost()}}});if(u.renderOptions?.effects==="overlay"&&u.renderOptions.backgroundImageUrl){let n=u.backgroundImages?.getImage(u.renderOptions.backgroundImageUrl);n?u.renderOptions.backgroundImage=n:(r=!0,u.backgroundImages?.tryFetchingImage(u.renderOptions.backgroundImageUrl).catch(o=>{u.status=K.Error,Ee({type:"debug",data:{message:`failed to download ${u.renderOptions.backgroundImageUrl}`,context:{name:"media worker",error:o}}})}))}u.status=K.Processing,u.segmenter.segmentForVideo(u.renderUtils.renderImageToOffScreenCanvas(e.frame,"inputCanvas"),performance.now(),n=>{let{confidenceMasks:o}=n,s=o?.[0];if(!s)Ee({type:"processed"});else{S(u.output),S(u.renderer),S(u.renderUtils),S(u.processCanvas),u.renderer.render(s,e,u.renderOptions),u.renderUtils.renderImageToCanvas(u.processCanvas,u.output,u.width,u.height),e.frame.close();let i=u.directOutput?void 0:u.output.transferToImageBitmap();Ee({type:"processed",data:i&&{frame:i,width:u.output.width,height:u.output.height,timestamp:performance.now()}},i?[i]:void 0)}n.close(),u.status=K.Idle})}catch(r){let n=wn(r);return u.status=K.Error,Ee({type:"event",data:{type:An(n),message:n,frame:e}},[e.frame]),e.frame.close()}},H1=async({backgroundImage:e,renderOptions:t,imageSegmenterOptions:r,output:n,restart:o})=>{if(u.status!==K.Updating)try{u.status=K.Updating,e&&u.backgroundImages?.setImage(e.key,e.image),t&&Jc(t),r&&(u.modelAssetPath=r.modelAsset?.path??u.modelAssetPath,u.delegate=r.delegate??u.delegate,r.canvas!==u.processCanvas&&await Zc(r.canvas??nr(u.width,u.height)),await u.segmenter?.setOptions({canvas:u.processCanvas,baseOptions:{delegate:u.delegate,modelAssetPath:u.modelAssetPath}})),n!==void 0&&(u.output=n??nr(u.width,u.height),u.directOutput=!!n),o&&(u.renderUtils?.reset(),await Qc()),u.status=K.Updated,Ee({type:"updated"})}catch(s){u.status=K.Error;let i=wn(s);Ee({type:"event",data:{type:An(i),message:i}})}};self.addEventListener("message",e=>{switch(e.data.type){case"open":{W1(e.data.data);break}case"update":{H1(e.data.data);break}case"process":{let{videoFrame:t,renderOptions:r}=e.data.data;X1(t,r);break}case"close":{u.status=K.Closing,u.renderer?.release(),u.videoFrame?.frame.close(),u.segmenter?.close(),u.backgroundImages?.clear(),u.status=K.Closed;break}case"destroy":{u.status=K.Destroying,u.renderer=void 0,u.videoFrame=void 0,u.segmenter=void 0,u.backgroundImages=void 0,u.status=K.Destroyed;break}}});self.addEventListener("error",e=>{e.preventDefault(),Ee({type:"event",data:{type:F.Error,message:`Uncaught Error event: ${e.error}`}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es5.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2016.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2023.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.webworker.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.decorators.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../src/workers/global.d.ts","../../../../.yarn/cache/@mediapipe-tasks-vision-npm-0.10.18-afd15d57e7-40a091b9e5.zip/node_modules/@mediapipe/tasks-vision/vision.d.ts","../../../utils/dist/types.d.ts","../../../utils/dist/Backoff.d.ts","../../../utils/dist/isEmpty.d.ts","../../../utils/dist/assert.d.ts","../../../utils/dist/debounce.d.ts","../../../utils/dist/identity.d.ts","../../../utils/dist/isDefined.d.ts","../../../utils/dist/noop.d.ts","../../../utils/dist/nth.d.ts","../../../utils/dist/pipe.d.ts","../../../utils/dist/throttle.d.ts","../../../utils/dist/queue.d.ts","../../../utils/dist/asyncQueue.d.ts","../../../utils/dist/hasOwn.d.ts","../../../utils/dist/cancellablePromise.d.ts","../../../utils/dist/endsWithAnyOf.d.ts","../../../utils/dist/getBaseURI.d.ts","../../../utils/dist/patterns.d.ts","../../../utils/dist/prig.d.ts","../../../utils/dist/getTimeLeft.d.ts","../../../utils/dist/subscribeEvent.d.ts","../../../utils/dist/index.d.ts","../common/constants.d.ts","../common/types/segmentation.d.ts","../common/types/media.d.ts","../common/types/render.d.ts","../common/types/messageEvents.d.ts","../common/types/processor.d.ts","../common/canvasRenderUtils.d.ts","../common/backends/webgl/renderer.d.ts","../common/utils.d.ts","../../src/workers/mediaWorker.ts","../../../../.yarn/cache/@types-audioworklet-npm-0.0.41-ec4bc90857-2bfd761ab7.zip/node_modules/@types/audioworklet/iterable.d.ts","../../../../.yarn/cache/@types-audioworklet-npm-0.0.41-ec4bc90857-2bfd761ab7.zip/node_modules/@types/audioworklet/index.d.ts","../../../../.yarn/cache/@types-dom-webcodecs-npm-0.1.10-02a2fa8a5c-dd7b1410da.zip/node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts","../../../../.yarn/cache/@types-dom-webcodecs-npm-0.1.10-02a2fa8a5c-dd7b1410da.zip/node_modules/@types/dom-webcodecs/index.d.ts","../../../../.yarn/cache/@types-trusted-types-npm-2.0.6-c4c3cd363b-04250c7175.zip/node_modules/@types/trusted-types/lib/index.d.ts","../../../../.yarn/cache/@types-trusted-types-npm-2.0.6-c4c3cd363b-04250c7175.zip/node_modules/@types/trusted-types/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c",{"version":"5746fca0ef5189a855357e258108524603574457c811ce8143e3279efde9f5b6","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"50679f745dcd6cb0f200a64b554a3cfd58a462b540d0442df3315b085962bfa3","affectsGlobalScope":true},"fc8a3cf4a55f7d1ae3f2efdda84bbeaeea605a92e535ac52b99deed6366917d5","edfe10afb5dfa79dc3681c3ce2fd73cf84187f82cde5ac9acd0ed6045812be81","438ef5faada40623680ebd13ae7125e99cfdc7c5326e8b0d3eb07e5f9321bd42","7708ca08fec4ce92049f6690c1d14111a2040e61d4fc474b11e126e9d021d821","3c85aeafee03e18cb01a4fd383192931acc3f950df08b248519467ceadd4a0ac","2faa7a93866b495a08adc2e6d5299d386c94127cef577d539066b17ef897e890","45880d016069eaff83f54047396b0f98e413ec43f50c59131d45c9c92dd44dea","2db065eba6f02c7ea4174dfb607acc5773ab2522e35a8e0f723709e07ec66158","f9a45114811a10722053e6c5329c41eace3295daa477d12558279df4dcbfba71","3698e6b26f72a770b4bfc15504c04bfb678a355b46ceaa7a42cbdac0893b4d5c","73b31856689c7466ffafad655ea87156ebce121519b38fbb673fb40893a6d337","65febade0f6327355a157698cdcadc1cbedee872ef77f57211da146125905828","3a0d9bd15a78cdc0f4454eb2ac681db16053538de2e1ef65021b12eda3d33323","e8c4ddbe94478ffb1cd5b2481323ce1d86c213130a83cde4a6873197baa2d7ef","2c437f035a6f3bfe59a7d9ec427f81e1f2495746db06f841c3e2f4c2813cfaac","da76378d0574595658964d4ee9332ad16797b461dad77d18d0c33570d264b1b1","880e53e2d42225d6b22e2e2b4e51cc8b845094a5045b170eb79df031bfaceaac","1e56ad04bd9214bf4583941a499386488cb76389eee3bd65ec882f5e5613cbc8","f06d0f7bb803f3f00b4d0cd16b2d950fb826cf7efec3f68546f3e67746fb969e","cb004873a4cf28c9c65b7fe8e893c5a133be25b78c66ffc076e19608f59c1c2a","6fa26b05e6b041a321db7a70f534a93b4eb616916015dddcdeaaf658a340209d","48b437891c456506be8d837433036ebcb3d0806ce6805ca5ca3f87d13e75d20f","9b109418834739e42493703b1f48225b77dac315fe49a17e97a92060ab3908ae","9319249bc1417b9a9b95f3f123c48561234b8e04506a1250ebc63bb3b9df7b54","c14326fa1248321d7057816748ef6dc633c29a01eb1eba7c7fb4e62bea980b38","a8c26adbb4381a5434218f5b71e4046d90a5ea69fc7a921fe4b04d238796763d","c84adc1f0cc1e867939d604e6db9ab8106fe1583efb923c8ec882fe4ddd23ac4","10a6710b34f5c43e5b9bd57afb08290c38950ad9fb7c2f6e7b4973564a3e1c9a","169d3074997b35037a6391faece98c86d8087b4ed1479a914545196ebd1410ae","31145aac76344c715a6d050547a09c91dda5cf5bd79845924e4b184172392ec1","5b37da438057b33671eb1015ba82213cfb49faede9ac35da6ce846c03a39758a","57db9b3201deae799628ce0aa82fa67afa8855d8572bd27be30719bc696771a4",{"version":"3268510e6f1b6d43ca679edde6cce4c899a9f42354a99840432b0db62a191ee2","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"b38d0bfd2d1c1536d40fc5941fab5c5dd2749fb874fb57c451211ab806a3be8a","affectsGlobalScope":true},{"version":"8c63699627e2dd957f31dddfaf644a96ccf92eec6e9277a430421ae2d7e98b00","affectsGlobalScope":true},{"version":"da4a8f6629bc630a6b85d0899ca3f610402794a1535d3eb8be826acef5efedfb","affectsGlobalScope":true},{"version":"3c57b01d6648405ea1784c0176e2ad77f77568e7a84d5cb4fc8eefabf00ca22b","affectsGlobalScope":true},"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e",{"version":"a4a5a79b9d9b4e4dfa18279d85686fac7eb155b828ddf7a677ceb57f9384f043","affectsGlobalScope":true}],"root":[65,98],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"jsx":2,"module":99,"noImplicitAny":true,"noUncheckedIndexedAccess":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true,"sourceMap":false,"strict":true,"target":7},"fileIdsList":[[99],[101],[103],[92],[91],[89,90,91,92,93],[89,90,91],[66,88,89,90,91,92,94,95,96,97],[67],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87]],"referencedMap":[[100,1],[102,2],[104,3],[96,4],[95,5],[94,6],[92,7],[97,7],[98,8],[71,9],[88,10],[76,9],[87,9],[77,9]],"exportedModulesMap":[[100,1],[102,2],[104,3],[96,4],[95,5],[94,6],[92,7],[97,7],[71,9],[88,10],[76,9],[87,9],[77,9]],"semanticDiagnosticsPerFile":[66,100,99,102,101,104,103,63,64,14,13,2,15,16,17,18,19,20,21,22,3,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,53,54,57,55,56,58,59,10,1,11,62,61,60,12,96,95,89,91,93,94,92,90,97,65,98,68,70,79,81,71,82,83,86,80,72,88,73,69,74,75,84,76,85,78,87,77,67],"latestChangedDtsFile":"./mediaWorker.d.ts"},"version":"5.3.3"}
|
|
1
|
+
{"program":{"fileNames":["../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es5.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2016.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2023.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.webworker.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.decorators.d.ts","../../../../.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../src/workers/global.d.ts","../../../../.yarn/cache/@mediapipe-tasks-vision-npm-0.10.20-c9624c4e95-429cee0a76.zip/node_modules/@mediapipe/tasks-vision/vision.d.ts","../../../utils/dist/types.d.ts","../../../utils/dist/Backoff.d.ts","../../../utils/dist/isEmpty.d.ts","../../../utils/dist/assert.d.ts","../../../utils/dist/debounce.d.ts","../../../utils/dist/identity.d.ts","../../../utils/dist/isDefined.d.ts","../../../utils/dist/noop.d.ts","../../../utils/dist/nth.d.ts","../../../utils/dist/pipe.d.ts","../../../utils/dist/throttle.d.ts","../../../utils/dist/queue.d.ts","../../../utils/dist/asyncQueue.d.ts","../../../utils/dist/hasOwn.d.ts","../../../utils/dist/cancellablePromise.d.ts","../../../utils/dist/endsWithAnyOf.d.ts","../../../utils/dist/getBaseURI.d.ts","../../../utils/dist/patterns.d.ts","../../../utils/dist/prig.d.ts","../../../utils/dist/getTimeLeft.d.ts","../../../utils/dist/subscribeEvent.d.ts","../../../utils/dist/index.d.ts","../common/constants.d.ts","../common/types/segmentation.d.ts","../common/types/media.d.ts","../common/types/render.d.ts","../common/types/messageEvents.d.ts","../common/types/processor.d.ts","../common/canvasRenderUtils.d.ts","../common/backends/webgl/renderer.d.ts","../common/utils.d.ts","../../src/workers/mediaWorker.ts","../../../../.yarn/cache/@types-audioworklet-npm-0.0.41-ec4bc90857-2bfd761ab7.zip/node_modules/@types/audioworklet/iterable.d.ts","../../../../.yarn/cache/@types-audioworklet-npm-0.0.41-ec4bc90857-2bfd761ab7.zip/node_modules/@types/audioworklet/index.d.ts","../../../../.yarn/cache/@types-dom-webcodecs-npm-0.1.10-02a2fa8a5c-dd7b1410da.zip/node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts","../../../../.yarn/cache/@types-dom-webcodecs-npm-0.1.10-02a2fa8a5c-dd7b1410da.zip/node_modules/@types/dom-webcodecs/index.d.ts","../../../../.yarn/cache/@types-trusted-types-npm-2.0.6-c4c3cd363b-04250c7175.zip/node_modules/@types/trusted-types/lib/index.d.ts","../../../../.yarn/cache/@types-trusted-types-npm-2.0.6-c4c3cd363b-04250c7175.zip/node_modules/@types/trusted-types/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c",{"version":"5746fca0ef5189a855357e258108524603574457c811ce8143e3279efde9f5b6","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"50679f745dcd6cb0f200a64b554a3cfd58a462b540d0442df3315b085962bfa3","affectsGlobalScope":true},"fc8a3cf4a55f7d1ae3f2efdda84bbeaeea605a92e535ac52b99deed6366917d5","edfe10afb5dfa79dc3681c3ce2fd73cf84187f82cde5ac9acd0ed6045812be81","438ef5faada40623680ebd13ae7125e99cfdc7c5326e8b0d3eb07e5f9321bd42","7708ca08fec4ce92049f6690c1d14111a2040e61d4fc474b11e126e9d021d821","3c85aeafee03e18cb01a4fd383192931acc3f950df08b248519467ceadd4a0ac","2faa7a93866b495a08adc2e6d5299d386c94127cef577d539066b17ef897e890","45880d016069eaff83f54047396b0f98e413ec43f50c59131d45c9c92dd44dea","2db065eba6f02c7ea4174dfb607acc5773ab2522e35a8e0f723709e07ec66158","f9a45114811a10722053e6c5329c41eace3295daa477d12558279df4dcbfba71","3698e6b26f72a770b4bfc15504c04bfb678a355b46ceaa7a42cbdac0893b4d5c","73b31856689c7466ffafad655ea87156ebce121519b38fbb673fb40893a6d337","65febade0f6327355a157698cdcadc1cbedee872ef77f57211da146125905828","3a0d9bd15a78cdc0f4454eb2ac681db16053538de2e1ef65021b12eda3d33323","e8c4ddbe94478ffb1cd5b2481323ce1d86c213130a83cde4a6873197baa2d7ef","2c437f035a6f3bfe59a7d9ec427f81e1f2495746db06f841c3e2f4c2813cfaac","da76378d0574595658964d4ee9332ad16797b461dad77d18d0c33570d264b1b1","880e53e2d42225d6b22e2e2b4e51cc8b845094a5045b170eb79df031bfaceaac","1e56ad04bd9214bf4583941a499386488cb76389eee3bd65ec882f5e5613cbc8","f06d0f7bb803f3f00b4d0cd16b2d950fb826cf7efec3f68546f3e67746fb969e","cb004873a4cf28c9c65b7fe8e893c5a133be25b78c66ffc076e19608f59c1c2a","6fa26b05e6b041a321db7a70f534a93b4eb616916015dddcdeaaf658a340209d","48b437891c456506be8d837433036ebcb3d0806ce6805ca5ca3f87d13e75d20f","9b109418834739e42493703b1f48225b77dac315fe49a17e97a92060ab3908ae","9319249bc1417b9a9b95f3f123c48561234b8e04506a1250ebc63bb3b9df7b54","c14326fa1248321d7057816748ef6dc633c29a01eb1eba7c7fb4e62bea980b38","a8c26adbb4381a5434218f5b71e4046d90a5ea69fc7a921fe4b04d238796763d","c84adc1f0cc1e867939d604e6db9ab8106fe1583efb923c8ec882fe4ddd23ac4","10a6710b34f5c43e5b9bd57afb08290c38950ad9fb7c2f6e7b4973564a3e1c9a","169d3074997b35037a6391faece98c86d8087b4ed1479a914545196ebd1410ae","31145aac76344c715a6d050547a09c91dda5cf5bd79845924e4b184172392ec1","5b37da438057b33671eb1015ba82213cfb49faede9ac35da6ce846c03a39758a","57db9b3201deae799628ce0aa82fa67afa8855d8572bd27be30719bc696771a4",{"version":"3268510e6f1b6d43ca679edde6cce4c899a9f42354a99840432b0db62a191ee2","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"b38d0bfd2d1c1536d40fc5941fab5c5dd2749fb874fb57c451211ab806a3be8a","affectsGlobalScope":true},{"version":"8c63699627e2dd957f31dddfaf644a96ccf92eec6e9277a430421ae2d7e98b00","affectsGlobalScope":true},{"version":"da4a8f6629bc630a6b85d0899ca3f610402794a1535d3eb8be826acef5efedfb","affectsGlobalScope":true},{"version":"3c57b01d6648405ea1784c0176e2ad77f77568e7a84d5cb4fc8eefabf00ca22b","affectsGlobalScope":true},"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e",{"version":"a4a5a79b9d9b4e4dfa18279d85686fac7eb155b828ddf7a677ceb57f9384f043","affectsGlobalScope":true}],"root":[65,98],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"jsx":2,"module":99,"noImplicitAny":true,"noUncheckedIndexedAccess":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true,"sourceMap":false,"strict":true,"target":7},"fileIdsList":[[99],[101],[103],[92],[91],[89,90,91,92,93],[89,90,91],[66,88,89,90,91,92,94,95,96,97],[67],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87]],"referencedMap":[[100,1],[102,2],[104,3],[96,4],[95,5],[94,6],[92,7],[97,7],[98,8],[71,9],[88,10],[76,9],[87,9],[77,9]],"exportedModulesMap":[[100,1],[102,2],[104,3],[96,4],[95,5],[94,6],[92,7],[97,7],[71,9],[88,10],[76,9],[87,9],[77,9]],"semanticDiagnosticsPerFile":[66,100,99,102,101,104,103,63,64,14,13,2,15,16,17,18,19,20,21,22,3,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,53,54,57,55,56,58,59,10,1,11,62,61,60,12,96,95,89,91,93,94,92,90,97,65,98,68,70,79,81,71,82,83,86,80,72,88,73,69,74,75,84,76,85,78,87,77,67],"latestChangedDtsFile":"./mediaWorker.d.ts"},"version":"5.3.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pexip/media-processor",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "Media processor for video and audio",
|
|
5
5
|
"homepage": "https://gitlab.com/pexip/zoo",
|
|
6
6
|
"bugs": "https://gitlab.com/pexip/zoo/issues",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"update-tasks-vision-assets": "unzip -jo ../../.yarn/cache/@mediapipe-tasks-vision-npm-* \"*/wasm/*\" \"*.json\" -d ../media-assets/@mediapipe/tasks-vision/wasm/"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@mediapipe/tasks-vision": "^0.10.
|
|
47
|
+
"@mediapipe/tasks-vision": "^0.10.20",
|
|
48
48
|
"@pexip/denoise": "16.4.0",
|
|
49
49
|
"@pexip/utils": "16.13.0"
|
|
50
50
|
},
|