@mediapipe/tasks-text 1.2.1-rc.20261101 → 1.2.2-rc.20261103

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/NOTICE CHANGED
@@ -9922,6 +9922,252 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
9922
9922
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
9923
9923
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9924
9924
 
9925
+ =================
9926
+ highway
9927
+ This project is dual-licensed under your choice of either the Apache
9928
+ License 2.0 or the BSD 3-Clause License.
9929
+
9930
+ The full texts of all applicable licenses are included below, separated by
9931
+ '---'.
9932
+
9933
+ --------------------------------------------------------------------------------
9934
+ Apache License 2.0
9935
+ --------------------------------------------------------------------------------
9936
+
9937
+ Apache License
9938
+ Version 2.0, January 2004
9939
+ http://www.apache.org/licenses/
9940
+
9941
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9942
+
9943
+ 1. Definitions.
9944
+
9945
+ "License" shall mean the terms and conditions for use, reproduction,
9946
+ and distribution as defined by Sections 1 through 9 of this document.
9947
+
9948
+ "Licensor" shall mean the copyright owner or entity authorized by
9949
+ the copyright owner that is granting the License.
9950
+
9951
+ "Legal Entity" shall mean the union of the acting entity and all
9952
+ other entities that control, are controlled by, or are under common
9953
+ control with that entity. For the purposes of this definition,
9954
+ "control" means (i) the power, direct or indirect, to cause the
9955
+ direction or management of such entity, whether by contract or
9956
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
9957
+ outstanding shares, or (iii) beneficial ownership of such entity.
9958
+
9959
+ "You" (or "Your") shall mean an individual or Legal Entity
9960
+ exercising permissions granted by this License.
9961
+
9962
+ "Source" form shall mean the preferred form for making modifications,
9963
+ including but not limited to software source code, documentation
9964
+ source, and configuration files.
9965
+
9966
+ "Object" form shall mean any form resulting from mechanical
9967
+ transformation or translation of a Source form, including but
9968
+ not limited to compiled object code, generated documentation,
9969
+ and conversions to other media types.
9970
+
9971
+ "Work" shall mean the work of authorship, whether in Source or
9972
+ Object form, made available under the License, as indicated by a
9973
+ copyright notice that is included in or attached to the work
9974
+ (an example is provided in the Appendix below).
9975
+
9976
+ "Derivative Works" shall mean any work, whether in Source or Object
9977
+ form, that is based on (or derived from) the Work and for which the
9978
+ editorial revisions, annotations, elaborations, or other modifications
9979
+ represent, as a whole, an original work of authorship. For the purposes
9980
+ of this License, Derivative Works shall not include works that remain
9981
+ separable from, or merely link (or bind by name) to the interfaces of,
9982
+ the Work and Derivative Works thereof.
9983
+
9984
+ "Contribution" shall mean any work of authorship, including
9985
+ the original version of the Work and any modifications or additions
9986
+ to that Work or Derivative Works thereof, that is intentionally
9987
+ submitted to Licensor for inclusion in the Work by the copyright owner
9988
+ or by an individual or Legal Entity authorized to submit on behalf of
9989
+ the copyright owner. For the purposes of this definition, "submitted"
9990
+ means any form of electronic, verbal, or written communication sent
9991
+ to the Licensor or its representatives, including but not limited to
9992
+ communication on electronic mailing lists, source code control systems,
9993
+ and issue tracking systems that are managed by, or on behalf of, the
9994
+ Licensor for the purpose of discussing and improving the Work, but
9995
+ excluding communication that is conspicuously marked or otherwise
9996
+ designated in writing by the copyright owner as "Not a Contribution."
9997
+
9998
+ "Contributor" shall mean Licensor and any individual or Legal Entity
9999
+ on behalf of whom a Contribution has been received by Licensor and
10000
+ subsequently incorporated within the Work.
10001
+
10002
+ 2. Grant of Copyright License. Subject to the terms and conditions of
10003
+ this License, each Contributor hereby grants to You a perpetual,
10004
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
10005
+ copyright license to reproduce, prepare Derivative Works of,
10006
+ publicly display, publicly perform, sublicense, and distribute the
10007
+ Work and such Derivative Works in Source or Object form.
10008
+
10009
+ 3. Grant of Patent License. Subject to the terms and conditions of
10010
+ this License, each Contributor hereby grants to You a perpetual,
10011
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
10012
+ (except as stated in this section) patent license to make, have made,
10013
+ use, offer to sell, sell, import, and otherwise transfer the Work,
10014
+ where such license applies only to those patent claims licensable
10015
+ by such Contributor that are necessarily infringed by their
10016
+ Contribution(s) alone or by combination of their Contribution(s)
10017
+ with the Work to which such Contribution(s) was submitted. If You
10018
+ institute patent litigation against any entity (including a
10019
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
10020
+ or a Contribution incorporated within the Work constitutes direct
10021
+ or contributory patent infringement, then any patent licenses
10022
+ granted to You under this License for that Work shall terminate
10023
+ as of the date such litigation is filed.
10024
+
10025
+ 4. Redistribution. You may reproduce and distribute copies of the
10026
+ Work or Derivative Works thereof in any medium, with or without
10027
+ modifications, and in Source or Object form, provided that You
10028
+ meet the following conditions:
10029
+
10030
+ (a) You must give any other recipients of the Work or
10031
+ Derivative Works a copy of this License; and
10032
+
10033
+ (b) You must cause any modified files to carry prominent notices
10034
+ stating that You changed the files; and
10035
+
10036
+ (c) You must retain, in the Source form of any Derivative Works
10037
+ that You distribute, all copyright, patent, trademark, and
10038
+ attribution notices from the Source form of the Work,
10039
+ excluding those notices that do not pertain to any part of
10040
+ the Derivative Works; and
10041
+
10042
+ (d) If the Work includes a "NOTICE" text file as part of its
10043
+ distribution, then any Derivative Works that You distribute must
10044
+ include a readable copy of the attribution notices contained
10045
+ within such NOTICE file, excluding those notices that do not
10046
+ pertain to any part of the Derivative Works, in at least one
10047
+ of the following places: within a NOTICE text file distributed
10048
+ as part of the Derivative Works; within the Source form or
10049
+ documentation, if provided along with the Derivative Works; or,
10050
+ within a display generated by the Derivative Works, if and
10051
+ wherever such third-party notices normally appear. The contents
10052
+ of the NOTICE file are for informational purposes only and
10053
+ do not modify the License. You may add Your own attribution
10054
+ notices within Derivative Works that You distribute, alongside
10055
+ or as an addendum to the NOTICE text from the Work, provided
10056
+ that such additional attribution notices cannot be construed
10057
+ as modifying the License.
10058
+
10059
+ You may add Your own copyright statement to Your modifications and
10060
+ may provide additional or different license terms and conditions
10061
+ for use, reproduction, or distribution of Your modifications, or
10062
+ for any such Derivative Works as a whole, provided Your use,
10063
+ reproduction, and distribution of the Work otherwise complies with
10064
+ the conditions stated in this License.
10065
+
10066
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
10067
+ any Contribution intentionally submitted for inclusion in the Work
10068
+ by You to the Licensor shall be under the terms and conditions of
10069
+ this License, without any additional terms or conditions.
10070
+ Notwithstanding the above, nothing herein shall supersede or modify
10071
+ the terms of any separate license agreement you may have executed
10072
+ with Licensor regarding such Contributions.
10073
+
10074
+ 6. Trademarks. This License does not grant permission to use the trade
10075
+ names, trademarks, service marks, or product names of the Licensor,
10076
+ except as required for reasonable and customary use in describing the
10077
+ origin of the Work and reproducing the content of the NOTICE file.
10078
+
10079
+ 7. Disclaimer of Warranty. Unless required by applicable law or
10080
+ agreed to in writing, Licensor provides the Work (and each
10081
+ Contributor provides its Contributions) on an "AS IS" BASIS,
10082
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10083
+ implied, including, without limitation, any warranties or conditions
10084
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
10085
+ PARTICULAR PURPOSE. You are solely responsible for determining the
10086
+ appropriateness of using or redistributing the Work and assume any
10087
+ risks associated with Your exercise of permissions under this License.
10088
+
10089
+ 8. Limitation of Liability. In no event and under no legal theory,
10090
+ whether in tort (including negligence), contract, or otherwise,
10091
+ unless required by applicable law (such as deliberate and grossly
10092
+ negligent acts) or agreed to in writing, shall any Contributor be
10093
+ liable to You for damages, including any direct, indirect, special,
10094
+ incidental, or consequential damages of any character arising as a
10095
+ result of this License or out of the use or inability to use the
10096
+ Work (including but not limited to damages for loss of goodwill,
10097
+ work stoppage, computer failure or malfunction, or any and all
10098
+ other commercial damages or losses), even if such Contributor
10099
+ has been advised of the possibility of such damages.
10100
+
10101
+ 9. Accepting Warranty or Additional Liability. While redistributing
10102
+ the Work or Derivative Works thereof, You may choose to offer,
10103
+ and charge a fee for, acceptance of support, warranty, indemnity,
10104
+ or other liability obligations and/or rights consistent with this
10105
+ License. However, in accepting such obligations, You may act only
10106
+ on Your own behalf and on Your sole responsibility, not on behalf
10107
+ of any other Contributor, and only if You agree to indemnify,
10108
+ defend, and hold each Contributor harmless for any liability
10109
+ incurred by, or claims asserted against, such Contributor by reason
10110
+ of your accepting any such warranty or additional liability.
10111
+
10112
+ END OF TERMS AND CONDITIONS
10113
+
10114
+ APPENDIX: How to apply the Apache License to your work.
10115
+
10116
+ To apply the Apache License to your work, attach the following
10117
+ boilerplate notice, with the fields enclosed by brackets "[]"
10118
+ replaced with your own identifying information. (Don't include
10119
+ the brackets!) The text should be enclosed in the appropriate
10120
+ comment syntax for the file format. We also recommend that a
10121
+ file or class name and description of purpose be included on the
10122
+ same "printed page" as the copyright notice for easier
10123
+ identification within third-party archives.
10124
+
10125
+ Copyright [yyyy] [name of copyright owner]
10126
+
10127
+ Licensed under the Apache License, Version 2.0 (the "License");
10128
+ you may not use this file except in compliance with the License.
10129
+ You may obtain a copy of the License at
10130
+
10131
+ http://www.apache.org/licenses/LICENSE-2.0
10132
+
10133
+ Unless required by applicable law or agreed to in writing, software
10134
+ distributed under the License is distributed on an "AS IS" BASIS,
10135
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10136
+ See the License for the specific language governing permissions and
10137
+ limitations under the License.
10138
+
10139
+ --------------------------------------------------------------------------------
10140
+ BSD 3-Clause License
10141
+ --------------------------------------------------------------------------------
10142
+
10143
+ Copyright (c) The Highway Project Authors. All rights reserved.
10144
+
10145
+ Redistribution and use in source and binary forms, with or without modification,
10146
+ are permitted provided that the following conditions are met:
10147
+
10148
+ 1. Redistributions of source code must retain the above copyright notice, this
10149
+ list of conditions and the following disclaimer.
10150
+
10151
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10152
+ this list of conditions and the following disclaimer in the documentation
10153
+ and/or other materials provided with the distribution.
10154
+
10155
+ 3. Neither the name of the copyright holder nor the names of its
10156
+ contributors may be used to endorse or promote products derived from
10157
+ this software without specific prior written permission.
10158
+
10159
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
10160
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
10161
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
10162
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
10163
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
10164
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
10165
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
10166
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
10167
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
10168
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10169
+
10170
+
9925
10171
  =================
9926
10172
  ICU4C
9927
10173
  UNICODE LICENSE V3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediapipe/tasks-text",
3
- "version": "1.2.1-rc.20261101",
3
+ "version": "1.2.2-rc.20261103",
4
4
  "description": "MediaPipe Text Tasks. See the privacy notice at https://goo.gle/mediapipe-privacy.",
5
5
  "main": "text_bundle.cjs",
6
6
  "browser": "text_bundle.mjs",
package/text_bundle.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var t="undefined"!=typeof self?self:{};function e(){throw Error("Invalid UTF8")}function r(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}var n,i,o=void 0,s="undefined"!=typeof TextDecoder,a="undefined"!=typeof TextEncoder;function u(t){if(a)t=(i||=new TextEncoder).encode(t);else{let r=0,n=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var e=t.charCodeAt(i);if(e<128)n[r++]=e;else{if(e<2048)n[r++]=e>>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&i<t.length){let o=t.charCodeAt(++i);if(o>=56320&&o<=57343){e=1024*(e-55296)+o-56320+65536,n[r++]=e>>18|240,n[r++]=e>>12&63|128,n[r++]=e>>6&63|128,n[r++]=63&e|128;continue}i--}e=65533}n[r++]=e>>12|224,n[r++]=e>>6&63|128}n[r++]=63&e|128}}t=r===n.length?n:n.subarray(0,r)}return t}function l(){var e=t.navigator;return e&&(e=e.userAgent)?e:""}function c(t){return c[" "](t),t}c[" "]=function(){};var h={},f=null;function d(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):-1!="=.".indexOf(t[e-1])&&(r=-1!="=.".indexOf(t[e-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return function(t,e){function r(e){for(;n<t.length;){let e=t.charAt(n++),r=f[e];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(e))throw Error("Unknown base64 encoding at char: "+e)}return e}p();for(var n=0;;){let t=r(-1),n=r(0),i=r(64),o=r(64);if(64===o&&-1===t)break;e(t<<2|n>>4),64!=i&&(e(n<<4&240|i>>2),64!=o&&e(i<<6&192|o))}}(t,function(t){n[i++]=t}),i!==r?n.subarray(0,i):n}function p(){if(!f){f={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){let n=t.concat(e[r].split(""));h[r]=n;for(let t=0;t<n.length;t++){let e=n[t];void 0===f[e]&&(f[e]=t)}}}}var v="undefined"!=typeof Uint8Array,m=!(-1!=l().indexOf("Trident")||-1!=l().indexOf("MSIE"))&&"function"==typeof btoa,g=/[-_.]/g,y={"-":"+",_:"/",".":"="};function b(t){return y[t]||""}function w(t){if(!m)return d(t);t=g.test(t)?t.replace(g,b):t,t=atob(t);var e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}var S={};function _(){return T||=new A(null,S)}function E(t){I(S);var e=t.h;return null==(e=null==e||v&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?w(e):null)?e:t.h=e}var T,A=class{j(){return new Uint8Array(E(this)||0)}constructor(t,e){if(I(e),this.h=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};function I(t){if(t!==S)throw Error("illegal external caller")}function j(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}var x,N,P=void 0;function O(t){return j(t=Error(t),"warning"),t}function B(e,r){if(null!=e){var n=P??={},i=n[e]||0;i>=r||(n[e]=i+1,j(e=Error(),"incident"),function(e){t.setTimeout(()=>{throw e},0)}(e))}}t:{for(var L=["CLOSURE_FLAGS"],U=t,k=0;k<L.length;k++)if(null==(U=U[L[k]])){N=null;break t}N=U}var F=N&&N[748402147];function V(){return"function"==typeof BigInt}x=null==F||F;var C="function"==typeof Symbol&&"symbol"==typeof Symbol();function M(t,e,r=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?r&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol():e}var R,G=M("jas",void 0,!0),D=M(void 0,"1oa"),z=M(void 0,Symbol()),$=M(void 0,"0ubs"),H=M(void 0,"0ubsb"),W=M(void 0,"0actk"),K=M("m_m","ka",!0),q={ca:{value:0,configurable:!0,writable:!0,enumerable:!1}},Y=Object.defineProperties,J=C?G:"ca",X=[];function Q(t,e){C||J in t||Y(t,q),t[J]|=e}function Z(t,e){C||J in t||Y(t,q),t[J]=e}function tt(t,e){return 2&e&&(t|=2),1|t}Z(X,7),R=Object.freeze(X);var et={};function rt(t,e){return void 0===e?t.h!==nt&&!!(2&t.m[J]):!!(2&e)&&t.h!==nt}var nt={};function it(t,e){if(null!=t)if("string"==typeof t)t=t?new A(t,S):_();else if(!(t instanceof A))if(v&&null!=t&&t instanceof Uint8Array)t=t.length?new A(new Uint8Array(t),S):_();else{if(!e)throw Error();t=void 0}return t}function ot(t,e,r){var n,i=128&e?0:-1,o=t.length;(n=!!o)&&(n=null!=(n=t[o-1])&&"object"==typeof n&&n.constructor===Object);var s=o+(n?-1:0);for(e=128&e?1:0;e<s;e++)r(e-i,t[e]);if(n){t=t[o-1];for(let e in t)!isNaN(e)&&r(+e,t[e])}}Object.freeze({});var st={};function at(t){return 128&t?st:void 0}function ut(t){return t.ia=!0,t}var lt=ut(t=>"number"==typeof t),ct=ut(t=>"string"==typeof t),ht=ut(t=>"boolean"==typeof t),ft="function"==typeof t.BigInt&&"bigint"==typeof t.BigInt(0);function dt(t){var e=t;if(ct(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(lt(e)&&!Number.isSafeInteger(e))throw Error(String(e));return ft?BigInt(t):t=ht(t)?t?"1":"0":ct(t)?t.trim()||"0":String(t)}var pt=ut(t=>ft?t>=mt&&t<=yt:"-"===t[0]?bt(t,vt):bt(t,gt)),vt=Number.MIN_SAFE_INTEGER.toString(),mt=ft?BigInt(Number.MIN_SAFE_INTEGER):void 0,gt=Number.MAX_SAFE_INTEGER.toString(),yt=ft?BigInt(Number.MAX_SAFE_INTEGER):void 0;function bt(t,e){if(t.length>e.length)return!1;if(t.length<e.length||t===e)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=e[r];if(n>i)return!1;if(n<i)return!0}}var wt,St="function"==typeof Uint8Array.prototype.slice,_t=0,Et=0;function Tt(t){var e=t>>>0;_t=e,Et=(t-e)/4294967296>>>0}function At(t){if(t<0){Tt(-t);let[e,r]=Ut(_t,Et);_t=e>>>0,Et=r>>>0}else Tt(t)}function It(t){var e=wt||=new DataView(new ArrayBuffer(8));e.setFloat32(0,+t,!0),Et=0,_t=e.getUint32(0,!0)}function jt(t,e){var r=4294967296*e+(t>>>0);return Number.isSafeInteger(r)?r:Pt(t,e)}function xt(t,e){return dt(V()?BigInt.asUintN(64,(BigInt(e>>>0)<<BigInt(32))+BigInt(t>>>0)):Pt(t,e))}function Nt(t,e){return V()?dt(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(e))<<BigInt(32))+BigInt.asUintN(32,BigInt(t)))):dt(Bt(t,e))}function Pt(t,e){if(t>>>=0,(e>>>=0)<=2097151)var r=""+(4294967296*e+t);else V()?r=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(r=16777215&(t>>>24|e<<8))+6710656*(e=e>>16&65535),r+=8147497*e,e*=2,t>=1e7&&(r+=t/1e7>>>0,t%=1e7),r>=1e7&&(e+=r/1e7>>>0,r%=1e7),r=e+Ot(r)+Ot(t));return r}function Ot(t){return t=String(t),"0000000".slice(t.length)+t}function Bt(t,e){if(2147483648&e)if(V())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{let[r,n]=Ut(t,e);t="-"+Pt(r,n)}else t=Pt(t,e);return t}function Lt(t){if(t.length<16)At(Number(t));else if(V())t=BigInt(t),_t=Number(t&BigInt(4294967295))>>>0,Et=Number(t>>BigInt(32)&BigInt(4294967295));else{let e=+("-"===t[0]);Et=_t=0;let r=t.length;for(let n=e,i=(r-e)%6+e;i<=r;n=i,i+=6){let e=Number(t.slice(n,i));Et*=1e6,(_t=1e6*_t+e)>=4294967296&&(Et+=Math.trunc(_t/4294967296),Et>>>=0,_t>>>=0)}if(e){let[t,e]=Ut(_t,Et);_t=t,Et=e}}}function Ut(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function kt(t){return Array.prototype.slice.call(t)}var Ft="function"==typeof BigInt?BigInt.asIntN:void 0,Vt="function"==typeof BigInt?BigInt.asUintN:void 0,Ct=Number.isSafeInteger,Mt=Number.isFinite,Rt=Math.trunc;function Gt(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function Dt(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}var zt=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function $t(t){switch(typeof t){case"bigint":return!0;case"number":return Mt(t);case"string":return zt.test(t);default:return!1}}function Ht(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?0|t:void 0}function Wt(t){var e=t.length;return("-"===t[0]?e<20||20===e&&t<="-9223372036854775808":e<19||19===e&&t<="9223372036854775807")?t:(Lt(t),Bt(_t,Et))}function Kt(t){if("-"===t[0])var e=!1;else e=(e=t.length)<20||20===e&&t<="18446744073709551615";return e?t:(Lt(t),Pt(_t,Et))}function qt(t){if(t=Rt(t),!Ct(t)){At(t);var e=_t,r=Et;(t=2147483648&r)&&(r=~r>>>0,0==(e=1+~e>>>0)&&(r=r+1>>>0)),t="number"==typeof(e=jt(e,r))?t?-e:e:t?"-"+e:e}return t}function Yt(t){return t=Rt(t),Ct(t)?t=String(t):(At(t),t=Bt(_t,Et)),t}function Jt(t){var e=Rt(Number(t));return Ct(e)?String(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),Wt(t))}function Xt(t){var e=Rt(Number(t));return Ct(e)?dt(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),V()?dt(Ft(64,BigInt(t))):dt(Wt(t)))}function Qt(t){var e=typeof t;return null==t?t:"bigint"===e?dt(Ft(64,t)):$t(t)?"string"===e?Xt(t):dt(Ct(t)?t:Yt(t)):void 0}function Zt(t){if(null==t)return t;var e=typeof t;if("bigint"===e)return String(Ft(64,t));if($t(t)){if("string"===e)return Jt(t);if("number"===e)return qt(t)}}function te(t){if(null==t)return t;var e=typeof t;if("bigint"===e)return String(Vt(64,t));if($t(t)){if("string"===e)return function(t){var e=Rt(Number(t));return Ct(e)&&e>=0?String(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),Kt(t))}(t);if("number"===e)return function(t){return(t=Rt(t))>=0&&Ct(t)||(At(t),t=jt(_t,Et)),t}(t)}}function ee(t){if(null==t||"string"==typeof t||t instanceof A)return t}function re(t){if("string"!=typeof t)throw Error();return t}function ne(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function ie(t){return null==t||"string"==typeof t?t:void 0}function oe(t,e,r){if(null!=t&&t[K]===et)return t;if(Array.isArray(t)){var n=0|t[J];return(r=n|32&r|2&r)!==n&&Z(t,r),new e(t)}}function se(t){return t}function ae(t){return z?t[z]:void 0}function ue(t,e){for(let r in t)!isNaN(r)&&e(t,+r,t[r])}var le,ce,he,fe=class{};function de(t,e){e<100||B($,1)}function pe(t,e,r,n){var i=void 0!==n;n=!!n;var o,s=z;!i&&C&&s&&(o=t[s])&&ue(o,de),s=[];var a=t.length;o=4294967295;var u=!1,l=!!(64&e),c=l?128&e?0:-1:void 0;if(!(1&e)){var h=a&&t[a-1];null!=h&&"object"==typeof h&&h.constructor===Object?o=--a:h=void 0,!l||128&e||i||(u=!0,o=(le??se)(o-c,c,t,h,void 0)+c)}e=void 0;for(var f=0;f<a;f++){let i=t[f];if(null!=i&&null!=(i=r(i,n)))if(l&&f>=o){let t=f-c;(e??={})[t]=i}else s[f]=i}if(h)for(let t in h){if(null==(a=h[t])||null==(a=r(a,n)))continue;let i;f=+t,l&&!Number.isNaN(f)&&(i=f+c)<o?s[i]=a:(e??={})[t]=a}return e&&(u?s.push(e):s[o]=e),i&&z&&(t=ae(t))&&t instanceof fe&&(s[z]=function(t){var e=new fe;return ue(t,(t,r,n)=>{e[r]=kt(n)}),e.h=t.h,e}(t)),s}function ve(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return pt(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(Array.isArray(t)){var e=0|t[J];return 0===t.length&&1&e?void 0:pe(t,e,ve)}if(null!=t&&t[K]===et)return me(t);if(t instanceof A){if(null==(e=t.h))t="";else if("string"==typeof e)t=e;else{if(m){for(var r="",n=0,i=e.length-10240;n<i;)r+=String.fromCharCode.apply(null,e.subarray(n,n+=10240));r+=String.fromCharCode.apply(null,n?e.subarray(n):e),e=btoa(r)}else{void 0===r&&(r=0),p(),r=h[r],n=Array(Math.floor(e.length/3)),i=r[64]||"";let t=0,l=0;for(;t<e.length-2;t+=3){var o=e[t],s=e[t+1],a=e[t+2],u=r[o>>2];o=r[(3&o)<<4|s>>4],s=r[(15&s)<<2|a>>6],a=r[63&a],n[l++]=u+o+s+a}switch(u=0,a=i,e.length-t){case 2:a=r[(15&(u=e[t+1]))<<2]||i;case 1:e=e[t],n[l]=r[e>>2]+r[(3&e)<<4|u>>4]+a+i}e=n.join("")}t=t.h=e}return t}return}return t}function me(t){return pe(t=t.m,0|t[J],ve)}function ge(t,e){return ye(t,e[0],e[1])}function ye(t,e,r,n=0){if(null==t){var i=32;r?(t=[r],i|=128):t=[],e&&(i=-16760833&i|(1023&e)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(i=0|t[J],x&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(x)throw Error("carr");B(W,5)}(),256&i)throw Error("farr");if(64&i)return(i|n)!==i&&Z(t,i|n),t;if(r&&(i|=128,r!==t[0]))throw Error("mid");t:{i|=64;var o=(r=t).length;if(o){var s=o-1;let t=r[s];if(null!=t&&"object"==typeof t&&t.constructor===Object){if((s-=e=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var a in t)(o=+a)<s&&(r[o+e]=t[a],delete t[a]);i=-16760833&i|(1023&s)<<14;break t}}if(e){if((a=Math.max(e,o-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&a)<<14}}}return Z(t,64|i|n),t}function be(t,e){if("object"!=typeof t)return t;if(Array.isArray(t)){var r=0|t[J];return 0===t.length&&1&r?t=void 0:2&r||(!e||4096&r||16&r?t=_e(t,r,!1,e&&!(16&r)):(Q(t,34),4&r&&Object.freeze(t))),t}return null!=t&&t[K]===et?rt(t,r=0|(e=t.m)[J])?t:je(t,e,r)?we(t,e):_e(e,r):t instanceof A?t:void 0}function we(t,e,r){return t=new t.constructor(e),r&&(t.h=nt),t.o=nt,t}function Se(t){var e=t.m,r=0|e[J];return je(t,e,r)?we(t,e,!0):new t.constructor(_e(e,r,!1))}function _e(t,e,r,n){return n??=!!(34&e),t=pe(t,e,be,n),n=32,r&&(n|=2),Z(t,e=16769217&e|n),t}function Ee(t){var e=t.m,r=0|e[J];return rt(t,r)?je(t,e,r)?we(t,e,!0):new t.constructor(_e(e,r,!1)):t}function Te(t){if(t.h!==nt)return!1;var e=t.m;return Q(e=_e(e,0|e[J]),2048),t.m=e,t.h=void 0,t.o=void 0,!0}function Ae(t){if(!Te(t)&&rt(t,0|t.m[J]))throw Error()}function Ie(t,e){void 0===e&&(e=0|t[J]),32&e&&!(4096&e)&&Z(t,4096|e)}function je(t,e,r){return!!(2&r)||!(!(32&r)||4096&r)&&(Z(e,2|r),t.h=nt,!0)}var xe=dt(0);function Ne(t,e,r,n){if(null!==(t=Pe(t.m,e,r,n)))return t}function Pe(t,e,r,n){if(-1===e)return null;var i=e+(r?0:-1),o=t.length-1;if(!(o<1+(r?0:-1))){if(i>=o){var s=t[o];if(null!=s&&"object"==typeof s&&s.constructor===Object){r=s[e];var a=!0}else{if(i!==o)return;r=s}}else r=t[i];if(n&&null!=r){if(null==(n=n(r)))return n;if(!Object.is(n,r))return a?s[e]=n:t[i]=n,n}return r}}function Oe(t,e,r,n){Ae(t);var i=t.m;return Be(i,0|i[J],e,r,n),t}function Be(t,e,r,n,i){var o=r+(i?0:-1),s=t.length-1;if(s>=1+(i?0:-1)&&o>=s){let i=t[s];if(null!=i&&"object"==typeof i&&i.constructor===Object)return i[r]=n,e}return o<=s?(t[o]=n,e):(void 0!==n&&(r>=(s=(e??=0|t[J])>>14&1023||536870912)?null!=n&&(t[s+(i?0:-1)]={[r]:n}):t[o]=n),e)}function Le(t,e){return null!=(t=Pe(t.m,e))&&t[K]===et||Array.isArray(t)}function Ue(t,e,r){return Le(t,e=ze(t,r)===e?e:-1)}function ke(t,e,r,n,i){var o=t.m,s=0|o[J];n=n&&4!==n?1!==n&&(t?rt(t,s):2&s)?1:n:4,i=!!i||3===n,2===n&&Te(t)&&(s=0|(o=t.m)[J]);var a=(t=Ve(o,e))===R?7:0|t[J],u=tt(a,s),l=!(4&u);if(l){let e=0,n=0;for(;e<t.length;e++){let i=r(t[e]);null!=i&&(t[n++]=i)}n<e&&(t.length=n),r=-513&u|4,u=r&=-1025,u&=-4097}return u!==a&&(Z(t,u),2&u&&Object.freeze(t)),Fe(t,u,o,s,e,n,l,i)}function Fe(t,e,r,n,i,o,s,a){var u=e,l=Ce(e);return l&&2===o&&(t=kt(t),u=0,e=tr(e,n),n=Be(r,n,i,t),l=!1),l||(1===o||4===o&&(2&e||!(16&e)&&32&n)?((e|=!t.length||s&&!(4096&e)||32&n&&!(4096&e||16&e)?2:256)!==u&&Z(t,e),Object.freeze(t)):(a||(e|=16),e!==u&&Z(t,e))),2&e||!(4096&e||16&e)||Ie(r,n),t}function Ve(t,e,r){return t=Pe(t,e,r),Array.isArray(t)?t:R}function Ce(t){return!!(2&t)&&!!(4&t)||!!(256&t)}function Me(t){return it(t,!0)}function Re(t,e,r){Ae(t);var n=0|(t=t.m)[J];if(null==r)Be(t,n,e);else{var i=r===R?7:0|r[J],o=i,s=Ce(i),a=s||Object.isFrozen(r);for(s||(i=0),a||(r=kt(r),o=0,i=tr(i,n),a=!1),i|=5,i|=(4&i?512&i?512:1024&i?1024:0:void 0)??1024,s=0;s<r.length;s++){let t=r[s],e=re(t);Object.is(t,e)||(a&&(r=kt(r),o=0,i=tr(i,n),a=!1),r[s]=e)}i!==o&&(a&&(r=kt(r),i=tr(i,n)),Z(r,i)),Be(t,n,e,r)}}function Ge(t,e){Ae(t),Be(t=t.m,0|t[J],2,""===e?void 0:e)}function De(t,e,r){if(2&e)throw Error();var n=at(e),i=Ve(t,r,n),o=i===R?7:0|i[J],s=tt(o,e);return(2&s||Ce(s)||16&s)&&(s===o||Ce(s)||Z(i,s),i=kt(i),o=0,s=tr(s,e),Be(t,e,r,i,n)),(s&=-13)!==o&&Z(i,s),i}function ze(t,e){return We($e(t=t.m),t,void 0,e)}function $e(t){if(C)return t[D]??(t[D]=new Map);if(D in t)return t[D];var e=new Map;return Object.defineProperty(t,D,{value:e}),e}function He(t,e,r,n,i){var o=$e(t),s=We(o,t,e,r,i);return s!==n&&(s&&(e=Be(t,e,s,void 0,i)),o.set(r,n)),e}function We(t,e,r,n,i){var o=t.get(n);if(null!=o)return o;o=0;for(let t=0;t<n.length;t++){let s=n[t];null!=Pe(e,s,i)&&(0!==o&&(r=Be(e,r,o,void 0,i)),o=s)}return t.set(n,o),o}function Ke(t,e,r){var n=0|t[J],i=at(n),o=Pe(t,r,i);if(null!=o&&o[K]===et){if(!rt(o))return Te(o),o.m;var s=o.m}else Array.isArray(o)&&(s=o,2&n&&Q(s,34));if(s){let t=0|s[J];2&t&&(s=_e(s,t))}return(s=ge(s,e))!==o&&Be(t,n,r,s,i),s}function qe(t,e,r){var n=t.m,i=0|n[J];if(e=function(t,e,r,n){var i=!1;if(null!=(n=Pe(t,n,void 0,t=>{var n=oe(t,r,e);return i=n!==t&&null!=n,n})))return i&&!rt(n)&&Ie(t,e),n}(n,i,e,r),null==e)return e;if(!rt(t,i=0|n[J])){let o=Ee(e);o!==e&&(Te(t)&&(i=0|(n=t.m)[J]),Ie(n,i=Be(n,i,r,e=o)))}return e}function Ye(t,e,r,n,i,o,s,a){o=o&&4!==o?1!==o&&(t?rt(t,r):2&r)?1:o:4,s=!!s||3===o;var u=!!a&&!(t?rt(t,r):2&r);(2===o||u)&&t&&Te(t)&&(r=0|(e=t.m)[J]);var l=(t=Ve(e,i))===R?7:0|t[J],c=tt(l,r);if(a=!(4&c)){var h=t,f=r;let e=!!(2&c);e&&(f|=2);let i=!e,o=!0,s=0,a=0;for(;s<h.length;s++){let t=oe(h[s],n,f);if(t instanceof n){if(!e){let e=rt(t);i&&=!e,o&&=e}h[a++]=t}}a<s&&(h.length=a),c|=4,c=o?-4097&c:4096|c,c=i?8|c:-9&c}if(c!==l&&(Z(t,c),2&c&&Object.freeze(t)),u&&!(8&c||!t.length&&(1===o||4===o&&(2&c||!(16&c)&&32&r)))){for(Ce(c)&&(t=kt(t),c=tr(c,r),r=Be(e,r,i,t)),n=t,u=c,l=0;l<n.length;l++)(h=n[l])!==(c=Ee(h))&&(n[l]=c);u|=8,Z(t,c=u=n.length?4096|u:-4097&u)}return Fe(t,c,e,r,i,o,a,s)}function Je(t,e){var r=t.m;return Ye(t,r,0|r[J],e,1,void 0,!1,!0)}function Xe(t){return null==t&&(t=void 0),t}function Qe(t,e,r,n,i){return Oe(t,r,n=Xe(n),i),n&&!rt(n)&&Ie(t.m),t}function Ze(t,e,r,n){t:{var i=n=Xe(n);Ae(t);let o=t.m,s=0|o[J];if(null==i){let t=$e(o);if(We(t,o,s,r)!==e)break t;t.set(r,0)}else s=He(o,s,r,e);Be(o,s,e,i)}return n&&!rt(n)&&Ie(t.m),t}function tr(t,e){return-273&(2&e?2|t:-3&t)}function er(t,e,r,n){Ae(t);var i=t.m;t=Ye(t,i,0|i[J],r,e,2,!0),n=null!=n?n:new r,t.push(n),e=r=t===R?7:0|t[J],(n=rt(n))?(r&=-9,1===t.length&&(r&=-4097)):r|=4096,r!==e&&Z(t,r),n||Ie(i)}function rr(t,e,r,n){return qe(t,e,r=ze(t,n)===r?r:-1)}function nr(t,e,r){if(null!=r)t:{if(!$t(r))throw O("int64");switch(typeof r){case"string":r=Xt(r);break t;case"bigint":r=dt(Ft(64,r));break t;default:r=dt(Ct(r)?r:Yt(r))}}return Oe(t,e,r)}function ir(t,e,r){return Oe(t,e,null==r?r:function(t){if(!$t(t))throw O("uint64");var e=typeof t;switch(e){case"string":return e=Rt(Number(t)),Ct(e)&&e>=0?t=dt(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),t=V()?dt(Vt(64,BigInt(t))):dt(Kt(t))),t;case"bigint":return dt(Vt(64,t));default:return t>=0&&Ct(t)||((t=Rt(t))>=0&&Ct(t)?t=String(t):(At(t),t=Pt(_t,Et))),dt(t)}}(r))}function or(t,e,r){if(null!=r){if(!Mt(r))throw O("enum");r|=0}return Oe(t,e,r)}function sr(t,e,r){Ae(t),ke(t,e,ie,2,!0).push(re(r))}var ar=class{constructor(t,e,r){if(this.buffer=t,r&&!e)throw Error();this.h=e}};function ur(t,e){if("string"==typeof t)return new ar(w(t),e);if(Array.isArray(t))return new ar(new Uint8Array(t),e);if(t.constructor===Uint8Array)return new ar(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new ar(t,!1);if(t.constructor===A)return e=E(t)||new Uint8Array(0),new ar(e,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new ar(t,!1);throw Error()}function lr(t,e){var r=0,n=0,i=0,o=t.j,s=t.h;do{var a=o[s++];r|=(127&a)<<i,i+=7}while(i<32&&128&a);if(i>32)for(n|=(127&a)>>4,i=3;i<32&&128&a;i+=7)n|=(127&(a=o[s++]))<<i;if(mr(t,s),!(128&a))return e(r>>>0,n>>>0);throw Error()}function cr(t){for(var e=0,r=t.h,n=r+10,i=t.j;r<n;){let n=i[r++];if(e|=n,!(128&n))return mr(t,r),!!(127&e)}throw Error()}function hr(t){var e=t.j,r=t.h,n=e[r++],i=127&n;if(128&n&&(i|=(127&(n=e[r++]))<<7,128&n&&(i|=(127&(n=e[r++]))<<14,128&n&&(i|=(127&(n=e[r++]))<<21,128&n&&(i|=(n=e[r++])<<28,128&n&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++])))))throw Error();return mr(t,r),i}function fr(t){return lr(t,Nt)}function dr(t){var e=t.j,r=t.h,n=e[r],i=e[r+1],o=e[r+2];return e=e[r+3],mr(t,t.h+4),(n|i<<8|o<<16|e<<24)>>>0}function pr(t){var e=dr(t);t=2*(e>>31)+1;var r=e>>>23&255;return e&=8388607,255==r?e?NaN:t*(1/0):0==r?1401298464324817e-60*t*e:t*Math.pow(2,r-150)*(e+8388608)}function vr(t){return hr(t)}function mr(t,e){if(t.h=e,e>t.l)throw Error()}function gr(t,e){if(e<0)throw Error();var r=t.h;if((e=r+e)>t.l)throw Error();return t.h=e,r}function yr(t,e){if(0==e)return _();var r=gr(t,e);return t.M&&t.A?r=t.j.subarray(r,r+e):(t=t.j,r=r===(e=r+e)?new Uint8Array(0):St?t.slice(r,e):new Uint8Array(t.subarray(r,e))),0==r.length?_():new A(r,S)}var br=class{constructor(t,e,r,n){this.j=null,this.A=!1,this.h=this.l=this.o=0,this.init(t,e,r,n)}init(t,e,r,{M:n=!1,R:i=!1}={}){this.M=n,this.R=i,t&&(t=ur(t,this.R),this.j=t.buffer,this.A=t.h,this.o=e||0,this.l=void 0!==r?this.o+r:this.j.length,this.h=this.o)}clear(){this.j=null,this.A=!1,this.h=this.l=this.o=0,this.M=!1}},wr=[],Sr=0;function _r(t,e,r,n){if(Br.length){let i=Br.pop();return i.v(n),i.h.init(t,e,r,n),i}return new Or(t,e,r,n)}function Er(t){t.h.clear(),t.l=-1,t.j=-1,Br.length<100&&Br.push(t)}function Tr(t){var e=t.h;if(e.h==e.l)return!1;t.o=t.h.h;var r=hr(t.h)>>>0;if(e=r>>>3,!((r&=7)>=0&&r<=5))throw Error();if(e<1)throw Error();return t.l=e,t.j=r,!0}function Ar(t){try{switch(t.j){case 0:0!=t.j?Ar(t):cr(t.h);break;case 1:var e=t.h;mr(e,e.h+8);break;case 2:if(2!=t.j)Ar(t);else{var r=hr(t.h)>>>0,n=t.h;mr(n,n.h+r)}break;case 5:var i=t.h;mr(i,i.h+4);break;case 3:Ir();let o=t.l;try{for(;;){if(!Tr(t))throw Error();if(4==t.j){if(t.l!=o)throw Error();break}Ar(t)}}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}finally{Sr>0&&Sr--}break;default:throw Error()}}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}}function Ir(){if(Sr>=100)throw new SyntaxError;Sr++}function jr(t,e,r){var n=t.h.l,i=hr(t.h)>>>0,o=(i=t.h.h+i)-n;if(o<=0&&(t.h.l=i,r(e,t,void 0,void 0,void 0),o=i-t.h.h),o)throw Error();t.h.h=i,t.h.l=n}function xr(t){var i=hr(t.h)>>>0,a=gr(t=t.h,i);if(t=t.j,s){var u,l=t;(u=n)||(u=n=new TextDecoder("utf-8",{fatal:!0})),i=a+i,l=0===a&&i===l.length?l:l.subarray(a,i);try{var c=u.decode(l)}catch(t){if(void 0===o){try{u.decode(new Uint8Array([128]))}catch(t){}try{u.decode(new Uint8Array([97])),o=!0}catch(t){o=!1}}throw!o&&(n=void 0),t}}else{i=(c=a)+i,a=[];let n,o=null;for(;c<i;){var h=t[c++];h<128?a.push(h):h<224?c>=i?e():(n=t[c++],h<194||128!=(192&n)?(c--,e()):a.push((31&h)<<6|63&n)):h<240?c>=i-1?e():(n=t[c++],128!=(192&n)||224===h&&n<160||237===h&&n>=160||128!=(192&(u=t[c++]))?(c--,e()):a.push((15&h)<<12|(63&n)<<6|63&u)):h<=244?c>=i-2?e():(n=t[c++],128!=(192&n)||n-144+(h<<28)>>30||128!=(192&(u=t[c++]))||128!=(192&(l=t[c++]))?(c--,e()):(h=(7&h)<<18|(63&n)<<12|(63&u)<<6|63&l,h-=65536,a.push(55296+(h>>10&1023),56320+(1023&h)))):e(),a.length>=8192&&(o=r(o,a),a.length=0)}c=r(o,a)}return c}function Nr(t){var e=hr(t.h)>>>0;return yr(t.h,e)}function Pr(t,e,r){var n=hr(t.h)>>>0;for(n=t.h.h+n;t.h.h<n;)r.push(e(t.h))}var Or=class{constructor(t,e,r,n){if(wr.length){let i=wr.pop();i.init(t,e,r,n),t=i}else t=new br(t,e,r,n);this.h=t,this.o=this.h.h,this.j=this.l=-1,this.v(n)}v({U:t=!1}={}){this.U=t}},Br=[];function Lr(t){return new Fr(4294967295&t,Math.floor(t/4294967296))}function Ur(t){return t?/^\d+$/.test(t)?(Lt(t),new Fr(_t,Et)):null:kr||=new Fr(0,0)}var kr,Fr=class{constructor(t,e){this.j=t>>>0,this.h=e>>>0}};function Vr(t){return new Kr(4294967295&t,Math.floor(t/4294967296))}function Cr(t){return t?/^-?\d+$/.test(t)?(Lt(t),new Kr(_t,Et)):null:Mr||=new Kr(0,0)}var Mr,Rr,Gr,Dr,zr,$r,Hr,Wr,Kr=class{constructor(t,e){this.j=t>>>0,this.h=e>>>0}};function qr(t,e,r){return"undefined"!=typeof BigInt64Array?(Hr||(Hr=new BigInt64Array(1),Wr=new Uint32Array(Hr.buffer),Hr[0]=BigInt(1),$r=1===Wr[0]),Hr[0]=t,new e(Wr[t=$r?0:1],Wr[1-t])):(zr||(Rr=BigInt(Number.MIN_SAFE_INTEGER),Gr=BigInt(Number.MAX_SAFE_INTEGER),Dr=BigInt(4294967295),zr=BigInt(32)),t>=Rr&&t<=Gr?r(Number(t)):(t=BigInt.asUintN(64,t),new e(Number(t&Dr),Number(t>>zr))))}function Yr(t,e,r){for(;r>0||e>127;)t.h.push(127&e|128),e=(e>>>7|r<<25)>>>0,r>>>=7;t.h.push(e)}function Jr(t,e){for(;e>127;)t.h.push(127&e|128),e>>>=7;t.h.push(e)}function Xr(t,e){if(e>=0)Jr(t,e);else{for(let r=0;r<9;r++)t.h.push(127&e|128),e>>=7;t.h.push(1)}}function Qr(t,e){Lt(e),function(t){var e=Et>>31;t(_t<<1^e,(Et<<1|_t>>>31)^e)}((e,r)=>{Yr(t,e>>>0,r>>>0)})}function Zr(t,e){t.h.push(e>>>0&255),t.h.push(e>>>8&255),t.h.push(e>>>16&255),t.h.push(e>>>24&255)}var tn=class{constructor(){this.h=[]}length(){return this.h.length}end(){var t=this.h;return this.h=[],t}};function en(t,e){0!==e.length&&(t.l.push(e),t.j+=e.length)}function rn(t,e,r){Jr(t.h,8*e+r)}function nn(t,e){return rn(t,e,2),e=t.h.end(),en(t,e),e.push(t.j),e}function on(t,e){var r=e.pop();for(r=t.j+t.h.length()-r;r>127;)e.push(127&r|128),r>>>=7,t.j++;e.push(r),t.j++}function sn(t,e,r){if(null!=r)switch(rn(t,e,0),typeof r){case"number":t=t.h,At(r),Yr(t,_t,Et);break;case"bigint":r=qr(r,Kr,Vr),Yr(t.h,r.j,r.h);break;default:r=Cr(r),Yr(t.h,r.j,r.h)}}function an(t,e,r){rn(t,e,2),Jr(t.h,r.length),en(t,t.h.end()),en(t,r)}var un=class{constructor(){this.l=[],this.j=0,this.h=new tn}};function ln(t){if("string"==typeof t)Cr(t)}function cn(){var t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var hn=cn(),fn=cn(),dn=cn(),pn=cn(),vn=cn(),mn=cn(),gn=cn(),yn=cn(),bn=cn(),wn=cn(),Sn=cn(),_n=cn();function En(t,e,r){var n=t.m;z&&z in n&&(n=n[z])&&delete n[e.h],e.j?e.o(t,e.j,e.h,r,e.l):e.o(t,e.h,r,e.l)}var Tn=class{constructor(t,e){this.m=ye(t,e,void 0,2048)}toJSON(){return me(this)}};Tn.prototype[K]=et,Tn.prototype.toString=function(){return this.m.toString()};var An=class{constructor(t,e,r){this.h=t,this.j=e,t=hn,this.l=!!t&&r===t||!1}};function In(t,e){return new An(t,e,hn)}function jn(t,e,r,n,i){null!=(e=Mn(e,n))&&(r=nn(t,r),i(e,t),on(t,r))}var xn,Nn,Pn=In(function(t,e,r,n,i){return 2===t.j&&(jr(t,Ke(e,n,r),i),!0)},jn),On=In(function(t,e,r,n,i){return 2===t.j&&(jr(t,Ke(e,n,r),i),!0)},jn),Bn=Symbol(),Ln=Symbol(),Un=Symbol(),kn=Symbol(),Fn=Symbol();function Vn(t,e,r,n){var i=n[t];if(i)return i;(i={}).X=n,i.L=function(t){switch(typeof t){case"boolean":return ce||=[0,void 0,!0];case"number":return t>0?void 0:0===t?he||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}(n[0]);var o=n[1],s=1;o&&o.constructor===Object&&(i.N=o,"function"==typeof(o=n[++s])&&(i.V=!0,xn??=o,Nn??=n[s+1],o=n[s+=2]));for(var a={};o&&Array.isArray(o)&&o.length&&"number"==typeof o[0]&&o[0]>0;){for(var u=0;u<o.length;u++)a[o[u]]=o;o=n[++s]}for(u=1;void 0!==o;){let t;"number"==typeof o&&(u+=o,o=n[++s]);var l=void 0;if(o instanceof An?t=o:(t=Pn,s--),t?.l){o=n[++s],l=n;var c=s;"function"==typeof o&&(o=o(),l[c]=o),l=o}for(c=u+1,"number"==typeof(o=n[++s])&&o<0&&(c-=o,o=n[++s]);u<c;u++){let n=a[u];l?r(i,u,t,l,n):e(i,u,t,n)}}return n[t]=i}function Cn(t){return Array.isArray(t)?t[0]instanceof An?t:[On,t]:[t,void 0]}function Mn(t,e){return t instanceof Tn?t.m:Array.isArray(t)?ge(t,e):void 0}function Rn(t,e,r,n){var i=r.h;t[e]=n?(t,e,r)=>i(t,e,r,n):i}function Gn(t,e,r,n,i){var o,s,a=r.h;t[e]=(t,e,r)=>a(t,e,r,s||=Vn(Ln,Rn,Gn,n).L,o||=Dn(n),i)}function Dn(t){var e=t[Un];if(null!=e)return e;var r=Vn(Ln,Rn,Gn,t);return e=r.V?(t,e)=>xn(t,e,r):(t,e)=>{t:{Ir();try{for(;Tr(e)&&4!=e.j;){let u=e.l,l=r[u];if(null==l){let t=r.N;if(t){let e=t[u];if(e){let t=$n(e);null!=t&&(l=r[u]=t)}}}if(null==l||!l(e,t,u)){var n=e;let r=n.o;if(Ar(n),n.U)var i=void 0;else{let t=n.h.h-r;n.h.h=r,i=yr(n.h,t)}n=void 0;var o=t,s=u,a=i;a&&((n=o[z]??(o[z]=new fe))[s]??(n[s]=[])).push(a)}}let l=ae(t);l&&(l.h=r.X[Fn]);var u=!0;break t}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}finally{Sr>0&&Sr--}u=void 0}return u},t[Un]=e,t[Fn]=zn.bind(t),e}function zn(t,e,r,n){var i=this[Ln],o=this[Un],s=ge(void 0,i.L),a=ae(t);if(a){var u=!1,l=i.N;if(l){if(i=(e,r,i)=>{if(0!==i.length)if(l[r])for(let t of i){e=_r(t);try{u=!0,o(s,e)}finally{Er(e)}}else n?.(t,r,i)},null==e)ue(a,i);else if(null!=a){let t=a[e];t&&i(a,e,t)}if(u){let n=0|t[J];if(2&n&&2048&n&&!r?.ma)throw Error();let i=at(n),o=(e,o)=>{if(null!=Pe(t,e,i)){if(1===r?.la)return;throw Error()}null!=o&&(n=Be(t,n,e,o,i)),delete a[e]};null==e?ot(s,0|s[J],(t,e)=>{o(t,e)}):o(e,Pe(s,e,i))}}}}function $n(t){var e=(t=Cn(t))[0].h;if(t=t[1]){let r=Dn(t),n=Vn(Ln,Rn,Gn,t).L;return(t,i,o)=>e(t,i,o,n,r)}return e}function Hn(t,e,r){t[e]=r.j}function Wn(t,e,r,n){var i,o,s=r.j;t[e]=(t,e,r)=>s(t,e,r,o||=Vn(Bn,Hn,Wn,n).L,i||=Kn(n))}function Kn(t){var e=t[kn];if(!e){let r=Vn(Bn,Hn,Wn,t);e=(t,e)=>qn(t,e,r),t[kn]=e}return e}function qn(t,e,r){ot(t,0|t[J],(t,n)=>{if(null!=n){var i=function(t,e){var r=t[e];if(r)return r;if((r=t.N)&&(r=r[e])){var n=(r=Cn(r))[0].j;if(r=r[1]){let e=Kn(r),i=Vn(Bn,Hn,Wn,r).L;r=t.V?Nn(i,e):(t,r,o)=>n(t,r,o,i,e)}else r=n;return t[e]=r}}(r,t);i?i(e,n,t):t<500||B(H,3)}}),(t=ae(t))&&ue(t,(t,r,n)=>{for(en(e,e.h.end()),t=0;t<n.length;t++)en(e,E(n[t])||new Uint8Array(0))})}var Yn=dt(0);function Jn(t,e,r){if(Array.isArray(e)){var n=0|e[J];if(4&n)return e;for(var i=0,o=0;i<e.length;i++){let r=t(e[i]);null!=r&&(e[o++]=r)}return o<i&&(e.length=o),t=1|n,r&&(t=-1537&t|4),t!==n&&Z(e,t),r&&2&t&&Object.freeze(e),e}}var Xn=(t,e)=>{var r=new un;qn(t.m,r,Vn(Bn,Hn,Wn,e)),en(r,r.h.end()),t=new Uint8Array(r.j);var n=(e=r.l).length,i=0;for(let r=0;r<n;r++){let n=e[r];t.set(n,i),i+=n.length}return r.l=[t],t};function Qn(t,e,r){return new An(t,e,r)}function Zn(t,e,r){return new An(t,e,r)}function ti(t,e,r){Be(t,0|t[J],e,r,at(0|t[J]))}function ei(t,e,r){null!=(e=Zt(e))&&(ln(e),sn(t,r,e))}function ri(t,e,r){null!=(e=Ht(e))&&null!=e&&(rn(t,r,0),Xr(t.h,e))}function ni(t,e,r){null!=(e=null==e||"boolean"==typeof e?e:"number"==typeof e?!!e:void 0)&&(rn(t,r,0),t.h.h.push(e?1:0))}function ii(t,e,r){null!=(e=ie(e))&&an(t,r,u(e))}function oi(t,e,r,n,i){null!=(e=Mn(e,n))&&(r=nn(t,r),i(e,t),on(t,r))}function si(t,e,r){null!=(e=ee(e))&&an(t,r,ur(e,!0).buffer)}function ai(t,e,r){e=function(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?t>>>0:void 0}(e),null!=e&&null!=e&&(rn(t,r,0),Jr(t.h,e))}function ui(t,e,r){null!=(e=Ht(e))&&(e=parseInt(e,10),rn(t,r,0),Xr(t.h,e))}function li(t,e,r){return 0===t.j&&(ti(e,r,fr(t.h)),!0)}function ci(t,e,r){return(0===t.j||2===t.j)&&(e=De(e,0|e[J],r),2==t.j?Pr(t,hr,e):e.push(hr(t.h)),!0)}function hi(t,e,r){return 2===t.j&&(ti(e,r,(t=Nr(t))===_()?void 0:t),!0)}var fi=Qn(function(t,e,r){if(1!==t.j)return!1;var n=t.h;t=dr(n);var i=dr(n);n=2*(i>>31)+1;var o=i>>>20&2047;return t=4294967296*(1048575&i)+t,ti(e,r,2047==o?t?NaN:n*(1/0):0==o?5e-324*n*t:n*Math.pow(2,o-1075)*(t+4503599627370496)),!0},function(t,e,r){null!=(e=Gt(e))&&(rn(t,r,1),t=t.h,(r=wt||=new DataView(new ArrayBuffer(8))).setFloat64(0,+e,!0),_t=r.getUint32(0,!0),Et=r.getUint32(4,!0),Zr(t,_t),Zr(t,Et))},wn),di=Qn(function(t,e,r){return 5===t.j&&(ti(e,r,pr(t.h)),!0)},function(t,e,r){null!=(e=Gt(e))&&(rn(t,r,5),t=t.h,It(e),Zr(t,_t))},bn),pi=Zn(function(t,e,r){return(5===t.j||2===t.j)&&(e=De(e,0|e[J],r),2==t.j?Pr(t,pr,e):e.push(pr(t.h)),!0)},function(t,e,r){if(null!=(e=Jn(Gt,e,!0))&&e.length){rn(t,r,2),Jr(t.h,4*e.length);for(let n=0;n<e.length;n++)r=t.h,It(e[n]),Zr(r,_t)}},bn),vi=Qn(function(t,e,r){return li(t,e,r)},ei,mn),mi=Qn(function(t,e,r){return li(t,e,r)},ei,mn),gi=Zn(function(t,e,r){return 0!==t.j&&2!==t.j?t=!1:(e=De(e,0|e[J],r),2==t.j?Pr(t,fr,e):e.push(fr(t.h)),t=!0),t},function(t,e,r){if(null!=(e=Jn(Zt,e,!1)))for(let n=0;n<e.length;n++)sn(t,r,e[n])},mn),yi=Qn(function(t,e,r){return 0!==t.j?e=!1:(ti(e,r,(t=fr(t.h))===Yn?void 0:t),e=!0),e},ei,mn),bi=Qn(function(t,e,r){return 0!==t.j?t=!1:(ti(e,r,lr(t.h,xt)),t=!0),t},function(t,e,r){if(null!=(e=te(e))){if("string"==typeof e)Ur(e);if(null!=e)switch(rn(t,r,0),typeof e){case"number":t=t.h,At(e),Yr(t,_t,Et);break;case"bigint":r=qr(e,Fr,Lr),Yr(t.h,r.j,r.h);break;default:r=Ur(e),Yr(t.h,r.j,r.h)}}},gn),wi=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,hr(t.h)),!0)},ri,pn),Si=Zn(ci,function(t,e,r){if(null!=(e=Jn(Ht,e,!0)))for(let s=0;s<e.length;s++){var n=t,i=r,o=e[s];null!=o&&(rn(n,i,0),Xr(n.h,o))}},pn),_i=Zn(ci,function(t,e,r){if(null!=(e=Jn(Ht,e,!0))&&e.length){r=nn(t,r);for(let r=0;r<e.length;r++)Xr(t.h,e[r]);on(t,r)}},pn),Ei=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,0===(t=hr(t.h))?void 0:t),!0)},ri,pn),Ti=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,cr(t.h)),!0)},ni,fn),Ai=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,!1===(t=cr(t.h))?void 0:t),!0)},ni,fn),Ii=Zn(function(t,e,r){return 2===t.j&&(t=xr(t),De(e,0|e[J],r).push(t),!0)},function(t,e,r){if(null!=(e=Jn(ie,e,!0)))for(let s=0;s<e.length;s++){var n=t,i=r,o=e[s];null!=o&&an(n,i,u(o))}},dn),ji=Qn(function(t,e,r){return 2===t.j&&(ti(e,r,""===(t=xr(t))?void 0:t),!0)},ii,dn),xi=Qn(function(t,e,r){return 2===t.j&&(ti(e,r,xr(t)),!0)},ii,dn),Ni=function(t,e,r=hn){return new An(t,e,r)}(function(t,e,r,n,i){return 2===t.j&&(n=ge(void 0,n),De(e,0|e[J],r).push(n),jr(t,n,i),!0)},function(t,e,r,n,i){if(Array.isArray(e)){for(let o=0;o<e.length;o++)oi(t,e[o],r,n,i);1&(t=0|e[J])||Z(e,1|t)}}),Pi=In(function(t,e,r,n,i,o){if(2!==t.j)return!1;var s=0|e[J];return He(e,s,o,r,at(s)),jr(t,e=Ke(e,n,r),i),!0},oi),Oi=Qn(function(t,e,r){return 2===t.j&&(ti(e,r,Nr(t)),!0)},si,Sn),Bi=Zn(function(t,e,r){return 2===t.j&&(t=Nr(t),De(e,0|e[J],r).push(t),!0)},function(t,e,r){if(null!=(e=Jn(ee,e,!1)))for(let s=0;s<e.length;s++){var n=t,i=r,o=e[s];null!=o&&an(n,i,ur(o,!0).buffer)}},Sn),Li=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,hr(t.h)>>>0),!0)},ai,vn),Ui=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,0===(t=hr(t.h)>>>0)?void 0:t),!0)},ai,vn),ki=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,hr(t.h)),!0)},ui,_n),Fi=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,0===(t=hr(t.h))?void 0:t),!0)},ui,_n),Vi=Qn(function(t,e,r){return 0!==t.j?t=!1:(ti(e,r,function(t){return lr(t,(t,e)=>{var r=-(1&t);return Nt(t=(t>>>1|e<<31)^r,e>>>1^r)})}(t.h)),t=!0),t},function(t,e,r){if(null!=(e=Zt(e))&&(ln(e),null!=e))switch(rn(t,r,0),typeof e){case"number":t=t.h,e=(r=e)<0,Tt(r=2*Math.abs(r)),r=_t;let n=Et;e&&(0==r?0==n?n=r=4294967295:(n--,r=4294967295):r--),Yr(t,_t=r,Et=n);break;case"bigint":t=t.h,e=e<<BigInt(1)^e>>BigInt(63),_t=Number(BigInt.asUintN(32,e)),Et=Number(BigInt.asUintN(32,e>>BigInt(32))),Yr(t,_t,Et);break;default:Qr(t.h,e)}},yn);class Ci{constructor(t,e){var r=so;this.h=t,this.j=e,this.o=Qe,this.defaultValue=void 0,this.l=null!=r.ja?st:void 0}register(){c(this)}}function Mi(t,e){return(r,n)=>{t:{let o={R:!0};n&&Object.assign(o,n),r=_r(r,void 0,void 0,o);try{let n=new t,o=n.m;Dn(e)(o,r);var i=n;break t}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}finally{Er(r)}i=void 0}return i}}function Ri(t){return function(){return Xn(this,t)}}var Gi,Di=[0,Oi,Bi,Ti,xi],zi=[0,ji,[0,Fi,[0,yi,Ei],Fi,-1,[0,ki],Fi,-1],Qn(hi,si,Sn)],$i=[0,ji,Qn(hi,function(t,e,r){if(null!=e){if(e instanceof Tn){let n=e.oa;return void(n?(e=n(e),null!=e&&an(t,r,ur(e,!0).buffer)):B(H,3))}if(Array.isArray(e))return void B(H,3)}si(t,e,r)},Sn)],Hi=[0,1,[0,12,wi,10,Ti],[0,7,[0,wi,-1]]],Wi=globalThis.trustedTypes;var Ki=class{constructor(t){this.h=t}toString(){return this.h+""}};function qi(t){var e;return void 0===Gi&&(Gi=function(){var t=null;if(!Wi)return t;try{let e=t=>t;t=Wi.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(t){}return t}()),t=(e=Gi)?e.createScriptURL(t):t,new Ki(t)}function Yi(t,...e){if(0===e.length)return qi(t[0]);var r=t[0];for(let n=0;n<e.length;n++)r+=encodeURIComponent(e[n])+t[n+1];return qi(r)}var Ji=[0,wi,ki,Ti,-1,_i,ki,-1,Ti,-1],Xi=[0,ki,-1,Ti],Qi=class extends Tn{constructor(t){super(t)}},Zi=[0,Ti,xi,Ti,ki,-1,Zn(function(t,e,r){return(0===t.j||2===t.j)&&(e=De(e,0|e[J],r),2==t.j?Pr(t,vr,e):e.push(hr(t.h)),!0)},function(t,e,r){if(null!=(e=Jn(Ht,e,!0))&&e.length){r=nn(t,r);for(let r=0;r<e.length;r++)Xr(t.h,e[r]);on(t,r)}},_n),xi,-1,[0,Ti,-1],ki,Ti,-1,Xi],to=class extends Tn{constructor(t){super(t)}j(){return Le(this,9)}},eo=[0,3,Ti,-1,2,[0,[2],wi,Pi,[0,Li]],[0,ki,Ti,ki,Ti,ki,4,[0,Ti,xi,-1,Ti,wi,-1,Ti],ki,Ti,-4,ki,Ii,Ti,Ii,Ti,-1,wi,Ti,-3,[0,Ti,wi],[0,xi,wi,-1],[0,Ti],[0,Ti,-1],[0,Ti,wi,-1]],[0,[3,4],xi,-1,Pi,[0,wi],Pi,[0,ki,-2]],[0],xi,Ti],ro=[0,xi,-2],no=class extends Tn{constructor(t){super(t)}},io=[0],oo=[0,wi,Ti,1,Ti,-4],so=class extends Tn{constructor(t){super(t,2)}},ao={};ao[336783863]=[0,xi,Ti,-1,wi,[0,[1,2,3,4,5,6,7,8,9],Pi,io,Pi,Zi,Pi,ro,Pi,oo,Pi,Ji,Pi,[0,xi,-2],Pi,[0,xi,ki],Pi,eo,Pi,Xi],[0,xi],Ti,[0,[1,3],[2,4],Pi,[0,_i],-1,Pi,[0,Ii],-1,Ni,[0,xi,-1]],xi];var uo=[0,yi,-1,Ai,-3,yi,_i,ji,Ei,yi,-1,Ai,Ei,Ai,-2,ji];function lo(t){sr(t,3,"TEXT:text_in")}var co=class extends Tn{constructor(t){super(t,500)}v(t){return Qe(this,0,7,t)}},ho=[-1,{}],fo=[0,xi,1,ho],po=[0,xi,Ii,ho];function vo(t){sr(t,10,"text_in")}var mo=class extends Tn{constructor(t){super(t,500)}v(t){return Qe(this,0,1001,t)}};mo.prototype.j=Ri([-500,Ni,[-500,ji,-1,Ii,-3,[-2,ao,Ti],Ni,$i,Ei,-1,fo,po,Ni,[0,ji,Ai],ji,uo,Ei,Ii,987,Ii],4,Ni,[-500,xi,-1,[-1,{}],998,xi],Ni,[-500,xi,Ii,-1,[-2,{},Ti],997,Ii,-1],Ei,Ni,[-500,xi,Ii,ho,998,Ii],Ii,Ei,fo,po,Ni,[0,ji,-1,ho],Ii,-2,uo,ji,-1,Ai,[0,Ai,Ui],978,ho,Ni,$i]);var go=class extends Tn{constructor(t){super(t)}},yo=class extends Tn{constructor(t){super(t)}j(){return Je(this,go)}},bo=class extends Tn{constructor(t){super(t)}},wo=Mi(class extends Tn{constructor(t){super(t)}},[0,Ni,[0,1,wi,xi,[0,Ni,[0,wi,di,xi,-1]]],mi]),So=class extends Tn{constructor(t){super(t)}},_o=class extends Tn{constructor(t){super(t)}j(){var t=Ne(this,1,void 0,Me);return null==t?_():t}},Eo=class extends Tn{constructor(t){super(t)}},To=[1,2],Ao=Mi(class extends Tn{constructor(t){super(t)}},[0,Ni,[0,To,Pi,[0,pi],Pi,[0,Oi],wi,xi],mi]),Io=class extends Tn{constructor(t){super(t)}},jo=class extends Tn{constructor(t){super(t)}},xo=[0,Ti,-1],No=class extends Tn{constructor(t){super(t)}j(){return Ue(this,2,Po)}l(){return rr(this,to,6,Po)}},Po=[1,2,3,4,5,6],Oo=class extends Tn{constructor(t){super(t)}j(){return null!=Ne(this,1,void 0,Me)}l(){return null!=ie(Ne(this,2))}},Bo=class extends Tn{constructor(t){super(t)}},Lo=[0,Oi,xi,[0,wi,mi,-1],[0,bi,mi]],Uo=[0,Lo,Ti,[0,Po,Pi,oo,Pi,Zi,Pi,Ji,Pi,io,Pi,ro,Pi,eo],ki],ko=class extends Tn{constructor(t){super(t)}},Fo=new Ci(462704549,ko);ao[462704549]=[0,Uo,[0,xi,wi,di,Ii,-1]];var Vo=class extends Tn{constructor(t){super(t)}},Co=new Ci(477589892,Vo);function Mo(t,e){if(e=e?Se(e):new Io,void 0!==t.displayNamesLocale?Oe(e,1,ne(t.displayNamesLocale)):void 0===t.displayNamesLocale&&Oe(e,1),void 0!==t.maxResults){var r=t.maxResults;if(null!=r){if("number"!=typeof r)throw O("int32");if(!Mt(r))throw O("int32");r|=0}Oe(e,2,r)}else"maxResults"in t&&Oe(e,2);if(void 0!==t.scoreThreshold){if(null!=(r=t.scoreThreshold)&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);Oe(e,3,r)}else"scoreThreshold"in t&&Oe(e,3);return void 0!==t.categoryAllowlist?Re(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&Oe(e,4),void 0!==t.categoryDenylist?Re(e,5,t.categoryDenylist):"categoryDenylist"in t&&Oe(e,5),e}function Ro(t){var e=Number(t);return Number.isSafeInteger(e)?e:String(t)}function Go(t){var e={classifications:Je(t,bo).map(t=>function(t,e=-1,r=""){return{categories:t.map(t=>({index:Ht(Ne(t,1))??0??-1,score:Ne(t,2,void 0,Gt)??0??0,categoryName:ie(Ne(t,3))??""??"",displayName:ie(Ne(t,4))??""??""})),headIndex:e,headName:r}}(qe(t,yo,4)?.j()??[],Ht(Ne(t,2))??0,ie(Ne(t,3))??""))};return null!=function(t){return null==t?t:"bigint"==typeof t?(pt(t)?t=Number(t):(t=Ft(64,t),t=pt(t)?Number(t):String(t)),t):$t(t)?"number"==typeof t?qt(t):Jt(t):void 0}(Ne(t,2,void 0,Qt))&&(e.timestampMs=Ro(Ne(t,2,void 0,Qt)??xe)),e}function Do(t){return Array.from(t,t=>t>127?t-256:t)}function zo(t,e){if(t.length!==e.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);var r=0,n=0,i=0;for(let o=0;o<t.length;o++)r+=t[o]*e[o],n+=t[o]*t[o],i+=e[o]*e[o];if(n<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*i)}function $o(t,e,r){return r=`wasm${r?"_module":""}_internal`,Promise.resolve({wasmLoaderPath:`${e}/${t}_${r}.js`,wasmBinaryPath:`${e}/${t}_${r}.wasm`})}ao[477589892]=[0,Uo,xo,1,Lo];var Ho=class{};function Wo(t){return or(new Ko,1,t)}Ho.forVisionTasks=function(t,e=!1){return $o("vision",t??Yi``,e)},Ho.forLiteRtLmTextTasks=function(t,e=!1){return $o("litertlm_text",t??Yi``,e)},Ho.forTextTasks=function(t,e=!1){return $o("text",t??Yi``,e)},Ho.forRetrievalTasks=function(t,e=!1){return $o("retrieval",t??Yi``,e)},Ho.forGenAiTasks=function(t,e=!1){return $o("genai",t??Yi``,e)},Ho.forDecisionTasks=function(t,e=!1){return $o("decision",t??Yi``,e)},Ho.forAudioTasks=function(t,e=!1){return $o("audio",t??Yi``,e)};var Ko=class extends Tn{constructor(t){super(t)}},qo=class extends Tn{constructor(t){super(t)}},Yo=[0,ki,2,bi,-2,mi,Ni,[0,ki,mi]],Jo=class extends Tn{constructor(t){super(t)}},Xo=class extends Tn{constructor(t){super(t)}};function Qo(t,e){return or(t,1,e)}function Zo(t,e){return or(t,2,e)}var ts=class extends Tn{constructor(t){super(t)}},es=[3,4,5,6,7],rs=class extends Tn{constructor(t){super(t)}},ns=class extends Tn{constructor(t){super(t)}};ns.prototype.j=Ri([0,[0,ki,xi,-3,ki],[0,es,ki,-1,Pi,[0,ki,xi,bi],Pi,Yo,Pi,[0,1,Yo],Pi,[0,ki],Pi,[0,ki,xi,bi]]]);var is=class{constructor(){this.h="undefined"!=typeof AbortController}async send(t,e,r){var n=this.h?new AbortController:void 0,i=n&&t.P>0?setTimeout(()=>{n.abort()},t.P):void 0;try{let i=await fetch(t.url,{method:t.ga,headers:{...t.fa},...t.body&&{body:t.body},...t.withCredentials&&{credentials:"include"},signal:t.P&&n?n.signal:null});200===i.status?e?.(await i.text()):r?.(i.status)}catch(t){if("AbortError"===t?.name)r?.(408);else r?.(400)}finally{clearTimeout(i)}}},os=class extends Tn{constructor(t){super(t,37)}},ss=[-4,{},Hi,ki,zi],as=[0,xi,ki,1,xi,-1,ki,1,ki,1,mi],us=[0,ki,xi,-2],ls=[0,xi,ki],cs=[0,xi,ki],hs=[0,Ti,-3],fs=[0,ki,xi,-1,mi,wi,-1,xi,-5,Ni,[0,xi,-4],-1,Ti,[0,Ti,-3],ki];var ds,ps=class extends Tn{constructor(t){super(t,19)}},vs=(ds=[-19,{},[0,ki,1,[0,xi,-6,mi,wi,xi,-1,mi],1,[0,xi,1,xi,-5],xi,-1,[0,ki,xi,-8],[0,xi,-3],[0,xi,ki,xi,-2],[0,xi,-1,ki,xi,-1,ki,xi,-1,[0,Ni,[0,xi,-1],Ti,xi,-5],[0,ki,Ti,wi,-2]],mi,[0,xi,-3,mi,wi,xi,-1],[0,ki,xi,-1],[0,xi,-9],[0,xi,-6,ki,xi,1,xi,Ti,ki,-1,Ti,xi,-2,ki,xi,ki,xi,wi,-1],1,[0,ki],1,[0,xi,-4],1,as,[0,[1,2,3,4,5,6],Pi,as,Pi,ls,Pi,cs,Pi,[0,ki],Pi,fs,Pi,us],ls,cs,fs,[0,[0,ki,xi,-1,mi,wi,-1,xi,-4,Ni,[0,xi,-4],-1,1,hs],[0,ki,xi,-1,mi,wi,-1,xi,-4,hs]],us,[0,xi,[0,wi,-3,ki],ki,-2,[0,wi,-1],Ti],4,[0,xi,ki,xi,-1,mi,ki,xi,-1,ki,wi,-1]],ki,Ni,[-37,{},vi,xi,Ni,[0,xi,-1],Oi,1,Oi,[0,Ii,-1,Si,gi,-1],xi,[0,wi,xi,-1],Ti,wi,mi,xi,-1,Vi,Di,vi,Oi,ki,Si,mi,-1,[0,ki,-1],xi,Ti,xi,_i,xi,-1,fi,1,fi,ss,Ti,[0,ki,[0,di,wi,-2],[0,di]],[0,ki,mi]],vi,Bi,xi,-1,vi,ki,-1,[0,Ti,-1,ki,Ti],[0,mi,-1,xi],[0,vi,Ti,mi],mi,1,Li,1,ss],t=>Xn(t,ds)),ms=class{constructor(t){this.j=[],this.o=new is,this.l=t??"",this.h=setInterval(()=>{this.flush()},6e4)}close(){void 0!==this.h&&(clearInterval(this.h),this.h=void 0),this.flush()}flush(t,e){if(this.error)e?.("net-send-failed");else if(0===this.j.length)t?.();else{var r=this.j;this.j=[],r=function(t){var e=new ps;Ae(e=or(e,2,1786));var r=e.m,n=0|r[J];if(null==t)Be(r,n,3);else{var i=t===R?7:0|t[J],o=i,s=Ce(i),a=s||Object.isFrozen(t),u=!0,l=!0;for(let e=0;e<t.length;e++){var c=t[e];s||(c=rt(c),u&&=!c,l&&=c)}s||(i=u?13:5,i=l?-4097&i:4096|i),a&&i===o||(t=kt(t),o=0,i=tr(i,n)),i!==o&&Z(t,i),n=Be(r,n,3,t),2&i||!(4096&i||16&i)||Ie(r,n)}return e}(r),r=vs(r),this.o.send({url:"https://odml.pa.googleapis.com/v1/log",ga:"POST",P:1e4,body:r,ha:2,fa:{"Content-Type":"application/x-protobuf","x-goog-api-key":this.l},withCredentials:!1},()=>{t?.()},t=>{this.error=Error(`Logging failed with HTTP error: ${t}`),this.j=[],void 0!==this.h&&(clearInterval(this.h),this.h=void 0),e?.("net-send-failed",t)})}}};class gs{constructor(){this.K=this.F=this.J=this.D=this.H=this.I=this.G=0}}function ys(t,e){var r=new ns;r=Qe(r,0,1,t.W),r=Qe(r,0,2,e),e=Oe(e=new os,6,it(r=r.j(),!1)),(t=t.C).error||t.j.push(e)}function bs(t,e){++t.h.G,t.j.set(e,performance.now())}function ws(t,e){var r={G:e.G-t.l.G,I:e.I-t.l.I,H:e.H-t.l.H,D:e.D-t.l.D,J:e.J-t.l.J,F:e.F,K:e.K},n=Zo(Qo(new ts,t.B),1);r=_s(t,r),ys(t,n=Ze(n,4,es,r)),t.l=e}function Ss(t,e){var r=t.j.get(e);if(void 0!==r&&(t.j.delete(e),e=performance.now()-r,++t.h.H,t.h.J+=e,t.h.F=Math.max(t.h.F,e),t.A=Math.max(t.A,e),performance.now()>t.o+3e4)){for(let[n,i]of t.j.entries())e=n,i<r&&(t.h.D++,t.j.delete(e));r={...t.h,K:performance.now()-t.o},t.h.F=0,t.o=performance.now(),ws(t,r)}}function _s(t,e){var r=new qo;return t=ir(t=nr(t=or(r,1,t.u),7,e.D),5,e.F),t=ir(t,6,e.K),e.H>0&&ir(t,4,e.J/e.H),0!==e.G&&(r=nr(r=Wo(3),2,e.G),er(t,8,Ko,r)),0!==e.I&&(e=nr(r=Wo(4),2,e.I),er(t,8,Ko,e)),t}var Es=class{constructor(t,e,r){this.T=performance.now(),this.o=performance.now(),this.j=new Map,this.A=0,this.h=new gs,this.l=new gs,this.C=new ms(r),this.B=function(t){switch(t){case"AudioClassifier":return 4;case"AudioEmbedder":return 5;case"TextClassifier":return 6;case"TextEmbedder":return 7;case"GestureRecognizer":return 8;case"HandDetector":return 9;case"HandLandmarker":return 10;case"ImageClassifier":return 11;case"ImageEmbedder":return 12;case"ImageSegmenter":return 13;case"ObjectDetector":return 14;case"FaceDetector":return 15;case"FaceLandmarker":return 16;case"InteractiveSegmenter":case"InteractiveSegmenterLegacy":return 18;case"HolisticLandmarker":return 20;case"LlmInference":return 21;case"LanguageDetector":return 22;case"PoseLandmarker":return 23;case"UniversalEmbedder":return 28;case"SemanticRetriever":return 29;case"DecisionMaker":return 30;case"TextSummarizer":return 26;case"TextProofreader":return 27;case"AudioTranscriber":return 31;case"TextToSpeech":return 32;default:return 0}}(t),this.u=function(t){switch(t){case"IMAGE":return 11;case"VIDEO":return 12;case"LIVE_STREAM":return 13;case"AUDIO_CLIPS":return 14;case"AUDIO_STREAM":return 15;default:return 10}}(e),t=new rs,"undefined"==typeof navigator?e=0:(e=navigator.userAgent,e=/Android/i.test(e)?1:/iPhone|iPad|iPod/i.test(e)?2:/Windows/i.test(e)?5:/Macintosh/i.test(e)?4:/Linux/i.test(e)?3:0),t=Oe(t=or(t,1,e),2,ne("")),t=Oe(t,3,ne("")),t=Oe(t,4,ne("1.2.1")),t=Oe(t,5,ne("")),this.W=or(t,6,function(){var t=globalThis.__HOST_ENVIRONMENT__;if("string"==typeof t)switch(t){case"ANDROID":return 1;case"IOS":return 2;case"PYTHON":return 3;case"WEB":break;case"FLUTTER":return 5;case"FLUTTER_WEB":return 6;default:return 0}return 4}())}O(){var t=new Xo;t=ir(t=or(t,1,this.u),3,performance.now()-this.T),ys(this,t=Ze(Zo(Qo(new ts,this.B),0),3,es,t)),this.o=performance.now()}da(){var t={...this.h,D:this.h.D+this.j.size,F:this.A,K:performance.now()-this.T};ws(this,t);var e=new Jo;e=Qe(e,0,2,t=_s(this,t)),ys(this,e=Ze(t=Zo(Qo(new ts,this.B),2),5,es,e))}close(){var t=this.C;"function"==typeof t.close?t.close():t.flush()}};function Ts(){var t=navigator;return"undefined"!=typeof OffscreenCanvas&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}async function As(t){if("function"!=typeof importScripts){let e=document.createElement("script");return e.src=t.toString(),e.crossOrigin="anonymous",new Promise((t,r)=>{e.addEventListener("load",()=>{t()},!1),e.addEventListener("error",t=>{r(t)},!1),document.body.appendChild(e)})}try{importScripts(t.toString())}catch(e){if(!(e instanceof TypeError))throw e;{let e=self.import;e?await e(t.toString()):await import(t.toString())}}}function Is(t,e,r){t.o||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),r(e=t.i.stringToNewUTF8(e)),t.i._free(e)}function js(t,e,r){t.o||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");var n=new Uint32Array(e.length);for(let r=0;r<e.length;r++)n[r]=t.i.stringToNewUTF8(e[r]);e=t.i._malloc(4*n.length),t.i.HEAPU32.set(n,e>>2),r(e);for(let e of n)t.i._free(e);t.i._free(e)}function xs(t,e,r){t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=r}function Ns(t,e,r){var n=[];t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=(t,e,i)=>{e?(r(n,i),n=[]):n.push(t)}}var Ps=function(t){return class extends t{get S(){return this.i}ba(){if("function"==typeof this.S._mediapipeLoggerGetEncodedApiKey){let t=this.S._mediapipeLoggerGetEncodedApiKey();return this.S._decodeBase64(t)}}}}(function(t){return class extends t{ea(){this.i._registerModelResourcesGraphService()}}}(class{constructor(t,e){this.l=!0,this.i=t,this.h=null,this.j=0,this.o="function"==typeof this.i._addIntToInputStream,void 0!==e?this.i.canvas=e:Ts()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(t){var 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){var r=t.length,n=this.i._malloc(r);this.i.HEAPU8.set(t,n),e?this.i._changeBinaryGraph(r,n):this.i._changeTextGraph(r,n),this.i._free(n)}configureAudio(t,e,r,n,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),Is(this,n||"input_audio",n=>{Is(this,i=i||"audio_header",i=>{this.i._configureAudio(n,i,t,e??0,r)})})}setAutoResizeCanvas(t){this.l=t}setAutoRenderToScreen(t){this.i._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.i.gpuOriginForWebTexturesIsBottomLeft=t}attachErrorListener(t){this.i.errorListener=t}attachEmptyPacketListener(t,e){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[t]=e}addAudioToStream(t,e,r){this.addAudioToStreamWithShape(t,0,0,e,r)}addAudioToStreamWithShape(t,e,r,n,i){var o=4*t.length;this.j!==o&&(this.h&&this.i._free(this.h),this.h=this.i._malloc(o),this.j=o),this.i.HEAPF32.set(t,this.h/4),Is(this,n,t=>{this.i._addAudioToInputStream(this.h,e,r,t,i)})}addGpuBufferToStream(t,e,r){Is(this,e,e=>{if(!this.i.canvas)throw Error("No OpenGL canvas configured.");e?this.i._bindTextureToStream(e):this.i._bindTextureToCanvas();var n=this.i.canvas.getContext("webgl2")||this.i.canvas.getContext("webgl");if(!n)throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");this.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),this.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1);var[i,o]=void 0!==t.videoWidth?[t.videoWidth,t.videoHeight]:void 0!==t.naturalWidth?[t.naturalWidth,t.naturalHeight]:void 0!==t.displayWidth?[t.displayWidth,t.displayHeight]:[t.width,t.height];!this.l||i===this.i.canvas.width&&o===this.i.canvas.height||(this.i.canvas.width=i,this.i.canvas.height=o);var[s,a]=[i,o];this.i._addBoundTextureToStream(e,s,a,r)})}addBoolToStream(t,e,r){Is(this,e,e=>{this.i._addBoolToInputStream(t,e,r)})}addDoubleToStream(t,e,r){Is(this,e,e=>{this.i._addDoubleToInputStream(t,e,r)})}addFloatToStream(t,e,r){Is(this,e,e=>{this.i._addFloatToInputStream(t,e,r)})}addIntToStream(t,e,r){Is(this,e,e=>{this.i._addIntToInputStream(t,e,r)})}addUintToStream(t,e,r){Is(this,e,e=>{this.i._addUintToInputStream(t,e,r)})}addStringToStream(t,e,r){Is(this,e,e=>{Is(this,t,t=>{this.i._addStringToInputStream(t,e,r)})})}addStringRecordToStream(t,e,r){Is(this,e,e=>{js(this,Object.keys(t),n=>{js(this,Object.values(t),i=>{this.i._addFlatHashMapToInputStream(n,i,Object.keys(t).length,e,r)})})})}addProtoToStream(t,e,r,n){Is(this,r,r=>{Is(this,e,e=>{var i=this.i._malloc(t.length);this.i.HEAPU8.set(t,i),this.i._addProtoToInputStream(i,t.length,e,r,n),this.i._free(i)})})}addEmptyPacketToStream(t,e){Is(this,t,t=>{this.i._addEmptyPacketToInputStream(t,e)})}addBoolVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateBoolVector(t.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(let e of t)this.i._addBoolVectorEntry(n,e);this.i._addBoolVectorToInputStream(n,e,r)})}addDoubleVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateDoubleVector(t.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(let e of t)this.i._addDoubleVectorEntry(n,e);this.i._addDoubleVectorToInputStream(n,e,r)})}addFloatVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateFloatVector(t.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(let e of t)this.i._addFloatVectorEntry(n,e);this.i._addFloatVectorToInputStream(n,e,r)})}addIntVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateIntVector(t.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(let e of t)this.i._addIntVectorEntry(n,e);this.i._addIntVectorToInputStream(n,e,r)})}addUintVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateUintVector(t.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(let e of t)this.i._addUintVectorEntry(n,e);this.i._addUintVectorToInputStream(n,e,r)})}addStringVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateStringVector(t.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(let e of t)Is(this,e,t=>{this.i._addStringVectorEntry(n,t)});this.i._addStringVectorToInputStream(n,e,r)})}addBoolToInputSidePacket(t,e){Is(this,e,e=>{this.i._addBoolToInputSidePacket(t,e)})}addDoubleToInputSidePacket(t,e){Is(this,e,e=>{this.i._addDoubleToInputSidePacket(t,e)})}addFloatToInputSidePacket(t,e){Is(this,e,e=>{this.i._addFloatToInputSidePacket(t,e)})}addIntToInputSidePacket(t,e){Is(this,e,e=>{this.i._addIntToInputSidePacket(t,e)})}addUintToInputSidePacket(t,e){Is(this,e,e=>{this.i._addUintToInputSidePacket(t,e)})}addStringToInputSidePacket(t,e){Is(this,e,e=>{Is(this,t,t=>{this.i._addStringToInputSidePacket(t,e)})})}addProtoToInputSidePacket(t,e,r){Is(this,r,r=>{Is(this,e,e=>{var n=this.i._malloc(t.length);this.i.HEAPU8.set(t,n),this.i._addProtoToInputSidePacket(n,t.length,e,r),this.i._free(n)})})}addBoolVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(let e of t)this.i._addBoolVectorEntry(r,e);this.i._addBoolVectorToInputSidePacket(r,e)})}addDoubleVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(let e of t)this.i._addDoubleVectorEntry(r,e);this.i._addDoubleVectorToInputSidePacket(r,e)})}addFloatVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(let e of t)this.i._addFloatVectorEntry(r,e);this.i._addFloatVectorToInputSidePacket(r,e)})}addIntVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(let e of t)this.i._addIntVectorEntry(r,e);this.i._addIntVectorToInputSidePacket(r,e)})}addUintVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateUintVector(t.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(let e of t)this.i._addUintVectorEntry(r,e);this.i._addUintVectorToInputSidePacket(r,e)})}addStringVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(let e of t)Is(this,e,t=>{this.i._addStringVectorEntry(r,t)});this.i._addStringVectorToInputSidePacket(r,e)})}attachBoolListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachBoolListener(t)})}attachBoolVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachBoolVectorListener(t)})}attachIntListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachIntListener(t)})}attachIntVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachIntVectorListener(t)})}attachUintListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachUintListener(t)})}attachUintVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachUintVectorListener(t)})}attachDoubleListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachDoubleListener(t)})}attachDoubleVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachDoubleVectorListener(t)})}attachFloatListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachFloatListener(t)})}attachFloatVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachFloatVectorListener(t)})}attachStringListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachStringListener(t)})}attachStringVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachStringVectorListener(t)})}attachProtoListener(t,e,r){xs(this,t,e),Is(this,t,t=>{this.i._attachProtoListener(t,r||!1)})}attachProtoVectorListener(t,e,r){Ns(this,t,e),Is(this,t,t=>{this.i._attachProtoVectorListener(t,r||!1)})}attachAudioListener(t,e,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),xs(this,t,(t,r)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),e(t,r)}),Is(this,t,t=>{this.i._attachAudioListener(t,r||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}})),Os=class extends Ps{};async function Bs(t,e,r){return t=await(async(t,e,r,n)=>{if(e&&await As(e),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(r&&(await As(r),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&n&&((e=self.Module).locateFile=n.locateFile,n.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=n.mainScriptUrlOrBlob)),n=await self.ModuleFactory(self.Module||n),self.ModuleFactory=self.Module=void 0,new t(n,null)})(t,e.wasmLoaderPath,e.assetLoaderPath,{locateFile:t=>t.endsWith(".wasm")?e.wasmBinaryPath.toString():e.assetBinaryPath&&t.endsWith(".data")?e.assetBinaryPath.toString():t}),function(t,e){e=e.na??"";var r=t.h.ba();t.j=new Es(t.A(),e,r)}(t,r),await t.v(r),t}async function Ls(t,e,r){return Bs(t,e,r)}function Us(t,e,r){try{t.h.i.FS_unlink(`/${r}`)}catch{}t.h.i.FS_createDataFile("/",r,e,!0,!1,!1),ks(t,`/${r}`)}function ks(t,e){var r=qe(t.baseOptions,Oo,1)||new Oo;"string"==typeof e?(Oe(r,2,ne(e)),Oe(r,1)):e instanceof Uint8Array&&(Oe(r,1,it(e,!1)),Oe(r,2)),Qe(t.baseOptions,0,1,r)}function Fs(t,e,r=!0,n=!1){if(r){let r=e.baseOptions||{};if(e.baseOptions?.modelAssetBuffer&&e.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(qe(t.baseOptions,Oo,1)?.j()||qe(t.baseOptions,Oo,1)?.l()||e.baseOptions?.modelAssetBuffer||e.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");!function(t,e){var r=qe(t.baseOptions,No,3);if(!r){var n=r=new No,i=new no;Ze(n,4,Po,i)}"delegate"in e&&("GPU"===e.delegate?(e=r,n=new Qi,Ze(e,2,Po,n)):(e=r,n=new no,Ze(e,4,Po,n))),Qe(t.baseOptions,0,3,r)}(t,r);let i=n?"model.litertlm":"model.dat";if(r.modelAssetPath)return fetch(r.modelAssetPath.toString()).then(t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${r.modelAssetPath} (${t.status})`)}).then(e=>{Us(t,new Uint8Array(e),i),t.o()});if(r.modelAssetBuffer instanceof Uint8Array)n?Us(t,r.modelAssetBuffer,i):ks(t,r.modelAssetBuffer);else if(r.modelAssetBuffer)return async function(t){for(var e=[],r=0;;){let{done:n,value:i}=await t.read();if(n)break;e.push(i),r+=i.length}if(0===e.length)return new Uint8Array(0);if(1===e.length)return e[0];t=new Uint8Array(r),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(r.modelAssetBuffer).then(e=>{n?Us(t,e,i):ks(t,e),t.o()})}return t.o(),Promise.resolve()}function Vs(t){try{let e=t.C.length;if(1===e)throw Error(t.C[0].message);if(e>1)throw Error("Encountered multiple errors: "+t.C.map(t=>t.message).join(", "))}finally{t.C=[]}}function Cs(t,e){if(t.j&&void 0!==e){let r=qe(t.baseOptions,No,3);r?.j()||r?.l()?.j()?(++(t=t.j).h.I,t.j.set(e,performance.now())):bs(t.j,e)}}function Ms(t,e){t.B=Math.max(t.B,e)}var Rs=class{constructor(t){this.h=t,this.C=[],this.B=0,this.h.setAutoRenderToScreen(!1)}setGraph(t,e){this.h.attachErrorListener((t,e)=>{this.C.push(Error(e))}),this.h.ea(),this.h.setGraph(t,e),this.j?.O(),Vs(this)}finishProcessing(t){this.h.finishProcessing(),Vs(this),this.j&&void 0!==t&&Ss(this.j,t)}close(){this.j?.da(),this.j?.close(),this.h.closeGraph()}};Rs.prototype.close=Rs.prototype.close;var Gs=class extends Rs{constructor(t,e){super(new Os(t,e)),this.u={languages:[]},Qe(t=this.l=new ko,0,1,e=new Bo)}A(){return"LanguageDetector"}v(t){return Qe(this.l,0,2,Mo(t,qe(this.l,Io,2))),Fs(this,t)}get baseOptions(){return qe(this.l,Bo,1)}set baseOptions(t){Qe(this.l,0,1,t)}Z(t){this.u={languages:[]};var e=this.B+1;return Cs(this,e),this.h.addStringToStream(t,"text_in",e),this.finishProcessing(e),this.u}o(){var t=new mo;vo(t),sr(t,15,"classifications_out");var e=new so;En(e,Fo,this.l);var r=new co;Ge(r,ne("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),lo(r),sr(r,4,"CLASSIFICATIONS:classifications_out"),r.v(e),er(t,1,co,r),this.h.attachProtoListener("classifications_out",(t,e)=>{if(({classifications:t}=Go(wo(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})),Ms(this,e)}),this.h.attachEmptyPacketListener("classifications_out",t=>{Ms(this,t)}),t=t.j(),this.setGraph(new Uint8Array(t),!0)}};Gs.prototype.detect=Gs.prototype.Z,Gs.prototype.setOptions=Gs.prototype.v,Gs.createFromModelPath=function(t,e){return Ls(Gs,t,{baseOptions:{modelAssetPath:e}})},Gs.createFromModelBuffer=function(t,e){return Ls(Gs,t,{baseOptions:{modelAssetBuffer:e}})},Gs.createFromOptions=function(t,e){return Ls(Gs,t,e)};var Ds=class extends Rs{constructor(t,e){super(new Os(t,e)),this.u={classifications:[]},Qe(t=this.l=new ko,0,1,e=new Bo)}A(){return"TextClassifier"}v(t){return Qe(this.l,0,2,Mo(t,qe(this.l,Io,2))),Fs(this,t)}get baseOptions(){return qe(this.l,Bo,1)}set baseOptions(t){Qe(this.l,0,1,t)}Y(t){this.u={classifications:[]};var e=this.B+1;return Cs(this,e),this.h.addStringToStream(t,"text_in",e),this.finishProcessing(e),this.u}o(){var t=new mo;vo(t),sr(t,15,"classifications_out");var e=new so;En(e,Fo,this.l);var r=new co;Ge(r,ne("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),lo(r),sr(r,4,"CLASSIFICATIONS:classifications_out"),r.v(e),er(t,1,co,r),this.h.attachProtoListener("classifications_out",(t,e)=>{this.u=Go(wo(t)),Ms(this,e)}),this.h.attachEmptyPacketListener("classifications_out",t=>{Ms(this,t)}),t=t.j(),this.setGraph(new Uint8Array(t),!0)}};function zs(t){switch(t){case"RETRIEVAL_QUERY":default:return"search result";case"SEMANTIC_SIMILARITY":return"sentence similarity";case"CLASSIFICATION":return"classification";case"CLUSTERING":return"clustering";case"QUESTION_ANSWERING":return"question answering";case"FACT_CHECKING":return"fact checking";case"CODE_RETRIEVAL":return"code retrieval"}}Ds.prototype.classify=Ds.prototype.Y,Ds.prototype.setOptions=Ds.prototype.v,Ds.createFromModelPath=function(t,e){return Ls(Ds,t,{baseOptions:{modelAssetPath:e}})},Ds.createFromModelBuffer=function(t,e){return Ls(Ds,t,{baseOptions:{modelAssetBuffer:e}})},Ds.createFromOptions=function(t,e){return Ls(Ds,t,e)};var $s=class extends Rs{constructor(t,e){super(new Os(t,e)),this.u={embeddings:[]},Qe(t=this.l=new Vo,0,1,e=new Bo)}A(){return"TextEmbedder"}v(t){var e=this.l,r=qe(this.l,jo,2);return r=r?Se(r):new jo,void 0!==t.l2Normalize?Oe(r,1,Dt(t.l2Normalize)):"l2Normalize"in t&&Oe(r,1),void 0!==t.quantize?Oe(r,2,Dt(t.quantize)):"quantize"in t&&Oe(r,2),Qe(e,0,2,r),Fs(this,t)}get baseOptions(){return qe(this.l,Bo,1)}set baseOptions(t){Qe(this.l,0,1,t)}aa(t,e){var r=this.B+1;if(Cs(this,r),e)t:{let r=e.type,n=e.title&&e.title.length>0?e.title:"none";switch(e="DOCUMENT"!==e.textRole,r){case"RETRIEVAL_DOCUMENT":t=`title: ${n} | text: ${t}`;break t;case"RETRIEVAL_QUERY":t=`task: ${zs(r)} | query: ${t}`;break t;case"QUESTION_ANSWERING":case"FACT_CHECKING":case"CODE_RETRIEVAL":t=e?`task: ${zs(r)} | query: ${t}`:`title: ${n} | text: ${t}`;break t;default:t=`task: ${zs(r)} | query: ${t}`}}return this.h.addStringToStream(t,"text_in",r),this.finishProcessing(r),this.u}o(){var t=new mo;vo(t),sr(t,15,"embeddings_out");var e=new so;En(e,Co,this.l);var r=new co;Ge(r,ne("mediapipe.tasks.text.text_embedder.TextEmbedderGraph")),lo(r),sr(r,4,"EMBEDDINGS:embeddings_out"),r.v(e),er(t,1,co,r),this.h.attachProtoListener("embeddings_out",(t,e)=>{t=Ao(t),this.u=function(t){return{embeddings:Je(t,Eo).map(t=>{var e={headIndex:Ht(Ne(t,3))??0??-1,headName:ie(Ne(t,4))??""??""};if(Ue(t,1,To))t=ke(t=rr(t,So,1,To),1,Gt),e.floatEmbedding=t.slice();else{let r=new Uint8Array(0);e.quantizedEmbedding=rr(t,_o,2,To)?.j()?.j()??r}return e}),timestampMs:Ro(Ne(t,2,void 0,Qt)??xe)}}(t),Ms(this,e)}),this.h.attachEmptyPacketListener("embeddings_out",t=>{Ms(this,t)}),t=t.j(),this.setGraph(new Uint8Array(t),!0)}};function Hs(t,e){return Ls(Ws,t,e)}$s.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=zo(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=zo(Do(t.quantizedEmbedding),Do(e.quantizedEmbedding))}return t},$s.prototype.embed=$s.prototype.aa,$s.prototype.setOptions=$s.prototype.v,$s.createFromModelPath=function(t,e){return Ls($s,t,{baseOptions:{modelAssetPath:e}})},$s.createFromModelBuffer=function(t,e){return Ls($s,t,{baseOptions:{modelAssetBuffer:e}})},$s.createFromOptions=function(t,e){return Ls($s,t,e)};var Ws=class extends Rs{constructor(t,e){super(new Os(t,e)),this.baseOptions=new Bo,this.u=this.l=this.maxNumTokens=0}A(){return"TextProofreader"}async v(t){if(0!==this.l)throw Error("LiteRT LM Tasks do not support updating options after initialization.");return void 0!==t.maxNumTokens&&(this.maxNumTokens=t.maxNumTokens),Fs(this,t,!(!t.baseOptions||!t.baseOptions.modelAssetPath&&!t.baseOptions.modelAssetBuffer),!0)}o(){this.l=this.h.i.createTextProofreader("/model.litertlm",this.maxNumTokens),this.j.O()}proofread(t){var e=this.h.i;if(0===this.l)throw Error("TextProofreader is already closed.");var r=this.u++;bs(this.j,r);try{return e.proofread(this.l,t)}finally{Ss(this.j,r)}}proofreadStreaming(t,e){var r=this.h.i;if(0===this.l)throw Error("TextProofreader is already closed.");if(r._userProofreaderListener)throw Error("Another proofread is already in progress.");var n=this.u++;bs(this.j,n);var i,o,s=new Promise((t,e)=>{i=t,o=e}),a=()=>{r._userProofreaderListener=void 0,Ss(this.j,n)},u="";r._userProofreaderListener=(t,r,n,s)=>{if(n)a(),o(Error(n));else{if(u+=t,e)try{e(t,r)}catch(t){return a(),void o(t)}r&&(a(),i({proofreadText:u,corrections:s??[]}))}};try{r.proofreadStreaming(this.l,t)}catch(t){a(),o(t)}return s}close(){var t=this.h.i;if(0!==this.l){try{t.deleteTextProofreader(this.l)}catch{}this.l=0}super.close()}};function Ks(t,e){return Ls(qs,t,e)}Ws.prototype.proofreadStreaming=Ws.prototype.proofreadStreaming,Ws.createFromModelBuffer=function(t,e,r=0){return Hs(t,{baseOptions:{modelAssetBuffer:e},maxNumTokens:r})},Ws.createFromModelPath=function(t,e,r=0){return Hs(t,{baseOptions:{modelAssetPath:e},maxNumTokens:r})},Ws.createFromOptions=Hs;var qs=class extends Rs{constructor(t,e){super(new Os(t,e)),this.baseOptions=new Bo,this.maxNumTokens=0,this.mode="KEYPOINTS",this.u=this.l=0}A(){return"TextSummarizer"}async v(t){if(0!==this.l)throw Error("LiteRT LM Tasks do not support updating options after initialization.");return void 0!==t.maxNumTokens&&(this.maxNumTokens=t.maxNumTokens),void 0!==t.mode&&(this.mode=t.mode),Fs(this,t,!(!t.baseOptions||!t.baseOptions.modelAssetPath&&!t.baseOptions.modelAssetBuffer),!0)}o(){this.l=this.h.i.createTextSummarizer("/model.litertlm",this.maxNumTokens,this.mode),this.j.O()}summarize(t){var e=this.h.i;if(0===this.l)throw Error("TextSummarizer is already closed.");var r=this.u++;bs(this.j,r);try{return e.summarize(this.l,t)}finally{Ss(this.j,r)}}summarizeStreaming(t,e){var r=this.h.i;if(0===this.l)throw Error("TextSummarizer is already closed.");if(r._userSummarizerListener)throw Error("Another summarization is already in progress.");var n=this.u++;bs(this.j,n);var i,o,s=new Promise((t,e)=>{i=t,o=e}),a=()=>{r._userSummarizerListener=void 0,Ss(this.j,n)},u="";r._userSummarizerListener=(t,r,n)=>{if(n)a(),o(Error(n));else{if(u+=t,e)try{e(t,r)}catch(t){return a(),void o(t)}r&&(a(),i(u))}};try{r.summarizeStreaming(this.l,t)}catch(t){a(),o(t)}return s}close(){var t=this.h.i;if(0!==this.l){try{t.deleteTextSummarizer(this.l)}catch{}this.l=0}super.close()}};qs.prototype.summarizeStreaming=qs.prototype.summarizeStreaming,qs.createFromModelBuffer=function(t,e,r=0,n="KEYPOINTS"){return Ks(t,{baseOptions:{modelAssetBuffer:e},maxNumTokens:r,mode:n})},qs.createFromModelPath=function(t,e,r=0,n="KEYPOINTS"){return Ks(t,{baseOptions:{modelAssetPath:e},maxNumTokens:r,mode:n})},qs.createFromOptions=Ks,exports.FilesetResolver=Ho,exports.LanguageDetector=Gs,exports.TaskRunner=Rs,exports.TextClassifier=Ds,exports.TextEmbedder=$s,exports.TextProofreader=Ws,exports.TextSummarizer=qs;
1
+ "use strict";var t="undefined"!=typeof self?self:{};function e(){throw Error("Invalid UTF8")}function r(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}var n,i,o=void 0,s="undefined"!=typeof TextDecoder,a="undefined"!=typeof TextEncoder;function u(t){if(a)t=(i||=new TextEncoder).encode(t);else{let r=0,n=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var e=t.charCodeAt(i);if(e<128)n[r++]=e;else{if(e<2048)n[r++]=e>>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&i<t.length){let o=t.charCodeAt(++i);if(o>=56320&&o<=57343){e=1024*(e-55296)+o-56320+65536,n[r++]=e>>18|240,n[r++]=e>>12&63|128,n[r++]=e>>6&63|128,n[r++]=63&e|128;continue}i--}e=65533}n[r++]=e>>12|224,n[r++]=e>>6&63|128}n[r++]=63&e|128}}t=r===n.length?n:n.subarray(0,r)}return t}function l(){var e=t.navigator;return e&&(e=e.userAgent)?e:""}function c(t){return c[" "](t),t}c[" "]=function(){};var h={},f=null;function d(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):-1!="=.".indexOf(t[e-1])&&(r=-1!="=.".indexOf(t[e-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return function(t,e){function r(e){for(;n<t.length;){let e=t.charAt(n++),r=f[e];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(e))throw Error("Unknown base64 encoding at char: "+e)}return e}p();for(var n=0;;){let t=r(-1),n=r(0),i=r(64),o=r(64);if(64===o&&-1===t)break;e(t<<2|n>>4),64!=i&&(e(n<<4&240|i>>2),64!=o&&e(i<<6&192|o))}}(t,function(t){n[i++]=t}),i!==r?n.subarray(0,i):n}function p(){if(!f){f={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){let n=t.concat(e[r].split(""));h[r]=n;for(let t=0;t<n.length;t++){let e=n[t];void 0===f[e]&&(f[e]=t)}}}}var v="undefined"!=typeof Uint8Array,m=!(-1!=l().indexOf("Trident")||-1!=l().indexOf("MSIE"))&&"function"==typeof btoa,g=/[-_.]/g,y={"-":"+",_:"/",".":"="};function b(t){return y[t]||""}function w(t){if(!m)return d(t);t=g.test(t)?t.replace(g,b):t,t=atob(t);var e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}var S={};function _(){return T||=new A(null,S)}function E(t){I(S);var e=t.h;return null==(e=null==e||v&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?w(e):null)?e:t.h=e}var T,A=class{j(){return new Uint8Array(E(this)||0)}constructor(t,e){if(I(e),this.h=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};function I(t){if(t!==S)throw Error("illegal external caller")}function j(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}var x,N,P=void 0;function O(t){return j(t=Error(t),"warning"),t}function B(e,r){if(null!=e){var n=P??={},i=n[e]||0;i>=r||(n[e]=i+1,j(e=Error(),"incident"),function(e){t.setTimeout(()=>{throw e},0)}(e))}}t:{for(var L=["CLOSURE_FLAGS"],U=t,k=0;k<L.length;k++)if(null==(U=U[L[k]])){N=null;break t}N=U}var F=N&&N[748402147];function V(){return"function"==typeof BigInt}x=null==F||F;var C="function"==typeof Symbol&&"symbol"==typeof Symbol();function M(t,e,r=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?r&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol():e}var R,G=M("jas",void 0,!0),D=M(void 0,"1oa"),z=M(void 0,Symbol()),$=M(void 0,"0ubs"),H=M(void 0,"0ubsb"),W=M(void 0,"0actk"),K=M("m_m","ka",!0),q={ca:{value:0,configurable:!0,writable:!0,enumerable:!1}},Y=Object.defineProperties,J=C?G:"ca",X=[];function Q(t,e){C||J in t||Y(t,q),t[J]|=e}function Z(t,e){C||J in t||Y(t,q),t[J]=e}function tt(t,e){return 2&e&&(t|=2),1|t}Z(X,7),R=Object.freeze(X);var et={};function rt(t,e){return void 0===e?t.h!==nt&&!!(2&t.m[J]):!!(2&e)&&t.h!==nt}var nt={};function it(t,e){if(null!=t)if("string"==typeof t)t=t?new A(t,S):_();else if(!(t instanceof A))if(v&&null!=t&&t instanceof Uint8Array)t=t.length?new A(new Uint8Array(t),S):_();else{if(!e)throw Error();t=void 0}return t}function ot(t,e,r){var n,i=128&e?0:-1,o=t.length;(n=!!o)&&(n=null!=(n=t[o-1])&&"object"==typeof n&&n.constructor===Object);var s=o+(n?-1:0);for(e=128&e?1:0;e<s;e++)r(e-i,t[e]);if(n){t=t[o-1];for(let e in t)!isNaN(e)&&r(+e,t[e])}}Object.freeze({});var st={};function at(t){return 128&t?st:void 0}function ut(t){return t.ia=!0,t}var lt=ut(t=>"number"==typeof t),ct=ut(t=>"string"==typeof t),ht=ut(t=>"boolean"==typeof t),ft="function"==typeof t.BigInt&&"bigint"==typeof t.BigInt(0);function dt(t){var e=t;if(ct(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(lt(e)&&!Number.isSafeInteger(e))throw Error(String(e));return ft?BigInt(t):t=ht(t)?t?"1":"0":ct(t)?t.trim()||"0":String(t)}var pt=ut(t=>ft?t>=mt&&t<=yt:"-"===t[0]?bt(t,vt):bt(t,gt)),vt=Number.MIN_SAFE_INTEGER.toString(),mt=ft?BigInt(Number.MIN_SAFE_INTEGER):void 0,gt=Number.MAX_SAFE_INTEGER.toString(),yt=ft?BigInt(Number.MAX_SAFE_INTEGER):void 0;function bt(t,e){if(t.length>e.length)return!1;if(t.length<e.length||t===e)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=e[r];if(n>i)return!1;if(n<i)return!0}}var wt,St="function"==typeof Uint8Array.prototype.slice,_t=0,Et=0;function Tt(t){var e=t>>>0;_t=e,Et=(t-e)/4294967296>>>0}function At(t){if(t<0){Tt(-t);let[e,r]=Ut(_t,Et);_t=e>>>0,Et=r>>>0}else Tt(t)}function It(t){var e=wt||=new DataView(new ArrayBuffer(8));e.setFloat32(0,+t,!0),Et=0,_t=e.getUint32(0,!0)}function jt(t,e){var r=4294967296*e+(t>>>0);return Number.isSafeInteger(r)?r:Pt(t,e)}function xt(t,e){return dt(V()?BigInt.asUintN(64,(BigInt(e>>>0)<<BigInt(32))+BigInt(t>>>0)):Pt(t,e))}function Nt(t,e){return V()?dt(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(e))<<BigInt(32))+BigInt.asUintN(32,BigInt(t)))):dt(Bt(t,e))}function Pt(t,e){if(t>>>=0,(e>>>=0)<=2097151)var r=""+(4294967296*e+t);else V()?r=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(r=16777215&(t>>>24|e<<8))+6710656*(e=e>>16&65535),r+=8147497*e,e*=2,t>=1e7&&(r+=t/1e7>>>0,t%=1e7),r>=1e7&&(e+=r/1e7>>>0,r%=1e7),r=e+Ot(r)+Ot(t));return r}function Ot(t){return t=String(t),"0000000".slice(t.length)+t}function Bt(t,e){if(2147483648&e)if(V())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{let[r,n]=Ut(t,e);t="-"+Pt(r,n)}else t=Pt(t,e);return t}function Lt(t){if(t.length<16)At(Number(t));else if(V())t=BigInt(t),_t=Number(t&BigInt(4294967295))>>>0,Et=Number(t>>BigInt(32)&BigInt(4294967295));else{let e=+("-"===t[0]);Et=_t=0;let r=t.length;for(let n=e,i=(r-e)%6+e;i<=r;n=i,i+=6){let e=Number(t.slice(n,i));Et*=1e6,(_t=1e6*_t+e)>=4294967296&&(Et+=Math.trunc(_t/4294967296),Et>>>=0,_t>>>=0)}if(e){let[t,e]=Ut(_t,Et);_t=t,Et=e}}}function Ut(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function kt(t){return Array.prototype.slice.call(t)}var Ft="function"==typeof BigInt?BigInt.asIntN:void 0,Vt="function"==typeof BigInt?BigInt.asUintN:void 0,Ct=Number.isSafeInteger,Mt=Number.isFinite,Rt=Math.trunc;function Gt(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function Dt(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}var zt=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function $t(t){switch(typeof t){case"bigint":return!0;case"number":return Mt(t);case"string":return zt.test(t);default:return!1}}function Ht(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?0|t:void 0}function Wt(t){var e=t.length;return("-"===t[0]?e<20||20===e&&t<="-9223372036854775808":e<19||19===e&&t<="9223372036854775807")?t:(Lt(t),Bt(_t,Et))}function Kt(t){if("-"===t[0])var e=!1;else e=(e=t.length)<20||20===e&&t<="18446744073709551615";return e?t:(Lt(t),Pt(_t,Et))}function qt(t){if(t=Rt(t),!Ct(t)){At(t);var e=_t,r=Et;(t=2147483648&r)&&(r=~r>>>0,0==(e=1+~e>>>0)&&(r=r+1>>>0)),t="number"==typeof(e=jt(e,r))?t?-e:e:t?"-"+e:e}return t}function Yt(t){return t=Rt(t),Ct(t)?t=String(t):(At(t),t=Bt(_t,Et)),t}function Jt(t){var e=Rt(Number(t));return Ct(e)?String(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),Wt(t))}function Xt(t){var e=Rt(Number(t));return Ct(e)?dt(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),V()?dt(Ft(64,BigInt(t))):dt(Wt(t)))}function Qt(t){var e=typeof t;return null==t?t:"bigint"===e?dt(Ft(64,t)):$t(t)?"string"===e?Xt(t):dt(Ct(t)?t:Yt(t)):void 0}function Zt(t){if(null==t)return t;var e=typeof t;if("bigint"===e)return String(Ft(64,t));if($t(t)){if("string"===e)return Jt(t);if("number"===e)return qt(t)}}function te(t){if(null==t)return t;var e=typeof t;if("bigint"===e)return String(Vt(64,t));if($t(t)){if("string"===e)return function(t){var e=Rt(Number(t));return Ct(e)&&e>=0?String(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),Kt(t))}(t);if("number"===e)return function(t){return(t=Rt(t))>=0&&Ct(t)||(At(t),t=jt(_t,Et)),t}(t)}}function ee(t){if(null==t||"string"==typeof t||t instanceof A)return t}function re(t){if("string"!=typeof t)throw Error();return t}function ne(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function ie(t){return null==t||"string"==typeof t?t:void 0}function oe(t,e,r){if(null!=t&&t[K]===et)return t;if(Array.isArray(t)){var n=0|t[J];return(r=n|32&r|2&r)!==n&&Z(t,r),new e(t)}}function se(t){return t}function ae(t){return z?t[z]:void 0}function ue(t,e){for(let r in t)!isNaN(r)&&e(t,+r,t[r])}var le,ce,he,fe=class{};function de(t,e){e<100||B($,1)}function pe(t,e,r,n){var i=void 0!==n;n=!!n;var o,s=z;!i&&C&&s&&(o=t[s])&&ue(o,de),s=[];var a=t.length;o=4294967295;var u=!1,l=!!(64&e),c=l?128&e?0:-1:void 0;if(!(1&e)){var h=a&&t[a-1];null!=h&&"object"==typeof h&&h.constructor===Object?o=--a:h=void 0,!l||128&e||i||(u=!0,o=(le??se)(o-c,c,t,h,void 0)+c)}e=void 0;for(var f=0;f<a;f++){let i=t[f];if(null!=i&&null!=(i=r(i,n)))if(l&&f>=o){let t=f-c;(e??={})[t]=i}else s[f]=i}if(h)for(let t in h){if(null==(a=h[t])||null==(a=r(a,n)))continue;let i;f=+t,l&&!Number.isNaN(f)&&(i=f+c)<o?s[i]=a:(e??={})[t]=a}return e&&(u?s.push(e):s[o]=e),i&&z&&(t=ae(t))&&t instanceof fe&&(s[z]=function(t){var e=new fe;return ue(t,(t,r,n)=>{e[r]=kt(n)}),e.h=t.h,e}(t)),s}function ve(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return pt(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(Array.isArray(t)){var e=0|t[J];return 0===t.length&&1&e?void 0:pe(t,e,ve)}if(null!=t&&t[K]===et)return me(t);if(t instanceof A){if(null==(e=t.h))t="";else if("string"==typeof e)t=e;else{if(m){for(var r="",n=0,i=e.length-10240;n<i;)r+=String.fromCharCode.apply(null,e.subarray(n,n+=10240));r+=String.fromCharCode.apply(null,n?e.subarray(n):e),e=btoa(r)}else{void 0===r&&(r=0),p(),r=h[r],n=Array(Math.floor(e.length/3)),i=r[64]||"";let t=0,l=0;for(;t<e.length-2;t+=3){var o=e[t],s=e[t+1],a=e[t+2],u=r[o>>2];o=r[(3&o)<<4|s>>4],s=r[(15&s)<<2|a>>6],a=r[63&a],n[l++]=u+o+s+a}switch(u=0,a=i,e.length-t){case 2:a=r[(15&(u=e[t+1]))<<2]||i;case 1:e=e[t],n[l]=r[e>>2]+r[(3&e)<<4|u>>4]+a+i}e=n.join("")}t=t.h=e}return t}return}return t}function me(t){return pe(t=t.m,0|t[J],ve)}function ge(t,e){return ye(t,e[0],e[1])}function ye(t,e,r,n=0){if(null==t){var i=32;r?(t=[r],i|=128):t=[],e&&(i=-16760833&i|(1023&e)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(i=0|t[J],x&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(x)throw Error("carr");B(W,5)}(),256&i)throw Error("farr");if(64&i)return(i|n)!==i&&Z(t,i|n),t;if(r&&(i|=128,r!==t[0]))throw Error("mid");t:{i|=64;var o=(r=t).length;if(o){var s=o-1;let t=r[s];if(null!=t&&"object"==typeof t&&t.constructor===Object){if((s-=e=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var a in t)(o=+a)<s&&(r[o+e]=t[a],delete t[a]);i=-16760833&i|(1023&s)<<14;break t}}if(e){if((a=Math.max(e,o-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&a)<<14}}}return Z(t,64|i|n),t}function be(t,e){if("object"!=typeof t)return t;if(Array.isArray(t)){var r=0|t[J];return 0===t.length&&1&r?t=void 0:2&r||(!e||4096&r||16&r?t=_e(t,r,!1,e&&!(16&r)):(Q(t,34),4&r&&Object.freeze(t))),t}return null!=t&&t[K]===et?rt(t,r=0|(e=t.m)[J])?t:je(t,e,r)?we(t,e):_e(e,r):t instanceof A?t:void 0}function we(t,e,r){return t=new t.constructor(e),r&&(t.h=nt),t.o=nt,t}function Se(t){var e=t.m,r=0|e[J];return je(t,e,r)?we(t,e,!0):new t.constructor(_e(e,r,!1))}function _e(t,e,r,n){return n??=!!(34&e),t=pe(t,e,be,n),n=32,r&&(n|=2),Z(t,e=16769217&e|n),t}function Ee(t){var e=t.m,r=0|e[J];return rt(t,r)?je(t,e,r)?we(t,e,!0):new t.constructor(_e(e,r,!1)):t}function Te(t){if(t.h!==nt)return!1;var e=t.m;return Q(e=_e(e,0|e[J]),2048),t.m=e,t.h=void 0,t.o=void 0,!0}function Ae(t){if(!Te(t)&&rt(t,0|t.m[J]))throw Error()}function Ie(t,e){void 0===e&&(e=0|t[J]),32&e&&!(4096&e)&&Z(t,4096|e)}function je(t,e,r){return!!(2&r)||!(!(32&r)||4096&r)&&(Z(e,2|r),t.h=nt,!0)}var xe=dt(0);function Ne(t,e,r,n){if(null!==(t=Pe(t.m,e,r,n)))return t}function Pe(t,e,r,n){if(-1===e)return null;var i=e+(r?0:-1),o=t.length-1;if(!(o<1+(r?0:-1))){if(i>=o){var s=t[o];if(null!=s&&"object"==typeof s&&s.constructor===Object){r=s[e];var a=!0}else{if(i!==o)return;r=s}}else r=t[i];if(n&&null!=r){if(null==(n=n(r)))return n;if(!Object.is(n,r))return a?s[e]=n:t[i]=n,n}return r}}function Oe(t,e,r,n){Ae(t);var i=t.m;return Be(i,0|i[J],e,r,n),t}function Be(t,e,r,n,i){var o=r+(i?0:-1),s=t.length-1;if(s>=1+(i?0:-1)&&o>=s){let i=t[s];if(null!=i&&"object"==typeof i&&i.constructor===Object)return i[r]=n,e}return o<=s?(t[o]=n,e):(void 0!==n&&(r>=(s=(e??=0|t[J])>>14&1023||536870912)?null!=n&&(t[s+(i?0:-1)]={[r]:n}):t[o]=n),e)}function Le(t,e){return null!=(t=Pe(t.m,e))&&t[K]===et||Array.isArray(t)}function Ue(t,e,r){return Le(t,e=ze(t,r)===e?e:-1)}function ke(t,e,r,n,i){var o=t.m,s=0|o[J];n=n&&4!==n?1!==n&&(t?rt(t,s):2&s)?1:n:4,i=!!i||3===n,2===n&&Te(t)&&(s=0|(o=t.m)[J]);var a=(t=Ve(o,e))===R?7:0|t[J],u=tt(a,s),l=!(4&u);if(l){let e=0,n=0;for(;e<t.length;e++){let i=r(t[e]);null!=i&&(t[n++]=i)}n<e&&(t.length=n),r=-513&u|4,u=r&=-1025,u&=-4097}return u!==a&&(Z(t,u),2&u&&Object.freeze(t)),Fe(t,u,o,s,e,n,l,i)}function Fe(t,e,r,n,i,o,s,a){var u=e,l=Ce(e);return l&&2===o&&(t=kt(t),u=0,e=tr(e,n),n=Be(r,n,i,t),l=!1),l||(1===o||4===o&&(2&e||!(16&e)&&32&n)?((e|=!t.length||s&&!(4096&e)||32&n&&!(4096&e||16&e)?2:256)!==u&&Z(t,e),Object.freeze(t)):(a||(e|=16),e!==u&&Z(t,e))),2&e||!(4096&e||16&e)||Ie(r,n),t}function Ve(t,e,r){return t=Pe(t,e,r),Array.isArray(t)?t:R}function Ce(t){return!!(2&t)&&!!(4&t)||!!(256&t)}function Me(t){return it(t,!0)}function Re(t,e,r){Ae(t);var n=0|(t=t.m)[J];if(null==r)Be(t,n,e);else{var i=r===R?7:0|r[J],o=i,s=Ce(i),a=s||Object.isFrozen(r);for(s||(i=0),a||(r=kt(r),o=0,i=tr(i,n),a=!1),i|=5,i|=(4&i?512&i?512:1024&i?1024:0:void 0)??1024,s=0;s<r.length;s++){let t=r[s],e=re(t);Object.is(t,e)||(a&&(r=kt(r),o=0,i=tr(i,n),a=!1),r[s]=e)}i!==o&&(a&&(r=kt(r),i=tr(i,n)),Z(r,i)),Be(t,n,e,r)}}function Ge(t,e){Ae(t),Be(t=t.m,0|t[J],2,""===e?void 0:e)}function De(t,e,r){if(2&e)throw Error();var n=at(e),i=Ve(t,r,n),o=i===R?7:0|i[J],s=tt(o,e);return(2&s||Ce(s)||16&s)&&(s===o||Ce(s)||Z(i,s),i=kt(i),o=0,s=tr(s,e),Be(t,e,r,i,n)),(s&=-13)!==o&&Z(i,s),i}function ze(t,e){return We($e(t=t.m),t,void 0,e)}function $e(t){if(C)return t[D]??(t[D]=new Map);if(D in t)return t[D];var e=new Map;return Object.defineProperty(t,D,{value:e}),e}function He(t,e,r,n,i){var o=$e(t),s=We(o,t,e,r,i);return s!==n&&(s&&(e=Be(t,e,s,void 0,i)),o.set(r,n)),e}function We(t,e,r,n,i){var o=t.get(n);if(null!=o)return o;o=0;for(let t=0;t<n.length;t++){let s=n[t];null!=Pe(e,s,i)&&(0!==o&&(r=Be(e,r,o,void 0,i)),o=s)}return t.set(n,o),o}function Ke(t,e,r){var n=0|t[J],i=at(n),o=Pe(t,r,i);if(null!=o&&o[K]===et){if(!rt(o))return Te(o),o.m;var s=o.m}else Array.isArray(o)&&(s=o,2&n&&Q(s,34));if(s){let t=0|s[J];2&t&&(s=_e(s,t))}return(s=ge(s,e))!==o&&Be(t,n,r,s,i),s}function qe(t,e,r){var n=t.m,i=0|n[J];if(e=function(t,e,r,n){var i=!1;if(null!=(n=Pe(t,n,void 0,t=>{var n=oe(t,r,e);return i=n!==t&&null!=n,n})))return i&&!rt(n)&&Ie(t,e),n}(n,i,e,r),null==e)return e;if(!rt(t,i=0|n[J])){let o=Ee(e);o!==e&&(Te(t)&&(i=0|(n=t.m)[J]),Ie(n,i=Be(n,i,r,e=o)))}return e}function Ye(t,e,r,n,i,o,s,a){o=o&&4!==o?1!==o&&(t?rt(t,r):2&r)?1:o:4,s=!!s||3===o;var u=!!a&&!(t?rt(t,r):2&r);(2===o||u)&&t&&Te(t)&&(r=0|(e=t.m)[J]);var l=(t=Ve(e,i))===R?7:0|t[J],c=tt(l,r);if(a=!(4&c)){var h=t,f=r;let e=!!(2&c);e&&(f|=2);let i=!e,o=!0,s=0,a=0;for(;s<h.length;s++){let t=oe(h[s],n,f);if(t instanceof n){if(!e){let e=rt(t);i&&=!e,o&&=e}h[a++]=t}}a<s&&(h.length=a),c|=4,c=o?-4097&c:4096|c,c=i?8|c:-9&c}if(c!==l&&(Z(t,c),2&c&&Object.freeze(t)),u&&!(8&c||!t.length&&(1===o||4===o&&(2&c||!(16&c)&&32&r)))){for(Ce(c)&&(t=kt(t),c=tr(c,r),r=Be(e,r,i,t)),n=t,u=c,l=0;l<n.length;l++)(h=n[l])!==(c=Ee(h))&&(n[l]=c);u|=8,Z(t,c=u=n.length?4096|u:-4097&u)}return Fe(t,c,e,r,i,o,a,s)}function Je(t,e){var r=t.m;return Ye(t,r,0|r[J],e,1,void 0,!1,!0)}function Xe(t){return null==t&&(t=void 0),t}function Qe(t,e,r,n,i){return Oe(t,r,n=Xe(n),i),n&&!rt(n)&&Ie(t.m),t}function Ze(t,e,r,n){t:{var i=n=Xe(n);Ae(t);let o=t.m,s=0|o[J];if(null==i){let t=$e(o);if(We(t,o,s,r)!==e)break t;t.set(r,0)}else s=He(o,s,r,e);Be(o,s,e,i)}return n&&!rt(n)&&Ie(t.m),t}function tr(t,e){return-273&(2&e?2|t:-3&t)}function er(t,e,r,n){Ae(t);var i=t.m;t=Ye(t,i,0|i[J],r,e,2,!0),n=null!=n?n:new r,t.push(n),e=r=t===R?7:0|t[J],(n=rt(n))?(r&=-9,1===t.length&&(r&=-4097)):r|=4096,r!==e&&Z(t,r),n||Ie(i)}function rr(t,e,r,n){return qe(t,e,r=ze(t,n)===r?r:-1)}function nr(t,e,r){if(null!=r)t:{if(!$t(r))throw O("int64");switch(typeof r){case"string":r=Xt(r);break t;case"bigint":r=dt(Ft(64,r));break t;default:r=dt(Ct(r)?r:Yt(r))}}return Oe(t,e,r)}function ir(t,e,r){return Oe(t,e,null==r?r:function(t){if(!$t(t))throw O("uint64");var e=typeof t;switch(e){case"string":return e=Rt(Number(t)),Ct(e)&&e>=0?t=dt(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),t=V()?dt(Vt(64,BigInt(t))):dt(Kt(t))),t;case"bigint":return dt(Vt(64,t));default:return t>=0&&Ct(t)||((t=Rt(t))>=0&&Ct(t)?t=String(t):(At(t),t=Pt(_t,Et))),dt(t)}}(r))}function or(t,e,r){if(null!=r){if(!Mt(r))throw O("enum");r|=0}return Oe(t,e,r)}function sr(t,e,r){Ae(t),ke(t,e,ie,2,!0).push(re(r))}var ar=class{constructor(t,e,r){if(this.buffer=t,r&&!e)throw Error();this.h=e}};function ur(t,e){if("string"==typeof t)return new ar(w(t),e);if(Array.isArray(t))return new ar(new Uint8Array(t),e);if(t.constructor===Uint8Array)return new ar(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new ar(t,!1);if(t.constructor===A)return e=E(t)||new Uint8Array(0),new ar(e,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new ar(t,!1);throw Error()}function lr(t,e){var r=0,n=0,i=0,o=t.j,s=t.h;do{var a=o[s++];r|=(127&a)<<i,i+=7}while(i<32&&128&a);if(i>32)for(n|=(127&a)>>4,i=3;i<32&&128&a;i+=7)n|=(127&(a=o[s++]))<<i;if(mr(t,s),!(128&a))return e(r>>>0,n>>>0);throw Error()}function cr(t){for(var e=0,r=t.h,n=r+10,i=t.j;r<n;){let n=i[r++];if(e|=n,!(128&n))return mr(t,r),!!(127&e)}throw Error()}function hr(t){var e=t.j,r=t.h,n=e[r++],i=127&n;if(128&n&&(i|=(127&(n=e[r++]))<<7,128&n&&(i|=(127&(n=e[r++]))<<14,128&n&&(i|=(127&(n=e[r++]))<<21,128&n&&(i|=(n=e[r++])<<28,128&n&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++])))))throw Error();return mr(t,r),i}function fr(t){return lr(t,Nt)}function dr(t){var e=t.j,r=t.h,n=e[r],i=e[r+1],o=e[r+2];return e=e[r+3],mr(t,t.h+4),(n|i<<8|o<<16|e<<24)>>>0}function pr(t){var e=dr(t);t=2*(e>>31)+1;var r=e>>>23&255;return e&=8388607,255==r?e?NaN:t*(1/0):0==r?1401298464324817e-60*t*e:t*Math.pow(2,r-150)*(e+8388608)}function vr(t){return hr(t)}function mr(t,e){if(t.h=e,e>t.l)throw Error()}function gr(t,e){if(e<0)throw Error();var r=t.h;if((e=r+e)>t.l)throw Error();return t.h=e,r}function yr(t,e){if(0==e)return _();var r=gr(t,e);return t.M&&t.A?r=t.j.subarray(r,r+e):(t=t.j,r=r===(e=r+e)?new Uint8Array(0):St?t.slice(r,e):new Uint8Array(t.subarray(r,e))),0==r.length?_():new A(r,S)}var br=class{constructor(t,e,r,n){this.j=null,this.A=!1,this.h=this.l=this.o=0,this.init(t,e,r,n)}init(t,e,r,{M:n=!1,R:i=!1}={}){this.M=n,this.R=i,t&&(t=ur(t,this.R),this.j=t.buffer,this.A=t.h,this.o=e||0,this.l=void 0!==r?this.o+r:this.j.length,this.h=this.o)}clear(){this.j=null,this.A=!1,this.h=this.l=this.o=0,this.M=!1}},wr=[],Sr=0;function _r(t,e,r,n){if(Br.length){let i=Br.pop();return i.v(n),i.h.init(t,e,r,n),i}return new Or(t,e,r,n)}function Er(t){t.h.clear(),t.l=-1,t.j=-1,Br.length<100&&Br.push(t)}function Tr(t){var e=t.h;if(e.h==e.l)return!1;t.o=t.h.h;var r=hr(t.h)>>>0;if(e=r>>>3,!((r&=7)>=0&&r<=5))throw Error();if(e<1)throw Error();return t.l=e,t.j=r,!0}function Ar(t){try{switch(t.j){case 0:0!=t.j?Ar(t):cr(t.h);break;case 1:var e=t.h;mr(e,e.h+8);break;case 2:if(2!=t.j)Ar(t);else{var r=hr(t.h)>>>0,n=t.h;mr(n,n.h+r)}break;case 5:var i=t.h;mr(i,i.h+4);break;case 3:Ir();let o=t.l;try{for(;;){if(!Tr(t))throw Error();if(4==t.j){if(t.l!=o)throw Error();break}Ar(t)}}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}finally{Sr>0&&Sr--}break;default:throw Error()}}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}}function Ir(){if(Sr>=100)throw new SyntaxError;Sr++}function jr(t,e,r){var n=t.h.l,i=hr(t.h)>>>0,o=(i=t.h.h+i)-n;if(o<=0&&(t.h.l=i,r(e,t,void 0,void 0,void 0),o=i-t.h.h),o)throw Error();t.h.h=i,t.h.l=n}function xr(t){var i=hr(t.h)>>>0,a=gr(t=t.h,i);if(t=t.j,s){var u,l=t;(u=n)||(u=n=new TextDecoder("utf-8",{fatal:!0})),i=a+i,l=0===a&&i===l.length?l:l.subarray(a,i);try{var c=u.decode(l)}catch(t){if(void 0===o){try{u.decode(new Uint8Array([128]))}catch(t){}try{u.decode(new Uint8Array([97])),o=!0}catch(t){o=!1}}throw!o&&(n=void 0),t}}else{i=(c=a)+i,a=[];let n,o=null;for(;c<i;){var h=t[c++];h<128?a.push(h):h<224?c>=i?e():(n=t[c++],h<194||128!=(192&n)?(c--,e()):a.push((31&h)<<6|63&n)):h<240?c>=i-1?e():(n=t[c++],128!=(192&n)||224===h&&n<160||237===h&&n>=160||128!=(192&(u=t[c++]))?(c--,e()):a.push((15&h)<<12|(63&n)<<6|63&u)):h<=244?c>=i-2?e():(n=t[c++],128!=(192&n)||n-144+(h<<28)>>30||128!=(192&(u=t[c++]))||128!=(192&(l=t[c++]))?(c--,e()):(h=(7&h)<<18|(63&n)<<12|(63&u)<<6|63&l,h-=65536,a.push(55296+(h>>10&1023),56320+(1023&h)))):e(),a.length>=8192&&(o=r(o,a),a.length=0)}c=r(o,a)}return c}function Nr(t){var e=hr(t.h)>>>0;return yr(t.h,e)}function Pr(t,e,r){var n=hr(t.h)>>>0;for(n=t.h.h+n;t.h.h<n;)r.push(e(t.h))}var Or=class{constructor(t,e,r,n){if(wr.length){let i=wr.pop();i.init(t,e,r,n),t=i}else t=new br(t,e,r,n);this.h=t,this.o=this.h.h,this.j=this.l=-1,this.v(n)}v({U:t=!1}={}){this.U=t}},Br=[];function Lr(t){return new Fr(4294967295&t,Math.floor(t/4294967296))}function Ur(t){return t?/^\d+$/.test(t)?(Lt(t),new Fr(_t,Et)):null:kr||=new Fr(0,0)}var kr,Fr=class{constructor(t,e){this.j=t>>>0,this.h=e>>>0}};function Vr(t){return new Kr(4294967295&t,Math.floor(t/4294967296))}function Cr(t){return t?/^-?\d+$/.test(t)?(Lt(t),new Kr(_t,Et)):null:Mr||=new Kr(0,0)}var Mr,Rr,Gr,Dr,zr,$r,Hr,Wr,Kr=class{constructor(t,e){this.j=t>>>0,this.h=e>>>0}};function qr(t,e,r){return"undefined"!=typeof BigInt64Array?(Hr||(Hr=new BigInt64Array(1),Wr=new Uint32Array(Hr.buffer),Hr[0]=BigInt(1),$r=1===Wr[0]),Hr[0]=t,new e(Wr[t=$r?0:1],Wr[1-t])):(zr||(Rr=BigInt(Number.MIN_SAFE_INTEGER),Gr=BigInt(Number.MAX_SAFE_INTEGER),Dr=BigInt(4294967295),zr=BigInt(32)),t>=Rr&&t<=Gr?r(Number(t)):(t=BigInt.asUintN(64,t),new e(Number(t&Dr),Number(t>>zr))))}function Yr(t,e,r){for(;r>0||e>127;)t.h.push(127&e|128),e=(e>>>7|r<<25)>>>0,r>>>=7;t.h.push(e)}function Jr(t,e){for(;e>127;)t.h.push(127&e|128),e>>>=7;t.h.push(e)}function Xr(t,e){if(e>=0)Jr(t,e);else{for(let r=0;r<9;r++)t.h.push(127&e|128),e>>=7;t.h.push(1)}}function Qr(t,e){Lt(e),function(t){var e=Et>>31;t(_t<<1^e,(Et<<1|_t>>>31)^e)}((e,r)=>{Yr(t,e>>>0,r>>>0)})}function Zr(t,e){t.h.push(e>>>0&255),t.h.push(e>>>8&255),t.h.push(e>>>16&255),t.h.push(e>>>24&255)}var tn=class{constructor(){this.h=[]}length(){return this.h.length}end(){var t=this.h;return this.h=[],t}};function en(t,e){0!==e.length&&(t.l.push(e),t.j+=e.length)}function rn(t,e,r){Jr(t.h,8*e+r)}function nn(t,e){return rn(t,e,2),e=t.h.end(),en(t,e),e.push(t.j),e}function on(t,e){var r=e.pop();for(r=t.j+t.h.length()-r;r>127;)e.push(127&r|128),r>>>=7,t.j++;e.push(r),t.j++}function sn(t,e,r){if(null!=r)switch(rn(t,e,0),typeof r){case"number":t=t.h,At(r),Yr(t,_t,Et);break;case"bigint":r=qr(r,Kr,Vr),Yr(t.h,r.j,r.h);break;default:r=Cr(r),Yr(t.h,r.j,r.h)}}function an(t,e,r){rn(t,e,2),Jr(t.h,r.length),en(t,t.h.end()),en(t,r)}var un=class{constructor(){this.l=[],this.j=0,this.h=new tn}};function ln(t){if("string"==typeof t)Cr(t)}function cn(){var t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var hn=cn(),fn=cn(),dn=cn(),pn=cn(),vn=cn(),mn=cn(),gn=cn(),yn=cn(),bn=cn(),wn=cn(),Sn=cn(),_n=cn();function En(t,e,r){var n=t.m;z&&z in n&&(n=n[z])&&delete n[e.h],e.j?e.o(t,e.j,e.h,r,e.l):e.o(t,e.h,r,e.l)}var Tn=class{constructor(t,e){this.m=ye(t,e,void 0,2048)}toJSON(){return me(this)}};Tn.prototype[K]=et,Tn.prototype.toString=function(){return this.m.toString()};var An=class{constructor(t,e,r){this.h=t,this.j=e,t=hn,this.l=!!t&&r===t||!1}};function In(t,e){return new An(t,e,hn)}function jn(t,e,r,n,i){null!=(e=Mn(e,n))&&(r=nn(t,r),i(e,t),on(t,r))}var xn,Nn,Pn=In(function(t,e,r,n,i){return 2===t.j&&(jr(t,Ke(e,n,r),i),!0)},jn),On=In(function(t,e,r,n,i){return 2===t.j&&(jr(t,Ke(e,n,r),i),!0)},jn),Bn=Symbol(),Ln=Symbol(),Un=Symbol(),kn=Symbol(),Fn=Symbol();function Vn(t,e,r,n){var i=n[t];if(i)return i;(i={}).X=n,i.L=function(t){switch(typeof t){case"boolean":return ce||=[0,void 0,!0];case"number":return t>0?void 0:0===t?he||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}(n[0]);var o=n[1],s=1;o&&o.constructor===Object&&(i.N=o,"function"==typeof(o=n[++s])&&o.length>0&&(i.V=!0,xn??=o,Nn??=n[s+1],o=n[s+=2]));for(var a={};o&&Array.isArray(o)&&o.length&&"number"==typeof o[0]&&o[0]>0;){for(var u=0;u<o.length;u++)a[o[u]]=o;o=n[++s]}for(u=1;void 0!==o;){let t;"number"==typeof o&&(u+=o,o=n[++s]);var l=void 0;if(o instanceof An?t=o:(t=Pn,s--),t?.l){o=n[++s],l=n;var c=s;"function"==typeof o&&(o=o(),l[c]=o),l=o}for(c=u+1,"number"==typeof(o=n[++s])&&o<0&&(c-=o,o=n[++s]);u<c;u++){let n=a[u];l?r(i,u,t,l,n):e(i,u,t,n)}}return n[t]=i}function Cn(t){return Array.isArray(t)?t[0]instanceof An?t:[On,t]:[t,void 0]}function Mn(t,e){return t instanceof Tn?t.m:Array.isArray(t)?ge(t,e):void 0}function Rn(t,e,r,n){var i=r.h;t[e]=n?(t,e,r)=>i(t,e,r,n):i}function Gn(t,e,r,n,i){var o,s,a=r.h;t[e]=(t,e,r)=>a(t,e,r,s||=Vn(Ln,Rn,Gn,n).L,o||=Dn(n),i)}function Dn(t){var e=t[Un];if(null!=e)return e;var r=Vn(Ln,Rn,Gn,t);return e=r.V?(t,e)=>xn(t,e,r):(t,e)=>{t:{Ir();try{for(;Tr(e)&&4!=e.j;){let u=e.l,l=r[u];if(null==l){let t=r.N;if(t){let e=t[u];if(e){let t=$n(e);null!=t&&(l=r[u]=t)}}}if(null==l||!l(e,t,u)){var n=e;let r=n.o;if(Ar(n),n.U)var i=void 0;else{let t=n.h.h-r;n.h.h=r,i=yr(n.h,t)}n=void 0;var o=t,s=u,a=i;a&&((n=o[z]??(o[z]=new fe))[s]??(n[s]=[])).push(a)}}let l=ae(t);l&&(l.h=r.X[Fn]);var u=!0;break t}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}finally{Sr>0&&Sr--}u=void 0}return u},t[Un]=e,t[Fn]=zn.bind(t),e}function zn(t,e,r,n){var i=this[Ln],o=this[Un],s=ge(void 0,i.L),a=ae(t);if(a){var u=!1,l=i.N;if(l){if(i=(e,r,i)=>{if(0!==i.length)if(l[r])for(let t of i){e=_r(t);try{u=!0,o(s,e)}finally{Er(e)}}else n?.(t,r,i)},null==e)ue(a,i);else if(null!=a){let t=a[e];t&&i(a,e,t)}if(u){let n=0|t[J];if(2&n&&2048&n&&!r?.ma)throw Error();let i=at(n),o=(e,o)=>{if(null!=Pe(t,e,i)){if(1===r?.la)return;throw Error()}null!=o&&(n=Be(t,n,e,o,i)),delete a[e]};null==e?ot(s,0|s[J],(t,e)=>{o(t,e)}):o(e,Pe(s,e,i))}}}}function $n(t){var e=(t=Cn(t))[0].h;if(t=t[1]){let r=Dn(t),n=Vn(Ln,Rn,Gn,t).L;return(t,i,o)=>e(t,i,o,n,r)}return e}function Hn(t,e,r){t[e]=r.j}function Wn(t,e,r,n){var i,o,s=r.j;t[e]=(t,e,r)=>s(t,e,r,o||=Vn(Bn,Hn,Wn,n).L,i||=Kn(n))}function Kn(t){var e=t[kn];if(!e){let r=Vn(Bn,Hn,Wn,t);e=(t,e)=>qn(t,e,r),t[kn]=e}return e}function qn(t,e,r){ot(t,0|t[J],(t,n)=>{if(null!=n){var i=function(t,e){var r=t[e];if(r)return r;if((r=t.N)&&(r=r[e])){var n=(r=Cn(r))[0].j;if(r=r[1]){let e=Kn(r),i=Vn(Bn,Hn,Wn,r).L;r=t.V?Nn(i,e):(t,r,o)=>n(t,r,o,i,e)}else r=n;return t[e]=r}}(r,t);i?i(e,n,t):t<500||B(H,3)}}),(t=ae(t))&&ue(t,(t,r,n)=>{for(en(e,e.h.end()),t=0;t<n.length;t++)en(e,E(n[t])||new Uint8Array(0))})}var Yn=dt(0);function Jn(t,e,r){if(Array.isArray(e)){var n=0|e[J];if(4&n)return e;for(var i=0,o=0;i<e.length;i++){let r=t(e[i]);null!=r&&(e[o++]=r)}return o<i&&(e.length=o),t=1|n,r&&(t=-1537&t|4),t!==n&&Z(e,t),r&&2&t&&Object.freeze(e),e}}var Xn=(t,e)=>{var r=new un;qn(t.m,r,Vn(Bn,Hn,Wn,e)),en(r,r.h.end()),t=new Uint8Array(r.j);var n=(e=r.l).length,i=0;for(let r=0;r<n;r++){let n=e[r];t.set(n,i),i+=n.length}return r.l=[t],t};function Qn(t,e,r){return new An(t,e,r)}function Zn(t,e,r){return new An(t,e,r)}function ti(t,e,r){Be(t,0|t[J],e,r,at(0|t[J]))}function ei(t,e,r){null!=(e=Zt(e))&&(ln(e),sn(t,r,e))}function ri(t,e,r){null!=(e=Ht(e))&&null!=e&&(rn(t,r,0),Xr(t.h,e))}function ni(t,e,r){null!=(e=null==e||"boolean"==typeof e?e:"number"==typeof e?!!e:void 0)&&(rn(t,r,0),t.h.h.push(e?1:0))}function ii(t,e,r){null!=(e=ie(e))&&an(t,r,u(e))}function oi(t,e,r,n,i){null!=(e=Mn(e,n))&&(r=nn(t,r),i(e,t),on(t,r))}function si(t,e,r){null!=(e=ee(e))&&an(t,r,ur(e,!0).buffer)}function ai(t,e,r){e=function(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?t>>>0:void 0}(e),null!=e&&null!=e&&(rn(t,r,0),Jr(t.h,e))}function ui(t,e,r){null!=(e=Ht(e))&&(e=parseInt(e,10),rn(t,r,0),Xr(t.h,e))}function li(t,e,r){return 0===t.j&&(ti(e,r,fr(t.h)),!0)}function ci(t,e,r){return(0===t.j||2===t.j)&&(e=De(e,0|e[J],r),2==t.j?Pr(t,hr,e):e.push(hr(t.h)),!0)}function hi(t,e,r){return 2===t.j&&(ti(e,r,(t=Nr(t))===_()?void 0:t),!0)}var fi=Qn(function(t,e,r){if(1!==t.j)return!1;var n=t.h;t=dr(n);var i=dr(n);n=2*(i>>31)+1;var o=i>>>20&2047;return t=4294967296*(1048575&i)+t,ti(e,r,2047==o?t?NaN:n*(1/0):0==o?5e-324*n*t:n*Math.pow(2,o-1075)*(t+4503599627370496)),!0},function(t,e,r){null!=(e=Gt(e))&&(rn(t,r,1),t=t.h,(r=wt||=new DataView(new ArrayBuffer(8))).setFloat64(0,+e,!0),_t=r.getUint32(0,!0),Et=r.getUint32(4,!0),Zr(t,_t),Zr(t,Et))},wn),di=Qn(function(t,e,r){return 5===t.j&&(ti(e,r,pr(t.h)),!0)},function(t,e,r){null!=(e=Gt(e))&&(rn(t,r,5),t=t.h,It(e),Zr(t,_t))},bn),pi=Zn(function(t,e,r){return(5===t.j||2===t.j)&&(e=De(e,0|e[J],r),2==t.j?Pr(t,pr,e):e.push(pr(t.h)),!0)},function(t,e,r){if(null!=(e=Jn(Gt,e,!0))&&e.length){rn(t,r,2),Jr(t.h,4*e.length);for(let n=0;n<e.length;n++)r=t.h,It(e[n]),Zr(r,_t)}},bn),vi=Qn(function(t,e,r){return li(t,e,r)},ei,mn),mi=Qn(function(t,e,r){return li(t,e,r)},ei,mn),gi=Zn(function(t,e,r){return 0!==t.j&&2!==t.j?t=!1:(e=De(e,0|e[J],r),2==t.j?Pr(t,fr,e):e.push(fr(t.h)),t=!0),t},function(t,e,r){if(null!=(e=Jn(Zt,e,!1)))for(let n=0;n<e.length;n++)sn(t,r,e[n])},mn),yi=Qn(function(t,e,r){return 0!==t.j?e=!1:(ti(e,r,(t=fr(t.h))===Yn?void 0:t),e=!0),e},ei,mn),bi=Qn(function(t,e,r){return 0!==t.j?t=!1:(ti(e,r,lr(t.h,xt)),t=!0),t},function(t,e,r){if(null!=(e=te(e))){if("string"==typeof e)Ur(e);if(null!=e)switch(rn(t,r,0),typeof e){case"number":t=t.h,At(e),Yr(t,_t,Et);break;case"bigint":r=qr(e,Fr,Lr),Yr(t.h,r.j,r.h);break;default:r=Ur(e),Yr(t.h,r.j,r.h)}}},gn),wi=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,hr(t.h)),!0)},ri,pn),Si=Zn(ci,function(t,e,r){if(null!=(e=Jn(Ht,e,!0)))for(let s=0;s<e.length;s++){var n=t,i=r,o=e[s];null!=o&&(rn(n,i,0),Xr(n.h,o))}},pn),_i=Zn(ci,function(t,e,r){if(null!=(e=Jn(Ht,e,!0))&&e.length){r=nn(t,r);for(let r=0;r<e.length;r++)Xr(t.h,e[r]);on(t,r)}},pn),Ei=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,0===(t=hr(t.h))?void 0:t),!0)},ri,pn),Ti=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,cr(t.h)),!0)},ni,fn),Ai=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,!1===(t=cr(t.h))?void 0:t),!0)},ni,fn),Ii=Zn(function(t,e,r){return 2===t.j&&(t=xr(t),De(e,0|e[J],r).push(t),!0)},function(t,e,r){if(null!=(e=Jn(ie,e,!0)))for(let s=0;s<e.length;s++){var n=t,i=r,o=e[s];null!=o&&an(n,i,u(o))}},dn),ji=Qn(function(t,e,r){return 2===t.j&&(ti(e,r,""===(t=xr(t))?void 0:t),!0)},ii,dn),xi=Qn(function(t,e,r){return 2===t.j&&(ti(e,r,xr(t)),!0)},ii,dn),Ni=function(t,e,r=hn){return new An(t,e,r)}(function(t,e,r,n,i){return 2===t.j&&(n=ge(void 0,n),De(e,0|e[J],r).push(n),jr(t,n,i),!0)},function(t,e,r,n,i){if(Array.isArray(e)){for(let o=0;o<e.length;o++)oi(t,e[o],r,n,i);1&(t=0|e[J])||Z(e,1|t)}}),Pi=In(function(t,e,r,n,i,o){if(2!==t.j)return!1;var s=0|e[J];return He(e,s,o,r,at(s)),jr(t,e=Ke(e,n,r),i),!0},oi),Oi=Qn(function(t,e,r){return 2===t.j&&(ti(e,r,Nr(t)),!0)},si,Sn),Bi=Zn(function(t,e,r){return 2===t.j&&(t=Nr(t),De(e,0|e[J],r).push(t),!0)},function(t,e,r){if(null!=(e=Jn(ee,e,!1)))for(let s=0;s<e.length;s++){var n=t,i=r,o=e[s];null!=o&&an(n,i,ur(o,!0).buffer)}},Sn),Li=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,hr(t.h)>>>0),!0)},ai,vn),Ui=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,0===(t=hr(t.h)>>>0)?void 0:t),!0)},ai,vn),ki=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,hr(t.h)),!0)},ui,_n),Fi=Qn(function(t,e,r){return 0===t.j&&(ti(e,r,0===(t=hr(t.h))?void 0:t),!0)},ui,_n),Vi=Qn(function(t,e,r){return 0!==t.j?t=!1:(ti(e,r,function(t){return lr(t,(t,e)=>{var r=-(1&t);return Nt(t=(t>>>1|e<<31)^r,e>>>1^r)})}(t.h)),t=!0),t},function(t,e,r){if(null!=(e=Zt(e))&&(ln(e),null!=e))switch(rn(t,r,0),typeof e){case"number":t=t.h,e=(r=e)<0,Tt(r=2*Math.abs(r)),r=_t;let n=Et;e&&(0==r?0==n?n=r=4294967295:(n--,r=4294967295):r--),Yr(t,_t=r,Et=n);break;case"bigint":t=t.h,e=e<<BigInt(1)^e>>BigInt(63),_t=Number(BigInt.asUintN(32,e)),Et=Number(BigInt.asUintN(32,e>>BigInt(32))),Yr(t,_t,Et);break;default:Qr(t.h,e)}},yn);class Ci{constructor(t,e){var r=so;this.h=t,this.j=e,this.o=Qe,this.defaultValue=void 0,this.l=null!=r.ja?st:void 0}register(){c(this)}}function Mi(t,e){return(r,n)=>{t:{let o={R:!0};n&&Object.assign(o,n),r=_r(r,void 0,void 0,o);try{let n=new t,o=n.m;Dn(e)(o,r);var i=n;break t}catch(t){if(t instanceof RangeError)throw new SyntaxError;throw t}finally{Er(r)}i=void 0}return i}}function Ri(t){return function(){return Xn(this,t)}}var Gi,Di=[0,Oi,Bi,Ti,xi],zi=[0,ji,[0,Fi,[0,yi,Ei],Fi,-1,[0,ki],Fi,-1],Qn(hi,si,Sn)],$i=[0,ji,Qn(hi,function(t,e,r){if(null!=e){if(e instanceof Tn){let n=e.oa;return void(n?(e=n(e),null!=e&&an(t,r,ur(e,!0).buffer)):B(H,3))}if(Array.isArray(e))return void B(H,3)}si(t,e,r)},Sn)],Hi=[0,1,[0,12,wi,10,Ti],[0,7,[0,wi,-1]]],Wi=globalThis.trustedTypes;var Ki=class{constructor(t){this.h=t}toString(){return this.h+""}};function qi(t){var e;return void 0===Gi&&(Gi=function(){var t=null;if(!Wi)return t;try{let e=t=>t;t=Wi.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(t){}return t}()),t=(e=Gi)?e.createScriptURL(t):t,new Ki(t)}function Yi(t,...e){if(0===e.length)return qi(t[0]);var r=t[0];for(let n=0;n<e.length;n++)r+=encodeURIComponent(e[n])+t[n+1];return qi(r)}var Ji=[0,wi,ki,Ti,-1,_i,ki,-1,Ti,-1],Xi=[0,ki,-1,Ti],Qi=class extends Tn{constructor(t){super(t)}},Zi=[0,Ti,xi,Ti,ki,-1,Zn(function(t,e,r){return(0===t.j||2===t.j)&&(e=De(e,0|e[J],r),2==t.j?Pr(t,vr,e):e.push(hr(t.h)),!0)},function(t,e,r){if(null!=(e=Jn(Ht,e,!0))&&e.length){r=nn(t,r);for(let r=0;r<e.length;r++)Xr(t.h,e[r]);on(t,r)}},_n),xi,-1,[0,Ti,-1],ki,Ti,-1,Xi],to=class extends Tn{constructor(t){super(t)}j(){return Le(this,9)}},eo=[0,3,Ti,-1,2,[0,[2],wi,Pi,[0,Li]],[0,ki,Ti,ki,Ti,ki,4,[0,Ti,xi,-1,Ti,wi,-1,Ti],ki,Ti,-4,ki,Ii,Ti,Ii,Ti,-1,wi,Ti,-3,[0,Ti,wi],[0,xi,wi,-1],[0,Ti],[0,Ti,-1],[0,Ti,wi,-1]],[0,[3,4],xi,-1,Pi,[0,wi],Pi,[0,ki,-2]],[0],xi,Ti],ro=[0,xi,-2],no=class extends Tn{constructor(t){super(t)}},io=[0],oo=[0,wi,Ti,1,Ti,-4],so=class extends Tn{constructor(t){super(t,2)}},ao={};ao[336783863]=[0,xi,Ti,-1,wi,[0,[1,2,3,4,5,6,7,8,9],Pi,io,Pi,Zi,Pi,ro,Pi,oo,Pi,Ji,Pi,[0,xi,-2],Pi,[0,xi,ki],Pi,eo,Pi,Xi],[0,xi],Ti,[0,[1,3],[2,4],Pi,[0,_i],-1,Pi,[0,Ii],-1,Ni,[0,xi,-1]],xi];var uo=[0,yi,-1,Ai,-3,yi,_i,ji,Ei,yi,-1,Ai,Ei,Ai,-2,ji];function lo(t){sr(t,3,"TEXT:text_in")}var co=class extends Tn{constructor(t){super(t,500)}v(t){return Qe(this,0,7,t)}},ho=[-1,{}],fo=[0,xi,1,ho],po=[0,xi,Ii,ho];function vo(t){sr(t,10,"text_in")}var mo=class extends Tn{constructor(t){super(t,500)}v(t){return Qe(this,0,1001,t)}};mo.prototype.j=Ri([-500,Ni,[-500,ji,-1,Ii,-3,[-2,ao,Ti],Ni,$i,Ei,-1,fo,po,Ni,[0,ji,Ai],ji,uo,Ei,Ii,987,Ii],4,Ni,[-500,xi,-1,[-1,{}],998,xi],Ni,[-500,xi,Ii,-1,[-2,{},Ti],997,Ii,-1],Ei,Ni,[-500,xi,Ii,ho,998,Ii],Ii,Ei,fo,po,Ni,[0,ji,-1,ho],Ii,-2,uo,ji,-1,Ai,[0,Ai,Ui],978,ho,Ni,$i]);var go=class extends Tn{constructor(t){super(t)}},yo=class extends Tn{constructor(t){super(t)}j(){return Je(this,go)}},bo=class extends Tn{constructor(t){super(t)}},wo=Mi(class extends Tn{constructor(t){super(t)}},[0,Ni,[0,1,wi,xi,[0,Ni,[0,wi,di,xi,-1]]],mi]),So=class extends Tn{constructor(t){super(t)}},_o=class extends Tn{constructor(t){super(t)}j(){var t=Ne(this,1,void 0,Me);return null==t?_():t}},Eo=class extends Tn{constructor(t){super(t)}},To=[1,2],Ao=Mi(class extends Tn{constructor(t){super(t)}},[0,Ni,[0,To,Pi,[0,pi],Pi,[0,Oi],wi,xi],mi]),Io=class extends Tn{constructor(t){super(t)}},jo=class extends Tn{constructor(t){super(t)}},xo=[0,Ti,-1],No=class extends Tn{constructor(t){super(t)}j(){return Ue(this,2,Po)}l(){return rr(this,to,6,Po)}},Po=[1,2,3,4,5,6],Oo=class extends Tn{constructor(t){super(t)}j(){return null!=Ne(this,1,void 0,Me)}l(){return null!=ie(Ne(this,2))}},Bo=class extends Tn{constructor(t){super(t)}},Lo=[0,Oi,xi,[0,wi,mi,-1],[0,bi,mi]],Uo=[0,Lo,Ti,[0,Po,Pi,oo,Pi,Zi,Pi,Ji,Pi,io,Pi,ro,Pi,eo],ki],ko=class extends Tn{constructor(t){super(t)}},Fo=new Ci(462704549,ko);ao[462704549]=[0,Uo,[0,xi,wi,di,Ii,-1]];var Vo=class extends Tn{constructor(t){super(t)}},Co=new Ci(477589892,Vo);function Mo(t,e){if(e=e?Se(e):new Io,void 0!==t.displayNamesLocale?Oe(e,1,ne(t.displayNamesLocale)):void 0===t.displayNamesLocale&&Oe(e,1),void 0!==t.maxResults){var r=t.maxResults;if(null!=r){if("number"!=typeof r)throw O("int32");if(!Mt(r))throw O("int32");r|=0}Oe(e,2,r)}else"maxResults"in t&&Oe(e,2);if(void 0!==t.scoreThreshold){if(null!=(r=t.scoreThreshold)&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);Oe(e,3,r)}else"scoreThreshold"in t&&Oe(e,3);return void 0!==t.categoryAllowlist?Re(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&Oe(e,4),void 0!==t.categoryDenylist?Re(e,5,t.categoryDenylist):"categoryDenylist"in t&&Oe(e,5),e}function Ro(t){var e=Number(t);return Number.isSafeInteger(e)?e:String(t)}function Go(t){var e={classifications:Je(t,bo).map(t=>function(t,e=-1,r=""){return{categories:t.map(t=>({index:Ht(Ne(t,1))??0??-1,score:Ne(t,2,void 0,Gt)??0??0,categoryName:ie(Ne(t,3))??""??"",displayName:ie(Ne(t,4))??""??""})),headIndex:e,headName:r}}(qe(t,yo,4)?.j()??[],Ht(Ne(t,2))??0,ie(Ne(t,3))??""))};return null!=function(t){return null==t?t:"bigint"==typeof t?(pt(t)?t=Number(t):(t=Ft(64,t),t=pt(t)?Number(t):String(t)),t):$t(t)?"number"==typeof t?qt(t):Jt(t):void 0}(Ne(t,2,void 0,Qt))&&(e.timestampMs=Ro(Ne(t,2,void 0,Qt)??xe)),e}function Do(t){return Array.from(t,t=>t>127?t-256:t)}function zo(t,e){if(t.length!==e.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);var r=0,n=0,i=0;for(let o=0;o<t.length;o++)r+=t[o]*e[o],n+=t[o]*t[o],i+=e[o]*e[o];if(n<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*i)}function $o(t,e,r){return r=`wasm${r?"_module":""}_internal`,Promise.resolve({wasmLoaderPath:`${e}/${t}_${r}.js`,wasmBinaryPath:`${e}/${t}_${r}.wasm`})}ao[477589892]=[0,Uo,xo,1,Lo];var Ho=class{};function Wo(t){return or(new Ko,1,t)}Ho.forVisionTasks=function(t,e=!1){return $o("vision",t??Yi``,e)},Ho.forLiteRtLmTextTasks=function(t,e=!1){return $o("litertlm_text",t??Yi``,e)},Ho.forTextTasks=function(t,e=!1){return $o("text",t??Yi``,e)},Ho.forRetrievalTasks=function(t,e=!1){return $o("retrieval",t??Yi``,e)},Ho.forGenAiTasks=function(t,e=!1){return $o("genai",t??Yi``,e)},Ho.forDecisionTasks=function(t,e=!1){return $o("decision",t??Yi``,e)},Ho.forAudioTasks=function(t,e=!1){return $o("audio",t??Yi``,e)};var Ko=class extends Tn{constructor(t){super(t)}},qo=class extends Tn{constructor(t){super(t)}},Yo=[0,ki,2,bi,-2,mi,Ni,[0,ki,mi]],Jo=class extends Tn{constructor(t){super(t)}},Xo=class extends Tn{constructor(t){super(t)}};function Qo(t,e){return or(t,1,e)}function Zo(t,e){return or(t,2,e)}var ts=class extends Tn{constructor(t){super(t)}},es=[3,4,5,6,7],rs=class extends Tn{constructor(t){super(t)}},ns=class extends Tn{constructor(t){super(t)}};ns.prototype.j=Ri([0,[0,ki,xi,-3,ki],[0,es,ki,-1,Pi,[0,ki,xi,bi],Pi,Yo,Pi,[0,1,Yo],Pi,[0,ki],Pi,[0,ki,xi,bi]]]);var is=class{constructor(){this.h="undefined"!=typeof AbortController}async send(t,e,r){var n=this.h?new AbortController:void 0,i=n&&t.P>0?setTimeout(()=>{n.abort()},t.P):void 0;try{let i=await fetch(t.url,{method:t.ga,headers:{...t.fa},...t.body&&{body:t.body},...t.withCredentials&&{credentials:"include"},signal:t.P&&n?n.signal:null});200===i.status?e?.(await i.text()):r?.(i.status)}catch(t){if("AbortError"===t?.name)r?.(408);else r?.(400,!0)}finally{clearTimeout(i)}}},os=class extends Tn{constructor(t){super(t,37)}},ss=[-4,{},Hi,ki,zi],as=[0,xi,ki,1,xi,-1,ki,1,ki,1,mi],us=[0,ki,xi,-2],ls=[0,xi,ki],cs=[0,xi,ki],hs=[0,Ti,-3],fs=[0,ki,xi,-1,mi,wi,-1,xi,-5,Ni,[0,xi,-4],-1,Ti,[0,Ti,-3],ki];var ds,ps=class extends Tn{constructor(t){super(t,19)}},vs=(ds=[-19,{},[0,ki,1,[0,xi,-6,mi,wi,xi,-1,mi],1,[0,xi,1,xi,-5],xi,-1,[0,ki,xi,-8],[0,xi,-3],[0,xi,ki,xi,-2],[0,xi,-1,ki,xi,-1,ki,xi,-1,[0,Ni,[0,xi,-1],Ti,xi,-5],[0,ki,Ti,wi,-2]],mi,[0,xi,-3,mi,wi,xi,-1],[0,ki,xi,-1],[0,xi,-9],[0,xi,-6,ki,xi,1,xi,Ti,ki,-1,Ti,xi,-2,ki,xi,ki,xi,wi,-1],1,[0,ki],1,[0,xi,-4],1,as,[0,[1,2,3,4,5,6],Pi,as,Pi,ls,Pi,cs,Pi,[0,ki],Pi,fs,Pi,us],ls,cs,fs,[0,[0,ki,xi,-1,mi,wi,-1,xi,-4,Ni,[0,xi,-4],-1,1,hs],[0,ki,xi,-1,mi,wi,-1,xi,-4,hs]],us,[0,xi,[0,wi,-3,ki],ki,-2,[0,wi,-1],Ti],4,[0,xi,ki,xi,-1,mi,ki,xi,-1,ki,wi,-1]],ki,Ni,[-37,{},vi,xi,Ni,[0,xi,-1],Oi,1,Oi,[0,Ii,-1,Si,gi,-1],xi,[0,wi,xi,-1],Ti,wi,mi,xi,-1,Vi,Di,vi,Oi,ki,Si,mi,-1,[0,ki,-1],xi,Ti,xi,_i,xi,-1,fi,1,fi,ss,Ti,[0,ki,[0,di,wi,-2],[0,di]],[0,ki,mi]],vi,Bi,xi,-1,vi,ki,-1,[0,Ti,-1,ki,Ti],[0,mi,-1,xi],[0,vi,Ti,mi],mi,1,Li,1,ss],t=>Xn(t,ds)),ms=class{constructor(t){this.j=[],this.o=new is,this.l=t??"",this.h=setInterval(()=>{this.flush()},6e4)}close(){void 0!==this.h&&(clearInterval(this.h),this.h=void 0),this.flush()}flush(t,e){if(this.error)e?.("net-send-failed");else if(0===this.j.length)t?.();else{var r=this.j;this.j=[],r=function(t){var e=new ps;Ae(e=or(e,2,1786));var r=e.m,n=0|r[J];if(null==t)Be(r,n,3);else{var i=t===R?7:0|t[J],o=i,s=Ce(i),a=s||Object.isFrozen(t),u=!0,l=!0;for(let e=0;e<t.length;e++){var c=t[e];s||(c=rt(c),u&&=!c,l&&=c)}s||(i=u?13:5,i=l?-4097&i:4096|i),a&&i===o||(t=kt(t),o=0,i=tr(i,n)),i!==o&&Z(t,i),n=Be(r,n,3,t),2&i||!(4096&i||16&i)||Ie(r,n)}return e}(r),r=vs(r),this.o.send({url:"https://odml.pa.googleapis.com/v1/log",ga:"POST",P:1e4,body:r,ha:2,fa:{"Content-Type":"application/x-protobuf","x-goog-api-key":this.l},withCredentials:!1},()=>{t?.()},t=>{this.error=Error(`Logging failed with HTTP error: ${t}`),this.j=[],void 0!==this.h&&(clearInterval(this.h),this.h=void 0),e?.("net-send-failed",t)})}}};class gs{constructor(){this.K=this.F=this.J=this.D=this.H=this.I=this.G=0}}function ys(t,e){var r=new ns;r=Qe(r,0,1,t.W),r=Qe(r,0,2,e),e=Oe(e=new os,6,it(r=r.j(),!1)),(t=t.C).error||t.j.push(e)}function bs(t,e){++t.h.G,t.j.set(e,performance.now())}function ws(t,e){var r={G:e.G-t.l.G,I:e.I-t.l.I,H:e.H-t.l.H,D:e.D-t.l.D,J:e.J-t.l.J,F:e.F,K:e.K},n=Zo(Qo(new ts,t.B),1);r=_s(t,r),ys(t,n=Ze(n,4,es,r)),t.l=e}function Ss(t,e){var r=t.j.get(e);if(void 0!==r&&(t.j.delete(e),e=performance.now()-r,++t.h.H,t.h.J+=e,t.h.F=Math.max(t.h.F,e),t.A=Math.max(t.A,e),performance.now()>t.o+3e4)){for(let[n,i]of t.j.entries())e=n,i<r&&(t.h.D++,t.j.delete(e));r={...t.h,K:performance.now()-t.o},t.h.F=0,t.o=performance.now(),ws(t,r)}}function _s(t,e){var r=new qo;return t=ir(t=nr(t=or(r,1,t.u),7,e.D),5,e.F),t=ir(t,6,e.K),e.H>0&&ir(t,4,e.J/e.H),0!==e.G&&(r=nr(r=Wo(3),2,e.G),er(t,8,Ko,r)),0!==e.I&&(e=nr(r=Wo(4),2,e.I),er(t,8,Ko,e)),t}var Es=class{constructor(t,e,r){this.T=performance.now(),this.o=performance.now(),this.j=new Map,this.A=0,this.h=new gs,this.l=new gs,this.C=new ms(r),this.B=function(t){switch(t){case"AudioClassifier":return 4;case"AudioEmbedder":return 5;case"TextClassifier":return 6;case"TextEmbedder":return 7;case"GestureRecognizer":return 8;case"HandDetector":return 9;case"HandLandmarker":return 10;case"ImageClassifier":return 11;case"ImageEmbedder":return 12;case"ImageSegmenter":return 13;case"ObjectDetector":return 14;case"FaceDetector":return 15;case"FaceLandmarker":return 16;case"InteractiveSegmenter":case"InteractiveSegmenterLegacy":return 18;case"HolisticLandmarker":return 20;case"LlmInference":return 21;case"LanguageDetector":return 22;case"PoseLandmarker":return 23;case"UniversalEmbedder":return 28;case"SemanticRetriever":return 29;case"DecisionMaker":return 30;case"TextSummarizer":return 26;case"TextProofreader":return 27;case"AudioTranscriber":return 31;case"TextToSpeech":return 32;default:return 0}}(t),this.u=function(t){switch(t){case"IMAGE":return 11;case"VIDEO":return 12;case"LIVE_STREAM":return 13;case"AUDIO_CLIPS":return 14;case"AUDIO_STREAM":return 15;default:return 10}}(e),t=new rs,"undefined"==typeof navigator?e=0:(e=navigator.userAgent,e=/Android/i.test(e)?1:/iPhone|iPad|iPod/i.test(e)?2:/Windows/i.test(e)?5:/Macintosh/i.test(e)?4:/Linux/i.test(e)?3:0),t=Oe(t=or(t,1,e),2,ne("")),t=Oe(t,3,ne("")),t=Oe(t,4,ne("1.2.2")),t=Oe(t,5,ne("")),this.W=or(t,6,function(){var t=globalThis.__HOST_ENVIRONMENT__;if("string"==typeof t)switch(t){case"ANDROID":return 1;case"IOS":return 2;case"PYTHON":return 3;case"WEB":break;case"FLUTTER":return 5;case"FLUTTER_WEB":return 6;default:return 0}return 4}())}O(){var t=new Xo;t=ir(t=or(t,1,this.u),3,performance.now()-this.T),ys(this,t=Ze(Zo(Qo(new ts,this.B),0),3,es,t)),this.o=performance.now()}da(){var t={...this.h,D:this.h.D+this.j.size,F:this.A,K:performance.now()-this.T};ws(this,t);var e=new Jo;e=Qe(e,0,2,t=_s(this,t)),ys(this,e=Ze(t=Zo(Qo(new ts,this.B),2),5,es,e))}close(){var t=this.C;"function"==typeof t.close?t.close():t.flush()}};function Ts(){var t=navigator;return"undefined"!=typeof OffscreenCanvas&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}async function As(t){if("function"!=typeof importScripts){let e=document.createElement("script");return e.src=t.toString(),e.crossOrigin="anonymous",new Promise((t,r)=>{e.addEventListener("load",()=>{t()},!1),e.addEventListener("error",t=>{r(t)},!1),document.body.appendChild(e)})}try{importScripts(t.toString())}catch(e){if(!(e instanceof TypeError))throw e;{let e=self.import;e?await e(t.toString()):await import(t.toString())}}}function Is(t,e,r){t.o||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),r(e=t.i.stringToNewUTF8(e)),t.i._free(e)}function js(t,e,r){t.o||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");var n=new Uint32Array(e.length);for(let r=0;r<e.length;r++)n[r]=t.i.stringToNewUTF8(e[r]);e=t.i._malloc(4*n.length),t.i.HEAPU32.set(n,e>>2),r(e);for(let e of n)t.i._free(e);t.i._free(e)}function xs(t,e,r){t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=r}function Ns(t,e,r){var n=[];t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=(t,e,i)=>{e?(r(n,i),n=[]):n.push(t)}}var Ps=function(t){return class extends t{get S(){return this.i}ba(){if("function"==typeof this.S._mediapipeLoggerGetEncodedApiKey){let t=this.S._mediapipeLoggerGetEncodedApiKey();return this.S._decodeBase64(t)}}}}(function(t){return class extends t{ea(){this.i._registerModelResourcesGraphService()}}}(class{constructor(t,e){this.l=!0,this.i=t,this.h=null,this.j=0,this.o="function"==typeof this.i._addIntToInputStream,void 0!==e?this.i.canvas=e:Ts()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(t){var 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){var r=t.length,n=this.i._malloc(r);this.i.HEAPU8.set(t,n),e?this.i._changeBinaryGraph(r,n):this.i._changeTextGraph(r,n),this.i._free(n)}configureAudio(t,e,r,n,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),Is(this,n||"input_audio",n=>{Is(this,i=i||"audio_header",i=>{this.i._configureAudio(n,i,t,e??0,r)})})}setAutoResizeCanvas(t){this.l=t}setAutoRenderToScreen(t){this.i._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.i.gpuOriginForWebTexturesIsBottomLeft=t}attachErrorListener(t){this.i.errorListener=t}attachEmptyPacketListener(t,e){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[t]=e}addAudioToStream(t,e,r){this.addAudioToStreamWithShape(t,0,0,e,r)}addAudioToStreamWithShape(t,e,r,n,i){var o=4*t.length;this.j!==o&&(this.h&&this.i._free(this.h),this.h=this.i._malloc(o),this.j=o),this.i.HEAPF32.set(t,this.h/4),Is(this,n,t=>{this.i._addAudioToInputStream(this.h,e,r,t,i)})}addGpuBufferToStream(t,e,r){Is(this,e,e=>{if(!this.i.canvas)throw Error("No OpenGL canvas configured.");e?this.i._bindTextureToStream(e):this.i._bindTextureToCanvas();var n=this.i.canvas.getContext("webgl2")||this.i.canvas.getContext("webgl");if(!n)throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");this.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),this.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1);var[i,o]=void 0!==t.videoWidth?[t.videoWidth,t.videoHeight]:void 0!==t.naturalWidth?[t.naturalWidth,t.naturalHeight]:void 0!==t.displayWidth?[t.displayWidth,t.displayHeight]:[t.width,t.height];!this.l||i===this.i.canvas.width&&o===this.i.canvas.height||(this.i.canvas.width=i,this.i.canvas.height=o);var[s,a]=[i,o];this.i._addBoundTextureToStream(e,s,a,r)})}addBoolToStream(t,e,r){Is(this,e,e=>{this.i._addBoolToInputStream(t,e,r)})}addDoubleToStream(t,e,r){Is(this,e,e=>{this.i._addDoubleToInputStream(t,e,r)})}addFloatToStream(t,e,r){Is(this,e,e=>{this.i._addFloatToInputStream(t,e,r)})}addIntToStream(t,e,r){Is(this,e,e=>{this.i._addIntToInputStream(t,e,r)})}addUintToStream(t,e,r){Is(this,e,e=>{this.i._addUintToInputStream(t,e,r)})}addStringToStream(t,e,r){Is(this,e,e=>{Is(this,t,t=>{this.i._addStringToInputStream(t,e,r)})})}addStringRecordToStream(t,e,r){Is(this,e,e=>{js(this,Object.keys(t),n=>{js(this,Object.values(t),i=>{this.i._addFlatHashMapToInputStream(n,i,Object.keys(t).length,e,r)})})})}addProtoToStream(t,e,r,n){Is(this,r,r=>{Is(this,e,e=>{var i=this.i._malloc(t.length);this.i.HEAPU8.set(t,i),this.i._addProtoToInputStream(i,t.length,e,r,n),this.i._free(i)})})}addEmptyPacketToStream(t,e){Is(this,t,t=>{this.i._addEmptyPacketToInputStream(t,e)})}addBoolVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateBoolVector(t.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(let e of t)this.i._addBoolVectorEntry(n,e);this.i._addBoolVectorToInputStream(n,e,r)})}addDoubleVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateDoubleVector(t.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(let e of t)this.i._addDoubleVectorEntry(n,e);this.i._addDoubleVectorToInputStream(n,e,r)})}addFloatVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateFloatVector(t.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(let e of t)this.i._addFloatVectorEntry(n,e);this.i._addFloatVectorToInputStream(n,e,r)})}addIntVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateIntVector(t.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(let e of t)this.i._addIntVectorEntry(n,e);this.i._addIntVectorToInputStream(n,e,r)})}addUintVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateUintVector(t.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(let e of t)this.i._addUintVectorEntry(n,e);this.i._addUintVectorToInputStream(n,e,r)})}addStringVectorToStream(t,e,r){Is(this,e,e=>{var n=this.i._allocateStringVector(t.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(let e of t)Is(this,e,t=>{this.i._addStringVectorEntry(n,t)});this.i._addStringVectorToInputStream(n,e,r)})}addBoolToInputSidePacket(t,e){Is(this,e,e=>{this.i._addBoolToInputSidePacket(t,e)})}addDoubleToInputSidePacket(t,e){Is(this,e,e=>{this.i._addDoubleToInputSidePacket(t,e)})}addFloatToInputSidePacket(t,e){Is(this,e,e=>{this.i._addFloatToInputSidePacket(t,e)})}addIntToInputSidePacket(t,e){Is(this,e,e=>{this.i._addIntToInputSidePacket(t,e)})}addUintToInputSidePacket(t,e){Is(this,e,e=>{this.i._addUintToInputSidePacket(t,e)})}addStringToInputSidePacket(t,e){Is(this,e,e=>{Is(this,t,t=>{this.i._addStringToInputSidePacket(t,e)})})}addProtoToInputSidePacket(t,e,r){Is(this,r,r=>{Is(this,e,e=>{var n=this.i._malloc(t.length);this.i.HEAPU8.set(t,n),this.i._addProtoToInputSidePacket(n,t.length,e,r),this.i._free(n)})})}addBoolVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(let e of t)this.i._addBoolVectorEntry(r,e);this.i._addBoolVectorToInputSidePacket(r,e)})}addDoubleVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(let e of t)this.i._addDoubleVectorEntry(r,e);this.i._addDoubleVectorToInputSidePacket(r,e)})}addFloatVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(let e of t)this.i._addFloatVectorEntry(r,e);this.i._addFloatVectorToInputSidePacket(r,e)})}addIntVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(let e of t)this.i._addIntVectorEntry(r,e);this.i._addIntVectorToInputSidePacket(r,e)})}addUintVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateUintVector(t.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(let e of t)this.i._addUintVectorEntry(r,e);this.i._addUintVectorToInputSidePacket(r,e)})}addStringVectorToInputSidePacket(t,e){Is(this,e,e=>{var r=this.i._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(let e of t)Is(this,e,t=>{this.i._addStringVectorEntry(r,t)});this.i._addStringVectorToInputSidePacket(r,e)})}attachBoolListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachBoolListener(t)})}attachBoolVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachBoolVectorListener(t)})}attachIntListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachIntListener(t)})}attachIntVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachIntVectorListener(t)})}attachUintListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachUintListener(t)})}attachUintVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachUintVectorListener(t)})}attachDoubleListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachDoubleListener(t)})}attachDoubleVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachDoubleVectorListener(t)})}attachFloatListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachFloatListener(t)})}attachFloatVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachFloatVectorListener(t)})}attachStringListener(t,e){xs(this,t,e),Is(this,t,t=>{this.i._attachStringListener(t)})}attachStringVectorListener(t,e){Ns(this,t,e),Is(this,t,t=>{this.i._attachStringVectorListener(t)})}attachProtoListener(t,e,r){xs(this,t,e),Is(this,t,t=>{this.i._attachProtoListener(t,r||!1)})}attachProtoVectorListener(t,e,r){Ns(this,t,e),Is(this,t,t=>{this.i._attachProtoVectorListener(t,r||!1)})}attachAudioListener(t,e,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),xs(this,t,(t,r)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),e(t,r)}),Is(this,t,t=>{this.i._attachAudioListener(t,r||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}})),Os=class extends Ps{};async function Bs(t,e,r){return t=await(async(t,e,r,n)=>{if(e&&await As(e),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(r&&(await As(r),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&n&&((e=self.Module).locateFile=n.locateFile,n.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=n.mainScriptUrlOrBlob)),n=await self.ModuleFactory(self.Module||n),self.ModuleFactory=self.Module=void 0,new t(n,null)})(t,e.wasmLoaderPath,e.assetLoaderPath,{locateFile:t=>t.endsWith(".wasm")?e.wasmBinaryPath.toString():e.assetBinaryPath&&t.endsWith(".data")?e.assetBinaryPath.toString():t}),function(t,e){e=e.na??"";var r=t.h.ba();t.j=new Es(t.A(),e,r)}(t,r),await t.v(r),t}async function Ls(t,e,r){return Bs(t,e,r)}function Us(t,e,r){try{t.h.i.FS_unlink(`/${r}`)}catch{}t.h.i.FS_createDataFile("/",r,e,!0,!1,!1),ks(t,`/${r}`)}function ks(t,e){var r=qe(t.baseOptions,Oo,1)||new Oo;"string"==typeof e?(Oe(r,2,ne(e)),Oe(r,1)):e instanceof Uint8Array&&(Oe(r,1,it(e,!1)),Oe(r,2)),Qe(t.baseOptions,0,1,r)}function Fs(t,e,r=!0,n=!1){if(r){let r=e.baseOptions||{};if(e.baseOptions?.modelAssetBuffer&&e.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(qe(t.baseOptions,Oo,1)?.j()||qe(t.baseOptions,Oo,1)?.l()||e.baseOptions?.modelAssetBuffer||e.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");!function(t,e){var r=qe(t.baseOptions,No,3);if(!r){var n=r=new No,i=new no;Ze(n,4,Po,i)}"delegate"in e&&("GPU"===e.delegate?(e=r,n=new Qi,Ze(e,2,Po,n)):(e=r,n=new no,Ze(e,4,Po,n))),Qe(t.baseOptions,0,3,r)}(t,r);let i=n?"model.litertlm":"model.dat";if(r.modelAssetPath)return fetch(r.modelAssetPath.toString()).then(t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${r.modelAssetPath} (${t.status})`)}).then(e=>{Us(t,new Uint8Array(e),i),t.o()});if(r.modelAssetBuffer instanceof Uint8Array)n?Us(t,r.modelAssetBuffer,i):ks(t,r.modelAssetBuffer);else if(r.modelAssetBuffer)return async function(t){for(var e=[],r=0;;){let{done:n,value:i}=await t.read();if(n)break;e.push(i),r+=i.length}if(0===e.length)return new Uint8Array(0);if(1===e.length)return e[0];t=new Uint8Array(r),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(r.modelAssetBuffer).then(e=>{n?Us(t,e,i):ks(t,e),t.o()})}return t.o(),Promise.resolve()}function Vs(t){try{let e=t.C.length;if(1===e)throw Error(t.C[0].message);if(e>1)throw Error("Encountered multiple errors: "+t.C.map(t=>t.message).join(", "))}finally{t.C=[]}}function Cs(t,e){if(t.j&&void 0!==e){let r=qe(t.baseOptions,No,3);r?.j()||r?.l()?.j()?(++(t=t.j).h.I,t.j.set(e,performance.now())):bs(t.j,e)}}function Ms(t,e){t.B=Math.max(t.B,e)}var Rs=class{constructor(t){this.h=t,this.C=[],this.B=0,this.h.setAutoRenderToScreen(!1)}setGraph(t,e){this.h.attachErrorListener((t,e)=>{this.C.push(Error(e))}),this.h.ea(),this.h.setGraph(t,e),this.j?.O(),Vs(this)}finishProcessing(t){this.h.finishProcessing(),Vs(this),this.j&&void 0!==t&&Ss(this.j,t)}close(){this.j?.da(),this.j?.close(),this.h.closeGraph()}};Rs.prototype.close=Rs.prototype.close;var Gs=class extends Rs{constructor(t,e){super(new Os(t,e)),this.u={languages:[]},Qe(t=this.l=new ko,0,1,e=new Bo)}A(){return"LanguageDetector"}v(t){return Qe(this.l,0,2,Mo(t,qe(this.l,Io,2))),Fs(this,t)}get baseOptions(){return qe(this.l,Bo,1)}set baseOptions(t){Qe(this.l,0,1,t)}Z(t){this.u={languages:[]};var e=this.B+1;return Cs(this,e),this.h.addStringToStream(t,"text_in",e),this.finishProcessing(e),this.u}o(){var t=new mo;vo(t),sr(t,15,"classifications_out");var e=new so;En(e,Fo,this.l);var r=new co;Ge(r,ne("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),lo(r),sr(r,4,"CLASSIFICATIONS:classifications_out"),r.v(e),er(t,1,co,r),this.h.attachProtoListener("classifications_out",(t,e)=>{if(({classifications:t}=Go(wo(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})),Ms(this,e)}),this.h.attachEmptyPacketListener("classifications_out",t=>{Ms(this,t)}),t=t.j(),this.setGraph(new Uint8Array(t),!0)}};Gs.prototype.detect=Gs.prototype.Z,Gs.prototype.setOptions=Gs.prototype.v,Gs.createFromModelPath=function(t,e){return Ls(Gs,t,{baseOptions:{modelAssetPath:e}})},Gs.createFromModelBuffer=function(t,e){return Ls(Gs,t,{baseOptions:{modelAssetBuffer:e}})},Gs.createFromOptions=function(t,e){return Ls(Gs,t,e)};var Ds=class extends Rs{constructor(t,e){super(new Os(t,e)),this.u={classifications:[]},Qe(t=this.l=new ko,0,1,e=new Bo)}A(){return"TextClassifier"}v(t){return Qe(this.l,0,2,Mo(t,qe(this.l,Io,2))),Fs(this,t)}get baseOptions(){return qe(this.l,Bo,1)}set baseOptions(t){Qe(this.l,0,1,t)}Y(t){this.u={classifications:[]};var e=this.B+1;return Cs(this,e),this.h.addStringToStream(t,"text_in",e),this.finishProcessing(e),this.u}o(){var t=new mo;vo(t),sr(t,15,"classifications_out");var e=new so;En(e,Fo,this.l);var r=new co;Ge(r,ne("mediapipe.tasks.text.text_classifier.TextClassifierGraph")),lo(r),sr(r,4,"CLASSIFICATIONS:classifications_out"),r.v(e),er(t,1,co,r),this.h.attachProtoListener("classifications_out",(t,e)=>{this.u=Go(wo(t)),Ms(this,e)}),this.h.attachEmptyPacketListener("classifications_out",t=>{Ms(this,t)}),t=t.j(),this.setGraph(new Uint8Array(t),!0)}};function zs(t){switch(t){case"RETRIEVAL_QUERY":default:return"search result";case"SEMANTIC_SIMILARITY":return"sentence similarity";case"CLASSIFICATION":return"classification";case"CLUSTERING":return"clustering";case"QUESTION_ANSWERING":return"question answering";case"FACT_CHECKING":return"fact checking";case"CODE_RETRIEVAL":return"code retrieval"}}Ds.prototype.classify=Ds.prototype.Y,Ds.prototype.setOptions=Ds.prototype.v,Ds.createFromModelPath=function(t,e){return Ls(Ds,t,{baseOptions:{modelAssetPath:e}})},Ds.createFromModelBuffer=function(t,e){return Ls(Ds,t,{baseOptions:{modelAssetBuffer:e}})},Ds.createFromOptions=function(t,e){return Ls(Ds,t,e)};var $s=class extends Rs{constructor(t,e){super(new Os(t,e)),this.u={embeddings:[]},Qe(t=this.l=new Vo,0,1,e=new Bo)}A(){return"TextEmbedder"}v(t){var e=this.l,r=qe(this.l,jo,2);return r=r?Se(r):new jo,void 0!==t.l2Normalize?Oe(r,1,Dt(t.l2Normalize)):"l2Normalize"in t&&Oe(r,1),void 0!==t.quantize?Oe(r,2,Dt(t.quantize)):"quantize"in t&&Oe(r,2),Qe(e,0,2,r),Fs(this,t)}get baseOptions(){return qe(this.l,Bo,1)}set baseOptions(t){Qe(this.l,0,1,t)}aa(t,e){var r=this.B+1;if(Cs(this,r),e)t:{let r=e.type,n=e.title&&e.title.length>0?e.title:"none";switch(e="DOCUMENT"!==e.textRole,r){case"RETRIEVAL_DOCUMENT":t=`title: ${n} | text: ${t}`;break t;case"RETRIEVAL_QUERY":t=`task: ${zs(r)} | query: ${t}`;break t;case"QUESTION_ANSWERING":case"FACT_CHECKING":case"CODE_RETRIEVAL":t=e?`task: ${zs(r)} | query: ${t}`:`title: ${n} | text: ${t}`;break t;default:t=`task: ${zs(r)} | query: ${t}`}}return this.h.addStringToStream(t,"text_in",r),this.finishProcessing(r),this.u}o(){var t=new mo;vo(t),sr(t,15,"embeddings_out");var e=new so;En(e,Co,this.l);var r=new co;Ge(r,ne("mediapipe.tasks.text.text_embedder.TextEmbedderGraph")),lo(r),sr(r,4,"EMBEDDINGS:embeddings_out"),r.v(e),er(t,1,co,r),this.h.attachProtoListener("embeddings_out",(t,e)=>{t=Ao(t),this.u=function(t){return{embeddings:Je(t,Eo).map(t=>{var e={headIndex:Ht(Ne(t,3))??0??-1,headName:ie(Ne(t,4))??""??""};if(Ue(t,1,To))t=ke(t=rr(t,So,1,To),1,Gt),e.floatEmbedding=t.slice();else{let r=new Uint8Array(0);e.quantizedEmbedding=rr(t,_o,2,To)?.j()?.j()??r}return e}),timestampMs:Ro(Ne(t,2,void 0,Qt)??xe)}}(t),Ms(this,e)}),this.h.attachEmptyPacketListener("embeddings_out",t=>{Ms(this,t)}),t=t.j(),this.setGraph(new Uint8Array(t),!0)}};function Hs(t,e){return Ls(Ws,t,e)}$s.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=zo(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=zo(Do(t.quantizedEmbedding),Do(e.quantizedEmbedding))}return t},$s.prototype.embed=$s.prototype.aa,$s.prototype.setOptions=$s.prototype.v,$s.createFromModelPath=function(t,e){return Ls($s,t,{baseOptions:{modelAssetPath:e}})},$s.createFromModelBuffer=function(t,e){return Ls($s,t,{baseOptions:{modelAssetBuffer:e}})},$s.createFromOptions=function(t,e){return Ls($s,t,e)};var Ws=class extends Rs{constructor(t,e){super(new Os(t,e)),this.baseOptions=new Bo,this.u=this.l=this.maxNumTokens=0}A(){return"TextProofreader"}async v(t){if(0!==this.l)throw Error("LiteRT LM Tasks do not support updating options after initialization.");return void 0!==t.maxNumTokens&&(this.maxNumTokens=t.maxNumTokens),Fs(this,t,!(!t.baseOptions||!t.baseOptions.modelAssetPath&&!t.baseOptions.modelAssetBuffer),!0)}o(){this.l=this.h.i.createTextProofreader("/model.litertlm",this.maxNumTokens),this.j.O()}proofread(t){var e=this.h.i;if(0===this.l)throw Error("TextProofreader is already closed.");var r=this.u++;bs(this.j,r);try{return e.proofread(this.l,t)}finally{Ss(this.j,r)}}proofreadStreaming(t,e){var r=this.h.i;if(0===this.l)throw Error("TextProofreader is already closed.");if(r._userProofreaderListener)throw Error("Another proofread is already in progress.");var n=this.u++;bs(this.j,n);var i,o,s=new Promise((t,e)=>{i=t,o=e}),a=()=>{r._userProofreaderListener=void 0,Ss(this.j,n)},u="";r._userProofreaderListener=(t,r,n,s)=>{if(n)a(),o(Error(n));else{if(u+=t,e)try{e(t,r)}catch(t){return a(),void o(t)}r&&(a(),i({proofreadText:u,corrections:s??[]}))}};try{r.proofreadStreaming(this.l,t)}catch(t){a(),o(t)}return s}close(){var t=this.h.i;if(0!==this.l){try{t.deleteTextProofreader(this.l)}catch{}this.l=0}super.close()}};function Ks(t,e){return Ls(qs,t,e)}Ws.prototype.proofreadStreaming=Ws.prototype.proofreadStreaming,Ws.createFromModelBuffer=function(t,e,r=0){return Hs(t,{baseOptions:{modelAssetBuffer:e},maxNumTokens:r})},Ws.createFromModelPath=function(t,e,r=0){return Hs(t,{baseOptions:{modelAssetPath:e},maxNumTokens:r})},Ws.createFromOptions=Hs;var qs=class extends Rs{constructor(t,e){super(new Os(t,e)),this.baseOptions=new Bo,this.maxNumTokens=0,this.mode="KEYPOINTS",this.u=this.l=0}A(){return"TextSummarizer"}async v(t){if(0!==this.l)throw Error("LiteRT LM Tasks do not support updating options after initialization.");return void 0!==t.maxNumTokens&&(this.maxNumTokens=t.maxNumTokens),void 0!==t.mode&&(this.mode=t.mode),Fs(this,t,!(!t.baseOptions||!t.baseOptions.modelAssetPath&&!t.baseOptions.modelAssetBuffer),!0)}o(){this.l=this.h.i.createTextSummarizer("/model.litertlm",this.maxNumTokens,this.mode),this.j.O()}summarize(t){var e=this.h.i;if(0===this.l)throw Error("TextSummarizer is already closed.");var r=this.u++;bs(this.j,r);try{return e.summarize(this.l,t)}finally{Ss(this.j,r)}}summarizeStreaming(t,e){var r=this.h.i;if(0===this.l)throw Error("TextSummarizer is already closed.");if(r._userSummarizerListener)throw Error("Another summarization is already in progress.");var n=this.u++;bs(this.j,n);var i,o,s=new Promise((t,e)=>{i=t,o=e}),a=()=>{r._userSummarizerListener=void 0,Ss(this.j,n)},u="";r._userSummarizerListener=(t,r,n)=>{if(n)a(),o(Error(n));else{if(u+=t,e)try{e(t,r)}catch(t){return a(),void o(t)}r&&(a(),i(u))}};try{r.summarizeStreaming(this.l,t)}catch(t){a(),o(t)}return s}close(){var t=this.h.i;if(0!==this.l){try{t.deleteTextSummarizer(this.l)}catch{}this.l=0}super.close()}};qs.prototype.summarizeStreaming=qs.prototype.summarizeStreaming,qs.createFromModelBuffer=function(t,e,r=0,n="KEYPOINTS"){return Ks(t,{baseOptions:{modelAssetBuffer:e},maxNumTokens:r,mode:n})},qs.createFromModelPath=function(t,e,r=0,n="KEYPOINTS"){return Ks(t,{baseOptions:{modelAssetPath:e},maxNumTokens:r,mode:n})},qs.createFromOptions=Ks,exports.FilesetResolver=Ho,exports.LanguageDetector=Gs,exports.TaskRunner=Rs,exports.TextClassifier=Ds,exports.TextEmbedder=$s,exports.TextProofreader=Ws,exports.TextSummarizer=qs;
2
2
  //# sourceMappingURL=text_bundle_cjs.js.map