@mediapipe/tasks-text 0.10.8 → 0.10.9-rc.20231208
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/README.md +0 -0
- package/package.json +1 -1
- package/text_bundle.cjs +1 -1
- package/text_bundle.cjs.map +1 -1
- package/text_bundle.mjs +1 -1
- package/text_bundle.mjs.map +1 -1
- package/wasm/text_wasm_internal.js +0 -0
- package/wasm/text_wasm_internal.wasm +0 -0
- package/wasm/text_wasm_nosimd_internal.js +0 -0
- package/wasm/text_wasm_nosimd_internal.wasm +0 -0
package/text_bundle.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t="undefined"!=typeof self?self:{};function e(e,n){t:{for(var r=["CLOSURE_FLAGS"],i=t,o=0;o<r.length;o++)if(null==(i=i[r[o]])){r=null;break t}r=i}return null!=(e=r&&r[e])?e:n}function n(){throw Error("Invalid UTF8")}function r(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}let i,o;const s="undefined"!=typeof TextDecoder;let a;const u="undefined"!=typeof TextEncoder;function c(t){if(u)t=(a||=new TextEncoder).encode(t);else{let n=0;const r=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var e=t.charCodeAt(i);if(128>e)r[n++]=e;else{if(2048>e)r[n++]=e>>6|192;else{if(55296<=e&&57343>=e){if(56319>=e&&i<t.length){const o=t.charCodeAt(++i);if(56320<=o&&57343>=o){e=1024*(e-55296)+o-56320+65536,r[n++]=e>>18|240,r[n++]=e>>12&63|128,r[n++]=e>>6&63|128,r[n++]=63&e|128;continue}i--}e=65533}r[n++]=e>>12|224,r[n++]=e>>6&63|128}r[n++]=63&e|128}}t=n===r.length?r:r.subarray(0,n)}return t}var l,h=e(610401301,!1),f=e(572417392,e(1,!0));const d=t.navigator;function g(t){return!!h&&(!!l&&l.brands.some((({brand:e})=>e&&-1!=e.indexOf(t))))}function p(e){var n;return(n=t.navigator)&&(n=n.userAgent)||(n=""),-1!=n.indexOf(e)}function m(){return!!h&&(!!l&&0<l.brands.length)}function y(){return m()?g("Chromium"):(p("Chrome")||p("CriOS"))&&!(!m()&&p("Edge"))||p("Silk")}l=d&&d.userAgentData||null;var v=!m()&&(p("Trident")||p("MSIE"));!p("Android")||y(),y(),p("Safari")&&(y()||!m()&&p("Coast")||!m()&&p("Opera")||!m()&&p("Edge")||(m()?g("Microsoft Edge"):p("Edg/"))||m()&&g("Opera"));var b={},w=null;function _(t){var e=t.length,n=3*e/4;n%3?n=Math.floor(n):-1!="=.".indexOf(t[e-1])&&(n=-1!="=.".indexOf(t[e-2])?n-2:n-1);var r=new Uint8Array(n),i=0;return function(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),i=w[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}A();for(var r=0;;){var i=n(-1),o=n(0),s=n(64),a=n(64);if(64===a&&-1===i)break;e(i<<2|o>>4),64!=s&&(e(o<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,(function(t){r[i++]=t})),i!==n?r.subarray(0,i):r}function A(){if(!w){w={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));b[n]=r;for(var i=0;i<r.length;i++){var o=r[i];void 0===w[o]&&(w[o]=i)}}}}var S="undefined"!=typeof Uint8Array,E=!v&&"function"==typeof btoa;function T(t){if(!E){var e;void 0===e&&(e=0),A(),e=b[e];var n=Array(Math.floor(t.length/3)),r=e[64]||"";let u=0,c=0;for(;u<t.length-2;u+=3){var i=t[u],o=t[u+1],s=t[u+2],a=e[i>>2];i=e[(3&i)<<4|o>>4],o=e[(15&o)<<2|s>>6],s=e[63&s],n[c++]=a+i+o+s}switch(a=0,s=r,t.length-u){case 2:s=e[(15&(a=t[u+1]))<<2]||r;case 1:t=t[u],n[c]=e[t>>2]+e[(3&t)<<4|a>>4]+s+r}return n.join("")}for(e="",n=0,r=t.length-10240;n<r;)e+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));return e+=String.fromCharCode.apply(null,n?t.subarray(n):t),btoa(e)}const I=/[-_.]/g,x={"-":"+",_:"/",".":"="};function P(t){return x[t]||""}function O(t){if(!E)return _(t);I.test(t)&&(t=t.replace(I,P)),t=atob(t);const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}function L(t){return S&&null!=t&&t instanceof Uint8Array}let B;function F(){return B||=new Uint8Array(0)}var k={};let U;function j(t){if(t!==k)throw Error("illegal external caller")}function V(){return U||=new N(null,k)}function C(t){j(k);var e=t.F;return null==(e=null==e||L(e)?e:"string"==typeof e?O(e):null)?e:t.F=e}var N=class{constructor(t,e){if(j(e),this.F=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}O(){const t=C(this);return t?new Uint8Array(t):F()}};function M(t,e){return Error(`Invalid wire type: ${t} (at position ${e})`)}function G(){return Error("Failed to read varint, encoding is invalid.")}function D(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function z(t){return 0==t.length?V():new N(t,k)}function $(t){if("string"==typeof t)return{buffer:O(t),B:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),B:!1};if(t.constructor===Uint8Array)return{buffer:t,B:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),B:!1};if(t.constructor===N)return{buffer:C(t)||F(),B:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),B:!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")}var R=!f;let W=!f;const H="function"==typeof Uint8Array.prototype.slice;let q,J=0,K=0;function X(t){const e=0>t;let n=(t=Math.abs(t))>>>0;if(t=Math.floor((t-n)/4294967296),e){const[e,r]=nt(n,t);t=r,n=e}J=n>>>0,K=t>>>0}function Y(t){const e=q||=new DataView(new ArrayBuffer(8));e.setFloat32(0,+t,!0),K=0,J=e.getUint32(0,!0)}function Q(t,e){return 4294967296*e+(t>>>0)}function Z(t,e){const n=2147483648&e;return n&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=Q(t,e),n?-t:t}function tt(t){return t=String(t),"0000000".slice(t.length)+t}function et(t){if(16>t.length)X(Number(t));else if("function"==typeof BigInt)t=BigInt(t),J=Number(t&BigInt(4294967295))>>>0,K=Number(t>>BigInt(32)&BigInt(4294967295));else{const e=+("-"===t[0]);K=J=0;const n=t.length;for(let r=e,i=(n-e)%6+e;i<=n;r=i,i+=6){const e=Number(t.slice(r,i));K*=1e6,J=1e6*J+e,4294967296<=J&&(K+=Math.trunc(J/4294967296),K>>>=0,J>>>=0)}if(e){const[t,e]=nt(J,K);J=t,K=e}}}function nt(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function rt(t,e,{G:n=!1}={}){t.G=n,e&&(e=$(e),t.j=e.buffer,t.o=e.B,t.H=0,t.m=t.j.length,t.g=t.H)}function it(t,e){if(t.g=e,e>t.m)throw D(t.m,e)}function ot(t,e){let n,r=0,i=0,o=0;const s=t.j;let a=t.g;do{n=s[a++],r|=(127&n)<<o,o+=7}while(32>o&&128&n);for(32<o&&(i|=(127&n)>>4),o=3;32>o&&128&n;o+=7)n=s[a++],i|=(127&n)<<o;if(it(t,a),128>n)return e(r>>>0,i>>>0);throw G()}function st(t){let e=0,n=t.g;const r=n+10,i=t.j;for(;n<r;){const r=i[n++];if(e|=r,0==(128&r))return it(t,n),!!(127&e)}throw G()}function at(t,e){if(0>e)throw Error(`Tried to read a negative byte length: ${e}`);const n=t.g,r=n+e;if(r>t.m)throw D(e,t.m-n);return t.g=r,n}function ut(t,e){if(0==e)return V();var n=at(t,e);return t.G&&t.o?n=t.j.subarray(n,n+e):(t=t.j,n=n===(e=n+e)?F():H?t.slice(n,e):new Uint8Array(t.subarray(n,e))),z(n)}var ct=class{constructor(t,e){this.j=null,this.o=!1,this.g=this.m=this.H=0,rt(this,t,e)}clear(){this.j=null,this.o=!1,this.g=this.m=this.H=0,this.G=!1}i(){const t=this.j;let e=this.g,n=t[e++],r=127&n;if(128&n&&(n=t[e++],r|=(127&n)<<7,128&n&&(n=t[e++],r|=(127&n)<<14,128&n&&(n=t[e++],r|=(127&n)<<21,128&n&&(n=t[e++],r|=n<<28,128&n&&128&t[e++]&&128&t[e++]&&128&t[e++]&&128&t[e++]&&128&t[e++])))))throw G();return it(this,e),r}v(){var t=this.j;const e=this.g;var n=t[e],r=t[e+1],i=t[e+2];return t=t[e+3],it(this,this.g+4),n=2*((i=(n<<0|r<<8|i<<16|t<<24)>>>0)>>31)+1,r=i>>>23&255,i&=8388607,255==r?i?NaN:1/0*n:0==r?n*Math.pow(2,-149)*i:n*Math.pow(2,r-150)*(i+Math.pow(2,23))}V(){return this.i()}},lt=[];function ht(t){var e=t.g;if(e.g==e.m)return!1;t.j=t.g.g;var n=t.g.i()>>>0;if(e=n>>>3,!(0<=(n&=7)&&5>=n))throw M(n,t.j);if(1>e)throw Error(`Invalid field number: ${e} (at position ${t.j})`);return t.m=e,t.i=n,!0}function ft(t){switch(t.i){case 0:0!=t.i?ft(t):st(t.g);break;case 1:it(t=t.g,t.g+8);break;case 2:if(2!=t.i)ft(t);else{var e=t.g.i()>>>0;it(t=t.g,t.g+e)}break;case 5:it(t=t.g,t.g+4);break;case 3:for(e=t.m;;){if(!ht(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.i){if(t.m!=e)throw Error("Unmatched end-group tag");break}ft(t)}break;default:throw M(t.i,t.j)}}function dt(t,e,n){const r=t.g.m,i=t.g.i()>>>0,o=t.g.g+i;let s=o-r;if(0>=s&&(t.g.m=o,n(e,t,void 0,void 0,void 0),s=o-t.g.g),s)throw Error(`Message parsing ended unexpectedly. Expected to read ${i} bytes, instead read ${i-s} bytes, either the data ended unexpectedly or the message misreported its own length`);t.g.g=o,t.g.m=r}function gt(t){var e=t.g.i()>>>0,a=at(t=t.g,e);if(t=t.j,s){var u,c=t;(u=o)||(u=o=new TextDecoder("utf-8",{fatal:!0})),t=a+e,c=0===a&&t===c.length?c:c.subarray(a,t);try{var l=u.decode(c)}catch(t){if(void 0===i){try{u.decode(new Uint8Array([128]))}catch(t){}try{u.decode(new Uint8Array([97])),i=!0}catch(t){i=!1}}throw!i&&(o=void 0),t}}else{e=(l=a)+e,a=[];let i,o=null;for(;l<e;){var h=t[l++];128>h?a.push(h):224>h?l>=e?n():(i=t[l++],194>h||128!=(192&i)?(l--,n()):a.push((31&h)<<6|63&i)):240>h?l>=e-1?n():(i=t[l++],128!=(192&i)||224===h&&160>i||237===h&&160<=i||128!=(192&(c=t[l++]))?(l--,n()):a.push((15&h)<<12|(63&i)<<6|63&c)):244>=h?l>=e-2?n():(i=t[l++],128!=(192&i)||0!=i-144+(h<<28)>>30||128!=(192&(c=t[l++]))||128!=(192&(u=t[l++]))?(l--,n()):(h=(7&h)<<18|(63&i)<<12|(63&c)<<6|63&u,h-=65536,a.push(55296+(h>>10&1023),56320+(1023&h)))):n(),8192<=a.length&&(o=r(o,a),a.length=0)}l=r(o,a)}return l}function pt(t){const e=t.g.i()>>>0;return ut(t.g,e)}function mt(t,e,n){var r=t.g.i()>>>0;for(r=t.g.g+r;t.g.g<r;)n.push(e.call(t.g))}var yt=[];function vt(t){return t?/^\d+$/.test(t)?(et(t),new bt(J,K)):null:wt||=new bt(0,0)}var bt=class{constructor(t,e){this.i=t>>>0,this.g=e>>>0}};let wt;function _t(t){return t?/^-?\d+$/.test(t)?(et(t),new At(J,K)):null:St||=new At(0,0)}var At=class{constructor(t,e){this.i=t>>>0,this.g=e>>>0}};let St;function Et(t,e,n){for(;0<n||127<e;)t.g.push(127&e|128),e=(e>>>7|n<<25)>>>0,n>>>=7;t.g.push(e)}function Tt(t,e){for(;127<e;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function It(t,e){if(0<=e)Tt(t,e);else{for(let n=0;9>n;n++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function xt(t){var e=J;t.g.push(e>>>0&255),t.g.push(e>>>8&255),t.g.push(e>>>16&255),t.g.push(e>>>24&255)}function Pt(t,e){0!==e.length&&(t.j.push(e),t.i+=e.length)}function Ot(t,e,n){Tt(t.g,8*e+n)}function Lt(t,e){return Ot(t,e,2),e=t.g.end(),Pt(t,e),e.push(t.i),e}function Bt(t,e){var n=e.pop();for(n=t.i+t.g.length()-n;127<n;)e.push(127&n|128),n>>>=7,t.i++;e.push(n),t.i++}function Ft(t,e,n){Ot(t,e,2),Tt(t.g,n.length),Pt(t,t.g.end()),Pt(t,n)}class kt{constructor(t,e,n,r){this.g=t,this.i=e,this.j=n,this.M=r}}function Ut(t){return Array.prototype.slice.call(t)}const jt="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;var Vt=jt?(t,e)=>{t[jt]|=e}:(t,e)=>{void 0!==t.u?t.u|=e:Object.defineProperties(t,{u:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function Ct(t){const e=Gt(t);1!=(1&e)&&(Object.isFrozen(t)&&(t=Ut(t)),zt(t,1|e))}var Nt=jt?(t,e)=>{t[jt]&=~e}:(t,e)=>{void 0!==t.u&&(t.u&=~e)};function Mt(t,e,n){return n?t|e:t&~e}var Gt=jt?t=>0|t[jt]:t=>0|t.u,Dt=jt?t=>t[jt]:t=>t.u,zt=jt?(t,e)=>{t[jt]=e}:(t,e)=>{void 0!==t.u?t.u=e:Object.defineProperties(t,{u:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function $t(){var t=[];return Vt(t,1),t}function Rt(t,e){zt(e,-14591&(0|t))}function Wt(t,e){zt(e,-14557&(34|t))}function Ht(t){return 0===(t=t>>14&1023)?536870912:t}var qt={},Jt={};function Kt(t){return!(!t||"object"!=typeof t||t.W!==Jt)}function Xt(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}let Yt=!f;function Qt(t,e,n){if(null!=t)if("string"==typeof t)t=t?new N(t,k):V();else if(t.constructor!==N)if(L(t))t=n?z(t):t.length?new N(new Uint8Array(t),k):V();else{if(!e)throw Error();t=void 0}return t}function Zt(t,e,n){if(!Array.isArray(t)||t.length)return!1;const r=Gt(t);return!!(1&r)||!(!e||!(Array.isArray(e)?e.includes(n):e.has(n)))&&(zt(t,1|r),!0)}var te;const ee=[];function ne(t){if(2&t)throw Error()}let re,ie;function oe(t,e){(e=re?e[re]:void 0)&&(t[re]=Ut(e))}function se(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}function ae(t){return null==t?t:"number"==typeof t||"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function ue(t){if(null!=t){if("boolean"!=typeof t){var e=typeof t;throw Error(`Expected boolean but got ${"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}: ${t}`)}t=!!t}return t}zt(ee,55),te=Object.freeze(ee);const ce=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function le(t){const e=typeof t;return"number"===e?Number.isFinite(t):"string"===e&&ce.test(t)}function he(t){if(null==t)return t;if("string"==typeof t){if(!t)return;t=+t}return"number"==typeof t?t:void 0}function fe(t){return Math.trunc(t)}function de(t){var e=Math.trunc(Number(t));return Number.isSafeInteger(e)?String(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),t)}function ge(t){if("string"!=typeof t)throw Error();return t}function pe(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function me(t){return null==t||"string"==typeof t?t:void 0}function ye(t,e,n){if(null!=t&&"object"==typeof t&&t.D===qt)return t;if(Array.isArray(t)){var r=Gt(t),i=r;return 0===i&&(i|=32&n),(i|=2&n)!==r&&zt(t,i),new e(t)}}let ve,be,we;function _e(t){switch(typeof t){case"boolean":return be||=[0,void 0,!0];case"number":return 0<t?void 0:0===t?we||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}function Ae(t,e,n){if(null==t&&(t=ve),ve=void 0,null==t){var r=96;n?(t=[n],r|=512):t=[],e&&(r=-16760833&r|(1023&e)<<14)}else{if(!Array.isArray(t))throw Error();if(64&(r=Gt(t)))return ie&&delete t[ie],t;if(r|=64,n&&(r|=512,n!==t[0]))throw Error();t:{if(n=r,r=t.length){const i=r-1;if(Xt(t[i])){if(1024<=(e=i-(+!!(512&(n|=256))-1)))throw Error();r=-16760833&n|(1023&e)<<14;break t}}if(e){if(1024<(e=Math.max(e,r-(+!!(512&n)-1))))throw Error();r=-16760833&n|(1023&e)<<14}else r=n}}return zt(t,r),t}function Se(t,e,n,r,i,o){if(null!=t){if(Array.isArray(t))t=i&&0==t.length&&1&Gt(t)?void 0:o&&2&Gt(t)?t:Ee(t,e,n,void 0!==r,i,o);else if(Xt(t)){const s={};for(let a in t)s[a]=Se(t[a],e,n,r,i,o);t=s}else t=e(t,r);return t}}function Ee(t,e,n,r,i,o){const s=r||n?Gt(t):0;r=r?!!(32&s):void 0;const a=Ut(t);for(let t=0;t<a.length;t++)a[t]=Se(a[t],e,n,r,i,o);return n&&(oe(a,t),n(s,a)),a}function Te(t){return t.D===qt?t.toJSON():function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"boolean":return t?1:0;case"object":if(t){if(Array.isArray(t))return Yt||!Zt(t,void 0,9999)?t:void 0;if(L(t))return T(t);if(t instanceof N){const e=t.F;return null==e?"":"string"==typeof e?e:t.F=T(e)}}}return t}(t)}function Ie(t,e,n=Wt){if(null!=t){if(S&&t instanceof Uint8Array)return e?t:new Uint8Array(t);if(Array.isArray(t)){var r=Gt(t);return 2&r?t:(e&&=0===r||!!(32&r)&&!(64&r||!(16&r)),e?(zt(t,-12293&(34|r)),t):Ee(t,Ie,4&r?Wt:n,!0,!1,!0))}return t.D===qt&&(n=t.l,t=2&(r=Dt(n))?t:Pe(t,n,r,!0)),t}}function xe(t){const e=t.l;return Pe(t,e,Dt(e),!1)}function Pe(t,e,n,r){return t=t.constructor,ve=e=Oe(e,n,r),e=new t(e),ve=void 0,e}function Oe(t,e,n){const r=n||2&e?Wt:Rt,i=!!(32&e);return t=function(t,e,n){const r=Ut(t);var i=r.length;const o=256&e?r[i-1]:void 0;for(i+=o?-1:0,e=512&e?1:0;e<i;e++)r[e]=n(r[e]);if(o){e=r[e]={};for(const t in o)e[t]=n(o[t])}return oe(r,t),r}(t,e,(t=>Ie(t,i,r))),Vt(t,32|(n?2:0)),t}function Le(t){const e=t.l,n=Dt(e);return 2&n?Pe(t,e,n,!1):t}function Be(t,e){return Fe(t=t.l,Dt(t),e)}function Fe(t,e,n,r){if(-1===n)return null;if(n>=Ht(e)){if(256&e)return t[t.length-1][n]}else{var i=t.length;if(r&&256&e&&null!=(r=t[i-1][n]))return r;if((e=n+(+!!(512&e)-1))<i)return t[e]}}function ke(t,e,n,r){const i=t.l;let o=Dt(i);return ne(o),Ue(i,o,e,n,r),t}function Ue(t,e,n,r,i){var o=Ht(e);if(n>=o||i){if(i=e,256&e)o=t[t.length-1];else{if(null==r)return i;o=t[o+(+!!(512&e)-1)]={},i|=256}return o[n]=r,i!==e&&zt(t,i),i}return t[n+(+!!(512&e)-1)]=r,256&e&&(n in(t=t[t.length-1])&&delete t[n]),e}function je(t,e,n,r,i){var o=2&e;let s=Fe(t,e,n,i);Array.isArray(s)||(s=te);const a=!(2&r);r=!(1&r);const u=!!(32&e);let c=Gt(s);return 0!==c||!u||o||a?1&c||(c|=1,zt(s,c)):(c|=33,zt(s,c)),o?(t=!1,2&c||(Vt(s,34),t=!!(4&c)),(r||t)&&Object.freeze(s)):(o=!!(2&c)||!!(2048&c),r&&o?(s=Ut(s),r=1,u&&!a&&(r|=32),zt(s,r),Ue(t,e,n,s,i)):a&&32&c&&!o&&Nt(s,32)),s}function Ve(t){t=t.l;let e=Dt(t);const n=Fe(t,e,1),r=Qt(n,!0,!!(34&e));return null!=r&&r!==n&&Ue(t,e,1,r),r}function Ce(t,e,n){t=t.l;let r=Dt(t);if(ne(r),null==n)Ue(t,r,e);else{var i,o=Gt(n),s=o,a=!!(2&o)||Object.isFrozen(n);if((i=!a)&&(i=!1),!(4&o)){o=21,a&&(n=Ut(n),s=0,o=Xe(o,r,!0)),a=!!(4&o)&&!!(4096&o);for(let t=0;t<n.length;t++)n[t]=ge(n[t])}i&&(o=Mt(o,2,!0)),o!==s&&zt(n,o),i&&Object.freeze(n),Ue(t,r,e,n)}}function Ne(t,e){t=t.l;let n=Dt(t);ne(n),Ue(t,n,2,""===e?void 0:e)}function Me(t,e,n,r){const i=Dt(t);ne(i),t=je(t,i,e,2),r=n(r,!!(4&(e=Gt(t)))&&!!(4096&e)),t.push(r)}function Ge(t){return t}function De(t,e){return ze(t=t.l,Dt(t),Wr)===e?e:-1}function ze(t,e,n){let r=0;for(let i=0;i<n.length;i++){const o=n[i];null!=Fe(t,e,o)&&(0!==r&&(e=Ue(t,e,r)),r=o)}return r}function $e(t,e,n,r){let i=Dt(t);ne(i);const o=Fe(t,i,n,r);let s;if(null!=o&&o.D===qt)return(e=Le(o))!==o&&Ue(t,i,n,e,r),e.l;if(Array.isArray(o)){const t=Gt(o);s=2&t?Oe(o,t,!1):o,s=Ae(s,e[0],e[1])}else s=Ae(void 0,e[0],e[1]);return s!==o&&Ue(t,i,n,s,r),s}function Re(t,e,n,r){t=t.l;let i=Dt(t);const o=Fe(t,i,n,r);return(e=ye(o,e,i))!==o&&null!=e&&Ue(t,i,n,e,r),e}function We(t,e,n){if(null==(e=Re(t,e,n,!1)))return e;t=t.l;let r=Dt(t);if(!(2&r)){const i=Le(e);i!==e&&Ue(t,r,n,e=i,!1)}return e}function He(t,e,n,r,i,o){const s=1===r;r=2===r,i=!!i;var a=!!(2&e)&&r;let u=je(t,e,1,3);e=Dt(t);var c=Gt(u),l=!!(2&c);const h=!!(4&c),f=!!(32&c);let d=l&&h||!!(2048&c);if(!h){var g,p=u,m=e;(g=!!(2&c))&&(m=Mt(m,2,!0));let t=!g,r=!0,i=0,o=0;for(;i<p.length;i++){const e=ye(p[i],n,m);if(e instanceof n){if(!g){const n=!!(2&Gt(e.l));t&&=!n,r&&=n}p[o++]=e}}o<i&&(p.length=o),c=Mt(c,4,!0),c=Mt(c,16,r),c=Mt(c,8,t),zt(p,c),l&&!a&&(Object.freeze(u),d=!0)}if(n=c,a=!!(8&c)||s&&!u.length,o&&!a){for(d&&(u=Ut(u),d=!1,n=0,c=Xe(c,e,i),e=Ue(t,e,1,u)),o=u,a=c,l=0;l<o.length;l++)(p=o[l])!==(c=Le(p))&&(o[l]=c);a=Mt(a,8,!0),c=a=Mt(a,16,!o.length)}return d||(s?c=Mt(c,!u.length||16&c&&(!h||f)?2:2048,!0):i||(c=Mt(c,32,!1)),c!==n&&zt(u,c),s&&(Object.freeze(u),d=!0)),r&&d&&(u=Ut(u),c=Xe(c,e,i),zt(u,c),Ue(t,e,1,u)),u}function qe(t,e){t=t.l;const n=Dt(t),r=!!(2&n);return He(t,n,e,r?1:2,!1,!r)}function Je(t,e,n,r,i){return null==r&&(r=void 0),ke(t,n,r,i)}function Ke(t,e,n){var r=Zr;null==n&&(n=void 0),t=t.l;let i=Dt(t);ne(i),(r=ze(t,i,r))&&r!==e&&null!=n&&(i=Ue(t,i,r)),Ue(t,i,e,n)}function Xe(t,e,n){return t=Mt(t,2,!!(2&e)),t=Mt(t,32,!!(32&e)&&n),Mt(t,2048,!1)}function Ye(t,e){var n=Ir;t=t.l;const r=Dt(t);ne(r),t=He(t,r,n,2),e=null!=e?e:new n,t.push(e),2&Gt(e.l)?Nt(t,8):Nt(t,16)}function Qe(t){return t=null==(t=Be(t,2))?t:le(t)?"number"==typeof t?fe(t):de(t):void 0}function Ze(t){return t??0}function tn(t,e,n){Me(t.l,e,ge,n)}function en(t,e,n){e.g?e.j(t,e.g,e.i,n,!0):e.j(t,e.i,n,!0)}Object.freeze({});var nn=class{constructor(t,e){this.l=Ae(t,e)}toJSON(){return rn(this,Ee(this.l,Te,void 0,void 0,!1,!1),!0)}B(){return!!(2&Gt(this.l))}};function rn(t,e,n){const r=t.constructor.A;var i=Dt(n?t.l:e),o=Ht(i),s=!1;if(r&&Yt){if(!n){var a;if((e=Ut(e)).length&&Xt(a=e[e.length-1]))for(s=0;s<r.length;s++)if(r[s]>=o){Object.assign(e[e.length-1]={},a);break}s=!0}var u;o=e,n=!n,t=Ht(a=Dt(t.l)),a=+!!(512&a)-1;for(let e=0;e<r.length;e++){var c=r[e];if(c<t){var l=o[c+=a];null==l?o[c]=n?te:$t():n&&l!==te&&Ct(l)}else{if(!u){var h=void 0;o.length&&Xt(h=o[o.length-1])?u=h:o.push(u={})}l=u[c],null==u[c]?u[c]=n?te:$t():n&&l!==te&&Ct(l)}}}if(!(u=e.length))return e;let f,d;if(Xt(h=e[u-1])){t:{var g=h;for(var p in o={},n=!1,g)t=g[p],Array.isArray(t)&&(a=t,(!W&&Zt(t,r,+p)||!R&&Kt(t)&&0===t.size)&&(t=null),t!=a&&(n=!0)),null!=t?o[p]=t:n=!0;if(n){for(let t in o){g=o;break t}g=null}}g!=h&&(f=!0),u--}for(i=+!!(512&i)-1;0<u&&(null==(h=e[p=u-1])||!W&&Zt(h,r,p-i)||!R&&Kt(h)&&0===h.size);u--)d=!0;return f||d?(e=s?e:Array.prototype.slice.call(e,0,u),s&&(e.length=u),g&&e.push(g),e):e}function on(t){return Array.isArray(t)?t[0]instanceof kt?t:[Zn,t]:[t,void 0]}function sn(t,e){if(Array.isArray(e)){var n=Gt(e);if(4&n)return e;for(var r=0,i=0;r<e.length;r++){const n=t(e[r]);null!=n&&(e[i++]=n)}return i<r&&(e.length=i),zt(e,-12289&(5|n)),2&n&&Object.freeze(e),e}}nn.prototype.D=qt,nn.prototype.toString=function(){return rn(this,this.l,!1).toString()};const an=Symbol();function un(t){let e=t[an];if(!e){const n=pn(t),r=xn(t),i=r.g;e=i?(t,e)=>i(t,e,r):(t,e)=>{for(;ht(e)&&4!=e.i;){var i=e.m,o=r[i];if(!o){var s=r.J;s&&(s=s[i])&&(o=r[i]=cn(s))}o&&o(e,t,i)||(i=(o=e).j,ft(o),o.I?o=void 0:(s=o.g.g-i,o.g.g=i,o=ut(o.g,s)),i=t,o&&(re||=Symbol(),(s=i[re])?s.push(o):i[re]=[o]))}n===ln||n===hn||n.T||(t[ie||=Symbol()]=n)},t[an]=e}return e}function cn(t){const e=(t=on(t))[0].g;if(t=t[1]){const n=un(t),r=xn(t).C;return(t,i,o)=>e(t,i,o,r,n)}return e}let ln,hn;const fn=Symbol();function dn(t,e,n){const r=n[1];let i;if(r){const n=r[fn];i=n?n.C:_e(r[0]),t[e]=n??r}i&&i===be?(t.K||(t.K=[])).push(e):n[0]&&(t.L||(t.L=[])).push(e)}function gn(t,e){return[t.j,!e||0<e[0]?void 0:e]}function pn(t){var e=t[fn];if(e)return e;if(!(e=yn(t,t[fn]={},gn,gn,dn)).L&&!e.K){let n=!0;for(let t in e){isNaN(t)||(n=!1);break}n?(e=_e(t[0])===be,e=t[fn]=e?hn||={C:_e(!0)}:ln||={}):e.T=!0}return e}function mn(t,e,n){t[e]=n}function yn(t,e,n,r,i=mn){e.C=_e(t[0]);let o=0;var s=t[++o];s&&s.constructor===Object&&(e.J=s,"function"==typeof(s=t[++o])&&(e.g=s,e.i=t[++o],s=t[++o]));const a={};for(;Array.isArray(s)&&"number"==typeof s[0]&&0<s[0];){for(var u=0;u<s.length;u++)a[s[u]]=s;s=t[++o]}for(u=1;void 0!==s;){let h;"number"==typeof s&&(u+=s,s=t[++o]);var c=void 0;if(s instanceof kt?h=s:(h=tr,o--),h.M){s=t[++o],c=t;var l=o;"function"==typeof s&&(s=s(),c[l]=s),c=s}for(l=u+1,"number"==typeof(s=t[++o])&&0>s&&(l-=s,s=t[++o]);u<l;u++){const t=a[u];i(e,u,c?r(h,c,t):n(h,t))}}return e}const vn=Symbol();function bn(t){let e=t[vn];if(!e){const n=Sn(t);e=(t,e)=>On(t,e,n),t[vn]=e}return e}const wn=Symbol();function _n(t){return t.i}function An(t,e){let n,r;const i=t.i;return(t,o,s)=>i(t,o,s,r||=Sn(e).C,n||=bn(e))}function Sn(t){let e=t[wn];return e||(e=yn(t,t[wn]={},_n,An),En in t&&wn in t&&(t.length=0),e)}const En=Symbol();function Tn(t,e){const n=t.g;return e?(t,r,i)=>n(t,r,i,e):n}function In(t,e,n){const r=t.g;let i,o;return(t,s,a)=>r(t,s,a,o||=xn(e).C,i||=un(e),n)}function xn(t){let e=t[En];return e||(pn(t),e=yn(t,t[En]={},Tn,In),En in t&&wn in t&&(t.length=0),e)}function Pn(t,e){var n=t[e];if(n)return n;if((n=t.J)&&(n=n[e])){var r=(n=on(n))[0].i;if(n=n[1]){const e=bn(n),i=Sn(n).C;n=(n=t.i)?n(i,e):(t,n,o)=>r(t,n,o,i,e)}else n=r;return t[e]=n}}function On(t,e,n){for(var r=Dt(t),i=+!!(512&r)-1,o=t.length,s=512&r?1:0,a=o+(256&r?-1:0);s<a;s++){const r=t[s];if(null==r)continue;const o=s-i,a=Pn(n,o);a&&a(e,r,o)}if(256&r){r=t[o-1];for(let t in r)i=+t,Number.isNaN(i)||null!=(o=r[t])&&(a=Pn(n,i))&&a(e,o,i)}if(t=re?t[re]:void 0)for(Pt(e,e.g.end()),n=0;n<t.length;n++)Pt(e,C(t[n])||F())}function Ln(t,e){return new kt(t,e,!1,!1)}function Bn(t,e){return new kt(t,e,!0,!1)}function Fn(t,e,n){Ue(t,Dt(t),e,n)}function kn(t,e,n){t:if(null!=e){if(le(e)){if("string"==typeof e){e=de(e);break t}if("number"==typeof e){e=fe(e);break t}}e=void 0}null!=e&&("string"==typeof e&&_t(e),null!=e&&(Ot(t,n,0),"number"==typeof e?(t=t.g,X(e),Et(t,J,K)):(n=_t(e),Et(t.g,n.i,n.g))))}function Un(t,e,n){null!=(e=he(e))&&null!=e&&(Ot(t,n,0),It(t.g,e))}function jn(t,e,n){null!=(e=null==e?e:"boolean"==typeof e||"number"==typeof e?!!e:void 0)&&(Ot(t,n,0),t.g.g.push(e?1:0))}function Vn(t,e,n){null!=(e=me(e))&&Ft(t,n,c(e))}function Cn(t,e,n,r,i){null!=(e=e instanceof nn?e.l:Array.isArray(e)?Ae(e,r[0],r[1]):void 0)&&(n=Lt(t,n),i(e,t),Bt(t,n))}function Nn(t,e,n){null!=(e=null==e||"string"==typeof e||L(e)||e instanceof N?e:void 0)&&Ft(t,n,$(e).buffer)}var Mn,Gn=Ln((function(t,e,n){return 5===t.i&&(Fn(e,n,t.g.v()),!0)}),(function(t,e,n){null!=(e=ae(e))&&(Ot(t,n,5),t=t.g,Y(e),xt(t))})),Dn=Bn((function(t,e,n){return(5===t.i||2===t.i)&&(e=je(e,Dt(e),n,2,!1),2==t.i?mt(t,ct.prototype.v,e):e.push(t.g.v()),!0)}),(function(t,e,n){if(null!=(e=sn(ae,e))&&e.length){Ot(t,n,2),Tt(t.g,4*e.length);for(let r=0;r<e.length;r++)n=t.g,Y(e[r]),xt(n)}})),zn=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,ot(t.g,Z)),!0)}),kn),$n=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,0===(t=ot(t.g,Z))?void 0:t),!0)}),kn),Rn=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,ot(t.g,Q)),!0)}),(function(t,e,n){t:if(null!=e){if(le(e)){if("string"==typeof e){var r=Math.trunc(Number(e));if(Number.isSafeInteger(r))e=String(r);else{-1!==(r=e.indexOf("."))&&(e=e.substring(0,r)),et(e);var i=J;r=K,i>>>=0,2097151>=(r>>>=0)?e=""+(4294967296*r+i):"function"==typeof BigInt?e=""+(BigInt(r)<<BigInt(32)|BigInt(i)):(i=(16777215&i)+6777216*(e=16777215&(i>>>24|r<<8))+6710656*(r=r>>16&65535),e+=8147497*r,r*=2,1e7<=i&&(e+=Math.floor(i/1e7),i%=1e7),1e7<=e&&(r+=Math.floor(e/1e7),e%=1e7),e=r+tt(e)+tt(i))}break t}if("number"==typeof e){e=Math.trunc(e);break t}}e=void 0}null!=e&&("string"==typeof e&&vt(e),null!=e&&(Ot(t,n,0),"number"==typeof e?(t=t.g,X(e),Et(t,J,K)):(n=vt(e),Et(t.g,n.i,n.g))))})),Wn=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,t.g.i()),!0)}),Un),Hn=Bn((function(t,e,n){return(0===t.i||2===t.i)&&(e=je(e,Dt(e),n,2,!1),2==t.i?mt(t,ct.prototype.i,e):e.push(t.g.i()),!0)}),(function(t,e,n){if(null!=(e=sn(he,e))&&e.length){n=Lt(t,n);for(let n=0;n<e.length;n++)It(t.g,e[n]);Bt(t,n)}})),qn=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,0===(t=t.g.i())?void 0:t),!0)}),Un),Jn=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,st(t.g)),!0)}),jn),Kn=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,!1===(t=st(t.g))?void 0:t),!0)}),jn),Xn=Bn((function(t,e,n){return 2===t.i&&(Me(e,n,Ge,t=gt(t)),!0)}),(function(t,e,n){if(null!=(e=sn(me,e)))for(let i=0;i<e.length;i++){var r=e[i];null!=r&&Ft(t,n,c(r))}})),Yn=Ln((function(t,e,n){return 2===t.i&&(Fn(e,n,""===(t=gt(t))?void 0:t),!0)}),Vn),Qn=Ln((function(t,e,n){return 2===t.i&&(Fn(e,n,gt(t)),!0)}),Vn),Zn=new kt((function(t,e,n,r,i){return 2===t.i&&(dt(t,$e(e,r,n,!0),i),!0)}),Cn,!1,!0),tr=new kt((function(t,e,n,r,i){return 2===t.i&&(dt(t,$e(e,r,n),i),!0)}),Cn,!1,!0);Mn=new kt((function(t,e,n,r,i){if(2!==t.i)return!1;r=Ae(void 0,r[0],r[1]);let o=Dt(e);ne(o);let s=je(e,o,n,3);return o=Dt(e),4&Gt(s)&&(s=Ut(s),zt(s,-2079&(1|Gt(s))),Ue(e,o,n,s)),s.push(r),dt(t,r,i),!0}),(function(t,e,n,r,i){if(Array.isArray(e))for(let o=0;o<e.length;o++)Cn(t,e[o],n,r,i)}),!0,!0);var er=new kt((function(t,e,n,r,i,o){if(2!==t.i)return!1;let s=Dt(e);return ne(s),(o=ze(e,s,o))&&n!==o&&Ue(e,s,o),dt(t,e=$e(e,r,n),i),!0}),Cn,!1,!0),nr=Ln((function(t,e,n){return 2===t.i&&(Fn(e,n,pt(t)),!0)}),Nn),rr=Ln((function(t,e,n){return 0===t.i&&(Fn(e,n,t.g.i()),!0)}),(function(t,e,n){null!=(e=he(e))&&(e=parseInt(e,10),Ot(t,n,0),It(t.g,e))})),ir=Bn((function(t,e,n){return(0===t.i||2===t.i)&&(e=je(e,Dt(e),n,2,!1),2==t.i?mt(t,ct.prototype.V,e):e.push(t.g.i()),!0)}),(function(t,e,n){if(null!=(e=sn(he,e))&&e.length){n=Lt(t,n);for(let n=0;n<e.length;n++)It(t.g,e[n]);Bt(t,n)}}));class or{constructor(t,e){this.i=t,this.g=e,this.j=Je,this.defaultValue=void 0}}function sr(t,e){return(n,r)=>{t:{if(yt.length){const t=yt.pop();t.s(r),rt(t.g,n,r),n=t}else n=new class{constructor(t,e){if(lt.length){const n=lt.pop();rt(n,t,e),t=n}else t=new ct(t,e);this.g=t,this.j=this.g.g,this.i=this.m=-1,this.s(e)}s({I:t=!1}={}){this.I=t}}(n,r);try{const r=new t,o=r.l;un(e)(o,n),ie&&delete o[ie];var i=r;break t}finally{n.g.clear(),n.m=-1,n.i=-1,100>yt.length&&yt.push(n)}i=void 0}return i}}var ar=[0,Yn,Ln((function(t,e,n){return 2===t.i&&(Fn(e,n,(t=pt(t))===V()?void 0:t),!0)}),(function(t,e,n){if(null!=e){if(e instanceof nn){const r=e.X;return void(r&&(e=r(e),null!=e&&Ft(t,n,$(e).buffer)))}if(Array.isArray(e))return}Nn(t,e,n)}))],ur=[0,Qn],cr=[0,Wn,rr,Jn,-1,Hn,rr,-1],lr=[0,Jn,-1],hr=class extends nn{constructor(){super()}};hr.A=[6];var fr=[0,Jn,Qn,Jn,rr,-1,ir,Qn,-1,lr,rr],dr=[0,Qn,-2],gr=class extends nn{constructor(){super()}},pr=[0],mr=[0,Wn,Jn,-2],yr=class extends nn{constructor(t){super(t,2)}},vr={},br=[-2,vr,Jn];vr[336783863]=[0,Qn,Jn,-1,Wn,[0,[1,2,3,4,5],er,pr,er,fr,er,dr,er,mr,er,cr],ur];var wr=[0,Yn,Kn],_r=[0,$n,-1,Kn,-3,$n,Hn,Yn,qn,$n,-1,Kn,qn,Kn,-2,Yn],Ar=[-1,{}],Sr=[0,Qn,1,Ar],Er=[0,Qn,Xn,Ar];function Tr(t){tn(t,3,"TEXT:text_in")}var Ir=class extends nn{constructor(t){super(t,500)}s(t){return Je(this,0,7,t)}};Ir.A=[3,4,5,6,8,13,17,1005];var xr=[-500,Yn,-1,Xn,-3,br,Mn,ar,qn,-1,Sr,Er,Mn,wr,Yn,_r,qn,Xn,987,Xn],Pr=[0,Yn,-1,Ar],Or=[-500,Qn,-1,[-1,{}],998,Qn],Lr=[-500,Qn,Xn,-1,[-2,{},Jn],997,Xn,-1],Br=[-500,Qn,Xn,Ar,998,Xn];function Fr(t){tn(t,10,"text_in")}var kr,Ur=class extends nn{constructor(){super(void 0,500)}s(t){return Je(this,0,1001,t)}};Ur.A=[1,6,7,9,10,15,16,17,14,1002],Ur.prototype.g=(kr=[-500,Mn,xr,4,Mn,Or,Mn,Lr,qn,Mn,Br,Xn,qn,Sr,Er,Mn,Pr,Xn,-2,_r,Yn,-1,Kn,979,Ar,Mn,ar],function(){const t=new class{constructor(){this.j=[],this.i=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const t=this.g;return this.g=[],t}}}};On(this.l,t,Sn(kr)),Pt(t,t.g.end());const e=new Uint8Array(t.i),n=t.j,r=n.length;let i=0;for(let t=0;t<r;t++){const r=n[t];e.set(r,i),i+=r.length}return t.j=[e],e});var jr=class extends nn{constructor(t){super(t)}},Vr=[0,Wn,Gn,Qn,-1],Cr=class extends nn{constructor(t){super(t)}g(){return qe(this,jr)}};Cr.A=[1];var Nr=class extends nn{constructor(t){super(t)}},Mr=[0,1,Wn,Qn,[0,Mn,Vr]],Gr=class extends nn{constructor(t){super(t)}};Gr.A=[1];var Dr=sr(Gr,[0,Mn,Mr,zn]),zr=class extends nn{constructor(t){super(t)}};zr.A=[1];var $r=class extends nn{constructor(t){super(t)}N(){const t=Ve(this);return null==t?V():t}},Rr=class extends nn{constructor(t){super(t)}},Wr=[1,2],Hr=[0,Wr,er,[0,Dn],er,[0,nr],Wn,Qn],qr=class extends nn{constructor(t){super(t)}};qr.A=[1];var Jr=sr(qr,[0,Mn,Hr,zn]),Kr=class extends nn{constructor(t){super(t)}};Kr.A=[4,5];var Xr=class extends nn{constructor(t){super(t)}},Yr=[0,Jn,-1],Qr=class extends nn{constructor(t){super(t)}},Zr=[1,2,3,4,5],ti=class extends nn{constructor(t){super(t)}g(){return null!=Ve(this)}i(){return null!=me(Be(this,2))}},ei=class extends nn{constructor(t){super(t)}},ni=[0,[0,nr,Qn,[0,Wn,zn,-1],[0,Rn,zn]],Jn,[0,Zr,er,mr,er,fr,er,cr,er,pr,er,dr],rr],ri=class extends nn{constructor(t){super(t)}},ii=new or(462704549,ri);vr[462704549]=[0,ni,[0,Qn,Wn,Gn,Xn,-1]];var oi=class extends nn{constructor(t){super(t)}},si=new or(477589892,oi);function ai(e,n){if(n=n?xe(n):new Kr,void 0!==e.displayNamesLocale?ke(n,1,pe(e.displayNamesLocale)):void 0===e.displayNamesLocale&&ke(n,1),void 0!==e.maxResults){var r=e.maxResults;if(null!=r){if("number"!=typeof r)throw se(e=Error("int32"),"warning"),e;if(!Number.isFinite(r)){const e=Error();se(e,"incident"),function(e){t.setTimeout((()=>{throw e}),0)}(e)}}ke(n,2,r)}else"maxResults"in e&&ke(n,2);if(void 0!==e.scoreThreshold){if(null!=(r=e.scoreThreshold)&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);ke(n,3,r)}else"scoreThreshold"in e&&ke(n,3);return void 0!==e.categoryAllowlist?Ce(n,4,e.categoryAllowlist):"categoryAllowlist"in e&&ke(n,4),void 0!==e.categoryDenylist?Ce(n,5,e.categoryDenylist):"categoryDenylist"in e&&ke(n,5),n}function ui(t){const e={classifications:qe(t,Nr).map((t=>function(t,e=-1,n=""){return{categories:t.map((t=>{var e=he(Be(t,1))??0??-1;const n=t.l;let r=Dt(n);const i=Fe(n,r,2),o=ae(i);return null!=o&&o!==i&&Ue(n,r,2,o),{index:e,score:o??0??0,categoryName:me(Be(t,3))??""??"",displayName:me(Be(t,4))??""??""}})),headIndex:e,headName:n}}(We(t,Cr,4)?.g()??[],he(Be(t,2))??0,me(Be(t,3))??"")))};return null!=Qe(t)&&(e.timestampMs=Ze(Qe(t))),e}function ci(t){return Array.from(t,(t=>127<t?t-256:t))}function li(t,e){if(t.length!==e.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);let n=0,r=0,i=0;for(let o=0;o<t.length;o++)n+=t[o]*e[o],r+=t[o]*t[o],i+=e[o]*e[o];if(0>=r||0>=i)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return n/Math.sqrt(r*i)}let hi;vr[477589892]=[0,ni,Yr];const fi=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 di(){if(void 0===hi)try{await WebAssembly.instantiate(fi),hi=!0}catch{hi=!1}return hi}async function gi(t,e=""){const n=await di()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${e}/${t}_${n}.js`,wasmBinaryPath:`${e}/${t}_${n}.wasm`}}var pi=class{};async function mi(t){if("function"!=typeof importScripts){const e=document.createElement("script");return e.src=t.toString(),e.crossOrigin="anonymous",new Promise(((t,n)=>{e.addEventListener("load",(()=>{t()}),!1),e.addEventListener("error",(t=>{n(t)}),!1),document.body.appendChild(e)}))}importScripts(t.toString())}pi.forVisionTasks=function(t){return gi("vision",t)},pi.forTextTasks=function(t){return gi("text",t)},pi.forAudioTasks=function(t){return gi("audio",t)},pi.isSimdSupported=function(){return di()};function yi(t,e,n){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),n(e=t.h.stringToNewUTF8(e)),t.h._free(e)}function vi(t,e,n){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(e.length);for(let n=0;n<e.length;n++)r[n]=t.h.stringToNewUTF8(e[n]);e=t.h._malloc(4*r.length),t.h.HEAPU32.set(r,e>>2),n(e);for(const e of r)t.h._free(e);t.h._free(e)}function bi(t,e,n){t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[e]=n}function wi(t,e,n){let r=[];t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[e]=(t,e,i)=>{e?(n(r,i),r=[]):r.push(t)}}const _i=function(t){return class extends t{U(){this.h._registerModelResourcesGraphService()}}}(class{constructor(t,e){this.j=!0,this.h=t,this.g=null,this.i=0,this.m="function"==typeof this.h._addIntToInputStream,void 0!==e?this.h.canvas=e:((t="undefined"==typeof OffscreenCanvas)||(t=(t=navigator.userAgent).includes("Safari")&&!t.includes("Chrome")),t?(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.h.canvas=document.createElement("canvas")):this.h.canvas=new OffscreenCanvas(1,1))}async initializeGraph(t){const e=await(await fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),this.setGraph(new Uint8Array(e),t)}setGraphFromString(t){this.setGraph((new TextEncoder).encode(t),!1)}setGraph(t,e){const n=t.length,r=this.h._malloc(n);this.h.HEAPU8.set(t,r),e?this.h._changeBinaryGraph(n,r):this.h._changeTextGraph(n,r),this.h._free(r)}configureAudio(t,e,n,r,i){this.h._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),yi(this,r||"input_audio",(r=>{yi(this,i=i||"audio_header",(i=>{this.h._configureAudio(r,i,t,e,n)}))}))}setAutoResizeCanvas(t){this.j=t}setAutoRenderToScreen(t){this.h._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.h.gpuOriginForWebTexturesIsBottomLeft=t}attachErrorListener(t){this.h.errorListener=t}attachEmptyPacketListener(t,e){this.h.emptyPacketListeners=this.h.emptyPacketListeners||{},this.h.emptyPacketListeners[t]=e}addAudioToStream(t,e,n){this.addAudioToStreamWithShape(t,0,0,e,n)}addAudioToStreamWithShape(t,e,n,r,i){const o=4*t.length;this.i!==o&&(this.g&&this.h._free(this.g),this.g=this.h._malloc(o),this.i=o),this.h.HEAPF32.set(t,this.g/4),yi(this,r,(t=>{this.h._addAudioToInputStream(this.g,e,n,t,i)}))}addGpuBufferToStream(t,e,n){yi(this,e,(e=>{if(!this.h.canvas)throw Error("No OpenGL canvas configured.");e?this.h._bindTextureToStream(e):this.h._bindTextureToCanvas();var r=this.h.canvas.getContext("webgl2")||this.h.canvas.getContext("webgl");if(!r)throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");let i;this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),t.videoWidth?(r=t.videoWidth,i=t.videoHeight):t.naturalWidth?(r=t.naturalWidth,i=t.naturalHeight):(r=t.width,i=t.height),!this.j||r===this.h.canvas.width&&i===this.h.canvas.height||(this.h.canvas.width=r,this.h.canvas.height=i);const[o,s]=[r,i];this.h._addBoundTextureToStream(e,o,s,n)}))}addBoolToStream(t,e,n){yi(this,e,(e=>{this.h._addBoolToInputStream(t,e,n)}))}addDoubleToStream(t,e,n){yi(this,e,(e=>{this.h._addDoubleToInputStream(t,e,n)}))}addFloatToStream(t,e,n){yi(this,e,(e=>{this.h._addFloatToInputStream(t,e,n)}))}addIntToStream(t,e,n){yi(this,e,(e=>{this.h._addIntToInputStream(t,e,n)}))}addStringToStream(t,e,n){yi(this,e,(e=>{yi(this,t,(t=>{this.h._addStringToInputStream(t,e,n)}))}))}addStringRecordToStream(t,e,n){yi(this,e,(e=>{vi(this,Object.keys(t),(r=>{vi(this,Object.values(t),(i=>{this.h._addFlatHashMapToInputStream(r,i,Object.keys(t).length,e,n)}))}))}))}addProtoToStream(t,e,n,r){yi(this,n,(n=>{yi(this,e,(e=>{const i=this.h._malloc(t.length);this.h.HEAPU8.set(t,i),this.h._addProtoToInputStream(i,t.length,e,n,r),this.h._free(i)}))}))}addEmptyPacketToStream(t,e){yi(this,t,(t=>{this.h._addEmptyPacketToInputStream(t,e)}))}addBoolVectorToStream(t,e,n){yi(this,e,(e=>{const r=this.h._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const e of t)this.h._addBoolVectorEntry(r,e);this.h._addBoolVectorToInputStream(r,e,n)}))}addDoubleVectorToStream(t,e,n){yi(this,e,(e=>{const r=this.h._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const e of t)this.h._addDoubleVectorEntry(r,e);this.h._addDoubleVectorToInputStream(r,e,n)}))}addFloatVectorToStream(t,e,n){yi(this,e,(e=>{const r=this.h._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const e of t)this.h._addFloatVectorEntry(r,e);this.h._addFloatVectorToInputStream(r,e,n)}))}addIntVectorToStream(t,e,n){yi(this,e,(e=>{const r=this.h._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const e of t)this.h._addIntVectorEntry(r,e);this.h._addIntVectorToInputStream(r,e,n)}))}addStringVectorToStream(t,e,n){yi(this,e,(e=>{const r=this.h._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const e of t)yi(this,e,(t=>{this.h._addStringVectorEntry(r,t)}));this.h._addStringVectorToInputStream(r,e,n)}))}addBoolToInputSidePacket(t,e){yi(this,e,(e=>{this.h._addBoolToInputSidePacket(t,e)}))}addDoubleToInputSidePacket(t,e){yi(this,e,(e=>{this.h._addDoubleToInputSidePacket(t,e)}))}addFloatToInputSidePacket(t,e){yi(this,e,(e=>{this.h._addFloatToInputSidePacket(t,e)}))}addIntToInputSidePacket(t,e){yi(this,e,(e=>{this.h._addIntToInputSidePacket(t,e)}))}addStringToInputSidePacket(t,e){yi(this,e,(e=>{yi(this,t,(t=>{this.h._addStringToInputSidePacket(t,e)}))}))}addProtoToInputSidePacket(t,e,n){yi(this,n,(n=>{yi(this,e,(e=>{const r=this.h._malloc(t.length);this.h.HEAPU8.set(t,r),this.h._addProtoToInputSidePacket(r,t.length,e,n),this.h._free(r)}))}))}addBoolVectorToInputSidePacket(t,e){yi(this,e,(e=>{const n=this.h._allocateBoolVector(t.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(const e of t)this.h._addBoolVectorEntry(n,e);this.h._addBoolVectorToInputSidePacket(n,e)}))}addDoubleVectorToInputSidePacket(t,e){yi(this,e,(e=>{const n=this.h._allocateDoubleVector(t.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(const e of t)this.h._addDoubleVectorEntry(n,e);this.h._addDoubleVectorToInputSidePacket(n,e)}))}addFloatVectorToInputSidePacket(t,e){yi(this,e,(e=>{const n=this.h._allocateFloatVector(t.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(const e of t)this.h._addFloatVectorEntry(n,e);this.h._addFloatVectorToInputSidePacket(n,e)}))}addIntVectorToInputSidePacket(t,e){yi(this,e,(e=>{const n=this.h._allocateIntVector(t.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(const e of t)this.h._addIntVectorEntry(n,e);this.h._addIntVectorToInputSidePacket(n,e)}))}addStringVectorToInputSidePacket(t,e){yi(this,e,(e=>{const n=this.h._allocateStringVector(t.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(const e of t)yi(this,e,(t=>{this.h._addStringVectorEntry(n,t)}));this.h._addStringVectorToInputSidePacket(n,e)}))}attachBoolListener(t,e){bi(this,t,e),yi(this,t,(t=>{this.h._attachBoolListener(t)}))}attachBoolVectorListener(t,e){wi(this,t,e),yi(this,t,(t=>{this.h._attachBoolVectorListener(t)}))}attachIntListener(t,e){bi(this,t,e),yi(this,t,(t=>{this.h._attachIntListener(t)}))}attachIntVectorListener(t,e){wi(this,t,e),yi(this,t,(t=>{this.h._attachIntVectorListener(t)}))}attachDoubleListener(t,e){bi(this,t,e),yi(this,t,(t=>{this.h._attachDoubleListener(t)}))}attachDoubleVectorListener(t,e){wi(this,t,e),yi(this,t,(t=>{this.h._attachDoubleVectorListener(t)}))}attachFloatListener(t,e){bi(this,t,e),yi(this,t,(t=>{this.h._attachFloatListener(t)}))}attachFloatVectorListener(t,e){wi(this,t,e),yi(this,t,(t=>{this.h._attachFloatVectorListener(t)}))}attachStringListener(t,e){bi(this,t,e),yi(this,t,(t=>{this.h._attachStringListener(t)}))}attachStringVectorListener(t,e){wi(this,t,e),yi(this,t,(t=>{this.h._attachStringVectorListener(t)}))}attachProtoListener(t,e,n){bi(this,t,e),yi(this,t,(t=>{this.h._attachProtoListener(t,n||!1)}))}attachProtoVectorListener(t,e,n){wi(this,t,e),yi(this,t,(t=>{this.h._attachProtoVectorListener(t,n||!1)}))}attachAudioListener(t,e,n){this.h._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),bi(this,t,((t,n)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),e(t,n)})),yi(this,t,(t=>{this.h._attachAudioListener(t,n||!1)}))}finishProcessing(){this.h._waitUntilIdle()}closeGraph(){this.h._closeGraph(),this.h.simpleListeners=void 0,this.h.emptyPacketListeners=void 0}});var Ai=class extends _i{};async function Si(t,e,n){return t=await(async(t,e,n,r)=>{if(e&&await mi(e),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(n&&(await mi(n),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&r&&((e=self.Module).locateFile=r.locateFile,r.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=r.mainScriptUrlOrBlob)),r=await self.ModuleFactory(self.Module||r),self.ModuleFactory=self.Module=void 0,new t(r,null)})(t,e.wasmLoaderPath,e.assetLoaderPath,{locateFile:t=>t.endsWith(".wasm")?e.wasmBinaryPath.toString():e.assetBinaryPath&&t.endsWith(".data")?e.assetBinaryPath.toString():t}),await t.s(n),t}async function Ei(t,e,n){return Si(t,e,n)}function Ti(t,e){const n=We(t.baseOptions,ti,1)||new ti;"string"==typeof e?(ke(n,2,pe(e)),ke(n,1)):e instanceof Uint8Array&&(ke(n,1,Qt(e,!1,!1)),ke(n,2)),Je(t.baseOptions,0,1,n)}function Ii(t,e){const n=e.baseOptions||{};if(e.baseOptions?.modelAssetBuffer&&e.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(We(t.baseOptions,ti,1)?.g()||We(t.baseOptions,ti,1)?.i()||e.baseOptions?.modelAssetBuffer||e.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");return function(t,e){let n=We(t.baseOptions,Qr,3);if(!n){var r=n=new Qr;Ke(r,4,new gr)}"delegate"in e&&("GPU"===e.delegate?Ke(e=n,2,r=new hr):Ke(e=n,4,r=new gr)),Je(t.baseOptions,0,3,n)}(t,n),n.modelAssetPath?fetch(n.modelAssetPath.toString()).then((t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${n.modelAssetPath} (${t.status})`)})).then((e=>{try{t.g.h.FS_unlink("/model.dat")}catch{}t.g.h.FS_createDataFile("/","model.dat",new Uint8Array(e),!0,!1,!1),Ti(t,"/model.dat"),t.v()})):(Ti(t,n.modelAssetBuffer),t.v(),Promise.resolve())}function xi(t){try{const e=t.m.length;if(1===e)throw Error(t.m[0].message);if(1<e)throw Error("Encountered multiple errors: "+t.m.map((t=>t.message)).join(", "))}finally{t.m=[]}}function Pi(t,e){t.j=Math.max(t.j,e)}var Oi=class{constructor(t){this.g=t,this.m=[],this.j=0,this.g.setAutoRenderToScreen(!1)}setGraph(t,e){this.g.attachErrorListener(((t,e)=>{this.m.push(Error(e))})),this.g.U(),this.g.setGraph(t,e),xi(this)}finishProcessing(){this.g.finishProcessing(),xi(this)}close(){this.g.closeGraph()}};Oi.prototype.close=Oi.prototype.close;var Li=class extends Oi{constructor(t,e){super(new Ai(t,e)),this.o={languages:[]},this.i=new ri,t=new ei,Je(this.i,0,1,t)}s(t){var e=ai(t,We(this.i,Kr,2));return Je(this.i,0,2,e),Ii(this,t)}get baseOptions(){return We(this.i,ei,1)}set baseOptions(t){Je(this.i,0,1,t)}R(t){return this.o={languages:[]},this.g.addStringToStream(t,"text_in",this.j+1),this.finishProcessing(),this.o}v(){var t=new Ur;Fr(t),tn(t,15,"classifications_out");const e=new yr;en(e,ii,this.i);const n=new Ir;Ne(n,pe("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),Tr(n),tn(n,4,"CLASSIFICATIONS:classifications_out"),n.s(e),Ye(t,n),this.g.attachProtoListener("classifications_out",((t,e)=>{if(({classifications:t}=ui(Dr(t))),1!==t.length)throw Error(`Expected 1 classification head, got ${t.length}`);this.o.languages=t[0].categories.map((t=>({languageCode:t.categoryName,probability:t.score}))),Pi(this,e)})),this.g.attachEmptyPacketListener("classifications_out",(t=>{Pi(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Li.prototype.detect=Li.prototype.R,Li.prototype.setOptions=Li.prototype.s,Li.createFromModelPath=function(t,e){return Ei(Li,t,{baseOptions:{modelAssetPath:e}})},Li.createFromModelBuffer=function(t,e){return Ei(Li,t,{baseOptions:{modelAssetBuffer:e}})},Li.createFromOptions=function(t,e){return Ei(Li,t,e)};var Bi=class extends Oi{constructor(t,e){super(new Ai(t,e)),this.o={classifications:[]},this.i=new ri,t=new ei,Je(this.i,0,1,t)}s(t){var e=ai(t,We(this.i,Kr,2));return Je(this.i,0,2,e),Ii(this,t)}get baseOptions(){return We(this.i,ei,1)}set baseOptions(t){Je(this.i,0,1,t)}P(t){return this.o={classifications:[]},this.g.addStringToStream(t,"text_in",this.j+1),this.finishProcessing(),this.o}v(){var t=new Ur;Fr(t),tn(t,15,"classifications_out");const e=new yr;en(e,ii,this.i);const n=new Ir;Ne(n,pe("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),Tr(n),tn(n,4,"CLASSIFICATIONS:classifications_out"),n.s(e),Ye(t,n),this.g.attachProtoListener("classifications_out",((t,e)=>{this.o=ui(Dr(t)),Pi(this,e)})),this.g.attachEmptyPacketListener("classifications_out",(t=>{Pi(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Bi.prototype.classify=Bi.prototype.P,Bi.prototype.setOptions=Bi.prototype.s,Bi.createFromModelPath=function(t,e){return Ei(Bi,t,{baseOptions:{modelAssetPath:e}})},Bi.createFromModelBuffer=function(t,e){return Ei(Bi,t,{baseOptions:{modelAssetBuffer:e}})},Bi.createFromOptions=function(t,e){return Ei(Bi,t,e)};var Fi=class extends Oi{constructor(t,e){super(new Ai(t,e)),this.o={embeddings:[]},this.i=new oi,t=new ei,Je(this.i,0,1,t)}s(t){var e=this.i,n=We(this.i,Xr,2);return n=n?xe(n):new Xr,void 0!==t.l2Normalize?ke(n,1,ue(t.l2Normalize)):"l2Normalize"in t&&ke(n,1),void 0!==t.quantize?ke(n,2,ue(t.quantize)):"quantize"in t&&ke(n,2),Je(e,0,2,n),Ii(this,t)}get baseOptions(){return We(this.i,ei,1)}set baseOptions(t){Je(this.i,0,1,t)}S(t){return this.g.addStringToStream(t,"text_in",this.j+1),this.finishProcessing(),this.o}v(){var t=new Ur;Fr(t),tn(t,15,"embeddings_out");const e=new yr;en(e,si,this.i);const n=new Ir;Ne(n,pe("mediapipe.tasks.text.text_embedder.TextEmbedderGraph")),Tr(n),tn(n,4,"EMBEDDINGS:embeddings_out"),n.s(e),Ye(t,n),this.g.attachProtoListener("embeddings_out",((t,e)=>{t=Jr(t),this.o=function(t){return{embeddings:qe(t,Rr).map((t=>{const e={headIndex:he(Be(t,3))??0??-1,headName:me(Be(t,4))??""??""};if(void 0!==Re(t,zr,De(t,1))){var n=2,r=void 0;t=We(t,zr,De(t,1)).l;let s=Dt(t);2&s&&(n=1);let a=je(t,s,1,1|((r=!!r)?2:0));s=Dt(t);var i=Gt(a);let u=i,c=!!(2&i);var o=c&&!!(4&i);if(!(4&i)){Object.isFrozen(a)&&(a=Ut(a),u=0,c=!!(2&(i=Xe(i,s,r))),s=Ue(t,s,1,a)),i=Mt(i,4,!1),i=Mt(i,4096,!1),i=Mt(i,8192,!1);let e=0,n=0;for(;e<a.length;e++){const t=ae(a[e]);null!=t&&(a[n++]=t)}n<e&&(a.length=n),i=Mt(i,20,!0)}o||((o=1===n)&&(i=Mt(i,2,!0)),i!==u&&zt(a,i),(o||c)&&Object.freeze(a)),2===n&&c&&(a=Ut(a),i=Xe(i,s,r),zt(a,i),Ue(t,s,1,a)),e.floatEmbedding=a}else n=new Uint8Array(0),e.quantizedEmbedding=We(t,$r,De(t,2))?.N()?.O()??n;return e})),timestampMs:Ze(Qe(t))}}(t),Pi(this,e)})),this.g.attachEmptyPacketListener("embeddings_out",(t=>{Pi(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Fi.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=li(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=li(ci(t.quantizedEmbedding),ci(e.quantizedEmbedding))}return t},Fi.prototype.embed=Fi.prototype.S,Fi.prototype.setOptions=Fi.prototype.s,Fi.createFromModelPath=function(t,e){return Ei(Fi,t,{baseOptions:{modelAssetPath:e}})},Fi.createFromModelBuffer=function(t,e){return Ei(Fi,t,{baseOptions:{modelAssetBuffer:e}})},Fi.createFromOptions=function(t,e){return Ei(Fi,t,e)};export{pi as FilesetResolver,Li as LanguageDetector,Oi as TaskRunner,Bi as TextClassifier,Fi as TextEmbedder};
|
|
1
|
+
var t="undefined"!=typeof self?self:{};function e(e,n){t:{for(var r=["CLOSURE_FLAGS"],i=t,o=0;o<r.length;o++)if(null==(i=i[r[o]])){r=null;break t}r=i}return null!=(e=r&&r[e])?e:n}function n(){throw Error("Invalid UTF8")}function r(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}let i,o;const s="undefined"!=typeof TextDecoder;let a;const u="undefined"!=typeof TextEncoder;function c(t){if(u)t=(a||=new TextEncoder).encode(t);else{let n=0;const r=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var e=t.charCodeAt(i);if(128>e)r[n++]=e;else{if(2048>e)r[n++]=e>>6|192;else{if(55296<=e&&57343>=e){if(56319>=e&&i<t.length){const o=t.charCodeAt(++i);if(56320<=o&&57343>=o){e=1024*(e-55296)+o-56320+65536,r[n++]=e>>18|240,r[n++]=e>>12&63|128,r[n++]=e>>6&63|128,r[n++]=63&e|128;continue}i--}e=65533}r[n++]=e>>12|224,r[n++]=e>>6&63|128}r[n++]=63&e|128}}t=n===r.length?r:r.subarray(0,n)}return t}var l,h=e(610401301,!1),f=e(572417392,!0);const d=t.navigator;function g(t){return!!h&&(!!l&&l.brands.some((({brand:e})=>e&&-1!=e.indexOf(t))))}function p(e){var n;return(n=t.navigator)&&(n=n.userAgent)||(n=""),-1!=n.indexOf(e)}function m(){return!!h&&(!!l&&0<l.brands.length)}function y(){return m()?g("Chromium"):(p("Chrome")||p("CriOS"))&&!(!m()&&p("Edge"))||p("Silk")}l=d&&d.userAgentData||null;var v=!m()&&(p("Trident")||p("MSIE"));!p("Android")||y(),y(),p("Safari")&&(y()||!m()&&p("Coast")||!m()&&p("Opera")||!m()&&p("Edge")||(m()?g("Microsoft Edge"):p("Edg/"))||m()&&g("Opera"));var b={},w=null;function _(t){var e=t.length,n=3*e/4;n%3?n=Math.floor(n):-1!="=.".indexOf(t[e-1])&&(n=-1!="=.".indexOf(t[e-2])?n-2:n-1);var r=new Uint8Array(n),i=0;return function(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),i=w[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}A();for(var r=0;;){var i=n(-1),o=n(0),s=n(64),a=n(64);if(64===a&&-1===i)break;e(i<<2|o>>4),64!=s&&(e(o<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,(function(t){r[i++]=t})),i!==n?r.subarray(0,i):r}function A(){if(!w){w={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));b[n]=r;for(var i=0;i<r.length;i++){var o=r[i];void 0===w[o]&&(w[o]=i)}}}}var S="undefined"!=typeof Uint8Array,E=!v&&"function"==typeof btoa;function T(t){if(!E){var e;void 0===e&&(e=0),A(),e=b[e];var n=Array(Math.floor(t.length/3)),r=e[64]||"";let u=0,c=0;for(;u<t.length-2;u+=3){var i=t[u],o=t[u+1],s=t[u+2],a=e[i>>2];i=e[(3&i)<<4|o>>4],o=e[(15&o)<<2|s>>6],s=e[63&s],n[c++]=a+i+o+s}switch(a=0,s=r,t.length-u){case 2:s=e[(15&(a=t[u+1]))<<2]||r;case 1:t=t[u],n[c]=e[t>>2]+e[(3&t)<<4|a>>4]+s+r}return n.join("")}for(e="",n=0,r=t.length-10240;n<r;)e+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));return e+=String.fromCharCode.apply(null,n?t.subarray(n):t),btoa(e)}const I=/[-_.]/g,x={"-":"+",_:"/",".":"="};function P(t){return x[t]||""}function O(t){if(!E)return _(t);I.test(t)&&(t=t.replace(I,P)),t=atob(t);const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}function L(t){return S&&null!=t&&t instanceof Uint8Array}let B;function F(){return B||=new Uint8Array(0)}var k={};let j;function U(t){if(t!==k)throw Error("illegal external caller")}function V(){return j||=new C(null,k)}function N(t){U(k);var e=t.F;return null==(e=null==e||L(e)?e:"string"==typeof e?O(e):null)?e:t.F=e}var C=class{constructor(t,e){if(U(e),this.F=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}N(){const t=N(this);return t?new Uint8Array(t):F()}};function M(t,e){return Error(`Invalid wire type: ${t} (at position ${e})`)}function G(){return Error("Failed to read varint, encoding is invalid.")}function D(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function z(t){return 0==t.length?V():new C(t,k)}function $(t){if("string"==typeof t)return{buffer:O(t),B:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),B:!1};if(t.constructor===Uint8Array)return{buffer:t,B:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),B:!1};if(t.constructor===C)return{buffer:N(t)||F(),B:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),B:!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 R(){return"function"==typeof BigInt}var W=!f;let H=!f;const q="function"==typeof Uint8Array.prototype.slice;let J,K=0,Y=0;function X(t){const e=0>t;let n=(t=Math.abs(t))>>>0;if(t=Math.floor((t-n)/4294967296),e){const[e,r]=it(n,t);t=r,n=e}K=n>>>0,Y=t>>>0}function Q(t){const e=J||=new DataView(new ArrayBuffer(8));e.setFloat32(0,+t,!0),Y=0,K=e.getUint32(0,!0)}function Z(t,e){return 4294967296*e+(t>>>0)}function tt(t,e){const n=2147483648&e;return n&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=Z(t,e),n?-t:t}function et(t,e){if(t>>>=0,2097151>=(e>>>=0))var n=""+(4294967296*e+t);else R()?n=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(n=16777215&(t>>>24|e<<8))+6710656*(e=e>>16&65535),n+=8147497*e,e*=2,1e7<=t&&(n+=Math.floor(t/1e7),t%=1e7),1e7<=n&&(e+=Math.floor(n/1e7),n%=1e7),n=e+nt(n)+nt(t));return n}function nt(t){return t=String(t),"0000000".slice(t.length)+t}function rt(t){if(16>t.length)X(Number(t));else if(R())t=BigInt(t),K=Number(t&BigInt(4294967295))>>>0,Y=Number(t>>BigInt(32)&BigInt(4294967295));else{const e=+("-"===t[0]);Y=K=0;const n=t.length;for(let r=e,i=(n-e)%6+e;i<=n;r=i,i+=6){const e=Number(t.slice(r,i));Y*=1e6,K=1e6*K+e,4294967296<=K&&(Y+=Math.trunc(K/4294967296),Y>>>=0,K>>>=0)}if(e){const[t,e]=it(K,Y);K=t,Y=e}}}function it(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function ot(t,e){let n,r=0,i=0,o=0;const s=t.i;let a=t.g;do{n=s[a++],r|=(127&n)<<o,o+=7}while(32>o&&128&n);for(32<o&&(i|=(127&n)>>4),o=3;32>o&&128&n;o+=7)n=s[a++],i|=(127&n)<<o;if(ht(t,a),128>n)return e(r>>>0,i>>>0);throw G()}function st(t){let e=0,n=t.g;const r=n+10,i=t.i;for(;n<r;){const r=i[n++];if(e|=r,0==(128&r))return ht(t,n),!!(127&e)}throw G()}function at(t){const e=t.i;let n=t.g,r=e[n++],i=127&r;if(128&r&&(r=e[n++],i|=(127&r)<<7,128&r&&(r=e[n++],i|=(127&r)<<14,128&r&&(r=e[n++],i|=(127&r)<<21,128&r&&(r=e[n++],i|=r<<28,128&r&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++])))))throw G();return ht(t,n),i}function ut(t){var e=t.i;const n=t.g;var r=e[n],i=e[n+1];const o=e[n+2];return e=e[n+3],ht(t,t.g+4),t=2*((i=(r<<0|i<<8|o<<16|e<<24)>>>0)>>31)+1,r=i>>>23&255,i&=8388607,255==r?i?NaN:1/0*t:0==r?t*Math.pow(2,-149)*i:t*Math.pow(2,r-150)*(i+Math.pow(2,23))}function ct(t){return at(t)}function lt(t,e,{G:n=!1}={}){t.G=n,e&&(e=$(e),t.i=e.buffer,t.m=e.B,t.v=0,t.j=t.i.length,t.g=t.v)}function ht(t,e){if(t.g=e,e>t.j)throw D(t.j,e)}function ft(t,e){if(0>e)throw Error(`Tried to read a negative byte length: ${e}`);const n=t.g,r=n+e;if(r>t.j)throw D(e,t.j-n);return t.g=r,n}function dt(t,e){if(0==e)return V();var n=ft(t,e);return t.G&&t.m?n=t.i.subarray(n,n+e):(t=t.i,n=n===(e=n+e)?F():q?t.slice(n,e):new Uint8Array(t.subarray(n,e))),z(n)}var gt=[];function pt(t){var e=t.g;if(e.g==e.j)return!1;t.j=t.g.g;var n=at(t.g)>>>0;if(e=n>>>3,!(0<=(n&=7)&&5>=n))throw M(n,t.j);if(1>e)throw Error(`Invalid field number: ${e} (at position ${t.j})`);return t.m=e,t.i=n,!0}function mt(t){switch(t.i){case 0:0!=t.i?mt(t):st(t.g);break;case 1:ht(t=t.g,t.g+8);break;case 2:if(2!=t.i)mt(t);else{var e=at(t.g)>>>0;ht(t=t.g,t.g+e)}break;case 5:ht(t=t.g,t.g+4);break;case 3:for(e=t.m;;){if(!pt(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.i){if(t.m!=e)throw Error("Unmatched end-group tag");break}mt(t)}break;default:throw M(t.i,t.j)}}function yt(t,e,n){const r=t.g.j,i=at(t.g)>>>0,o=t.g.g+i;let s=o-r;if(0>=s&&(t.g.j=o,n(e,t,void 0,void 0,void 0),s=o-t.g.g),s)throw Error(`Message parsing ended unexpectedly. Expected to read ${i} bytes, instead read ${i-s} bytes, either the data ended unexpectedly or the message misreported its own length`);t.g.g=o,t.g.j=r}function vt(t){var e=at(t.g)>>>0,a=ft(t=t.g,e);if(t=t.i,s){var u,c=t;(u=o)||(u=o=new TextDecoder("utf-8",{fatal:!0})),e=a+e,c=0===a&&e===c.length?c:c.subarray(a,e);try{var l=u.decode(c)}catch(t){if(void 0===i){try{u.decode(new Uint8Array([128]))}catch(t){}try{u.decode(new Uint8Array([97])),i=!0}catch(t){i=!1}}throw!i&&(o=void 0),t}}else{e=(l=a)+e,a=[];let i,o=null;for(;l<e;){var h=t[l++];128>h?a.push(h):224>h?l>=e?n():(i=t[l++],194>h||128!=(192&i)?(l--,n()):a.push((31&h)<<6|63&i)):240>h?l>=e-1?n():(i=t[l++],128!=(192&i)||224===h&&160>i||237===h&&160<=i||128!=(192&(u=t[l++]))?(l--,n()):a.push((15&h)<<12|(63&i)<<6|63&u)):244>=h?l>=e-2?n():(i=t[l++],128!=(192&i)||0!=i-144+(h<<28)>>30||128!=(192&(u=t[l++]))||128!=(192&(c=t[l++]))?(l--,n()):(h=(7&h)<<18|(63&i)<<12|(63&u)<<6|63&c,h-=65536,a.push(55296+(h>>10&1023),56320+(1023&h)))):n(),8192<=a.length&&(o=r(o,a),a.length=0)}l=r(o,a)}return l}function bt(t){const e=at(t.g)>>>0;return dt(t.g,e)}function wt(t,e,n){var r=at(t.g)>>>0;for(r=t.g.g+r;t.g.g<r;)n.push(e(t.g))}var _t=[];function At(t){return t?/^\d+$/.test(t)?(rt(t),new St(K,Y)):null:Et||=new St(0,0)}var St=class{constructor(t,e){this.i=t>>>0,this.g=e>>>0}};let Et;function Tt(t){return t?/^-?\d+$/.test(t)?(rt(t),new It(K,Y)):null:xt||=new It(0,0)}var It=class{constructor(t,e){this.i=t>>>0,this.g=e>>>0}};let xt;function Pt(t,e,n){for(;0<n||127<e;)t.g.push(127&e|128),e=(e>>>7|n<<25)>>>0,n>>>=7;t.g.push(e)}function Ot(t,e){for(;127<e;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function Lt(t,e){if(0<=e)Ot(t,e);else{for(let n=0;9>n;n++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function Bt(t){var e=K;t.g.push(e>>>0&255),t.g.push(e>>>8&255),t.g.push(e>>>16&255),t.g.push(e>>>24&255)}function Ft(t,e){0!==e.length&&(t.j.push(e),t.i+=e.length)}function kt(t,e,n){Ot(t.g,8*e+n)}function jt(t,e){return kt(t,e,2),e=t.g.end(),Ft(t,e),e.push(t.i),e}function Ut(t,e){var n=e.pop();for(n=t.i+t.g.length()-n;127<n;)e.push(127&n|128),n>>>=7,t.i++;e.push(n),t.i++}function Vt(t,e,n){kt(t,e,2),Ot(t.g,n.length),Ft(t,t.g.end()),Ft(t,n)}var Nt;class Ct{constructor(t,e,n,r){this.g=t,this.i=e,this.j=n,this.L=r}}function Mt(t){return Array.prototype.slice.call(t)}var Gt=(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0)?(t,e)=>{t[Nt]|=e}:(t,e)=>{void 0!==t.s?t.s|=e:Object.defineProperties(t,{s:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function Dt(t){const e=Rt(t);1!=(1&e)&&(Object.isFrozen(t)&&(t=Mt(t)),Ht(t,1|e))}var zt=Nt?(t,e)=>{t[Nt]&=~e}:(t,e)=>{void 0!==t.s&&(t.s&=~e)};function $t(t,e,n){return n?t|e:t&~e}var Rt=Nt?t=>0|t[Nt]:t=>0|t.s,Wt=Nt?t=>t[Nt]:t=>t.s,Ht=Nt?(t,e)=>{t[Nt]=e}:(t,e)=>{void 0!==t.s?t.s=e:Object.defineProperties(t,{s:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function qt(){var t=[];return Gt(t,1),t}function Jt(t,e){Ht(e,-14591&(0|t))}function Kt(t,e){Ht(e,-14557&(34|t))}function Yt(t){return 0===(t=t>>14&1023)?536870912:t}var Xt={},Qt={};function Zt(t){return!(!t||"object"!=typeof t||t.U!==Qt)}function te(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}let ee=!f;function ne(t,e,n){if(null!=t)if("string"==typeof t)t=t?new C(t,k):V();else if(t.constructor!==C)if(L(t))t=n?z(t):t.length?new C(new Uint8Array(t),k):V();else{if(!e)throw Error();t=void 0}return t}function re(t,e,n){if(!Array.isArray(t)||t.length)return!1;const r=Rt(t);return!!(1&r)||!(!e||!(Array.isArray(e)?e.includes(n):e.has(n)))&&(Ht(t,1|r),!0)}var ie;const oe=[];function se(t){if(2&t)throw Error()}let ae,ue;function ce(t,e){(e=ae?e[ae]:void 0)&&(t[ae]=Mt(e))}Ht(oe,55),ie=Object.freeze(oe);function le(){const t=Error("int32");return t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity="warning",t}function he(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function fe(t){if(null!=t&&"boolean"!=typeof t){var e=typeof t;throw Error(`Expected boolean but got ${"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}: ${t}`)}return t}Object.freeze(new class{}),Object.freeze(new class{});const de=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function ge(t){const e=typeof t;return"number"===e?Number.isFinite(t):"string"===e&&de.test(t)}function pe(t){if(null==t)return t;if("string"==typeof t){if(!t)return;t=+t}return"number"==typeof t&&Number.isFinite(t)?0|t:void 0}function me(t){return"-"!==t[0]&&(20>t.length||20===t.length&&184467>Number(t.substring(0,6)))}function ye(t){return t=Math.trunc(t),Number.isSafeInteger(t)||(X(t),t=tt(K,Y)),t}function ve(t){var e=Math.trunc(Number(t));if(Number.isSafeInteger(e))return String(e);if(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),!("-"===t[0]?20>t.length||20===t.length&&-922337<Number(t.substring(0,7)):19>t.length||19===t.length&&922337>Number(t.substring(0,6))))if(rt(t),t=K,2147483648&(e=Y))if(R())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{const[n,r]=it(t,e);t="-"+et(n,r)}else t=et(t,e);return t}function be(t){if("string"!=typeof t)throw Error();return t}function we(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function _e(t){return null==t||"string"==typeof t?t:void 0}function Ae(t,e,n){if(null!=t&&"object"==typeof t&&t.D===Xt)return t;if(Array.isArray(t)){var r=Rt(t),i=r;return 0===i&&(i|=32&n),(i|=2&n)!==r&&Ht(t,i),new e(t)}}let Se,Ee,Te;function Ie(t){switch(typeof t){case"boolean":return Ee||=[0,void 0,!0];case"number":return 0<t?void 0:0===t?Te||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}function xe(t,e,n){if(null==t&&(t=Se),Se=void 0,null==t){var r=96;n?(t=[n],r|=512):t=[],e&&(r=-16760833&r|(1023&e)<<14)}else{if(!Array.isArray(t))throw Error();if(64&(r=Rt(t)))return ue&&delete t[ue],t;if(r|=64,n&&(r|=512,n!==t[0]))throw Error();t:{const i=(n=t).length;if(i){const t=i-1;if(te(n[t])){if(1024<=(e=t-(+!!(512&(r|=256))-1)))throw Error();r=-16760833&r|(1023&e)<<14;break t}}if(e){if(1024<(e=Math.max(e,i-(+!!(512&r)-1))))throw Error();r=-16760833&r|(1023&e)<<14}}}return Ht(t,r),t}function Pe(t,e,n,r,i,o){if(null!=t){if(Array.isArray(t))t=i&&0==t.length&&1&Rt(t)?void 0:o&&2&Rt(t)?t:Oe(t,e,n,void 0!==r,i,o);else if(te(t)){const s={};for(let a in t)s[a]=Pe(t[a],e,n,r,i,o);t=s}else t=e(t,r);return t}}function Oe(t,e,n,r,i,o){const s=r||n?Rt(t):0;r=r?!!(32&s):void 0;const a=Mt(t);for(let t=0;t<a.length;t++)a[t]=Pe(a[t],e,n,r,i,o);return n&&(ce(a,t),n(s,a)),a}function Le(t){return t.D===Xt?t.toJSON():function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"boolean":return t?1:0;case"object":if(t){if(Array.isArray(t))return ee||!re(t,void 0,9999)?t:void 0;if(L(t))return T(t);if(t instanceof C){const e=t.F;return null==e?"":"string"==typeof e?e:t.F=T(e)}}}return t}(t)}function Be(t,e,n=Kt){if(null!=t){if(S&&t instanceof Uint8Array)return e?t:new Uint8Array(t);if(Array.isArray(t)){var r=Rt(t);return 2&r?t:(e&&=0===r||!!(32&r)&&!(64&r||!(16&r)),e?(Ht(t,-12293&(34|r)),t):Oe(t,Be,4&r?Kt:n,!0,!1,!0))}return t.D===Xt&&(n=t.l,t=2&(r=Wt(n))?t:ke(t,n,r,!0)),t}}function Fe(t){const e=t.l;return ke(t,e,Wt(e),!1)}function ke(t,e,n,r){return t=t.constructor,Se=e=je(e,n,r),e=new t(e),Se=void 0,e}function je(t,e,n){const r=n||2&e?Kt:Jt,i=!!(32&e);return t=function(t,e,n){const r=Mt(t);var i=r.length;const o=256&e?r[i-1]:void 0;for(i+=o?-1:0,e=512&e?1:0;e<i;e++)r[e]=n(r[e]);if(o){e=r[e]={};for(const t in o)e[t]=n(o[t])}return ce(r,t),r}(t,e,(t=>Be(t,i,r))),Gt(t,32|(n?2:0)),t}function Ue(t){const e=t.l,n=Wt(e);return 2&n?ke(t,e,n,!1):t}function Ve(t,e){return Ne(t=t.l,Wt(t),e)}function Ne(t,e,n,r){if(-1===n)return null;if(n>=Yt(e)){if(256&e)return t[t.length-1][n]}else{var i=t.length;if(r&&256&e&&null!=(r=t[i-1][n]))return r;if((e=n+(+!!(512&e)-1))<i)return t[e]}}function Ce(t,e,n,r){const i=t.l;let o=Wt(i);return se(o),Me(i,o,e,n,r),t}function Me(t,e,n,r,i){var o=Yt(e);if(n>=o||i){if(i=e,256&e)o=t[t.length-1];else{if(null==r)return i;o=t[o+(+!!(512&e)-1)]={},i|=256}return o[n]=r,i!==e&&Ht(t,i),i}return t[n+(+!!(512&e)-1)]=r,256&e&&(n in(t=t[t.length-1])&&delete t[n]),e}function Ge(t,e,n,r,i){var o=2&e;let s=Ne(t,e,n,i);Array.isArray(s)||(s=ie);const a=!(2&r);r=!(1&r);const u=!!(32&e);let c=Rt(s);return 0!==c||!u||o||a?1&c||(c|=1,Ht(s,c)):(c|=33,Ht(s,c)),o?(t=!1,2&c||(Gt(s,34),t=!!(4&c)),(r||t)&&Object.freeze(s)):(o=!!(2&c)||!!(2048&c),r&&o?(s=Mt(s),r=1,u&&!a&&(r|=32),Ht(s,r),Me(t,e,n,s,i)):a&&32&c&&!o&&zt(s,32)),s}function De(t){t=t.l;let e=Wt(t);const n=Ne(t,e,1),r=ne(n,!0,!!(34&e));return null!=r&&r!==n&&Me(t,e,1,r),r}function ze(t,e,n){{const s=t.l;let a=Wt(s);if(se(a),null==n)Me(s,a,e);else{var r,i=t=Rt(n),o=!!(2&t)||Object.isFrozen(n);if((r=!o)&&(r=!1),!(4&t))for(t=21,o&&(n=Mt(n),i=0,t=en(t,a,!0)),o=0;o<n.length;o++)n[o]=be(n[o]);r&&(n=Mt(n),i=0,t=en(t,a,!0)),t!==i&&Ht(n,t),Me(s,a,e,n)}}}function $e(t,e){t=t.l;let n=Wt(t);se(n),Me(t,n,2,""===e?void 0:e)}function Re(t,e,n,r){const i=Wt(t);se(i),t=Ge(t,i,e,2),r=n(r,!!(4&(e=Rt(t)))&&!!(4096&e)),t.push(r)}function We(t){return t}function He(t,e){return qe(t=t.l,Wt(t),Yr)===e?e:-1}function qe(t,e,n){let r=0;for(let i=0;i<n.length;i++){const o=n[i];null!=Ne(t,e,o)&&(0!==r&&(e=Me(t,e,r)),r=o)}return r}function Je(t,e,n,r){let i=Wt(t);se(i);const o=Ne(t,i,n,r);let s;if(null!=o&&o.D===Xt)return(e=Ue(o))!==o&&Me(t,i,n,e,r),e.l;if(Array.isArray(o)){const t=Rt(o);s=2&t?je(o,t,!1):o,s=xe(s,e[0],e[1])}else s=xe(void 0,e[0],e[1]);return s!==o&&Me(t,i,n,s,r),s}function Ke(t,e,n,r){t=t.l;let i=Wt(t);const o=Ne(t,i,n,r);return(e=Ae(o,e,i))!==o&&null!=e&&Me(t,i,n,e,r),e}function Ye(t,e,n){if(null==(e=Ke(t,e,n,!1)))return e;t=t.l;let r=Wt(t);if(!(2&r)){const i=Ue(e);i!==e&&Me(t,r,n,e=i,!1)}return e}function Xe(t,e,n,r,i){var o=2&e?1:2;const s=1===o;o=2===o,r=!!r;let a=Ge(t,e,1,3);e=Wt(t);var u=Rt(a),c=!!(2&u);const l=!!(4&u),h=!!(32&u);let f=c&&l||!!(2048&u);if(!l){var d,g=a,p=e;(d=!!(2&u))&&(p=$t(p,2,!0));let t=!d,r=!0,i=0,o=0;for(;i<g.length;i++){const e=Ae(g[i],n,p);if(e instanceof n){if(!d){const n=!!(2&Rt(e.l));t&&=!n,r&&=n}g[o++]=e}}o<i&&(g.length=o),u=$t(u,4,!0),u=$t(u,16,r),u=$t(u,8,t),Ht(g,u),c&&(Object.freeze(a),f=!0)}if(n=u,c=!!(8&u)||s&&!a.length,i&&!c){for(f&&(a=Mt(a),f=!1,n=0,u=en(u,e,r),e=Me(t,e,1,a)),i=a,c=u,g=0;g<i.length;g++)(u=i[g])!==(p=Ue(u))&&(i[g]=p);c=$t(c,8,!0),u=c=$t(c,16,!i.length)}return f||(s?u=$t(u,!a.length||16&u&&(!l||h)?2:2048,!0):r||(u=$t(u,32,!1)),u!==n&&Ht(a,u),s&&(Object.freeze(a),f=!0)),o&&f&&(a=Mt(a),u=en(u,e,r),Ht(a,u),Me(t,e,1,a)),a}function Qe(t,e){t=t.l;const n=Wt(t);return Xe(t,n,e,!1,!(2&n))}function Ze(t,e,n,r,i){return null==r&&(r=void 0),Ce(t,n,r,i)}function tn(t,e,n){var r=ii;null==n&&(n=void 0),t=t.l;let i=Wt(t);se(i),(r=qe(t,i,r))&&r!==e&&null!=n&&(i=Me(t,i,r)),Me(t,i,e,n)}function en(t,e,n){return t=$t(t,2,!!(2&e)),t=$t(t,32,!!(32&e)&&n),$t(t,2048,!1)}function nn(t,e){var n=Br;t=t.l;const r=Wt(t);se(r),t=Xe(t,r,n,!0),e=null!=e?e:new n,t.push(e),2&Rt(e.l)?zt(t,8):zt(t,16)}function rn(t){return null==(t=Ve(t,2))?t:ge(t)?"number"==typeof t?ye(t):ve(t):void 0}function on(t){return t??0}function sn(t,e,n){Re(t.l,e,be,n)}function an(t,e,n){e.g?e.j(t,e.g,e.i,n,!0):e.j(t,e.i,n,!0)}var un=class{constructor(t,e){this.l=xe(t,e)}toJSON(){return cn(this,Oe(this.l,Le,void 0,void 0,!1,!1),!0)}B(){return!!(2&Rt(this.l))}};function cn(t,e,n){const r=t.constructor.A;var i=Wt(n?t.l:e),o=Yt(i),s=!1;if(r&&ee){if(!n){var a;if((e=Mt(e)).length&&te(a=e[e.length-1]))for(s=0;s<r.length;s++)if(r[s]>=o){Object.assign(e[e.length-1]={},a);break}s=!0}var u;o=e,n=!n,t=Yt(a=Wt(t.l)),a=+!!(512&a)-1;for(let e=0;e<r.length;e++){var c=r[e];if(c<t){var l=o[c+=a];null==l?o[c]=n?ie:qt():n&&l!==ie&&Dt(l)}else{if(!u){var h=void 0;o.length&&te(h=o[o.length-1])?u=h:o.push(u={})}l=u[c],null==u[c]?u[c]=n?ie:qt():n&&l!==ie&&Dt(l)}}}if(!(u=e.length))return e;let f,d;if(te(h=e[u-1])){t:{var g=h;for(var p in o={},n=!1,g)t=g[p],Array.isArray(t)&&(a=t,(!H&&re(t,r,+p)||!W&&Zt(t)&&0===t.size)&&(t=null),t!=a&&(n=!0)),null!=t?o[p]=t:n=!0;if(n){for(let t in o){g=o;break t}g=null}}g!=h&&(f=!0),u--}for(i=+!!(512&i)-1;0<u&&(null==(h=e[p=u-1])||!H&&re(h,r,p-i)||!W&&Zt(h)&&0===h.size);u--)d=!0;return f||d?(e=s?e:Array.prototype.slice.call(e,0,u),s&&(e.length=u),g&&e.push(g),e):e}function ln(t){return Array.isArray(t)?t[0]instanceof Ct?t:[ir,t]:[t,void 0]}function hn(t,e){if(Array.isArray(e)){var n=Rt(e);if(4&n)return e;for(var r=0,i=0;r<e.length;r++){const n=t(e[r]);null!=n&&(e[i++]=n)}return i<r&&(e.length=i),Ht(e,-12289&(5|n)),2&n&&Object.freeze(e),e}}un.prototype.D=Xt,un.prototype.toString=function(){return cn(this,this.l,!1).toString()};const fn=Symbol();function dn(t){let e=t[fn];if(!e){const n=wn(t),r=Fn(t),i=r.g;e=i?(t,e)=>i(t,e,r):(t,e)=>{for(;pt(e)&&4!=e.i;){var i=e.m,o=r[i];if(!o){var s=r.I;s&&(s=s[i])&&(o=r[i]=gn(s))}o&&o(e,t,i)||(i=(o=e).j,mt(o),o.H?o=void 0:(s=o.g.g-i,o.g.g=i,o=dt(o.g,s)),i=t,o&&(ae||=Symbol(),(s=i[ae])?s.push(o):i[ae]=[o]))}n===pn||n===mn||n.S||(t[ue||=Symbol()]=n)},t[fn]=e}return e}function gn(t){const e=(t=ln(t))[0].g;if(t=t[1]){const n=dn(t),r=Fn(t).C;return(t,i,o)=>e(t,i,o,r,n)}return e}let pn,mn;const yn=Symbol();function vn(t,e,n){const r=n[1];let i;if(r){const n=r[yn];i=n?n.C:Ie(r[0]),t[e]=n??r}i&&i===Ee?(t.J||(t.J=[])).push(e):n[0]&&(t.K||(t.K=[])).push(e)}function bn(t,e){return[t.j,!e||0<e[0]?void 0:e]}function wn(t){var e=t[yn];if(e)return e;if(!(e=An(t,t[yn]={},bn,bn,vn)).K&&!e.J){let n=!0;for(let t in e){isNaN(t)||(n=!1);break}n?(e=Ie(t[0])===Ee,e=t[yn]=e?mn||={C:Ie(!0)}:pn||={}):e.S=!0}return e}function _n(t,e,n){t[e]=n}function An(t,e,n,r,i=_n){e.C=Ie(t[0]);let o=0;var s=t[++o];s&&s.constructor===Object&&(e.I=s,"function"==typeof(s=t[++o])&&(e.g=s,e.i=t[++o],s=t[++o]));const a={};for(;Array.isArray(s)&&"number"==typeof s[0]&&0<s[0];){for(var u=0;u<s.length;u++)a[s[u]]=s;s=t[++o]}for(u=1;void 0!==s;){let h;"number"==typeof s&&(u+=s,s=t[++o]);var c=void 0;if(s instanceof Ct?h=s:(h=or,o--),h.L){s=t[++o],c=t;var l=o;"function"==typeof s&&(s=s(),c[l]=s),c=s}for(l=u+1,"number"==typeof(s=t[++o])&&0>s&&(l-=s,s=t[++o]);u<l;u++){const t=a[u];i(e,u,c?r(h,c,t):n(h,t))}}return e}const Sn=Symbol();function En(t){let e=t[Sn];if(!e){const n=Pn(t);e=(t,e)=>jn(t,e,n),t[Sn]=e}return e}const Tn=Symbol();function In(t){return t.i}function xn(t,e){let n,r;const i=t.i;return(t,o,s)=>i(t,o,s,r||=Pn(e).C,n||=En(e))}function Pn(t){let e=t[Tn];return e||(e=An(t,t[Tn]={},In,xn),On in t&&Tn in t&&(t.length=0),e)}const On=Symbol();function Ln(t,e){const n=t.g;return e?(t,r,i)=>n(t,r,i,e):n}function Bn(t,e,n){const r=t.g;let i,o;return(t,s,a)=>r(t,s,a,o||=Fn(e).C,i||=dn(e),n)}function Fn(t){let e=t[On];return e||(wn(t),e=An(t,t[On]={},Ln,Bn),On in t&&Tn in t&&(t.length=0),e)}function kn(t,e){var n=t[e];if(n)return n;if((n=t.I)&&(n=n[e])){var r=(n=ln(n))[0].i;if(n=n[1]){const e=En(n),i=Pn(n).C;n=(n=t.i)?n(i,e):(t,n,o)=>r(t,n,o,i,e)}else n=r;return t[e]=n}}function jn(t,e,n){for(var r=Wt(t),i=+!!(512&r)-1,o=t.length,s=512&r?1:0,a=o+(256&r?-1:0);s<a;s++){const r=t[s];if(null==r)continue;const o=s-i,a=kn(n,o);a&&a(e,r,o)}if(256&r){r=t[o-1];for(let t in r)i=+t,Number.isNaN(i)||null!=(o=r[t])&&(a=kn(n,i))&&a(e,o,i)}if(t=ae?t[ae]:void 0)for(Ft(e,e.g.end()),n=0;n<t.length;n++)Ft(e,N(t[n])||F())}function Un(t,e){return new Ct(t,e,!1,!1)}function Vn(t,e){return new Ct(t,e,!0,!1)}function Nn(t,e,n){Me(t,Wt(t),e,n)}function Cn(t,e,n){t:if(null!=e){if(ge(e)){if("string"==typeof e){e=ve(e);break t}if("number"==typeof e){e=ye(e);break t}}e=void 0}null!=e&&("string"==typeof e&&Tt(e),null!=e&&(kt(t,n,0),"number"==typeof e?(t=t.g,X(e),Pt(t,K,Y)):(n=Tt(e),Pt(t.g,n.i,n.g))))}function Mn(t,e,n){null!=(e=pe(e))&&null!=e&&(kt(t,n,0),Lt(t.g,e))}function Gn(t,e,n){null!=(e=null==e||"boolean"==typeof e?e:"number"==typeof e?!!e:void 0)&&(kt(t,n,0),t.g.g.push(e?1:0))}function Dn(t,e,n){null!=(e=_e(e))&&Vt(t,n,c(e))}function zn(t,e,n,r,i){null!=(e=e instanceof un?e.l:Array.isArray(e)?xe(e,r[0],r[1]):void 0)&&(n=jt(t,n),i(e,t),Ut(t,n))}function $n(t,e,n){null!=(e=null==e||"string"==typeof e||L(e)||e instanceof C?e:void 0)&&Vt(t,n,$(e).buffer)}var Rn,Wn=Un((function(t,e,n){return 5===t.i&&(Nn(e,n,ut(t.g)),!0)}),(function(t,e,n){null!=(e=he(e))&&(kt(t,n,5),t=t.g,Q(e),Bt(t))})),Hn=Vn((function(t,e,n){return(5===t.i||2===t.i)&&(e=Ge(e,Wt(e),n,2,!1),2==t.i?wt(t,ut,e):e.push(ut(t.g)),!0)}),(function(t,e,n){if(null!=(e=hn(he,e))&&e.length){kt(t,n,2),Ot(t.g,4*e.length);for(let r=0;r<e.length;r++)n=t.g,Q(e[r]),Bt(n)}})),qn=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,ot(t.g,tt)),!0)}),Cn),Jn=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,0===(t=ot(t.g,tt))?void 0:t),!0)}),Cn),Kn=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,ot(t.g,Z)),!0)}),(function(t,e,n){t:if(null!=e){if(ge(e)){if("string"==typeof e){var r=Math.trunc(Number(e));Number.isSafeInteger(r)&&0<=r?e=String(r):(-1!==(r=e.indexOf("."))&&(e=e.substring(0,r)),me(e)||(rt(e),e=et(K,Y)));break t}if("number"==typeof e){e=0<=(e=Math.trunc(e))&&Number.isSafeInteger(e)?e:function(t){if(0>t){X(t);const e=et(K,Y);return t=Number(e),Number.isSafeInteger(t)?t:e}return me(String(t))?t:(X(t),Z(K,Y))}(e);break t}}e=void 0}null!=e&&("string"==typeof e&&At(e),null!=e&&(kt(t,n,0),"number"==typeof e?(t=t.g,X(e),Pt(t,K,Y)):(n=At(e),Pt(t.g,n.i,n.g))))})),Yn=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,at(t.g)),!0)}),Mn),Xn=Vn((function(t,e,n){return(0===t.i||2===t.i)&&(e=Ge(e,Wt(e),n,2,!1),2==t.i?wt(t,at,e):e.push(at(t.g)),!0)}),(function(t,e,n){if(null!=(e=hn(pe,e))&&e.length){n=jt(t,n);for(let n=0;n<e.length;n++)Lt(t.g,e[n]);Ut(t,n)}})),Qn=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,0===(t=at(t.g))?void 0:t),!0)}),Mn),Zn=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,st(t.g)),!0)}),Gn),tr=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,!1===(t=st(t.g))?void 0:t),!0)}),Gn),er=Vn((function(t,e,n){return 2===t.i&&(Re(e,n,We,t=vt(t)),!0)}),(function(t,e,n){if(null!=(e=hn(_e,e)))for(let s=0;s<e.length;s++){var r=t,i=n,o=e[s];null!=o&&Vt(r,i,c(o))}})),nr=Un((function(t,e,n){return 2===t.i&&(Nn(e,n,""===(t=vt(t))?void 0:t),!0)}),Dn),rr=Un((function(t,e,n){return 2===t.i&&(Nn(e,n,vt(t)),!0)}),Dn),ir=new Ct((function(t,e,n,r,i){return 2===t.i&&(yt(t,Je(e,r,n,!0),i),!0)}),zn,!1,!0),or=new Ct((function(t,e,n,r,i){return 2===t.i&&(yt(t,Je(e,r,n),i),!0)}),zn,!1,!0);Rn=new Ct((function(t,e,n,r,i){if(2!==t.i)return!1;r=xe(void 0,r[0],r[1]);let o=Wt(e);se(o);let s=Ge(e,o,n,3);return o=Wt(e),4&Rt(s)&&(s=Mt(s),Ht(s,-2079&(1|Rt(s))),Me(e,o,n,s)),s.push(r),yt(t,r,i),!0}),(function(t,e,n,r,i){if(Array.isArray(e))for(let o=0;o<e.length;o++)zn(t,e[o],n,r,i)}),!0,!0);var sr=new Ct((function(t,e,n,r,i,o){if(2!==t.i)return!1;let s=Wt(e);return se(s),(o=qe(e,s,o))&&n!==o&&Me(e,s,o),yt(t,e=Je(e,r,n),i),!0}),zn,!1,!0),ar=Un((function(t,e,n){return 2===t.i&&(Nn(e,n,bt(t)),!0)}),$n),ur=Un((function(t,e,n){return 0===t.i&&(Nn(e,n,at(t.g)),!0)}),(function(t,e,n){null!=(e=pe(e))&&(e=parseInt(e,10),kt(t,n,0),Lt(t.g,e))})),cr=Vn((function(t,e,n){return(0===t.i||2===t.i)&&(e=Ge(e,Wt(e),n,2,!1),2==t.i?wt(t,ct,e):e.push(at(t.g)),!0)}),(function(t,e,n){if(null!=(e=hn(pe,e))&&e.length){n=jt(t,n);for(let n=0;n<e.length;n++)Lt(t.g,e[n]);Ut(t,n)}}));class lr{constructor(t,e){this.i=t,this.g=e,this.j=Ze,this.defaultValue=void 0}}function hr(t,e){return(n,r)=>{t:{if(_t.length){const t=_t.pop();t.o(r),lt(t.g,n,r),n=t}else n=new class{constructor(t,e){if(gt.length){const n=gt.pop();lt(n,t,e),t=n}else t=new class{constructor(t,e){this.i=null,this.m=!1,this.g=this.j=this.v=0,lt(this,t,e)}clear(){this.i=null,this.m=!1,this.g=this.j=this.v=0,this.G=!1}}(t,e);this.g=t,this.j=this.g.g,this.i=this.m=-1,this.o(e)}o({H:t=!1}={}){this.H=t}}(n,r);try{const r=new t,o=r.l;dn(e)(o,n),ue&&delete o[ue];var i=r;break t}finally{n.g.clear(),n.m=-1,n.i=-1,100>_t.length&&_t.push(n)}i=void 0}return i}}var fr=[0,nr,Un((function(t,e,n){return 2===t.i&&(Nn(e,n,(t=bt(t))===V()?void 0:t),!0)}),(function(t,e,n){if(null!=e){if(e instanceof un){const r=e.V;return void(r&&(e=r(e),null!=e&&Vt(t,n,$(e).buffer)))}if(Array.isArray(e))return}$n(t,e,n)}))],dr=[0,rr],gr=[0,Yn,ur,Zn,-1,Xn,ur,-1],pr=[0,Zn,-1],mr=class extends un{constructor(){super()}};mr.A=[6];var yr=[0,Zn,rr,Zn,ur,-1,cr,rr,-1,pr,ur],vr=[0,rr,-2],br=class extends un{constructor(){super()}},wr=[0],_r=[0,Yn,Zn,-2],Ar=class extends un{constructor(t){super(t,2)}},Sr={},Er=[-2,Sr,Zn];Sr[336783863]=[0,rr,Zn,-1,Yn,[0,[1,2,3,4,5],sr,wr,sr,yr,sr,vr,sr,_r,sr,gr],dr];var Tr=[0,nr,tr],Ir=[0,Jn,-1,tr,-3,Jn,Xn,nr,Qn,Jn,-1,tr,Qn,tr,-2,nr],xr=[-1,{}],Pr=[0,rr,1,xr],Or=[0,rr,er,xr];function Lr(t){sn(t,3,"TEXT:text_in")}var Br=class extends un{constructor(t){super(t,500)}o(t){return Ze(this,0,7,t)}};Br.A=[3,4,5,6,8,13,17,1005];var Fr=[-500,nr,-1,er,-3,Er,Rn,fr,Qn,-1,Pr,Or,Rn,Tr,nr,Ir,Qn,er,987,er],kr=[0,nr,-1,xr],jr=[-500,rr,-1,[-1,{}],998,rr],Ur=[-500,rr,er,-1,[-2,{},Zn],997,er,-1],Vr=[-500,rr,er,xr,998,er];function Nr(t){sn(t,10,"text_in")}var Cr,Mr=class extends un{constructor(){super(void 0,500)}o(t){return Ze(this,0,1001,t)}};Mr.A=[1,6,7,9,10,15,16,17,14,1002],Mr.prototype.g=(Cr=[-500,Rn,Fr,4,Rn,jr,Rn,Ur,Qn,Rn,Vr,er,Qn,Pr,Or,Rn,kr,er,-2,Ir,nr,-1,tr,979,xr,Rn,fr],function(){const t=new class{constructor(){this.j=[],this.i=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const t=this.g;return this.g=[],t}}}};jn(this.l,t,Pn(Cr)),Ft(t,t.g.end());const e=new Uint8Array(t.i),n=t.j,r=n.length;let i=0;for(let t=0;t<r;t++){const r=n[t];e.set(r,i),i+=r.length}return t.j=[e],e});var Gr=class extends un{constructor(t){super(t)}},Dr=[0,Yn,Wn,rr,-1],zr=class extends un{constructor(t){super(t)}g(){return Qe(this,Gr)}};zr.A=[1];var $r=class extends un{constructor(t){super(t)}},Rr=[0,1,Yn,rr,[0,Rn,Dr]],Wr=class extends un{constructor(t){super(t)}};Wr.A=[1];var Hr=hr(Wr,[0,Rn,Rr,qn]),qr=class extends un{constructor(t){super(t)}};qr.A=[1];var Jr=class extends un{constructor(t){super(t)}M(){const t=De(this);return null==t?V():t}},Kr=class extends un{constructor(t){super(t)}},Yr=[1,2],Xr=[0,Yr,sr,[0,Hn],sr,[0,ar],Yn,rr],Qr=class extends un{constructor(t){super(t)}};Qr.A=[1];var Zr=hr(Qr,[0,Rn,Xr,qn]),ti=class extends un{constructor(t){super(t)}};ti.A=[4,5];var ei=class extends un{constructor(t){super(t)}},ni=[0,Zn,-1],ri=class extends un{constructor(t){super(t)}},ii=[1,2,3,4,5],oi=class extends un{constructor(t){super(t)}g(){return null!=De(this)}i(){return null!=_e(Ve(this,2))}},si=class extends un{constructor(t){super(t)}},ai=[0,[0,ar,rr,[0,Yn,qn,-1],[0,Kn,qn]],Zn,[0,ii,sr,_r,sr,yr,sr,gr,sr,wr,sr,vr],ur],ui=class extends un{constructor(t){super(t)}},ci=new lr(462704549,ui);Sr[462704549]=[0,ai,[0,rr,Yn,Wn,er,-1]];var li=class extends un{constructor(t){super(t)}},hi=new lr(477589892,li);function fi(t,e){if(e=e?Fe(e):new ti,void 0!==t.displayNamesLocale?Ce(e,1,we(t.displayNamesLocale)):void 0===t.displayNamesLocale&&Ce(e,1),void 0!==t.maxResults){var n=t.maxResults;if(null!=n){if("number"!=typeof n)throw le();if(!Number.isFinite(n))throw le();n|=0}Ce(e,2,n)}else"maxResults"in t&&Ce(e,2);if(void 0!==t.scoreThreshold){if(null!=(n=t.scoreThreshold)&&"number"!=typeof n)throw Error(`Value of float/double field must be a number, found ${typeof n}: ${n}`);Ce(e,3,n)}else"scoreThreshold"in t&&Ce(e,3);return void 0!==t.categoryAllowlist?ze(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&Ce(e,4),void 0!==t.categoryDenylist?ze(e,5,t.categoryDenylist):"categoryDenylist"in t&&Ce(e,5),e}function di(t){const e={classifications:Qe(t,$r).map((t=>function(t,e=-1,n=""){return{categories:t.map((t=>{var e=pe(Ve(t,1))??0??-1;const n=t.l;let r=Wt(n);const i=Ne(n,r,2),o=he(i);return null!=o&&o!==i&&Me(n,r,2,o),{index:e,score:o??0??0,categoryName:_e(Ve(t,3))??""??"",displayName:_e(Ve(t,4))??""??""}})),headIndex:e,headName:n}}(Ye(t,zr,4)?.g()??[],pe(Ve(t,2))??0,_e(Ve(t,3))??"")))};return null!=rn(t)&&(e.timestampMs=on(rn(t))),e}function gi(t){return Array.from(t,(t=>127<t?t-256:t))}function pi(t,e){if(t.length!==e.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);let n=0,r=0,i=0;for(let o=0;o<t.length;o++)n+=t[o]*e[o],r+=t[o]*t[o],i+=e[o]*e[o];if(0>=r||0>=i)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return n/Math.sqrt(r*i)}let mi;Sr[477589892]=[0,ai,ni];const yi=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 vi(){if(void 0===mi)try{await WebAssembly.instantiate(yi),mi=!0}catch{mi=!1}return mi}async function bi(t,e=""){const n=await vi()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${e}/${t}_${n}.js`,wasmBinaryPath:`${e}/${t}_${n}.wasm`}}var wi=class{};async function _i(t){if("function"!=typeof importScripts){const e=document.createElement("script");return e.src=t.toString(),e.crossOrigin="anonymous",new Promise(((t,n)=>{e.addEventListener("load",(()=>{t()}),!1),e.addEventListener("error",(t=>{n(t)}),!1),document.body.appendChild(e)}))}importScripts(t.toString())}wi.forVisionTasks=function(t){return bi("vision",t)},wi.forTextTasks=function(t){return bi("text",t)},wi.forAudioTasks=function(t){return bi("audio",t)},wi.isSimdSupported=function(){return vi()};function Ai(t,e,n){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),n(e=t.h.stringToNewUTF8(e)),t.h._free(e)}function Si(t,e,n){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(e.length);for(let n=0;n<e.length;n++)r[n]=t.h.stringToNewUTF8(e[n]);e=t.h._malloc(4*r.length),t.h.HEAPU32.set(r,e>>2),n(e);for(const e of r)t.h._free(e);t.h._free(e)}function Ei(t,e,n){t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[e]=n}function Ti(t,e,n){let r=[];t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[e]=(t,e,i)=>{e?(n(r,i),r=[]):r.push(t)}}const Ii=function(t){return class extends t{T(){this.h._registerModelResourcesGraphService()}}}(class{constructor(t,e){this.j=!0,this.h=t,this.g=null,this.i=0,this.m="function"==typeof this.h._addIntToInputStream,void 0!==e?this.h.canvas=e:((t="undefined"==typeof OffscreenCanvas)||(t=(t=navigator.userAgent).includes("Safari")&&!t.includes("Chrome")),t?(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.h.canvas=document.createElement("canvas")):this.h.canvas=new OffscreenCanvas(1,1))}async initializeGraph(t){const e=await(await fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),this.setGraph(new Uint8Array(e),t)}setGraphFromString(t){this.setGraph((new TextEncoder).encode(t),!1)}setGraph(t,e){const n=t.length,r=this.h._malloc(n);this.h.HEAPU8.set(t,r),e?this.h._changeBinaryGraph(n,r):this.h._changeTextGraph(n,r),this.h._free(r)}configureAudio(t,e,n,r,i){this.h._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),Ai(this,r||"input_audio",(r=>{Ai(this,i=i||"audio_header",(i=>{this.h._configureAudio(r,i,t,e,n)}))}))}setAutoResizeCanvas(t){this.j=t}setAutoRenderToScreen(t){this.h._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.h.gpuOriginForWebTexturesIsBottomLeft=t}attachErrorListener(t){this.h.errorListener=t}attachEmptyPacketListener(t,e){this.h.emptyPacketListeners=this.h.emptyPacketListeners||{},this.h.emptyPacketListeners[t]=e}addAudioToStream(t,e,n){this.addAudioToStreamWithShape(t,0,0,e,n)}addAudioToStreamWithShape(t,e,n,r,i){const o=4*t.length;this.i!==o&&(this.g&&this.h._free(this.g),this.g=this.h._malloc(o),this.i=o),this.h.HEAPF32.set(t,this.g/4),Ai(this,r,(t=>{this.h._addAudioToInputStream(this.g,e,n,t,i)}))}addGpuBufferToStream(t,e,n){Ai(this,e,(e=>{if(!this.h.canvas)throw Error("No OpenGL canvas configured.");e?this.h._bindTextureToStream(e):this.h._bindTextureToCanvas();var r=this.h.canvas.getContext("webgl2")||this.h.canvas.getContext("webgl");if(!r)throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");let i;this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),t.videoWidth?(r=t.videoWidth,i=t.videoHeight):t.naturalWidth?(r=t.naturalWidth,i=t.naturalHeight):(r=t.width,i=t.height),!this.j||r===this.h.canvas.width&&i===this.h.canvas.height||(this.h.canvas.width=r,this.h.canvas.height=i);const[o,s]=[r,i];this.h._addBoundTextureToStream(e,o,s,n)}))}addBoolToStream(t,e,n){Ai(this,e,(e=>{this.h._addBoolToInputStream(t,e,n)}))}addDoubleToStream(t,e,n){Ai(this,e,(e=>{this.h._addDoubleToInputStream(t,e,n)}))}addFloatToStream(t,e,n){Ai(this,e,(e=>{this.h._addFloatToInputStream(t,e,n)}))}addIntToStream(t,e,n){Ai(this,e,(e=>{this.h._addIntToInputStream(t,e,n)}))}addStringToStream(t,e,n){Ai(this,e,(e=>{Ai(this,t,(t=>{this.h._addStringToInputStream(t,e,n)}))}))}addStringRecordToStream(t,e,n){Ai(this,e,(e=>{Si(this,Object.keys(t),(r=>{Si(this,Object.values(t),(i=>{this.h._addFlatHashMapToInputStream(r,i,Object.keys(t).length,e,n)}))}))}))}addProtoToStream(t,e,n,r){Ai(this,n,(n=>{Ai(this,e,(e=>{const i=this.h._malloc(t.length);this.h.HEAPU8.set(t,i),this.h._addProtoToInputStream(i,t.length,e,n,r),this.h._free(i)}))}))}addEmptyPacketToStream(t,e){Ai(this,t,(t=>{this.h._addEmptyPacketToInputStream(t,e)}))}addBoolVectorToStream(t,e,n){Ai(this,e,(e=>{const r=this.h._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const e of t)this.h._addBoolVectorEntry(r,e);this.h._addBoolVectorToInputStream(r,e,n)}))}addDoubleVectorToStream(t,e,n){Ai(this,e,(e=>{const r=this.h._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const e of t)this.h._addDoubleVectorEntry(r,e);this.h._addDoubleVectorToInputStream(r,e,n)}))}addFloatVectorToStream(t,e,n){Ai(this,e,(e=>{const r=this.h._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const e of t)this.h._addFloatVectorEntry(r,e);this.h._addFloatVectorToInputStream(r,e,n)}))}addIntVectorToStream(t,e,n){Ai(this,e,(e=>{const r=this.h._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const e of t)this.h._addIntVectorEntry(r,e);this.h._addIntVectorToInputStream(r,e,n)}))}addStringVectorToStream(t,e,n){Ai(this,e,(e=>{const r=this.h._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const e of t)Ai(this,e,(t=>{this.h._addStringVectorEntry(r,t)}));this.h._addStringVectorToInputStream(r,e,n)}))}addBoolToInputSidePacket(t,e){Ai(this,e,(e=>{this.h._addBoolToInputSidePacket(t,e)}))}addDoubleToInputSidePacket(t,e){Ai(this,e,(e=>{this.h._addDoubleToInputSidePacket(t,e)}))}addFloatToInputSidePacket(t,e){Ai(this,e,(e=>{this.h._addFloatToInputSidePacket(t,e)}))}addIntToInputSidePacket(t,e){Ai(this,e,(e=>{this.h._addIntToInputSidePacket(t,e)}))}addStringToInputSidePacket(t,e){Ai(this,e,(e=>{Ai(this,t,(t=>{this.h._addStringToInputSidePacket(t,e)}))}))}addProtoToInputSidePacket(t,e,n){Ai(this,n,(n=>{Ai(this,e,(e=>{const r=this.h._malloc(t.length);this.h.HEAPU8.set(t,r),this.h._addProtoToInputSidePacket(r,t.length,e,n),this.h._free(r)}))}))}addBoolVectorToInputSidePacket(t,e){Ai(this,e,(e=>{const n=this.h._allocateBoolVector(t.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(const e of t)this.h._addBoolVectorEntry(n,e);this.h._addBoolVectorToInputSidePacket(n,e)}))}addDoubleVectorToInputSidePacket(t,e){Ai(this,e,(e=>{const n=this.h._allocateDoubleVector(t.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(const e of t)this.h._addDoubleVectorEntry(n,e);this.h._addDoubleVectorToInputSidePacket(n,e)}))}addFloatVectorToInputSidePacket(t,e){Ai(this,e,(e=>{const n=this.h._allocateFloatVector(t.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(const e of t)this.h._addFloatVectorEntry(n,e);this.h._addFloatVectorToInputSidePacket(n,e)}))}addIntVectorToInputSidePacket(t,e){Ai(this,e,(e=>{const n=this.h._allocateIntVector(t.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(const e of t)this.h._addIntVectorEntry(n,e);this.h._addIntVectorToInputSidePacket(n,e)}))}addStringVectorToInputSidePacket(t,e){Ai(this,e,(e=>{const n=this.h._allocateStringVector(t.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(const e of t)Ai(this,e,(t=>{this.h._addStringVectorEntry(n,t)}));this.h._addStringVectorToInputSidePacket(n,e)}))}attachBoolListener(t,e){Ei(this,t,e),Ai(this,t,(t=>{this.h._attachBoolListener(t)}))}attachBoolVectorListener(t,e){Ti(this,t,e),Ai(this,t,(t=>{this.h._attachBoolVectorListener(t)}))}attachIntListener(t,e){Ei(this,t,e),Ai(this,t,(t=>{this.h._attachIntListener(t)}))}attachIntVectorListener(t,e){Ti(this,t,e),Ai(this,t,(t=>{this.h._attachIntVectorListener(t)}))}attachDoubleListener(t,e){Ei(this,t,e),Ai(this,t,(t=>{this.h._attachDoubleListener(t)}))}attachDoubleVectorListener(t,e){Ti(this,t,e),Ai(this,t,(t=>{this.h._attachDoubleVectorListener(t)}))}attachFloatListener(t,e){Ei(this,t,e),Ai(this,t,(t=>{this.h._attachFloatListener(t)}))}attachFloatVectorListener(t,e){Ti(this,t,e),Ai(this,t,(t=>{this.h._attachFloatVectorListener(t)}))}attachStringListener(t,e){Ei(this,t,e),Ai(this,t,(t=>{this.h._attachStringListener(t)}))}attachStringVectorListener(t,e){Ti(this,t,e),Ai(this,t,(t=>{this.h._attachStringVectorListener(t)}))}attachProtoListener(t,e,n){Ei(this,t,e),Ai(this,t,(t=>{this.h._attachProtoListener(t,n||!1)}))}attachProtoVectorListener(t,e,n){Ti(this,t,e),Ai(this,t,(t=>{this.h._attachProtoVectorListener(t,n||!1)}))}attachAudioListener(t,e,n){this.h._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),Ei(this,t,((t,n)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),e(t,n)})),Ai(this,t,(t=>{this.h._attachAudioListener(t,n||!1)}))}finishProcessing(){this.h._waitUntilIdle()}closeGraph(){this.h._closeGraph(),this.h.simpleListeners=void 0,this.h.emptyPacketListeners=void 0}});var xi=class extends Ii{};async function Pi(t,e,n){return t=await(async(t,e,n,r)=>{if(e&&await _i(e),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(n&&(await _i(n),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&r&&((e=self.Module).locateFile=r.locateFile,r.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=r.mainScriptUrlOrBlob)),r=await self.ModuleFactory(self.Module||r),self.ModuleFactory=self.Module=void 0,new t(r,null)})(t,e.wasmLoaderPath,e.assetLoaderPath,{locateFile:t=>t.endsWith(".wasm")?e.wasmBinaryPath.toString():e.assetBinaryPath&&t.endsWith(".data")?e.assetBinaryPath.toString():t}),await t.o(n),t}async function Oi(t,e,n){return Pi(t,e,n)}function Li(t,e){const n=Ye(t.baseOptions,oi,1)||new oi;"string"==typeof e?(Ce(n,2,we(e)),Ce(n,1)):e instanceof Uint8Array&&(Ce(n,1,ne(e,!1,!1)),Ce(n,2)),Ze(t.baseOptions,0,1,n)}function Bi(t,e){const n=e.baseOptions||{};if(e.baseOptions?.modelAssetBuffer&&e.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(Ye(t.baseOptions,oi,1)?.g()||Ye(t.baseOptions,oi,1)?.i()||e.baseOptions?.modelAssetBuffer||e.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");return function(t,e){let n=Ye(t.baseOptions,ri,3);if(!n){var r=n=new ri;tn(r,4,new br)}"delegate"in e&&("GPU"===e.delegate?tn(e=n,2,r=new mr):tn(e=n,4,r=new br)),Ze(t.baseOptions,0,3,n)}(t,n),n.modelAssetPath?fetch(n.modelAssetPath.toString()).then((t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${n.modelAssetPath} (${t.status})`)})).then((e=>{try{t.g.h.FS_unlink("/model.dat")}catch{}t.g.h.FS_createDataFile("/","model.dat",new Uint8Array(e),!0,!1,!1),Li(t,"/model.dat"),t.v()})):(Li(t,n.modelAssetBuffer),t.v(),Promise.resolve())}function Fi(t){try{const e=t.m.length;if(1===e)throw Error(t.m[0].message);if(1<e)throw Error("Encountered multiple errors: "+t.m.map((t=>t.message)).join(", "))}finally{t.m=[]}}function ki(t,e){t.j=Math.max(t.j,e)}var ji=class{constructor(t){this.g=t,this.m=[],this.j=0,this.g.setAutoRenderToScreen(!1)}setGraph(t,e){this.g.attachErrorListener(((t,e)=>{this.m.push(Error(e))})),this.g.T(),this.g.setGraph(t,e),Fi(this)}finishProcessing(){this.g.finishProcessing(),Fi(this)}close(){this.g.closeGraph()}};ji.prototype.close=ji.prototype.close;var Ui=class extends ji{constructor(t,e){super(new xi(t,e)),this.u={languages:[]},Ze(t=this.i=new ui,0,1,e=new si)}o(t){return Ze(this.i,0,2,fi(t,Ye(this.i,ti,2))),Bi(this,t)}get baseOptions(){return Ye(this.i,si,1)}set baseOptions(t){Ze(this.i,0,1,t)}P(t){return this.u={languages:[]},this.g.addStringToStream(t,"text_in",this.j+1),this.finishProcessing(),this.u}v(){var t=new Mr;Nr(t),sn(t,15,"classifications_out");const e=new Ar;an(e,ci,this.i);const n=new Br;$e(n,we("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),Lr(n),sn(n,4,"CLASSIFICATIONS:classifications_out"),n.o(e),nn(t,n),this.g.attachProtoListener("classifications_out",((t,e)=>{if(({classifications:t}=di(Hr(t))),1!==t.length)throw Error(`Expected 1 classification head, got ${t.length}`);this.u.languages=t[0].categories.map((t=>({languageCode:t.categoryName,probability:t.score}))),ki(this,e)})),this.g.attachEmptyPacketListener("classifications_out",(t=>{ki(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Ui.prototype.detect=Ui.prototype.P,Ui.prototype.setOptions=Ui.prototype.o,Ui.createFromModelPath=function(t,e){return Oi(Ui,t,{baseOptions:{modelAssetPath:e}})},Ui.createFromModelBuffer=function(t,e){return Oi(Ui,t,{baseOptions:{modelAssetBuffer:e}})},Ui.createFromOptions=function(t,e){return Oi(Ui,t,e)};var Vi=class extends ji{constructor(t,e){super(new xi(t,e)),this.u={classifications:[]},Ze(t=this.i=new ui,0,1,e=new si)}o(t){return Ze(this.i,0,2,fi(t,Ye(this.i,ti,2))),Bi(this,t)}get baseOptions(){return Ye(this.i,si,1)}set baseOptions(t){Ze(this.i,0,1,t)}O(t){return this.u={classifications:[]},this.g.addStringToStream(t,"text_in",this.j+1),this.finishProcessing(),this.u}v(){var t=new Mr;Nr(t),sn(t,15,"classifications_out");const e=new Ar;an(e,ci,this.i);const n=new Br;$e(n,we("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),Lr(n),sn(n,4,"CLASSIFICATIONS:classifications_out"),n.o(e),nn(t,n),this.g.attachProtoListener("classifications_out",((t,e)=>{this.u=di(Hr(t)),ki(this,e)})),this.g.attachEmptyPacketListener("classifications_out",(t=>{ki(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Vi.prototype.classify=Vi.prototype.O,Vi.prototype.setOptions=Vi.prototype.o,Vi.createFromModelPath=function(t,e){return Oi(Vi,t,{baseOptions:{modelAssetPath:e}})},Vi.createFromModelBuffer=function(t,e){return Oi(Vi,t,{baseOptions:{modelAssetBuffer:e}})},Vi.createFromOptions=function(t,e){return Oi(Vi,t,e)};var Ni=class extends ji{constructor(t,e){super(new xi(t,e)),this.u={embeddings:[]},Ze(t=this.i=new li,0,1,e=new si)}o(t){var e=this.i,n=Ye(this.i,ei,2);return n=n?Fe(n):new ei,void 0!==t.l2Normalize?Ce(n,1,fe(t.l2Normalize)):"l2Normalize"in t&&Ce(n,1),void 0!==t.quantize?Ce(n,2,fe(t.quantize)):"quantize"in t&&Ce(n,2),Ze(e,0,2,n),Bi(this,t)}get baseOptions(){return Ye(this.i,si,1)}set baseOptions(t){Ze(this.i,0,1,t)}R(t){return this.g.addStringToStream(t,"text_in",this.j+1),this.finishProcessing(),this.u}v(){var t=new Mr;Nr(t),sn(t,15,"embeddings_out");const e=new Ar;an(e,hi,this.i);const n=new Br;$e(n,we("mediapipe.tasks.text.text_embedder.TextEmbedderGraph")),Lr(n),sn(n,4,"EMBEDDINGS:embeddings_out"),n.o(e),nn(t,n),this.g.attachProtoListener("embeddings_out",((t,e)=>{t=Zr(t),this.u=function(t){return{embeddings:Qe(t,Kr).map((t=>{const e={headIndex:pe(Ve(t,3))??0??-1,headName:_e(Ve(t,4))??""??""};if(void 0!==Ke(t,qr,He(t,1))){var n=void 0;t=Ye(t,qr,He(t,1)).l;let s=Wt(t);const a=2&s?1:2;let u=Ge(t,s,1,1|((n=!!n)?2:0));s=Wt(t);var r=Rt(u);let c=r,l=!!(2&r);var i=!!(4&r),o=l&&i;if(!(4&r)){(i||Object.isFrozen(u))&&(u=Mt(u),c=0,l=!!(2&(r=en(r,s,n))),s=Me(t,s,1,u));let e=i=0;for(;i<u.length;i++){const t=he(u[i]);null!=t&&(u[e++]=t)}e<i&&(u.length=e),r=$t(r,4096,!1),r=$t(r,8192,!1),r=$t(r,20,!0)}o||((o=1===a)&&(r=$t(r,2,!0)),r!==c&&Ht(u,r),(o||l)&&Object.freeze(u)),2===a&&l&&(u=Mt(u),r=en(r,s,n),Ht(u,r),Me(t,s,1,u)),e.floatEmbedding=u}else n=new Uint8Array(0),e.quantizedEmbedding=Ye(t,Jr,He(t,2))?.M()?.N()??n;return e})),timestampMs:on(rn(t))}}(t),ki(this,e)})),this.g.attachEmptyPacketListener("embeddings_out",(t=>{ki(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Ni.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=pi(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=pi(gi(t.quantizedEmbedding),gi(e.quantizedEmbedding))}return t},Ni.prototype.embed=Ni.prototype.R,Ni.prototype.setOptions=Ni.prototype.o,Ni.createFromModelPath=function(t,e){return Oi(Ni,t,{baseOptions:{modelAssetPath:e}})},Ni.createFromModelBuffer=function(t,e){return Oi(Ni,t,{baseOptions:{modelAssetBuffer:e}})},Ni.createFromOptions=function(t,e){return Oi(Ni,t,e)};export{wi as FilesetResolver,Ui as LanguageDetector,ji as TaskRunner,Vi as TextClassifier,Ni as TextEmbedder};
|
|
2
2
|
//# sourceMappingURL=text_bundle_mjs.js.map
|