@tencentcloud/tuiroom-engine-wx
Version:
TUIRoomEngine MiniProgram SDK
2 lines • 232 kB
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@tencentcloud/chat"),t=require("@tencentcloud/trtc-component-wx");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),o=n(t);function i(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(){d=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new x(r||[]);return o(a,"_invoke",{value:b(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",v="suspendedYield",h="executing",g="completed",m={};function y(){}function T(){}function R(){}var E={};c(E,a,(function(){return this}));var C=Object.getPrototypeOf,I=C&&C(C(k([])));I&&I!==n&&r.call(I,a)&&(E=I);var S=R.prototype=y.prototype=Object.create(E);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,a,s){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function b(t,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=w(s,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=f(t,n,r);if("normal"===c.type){if(o=r.done?g:v,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function w(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,w(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function k(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return T.prototype=R,o(S,"constructor",{value:R,configurable:!0}),o(R,"constructor",{value:T,configurable:!0}),T.displayName=c(R,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,R):(e.__proto__=R,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(A.prototype),c(A.prototype,s,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}"function"==typeof SuppressedError&&SuppressedError;var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(e){return e&&e.Math===Math&&e},T=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof m&&m)||y("object"==typeof m&&m)||function(){return this}()||Function("return this")(),R={},E=function(e){try{return!!e()}catch(t){return!0}},C=!E((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=!E((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),S=I,_=Function.prototype.call,A=S?_.bind(_):function(){return _.apply(_,arguments)},b={},w={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,O=M&&!w.call({1:2},1);b.f=O?function(e){var t=M(this,e);return!!t&&t.enumerable}:w;var x,k,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},U=I,D=Function.prototype,P=D.call,L=U&&D.bind.bind(P,P),V=U?L:function(e){return function(){return P.apply(e,arguments)}},F=V,j=F({}.toString),$=F("".slice),q=function(e){return $(j(e),8,-1)},B=E,W=q,Q=Object,J=V("".split),H=B((function(){return!Q("z").propertyIsEnumerable(0)}))?function(e){return"String"===W(e)?J(e,""):Q(e)}:Q,Y=function(e){return null==e},G=Y,K=TypeError,z=function(e){if(G(e))throw new K("Can't call method on "+e);return e},X=H,Z=z,ee=function(e){return X(Z(e))},te="object"==typeof document&&document.all,ne=void 0===te&&void 0!==te?function(e){return"function"==typeof e||e===te}:function(e){return"function"==typeof e},re=ne,oe=function(e){return"object"==typeof e?null!==e:re(e)},ie=T,ae=ne,se=function(e,t){return arguments.length<2?(n=ie[e],ae(n)?n:void 0):ie[e]&&ie[e][t];var n},ue=V({}.isPrototypeOf),ce=T.navigator,le=ce&&ce.userAgent,de=le?String(le):"",fe=T,pe=de,ve=fe.process,he=fe.Deno,ge=ve&&ve.versions||he&&he.version,me=ge&&ge.v8;me&&(k=(x=me.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!k&&pe&&(!(x=pe.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=pe.match(/Chrome\/(\d+)/))&&(k=+x[1]);var ye=k,Te=ye,Re=E,Ee=T.String,Ce=!!Object.getOwnPropertySymbols&&!Re((function(){var e=Symbol("symbol detection");return!Ee(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Te&&Te<41})),Ie=Ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Se=se,_e=ne,Ae=ue,be=Object,we=Ie?function(e){return"symbol"==typeof e}:function(e){var t=Se("Symbol");return _e(t)&&Ae(t.prototype,be(e))},Me=String,Oe=function(e){try{return Me(e)}catch(t){return"Object"}},xe=ne,ke=Oe,Ne=TypeError,Ue=function(e){if(xe(e))return e;throw new Ne(ke(e)+" is not a function")},De=Ue,Pe=Y,Le=function(e,t){var n=e[t];return Pe(n)?void 0:De(n)},Ve=A,Fe=ne,je=oe,$e=TypeError,qe={},Be={get exports(){return qe},set exports(e){qe=e}},We=T,Qe=Object.defineProperty,Je=function(e,t){try{Qe(We,e,{value:t,configurable:!0,writable:!0})}catch(n){We[e]=t}return t},He=T,Ye=Je,Ge="__core-js_shared__",Ke=Be.exports=He[Ge]||Ye(Ge,{});(Ke.versions||(Ke.versions=[])).push({version:"3.41.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ze=qe,Xe=function(e,t){return ze[e]||(ze[e]=t||{})},Ze=z,et=Object,tt=function(e){return et(Ze(e))},nt=tt,rt=V({}.hasOwnProperty),ot=Object.hasOwn||function(e,t){return rt(nt(e),t)},it=V,at=0,st=Math.random(),ut=it(1..toString),ct=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ut(++at+st,36)},lt=Xe,dt=ot,ft=ct,pt=Ce,vt=Ie,ht=T.Symbol,gt=lt("wks"),mt=vt?ht.for||ht:ht&&ht.withoutSetter||ft,yt=function(e){return dt(gt,e)||(gt[e]=pt&&dt(ht,e)?ht[e]:mt("Symbol."+e)),gt[e]},Tt=A,Rt=oe,Et=we,Ct=Le,It=function(e,t){var n,r;if("string"===t&&Fe(n=e.toString)&&!je(r=Ve(n,e)))return r;if(Fe(n=e.valueOf)&&!je(r=Ve(n,e)))return r;if("string"!==t&&Fe(n=e.toString)&&!je(r=Ve(n,e)))return r;throw new $e("Can't convert object to primitive value")},St=TypeError,_t=yt("toPrimitive"),At=function(e,t){if(!Rt(e)||Et(e))return e;var n,r=Ct(e,_t);if(r){if(void 0===t&&(t="default"),n=Tt(r,e,t),!Rt(n)||Et(n))return n;throw new St("Can't convert object to primitive value")}return void 0===t&&(t="number"),It(e,t)},bt=At,wt=we,Mt=function(e){var t=bt(e,"string");return wt(t)?t:t+""},Ot=oe,xt=T.document,kt=Ot(xt)&&Ot(xt.createElement),Nt=function(e){return kt?xt.createElement(e):{}},Ut=Nt,Dt=!C&&!E((function(){return 7!==Object.defineProperty(Ut("div"),"a",{get:function(){return 7}}).a})),Pt=C,Lt=A,Vt=b,Ft=N,jt=ee,$t=Mt,qt=ot,Bt=Dt,Wt=Object.getOwnPropertyDescriptor;R.f=Pt?Wt:function(e,t){if(e=jt(e),t=$t(t),Bt)try{return Wt(e,t)}catch(n){}if(qt(e,t))return Ft(!Lt(Vt.f,e,t),e[t])};var Qt={},Jt=C&&E((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ht=oe,Yt=String,Gt=TypeError,Kt=function(e){if(Ht(e))return e;throw new Gt(Yt(e)+" is not an object")},zt=C,Xt=Dt,Zt=Jt,en=Kt,tn=Mt,nn=TypeError,rn=Object.defineProperty,on=Object.getOwnPropertyDescriptor,an="enumerable",sn="configurable",un="writable";Qt.f=zt?Zt?function(e,t,n){if(en(e),t=tn(t),en(n),"function"==typeof e&&"prototype"===t&&"value"in n&&un in n&&!n[un]){var r=on(e,t);r&&r[un]&&(e[t]=n.value,n={configurable:sn in n?n[sn]:r[sn],enumerable:an in n?n[an]:r[an],writable:!1})}return rn(e,t,n)}:rn:function(e,t,n){if(en(e),t=tn(t),en(n),Xt)try{return rn(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new nn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var cn=Qt,ln=N,dn=C?function(e,t,n){return cn.f(e,t,ln(1,n))}:function(e,t,n){return e[t]=n,e},fn={},pn={get exports(){return fn},set exports(e){fn=e}},vn=C,hn=ot,gn=Function.prototype,mn=vn&&Object.getOwnPropertyDescriptor,yn=hn(gn,"name"),Tn={EXISTS:yn,PROPER:yn&&"something"===function(){}.name,CONFIGURABLE:yn&&(!vn||vn&&mn(gn,"name").configurable)},Rn=ne,En=qe,Cn=V(Function.toString);Rn(En.inspectSource)||(En.inspectSource=function(e){return Cn(e)});var In,Sn,_n,An=En.inspectSource,bn=ne,wn=T.WeakMap,Mn=bn(wn)&&/native code/.test(String(wn)),On=ct,xn=Xe("keys"),kn=function(e){return xn[e]||(xn[e]=On(e))},Nn={},Un=Mn,Dn=T,Pn=oe,Ln=dn,Vn=ot,Fn=qe,jn=kn,$n=Nn,qn="Object already initialized",Bn=Dn.TypeError,Wn=Dn.WeakMap;if(Un||Fn.state){var Qn=Fn.state||(Fn.state=new Wn);Qn.get=Qn.get,Qn.has=Qn.has,Qn.set=Qn.set,In=function(e,t){if(Qn.has(e))throw new Bn(qn);return t.facade=e,Qn.set(e,t),t},Sn=function(e){return Qn.get(e)||{}},_n=function(e){return Qn.has(e)}}else{var Jn=jn("state");$n[Jn]=!0,In=function(e,t){if(Vn(e,Jn))throw new Bn(qn);return t.facade=e,Ln(e,Jn,t),t},Sn=function(e){return Vn(e,Jn)?e[Jn]:{}},_n=function(e){return Vn(e,Jn)}}var Hn={set:In,get:Sn,has:_n,enforce:function(e){return _n(e)?Sn(e):In(e,{})},getterFor:function(e){return function(t){var n;if(!Pn(t)||(n=Sn(t)).type!==e)throw new Bn("Incompatible receiver, "+e+" required");return n}}},Yn=V,Gn=E,Kn=ne,zn=ot,Xn=C,Zn=Tn.CONFIGURABLE,er=An,tr=Hn.enforce,nr=Hn.get,rr=String,or=Object.defineProperty,ir=Yn("".slice),ar=Yn("".replace),sr=Yn([].join),ur=Xn&&!Gn((function(){return 8!==or((function(){}),"length",{value:8}).length})),cr=String(String).split("String"),lr=pn.exports=function(e,t,n){"Symbol("===ir(rr(t),0,7)&&(t="["+ar(rr(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!zn(e,"name")||Zn&&e.name!==t)&&(Xn?or(e,"name",{value:t,configurable:!0}):e.name=t),ur&&n&&zn(n,"arity")&&e.length!==n.arity&&or(e,"length",{value:n.arity});try{n&&zn(n,"constructor")&&n.constructor?Xn&&or(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=tr(e);return zn(r,"source")||(r.source=sr(cr,"string"==typeof t?t:"")),e};Function.prototype.toString=lr((function(){return Kn(this)&&nr(this).source||er(this)}),"toString");var dr=ne,fr=Qt,pr=fn,vr=Je,hr=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(dr(n)&&pr(n,i,r),r.global)o?e[t]=n:vr(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(a){}o?e[t]=n:fr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},gr={},mr=Math.ceil,yr=Math.floor,Tr=Math.trunc||function(e){var t=+e;return(t>0?yr:mr)(t)},Rr=function(e){var t=+e;return t!=t||0===t?0:Tr(t)},Er=Rr,Cr=Math.max,Ir=Math.min,Sr=function(e,t){var n=Er(e);return n<0?Cr(n+t,0):Ir(n,t)},_r=Rr,Ar=Math.min,br=function(e){var t=_r(e);return t>0?Ar(t,9007199254740991):0},wr=br,Mr=function(e){return wr(e.length)},Or=ee,xr=Sr,kr=Mr,Nr=function(e){return function(t,n,r){var o=Or(t),i=kr(o);if(0===i)return!e&&-1;var a,s=xr(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Ur={includes:Nr(!0),indexOf:Nr(!1)},Dr=ot,Pr=ee,Lr=Ur.indexOf,Vr=Nn,Fr=V([].push),jr=function(e,t){var n,r=Pr(e),o=0,i=[];for(n in r)!Dr(Vr,n)&&Dr(r,n)&&Fr(i,n);for(;t.length>o;)Dr(r,n=t[o++])&&(~Lr(i,n)||Fr(i,n));return i},$r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qr=jr,Br=$r.concat("length","prototype");gr.f=Object.getOwnPropertyNames||function(e){return qr(e,Br)};var Wr={};Wr.f=Object.getOwnPropertySymbols;var Qr=se,Jr=gr,Hr=Wr,Yr=Kt,Gr=V([].concat),Kr=Qr("Reflect","ownKeys")||function(e){var t=Jr.f(Yr(e)),n=Hr.f;return n?Gr(t,n(e)):t},zr=ot,Xr=Kr,Zr=R,eo=Qt,to=function(e,t,n){for(var r=Xr(t),o=eo.f,i=Zr.f,a=0;a<r.length;a++){var s=r[a];zr(e,s)||n&&zr(n,s)||o(e,s,i(t,s))}},no=E,ro=ne,oo=/#|\.prototype\./,io=function(e,t){var n=so[ao(e)];return n===co||n!==uo&&(ro(t)?no(t):!!t)},ao=io.normalize=function(e){return String(e).replace(oo,".").toLowerCase()},so=io.data={},uo=io.NATIVE="N",co=io.POLYFILL="P",lo=io,fo=T,po=R.f,vo=dn,ho=hr,go=Je,mo=to,yo=lo,To=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,c=e.stat;if(n=u?fo:c?fo[s]||go(s,{}):fo[s]&&fo[s].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=po(n,r))&&a.value:n[r],!yo(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;mo(i,o)}(e.sham||o&&o.sham)&&vo(i,"sham",!0),ho(n,r,i,e)}},Ro={};Ro[yt("toStringTag")]="z";var Eo="[object z]"===String(Ro),Co=Eo,Io=ne,So=q,_o=yt("toStringTag"),Ao=Object,bo="Arguments"===So(function(){return arguments}()),wo=Co?So:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Ao(e),_o))?n:bo?So(t):"Object"===(r=So(t))&&Io(t.callee)?"Arguments":r},Mo=wo,Oo=String,xo=function(e){if("Symbol"===Mo(e))throw new TypeError("Cannot convert a Symbol value to a string");return Oo(e)},ko={},No=jr,Uo=$r,Do=Object.keys||function(e){return No(e,Uo)},Po=C,Lo=Jt,Vo=Qt,Fo=Kt,jo=ee,$o=Do;ko.f=Po&&!Lo?Object.defineProperties:function(e,t){Fo(e);for(var n,r=jo(t),o=$o(t),i=o.length,a=0;i>a;)Vo.f(e,n=o[a++],r[n]);return e};var qo,Bo=se("document","documentElement"),Wo=Kt,Qo=ko,Jo=$r,Ho=Nn,Yo=Bo,Go=Nt,Ko="prototype",zo="script",Xo=kn("IE_PROTO"),Zo=function(){},ei=function(e){return"<"+zo+">"+e+"</"+zo+">"},ti=function(e){e.write(ei("")),e.close();var t=e.parentWindow.Object;return e=null,t},ni=function(){try{qo=new ActiveXObject("htmlfile")}catch(o){}var e,t,n;ni="undefined"!=typeof document?document.domain&&qo?ti(qo):(t=Go("iframe"),n="java"+zo+":",t.style.display="none",Yo.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(ei("document.F=Object")),e.close(),e.F):ti(qo);for(var r=Jo.length;r--;)delete ni[Ko][Jo[r]];return ni()};Ho[Xo]=!0;var ri=Object.create||function(e,t){var n;return null!==e?(Zo[Ko]=Wo(e),n=new Zo,Zo[Ko]=null,n[Xo]=e):n=ni(),void 0===t?n:Qo.f(n,t)},oi={},ii=V([].slice),ai=q,si=ee,ui=gr.f,ci=ii,li="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];oi.f=function(e){return li&&"Window"===ai(e)?function(e){try{return ui(e)}catch(t){return ci(li)}}(e):ui(si(e))};var di=fn,fi=Qt,pi=function(e,t,n){return n.get&&di(n.get,t,{getter:!0}),n.set&&di(n.set,t,{setter:!0}),fi.f(e,t,n)},vi={},hi=yt;vi.f=hi;var gi=T,mi=gi,yi=ot,Ti=vi,Ri=Qt.f,Ei=A,Ci=se,Ii=yt,Si=hr,_i=Qt.f,Ai=ot,bi=yt("toStringTag"),wi=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Ai(e,bi)&&_i(e,bi,{configurable:!0,value:t})},Mi=q,Oi=V,xi=function(e){if("Function"===Mi(e))return Oi(e)},ki=Ue,Ni=I,Ui=xi(xi.bind),Di=function(e,t){return ki(e),void 0===t?e:Ni?Ui(e,t):function(){return e.apply(t,arguments)}},Pi=q,Li=Array.isArray||function(e){return"Array"===Pi(e)},Vi=V,Fi=E,ji=ne,$i=wo,qi=An,Bi=function(){},Wi=se("Reflect","construct"),Qi=/^\s*(?:class|function)\b/,Ji=Vi(Qi.exec),Hi=!Qi.test(Bi),Yi=function(e){if(!ji(e))return!1;try{return Wi(Bi,[],e),!0}catch(t){return!1}},Gi=function(e){if(!ji(e))return!1;switch($i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Hi||!!Ji(Qi,qi(e))}catch(t){return!0}};Gi.sham=!0;var Ki=!Wi||Fi((function(){var e;return Yi(Yi.call)||!Yi(Object)||!Yi((function(){e=!0}))||e}))?Gi:Yi,zi=Li,Xi=Ki,Zi=oe,ea=yt("species"),ta=Array,na=function(e){var t;return zi(e)&&(t=e.constructor,(Xi(t)&&(t===ta||zi(t.prototype))||Zi(t)&&null===(t=t[ea]))&&(t=void 0)),void 0===t?ta:t},ra=function(e,t){return new(na(e))(0===t?0:t)},oa=Di,ia=H,aa=tt,sa=Mr,ua=ra,ca=V([].push),la=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,s=5===e||i;return function(u,c,l,d){for(var f,p,v=aa(u),h=ia(v),g=sa(h),m=oa(c,l),y=0,T=d||ua,R=t?T(u,g):n||a?T(u,0):void 0;g>y;y++)if((s||y in h)&&(p=m(f=h[y],y,v),e))if(t)R[y]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:ca(R,f)}else switch(e){case 4:return!1;case 7:ca(R,f)}return i?-1:r||o?o:R}},da={forEach:la(0),map:la(1),filter:la(2),some:la(3),every:la(4),find:la(5),findIndex:la(6),filterReject:la(7)},fa=To,pa=T,va=A,ha=V,ga=C,ma=Ce,ya=E,Ta=ot,Ra=ue,Ea=Kt,Ca=ee,Ia=Mt,Sa=xo,_a=N,Aa=ri,ba=Do,wa=gr,Ma=oi,Oa=Wr,xa=R,ka=Qt,Na=ko,Ua=b,Da=hr,Pa=pi,La=Xe,Va=Nn,Fa=ct,ja=yt,$a=vi,qa=function(e){var t=mi.Symbol||(mi.Symbol={});yi(t,e)||Ri(t,e,{value:Ti.f(e)})},Ba=function(){var e=Ci("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Ii("toPrimitive");t&&!t[r]&&Si(t,r,(function(e){return Ei(n,this)}),{arity:1})},Wa=wi,Qa=Hn,Ja=da.forEach,Ha=kn("hidden"),Ya="Symbol",Ga="prototype",Ka=Qa.set,za=Qa.getterFor(Ya),Xa=Object[Ga],Za=pa.Symbol,es=Za&&Za[Ga],ts=pa.RangeError,ns=pa.TypeError,rs=pa.QObject,os=xa.f,is=ka.f,as=Ma.f,ss=Ua.f,us=ha([].push),cs=La("symbols"),ls=La("op-symbols"),ds=La("wks"),fs=!rs||!rs[Ga]||!rs[Ga].findChild,ps=function(e,t,n){var r=os(Xa,t);r&&delete Xa[t],is(e,t,n),r&&e!==Xa&&is(Xa,t,r)},vs=ga&&ya((function(){return 7!==Aa(is({},"a",{get:function(){return is(this,"a",{value:7}).a}})).a}))?ps:is,hs=function(e,t){var n=cs[e]=Aa(es);return Ka(n,{type:Ya,tag:e,description:t}),ga||(n.description=t),n},gs=function(e,t,n){e===Xa&&gs(ls,t,n),Ea(e);var r=Ia(t);return Ea(n),Ta(cs,r)?(n.enumerable?(Ta(e,Ha)&&e[Ha][r]&&(e[Ha][r]=!1),n=Aa(n,{enumerable:_a(0,!1)})):(Ta(e,Ha)||is(e,Ha,_a(1,Aa(null))),e[Ha][r]=!0),vs(e,r,n)):is(e,r,n)},ms=function(e,t){Ea(e);var n=Ca(t),r=ba(n).concat(Es(n));return Ja(r,(function(t){ga&&!va(ys,n,t)||gs(e,t,n[t])})),e},ys=function(e){var t=Ia(e),n=va(ss,this,t);return!(this===Xa&&Ta(cs,t)&&!Ta(ls,t))&&(!(n||!Ta(this,t)||!Ta(cs,t)||Ta(this,Ha)&&this[Ha][t])||n)},Ts=function(e,t){var n=Ca(e),r=Ia(t);if(n!==Xa||!Ta(cs,r)||Ta(ls,r)){var o=os(n,r);return!o||!Ta(cs,r)||Ta(n,Ha)&&n[Ha][r]||(o.enumerable=!0),o}},Rs=function(e){var t=as(Ca(e)),n=[];return Ja(t,(function(e){Ta(cs,e)||Ta(Va,e)||us(n,e)})),n},Es=function(e){var t=e===Xa,n=as(t?ls:Ca(e)),r=[];return Ja(n,(function(e){!Ta(cs,e)||t&&!Ta(Xa,e)||us(r,cs[e])})),r};ma||(Da(es=(Za=function(){if(Ra(es,this))throw new ns("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Sa(arguments[0]):void 0,t=Fa(e),n=function(e){var r=void 0===this?pa:this;r===Xa&&va(n,ls,e),Ta(r,Ha)&&Ta(r[Ha],t)&&(r[Ha][t]=!1);var o=_a(1,e);try{vs(r,t,o)}catch(i){if(!(i instanceof ts))throw i;ps(r,t,o)}};return ga&&fs&&vs(Xa,t,{configurable:!0,set:n}),hs(t,e)})[Ga],"toString",(function(){return za(this).tag})),Da(Za,"withoutSetter",(function(e){return hs(Fa(e),e)})),Ua.f=ys,ka.f=gs,Na.f=ms,xa.f=Ts,wa.f=Ma.f=Rs,Oa.f=Es,$a.f=function(e){return hs(ja(e),e)},ga&&(Pa(es,"description",{configurable:!0,get:function(){return za(this).description}}),Da(Xa,"propertyIsEnumerable",ys,{unsafe:!0}))),fa({global:!0,constructor:!0,wrap:!0,forced:!ma,sham:!ma},{Symbol:Za}),Ja(ba(ds),(function(e){qa(e)})),fa({target:Ya,stat:!0,forced:!ma},{useSetter:function(){fs=!0},useSimple:function(){fs=!1}}),fa({target:"Object",stat:!0,forced:!ma,sham:!ga},{create:function(e,t){return void 0===t?Aa(e):ms(Aa(e),t)},defineProperty:gs,defineProperties:ms,getOwnPropertyDescriptor:Ts}),fa({target:"Object",stat:!0,forced:!ma},{getOwnPropertyNames:Rs}),Ba(),Wa(Za,Ya),Va[Ha]=!0;var Cs=Ce&&!!Symbol.for&&!!Symbol.keyFor,Is=To,Ss=se,_s=ot,As=xo,bs=Xe,ws=Cs,Ms=bs("string-to-symbol-registry"),Os=bs("symbol-to-string-registry");Is({target:"Symbol",stat:!0,forced:!ws},{for:function(e){var t=As(e);if(_s(Ms,t))return Ms[t];var n=Ss("Symbol")(t);return Ms[t]=n,Os[n]=t,n}});var xs=To,ks=ot,Ns=we,Us=Oe,Ds=Cs,Ps=Xe("symbol-to-string-registry");xs({target:"Symbol",stat:!0,forced:!Ds},{keyFor:function(e){if(!Ns(e))throw new TypeError(Us(e)+" is not a symbol");if(ks(Ps,e))return Ps[e]}});var Ls=I,Vs=Function.prototype,Fs=Vs.apply,js=Vs.call,$s="object"==typeof Reflect&&Reflect.apply||(Ls?js.bind(Fs):function(){return js.apply(Fs,arguments)}),qs=Li,Bs=ne,Ws=q,Qs=xo,Js=V([].push),Hs=To,Ys=se,Gs=$s,Ks=A,zs=V,Xs=E,Zs=ne,eu=we,tu=ii,nu=function(e){if(Bs(e))return e;if(qs(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?Js(n,o):"number"!=typeof o&&"Number"!==Ws(o)&&"String"!==Ws(o)||Js(n,Qs(o))}var i=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(qs(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}},ru=Ce,ou=String,iu=Ys("JSON","stringify"),au=zs(/./.exec),su=zs("".charAt),uu=zs("".charCodeAt),cu=zs("".replace),lu=zs(1..toString),du=/[\uD800-\uDFFF]/g,fu=/^[\uD800-\uDBFF]$/,pu=/^[\uDC00-\uDFFF]$/,vu=!ru||Xs((function(){var e=Ys("Symbol")("stringify detection");return"[null]"!==iu([e])||"{}"!==iu({a:e})||"{}"!==iu(Object(e))})),hu=Xs((function(){return'"\\udf06\\ud834"'!==iu("\udf06\ud834")||'"\\udead"'!==iu("\udead")})),gu=function(e,t){var n=tu(arguments),r=nu(t);if(Zs(r)||void 0!==e&&!eu(e))return n[1]=function(e,t){if(Zs(r)&&(t=Ks(r,this,ou(e),t)),!eu(t))return t},Gs(iu,null,n)},mu=function(e,t,n){var r=su(n,t-1),o=su(n,t+1);return au(fu,e)&&!au(pu,o)||au(pu,e)&&!au(fu,r)?"\\u"+lu(uu(e,0),16):e};iu&&Hs({target:"JSON",stat:!0,arity:3,forced:vu||hu},{stringify:function(e,t,n){var r=tu(arguments),o=Gs(vu?gu:iu,null,r);return hu&&"string"==typeof o?cu(o,du,mu):o}});var yu=Wr,Tu=tt;To({target:"Object",stat:!0,forced:!Ce||E((function(){yu.f(1)}))},{getOwnPropertySymbols:function(e){var t=yu.f;return t?t(Tu(e)):[]}});var Ru=To,Eu=C,Cu=V,Iu=ot,Su=ne,_u=ue,Au=xo,bu=pi,wu=to,Mu=T.Symbol,Ou=Mu&&Mu.prototype;if(Eu&&Su(Mu)&&(!("description"in Ou)||void 0!==Mu().description)){var xu={},ku=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Au(arguments[0]),t=_u(Ou,this)?new Mu(e):void 0===e?Mu():Mu(e);return""===e&&(xu[t]=!0),t};wu(ku,Mu),ku.prototype=Ou,Ou.constructor=ku;var Nu="Symbol(description detection)"===String(Mu("description detection")),Uu=Cu(Ou.valueOf),Du=Cu(Ou.toString),Pu=/^Symbol\((.*)\)[^)]+$/,Lu=Cu("".replace),Vu=Cu("".slice);bu(Ou,"description",{configurable:!0,get:function(){var e=Uu(this);if(Iu(xu,e))return"";var t=Du(e),n=Nu?Vu(t,7,-1):Lu(t,Pu,"$1");return""===n?void 0:n}}),Ru({global:!0,constructor:!0,forced:!0},{Symbol:ku})}var Fu=TypeError,ju=function(e){if(e>9007199254740991)throw Fu("Maximum allowed index exceeded");return e},$u=C,qu=Qt,Bu=N,Wu=function(e,t,n){$u?qu.f(e,t,Bu(0,n)):e[t]=n},Qu=E,Ju=ye,Hu=yt("species"),Yu=function(e){return Ju>=51||!Qu((function(){var t=[];return(t.constructor={})[Hu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Gu=To,Ku=E,zu=Li,Xu=oe,Zu=tt,ec=Mr,tc=ju,nc=Wu,rc=ra,oc=Yu,ic=ye,ac=yt("isConcatSpreadable"),sc=ic>=51||!Ku((function(){var e=[];return e[ac]=!1,e.concat()[0]!==e})),uc=function(e){if(!Xu(e))return!1;var t=e[ac];return void 0!==t?!!t:zu(e)};Gu({target:"Array",proto:!0,arity:1,forced:!sc||!oc("concat")},{concat:function(e){var t,n,r,o,i,a=Zu(this),s=rc(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(uc(i=-1===t?a:arguments[t]))for(o=ec(i),tc(u+o),n=0;n<o;n++,u++)n in i&&nc(s,u,i[n]);else tc(u+1),nc(s,u++,i);return s.length=u,s}});var cc=Oe,lc=TypeError,dc=function(e,t){if(!delete e[t])throw new lc("Cannot delete property "+cc(t)+" of "+cc(e))},fc=tt,pc=Sr,vc=Mr,hc=dc,gc=Math.min,mc=[].copyWithin||function(e,t){var n=fc(this),r=vc(n),o=pc(e,r),i=pc(t,r),a=arguments.length>2?arguments[2]:void 0,s=gc((void 0===a?r:pc(a,r))-i,r-o),u=1;for(i<o&&o<i+s&&(u=-1,i+=s-1,o+=s-1);s-- >0;)i in n?n[o]=n[i]:hc(n,o),o+=u,i+=u;return n},yc=yt,Tc=ri,Rc=Qt.f,Ec=yc("unscopables"),Cc=Array.prototype;void 0===Cc[Ec]&&Rc(Cc,Ec,{configurable:!0,value:Tc(null)});var Ic=function(e){Cc[Ec][e]=!0},Sc=Ic;To({target:"Array",proto:!0},{copyWithin:mc}),Sc("copyWithin");var _c=E,Ac=function(e,t){var n=[][e];return!!n&&_c((function(){n.call(null,t||function(){return 1},1)}))},bc=da.every;To({target:"Array",proto:!0,forced:!Ac("every")},{every:function(e){return bc(this,e,arguments.length>1?arguments[1]:void 0)}});var wc=da.filter;To({target:"Array",proto:!0,forced:!Yu("filter")},{filter:function(e){return wc(this,e,arguments.length>1?arguments[1]:void 0)}});var Mc=To,Oc=da.findIndex,xc=Ic,kc="findIndex",Nc=!0;kc in[]&&Array(1)[kc]((function(){Nc=!1})),Mc({target:"Array",proto:!0,forced:Nc},{findIndex:function(e){return Oc(this,e,arguments.length>1?arguments[1]:void 0)}}),xc(kc);var Uc=da.forEach,Dc=Ac("forEach")?[].forEach:function(e){return Uc(this,e,arguments.length>1?arguments[1]:void 0)};To({target:"Array",proto:!0,forced:[].forEach!==Dc},{forEach:Dc});var Pc=Ur.includes,Lc=Ic;To({target:"Array",proto:!0,forced:E((function(){return!Array(1).includes()}))},{includes:function(e){return Pc(this,e,arguments.length>1?arguments[1]:void 0)}}),Lc("includes");var Vc=To,Fc=Ur.indexOf,jc=Ac,$c=xi([].indexOf),qc=!!$c&&1/$c([1],1,-0)<0;Vc({target:"Array",proto:!0,forced:qc||!jc("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return qc?$c(this,e,t)||0:Fc(this,e,t)}}),To({target:"Array",stat:!0},{isArray:Li});var Bc,Wc,Qc,Jc={},Hc=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Yc=ot,Gc=ne,Kc=tt,zc=Hc,Xc=kn("IE_PROTO"),Zc=Object,el=Zc.prototype,tl=zc?Zc.getPrototypeOf:function(e){var t=Kc(e);if(Yc(t,Xc))return t[Xc];var n=t.constructor;return Gc(n)&&t instanceof n?n.prototype:t instanceof Zc?el:null},nl=E,rl=ne,ol=oe,il=tl,al=hr,sl=yt("iterator"),ul=!1;[].keys&&("next"in(Qc=[].keys())?(Wc=il(il(Qc)))!==Object.prototype&&(Bc=Wc):ul=!0);var cl=!ol(Bc)||nl((function(){var e={};return Bc[sl].call(e)!==e}));cl&&(Bc={}),rl(Bc[sl])||al(Bc,sl,(function(){return this}));var ll={IteratorPrototype:Bc,BUGGY_SAFARI_ITERATORS:ul},dl=ll.IteratorPrototype,fl=ri,pl=N,vl=wi,hl=Jc,gl=function(){return this},ml=V,yl=Ue,Tl=oe,Rl=function(e){return Tl(e)||null===e},El=String,Cl=TypeError,Il=function(e,t,n){try{return ml(yl(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}},Sl=oe,_l=z,Al=function(e){if(Rl(e))return e;throw new Cl("Can't set "+El(e)+" as a prototype")},bl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Il(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return _l(n),Al(r),Sl(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),wl=To,Ml=A,Ol=ne,xl=function(e,t,n,r){var o=t+" Iterator";return e.prototype=fl(dl,{next:pl(+!r,n)}),vl(e,o,!1),hl[o]=gl,e},kl=tl,Nl=bl,Ul=wi,Dl=dn,Pl=hr,Ll=Jc,Vl=Tn.PROPER,Fl=Tn.CONFIGURABLE,jl=ll.IteratorPrototype,$l=ll.BUGGY_SAFARI_ITERATORS,ql=yt("iterator"),Bl="keys",Wl="values",Ql="entries",Jl=function(){return this},Hl=function(e,t,n,r,o,i,a){xl(n,t,r);var s,u,c,l=function(e){if(e===o&&h)return h;if(!$l&&e&&e in p)return p[e];switch(e){case Bl:case Wl:case Ql:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,p=e.prototype,v=p[ql]||p["@@iterator"]||o&&p[o],h=!$l&&v||l(o),g="Array"===t&&p.entries||v;if(g&&(s=kl(g.call(new e)))!==Object.prototype&&s.next&&(kl(s)!==jl&&(Nl?Nl(s,jl):Ol(s[ql])||Pl(s,ql,Jl)),Ul(s,d,!0)),Vl&&o===Wl&&v&&v.name!==Wl&&(Fl?Dl(p,"name",Wl):(f=!0,h=function(){return Ml(v,this)})),o)if(u={values:l(Wl),keys:i?h:l(Bl),entries:l(Ql)},a)for(c in u)($l||f||!(c in p))&&Pl(p,c,u[c]);else wl({target:t,proto:!0,forced:$l||f},u);return p[ql]!==h&&Pl(p,ql,h,{name:o}),Ll[t]=h,u},Yl=function(e,t){return{value:e,done:t}},Gl=ee,Kl=Ic,zl=Jc,Xl=Hn,Zl=Qt.f,ed=Hl,td=Yl,nd=C,rd="Array Iterator",od=Xl.set,id=Xl.getterFor(rd),ad=ed(Array,"Array",(function(e,t){od(this,{type:rd,target:Gl(e),index:0,kind:t})}),(function(){var e=id(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,td(void 0,!0);switch(e.kind){case"keys":return td(n,!1);case"values":return td(t[n],!1)}return td([n,t[n]],!1)}),"values"),sd=zl.Arguments=zl.Array;if(Kl("keys"),Kl("values"),Kl("entries"),nd&&"values"!==sd.name)try{Zl(sd,"name",{value:"values"})}catch(Lk){}var ud=To,cd=H,ld=ee,dd=Ac,fd=V([].join);ud({target:"Array",proto:!0,forced:cd!==Object||!dd("join",",")},{join:function(e){return fd(ld(this),void 0===e?",":e)}});var pd=$s,vd=ee,hd=Rr,gd=Mr,md=Ac,yd=Math.min,Td=[].lastIndexOf,Rd=!!Td&&1/[1].lastIndexOf(1,-0)<0,Ed=md("lastIndexOf"),Cd=Rd||!Ed?function(e){if(Rd)return pd(Td,this,arguments)||0;var t=vd(this),n=gd(t);if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=yd(r,hd(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Td;To({target:"Array",proto:!0,forced:Cd!==[].lastIndexOf},{lastIndexOf:Cd});var Id=da.map;To({target:"Array",proto:!0,forced:!Yu("map")},{map:function(e){return Id(this,e,arguments.length>1?arguments[1]:void 0)}});var Sd=To,_d=Li,Ad=Ki,bd=oe,wd=Sr,Md=Mr,Od=ee,xd=Wu,kd=yt,Nd=ii,Ud=Yu("slice"),Dd=kd("species"),Pd=Array,Ld=Math.max;Sd({target:"Array",proto:!0,forced:!Ud},{slice:function(e,t){var n,r,o,i=Od(this),a=Md(i),s=wd(e,a),u=wd(void 0===t?a:t,a);if(_d(i)&&(n=i.constructor,(Ad(n)&&(n===Pd||_d(n.prototype))||bd(n)&&null===(n=n[Dd]))&&(n=void 0),n===Pd||void 0===n))return Nd(i,s,u);for(r=new(void 0===n?Pd:n)(Ld(u-s,0)),o=0;s<u;s++,o++)s in i&&xd(r,o,i[s]);return r.length=o,r}});var Vd=C,Fd=Li,jd=TypeError,$d=Object.getOwnPropertyDescriptor,qd=Vd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(Lk){return Lk instanceof TypeError}}(),Bd=To,Wd=tt,Qd=Sr,Jd=Rr,Hd=Mr,Yd=qd?function(e,t){if(Fd(e)&&!$d(e,"length").writable)throw new jd("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Gd=ju,Kd=ra,zd=Wu,Xd=dc,Zd=Yu("splice"),ef=Math.max,tf=Math.min;Bd({target:"Array",proto:!0,forced:!Zd},{splice:function(e,t){var n,r,o,i,a,s,u=Wd(this),c=Hd(u),l=Qd(e,c),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=c-l):(n=d-2,r=tf(ef(Jd(t),0),c-l)),Gd(c+n-r),o=Kd(u,r),i=0;i<r;i++)(a=l+i)in u&&zd(o,i,u[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)s=i+n,(a=i+r)in u?u[s]=u[a]:Xd(u,s);for(i=c;i>c-r+n;i--)Xd(u,i-1)}else if(n>r)for(i=c-r;i>l;i--)s=i+n-1,(a=i+r-1)in u?u[s]=u[a]:Xd(u,s);for(i=0;i<n;i++)u[i+l]=arguments[i+2];return Yd(u,c-r+n),o}});var nf="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,rf=hr,of=function(e,t,n){for(var r in t)rf(e,r,t[r],n);return e},af=ue,sf=TypeError,uf=function(e,t){if(af(t,e))return e;throw new sf("Incorrect invocation")},cf=Rr,lf=br,df=RangeError,ff=function(e){if(void 0===e)return 0;var t=cf(e),n=lf(t);if(t!==n)throw new df("Wrong length or index");return n},pf=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1},vf=4503599627370496,hf=pf,gf=function(e){return e+vf-vf},mf=Math.abs,yf=function(e,t,n,r){var o=+e,i=mf(o),a=hf(o);if(i<r)return a*gf(i/r/t)*r*t;var s=(1+t/2220446049250313e-31)*i,u=s-(s-i);return u>n||u!=u?Infinity*a:a*u},Tf=Math.fround||function(e){return yf(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},Rf=Array,Ef=Math.abs,Cf=Math.pow,If=Math.floor,Sf=Math.log,_f=Math.LN2,Af={pack:function(e,t,n){var r,o,i,a=Rf(n),s=8*n-t-1,u=(1<<s)-1,c=u>>1,l=23===t?Cf(2,-24)-Cf(2,-77):0,d=e<0||0===e&&1/e<0?1:0,f=0;for((e=Ef(e))!=e||Infinity===e?(o=e!=e?1:0,r=u):(r=If(Sf(e)/_f),e*(i=Cf(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?l/i:l*Cf(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(e*i-1)*Cf(2,t),r+=c):(o=e*Cf(2,c-1)*Cf(2,t),r=0));t>=8;)a[f++]=255&o,o/=256,t-=8;for(r=r<<t|o,s+=t;s>0;)a[f++]=255&r,r/=256,s-=8;return a[f-1]|=128*d,a},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,i=(1<<o)-1,a=i>>1,s=o-7,u=r-1,c=e[u--],l=127&c;for(c>>=7;s>0;)l=256*l+e[u--],s-=8;for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;)n=256*n+e[u--],s-=8;if(0===l)l=1-a;else{if(l===i)return n?NaN:c?-Infinity:Infinity;n+=Cf(2,t),l-=a}return(c?-1:1)*n*Cf(2,l-t)}},bf=tt,wf=Sr,Mf=Mr,Of=function(e){for(var t=bf(this),n=Mf(t),r=arguments.length,o=wf(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:wf(i,n);a>o;)t[o++]=e;return t},xf=ne,kf=oe,Nf=bl,Uf=function(e,t,n){var r,o;return Nf&&xf(r=t.constructor)&&r!==n&&kf(o=r.prototype)&&o!==n.prototype&&Nf(e,o),e},Df=T,Pf=V,Lf=C,Vf=nf,Ff=dn,jf=pi,$f=of,qf=E,Bf=uf,Wf=Rr,Qf=br,Jf=ff,Hf=Tf,Yf=Af,Gf=tl,Kf=bl,zf=Of,Xf=ii,Zf=Uf,ep=to,tp=wi,np=Hn,rp=Tn.PROPER,op=Tn.CONFIGURABLE,ip="ArrayBuffer",ap="DataView",sp="prototype",up="Wrong index",cp=np.getterFor(ip),lp=np.getterFor(ap),dp=np.set,fp=Df[ip],pp=fp,vp=pp&&pp[sp],hp=Df[ap],gp=hp&&hp[sp],mp=Object.prototype,yp=Df.Array,Tp=Df.RangeError,Rp=Pf(zf),Ep=Pf([].reverse),Cp=Yf.pack,Ip=Yf.unpack,Sp=function(e){return[255&e]},_p=function(e){return[255&e,e>>8&255]},Ap=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},bp=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},wp=function(e){return Cp(Hf(e),23,4)},Mp=function(e){return Cp(e,52,8)},Op=function(e,t,n){jf(e[sp],t,{configurable:!0,get:function(){return n(this)[t]}})},xp=function(e,t,n,r){var o=lp(e),i=Jf(n),a=!!r;if(i+t>o.byteLength)throw new Tp(up);var s=o.bytes,u=i+o.byteOffset,c=Xf(s,u,u+t);return a?c:Ep(c)},kp=function(e,t,n,r,o,i){var a=lp(e),s=Jf(n),u=r(+o),c=!!i;if(s+t>a.byteLength)throw new Tp(up);for(var l=a.bytes,d=s+a.byteOffset,f=0;f<t;f++)l[d+f]=u[c?f:t-f-1]};if(Vf){var Np=rp&&fp.name!==ip;qf((function(){fp(1)}))&&qf((function(){new fp(-1)}))&&!qf((function(){return new fp,new fp(1.5),new fp(NaN),1!==fp.length||Np&&!op}))?Np&&op&&Ff(fp,"name",ip):((pp=function(e){return Bf(this,vp),Zf(new fp(Jf(e)),this,pp)})[sp]=vp,vp.constructor=pp,ep(pp,fp)),Kf&&Gf(gp)!==mp&&Kf(gp,mp);var Up=new hp(new pp(2)),Dp=Pf(gp.setInt8);Up.setInt8(0,2147483648),Up.setInt8(1,2147483649),!Up.getInt8(0)&&Up.getInt8(1)||$f(gp,{setInt8:function(e,t){Dp(this,e,t<<24>>24)},setUint8:function(e,t){Dp(this,e,t<<24>>24)}},{unsafe:!0})}else vp=(pp=function(e){Bf(this,vp);var t=Jf(e);dp(this,{type:ip,bytes:Rp(yp(t),0),byteLength:t}),Lf||(this.byteLength=t,this.detached=!1)})[sp],gp=(hp=function(e,t,n){Bf(this,gp),Bf(e,vp);var r=cp(e),o=r.byteLength,i=Wf(t);if(i<0||i>o)throw new Tp("Wrong offset");if(i+(n=void 0===n?o-i:Qf(n))>o)throw new Tp("Wrong length");dp(this,{type:ap,buffer:e,byteLength:n,byteOffset:i,bytes:r.bytes}),Lf||(this.buffer=e,this.byteLength=n,this.byteOffset=i)})[sp],Lf&&(Op(pp,"byteLength",cp),Op(hp,"buffer",lp),Op(hp,"byteLength",lp),Op(hp,"byteOffset",lp)),$f(gp,{getInt8:function(e){return xp(this,1,e)[0]<<24>>24},getUint8:function(e){return xp(this,1,e)[0]},getInt16:function(e){var t=xp(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=xp(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return bp(xp(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return bp(xp(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Ip(xp(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Ip(xp(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){kp(this,1,e,Sp,t)},setUint8:function(e,t){kp(this,1,e,Sp,t)},setInt16:function(e,t){kp(this,2,e,_p,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){kp(this,2,e,_p,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){kp(this,4,e,Ap,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){kp(this,4,e,Ap,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){kp(this,4,e,wp,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){kp(this,8,e,Mp,t,arguments.length>2&&arguments[2])}});tp(pp,ip),tp(hp,ap);var Pp={ArrayBuffer:pp,DataView:hp},Lp=se,Vp=pi,Fp=C,jp=yt("species"),$p=function(e){var t=Lp(e);Fp&&t&&!t[jp]&&Vp(t,jp,{configurable:!0,get:function(){return this}})},qp=$p,Bp="ArrayBuffer",Wp=Pp[Bp];To({global:!0,constructor:!0,forced:T[Bp]!==Wp},{ArrayBuffer:Wp}),qp(Bp);var Qp=To,Jp=xi,Hp=E,Yp=Kt,Gp=Sr,Kp=br,zp=Pp.ArrayBuffer,Xp=Pp.DataView,Zp=Xp.prototype,ev=Jp(zp.prototype.slice),tv=Jp(Zp.getUint8),nv=Jp(Zp.setUint8);Qp({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Hp((function(){return!new zp(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(ev&&void 0===t)return ev(Yp(this),e);for(var n=Yp(this).byteLength,r=Gp(e,n),o=Gp(void 0===t?n:t,n),i=new zp(Kp(o-r)),a=new Xp(this),s=new Xp(i),u=0;r<o;)nv(s,u++,tv(a,r++));return i}}),To({global:!0,constructor:!0,forced:!nf},{DataView:Pp.DataView});var rv=To,ov=Date,iv=V(ov.prototype.getTime);rv({target:"Date",stat:!0},{now:function(){return iv(new ov)}});var av=tt,sv=At;To({target:"Date",proto:!0,arity:1,forced:E((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=av(this),n=sv(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var uv=V,cv=hr,lv=Date.prototype,dv="Invalid Date",fv="toString",pv=uv(lv[fv]),vv=uv(lv.getTime);String(new Date(NaN))!==dv&&cv(lv,fv,(function(){var e=vv(this);return e==e?pv(this):dv}));var hv=V,gv=Ue,mv=oe,yv=ot,Tv=ii,Rv=I,Ev=Function,Cv=hv([].concat),Iv=hv([].join),Sv={},_v=Rv?Ev.bind:function(e){var t=gv(this),n=t.prototype,r=Tv(arguments,1),o=function(){var n=Cv(r,Tv(arguments));return this instanceof o?function(e,t,n){if(!yv(Sv,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";Sv[t]=Ev("C,a","return new C("+Iv(r,",")+")")}return Sv[t](e,n)}(t,n.length,n):t.apply(e,n)};return mv(n)&&(o.prototype=n),o},Av=_v;To({target:"Function",proto:!0,forced:Function.bind!==Av},{bind:Av});var bv=C,wv=Tn.EXISTS,Mv=V,Ov=pi,xv=Function.prototype,kv=Mv(xv.toString),Nv=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Uv=Mv(Nv.exec);bv&&!wv&&Ov(xv,"name",{configurable:!0,get:function(){try{return Uv(Nv,kv(this))[1]}catch(Lk){return""}}});var Dv={},Pv={get exports(){return Dv},set exports(e){Dv=e}},Lv=E((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Vv=E,Fv=oe,jv=q,$v=Lv,qv=Object.isExtensible,Bv=Vv((function(){qv(1)}))||$v?function(e){return!!Fv(e)&&((!$v||"ArrayBuffer"!==jv(e))&&(!qv||qv(e)))}:qv,Wv=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),Qv=To,Jv=V,Hv=Nn,Yv=oe,Gv=ot,Kv=Qt.f,zv=gr,Xv=oi,Zv=Bv,eh=Wv,th=!1,nh=ct("meta"),rh=0,oh=function(e){Kv(e,nh,{value:{objectID:"O"+rh++,weakData:{}}})},ih=Pv.exports={enable:function(){ih.enable=function(){},th=!0;var e=zv.f,t=Jv([].splice),n={};n[nh]=1,e(n).length&&(zv.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===nh){t(r,o,1);break}return r},Qv({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xv.f}))},fastKey:function(e,t){if(!Yv(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Gv(e,nh)){if(!Zv(e))return"F";if(!t)return"E";oh(e)}return e[nh].objectID},getWeakData:function(e,t){if(!Gv(e,nh)){if(!Zv(e))return!0;if(!t)return!1;oh(e)}return e[nh].weakData},onFreeze:function(e){return eh&&th&&Zv(e)&&!Gv(e,nh)&&oh(e),e}};Hv[nh]=!0;var ah=Jc,sh=yt("iterator"),uh=Array.prototype,ch=function(e){return void 0!==e&&(ah.Array===e||uh[sh]===e)},lh=wo,dh=Le,fh=Y,ph=Jc,vh=yt("iterator"),hh=function(e){if(!fh(e))return dh(e,vh)||dh(e,"@@iterator")||ph[lh(e)]},gh=A,mh=Ue,yh=Kt,Th=Oe,Rh=hh,Eh=TypeError,Ch=function(e,t){var n=arguments.length<2?Rh(e):t;if(mh(n))return yh(gh(n,e));throw new Eh(Th(e)+" is not iterable")},Ih=A,Sh=Kt,_h=Le,Ah=Di,bh=A,wh=Kt,Mh=Oe,Oh=ch,xh=Mr,kh=ue,Nh=Ch,Uh=hh,Dh=function(e,t,n){var r,o;Sh(e);try{if(!(r=_h(e,"return"))){if("throw"===t)throw n;return n}r=Ih(r,e)}catch(Lk){o=!0,r=Lk}if("throw"===t)throw n;if(o)throw r;return Sh(r),n},Ph=TypeError,Lh=function(e,t){this.stopped=e,this.result=t},Vh=Lh.prototype,Fh=function(e,t,n){var r,o,i,a,s,u,c,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=Ah(t,l),g=function(e){return r&&Dh(r,"normal",e),new Lh(!0,e)},m=function(e){return d?(wh(e),v?h(e[0],e[1],g):h(e[0],e[1])):v?h(e,g):h(e)};if(f)r=e.iterator;else if(p)r=e;else{if(!(o=Uh(e)))throw new Ph(Mh(e)+" is not iterable");if(Oh(o)){for(i=0,a=xh(e);a>i;i++)if((s=m(e[i]))&&kh(Vh,s))return s;return new Lh(!1)}r=Nh(e,o)}for(u=f?e.next:r.next;!(c=bh(u,r)).done;){try{s=m(c.value)}catch(Lk){Dh(r,"throw",Lk)}if("object"==typeof s&&s&&kh(Vh,s))return s}return new Lh(!1)},jh=yt("iterator"),$h=!1;try{var qh=0,Bh={next:function(){return{done:!!qh++}},return:function(){$h=!0}};Bh[jh]=function(){return this},Array.from(Bh,(function(){throw 2}))}catch(Lk){}var Wh=function(e,t){try{if(!t&&!$h)return!1}catch(Lk){return!1}var n=!1;try{var r={};r[jh]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(Lk){}return n},Qh=To,Jh=T,Hh=V,Yh=lo,Gh=hr,Kh=Dv,zh=Fh,Xh=uf,Zh=ne,eg=Y,tg=oe,ng=E,rg=Wh,og=wi,ig=Uf,ag=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Jh[e],s=a&&a.prototype,u=a,c={},l=function(e){var t=Hh(s[e]);Gh(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!tg(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!tg(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!tg(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Yh(e,!Zh(a)||!(o||s.forEach&&!ng((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),Kh.enable();else if(Yh(e,!0)){var d=new u,f=d[i](o?{}:-0,1)!==d,p=ng((function(){d.has(1)})),v=rg((function(e){new a(e)})),h=!o&&ng((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));v||((u=t((function(e,t){Xh(e,s);var n=ig(new a,e,u);return eg(t)||zh(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=u),(p||h)&&(l("delete"),l("has"),r&&l("get")),(h||f)&&l(i),o&&s.clear&&delete s.clear}return c[e]=u,Qh({global:!0,constructor:!0,forced:u!==a},c),og(u,e),o||n.setStrong(u,e,r),u},sg=ri,ug=pi,cg=of,lg=Di,dg=uf,fg=Y,pg=Fh,vg=Hl,hg=Yl,gg=$p,mg=C,yg=Dv.fastKey,Tg=Hn.set,Rg=Hn.getterFor,Eg={getConstructor:function(e,t,n,r){var o=e((function(e,o){dg(e,i),Tg(e,{type:t,index:sg(null),first:null,last:null,size:0}),mg||(e.size=0),fg(o)||pg(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Rg(t),s=function(e,t,n){var r,o,i=a(e),s=u(e,t);return s?s.value=n:(i.last=s={index:o=yg(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=s),r&&(r.next=s),mg?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},u=function(e,t){var n,r=a(e),o=yg(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return cg(i,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=sg(null),mg?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=u(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),mg?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=lg(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),cg(i,n?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),mg&&ug(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Rg(t),i=Rg(r);vg(e,t,(function(e,t){Tg(this,{type:r,target:e,state:o(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?hg("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,hg(void 0,!0))}),n?"entries":"values",!n,!0),gg(t)}};ag("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Eg);var Cg=V(1..valueOf),Ig=z,Sg=xo,_g="\t\n\v\f\r \u2028\u2029\ufeff",Ag=V("".replace),bg=RegExp("^["+_g+"]+"),wg=RegExp("(^|[^"+_g+"])["+_g+"]+$"),Mg=function(e){return function(t){var n=Sg(Ig(t));return 1&e&&(n=Ag(n,bg,"")),2&e&&(n=Ag(n,wg,"$1")),n}},Og={start:Mg(1),end:Mg(2),trim:Mg(3)},xg=To,kg=C,Ng=T,Ug=gi,Dg=V,Pg=lo,Lg=ot,Vg=Uf,Fg=ue,jg=we,$g=At,qg=E,Bg=gr.f,Wg=R.f,Qg=Qt.f,Jg=Cg,Hg=Og.trim,Yg="Number",Gg=Ng[Yg];Ug[Yg];var Kg=Gg.prototype,zg=Ng.TypeError,Xg=Dg("".slice),Zg=Dg("".charCodeAt),em=function(e){var t,n,r,o,i,a,s,u,c=$g(e,"number");if(jg(c))throw new zg("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Hg(c),43===(t=Zg(c,0))||45===t){if(88===(n=Zg(c,2))||120===n)return NaN}else if(48===t){switch(Zg(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=Xg(c,2)).length,s=0;s<a;s++)if((u=Zg(i,s))<48||u>o)return NaN;return parseInt(i,r)}return+c},tm=Pg(Yg,!Gg(" 0o1")||!Gg("0b1")||Gg("+0x1")),nm=function(e){var t,n=arguments.length<1?0:Gg(function(e){var t=$g(e,"number");return"bigint"==typeof t?t:em(t)}(e));return Fg(Kg,t=this)&&qg((function(){Jg(t)}))?Vg(Object(n),this,nm):n};nm.prototype=Kg,tm&&(Kg.constructor=nm),xg({global:!0,constructor:!0,wrap:!0,forced:tm},{Number:nm});tm&&function(e,t){for(var n,r=kg?Bg(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)Lg(t,n=r[o])&&!Lg(e,n)&&Qg(e,n,Wg(t,n))}(Ug[Yg],Gg);var rm=C,om=V,im=A,am=E,sm=Do,um=Wr,cm=b,lm=tt,dm=H,fm=Object.assign,pm=Object.defineProperty,vm=om([].concat),hm=!fm||am((function(){if(rm&&1!==fm({b:1},fm(pm({},"a",{enumerable:!0,get:function(){pm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==fm({},e)[n]||sm(fm({},t)).join("")!==r}))?function(e,t){for(var n=lm(e),r=arguments.length,o=1,i=um.f,a=cm.f;r>o;)for(var s,u=dm(arguments[o++]),c=i?vm(sm(u),i(u)):sm(u),l=c.length,d=0;l>d;)s=c[d++],rm&&!im(a,u,s)||(n[s]=u[s]);return n}:fm,gm=hm;To({target:"Object",stat:!0,arity:2,forced:Object.assign!==gm},{assign:gm}),To({target:"Object",stat:!0,sham:!C},{create:ri});var mm=tt,ym=tl,Tm=Hc;To({target:"Object",stat:!0,forced:E((function(){ym(1)})),sham:!Tm},{getPrototypeOf:function(e){return ym(mm(e))}});var Rm=tt,Em=Do;To({target:"Object",stat:!0,forced:E((function(){Em(1)}))},{keys:function(e){return Em(Rm(e))}});var Cm=wo,Im=Eo?{}.toString:function(){return"[object "+Cm(this)+"]"};Eo||hr(Object.prototype,"toString",Im,{unsafe:!0});var Sm,_m,Am,bm,wm=T,Mm=de,Om=q,xm=function(e){return Mm.slice(0,e.length)===e},km=xm("Bun/")?"BUN":xm("Cloudflare-Workers")?"CLOUDFLARE":xm("Deno/")?"DENO":xm("Node.js/")?"NODE":wm.Bun&&"string"==typeof Bun.version?"BUN":wm.Deno&&"object"==typeof Deno.version?"DENO":"process"===Om(wm.process)?"NODE":wm.window&&wm.document?"BROWSER":"REST",Nm="NODE"===km,Um=Ki,Dm=Oe,Pm=TypeError,Lm=function(e){if(Um(e))return e;throw new Pm(Dm(e)+" is not a constructor")},Vm=Kt,Fm=Lm,jm=Y,$m=yt("species"),qm=TypeError,Bm=function(e,t){if(e<t)throw new qm("Not enough arguments");return e},Wm=/(?:ipad|iphone|ipod).*applewebkit/i.test(de),Qm=T,Jm=$s,Hm=Di,Ym=ne,Gm=ot,Km=E,zm=Bo,Xm=ii,Zm=Nt,ey=Bm,ty=Wm,ny=Nm,ry=Qm.setImmediate,oy=Qm.clearImmediate,iy=Qm.process,ay=Qm.Dispatch,sy=Qm.Function,uy=Qm.MessageChannel,cy=Qm.String,ly=0,dy={},fy="onreadystatechange";Km((function(){Sm=Qm.location}));var py=function(e){if(Gm(dy,e)){var t=dy[e];delete dy[e],t()}},vy=function(e){return function(){py(e)}},hy=function(e){py(e.data)},gy=function(e){Qm.postMessage(cy(e),Sm.protocol+"//"+Sm.host)};ry&&oy||(ry=function(e){ey(arguments.length,1);var t=Ym(e)?e:sy(e),n=Xm(arguments,1);return dy[++ly]=function(){Jm(t,void 0,n)},_m(ly),ly},oy=function(e){delete dy[e]},ny?_m=function(e){iy.nextTick(vy(e))}:ay&&ay.now?_m=function(e){ay.now(vy(e))}:uy&&!ty?(bm=(Am=new uy).port2,Am.port1.onmessage=hy,_m=Hm(bm.postMessage,bm)):Qm.addEventListener&&Ym(Qm.postMessage)&&!Qm.importScripts&&Sm&&"file:"!==Sm.protocol&&!Km(gy)?(_m=gy,Qm.addEventListener("message",hy,!1)):_m=fy in Zm("script")?function(e){zm.appendChild(Zm("script"))[fy]=function(){zm.removeChild(this),py(e)}}:function(e){setTimeout(vy(e),0)});var my={set:ry,clear:oy},yy=T,Ty=C,Ry=Object.getOwnPropertyDescriptor,Ey=function(){this.head=null,this.tail=null};Ey.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Cy,Iy,Sy,_y,Ay,by=Ey,wy=/ipad|iphone|ipod/i.test(de)&&"undefined"!=typeof Pebble,My=/web0s(?!.*chrome)/i.test(de),Oy=T,xy=function(e){if(!Ty)return yy[e];var t=Ry(yy,e);return t&&t.value},ky=Di,Ny=my.set,Uy=by,Dy=Wm,Py=wy,Ly=My,Vy=Nm,Fy=Oy.MutationObserver||Oy.WebKitMutationObserver,jy=Oy.document,$y=Oy.process,qy=Oy.Promise,By=xy("queueMicrotask");if(!By){var Wy=new Uy,Qy=function(){var e,t;for(Vy&&(e=$y.domain)&&e.exit();t=Wy.get();)try{t()}catch(Lk){throw Wy.head&&Cy(),Lk}e&&e.enter()};Dy||Vy||Ly||!Fy||!jy?!Py&&qy&&qy.resolve?((_y=qy.resolve(void 0)).constructor=qy,Ay=ky(_y.then,_y),Cy=function(){Ay(Qy)}):Vy?Cy=function(){$y.nextTick(Qy)}:(Ny=ky(Ny,Oy),Cy=function(){Ny(Qy)}):(Iy=!0,Sy=jy.createTextNode(""),new Fy(Qy).observe(Sy,{characterData:!0}),Cy=function(){Sy.data=Iy=!Iy}),By=function(e){Wy.head||Cy(),Wy.add(e)}}var Jy=By,Hy=function(e){try{return{error:!1,value:e()}}catch(Lk){return{error:!0,value:Lk}}},Yy=T.Promise,Gy=T,Ky=Yy,zy=ne,Xy=lo,Zy=An,eT=yt,tT=km,nT=ye;Ky&&Ky.prototype;var rT=eT("species"),oT=!1,iT=zy(Gy.PromiseRejectionEvent),aT=Xy("Promise",(function(){var e=Zy(Ky),t=e!==String(Ky);if(!t&&66===nT)return!0;if(!nT||nT<51||!/native code/.test(e)){var n=new Ky((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[rT]=r,!(oT=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==tT&&"DENO"!==tT||iT)})),sT={CONSTRUCTOR:aT,REJECTION_EVENT:iT,SUBCLASSING:oT},uT={},cT=Ue,lT=TypeError,dT=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new lT("Bad Promise constructor");t=e,n=r})),this.resolve=cT(t),this.reject=cT(n)};uT.f=function(e){return new dT(e)};var fT,pT,vT,hT=To,gT=Nm,mT=T,yT=A,TT=hr,RT=bl,ET=wi,CT=$p,IT=Ue,ST=ne,_T=oe,AT=uf,bT=function(e,t){var n,r=Vm(e).constructor;return void 0===r||jm(n=Vm(r)[$m])?t:Fm(n)},wT=my.set,MT=Jy,OT=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(Lk){}},xT=Hy,kT=by,NT=Hn,UT=Yy,DT=uT,PT="Promise",LT=sT.CONSTRUCTOR,VT=sT.REJECTION_EVENT,FT=sT.SUBCLASSING,jT=NT.getterFor(PT),$T=NT.set,qT=UT&&UT.prototype,BT=UT,WT=qT,QT=mT.TypeError,JT=mT.document,HT=mT.process,YT=DT.f,GT=YT,KT=!!(JT&&JT.createEvent&&mT.dispatchEvent),zT="unhandledrejection",XT=function(e){var t;return!(!_T(e)||!ST(t=e.then))&&t},ZT=function(e,t){var n,r,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&oR(t),t.rejection=1),!0===s?n=i:(l&&l.enter(),n=s(i),l&&(l.exit(),o=!0)),n===e.promise?c(new QT("Promise-chain cycle")):(r=XT(n))?yT(r,n,u,c):u(n)):c(i)}catch(Lk){l&&!o&&l.exit(),c(Lk)}},eR=function(e,t){e.notified||(e.notified=!0,MT((function(){for(var n,r=e.reactions;n=r.get();)ZT(n,e);e.notified=!1,t&&!e.rejection&&nR(e)})))},tR=function(e,t,n){var r,o;KT?((r=JT.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),mT.dispatchEvent(r)):r={promise:t,reason:n},!VT&&(o=mT["on"+e])?o(r):e===zT&&OT("Unhandled promise rejection",n)},nR=function(e){yT(wT,mT,(function(){var t,n=e.facade,r=e.value;if(rR(e)&&(t=xT((function(){gT?HT.emit("unhandledRejection",r,n):tR(zT,n,r)})),e.rejection=gT||rR(e)?2:1,t.error))throw t.value}))},rR=function(e){return 1!==e.rejection&&!e.parent},oR=function(e){yT(wT,mT,(function(){var t=e.facade;gT?HT.emit("rejectionHandled",t):tR("rejectionhandled",t,e.value)}))},iR=function(e,t,n){return function(r){e(t,r,n)}},aR=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,eR(e,!0))},sR=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new QT("Promise can't be resolved itself");var r=XT(t);r?MT((function(){var n={done:!1};try{yT(r,t,iR(sR,n,e),iR(aR,n,e))}catch(Lk){aR(n,Lk,e)}})):(e.value=t,e.state=1,eR(e,!1))}catch(Lk){aR({done:!1},Lk,e)}}};if(LT&&(WT=(BT=function(e){AT(this,WT),IT(e),yT(fT,this);var t=jT(this);try{e(iR(sR,t),iR(aR,t))}catch(Lk){aR(t,Lk)}}).prototype,(fT=function(e){$T(this,{type:PT,done:!1,notified:!1,parent:!1,reactions:new kT,rejection:!1,state:0,value:null})}).prototype=TT(WT,"then",(function(e,t){var n=jT(this),r=YT(bT(this,BT));return n.parent=!0,r.ok=!ST(e)||e,r.fail=ST(t)&&t,r.domain=gT?HT.domain:void 0,0===n.state?n.reactions.add(r):MT((function(){ZT(r,n)})),r.promise})),pT=function(){var e=new fT,t=jT(e);this.promise=e,this.resolve=iR(sR,t),this.reject=iR(aR,t)},DT.f=YT=function(e){return e===BT||undefined===e?new pT(e):GT(e)},ST(UT)&&qT!==Object.prototype)){vT=qT.then,FT||TT(qT,"then",(function(e,t){var n=this;return new BT((function(e,t){yT(vT,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete qT.constructor}catch(Lk){}RT&&RT(qT,WT)}hT({global:!0,constructor:!0,wrap:!0,forced:LT},{Promise:BT}),ET(BT,PT,!1),CT(PT);var uR=Yy,cR=sT.CONSTRUCTOR||!Wh((function(e){uR.all(e).then(void 0,(function(){}))})),lR=A,dR=Ue,fR=uT,pR=Hy,vR=Fh;To({target:"Promise",stat:!0,forced:cR},{all:function(e){var t=this,n=fR.f(t),r=n.resolve,o=n.reject,i=pR((function(){var n=dR(t.resolve),i=[],a=0,s=1;vR(e,(function(e){var u=a++,c=!1;s++,lR(n,t,e).then((function(e){c||(c=!0,i[u]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise}});var hR=To,gR=sT.CONSTRUCTOR,mR=Yy,yR=se,TR=ne,RR=hr,ER=mR&&mR.prototype;if(hR({target:"Promise",proto:!0,forced:gR,real:!0},{catch:function(e){return this.then(void 0,e)}}),TR(mR)){var CR=yR("Promise").prototype.catch;ER.catch!==CR&&RR(ER,"catch",CR,{unsafe:!0})}var IR=A,SR=Ue,_R=uT,AR=Hy,bR=Fh;To({target:"Promise",stat:!0,forced:cR},{race:function(e){var t=this,n=_R.f(t),r=n.reject,o=AR((function(){var o=SR(t.resolve);bR(e,(function(e){IR(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var wR=uT;To({target:"Promise",stat:!0,forced:sT.CONSTRUCTOR},{reject:function(e){var t=wR.f(this);return(0,t.reject)(e),t.promise}});var MR=Kt,OR=oe,xR=uT,kR=To,NR=sT.CONSTRUCTOR,UR=function(e,t){if(MR(e),OR(t)&&t.constructor===e)return t;var n=xR.f(e);return(0,n.resolve)(t),n.promise};se("Promise"),kR({target:"Promise",stat:!0,forced:NR},{resolve:function(e){return UR(this,e)}});var DR=oe,PR=q,LR=yt("match"),VR=function(e){var t;return DR(e)&&(void 0!==(t=e[LR])?!!t:"RegExp"===PR(e))},FR=Kt,jR=function(){var e=FR(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},$R=A,qR=ot,BR=ue,WR=jR,QR=RegExp.prototype,JR=function(e){var t=e.flags;return void 0!==t||"flags"in QR||qR(e,"flags")||!BR(QR,e)?t:$R(WR,e)},HR=E,YR=T.RegExp,GR=HR((function(){var e=YR("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),KR=GR||HR((function(){return!YR("a","y").sticky})),zR={BROKEN_CARET:GR||HR((function(){var e=YR("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:KR,UNSUPPORTED_Y:GR},XR=Qt.f,ZR=E,eE=T.RegExp,tE=ZR((function(){var e=eE(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),nE=E,rE=T.RegExp,oE=nE((function(){var e=rE("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),iE=C,aE=T,sE=V,uE=lo,cE=Uf,lE=dn,dE=ri,fE=gr.f,pE=ue,vE=VR,hE=xo,gE=JR,mE=zR,yE=function(e,t,n){n in e||XR(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},TE=hr,RE=E,EE=ot,CE=Hn.enforce,IE=$p,SE=tE,_E=oE,AE=yt("match"),bE=aE.RegExp,wE=bE.prototype,ME=aE.SyntaxError,OE=sE(wE.exec),xE=sE("".charAt),kE=sE("".replace),NE=sE("".indexOf),UE=sE("".slice),DE=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,PE=/a/g,LE=/a/g,VE=new bE(PE)!==PE,FE=mE.MISSED_STICKY,jE=mE.UNSUPPORTED_Y,$E=iE&&(!VE||FE||SE||_E||RE((function(){return LE[AE]=!1,bE(PE)!==PE||bE(LE)===LE||"/a/i"!==String(bE(PE,"i"))})));if(uE("RegExp",$E)){for(var qE=function(e,t){var n,r,o,i,a,s,u=pE(wE,this),c=vE(e),l=void 0===t,d=[],f=e;if(!u&&c&&l&&e.constructor===qE)return e;if((c||pE(wE,e))&&(e=e.source,l&&(t=gE(f))),e=void 0===e?"":hE(e),t=void 0===t?"":hE(t),f=e,SE&&"dotAll"in PE&&(r=!!t&&NE(t,"s")>-1)&&(t=kE(t,/s/g,"")),n=t,FE&&"sticky"in PE&&(o=!!t&&NE(t,"y")>-1)&&jE&&(t=kE(t,/y/g,"")),_E&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=dE(null),s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(t=xE(e,r)))t+=xE(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(o+=t,"?:"===UE(e,r+1,r+3))continue;OE(DE,UE(e,r+1))&&(r+=2,u=!0),c++;continue;case">"===t&&u:if(""===l||EE(a,l))throw new ME("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],u=!1,l="";continue}u?l+=t:o+=t}return[o,i]}(e),e=i[0],d=i[1]),a=cE(bE(e,t),u?this:wE,qE),(r||o||d.length)&&(s=CE(a),r&&(s.dotAll=!0,s.raw=qE(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=xE(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+xE(e,++r);return o}(e),n)),o&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{lE(a,"source",""===f?"(?:)":f)}catch(Lk){}return a},BE=fE(bE),WE=0;BE.length>WE;)yE(qE,bE,BE[WE++]);wE.constructor=qE,qE.prototype=wE,TE(aE,"RegExp",qE,{constructor:!0})}IE("RegExp");var QE=A,JE=V,HE=xo,YE=jR,GE=zR,KE=ri,zE=Hn.get,XE=tE,ZE=oE,eC=Xe("native-string-replace",String.prototype.replace),tC=RegExp.prototype.exec,nC=tC,rC=JE("".charAt),oC=JE("".indexOf),iC=JE("".replace),aC=JE("".slice),sC=function(){var e=/a/,t=/b*/g;return QE(tC,e,"a"),QE(tC,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),uC=GE.BROKEN_CARET,cC=void 0!==/()??/.exec("")[1];(sC||cC||uC||XE||ZE)&&(nC=function(e){var t,n,r,o,i,a,s,u=this,c=zE(u),l=HE(e),d=c.raw;if(d)return d.lastIndex=u.lastIndex,t=QE(nC,d,l),u.lastIndex=d.lastIndex,t;var f=c.groups,p=uC&&u.sticky,v=QE(YE,u),h=u.source,g=0,m=l;if(p&&(v=iC(v,"y",""),-1===oC(v,"g")&&(v+="g"),m=aC(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==rC(l,u.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,g++),n=new RegExp("^(?:"+h+")",v)),cC&&(n=new RegExp("^"+h+"$(?!\\s)",v)),sC&&(r=u.lastIndex),o=QE(tC,p?n:u,m),p?o?(o.input=aC(o.input,g),o[0]=aC(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:sC&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),cC&&o&&o.length>1&&QE(eC,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=KE(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var lC=nC;To({target:"RegExp",proto:!0,forced:/./.exec!==lC},{exec:lC});var dC=Tn.PROPER,fC=hr,pC=Kt,vC=xo,hC=E,gC=JR,mC="toString",yC=RegExp.prototype,TC=yC[mC],RC=hC((function(){return"/a/b"!==TC.call({source:"a",flags:"b"})})),EC=dC&&TC.name!==mC;(RC||EC)&&fC(yC,mC,(function(){var e=pC(this);return"/"+vC(e.source)+"/"+vC(gC(e))}),{unsafe:!0});var CC,IC=VR,SC=TypeError,_C=function(e){if(IC(e))throw new SC("The method doesn't accept regular expressions");return e},AC=yt("match"),bC=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[AC]=!1,"/./"[e](t)}catch(r){}}return!1},wC=To,MC=xi,OC=R.f,xC=br,kC=xo,NC=_C,UC=z,DC=bC,PC=MC("".slice),LC=Math.min,VC=DC("endsWith");wC({target:"String",proto:!0,forced:!!(VC||(CC=OC(String.prototype,"endsWith"),!CC||CC.writable))&&!VC},{endsWith:function(e){var t=kC(UC(this));NC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:LC(xC(n),r),i=kC(e);return PC(t,o-i.length,o)===i}});var FC=To,jC=_C,$C=z,qC=xo,BC=bC,WC=V("".indexOf);FC({target:"String",proto:!0,forced:!BC("includes")},{includes:function(e){return!!~WC(qC($C(this)),qC(jC(e)),arguments.length>1?arguments[1]:void 0)}});var QC=V,JC=Rr,HC=xo,YC=z,GC=QC("".charAt),KC=QC("".charCodeAt),zC=QC("".slice),XC=function(e){return function(t,n){var r,o,i=HC(YC(t)),a=JC(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=KC(i,a))<55296||r>56319||a+1===s||(o=KC(i,a+1))<56320||o>57343?e?GC(i,a):r:e?zC(i,a,a+2):o-56320+(r-55296<<10)+65536}},ZC={codeAt:XC(!1),charAt:XC(!0)},eI=ZC.charAt,tI=xo,nI=Hn,rI=Hl,oI=Yl,iI="String Iterator",aI=nI.set,sI=nI.getterFor(iI);rI(String,"String",(function(e){aI(this,{type:iI,string:tI(e),index:0})}),(function(){var e,t=sI(this),n=t.string,r=t.index;return r>=n.length?oI(void 0,!0):(e=eI(n,r),t.index+=e.length,oI(e,!1))}));var uI=A,cI=hr,lI=lC,dI=E,fI=yt,pI=dn,vI=fI("species"),hI=RegExp.prototype,gI=ZC.charAt,mI=V,yI=tt,TI=Math.floor,RI=mI("".charAt),EI=mI("".replace),CI=mI("".slice),II=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SI=/\$([$&'`]|\d{1,2})/g,_I=A,AI=Kt,bI=ne,wI=q,MI=lC,OI=TypeError,xI=$s,kI=A,NI=V,UI=function(e,t,n,r){var o=fI(e),i=!dI((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!dI((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[vI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=/./[o],u=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===lI||a===hI.exec?i&&!o?{done:!0,value:uI(s,t,n,r)}:{done:!0,value:uI(e,n,t,r)}:{done:!1}}));cI(String.prototype,e,u[0]),cI(hI,o,u[1])}r&&pI(hI[o],"sham",!0)},DI=E,PI=Kt,LI=ne,VI=Y,FI=Rr,jI=br,$I=xo,qI=z,BI=function(e,t,n){return t+(n?gI(e,t).length:1)},WI=Le,QI=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,u=SI;return void 0!==o&&(o=yI(o),u=II),EI(i,u,(function(i,u){var c;switch(RI(u,0)){case"$":return"$";case"&":return e;case"`":return CI(t,0,n);case"'":return CI(t,a);case"<":c=o[CI(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>s){var d=TI(l/10);return 0===d?i:d<=s?void 0===r[d-1]?RI(u,1):r[d-1]+RI(u,1):i}c=r[l-1]}return void 0===c?"":c}))},JI=function(e,t){var n=e.exec;if(bI(n)){var r=_I(n,e,t);return null!==r&&AI(r),r}if("RegExp"===wI(e))return _I(MI,e,t);throw new OI("RegExp#exec called on incompatible receiver")},HI=yt("replace"),YI=Math.max,GI=Math.min,KI=NI([].concat),zI=NI([].push),XI=NI("".indexOf),ZI=NI("".slice),eS="$0"==="a".replace(/./,"$0"),tS=!!/./[HI]&&""===/./[HI]("a","$0");UI("replace",(function(e,t,n){var r=tS?"$":"$0";return[function(e,n){var r=qI(this),o=VI(e)?void 0:WI(e,HI);return o?kI(o,e,r,n):kI(t,$I(r),e,n)},function(e,o){var i=PI(this),a=$I(e);if("string"==typeof o&&-1===XI(o,r)&&-1===XI(o,"$<")){var s=n(t,i,a,o);if(s.done)return s.value}var u=LI(o);u||(o=$I(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var d,f=[];null!==(d=JI(i,a))&&(zI(f,d),l);){""===$I(d[0])&&(i.lastIndex=BI(a,jI(i.lastIndex),c))}for(var p,v="",h=0,g=0;g<f.length;g++){for(var m,y=$I((d=f[g])[0]),T=YI(GI(FI(d.index),a.length),0),R=[],E=1;E<d.length;E++)zI(R,void 0===(p=d[E])?p:String(p));var C=d.groups;if(u){var I=KI([y],R,T,a);void 0!==C&&zI(I,C),m=$I(xI(o,void 0,I))}else m=QI(y,a,T,R,C,o);T>=h&&(v+=ZI(a,h,T)+m,h=T+y.length)}return v+ZI(a,h)}]}),!!DI((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!eS||tS);var nS=To,rS=xi,oS=R.f,iS=br,aS=xo,sS=_C,uS=z,cS=bC,lS=rS("".slice),dS=Math.min,fS=cS("startsWith"),pS=!fS&&!!function(){var e=oS(String.prototype,"startsWith");return e&&!e.writable}();nS({target:"String",proto:!0,forced:!pS&&!fS},{startsWith:function(e){var t=aS(uS(this));sS(e);var n=iS(dS(arguments.length>1?arguments[1]:void 0,t.length)),r=aS(e);return lS(t,n,n+r.length)===r}});var vS,hS,gS,mS={},yS={get exports(){return mS},set exports(e){mS=e}},TS=nf,RS=C,ES=T,CS=ne,IS=oe,SS=ot,_S=wo,AS=Oe,bS=dn,wS=hr,MS=pi,OS=ue,xS=tl,kS=bl,NS=yt,US=ct,DS=Hn.enforce,PS=Hn.get,LS=ES.Int8Array,VS=LS&&LS.prototype,FS=ES.Uint8ClampedArray,jS=FS&&FS.prototype,$S=LS&&xS(LS),qS=VS&&xS(VS),BS=Object.prototype,WS=ES.TypeError,QS=NS("toStringTag"),JS=US("TYPED_ARRAY_TAG"),HS="TypedArrayConstructor",YS=TS&&!!kS&&"Opera"!==_S(ES.opera),GS=!1,KS={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},zS={BigInt64Array:8,BigUint64Array:8},XS=function(e){var t=xS(e);if(IS(t)){var n=PS(t);return n&&SS(n,HS)?n[HS]:XS(t)}},ZS=function(e){if(!IS(e))return!1;var t=_S(e);return SS(KS,t)||SS(zS,t)};for(vS in KS)(gS=(hS=ES[vS])&&hS.prototype)?DS(gS)[HS]=hS:YS=!1;for(vS in zS)(gS=(hS=ES[vS])&&hS.prototype)&&(DS(gS)[HS]=hS);if((!YS||!CS($S)||$S===Function.prototype)&&($S=function(){throw new WS("Incorrect invocation")},YS))for(vS in KS)ES[vS]&&kS(ES[vS],$S);if((!YS||!qS||qS===BS)&&(qS=$S.prototype,YS))for(vS in KS)ES[vS]&&kS(ES[vS].prototype,qS);if(YS&&xS(jS)!==qS&&kS(jS,qS),RS&&!SS(qS,QS))for(vS in GS=!0,MS(qS,QS,{configurable:!0,get:function(){return IS(this)?this[JS]:void 0}}),KS)ES[vS]&&bS(ES[vS],JS,vS);var e_={NATIVE_ARRAY_BUFFER_VIEWS:YS,TYPED_ARRAY_TAG:GS&&JS,aTypedArray:function(e){if(ZS(e))return e;throw new WS("Target is not a typed array")},aTypedArrayConstructor:function(e){if(CS(e)&&(!kS||OS($S,e)))return e;throw new WS(AS(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(RS){if(n)for(var o in KS){var i=ES[o];if(i&&SS(i.prototype,e))try{delete i.prototype[e]}catch(Lk){try{i.prototype[e]=t}catch(a){}}}qS[e]&&!n||wS(qS,e,n?t:YS&&VS[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(RS){if(kS){if(n)for(r in KS)if((o=ES[r])&&SS(o,e))try{delete o[e]}catch(Lk){}if($S[e]&&!n)return;try{return wS($S,e,n?t:YS&&$S[e]||t)}catch(Lk){}}for(r in KS)!(o=ES[r])||o[e]&&!n||wS(o,e,t)}},getTypedArrayConstructor:XS,isView:function(e){if(!IS(e))return!1;var t=_S(e);return"DataView"===t||SS(KS,t)||SS(zS,t)},isTypedArray:ZS,TypedArray:$S,TypedArrayPrototype:qS},t_=T,n_=E,r_=Wh,o_=e_.NATIVE_ARRAY_BUFFER_VIEWS,i_=t_.ArrayBuffer,a_=t_.Int8Array,s_=!o_||!n_((function(){a_(1)}))||!n_((function(){new a_(-1)}))||!r_((function(e){new a_,new a_(null),new a_(1.5),new a_(e)}),!0)||n_((function(){return 1!==new a_(new i_(2),1,void 0).length})),u_=oe,c_=Math.floor,l_=Number.isInteger||function(e){return!u_(e)&&isFinite(e)&&c_(e)===e},d_=Rr,f_=RangeError,p_=function(e){var t=d_(e);if(t<0)throw new f_("The argument can't be less than 0");return t},v_=RangeError,h_=function(e,t){var n=p_(e);if(n%t)throw new v_("Wrong offset");return n},g_=Math.round,m_=wo,y_=At,T_=TypeError,R_=function(e){var t=y_(e,"number");if("number"==typeof t)throw new T_("Can't convert number to bigint");return BigInt(t)},E_=Di,C_=A,I_=Lm,S_=tt,__=Mr,A_=Ch,b_=hh,w_=ch,M_=function(e){var t=m_(e);return"BigInt64Array"===t||"BigUint64Array"===t},O_=e_.aTypedArrayConstructor,x_=R_,k_=Mr,N_=function(e,t,n){for(var r=0,o=arguments.length>2?n:k_(t),i=new e(o);o>r;)i[r]=t[r++];return i},U_=To,D_=T,P_=A,L_=C,V_=s_,F_=e_,j_=Pp,$_=uf,q_=N,B_=dn,W_=l_,Q_=br,J_=ff,H_=h_,Y_=function(e){var t=g_(e);return t<0?0:t>255?255:255&t},G_=Mt,K_=ot,z_=wo,X_=oe,Z_=we,eA=ri,tA=ue,nA=bl,rA=gr.f,oA=function(e){var t,n,r,o,i,a,s,u,c=I_(this),l=S_(e),d=arguments.length,f=d>1?arguments[1]:void 0,p=void 0!==f,v=b_(l);if(v&&!w_(v))for(u=(s=A_(l,v)).next,l=[];!(a=C_(u,s)).done;)l.push(a.value);for(p&&d>2&&(f=E_(f,arguments[2])),n=__(l),r=new(O_(c))(n),o=M_(r),t=0;n>t;t++)i=p?f(l[t],t):l[t],r[t]=o?x_(i):+i;return r},iA=da.forEach,aA=$p,sA=pi,uA=Qt,cA=R,lA=N_,dA=Uf,fA=Hn.get,pA=Hn.set,vA=Hn.enforce,hA=uA.f,gA=cA.f,mA=D_.RangeError,yA=j_.ArrayBuffer,TA=yA.prototype,RA=j_.DataView,EA=F_.NATIVE_ARRAY_BUFFER_VIEWS,CA=F_.TYPED_ARRAY_TAG,IA=F_.TypedArray,SA=F_.TypedArrayPrototype,_A=F_.isTypedArray,AA="BYTES_PER_ELEMENT",bA="Wrong length",wA=function(e,t){sA(e,t,{configurable:!0,get:function(){return fA(this)[t]}})},MA=function(e){var t;return tA(TA,e)||"ArrayBuffer"===(t=z_(e))||"SharedArrayBuffer"===t},OA=function(e,t){return _A(e)&&!Z_(t)&&t in e&&W_(+t)&&t>=0},xA=function(e,t){return t=G_(t),OA(e,t)?q_(2,e[t]):gA(e,t)},kA=function(e,t,n){return t=G_(t),!(OA(e,t)&&X_(n)&&K_(n,"value"))||K_(n,"get")||K_(n,"set")||n.configurable||K_(n,"writable")&&!n.writable||K_(n,"enumerable")&&!n.enumerable?hA(e,t,n):(e[t]=n.value,e)};L_?(EA||(cA.f=xA,uA.f=kA,wA(SA,"buffer"),wA(SA,"byteOffset"),wA(SA,"byteLength"),wA(SA,"length")),U_({target:"Object",stat:!0,forced:!EA},{getOwnPropertyDescriptor:xA,defineProperty:kA}),yS.exports=function(e,t,n){var r=e.match(/\d+/)[0]/8,o=e+(n?"Clamped":"")+"Array",i="get"+e,a="set"+e,s=D_[o],u=s,c=u&&u.prototype,l={},d=function(e,t){hA(e,t,{get:function(){return function(e,t){var n=fA(e);return n.view[i](t*r+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var i=fA(e);i.view[a](t*r+i.byteOffset,n?Y_(o):o,!0)}(this,t,e)},enumerable:!0})};EA?V_&&(u=t((function(e,t,n,o){return $_(e,c),dA(X_(t)?MA(t)?void 0!==o?new s(t,H_(n,r),o):void 0!==n?new s(t,H_(n,r)):new s(t):_A(t)?lA(u,t):P_(oA,u,t):new s(J_(t)),e,u)})),nA&&nA(u,IA),iA(rA(s),(function(e){e in u||B_(u,e,s[e])})),u.prototype=c):(u=t((function(e,t,n,o){$_(e,c);var i,a,s,l=0,f=0;if(X_(t)){if(!MA(t))return _A(t)?lA(u,t):P_(oA,u,t);i=t,f=H_(n,r);var p=t.byteLength;if(void 0===o){if(p%r)throw new mA(bA);if((a=p-f)<0)throw new mA(bA)}else if((a=Q_(o)*r)+f>p)throw new mA(bA);s=a/r}else s=J_(t),i=new yA(a=s*r);for(pA(e,{buffer:i,byteOffset:f,byteLength:a,length:s,view:new RA(i)});l<s;)d(e,l++)})),nA&&nA(u,IA),c=u.prototype=eA(SA)),c.constructor!==u&&B_(c,"constructor",u),vA(c).TypedArrayConstructor=u,CA&&B_(c,CA,o);var f=u!==s;l[o]=u,U_({global:!0,constructor:!0,forced:f,sham:!EA},l),AA in u||B_(u,AA,r),AA in c||B_(c,AA,r),aA(o)}):yS.exports=function(){},mS("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),mS("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}})),mS("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),mS("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),mS("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),mS("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),mS("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0),mS("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),mS("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var NA=e_,UA=V(mc),DA=NA.aTypedArray;(0,NA.exportTypedArrayMethod)("copyWithin",(function(e,t){return UA(DA(this),e,t,arguments.length>2?arguments[2]:void 0)}));var PA=da.every,LA=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("every",(function(e){return PA(LA(this),e,arguments.length>1?arguments[1]:void 0)}));var VA=Of,FA=R_,jA=wo,$A=A,qA=E,BA=e_.aTypedArray,WA=e_.exportTypedArrayMethod,QA=V("".slice);WA("fill",(function(e){var t=arguments.length;BA(this);var n="Big"===QA(jA(this),0,3)?FA(e):+e;return $A(VA,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),qA((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var JA=N_,HA=e_.getTypedArrayConstructor,YA=da.filter,GA=function(e,t){return JA(HA(e),t)},KA=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("filter",(function(e){var t=YA(KA(this),e,arguments.length>1?arguments[1]:void 0);return GA(this,t)}));var zA=da.find,XA=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("find",(function(e){return zA(XA(this),e,arguments.length>1?arguments[1]:void 0)}));var ZA=da.findIndex,eb=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("findIndex",(function(e){return ZA(eb(this),e,arguments.length>1?arguments[1]:void 0)}));var tb=da.forEach,nb=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("forEach",(function(e){tb(nb(this),e,arguments.length>1?arguments[1]:void 0)}));var rb=Ur.includes,ob=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("includes",(function(e){return rb(ob(this),e,arguments.length>1?arguments[1]:void 0)}));var ib=Ur.indexOf,ab=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("indexOf",(function(e){return ib(ab(this),e,arguments.length>1?arguments[1]:void 0)}));var sb=T,ub=E,cb=V,lb=e_,db=ad,fb=yt("iterator"),pb=sb.Uint8Array,vb=cb(db.values),hb=cb(db.keys),gb=cb(db.entries),mb=lb.aTypedArray,yb=lb.exportTypedArrayMethod,Tb=pb&&pb.prototype,Rb=!ub((function(){Tb[fb].call([1])})),Eb=!!Tb&&Tb.values&&Tb[fb]===Tb.values&&"values"===Tb.values.name,Cb=function(){return vb(mb(this))};yb("entries",(function(){return gb(mb(this))}),Rb),yb("keys",(function(){return hb(mb(this))}),Rb),yb("values",Cb,Rb||!Eb,{name:"values"}),yb(fb,Cb,Rb||!Eb,{name:"values"});var Ib=e_.aTypedArray,Sb=e_.exportTypedArrayMethod,_b=V([].join);Sb("join",(function(e){return _b(Ib(this),e)}));var Ab=$s,bb=Cd,wb=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return Ab(bb,wb(this),t>1?[e,arguments[1]]:[e])}));var Mb=da.map,Ob=e_.aTypedArray,xb=e_.getTypedArrayConstructor;(0,e_.exportTypedArrayMethod)("map",(function(e){return Mb(Ob(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(xb(e))(t)}))}));var kb=Ue,Nb=tt,Ub=H,Db=Mr,Pb=TypeError,Lb="Reduce of empty array with no initial value",Vb=function(e){return function(t,n,r,o){var i=Nb(t),a=Ub(i),s=Db(i);if(kb(n),0===s&&r<2)throw new Pb(Lb);var u=e?s-1:0,c=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw new Pb(Lb)}for(;e?u>=0:s>u;u+=c)u in a&&(o=n(o,a[u],u,i));return o}},Fb={left:Vb(!1),right:Vb(!0)},jb=Fb.left,$b=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return jb($b(this),e,t,t>1?arguments[1]:void 0)}));var qb=Fb.right,Bb=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return qb(Bb(this),e,t,t>1?arguments[1]:void 0)}));var Wb=e_.aTypedArray,Qb=e_.exportTypedArrayMethod,Jb=Math.floor;Qb("reverse",(function(){for(var e,t=this,n=Wb(t).length,r=Jb(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}));var Hb=T,Yb=A,Gb=e_,Kb=Mr,zb=h_,Xb=tt,Zb=E,ew=Hb.RangeError,tw=Hb.Int8Array,nw=tw&&tw.prototype,rw=nw&&nw.set,ow=Gb.aTypedArray,iw=Gb.exportTypedArrayMethod,aw=!Zb((function(){var e=new Uint8ClampedArray(2);return Yb(rw,e,{length:1,0:3},1),3!==e[1]})),sw=aw&&Gb.NATIVE_ARRAY_BUFFER_VIEWS&&Zb((function(){var e=new tw(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));iw("set",(function(e){ow(this);var t=zb(arguments.length>1?arguments[1]:void 0,1),n=Xb(e);if(aw)return Yb(rw,this,n,t);var r=this.length,o=Kb(n),i=0;if(o+t>r)throw new ew("Wrong length");for(;i<o;)this[t+i]=n[i++]}),!aw||sw);var uw=ii,cw=e_.aTypedArray,lw=e_.getTypedArrayConstructor;(0,e_.exportTypedArrayMethod)("slice",(function(e,t){for(var n=uw(cw(this),e,t),r=lw(this),o=0,i=n.length,a=new r(i);i>o;)a[o]=n[o++];return a}),E((function(){new Int8Array(1).slice()})));var dw=da.some,fw=e_.aTypedArray;(0,e_.exportTypedArrayMethod)("some",(function(e){return dw(fw(this),e,arguments.length>1?arguments[1]:void 0)}));var pw=ii,vw=Math.floor,hw=function(e,t){var n=e.length;if(n<8)for(var r,o,i=1;i<n;){for(o=i,r=e[i];o&&t(e[o-1],r)>0;)e[o]=e[--o];o!==i++&&(e[o]=r)}else for(var a=vw(n/2),s=hw(pw(e,0,a),t),u=hw(pw(e,a),t),c=s.length,l=u.length,d=0,f=0;d<c||f<l;)e[d+f]=d<c&&f<l?t(s[d],u[f])<=0?s[d++]:u[f++]:d<c?s[d++]:u[f++];return e},gw=hw,mw=de.match(/firefox\/(\d+)/i),yw=!!mw&&+mw[1],Tw=/MSIE|Trident/.test(de),Rw=de.match(/AppleWebKit\/(\d+)\./),Ew=!!Rw&&+Rw[1],Cw=xi,Iw=E,Sw=Ue,_w=gw,Aw=yw,bw=Tw,ww=ye,Mw=Ew,Ow=e_.aTypedArray,xw=e_.exportTypedArrayMethod,kw=T.Uint16Array,Nw=kw&&Cw(kw.prototype.sort),Uw=!(!Nw||Iw((function(){Nw(new kw(2),null)}))&&Iw((function(){Nw(new kw(2),{})}))),Dw=!!Nw&&!Iw((function(){if(ww)return ww<74;if(Aw)return Aw<67;if(bw)return!0;if(Mw)return Mw<602;var e,t,n=new kw(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(Nw(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));xw("sort",(function(e){return void 0!==e&&Sw(e),Dw?Nw(this,e):_w(Ow(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!Dw||Uw);var Pw=br,Lw=Sr,Vw=e_.aTypedArray,Fw=e_.getTypedArrayConstructor;(0,e_.exportTypedArrayMethod)("subarray",(function(e,t){var n=Vw(this),r=n.length,o=Lw(e,r);return new(Fw(n))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,Pw((void 0===t?r:Lw(t,r))-o))}));var jw=$s,$w=e_,qw=E,Bw=ii,Ww=T.Int8Array,Qw=$w.aTypedArray,Jw=$w.exportTypedArrayMethod,Hw=[].toLocaleString,Yw=!!Ww&&qw((function(){Hw.call(new Ww(1))}));Jw("toLocaleString",(function(){return jw(Hw,Yw?Bw(Qw(this)):Qw(this),Bw(arguments))}),qw((function(){return[1,2].toLocaleString()!==new Ww([1,2]).toLocaleString()}))||!qw((function(){Ww.prototype.toLocaleString.call([1,2])})));var Gw=e_.exportTypedArrayMethod,Kw=E,zw=V,Xw=T.Uint8Array,Zw=Xw&&Xw.prototype||{},eM=[].toString,tM=zw([].join);Kw((function(){eM.call({})}))&&(eM=function(){return tM(this)});var nM=Zw.toString!==eM;Gw("toString",eM,nM);var rM=V,oM=of,iM=Dv.getWeakData,aM=uf,sM=Kt,uM=Y,cM=oe,lM=Fh,dM=ot,fM=Hn.set,pM=Hn.getterFor,vM=da.find,hM=da.findIndex,gM=rM([].splice),mM=0,yM=function(e){return e.frozen||(e.frozen=new TM)},TM=function(){this.entries=[]},RM=function(e,t){return vM(e.entries,(function(e){return e[0]===t}))};TM.prototype={get:function(e){var t=RM(this,e);if(t)return t[1]},has:function(e){return!!RM(this,e)},set:function(e,t){var n=RM(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=hM(this.entries,(function(t){return t[0]===e}));return~t&&gM(this.entries,t,1),!!~t}};var EM,CM={getConstructor:function(e,t,n,r){var o=e((function(e,o){aM(e,i),fM(e,{type:t,id:mM++,frozen:null}),uM(o)||lM(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=pM(t),s=function(e,t,n){var r=a(e),o=iM(sM(t),!0);return!0===o?yM(r).set(t,n):o[r.id]=n,e};return oM(i,{delete:function(e){var t=a(this);if(!cM(e))return!1;var n=iM(e);return!0===n?yM(t).delete(e):n&&dM(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!cM(e))return!1;var n=iM(e);return!0===n?yM(t).has(e):n&&dM(n,t.id)}}),oM(i,n?{get:function(e){var t=a(this);if(cM(e)){var n=iM(e);if(!0===n)return yM(t).get(e);if(n)return n[t.id]}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),o}},IM=Wv,SM=T,_M=V,AM=of,bM=Dv,wM=ag,MM=CM,OM=oe,xM=Hn.enforce,kM=E,NM=Mn,UM=Object,DM=Array.isArray,PM=UM.isExtensible,LM=UM.isFrozen,VM=UM.isSealed,FM=UM.freeze,jM=UM.seal,$M=!SM.ActiveXObject&&"ActiveXObject"in SM,qM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},BM=wM("WeakMap",qM,MM),WM=BM.prototype,QM=_M(WM.set);if(NM)if($M){EM=MM.getConstructor(qM,"WeakMap",!0),bM.enable();var JM=_M(WM.delete),HM=_M(WM.has),YM=_M(WM.get);AM(WM,{delete:function(e){if(OM(e)&&!PM(e)){var t=xM(this);return t.frozen||(t.frozen=new EM),JM(this,e)||t.frozen.delete(e)}return JM(this,e)},has:function(e){if(OM(e)&&!PM(e)){var t=xM(this);return t.frozen||(t.frozen=new EM),HM(this,e)||t.frozen.has(e)}return HM(this,e)},get:function(e){if(OM(e)&&!PM(e)){var t=xM(this);return t.frozen||(t.frozen=new EM),HM(this,e)?YM(this,e):t.frozen.get(e)}return YM(this,e)},set:function(e,t){if(OM(e)&&!PM(e)){var n=xM(this);n.frozen||(n.frozen=new EM),HM(this,e)?QM(this,e,t):n.frozen.set(e,t)}else QM(this,e,t);return this}})}else IM&&kM((function(){var e=FM([]);return QM(new BM,e,1),!LM(e)}))&&AM(WM,{set:function(e,t){var n;return DM(e)&&(LM(e)?n=FM:VM(e)&&(n=jM)),QM(this,e,t),n&&n(e),this}});var GM=T;To({global:!0,forced:GM.globalThis!==GM},{globalThis:GM});var KM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zM=Nt("span").classList,XM=zM&&zM.constructor&&zM.constructor.prototype,ZM=XM===Object.prototype?void 0:XM,eO=T,tO=KM,nO=ZM,rO=Dc,oO=dn,iO=function(e){if(e&&e.forEach!==rO)try{oO(e,"forEach",rO)}catch(Lk){e.forEach=rO}};for(var aO in tO)tO[aO]&&iO(eO[aO]&&eO[aO].prototype);iO(nO);var sO=T,uO=KM,cO=ZM,lO=ad,dO=dn,fO=wi,pO=yt("iterator"),vO=lO.values,hO=function(e,t){if(e){if(e[pO]!==vO)try{dO(e,pO,vO)}catch(Lk){e[pO]=vO}if(fO(e,t,!0),uO[t])for(var n in lO)if(e[n]!==lO[n])try{dO(e,n,lO[n])}catch(Lk){e[n]=lO[n]}}};for(var gO in uO)hO(sO[gO]&&sO[gO].prototype,gO);hO(cO,"DOMTokenList");var mO=T,yO=$s,TO=ne,RO=km,EO=de,CO=ii,IO=Bm,SO=mO.Function,_O=/MSIE .\./.test(EO)||"BUN"===RO&&function(){var e=mO.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),AO=function(e,t){var n=t?2:1;return _O?function(r,o){var i=IO(arguments.length,1)>n,a=TO(r)?r:SO(r),s=i?CO(arguments,n):[],u=i?function(){yO(a,this,s)}:a;return t?e(u,o):e(u)}:e},bO=To,wO=T,MO=AO(wO.setInterval,!0);bO({global:!0,bind:!0,forced:wO.setInterval!==MO},{setInterval:MO});var OO=To,xO=T,kO=AO(xO.setTimeout,!0);OO({global:!0,bind:!0,forced:xO.setTimeout!==kO},{setTimeout:kO});var NO,UO=(NO="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){e=void 0!==(e=e||{})?e:{};var t,n,r=WXWebAssembly;e.ready=new Promise((function(e,r){t=e,n=r}));var o=Object.assign({},e),i="./this.program",a="object"==("undefined"==typeof window?"undefined":h(window)),s="function"==typeof importScripts;"object"==("undefined"==typeof process?"undefined":h(process))&&"object"==h(process.versions)&&process.versions.node;var c="";(a||s)&&(s?c=self.location.href:"undefined"!=typeof document&&document.currentScript&&(c=document.currentScript.src),NO&&(c=NO),c=0!==c.indexOf("blob:")?c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1):"");var v,g=e.print||console.log.bind(console),m=e.printErr||console.warn.bind(console);Object.assign(e,o),o=null,e.arguments&&e.arguments,e.thisProgram&&(i=e.thisProgram),e.quit&&e.quit,e.wasmBinary&&e.wasmBinary,e.noExitRuntime,"object"!=h(r)&&j("no native wasm support detected");var y,T,R,E,C,I,S,_,A,b,w=!1,M="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function O(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&M)return M.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function x(e,t){return e?O(R,e,t):""}function k(e,t,n,r){if(!(r>0))return 0;for(var o=n,i=n+r-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(n>=i)break;t[n++]=s}else if(s<=2047){if(n+1>=i)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=i)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+3>=i)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-o}function N(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}e.INITIAL_MEMORY;var U,D=[],P=[],L=[],V=0,F=null;function j(t){e.onAbort&&e.onAbort(t),m(t="Aborted("+t+")"),w=!0,t+=". Build with -sASSERTIONS for more info.";var r=new Error(t);throw n(r),r}function $(t){for(;t.length>0;)t.shift()(e)}function q(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}(U="RTCRoomEngine.wasm").startsWith("data:application/octet-stream;base64,")||(U=function(t){return e.locateFile?e.locateFile(t,c):c+t}(U));var B=void 0;function W(e){for(var t="",n=e;R[n];)t+=B[R[n++]];return t}var Q={},J={},H={};function Y(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?"_"+e:e}function G(e,t){return e=Y(e),function(){return t.apply(this,arguments)}}function K(e,t){var n=G(t,(function(e){this.name=t,this.message=e;var n=new Error(e).stack;void 0!==n&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))}));return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var z=void 0;function X(e){throw new z(e)}var Z=void 0;function ee(e){throw new Z(e)}function te(e,t,n){function r(t){var r=n(t);r.length!==e.length&&ee("Mismatched type converter count");for(var o=0;o<e.length;++o)ne(e[o],r[o])}e.forEach((function(e){H[e]=t}));var o=new Array(t.length),i=[],a=0;t.forEach((function(e,t){J.hasOwnProperty(e)?o[t]=J[e]:(i.push(e),Q.hasOwnProperty(e)||(Q[e]=[]),Q[e].push((function(){o[t]=J[e],++a===i.length&&r(o)})))})),0===i.length&&r(o)}function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var r=t.name;if(e||X('type "'+r+'" must have a positive integer typeid pointer'),J.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;X("Cannot register type '"+r+"' twice")}if(J[e]=t,delete H[e],Q.hasOwnProperty(e)){var o=Q[e];delete Q[e],o.forEach((function(e){return e()}))}}function re(e){if(!(this instanceof _e))return!1;if(!(e instanceof _e))return!1;for(var t=this.$$.ptrType.registeredClass,n=this.$$.ptr,r=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;r.baseClass;)o=r.upcast(o),r=r.baseClass;return t===r&&n===o}function oe(e){X(e.$$.ptrType.registeredClass.name+" instance already deleted")}var ie=!1;function ae(e){}function se(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function ue(e,t,n){if(t===n)return e;if(void 0===n.baseClass)return null;var r=ue(e,t,n.baseClass);return null===r?null:n.downcast(r)}var ce={};function le(){return Object.keys(ge).length}function de(){var e=[];for(var t in ge)ge.hasOwnProperty(t)&&e.push(ge[t]);return e}var fe=[];function pe(){for(;fe.length;){var e=fe.pop();e.$$.deleteScheduled=!1,e.delete()}}var ve=void 0;function he(e){ve=e,fe.length&&ve&&ve(pe)}var ge={};function me(e,t){return t=function(e,t){for(void 0===t&&X("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),ge[t]}function ye(e,t){return t.ptrType&&t.ptr||ee("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&ee("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Re(Object.create(e,{$$:{value:t}}))}function Te(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=me(this.registeredClass,t);if(void 0!==n){if(0===n.$$.count.value)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var r=n.clone();return this.destructor(e),r}function o(){return this.isSmartPointer?ye(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):ye(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,a=this.registeredClass.getActualType(t),s=ce[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=ue(t,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?ye(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:e}):ye(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Re(e){return"undefined"==typeof FinalizationRegistry?(Re=function(e){return e},e):(ie=new FinalizationRegistry((function(e){se(e.$$)})),Re=function(e){var t=e.$$;if(t.smartPtr){var n={$$:t};ie.register(e,n,e)}return e},ae=function(e){return ie.unregister(e)},Re(e))}function Ee(){if(this.$$.ptr||oe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Re(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function Ce(){this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&X("Object already scheduled for deletion"),ae(this),se(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Ie(){return!this.$$.ptr}function Se(){return this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&X("Object already scheduled for deletion"),fe.push(this),1===fe.length&&ve&&ve(pe),this.$$.deleteScheduled=!0,this}function _e(){}function Ae(e,t,n){if(void 0===e[t].overloadTable){var r=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||X("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[r.argCount]=r}}function be(e,t,n,r,o,i,a,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=r,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function we(e,t,n){for(;t!==n;)t.upcast||X("Expected null or instance of "+n.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Me(e,t){if(null===t)return this.isReference&&X("null is not a valid "+this.name),0;t.$$||X('Cannot pass "'+Ze(t)+'" as a '+this.name),t.$$.ptr||X("Cannot pass deleted object as a pointer of type "+this.name);var n=t.$$.ptrType.registeredClass;return we(t.$$.ptr,n,this.registeredClass)}function Oe(e,t){var n;if(null===t)return this.isReference&&X("null is not a valid "+this.name),this.isSmartPointer?(n=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,n),n):0;t.$$||X('Cannot pass "'+Ze(t)+'" as a '+this.name),t.$$.ptr||X("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&X("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;if(n=we(t.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&X("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:X("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var o=t.clone();n=this.rawShare(n,Xe.toHandle((function(){o.delete()}))),null!==e&&e.push(this.rawDestructor,n)}break;default:X("Unsupporting sharing policy")}return n}function xe(e,t){if(null===t)return this.isReference&&X("null is not a valid "+this.name),0;t.$$||X('Cannot pass "'+Ze(t)+'" as a '+this.name),t.$$.ptr||X("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&X("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;return we(t.$$.ptr,n,this.registeredClass)}function ke(e){return this.fromWireType(I[e>>2])}function Ne(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ue(e){this.rawDestructor&&this.rawDestructor(e)}function De(e){null!==e&&e.delete()}function Pe(e,t,n,r,o,i,a,s,u,c,l){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=r,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=l,o||void 0!==t.baseClass?this.toWireType=Oe:r?(this.toWireType=Me,this.destructorFunction=null):(this.toWireType=xe,this.destructorFunction=null)}var Le=[];function Ve(e){var t=Le[e];return t||(e>=Le.length&&(Le.length=e+1),Le[e]=t=b.get(e)),t}function Fe(t,n,r){return t.includes("j")?function(t,n,r){var o=e["dynCall_"+t];return r&&r.length?o.apply(null,[n].concat(r)):o.call(null,n)}(t,n,r):Ve(n).apply(null,r)}function je(e,t){var n,r,o,i=(e=W(e)).includes("j")?(n=e,r=t,o=[],function(){return o.length=0,Object.assign(o,arguments),Fe(n,r,o)}):Ve(t);return"function"!=typeof i&&X("unknown function pointer with signature "+e+": "+t),i}var $e=void 0;function qe(e){var t=Ot(e),n=W(t);return wt(t),n}function Be(e,t){var n=[],r={};throw t.forEach((function e(t){r[t]||J[t]||(H[t]?H[t].forEach(e):(n.push(t),r[t]=!0))})),new $e(e+": "+n.map(qe).join([", "]))}function We(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Qe(e,t,n,r,o){var i=t.length;i<2&&X("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==n,s=!1,u=1;u<t.length;++u)if(null!==t[u]&&void 0===t[u].destructorFunction){s=!0;break}var c="void"!==t[0].name,l=i-2,d=new Array(l),f=[],p=[];return function(){var n;arguments.length!==l&&X("function "+e+" called with "+arguments.length+" arguments, expected "+l+" args!"),p.length=0,f.length=a?2:1,f[0]=o,a&&(n=t[1].toWireType(p,this),f[1]=n);for(var i=0;i<l;++i)d[i]=t[i+2].toWireType(p,arguments[i]),f.push(d[i]);return function(e){if(s)We(p);else for(var r=a?1:2;r<t.length;r++){var o=1===r?n:d[r-2];null!==t[r].destructorFunction&&t[r].destructorFunction(o)}if(c)return t[0].fromWireType(e)}(r.apply(null,f))}}function Je(e,t){for(var n=[],r=0;r<e;r++)n.push(S[t+4*r>>2]);return n}var He=[],Ye=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Ge(e){e>4&&0==--Ye[e].refcount&&(Ye[e]=void 0,He.push(e))}function Ke(){for(var e=0,t=5;t<Ye.length;++t)void 0!==Ye[t]&&++e;return e}function ze(){for(var e=5;e<Ye.length;++e)if(void 0!==Ye[e])return Ye[e];return null}var Xe={toValue:function(e){return e||X("Cannot use deleted val. handle = "+e),Ye[e].value},toHandle:function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=He.length?He.pop():Ye.length;return Ye[t]={refcount:1,value:e},t}}};function Ze(e){if(null===e)return"null";var t=h(e);return"object"===t||"array"===t||"function"===t?e.toString():""+e}function et(e,t){switch(t){case 2:return function(e){return this.fromWireType(_[e>>2])};case 3:return function(e){return this.fromWireType(A[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function tt(e,t,n){switch(t){case 0:return n?function(e){return T[e]}:function(e){return R[e]};case 1:return n?function(e){return E[e>>1]}:function(e){return C[e>>1]};case 2:return n?function(e){return I[e>>2]}:function(e){return S[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var nt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function rt(e,t){for(var n=e,r=n>>1,o=r+t/2;!(r>=o)&&C[r];)++r;if((n=r<<1)-e>32&&nt)return nt.decode(R.subarray(e,n));for(var i="",a=0;!(a>=t/2);++a){var s=E[e+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function ot(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=t,o=(n-=2)<2*e.length?n/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);E[t>>1]=a,t+=2}return E[t>>1]=0,t-r}function it(e){return 2*e.length}function at(e,t){for(var n=0,r="";!(n>=t/4);){var o=I[e+4*n>>2];if(0==o)break;if(++n,o>=65536){var i=o-65536;r+=String.fromCharCode(55296|i>>10,56320|1023&i)}else r+=String.fromCharCode(o)}return r}function st(e,t,n){if(void 0===n&&(n=2147483647),n<4)return 0;for(var r=t,o=r+n-4,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),I[t>>2]=a,(t+=4)+4>o)break}return I[t>>2]=0,t-r}function ut(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&++n,t+=4}return t}function ct(e,t){var n=J[e];return void 0===n&&X(t+" has unknown type "+qe(e)),n}function lt(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=ct(S[t+4*r>>2],"parameter "+r);return n}var dt={};function ft(e){var t=dt[e];return void 0===t?W(e):t}var pt=[];function vt(){if("object"==("undefined"==typeof globalThis?"undefined":h(globalThis)))return globalThis;function e(e){e.$$$embind_global$$$=e;var t="object"==("undefined"==typeof $$$embind_global$$$?"undefined":h($$$embind_global$$$))&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==("undefined"==typeof $$$embind_global$$$?"undefined":h($$$embind_global$$$)))return $$$embind_global$$$;if("object"==("undefined"==typeof global?"undefined":h(global))&&e(global)?$$$embind_global$$$=global:"object"==("undefined"==typeof self?"undefined":h(self))&&e(self)&&($$$embind_global$$$=self),"object"==("undefined"==typeof $$$embind_global$$$?"undefined":h($$$embind_global$$$)))return $$$embind_global$$$;throw Error("unable to get global object.")}var ht,gt=[],mt={};ht=function(){return performance.now()};var yt={};function Tt(){if(!Tt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":h(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:i||"./this.program"};for(var t in yt)void 0===yt[t]?delete e[t]:e[t]=yt[t];var n=[];for(var t in e)n.push(t+"="+e[t]);Tt.strings=n}return Tt.strings}var Rt=[null,[],[]];function Et(e,t){var n=Rt[e];0===t||10===t?((1===e?g:m)(O(n,0)),n.length=0):n.push(t)}function Ct(e){return e%4==0&&(e%100!=0||e%400==0)}var It=[31,29,31,30,31,30,31,31,30,31,30,31],St=[31,28,31,30,31,30,31,31,30,31,30,31];function _t(e,t,n,r){var o=I[r+40>>2],i={tm_sec:I[r>>2],tm_min:I[r+4>>2],tm_hour:I[r+8>>2],tm_mday:I[r+12>>2],tm_mon:I[r+16>>2],tm_year:I[r+20>>2],tm_wday:I[r+24>>2],tm_yday:I[r+28>>2],tm_isdst:I[r+32>>2],tm_gmtoff:I[r+36>>2],tm_zone:o?x(o):""},a=x(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,n){for(var r="number"==typeof e?e.toString():e||"";r.length<t;)r=n[0]+r;return r}function f(e,t){return d(e,t,"0")}function p(e,t){function n(e){return e<0?-1:e>0?1:0}var r;return 0===(r=n(e.getFullYear()-t.getFullYear()))&&0===(r=n(e.getMonth()-t.getMonth()))&&(r=n(e.getDate()-t.getDate())),r}function v(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function h(e){var t=function(e,t){for(var n=new Date(e.getTime());t>0;){var r=Ct(n.getFullYear()),o=n.getMonth(),i=(r?It:St)[o];if(!(t>i-n.getDate()))return n.setDate(n.getDate()+t),n;t-=i-n.getDate()+1,n.setDate(1),o<11?n.setMonth(o+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}(new Date(e.tm_year+1900,0,1),e.tm_yday),n=new Date(t.getFullYear(),0,4),r=new Date(t.getFullYear()+1,0,4),o=v(n),i=v(r);return p(o,t)<=0?p(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var g={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return l[e.tm_mon].substring(0,3)},"%B":function(e){return l[e.tm_mon]},"%C":function(e){return f((e.tm_year+1900)/100|0,2)},"%d":function(e){return f(e.tm_mday,2)},"%e":function(e){return d(e.tm_mday,2," ")},"%g":function(e){return h(e).toString().substring(2)},"%G":function(e){return h(e)},"%H":function(e){return f(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),f(t,2)},"%j":function(e){return f(e.tm_mday+function(e,t){for(var n=0,r=0;r<=t;n+=e[r++]);return n}(Ct(e.tm_year+1900)?It:St,e.tm_mon-1),3)},"%m":function(e){return f(e.tm_mon+1,2)},"%M":function(e){return f(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return f(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=e.tm_yday+7-e.tm_wday;return f(Math.floor(t/7),2)},"%V":function(e){var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var n=(e.tm_wday+371-e.tm_yday)%7;4==n||3==n&&Ct(e.tm_year)||(t=1)}}else{t=52;var r=(e.tm_wday+7-e.tm_yday-1)%7;(4==r||5==r&&Ct(e.tm_year%400-1))&&t++}return f(t,2)},"%w":function(e){return e.tm_wday},"%W":function(e){var t=e.tm_yday+7-(e.tm_wday+6)%7;return f(Math.floor(t/7),2)},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,n=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(n?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var u in a=a.replace(/%%/g,"\0\0"),g)a.includes(u)&&(a=a.replace(new RegExp(u,"g"),g[u](i)));a=a.replace(/\0\0/g,"%");var m,y,R,E,C,S,_=(m=a,y=!1,E=R>0?R:N(m)+1,C=new Array(E),S=k(m,C,0,C.length),y&&(C.length=S),C);return _.length>t?0:(function(e,t){T.set(e,t)}(_,e),_.length-1)}!function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);B=e}(),z=e.BindingError=K(Error,"BindingError"),Z=e.InternalError=K(Error,"InternalError"),_e.prototype.isAliasOf=re,_e.prototype.clone=Ee,_e.prototype.delete=Ce,_e.prototype.isDeleted=Ie,_e.prototype.deleteLater=Se,e.getInheritedInstanceCount=le,e.getLiveInheritedInstances=de,e.flushPendingDeletes=pe,e.setDelayFunction=he,Pe.prototype.getPointee=Ne,Pe.prototype.destructor=Ue,Pe.prototype.argPackAdvance=8,Pe.prototype.readValueFromPointer=ke,Pe.prototype.deleteObject=De,Pe.prototype.fromWireType=Te,$e=e.UnboundTypeError=K(Error,"UnboundTypeError"),e.count_emval_handles=Ke,e.get_first_emval=ze;var At={__assert_fail:function(e,t,n,r){j("Assertion failed: "+x(e)+", at: "+[t?x(t):"unknown filename",n,r?x(r):"unknown function"])},_embind_register_bigint:function(e,t,n,r,o){},_embind_register_bool:function(e,t,n,r,o){var i=q(n);ne(e,{name:t=W(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:o},argPackAdvance:8,readValueFromPointer:function(e){var r;if(1===n)r=T;else if(2===n)r=E;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+t);r=I}return this.fromWireType(r[e>>i])},destructorFunction:null})},_embind_register_class:function(t,n,r,o,i,a,s,u,c,l,d,f,p){d=W(d),a=je(i,a),u&&(u=je(s,u)),l&&(l=je(c,l)),p=je(f,p);var v=Y(d);!function(t,n,r){e.hasOwnProperty(t)?((void 0===r||void 0!==e[t].overloadTable&&void 0!==e[t].overloadTable[r])&&X("Cannot register public name '"+t+"' twice"),Ae(e,t,t),e.hasOwnProperty(r)&&X("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),e[t].overloadTable[r]=n):(e[t]=n,void 0!==r&&(e[t].numArguments=r))}(v,(function(){Be("Cannot construct "+d+" due to unbound types",[o])})),te([t,n,r],o?[o]:[],(function(n){var r,i;n=n[0],i=o?(r=n.registeredClass).instancePrototype:_e.prototype;var s=G(v,(function(){if(Object.getPrototypeOf(this)!==c)throw new z("Use 'new' to construct "+d);if(void 0===f.constructor_body)throw new z(d+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new z("Tried to invoke ctor of "+d+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(f.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),c=Object.create(i,{constructor:{value:s}});s.prototype=c;var f=new be(d,s,c,p,r,a,u,l),h=new Pe(d,f,!0,!1,!1),g=new Pe(d+"*",f,!1,!1,!1),m=new Pe(d+" const*",f,!1,!0,!1);return ce[t]={pointerType:g,constPointerType:m},function(t,n,r){e.hasOwnProperty(t)||ee("Replacing nonexistant public symbol"),void 0!==e[t].overloadTable&&void 0!==r?e[t].overloadTable[r]=n:(e[t]=n,e[t].argCount=r)}(v,s),[h,g,m]}))},_embind_register_class_class_function:function(e,t,n,r,o,i,a){var s=Je(n,r);t=W(t),i=je(o,i),te([],[e],(function(e){var r=(e=e[0]).name+"."+t;function o(){Be("Cannot call "+r+" due to unbound types",s)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var u=e.registeredClass.constructor;return void 0===u[t]?(o.argCount=n-1,u[t]=o):(Ae(u,t,r),u[t].overloadTable[n-1]=o),te([],s,(function(e){var o=[e[0],null].concat(e.slice(1)),s=Qe(r,o,null,i,a);return void 0===u[t].overloadTable?(s.argCount=n-1,u[t]=s):u[t].overloadTable[n-1]=s,[]})),[]}))},_embind_register_class_constructor:function(e,t,n,r,o,i){var a;t>0||j(a);var s=Je(t,n);o=je(r,o),te([],[e],(function(e){var n="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new z("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){Be("Cannot construct "+e.name+" due to unbound types",s)},te([],s,(function(r){return r.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Qe(n,r,null,o,i),[]})),[]}))},_embind_register_class_function:function(e,t,n,r,o,i,a,s){var u=Je(n,r);t=W(t),i=je(o,i),te([],[e],(function(e){var r=(e=e[0]).name+"."+t;function o(){Be("Cannot call "+r+" due to unbound types",u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,l=c[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===n-2?(o.argCount=n-2,o.className=e.name,c[t]=o):(Ae(c,t,r),c[t].overloadTable[n-2]=o),te([],u,(function(o){var s=Qe(r,o,e,i,a);return void 0===c[t].overloadTable?(s.argCount=n-2,c[t]=s):c[t].overloadTable[n-2]=s,[]})),[]}))},_embind_register_emval:function(e,t){ne(e,{name:t=W(t),fromWireType:function(e){var t=Xe.toValue(e);return Ge(e),t},toWireType:function(e,t){return Xe.toHandle(t)},argPackAdvance:8,readValueFromPointer:ke,destructorFunction:null})},_embind_register_float:function(e,t,n){var r=q(n);ne(e,{name:t=W(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:et(t,r),destructorFunction:null})},_embind_register_integer:function(e,t,n,r,o){t=W(t);var i=q(n),a=function(e){return e};if(0===r){var s=32-8*n;a=function(e){return e<<s>>>s}}var u=t.includes("unsigned");ne(e,{name:t,fromWireType:a,toWireType:u?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:tt(t,i,0!==r),destructorFunction:null})},_embind_register_memory_view:function(e,t,n){var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=S,n=t[e>>=2],o=t[e+1];return new r(y,o,n)}ne(e,{name:n=W(n),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},_embind_register_smart_ptr:function(e,t,n,r,o,i,a,s,u,c,l,d){n=W(n),i=je(o,i),s=je(a,s),c=je(u,c),d=je(l,d),te([e],[t],(function(e){return e=e[0],[new Pe(n,e.registeredClass,!1,!1,!0,e,r,i,s,c,d)]}))},_embind_register_std_string:function(e,t){var n="std::string"===(t=W(t));ne(e,{name:t,fromWireType:function(e){var t,r=S[e>>2],o=e+4;if(n)for(var i=o,a=0;a<=r;++a){var s=o+a;if(a==r||0==R[s]){var u=x(i,s-i);void 0===t?t=u:(t+=String.fromCharCode(0),t+=u),i=s+1}}else{var c=new Array(r);for(a=0;a<r;++a)c[a]=String.fromCharCode(R[o+a]);t=c.join("")}return wt(e),t},toWireType:function(e,t){var r;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||X("Cannot pass non-string to std::string"),r=n&&o?N(t):t.length;var i=Mt(4+r+1),a=i+4;if(S[i>>2]=r,n&&o)k(t,R,a,r+1);else if(o)for(var s=0;s<r;++s){var u=t.charCodeAt(s);u>255&&(wt(a),X("String has UTF-16 code units that do not fit in 8 bits")),R[a+s]=u}else for(s=0;s<r;++s)R[a+s]=t[s];return null!==e&&e.push(wt,i),i},argPackAdvance:8,readValueFromPointer:ke,destructorFunction:function(e){wt(e)}})},_embind_register_std_wstring:function(e,t,n){var r,o,i,a,s;n=W(n),2===t?(r=rt,o=ot,a=it,i=function(){return C},s=1):4===t&&(r=at,o=st,a=ut,i=function(){return S},s=2),ne(e,{name:n,fromWireType:function(e){for(var n,o=S[e>>2],a=i(),u=e+4,c=0;c<=o;++c){var l=e+4+c*t;if(c==o||0==a[l>>s]){var d=r(u,l-u);void 0===n?n=d:(n+=String.fromCharCode(0),n+=d),u=l+t}}return wt(e),n},toWireType:function(e,r){"string"!=typeof r&&X("Cannot pass non-string to C++ string type "+n);var i=a(r),u=Mt(4+i+t);return S[u>>2]=i>>s,o(r,u+4,i+t),null!==e&&e.push(wt,u),u},argPackAdvance:8,readValueFromPointer:ke,destructorFunction:function(e){wt(e)}})},_embind_register_void:function(e,t){ne(e,{isVoid:!0,name:t=W(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},_emscripten_date_now:function(){return Date.now()},_emscripten_get_now_is_monotonic:function(){return!0},_emval_as:function(e,t,n){e=Xe.toValue(e),t=ct(t,"emval::as");var r=[],o=Xe.toHandle(r);return S[n>>2]=o,t.toWireType(r,e)},_emval_call:function(e,t,n,r){e=Xe.toValue(e);for(var o=lt(t,n),i=new Array(t),a=0;a<t;++a){var s=o[a];i[a]=s.readValueFromPointer(r),r+=s.argPackAdvance}var u=e.apply(void 0,i);return Xe.toHandle(u)},_emval_call_method:function(e,t,n,r,o){return(e=pt[e])(t=Xe.toValue(t),n=ft(n),function(e){var t=[];return S[e>>2]=Xe.toHandle(t),t}(r),o)},_emval_call_void_method:function(e,t,n,r){(e=pt[e])(t=Xe.toValue(t),n=ft(n),null,r)},_emval_decref:Ge,_emval_get_global:function(e){return 0===e?Xe.toHandle(vt()):(e=ft(e),Xe.toHandle(vt()[e]))},_emval_get_method_caller:function(e,t){var n=lt(e,t),r=n[0],o=r.name+"_$"+n.slice(1).map((function(e){return e.name})).join("_")+"$",i=gt[o];if(void 0!==i)return i;var a=new Array(e-1);return i=function(e){var t=pt.length;return pt.push(e),t}((function(t,o,i,s){for(var u=0,c=0;c<e-1;++c)a[c]=n[c+1].readValueFromPointer(s+u),u+=n[c+1].argPackAdvance;var l=t[o].apply(t,a);for(c=0;c<e-1;++c)n[c+1].deleteObject&&n[c+1].deleteObject(a[c]);if(!r.isVoid)return r.toWireType(i,l)})),gt[o]=i,i},_emval_get_module_property:function(t){return t=ft(t),Xe.toHandle(e[t])},_emval_get_property:function(e,t){return e=Xe.toValue(e),t=Xe.toValue(t),Xe.toHandle(e[t])},_emval_incref:function(e){e>4&&(Ye[e].refcount+=1)},_emval_instanceof:function(e,t){return(e=Xe.toValue(e))instanceof(t=Xe.toValue(t))},_emval_is_number:function(e){return"number"==typeof(e=Xe.toValue(e))},_emval_is_string:function(e){return"string"==typeof(e=Xe.toValue(e))},_emval_new:function(e,t,n,r){e=Xe.toValue(e);var o=mt[t];return o||(o=function(e){var t=new Array(e+1);return function(n,r,o){t[0]=n;for(var i=0;i<e;++i){var a=ct(S[r+4*i>>2],"parameter "+i);t[i+1]=a.readValueFromPointer(o),o+=a.argPackAdvance}var s=new(n.bind.apply(n,t));return Xe.toHandle(s)}}(t),mt[t]=o),o(e,n,r)},_emval_new_cstring:function(e){return Xe.toHandle(ft(e))},_emval_run_destructors:function(e){We(Xe.toValue(e)),Ge(e)},_emval_take_value:function(e,t){var n=(e=ct(e,"_emval_take_value")).readValueFromPointer(t);return Xe.toHandle(n)},abort:function(){j("")},emscripten_get_now:ht,emscripten_memcpy_big:function(e,t,n){R.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){R.length,j("OOM")},environ_get:function(e,t){var n=0;return Tt().forEach((function(r,o){var i=t+n;S[e+4*o>>2]=i,function(e,t,n){for(var r=0;r<e.length;++r)T[0|t++]=e.charCodeAt(r);n||(T[0|t]=0)}(r,i),n+=r.length+1})),0},environ_sizes_get:function(e,t){var n=Tt();S[e>>2]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),S[t>>2]=r,0},fd_close:function(e){return 52},fd_seek:function(e,t,n,r,o){return 70},fd_write:function(e,t,n,r){for(var o=0,i=0;i<n;i++){var a=S[t>>2],s=S[t+4>>2];t+=8;for(var u=0;u<s;u++)Et(e,R[a+u]);o+=s}return S[r>>2]=o,0},setTempRet0:function(e){},strftime_l:function(e,t,n,r){return _t(e,t,n,r)}};!function(){var t,r={env:At,wasi_snapshot_preview1:At};function o(t,n){var r,o,i=t.exports;e.asm=i,v=e.asm.memory,r=v.buffer,y=r,e.HEAP8=T=new Int8Array(r),e.HEAP16=E=new Int16Array(r),e.HEAP32=I=new Int32Array(r),e.HEAPU8=R=new Uint8Array(r),e.HEAPU16=C=new Uint16Array(r),e.HEAPU32=S=new Uint32Array(r),e.HEAPF32=_=new Float32Array(r),e.HEAPF64=A=new Float64Array(r),b=e.asm.__indirect_function_table,o=e.asm.__wasm_call_ctors,P.unshift(o),function(){if(V--,e.monitorRunDependencies&&e.monitorRunDependencies(V),0==V&&F){var t=F;F=null,t()}}()}function i(e){o(e.instance)}if(V++,e.monitorRunDependencies&&e.monitorRunDependencies(V),e.instantiateWasm)try{return e.instantiateWasm(r,o)}catch(a){return m("Module.instantiateWasm callback failed with error: "+a),!1}(t=i,WXWebAssembly.instantiate("/static/RTCRoomEngine.wasm.br",r).then((function(e){return e})).then(t,(function(e){m("failed to asynchronously prepare wasm: "+e),j(e)}))).catch(n)}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.__wasm_call_ctors).apply(null,arguments)};var bt,wt=e._free=function(){return(wt=e._free=e.asm.free).apply(null,arguments)},Mt=e._malloc=function(){return(Mt=e._malloc=e.asm.malloc).apply(null,arguments)},Ot=e.___getTypeName=function(){return(Ot=e.___getTypeName=e.asm.__getTypeName).apply(null,arguments)};function xt(n){function r(){bt||(bt=!0,e.calledRun=!0,w||($(P),t(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),L.unshift(t);var t;$(L)}()))}V>0||(function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),D.unshift(t);var t;$(D)}(),V>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),r()}),1)):r()))}if(e.___embind_register_native_and_builtin_types=function(){return(e.___embind_register_native_and_builtin_types=e.asm.__embind_register_native_and_builtin_types).apply(null,arguments)},e.___errno_location=function(){return(e.___errno_location=e.asm.__errno_location).apply(null,arguments)},e.stackSave=function(){return(e.stackSave=e.asm.stackSave).apply(null,arguments)},e.stackRestore=function(){return(e.stackRestore=e.asm.stackRestore).apply(null,arguments)},e.stackAlloc=function(){return(e.stackAlloc=e.asm.stackAlloc).apply(null,arguments)},e.dynCall_vijii=function(){return(e.dynCall_vijii=e.asm.dynCall_vijii).apply(null,arguments)},e.dynCall_viji=function(){return(e.dynCall_viji=e.asm.dynCall_viji).apply(null,arguments)},e.dynCall_vijiiii=function(){return(e.dynCall_vijiiii=e.asm.dynCall_vijiiii).apply(null,arguments)},e.dynCall_viijii=function(){return(e.dynCall_viijii=e.asm.dynCall_viijii).apply(null,arguments)},e.dynCall_viij=function(){return(e.dynCall_viij=e.asm.dynCall_viij).apply(null,arguments)},e.dynCall_jiji=function(){return(e.dynCall_jiji=e.asm.dynCall_jiji).apply(null,arguments)},e.dynCall_iiiiij=function(){return(e.dynCall_iiiiij=e.asm.dynCall_iiiiij).apply(null,arguments)},e.dynCall_iiiiijj=function(){return(e.dynCall_iiiiijj=e.asm.dynCall_iiiiijj).apply(null,arguments)},e.dynCall_iiiiiijj=function(){return(e.dynCall_iiiiiijj=e.asm.dynCall_iiiiiijj).apply(null,arguments)},F=function e(){bt||xt(),bt||(F=e)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();xt();var kt,Nt=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};function Ut(e){if("string"!=typeof e)return e;var t;try{var n=JSON.parse(e);t="object"===h(n)&&n?n:e}catch(Lk){t=e}return t}!function(e){e[e.APNs=0]="APNs",e[e.VoIP=1]="VoIP"}(kt||(kt={}));var Dt=function(){return l((function e(){u(this,e)}),null,[{key:"getDeviceInfo",value:function(){var t={osName:"",osVersion:"",deviceName:"",framework:""};if(e.isWXMiniProgram){var n=wx.getSystemInfoSync(),r=f(n.system.split(" "),2),o=r[0],i=r[1];return t.osName=o,t.osVersion=i,t.deviceName=n.model,t.framework="wxMiniProgram",t}var a=e.rtcDetect.getSystem().browser,s=e.rtcDetect.getSystem().OS,u=e.isElectron?"electron":"web";return t.osName=a.name,t.osVersion=a.version,t.deviceName=s,t.framework=u,t}}])}(),Pt=function(){function e(){u(this,e)}return l(e,null,[{key:"startInterval",value:function(t,n,r){var o=setInterval((function(){var n;(null===(n=null==e?void 0:e.timerMap)||void 0===n?void 0:n.has(t))&&e.timerMap.get(t).callback.onInterval(t)}),n);e.timerMap.set(t,{timer:o,callback:r})}},{key:"stopInterval",value:function(t){var n;if(null===(n=null==e?void 0:e.timerMap)||void 0===n?void 0:n.has(t)){var r=e.timerMap.get(t);r&&r.timer&&(clearInterval(r.timer),r.callback.delete(),e.timerMap.delete(t))}}},{key:"startTimeout",value:function(e,t){return Nt(this,void 0,void 0,d().mark((function n(){return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:setTimeout((function(){t.onTimeout(),t.delete()}),e);case 1:case"end":return n.stop()}}),n)})))}}])}();Pt.timerMap=new Map,e.JSTimer=Pt,e.JSSystemInfo=Dt,Nt=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Lt=e.TIM,Vt=function(){function e(t){return u(this,e),this.waitingReadyQueue=[],this.logger=t&&t.logger||console,this.onTIMReadyStateUpdate=this.onTIMReadyStateUpdate.bind(this),e.chatLoginManager||(e.chatLoginManager=this),e.chatLoginManager}return l(e,[{key:"login",value:function(t){return Nt(this,void 0,void 0,d().mark((function n(){var r,o,i,a,s,u=this;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=Object.assign({},t),o=r.userId,i=r.userSig,a=r.chat,!this.isTIMVersionBelowV3(a)){n.next=3;break}throw new Error("Current chat version is not supported, please use v3.");case 3:if(e.chat=a,this.bindTIMEvent(),!(s=e.chat.getLoginUser())){n.next=21;break}if(s!==o){n.next=15;break}if(!e.chat.isReady()){n.next=12;break}return n.abrupt("return");case 12:return n.abrupt("return",new Promise((function(e,t){u.addLoginHandler({userId:o,resolve:e,reject:t})})));case 13:n.next=19;break;case 15:return n.next=17,this.doLogout();case 17:return n.next=19,this.doLogin({userId:o,userSig:i});case 19:n.next=23;break;case 21:return n.next=23,this.doLogin({userId:o,userSig:i});case 23:case"end":return n.stop()}}),n,this)})))}},{key:"doLogin",value:function(t){return Nt(this,void 0,void 0,d().mark((function n(){var r,o,i,a=this;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Object.assign({},t),o=r.userId,i=r.userSig,n.abrupt("return",new Promise((function(t,n){return Nt(a,void 0,void 0,d().mark((function r(){var a;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,this.logger.debug("[tim] chat.login with userId: ",o),r.next=4,e.chat.login({userID:o,userSig:i});case 4:if(a=r.sent,this.logger.info("[tim] chat.login success:",a),!a.data.repeatLogin||!e.chat.isReady()){r.next=9;break}return t(!0),r.abrupt("return");case 9:this.addLoginHandler({userId:o,resolve:t,reject:n}),r.next=16;break;case 12:r.prev=12,r.t0=r.catch(0),this.logger.debug("[tim] chat.login error: ",r.t0,r.t0.code),2025===r.t0.code?this.addLoginHandler({userId:o,resolve:t,reject:n}):n(r.t0);case 16:case"end":return r.stop()}}),r,this,[[0,12]])})))})));case 2:case"end":return n.stop()}}),n)})))}},{key:"logout",value:function(){return Nt(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.doLogout();case 2:e.chat=null;case 3:case"end":return t.stop()}}),t,this)})))}},{key:"doLogout",value:function(){return Nt(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.chat){t.next=2;break}return t.abrupt("return");case 2:return this.logger.debug("[tim] chat.logout."),t.next=5,e.chat.logout();case 5:this.logger.info("[tim] chat.logout success.");case 6:case"end":return t.stop()}}),t,this)})))}},{key:"isTIMVersionBelowV3",value:function(e){return e&&"function"!=typeof e.addSignalingListener}},{key:"addLoginHandler",value:function(e){var t=this;this.waitingReadyQueue.push(e),setTimeout((function(){var n=t.waitingReadyQueue.findIndex((function(t){return t===e}));n<0||(t.waitingReadyQueue.splice(n,1),e.reject(new Error("login timeout")))}),2e3)}},{key:"onTIMReadyStateUpdate",value:function(t){if(this.logger.debug("onTIMReadyStateUpdate event:",t.name),t.name===Lt.EVENT.SDK_READY){var n=e.chat.getLoginUser();this.waitingReadyQueue.forEach((function(e){e.userId===n?e.resolve():e.reject(new Error("user ".concat(n," has Logged")))}))}else this.waitingReadyQueue.forEach((function(e){return e.reject(new Error("sdk not ready"))}));this.waitingReadyQueue=[]}},{key:"bindTIMEvent",value:function(){var t,n,r,o;null===(t=e.chat)||void 0===t||t.off(Lt.EVENT.SDK_READY,this.onTIMReadyStateUpdate),null===(n=e.chat)||void 0===n||n.off(Lt.EVENT.SDK_NOT_READY,this.onTIMReadyStateUpdate),null===(r=e.chat)||void 0===r||r.on(Lt.EVENT.SDK_READY,this.onTIMReadyStateUpdate),null===(o=e.chat)||void 0===o||o.on(Lt.EVENT.SDK_NOT_READY,this.onTIMReadyStateUpdate)}}])}(),Ft=(Nt=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},e.TIM),jt=Ft.TSignaling,$t=["callExperimentalAPI","invite","inviteInGroup","accept","reject","cancel","modifyInvitation","getUserStatus"],qt=function(){return l((function t(){u(this,t),this.chatLoginManager=new Vt({logger:e.logger}),this.isExternalIncomingTim=!1,this.onError=this.onError.bind(this),this.onRoomCustomDataReceived=this.onRoomCustomDataReceived.bind(this),this.onKickedOut=this.onKickedOut.bind(this),this.onNetStateChange=this.onNetStateChange.bind(this),this.onServerConfigUpdated=this.onServerConfigUpdated.bind(this),this.onNewMessageReceived=this.onNewMessageReceived.bind(this),this.onNewInvitationReceived=this.onNewInvitationReceived.bind(this),this.onInviteeAccepted=this.onInviteeAccepted.bind(this),this.onInviteeRejected=this.onInviteeRejected.bind(this),this.onInvitationCancelled=this.onInvitationCancelled.bind(this),this.onInvitationTimeout=this.onInvitationTimeout.bind(this)}),[{key:"bindObserver",value:function(e){this.nativeObserver=e}},{key:"unBindObserver",value:function(){this.nativeObserver&&this.nativeObserver.delete(),this.nativeObserver=null}},{key:"getLoginUser",value:function(){var e,t=null===(e=this.tim)||void 0===e?void 0:e.getLoginUser();return null!=t?t:""}},{key:"callJS",value:function(t,n,r){return Nt(this,void 0,void 0,d().mark((function o(){var i;return d().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,!(a=e.tim)||"function"==typeof a.addSignalingListener){o.next=4;break}return r.onError(-1,"The current npm package you are using, tim-js-sdk, does not match the current dependency version of TUIRoom. We recommend upgrading to the new npm package @tencentCloud/chat for continued support and updates."),o.abrupt("return");case 4:if(e.tim||"login"===t){o.next=7;break}return r.onError(2024,"please login firstly"),o.abrupt("return");case 7:i=Ut(n),"invite"!==t&&"inviteInGroup"!==t||(i.offlinePushInfo=Ut(i.offlinePushInfo)||{}),"callExperimentalAPI"!==t&&e.logger.debug("[tim] ".concat(t," with params"),i),"getUserStatus"==t&&(i.userIDList=Ut(i.userIDList)),o.t0=t,o.next="logout"===o.t0?14:"login"===o.t0||"updateMyProfile"===o.t0?17:20;break;case 14:return o.next=16,this.logout(r);case 16:case 19:return o.abrupt("break",22);case 17:return o.next=19,this[t](i,r);case 20:return o.next=22,this.timFunction(t,i,r);case 22:return o.prev=22,r.delete(),o.finish(22);case 25:case"end":return o.stop()}var a}),o,this,[[0,,22,25]])})))}},{key:"login",value:function(t,n){return Nt(this,void 0,void 0,d().mark((function r(){var o,i,a,s,u;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.assign({},t),i=o.sdkAppId,a=o.userId,s=o.userSig,u=o.testEnv,e.logger.debug("[tim] login with params",i,a),this.tim||(e.tim?(this.tim=e.tim,this.isExternalIncomingTim=!0):(this.tim=Ft.create({SDKAppID:i,testEnv:u}),e.tim=this.tim,this.isExternalIncomingTim=!1),this.bindTIMEvent()),r.prev=3,r.next=6,this.chatLoginManager.login({sdkAppId:i,userId:a,userSig:s,testEnv:u,chat:this.tim});case 6:n.onSuccess(null),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(3),n.onError(r.t0.code||-1,r.t0.message);case 12:case"end":return r.stop()}}),r,this,[[3,9]])})))}},{key:"logout",value:function(t){return Nt(this,void 0,void 0,d().mark((function n(){return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.logger.debug("[tim] logout. isExternalIncomingTim: ",this.isExternalIncomingTim),!this.isExternalIncomingTim){n.next=6;break}e.tim=this.tim=null,t.onSuccess(null),n.next=17;break;case 6:return n.prev=6,n.next=9,this.chatLoginManager.logout();case 9:this.unbindTIMEvent(),e.tim=this.tim=null,t.onSuccess(null),n.next=17;break;case 14:n.prev=14,n.t0=n.catch(6),t.onError(n.t0.code||-1,n.t0.message);case 17:case"end":return n.stop()}}),n,this,[[6,14]])})))}},{key:"updateMyProfile",value:function(e,t){return Nt(this,void 0,void 0,d().mark((function n(){var r,o,i;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Object.assign({},e),o=r.nick,i=r.avatar,n.prev=1,n.next=4,this.tim.updateMyProfile({nick:o,avatar:i,gender:Ft.TYPES.GENDER_UNKNOWN,allowType:Ft.TYPES.ALLOW_TYPE_ALLOW_ANY});case 4:t.onSuccess(null),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),t.onError(n.t0.code||-1,n.t0.message);case 10:case"end":return n.stop()}}),n,this,[[1,7]])})))}},{key:"timFunction",value:function(t,n,r){return Nt(this,void 0,void 0,d().mark((function o(){var i,a,s,u;return d().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,s=null,!(n instanceof Array)){o.next=8;break}return o.next=5,(u=this.tim)[t].apply(u,p(n));case 5:s=o.sent,o.next=11;break;case 8:return o.next=10,this.tim[t](n);case 10:s=o.sent;case 11:"callExperimentalAPI"!==t&&e.logger.info("[tim] call ".concat(t," success")),"invite"!==t&&"inviteInGroup"!==t&&"modifyInvitation"!==t||(s=(null===(a=null===(i=null==s?void 0:s.data)||void 0===i?void 0:i.message)||void 0===a?void 0:a.payload)||{data:""}),this.handleTimFunctionResponse(t,s.data,r),o.next=20;break;case 16:o.prev=16,o.t0=o.catch(0),e.logger.warn("[tim] ".concat(t," error:"),o.t0),r.onError(o.t0.code||-1,o.t0.message);case 20:case"end":return o.stop()}}),o,this,[[0,16]])})))}},{key:"handleTimFunctionResponse",value:function(e,t,n){$t.includes(e)&&t?"string"==typeof t?n.onSuccess({response:t}):n.onSuccess({response:JSON.stringify(t)}):n.onSuccess(t)}},{key:"onKickedOut",value:function(e){var t,n;switch(e.data.type){case Ft.TYPES.KICKED_OUT_MULT_ACCOUNT:case Ft.TYPES.KICKED_OUT_MULT_DEVICE:case Ft.TYPES.KICKED_OUT_REST_API:null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onKickedOffline",{});break;case Ft.TYPES.KICKED_OUT_USERSIG_EXPIRED:null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserSigExpired",{})}}},{key:"onNetStateChange",value:function(e){var t,n;switch(e.data.state){case Ft.TYPES.NET_STATE_CONNECTED:null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onConnectSuccess",{});break;case Ft.TYPES.NET_STATE_DISCONNECTED:null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onConnectFailed",{})}}},{key:"onRoomCustomDataReceived",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onRoomCustomDataReceived",e)}},{key:"onError",value:function(e){console.error("".concat(TIMService.logPrefix," onError error:"),e)}},{key:"onServerConfigUpdated",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onServerConfigUpdated",JSON.stringify(null==e?void 0:e.data)||"")}},{key:"onNewMessageReceived",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onNewMessageReceived",JSON.stringify(null==e?void 0:e.data)||"")}},{key:"onNewInvitationReceived",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onNewInvitationReceived",(null==e?void 0:e.data)||{})}},{key:"onInviteeAccepted",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInviteeAccepted",(null==e?void 0:e.data)||{})}},{key:"onInviteeRejected",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInviteeRejected",(null==e?void 0:e.data)||{})}},{key:"onInvitationCancelled",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInvitationCancelled",(null==e?void 0:e.data)||{})}},{key:"onInvitationTimeout",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInvitationTimeout",(null==e?void 0:e.data)||{})}},{key:"bindTIMEvent",value:function(){var e,t,n,r,o,i,a,s,u,c,l;null===(e=this.tim)||void 0===e||e.on(Ft.EVENT.ERROR,this.onError),null===(t=this.tim)||void 0===t||t.on(Ft.EVENT.KICKED_OUT,this.onKickedOut),null===(n=this.tim)||void 0===n||n.on(Ft.EVENT.NET_STATE_CHANGE,this.onNetStateChange),null===(r=this.tim)||void 0===r||r.on(Ft.EVENT.ROOM_CUSTOM_DATA_RECEIVED,this.onRoomCustomDataReceived),null===(o=this.tim)||void 0===o||o.on(Ft.EVENT.SERVER_CONFIG_UPDATED,this.onServerConfigUpdated),null===(i=this.tim)||void 0===i||i.on(Ft.EVENT.MESSAGE_RECEIVED,this.onNewMessageReceived),null===(a=this.tim)||void 0===a||a.addSignalingListener(jt.NEW_INVITATION_RECEIVED,this.onNewInvitationReceived),null===(s=this.tim)||void 0===s||s.addSignalingListener(jt.INVITEE_ACCEPTED,this.onInviteeAccepted),null===(u=this.tim)||void 0===u||u.addSignalingListener(jt.INVITEE_REJECTED,this.onInviteeRejected),null===(c=this.tim)||void 0===c||c.addSignalingListener(jt.INVITATION_CANCELLED,this.onInvitationCancelled),null===(l=this.tim)||void 0===l||l.addSignalingListener(jt.INVITATION_TIMEOUT,this.onInvitationTimeout)}},{key:"unbindTIMEvent",value:function(){var e,t,n,r,o,i,a,s,u,c,l;null===(e=this.tim)||void 0===e||e.off(Ft.EVENT.ERROR,this.onError),null===(t=this.tim)||void 0===t||t.off(Ft.EVENT.KICKED_OUT,this.onKickedOut),null===(n=this.tim)||void 0===n||n.off(Ft.EVENT.NET_STATE_CHANGE,this.onNetStateChange),null===(r=this.tim)||void 0===r||r.off(Ft.EVENT.ROOM_CUSTOM_DATA_RECEIVED,this.onRoomCustomDataReceived),null===(o=this.tim)||void 0===o||o.off(Ft.EVENT.SERVER_CONFIG_UPDATED,this.onServerConfigUpdated),null===(i=this.tim)||void 0===i||i.off(Ft.EVENT.MESSAGE_RECEIVED,this.onNewMessageReceived),null===(a=this.tim)||void 0===a||a.removeSignalingListener(jt.NEW_INVITATION_RECEIVED,this.onNewInvitationReceived),null===(s=this.tim)||void 0===s||s.removeSignalingListener(jt.INVITEE_ACCEPTED,this.onInviteeAccepted),null===(u=this.tim)||void 0===u||u.removeSignalingListener(jt.INVITEE_REJECTED,this.onInviteeRejected),null===(c=this.tim)||void 0===c||c.removeSignalingListener(jt.INVITATION_CANCELLED,this.onInvitationCancelled),null===(l=this.tim)||void 0===l||l.removeSignalingListener(jt.INVITATION_TIMEOUT,this.onInvitationTimeout)}}],[{key:"getSDKVersion",value:function(){return Ft.VERSION}}])}();qt.logPrefix="[JSTim]",e.JSTim=qt;var Bt=e.TRTCDefine.TRTCVideoResolutionMode;function Wt(e){return"string"==typeof e?e.split(",").length>1?e.split(",").map((function(e){return document.getElementById(e)})).filter((function(e){return Boolean(e)})):Gt?document.getElementById(e):e:e}function Qt(e,t){var n=t;return"startLocalPreview"===e&&(1===n.length&&(n[0]=Wt(n[0])),2===n.length&&(n[1]=Wt(n[1]))),"updateLocalView"!==e&&"startScreenCapture"!==e||(n[0]=Wt(n[0])),"startRemoteView"!==e&&"updateRemoteView"!==e||(n[1]=Wt(n[1])),n}function Jt(t,n){var r=n;if("enterRoom"===t&&e.TRTCDefine.TRTCParams&&n instanceof Array&&n.length>0&&(r[0]=new e.TRTCDefine.TRTCParams(n[0].sdkAppId,n[0].userId,n[0].userSig,n[0].roomId,n[0].strRoomId,n[0].role)),"setVideoEncoderParam"===t&&e.TRTCDefine.TRTCVideoEncParam&&n instanceof Array&&n.length>0&&(r[0]=new e.TRTCDefine.TRTCVideoEncParam(n[0].videoResolution,Bt.TRTCVideoResolutionModeLandscape,n[0].videoFps,n[0].videoBitrate,n[0].minVideoBitrate)),"selectScreenCaptureTarget"===t&&e.TRTCDefine.TRTCScreenCaptureSourceInfo&&e.TRTCDefine.TRTCScreenCaptureProperty&&n instanceof Array&&3===n.length&&e.tempResult.screenSharingTargetList&&e.tempResult.screenSharingTargetList.length>0){var o=e.tempResult.screenSharingTargetList.filter((function(e){return e.sourceId===n[0].sourceId}));o.length>0&&(r[0]=o[0],r[1]=new e.TRTCDefine.Rect(n[1].left,n[1].top,n[1].right,n[1].bottom),r[2]=new e.TRTCDefine.TRTCScreenCaptureProperty(n[2].enableCaptureMouse,n[2].enableHighLight,n[2].enableHighPerformance,n[2].highLightColor,n[2].highLightWidth,n[2].enableCaptureChildWindow))}return"startScreenCapture"===t&&e.TRTCDefine.TRTCVideoEncParam&&n instanceof Array&&3===n.length&&(r[2]=new e.TRTCDefine.TRTCVideoEncParam(n[2].videoResolution,n[2].resMode,n[2].videoFps,n[2].videoBitrate,n[2].minVideoBitrate,n[2].enableAdjustRes)),"enableSmallVideoStream"===t&&e.TRTCDefine.TRTCVideoEncParam&&n instanceof Array&&2===n.length&&(r[1]=new e.TRTCDefine.TRTCVideoEncParam(n[1].videoResolution,n[1].resMode,n[1].videoFps,n[1].videoBitrate,n[1].minVideoBitrate,!1)),r}function Ht(t,n){"getScreenCaptureSources"===t&&(e.tempResult.screenSharingTargetList=n)}Nt=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Yt=e.TRTCCloud,Gt=e.currentFrameWork===e.FRAMEWORK.ELECTRON,Kt=function(){function t(e){u(this,t),this.trtcCloud=e?Yt.getTRTCShareInstance():Yt.getTRTCShareInstance().createSubCloud(),this.isMainTRTCCloud=e,this.nativeObserver=null,this.onError=this.onError.bind(this),this.onWarning=this.onWarning.bind(this),this.onEnterRoom=this.onEnterRoom.bind(this),this.onExitRoom=this.onExitRoom.bind(this),this.onSwitchRole=this.onSwitchRole.bind(this),this.onUserVideoAvailable=this.onUserVideoAvailable.bind(this),this.onUserSubStreamAvailable=this.onUserSubStreamAvailable.bind(this),this.onUserAudioAvailable=this.onUserAudioAvailable.bind(this),this.onScreenCapturePaused=this.onScreenCapturePaused.bind(this),this.onScreenCaptureResumed=this.onScreenCaptureResumed.bind(this),this.onScreenCaptureStopped=this.onScreenCaptureStopped.bind(this),this.onFirstVideoFrame=this.onFirstVideoFrame.bind(this),this.onRemoteUserEnterRoom=this.onRemoteUserEnterRoom.bind(this),this.onRemoteUserLeaveRoom=this.onRemoteUserLeaveRoom.bind(this),this.onUserVoiceVolume=this.onUserVoiceVolume.bind(this),this.onNetworkQuality=this.onNetworkQuality.bind(this),this.onStatistics=this.onStatistics.bind(this),this.onMicDidReady=this.onMicDidReady.bind(this),this.onCameraDidReady=this.onCameraDidReady.bind(this),this.onSendFirstLocalAudioFrame=this.onSendFirstLocalAudioFrame.bind(this),this.onSendFirstLocalVideoFrame=this.onSendFirstLocalVideoFrame.bind(this),this.onReceiveSEIMessage=this.onReceiveSEIMessage.bind(this),this.onConnectionLost=this.onConnectionLost.bind(this),this.onConnectionRecovery=this.onConnectionRecovery.bind(this),this.bindTRTCEvent()}return l(t,[{key:"destroyTRTC",value:function(){this.unbindTRTCEvent(),this.isMainTRTCCloud||this.trtcCloud.destroy()}},{key:"getTRTCCloud",value:function(){return this.trtcCloud}},{key:"bindObserver",value:function(e){this.nativeObserver=e}},{key:"unBindObserver",value:function(){this.nativeObserver&&this.nativeObserver.delete(),this.nativeObserver=null}},{key:"callJS",value:function(t,n,r){return Nt(this,void 0,void 0,d().mark((function o(){var i,a,s,u,c,l;return d().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,i=Ut(n),a=Qt(t,i),a=Gt?Jt(t,a):a,e.logger.debug("[trtcCloud] ".concat(t," params"),a,h(a)),s=null,!(a instanceof Array)){o.next=12;break}return o.next=9,(u=this.trtcCloud)[t].apply(u,p(a));case 9:s=o.sent,o.next=15;break;case 12:return o.next=14,this.trtcCloud[t](a);case 14:s=o.sent;case 15:e.logger.info("[trtcCloud] ".concat(t," success")),Gt&&Ht(t,s),r&&r.onSuccess(s),o.next=27;break;case 20:o.prev=20,o.t0=o.catch(0),e.logger&&e.logger.warn("[trtcCloud] ".concat(t," error"),o.t0),c=o.t0&&o.t0.code,l=o.t0&&o.t0.message,"startScreenShare"===t&&(c=o.t0&&o.t0.extraCode,l=JSON.stringify({name:o.t0.originError.name,message:l})),r&&r.onError(c,l);case 27:r.delete();case 28:case"end":return o.stop()}}),o,this,[[0,20]])})))}},{key:"onError",value:function(t,n){var r;e.logger.warn("[trtcCloud] onError",t,n),null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onError",{errCode:t,errMsg:n})}},{key:"onWarning",value:function(e,t,n){var r;null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onWarning",{warningCode:e,warningMsg:t,extraInfo:JSON.stringify({extraInfo:n})})}},{key:"onEnterRoom",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onEnterRoom",{result:e})}},{key:"onExitRoom",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onExitRoom",{reason:e})}},{key:"onSwitchRole",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onSwitchRole",{errorCode:e,errorMessage:t})}},{key:"onUserVideoAvailable",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserVideoAvailable",{userId:e,available:Boolean(t)})}},{key:"onUserSubStreamAvailable",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserSubStreamAvailable",{userId:e,available:Boolean(t)})}},{key:"onUserAudioAvailable",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserAudioAvailable",{userId:e,available:Boolean(t)})}},{key:"onFirstVideoFrame",value:function(e,t,n,r){var o;null===(o=this.nativeObserver)||void 0===o||o.onJSEvent("onFirstVideoFrame",{userId:e,streamType:t,width:n,height:r})}},{key:"onRemoteUserEnterRoom",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onRemoteUserEnterRoom",{userId:e})}},{key:"onRemoteUserLeaveRoom",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onRemoteUserLeaveRoom",{userId:e,reason:t})}},{key:"onUserVoiceVolume",value:function(e,t,n){var r;null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onUserVoiceVolume",{userVolumes:e,userVolumesCount:t,totalVolume:n})}},{key:"onNetworkQuality",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onNetworkQuality",{localQuality:e,remoteQuality:t,remoteQualityCount:t.length})}},{key:"onStatistics",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onStatistics",{statistics:e})}},{key:"onMicDidReady",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onMicDidReady",{})}},{key:"onCameraDidReady",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onCameraDidReady",{})}},{key:"onScreenCapturePaused",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onScreenCapturePaused",{reason:e})}},{key:"onScreenCaptureResumed",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onScreenCaptureResumed",{reason:e})}},{key:"onScreenCaptureStopped",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onScreenCaptureStopped",{reason:e})}},{key:"onSendFirstLocalAudioFrame",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onSendFirstLocalAudioFrame",{})}},{key:"onSendFirstLocalVideoFrame",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onSendFirstLocalVideoFrame",{streamType:e})}},{key:"onReceiveSEIMessage",value:function(t,n){var r;try{var o=JSON.parse(n);null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onReceiveSEIMessage",{message:JSON.stringify(Object.assign(Object.assign({},o),{userId:t,data:o.stringData}))})}catch(Lk){e.logger&&e.logger.warn("[trtcCloud] onReceiveSEIMessage error",Lk)}}},{key:"onConnectionLost",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onConnectionLost",{})}},{key:"onConnectionRecovery",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onConnectionRecovery",{})}},{key:"bindTRTCEvent",value:function(){this.trtcCloud.on("onError",this.onError),this.trtcCloud.on("onWarning",this.onWarning),this.trtcCloud.on("onEnterRoom",this.onEnterRoom),this.trtcCloud.on("onExitRoom",this.onExitRoom),this.trtcCloud.on("onSwitchRole",this.onSwitchRole),this.trtcCloud.on("onUserVideoAvailable",this.onUserVideoAvailable),this.trtcCloud.on("onUserSubStreamAvailable",this.onUserSubStreamAvailable),this.trtcCloud.on("onUserAudioAvailable",this.onUserAudioAvailable),this.trtcCloud.on("onScreenCapturePaused",this.onScreenCapturePaused),this.trtcCloud.on("onScreenCaptureResumed",this.onScreenCaptureResumed),this.trtcCloud.on("onScreenCaptureStopped",this.onScreenCaptureStopped),this.trtcCloud.on("onFirstVideoFrame",this.onFirstVideoFrame),this.trtcCloud.on("onRemoteUserEnterRoom",this.onRemoteUserEnterRoom),this.trtcCloud.on("onRemoteUserLeaveRoom",this.onRemoteUserLeaveRoom),this.trtcCloud.on("onUserVoiceVolume",this.onUserVoiceVolume),this.trtcCloud.on("onNetworkQuality",this.onNetworkQuality),this.trtcCloud.on("onStatistics",this.onStatistics),this.trtcCloud.on("onMicDidReady",this.onMicDidReady),this.trtcCloud.on("onCameraDidReady",this.onCameraDidReady),this.trtcCloud.on("onSendFirstLocalAudioFrame",this.onSendFirstLocalAudioFrame),this.trtcCloud.on("onSendFirstLocalVideoFrame",this.onSendFirstLocalVideoFrame),this.trtcCloud.on("onRecvSEIMsg",this.onReceiveSEIMessage),this.trtcCloud.on("onConnectionLost",this.onConnectionLost),this.trtcCloud.on("onConnectionRecovery",this.onConnectionRecovery)}},{key:"unbindTRTCEvent",value:function(){this.trtcCloud.off("onError",this.onError),this.trtcCloud.off("onWarning",this.onWarning),this.trtcCloud.off("onEnterRoom",this.onEnterRoom),this.trtcCloud.off("onExitRoom",this.onExitRoom),this.trtcCloud.off("onSwitchRole",this.onSwitchRole),this.trtcCloud.off("onUserVideoAvailable",this.onUserVideoAvailable),this.trtcCloud.off("onUserSubStreamAvailable",this.onUserSubStreamAvailable),this.trtcCloud.off("onUserAudioAvailable",this.onUserAudioAvailable),this.trtcCloud.off("onScreenCapturePaused",this.onScreenCapturePaused),this.trtcCloud.off("onScreenCaptureResumed",this.onScreenCaptureResumed),this.trtcCloud.off("onScreenCaptureStopped",this.onScreenCaptureStopped),this.trtcCloud.off("onFirstVideoFrame",this.onFirstVideoFrame),this.trtcCloud.off("onRemoteUserEnterRoom",this.onRemoteUserEnterRoom),this.trtcCloud.off("onRemoteUserLeaveRoom",this.onRemoteUserLeaveRoom),this.trtcCloud.off("onUserVoiceVolume",this.onUserVoiceVolume),this.trtcCloud.off("onNetworkQuality",this.onNetworkQuality),this.trtcCloud.off("onStatistics",this.onStatistics),this.trtcCloud.off("onMicDidReady",this.onMicDidReady),this.trtcCloud.off("onCameraDidReady",this.onCameraDidReady),this.trtcCloud.off("onSendFirstLocalAudioFrame",this.onSendFirstLocalAudioFrame),this.trtcCloud.off("onSendFirstLocalVideoFrame",this.onSendFirstLocalVideoFrame),this.trtcCloud.off("onRecvSEIMsg",this.onReceiveSEIMessage),this.trtcCloud.off("onConnectionLost",this.onConnectionLost),this.trtcCloud.off("onConnectionRecovery",this.onConnectionRecovery)}}],[{key:"createTRTC",value:function(e){return new t(e)}},{key:"getSDKVersion",value:function(){return Yt.getTRTCShareInstance().getSDKVersion()}},{key:"log",value:function(n){return Nt(this,void 0,void 0,d().mark((function r(){var o,i,a;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("object"===h(o=Ut(n))){r.next=3;break}return r.abrupt("return");case 3:if(i="[".concat(o.file,": ").concat(o.line,"] ").concat(o.message),!e.isElectron){r.next=11;break}return a={api:"TuikitLog",params:o},e.logger.info(i),r.next=9,t.callExperimentalAPI(JSON.stringify(a));case 9:r.next=12;break;case 11:2===o.level?e.logger.error(i):console.log("[tuikit engine wasm] ["+o.file+":"+o.line+"] "+o.message);case 12:case"end":return r.stop()}}),r)})))}},{key:"callExperimentalAPI",value:function(e){return Nt(this,void 0,void 0,d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Yt.getTRTCShareInstance(),t.next=3,n.callExperimentalAPI(e);case 3:case"end":return t.stop()}}),t)})))}}])}();return e.JSTRTC=Kt,e.ready}),DO={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(d-1);c<d;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var f,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(f=1,u=new Array(d-1);f<d;f++)u[f-1]=arguments[f];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({get exports(){return DO},set exports(e){DO=e}});var PO,LO,VO,FO,jO,$O,qO,BO,WO,QO,JO,HO,YO,GO,KO,zO,XO,ZO,ex,tx,nx,rx,ox,ix,ax,sx,ux,cx,lx,dx=DO;exports.TUIErrorCode=void 0,(PO=exports.TUIErrorCode||(exports.TUIErrorCode={}))[PO.ERR_SUCC=0]="ERR_SUCC",PO[PO.ERR_FAILED=-1]="ERR_FAILED",PO[PO.ERR_FREQ_LIMIT=-2]="ERR_FREQ_LIMIT",PO[PO.ERR_REPEAT_OPERATION=-3]="ERR_REPEAT_OPERATION",PO[PO.ERR_SDKAPPID_NOT_FOUND=-1e3]="ERR_SDKAPPID_NOT_FOUND",PO[PO.ERR_INVALID_PARAMETER=-1001]="ERR_INVALID_PARAMETER",PO[PO.ERR_SDK_NOT_INITIALIZED=-1002]="ERR_SDK_NOT_INITIALIZED",PO[PO.ERR_PERMISSION_DENIED=-1003]="ERR_PERMISSION_DENIED",PO[PO.ERR_REQUIRE_PAYMENT=-1004]="ERR_REQUIRE_PAYMENT",PO[PO.ERR_CAMERA_START_FAILED=-1100]="ERR_CAMERA_START_FAILED",PO[PO.ERR_CAMERA_NOT_AUTHORIZED=-1101]="ERR_CAMERA_NOT_AUTHORIZED",PO[PO.ERR_CAMERA_OCCUPIED=-1102]="ERR_CAMERA_OCCUPIED",PO[PO.ERR_CAMERA_DEVICE_EMPTY=-1103]="ERR_CAMERA_DEVICE_EMPTY",PO[PO.ERR_MICROPHONE_START_FAILED=-1104]="ERR_MICROPHONE_START_FAILED",PO[PO.ERR_MICROPHONE_NOT_AUTHORIZED=-1105]="ERR_MICROPHONE_NOT_AUTHORIZED",PO[PO.ERR_MICROPHONE_OCCUPIED=-1106]="ERR_MICROPHONE_OCCUPIED",PO[PO.ERR_MICROPHONE_DEVICE_EMPTY=-1107]="ERR_MICROPHONE_DEVICE_EMPTY",PO[PO.ERR_GET_SCREEN_SHARING_TARGET_FAILED=-1108]="ERR_GET_SCREEN_SHARING_TARGET_FAILED",PO[PO.ERR_START_SCREEN_SHARING_FAILED=-1109]="ERR_START_SCREEN_SHARING_FAILED",PO[PO.ERR_ALREADY_ROOM_OWNER=-1200]="ERR_ALREADY_ROOM_OWNER",PO[PO.ERR_IM_ATTRIBUTE_WRITE_CONFLICT=-1201]="ERR_IM_ATTRIBUTE_WRITE_CONFLICT",PO[PO.ERR_ALREADY_ROOM_ENTER=-1202]="ERR_ALREADY_ROOM_ENTER",PO[PO.ERR_DESTROY_ROOM_NO_PERMISSION=-1203]="ERR_DESTROY_ROOM_NO_PERMISSION",PO[PO.ERR_LIVE_REQUEST_SERVER_TIMEOUT=-1300]="ERR_LIVE_REQUEST_SERVER_TIMEOUT",PO[PO.ERR_LIVE_SERVER_PROCESS_FAILED=-1301]="ERR_LIVE_SERVER_PROCESS_FAILED",PO[PO.ERR_LIVE_DISCONNECTED=-1302]="ERR_LIVE_DISCONNECTED",PO[PO.ERR_LIVE_NO_AVAILABLE_HEVC_DECODERS=-1303]="ERR_LIVE_NO_AVAILABLE_HEVC_DECODERS",PO[PO.ERR_OPERATION_INVALID_BEFORE_ENTER_ROOM=-2101]="ERR_OPERATION_INVALID_BEFORE_ENTER_ROOM",PO[PO.ERR_EXIT_NOT_SUPPORTED_FOR_ROOM_OWNER=-2102]="ERR_EXIT_NOT_SUPPORTED_FOR_ROOM_OWNER",PO[PO.ERR_OPERATION_NOT_SUPPORTED_IN_CURRENT_ROOM_TYPE=-2103]="ERR_OPERATION_NOT_SUPPORTED_IN_CURRENT_ROOM_TYPE",PO[PO.ERR_ROOM_ID_INVALID=-2105]="ERR_ROOM_ID_INVALID",PO[PO.ERR_ROOM_NAME_INVALID=-2107]="ERR_ROOM_NAME_INVALID",PO[PO.ERR_ALREADY_IN_OTHER_ROOM=-2108]="ERR_ALREADY_IN_OTHER_ROOM",PO[PO.ERR_USER_NOT_EXIST=-2200]="ERR_USER_NOT_EXIST",PO[PO.ERR_NEED_OWNER_PERMISSION=-2300]="ERR_NEED_OWNER_PERMISSION",PO[PO.ERR_NEED_ADMIN_PERMISSION=-2301]="ERR_NEED_ADMIN_PERMISSION",PO[PO.ERR_REQUEST_NO_PERMISSION=-2310]="ERR_REQUEST_NO_PERMISSION",PO[PO.ERR_REQUEST_ID_INVALID=-2311]="ERR_REQUEST_ID_INVALID",PO[PO.ERR_REQUEST_ID_REPEAT=-2312]="ERR_REQUEST_ID_REPEAT",PO[PO.ERR_MAX_SEAT_COUNT_LIMIT=-2340]="ERR_MAX_SEAT_COUNT_LIMIT",PO[PO.ERR_SEAT_INDEX_NOT_EXIST=-2344]="ERR_SEAT_INDEX_NOT_EXIST",PO[PO.ERR_OPEN_MICROPHONE_NEED_SEAT_UNLOCK=-2360]="ERR_OPEN_MICROPHONE_NEED_SEAT_UNLOCK",PO[PO.ERR_OPEN_MICROPHONE_NEED_PERMISSION_FROM_ADMIN=-2361]="ERR_OPEN_MICROPHONE_NEED_PERMISSION_FROM_ADMIN",PO[PO.ERR_OPEN_CAMERA_NEED_SEAT_UNLOCK=-2370]="ERR_OPEN_CAMERA_NEED_SEAT_UNLOCK",PO[PO.ERR_OPEN_CAMERA_NEED_PERMISSION_FROM_ADMIN=-2371]="ERR_OPEN_CAMERA_NEED_PERMISSION_FROM_ADMIN",PO[PO.ERR_OPEN_SCREEN_SHARE_NEED_SEAT_UNLOCK=-2372]="ERR_OPEN_SCREEN_SHARE_NEED_SEAT_UNLOCK",PO[PO.ERR_OPEN_SCREEN_SHARE_NEED_PERMISSION_FROM_ADMIN=-2373]="ERR_OPEN_SCREEN_SHARE_NEED_PERMISSION_FROM_ADMIN",PO[PO.ERR_SEND_MESSAGE_DISABLED_FOR_ALL=-2380]="ERR_SEND_MESSAGE_DISABLED_FOR_ALL",PO[PO.ERR_SEND_MESSAGE_DISABLED_FOR_CURRENT=-2381]="ERR_SEND_MESSAGE_DISABLED_FOR_CURRENT",PO[PO.ERR_ROOM_ID_OCCUPIED=100003]="ERR_ROOM_ID_OCCUPIED",PO[PO.ERR_ROOM_ID_NOT_EXIST=100004]="ERR_ROOM_ID_NOT_EXIST",PO[PO.ERR_USER_NOT_ENTERED=100005]="ERR_USER_NOT_ENTERED",PO[PO.ERR_NEED_PASSWORD=100018]="ERR_NEED_PASSWORD",PO[PO.ERR_WRONG_PASSWORD=100019]="ERR_WRONG_PASSWORD",PO[PO.ERR_ROOM_USER_FULL=100008]="ERR_ROOM_USER_FULL",PO[PO.ERR_REQUEST_CONFLICT=100102]="ERR_REQUEST_CONFLICT",PO[PO.ERR_SEAT_OCCUPIED=100210]="ERR_SEAT_OCCUPIED",PO[PO.ERR_ALREADY_IN_SEAT=100203]="ERR_ALREADY_IN_SEAT",PO[PO.ERR_SEAT_LOCKED=100200]="ERR_SEAT_LOCKED",PO[PO.ERR_ALL_SEAT_OCCUPIED=100205]="ERR_ALL_SEAT_OCCUPIED",PO[PO.ERR_USER_NOT_IN_SEAT=100206]="ERR_USER_NOT_IN_SEAT",PO[PO.ERR_SEAT_NOT_SUPPORT_LINK_MIC=100211]="ERR_SEAT_NOT_SUPPORT_LINK_MIC",PO[PO.ERR_ROOM_ALREADY_CONNECTED=100401]="ERR_ROOM_ALREADY_CONNECTED",PO[PO.ERR_ROOM_CONNECTED_IN_OTHER=100403]="ERR_ROOM_CONNECTED_IN_OTHER",PO[PO.ERR_MAX_CONNECTED_COUNT_LIMIT=100404]="ERR_MAX_CONNECTED_COUNT_LIMIT",PO[PO.ERR_BATTLE_IN_RUNNING=100419]="ERR_BATTLE_IN_RUNNING",PO[PO.ERR_BATTLE_ID_NOT_EXIST=100411]="ERR_BATTLE_ID_NOT_EXIST",PO[PO.ERR_ROOM_BATTLEID_IN_OTHER=100415]="ERR_ROOM_BATTLEID_IN_OTHER",PO[PO.ERR_ROOM_METADATA_EXCEED_KEY_COUNT_LIMIT=100500]="ERR_ROOM_METADATA_EXCEED_KEY_COUNT_LIMIT",PO[PO.ERR_ROOM_METADATA_EXCEED_VALUE_SIZE_LIMIT=100501]="ERR_ROOM_METADATA_EXCEED_VALUE_SIZE_LIMIT",exports.TUIRole=void 0,(LO=exports.TUIRole||(exports.TUIRole={}))[LO.kRoomOwner=0]="kRoomOwner",LO[LO.kAdministrator=1]="kAdministrator",LO[LO.kGeneralUser=2]="kGeneralUser",exports.TUIVideoQuality=void 0,(VO=exports.TUIVideoQuality||(exports.TUIVideoQuality={}))[VO.kVideoQuality_360p=1]="kVideoQuality_360p",VO[VO.kVideoQuality_540p=2]="kVideoQuality_540p",VO[VO.kVideoQuality_720p=3]="kVideoQuality_720p",VO[VO.kVideoQuality_1080p=4]="kVideoQuality_1080p",exports.TUIAudioQuality=void 0,(FO=exports.TUIAudioQuality||(exports.TUIAudioQuality={}))[FO.kAudioProfileSpeech=0]="kAudioProfileSpeech",FO[FO.kAudioProfileDefault=1]="kAudioProfileDefault",FO[FO.kAudioProfileMusic=2]="kAudioProfileMusic",exports.TUIVideoStreamType=void 0,(jO=exports.TUIVideoStreamType||(exports.TUIVideoStreamType={}))[jO.kCameraStream=0]="kCameraStream",jO[jO.kScreenStream=1]="kScreenStream",jO[jO.kCameraStreamLow=2]="kCameraStreamLow",exports.TUINetworkQuality=void 0,($O=exports.TUINetworkQuality||(exports.TUINetworkQuality={}))[$O.kQualityUnknown=0]="kQualityUnknown",$O[$O.kQualityExcellent=1]="kQualityExcellent",$O[$O.kQualityGood=2]="kQualityGood",$O[$O.kQualityPoor=3]="kQualityPoor",$O[$O.kQualityBad=4]="kQualityBad",$O[$O.kQualityVeryBad=5]="kQualityVeryBad",$O[$O.kQualityDown=6]="kQualityDown",exports.TUIRoomType=void 0,(qO=exports.TUIRoomType||(exports.TUIRoomType={}))[qO.kConference=1]="kConference",qO[qO.kLive=2]="kLive",exports.TUISeatMode=void 0,(BO=exports.TUISeatMode||(exports.TUISeatMode={}))[BO.kFreeToTake=1]="kFreeToTake",BO[BO.kApplyToTake=2]="kApplyToTake",exports.TUIMediaDevice=void 0,(WO=exports.TUIMediaDevice||(exports.TUIMediaDevice={}))[WO.kMicrophone=1]="kMicrophone",WO[WO.kCamera=2]="kCamera",WO[WO.kScreen=3]="kScreen",exports.TUICaptureSourceType=void 0,(QO=exports.TUICaptureSourceType||(exports.TUICaptureSourceType={}))[QO.kWindow=0]="kWindow",QO[QO.kScreen=1]="kScreen",exports.TUIChangeReason=void 0,(JO=exports.TUIChangeReason||(exports.TUIChangeReason={}))[JO.kChangedBySelf=0]="kChangedBySelf",JO[JO.kChangedByAdmin=1]="kChangedByAdmin",exports.TUIKickedOutOfRoomReason=void 0,(HO=exports.TUIKickedOutOfRoomReason||(exports.TUIKickedOutOfRoomReason={}))[HO.kKickedByAdmin=0]="kKickedByAdmin",HO[HO.kKickedByLoggedOnOtherDevice=1]="kKickedByLoggedOnOtherDevice",HO[HO.kKickedByServer=2]="kKickedByServer",HO[HO.kNetworkDisconnected=3]="kNetworkDisconnected",HO[HO.kJoinRoomStatusInvalidDuringOffline=4]="kJoinRoomStatusInvalidDuringOffline",HO[HO.kCountOfJoinedRoomsExceedLimit=5]="kCountOfJoinedRoomsExceedLimit",exports.TUIRequestAction=void 0,(YO=exports.TUIRequestAction||(exports.TUIRequestAction={}))[YO.kInvalidAction=0]="kInvalidAction",YO[YO.kRequestToOpenRemoteCamera=1]="kRequestToOpenRemoteCamera",YO[YO.kRequestToOpenRemoteMicrophone=2]="kRequestToOpenRemoteMicrophone",YO[YO.kRequestToConnectOtherRoom=3]="kRequestToConnectOtherRoom",YO[YO.kRequestToTakeSeat=4]="kRequestToTakeSeat",YO[YO.kRequestRemoteUserOnSeat=5]="kRequestRemoteUserOnSeat",YO[YO.kApplyToAdminToOpenLocalCamera=6]="kApplyToAdminToOpenLocalCamera",YO[YO.kApplyToAdminToOpenLocalMicrophone=7]="kApplyToAdminToOpenLocalMicrophone",YO[YO.kApplyToAdminToOpenLocalScreenShare=8]="kApplyToAdminToOpenLocalScreenShare",exports.TUIRequestCallbackType=void 0,(GO=exports.TUIRequestCallbackType||(exports.TUIRequestCallbackType={}))[GO.kRequestAccepted=0]="kRequestAccepted",GO[GO.kRequestRejected=1]="kRequestRejected",GO[GO.kRequestCancelled=2]="kRequestCancelled",GO[GO.kRequestTimeout=3]="kRequestTimeout",GO[GO.kRequestError=4]="kRequestError",exports.TRTCRole=void 0,(KO=exports.TRTCRole||(exports.TRTCRole={}))[KO.kAnchor=0]="kAnchor",KO[KO.kAudience=1]="kAudience",exports.TUIResolutionMode=void 0,(zO=exports.TUIResolutionMode||(exports.TUIResolutionMode={}))[zO.kResolutionMode_Landscape=0]="kResolutionMode_Landscape",zO[zO.kResolutionMode_Portrait=1]="kResolutionMode_Portrait",exports.TUIRoomDismissedReason=void 0,(XO=exports.TUIRoomDismissedReason||(exports.TUIRoomDismissedReason={}))[XO.kByOwner=1]="kByOwner",XO[XO.kByServer=2]="kByServer",exports.TUIMediaDeviceType=void 0,(ZO=exports.TUIMediaDeviceType||(exports.TUIMediaDeviceType={}))[ZO.kMediaDeviceTypeUnknown=-1]="kMediaDeviceTypeUnknown",ZO[ZO.kMediaDeviceTypeAudioInput=0]="kMediaDeviceTypeAudioInput",ZO[ZO.kMediaDeviceTypeAudioOutput=1]="kMediaDeviceTypeAudioOutput",ZO[ZO.kMediaDeviceTypeVideoCamera=2]="kMediaDeviceTypeVideoCamera",exports.TUIMediaDeviceState=void 0,(ex=exports.TUIMediaDeviceState||(exports.TUIMediaDeviceState={}))[ex.kMediaDeviceStateAdd=0]="kMediaDeviceStateAdd",ex[ex.kMediaDeviceStateRemove=1]="kMediaDeviceStateRemove",ex[ex.kMediaDeviceStateActive=2]="kMediaDeviceStateActive",exports.TUIAudioRoute=void 0,(tx=exports.TUIAudioRoute||(exports.TUIAudioRoute={}))[tx.kAudioRouteSpeakerphone=0]="kAudioRouteSpeakerphone",tx[tx.kAudioRouteEarpiece=1]="kAudioRouteEarpiece",exports.TUIConferenceStatus=void 0,(nx=exports.TUIConferenceStatus||(exports.TUIConferenceStatus={}))[nx.kConferenceStatusNone=0]="kConferenceStatusNone",nx[nx.kConferenceStatusNotStarted=1]="kConferenceStatusNotStarted",nx[nx.kConferenceStatusRunning=2]="kConferenceStatusRunning",exports.TUIConferenceCancelReason=void 0,(rx=exports.TUIConferenceCancelReason||(exports.TUIConferenceCancelReason={}))[rx.kConferenceCancelReasonCancelledByAdmin=0]="kConferenceCancelReasonCancelledByAdmin",rx[rx.kConferenceCancelReasonRemovedFromAttendees=1]="kConferenceCancelReasonRemovedFromAttendees",exports.TUIInvitationStatus=void 0,(ox=exports.TUIInvitationStatus||(exports.TUIInvitationStatus={}))[ox.kNone=0]="kNone",ox[ox.kPending=1]="kPending",ox[ox.kTimeout=2]="kTimeout",ox[ox.kAccepted=3]="kAccepted",ox[ox.kRejected=4]="kRejected",exports.TUIInvitationCode=void 0,(ix=exports.TUIInvitationCode||(exports.TUIInvitationCode={}))[ix.kSuccess=0]="kSuccess",ix[ix.kAlreadyInInvitationList=1]="kAlreadyInInvitationList",ix[ix.kAlreadyInConference=2]="kAlreadyInConference",exports.TUIInvitationRejectedReason=void 0,(ax=exports.TUIInvitationRejectedReason||(exports.TUIInvitationRejectedReason={}))[ax.kRejectToEnter=0]="kRejectToEnter",ax[ax.kInOtherConference=1]="kInOtherConference",exports.TUIRoomEvents=void 0,(sx=exports.TUIRoomEvents||(exports.TUIRoomEvents={})).onError="onError",sx.onKickedOutOfRoom="onKickedOutOfRoom",sx.onKickedOffLine="onKickedOffLine",sx.onUserSigExpired="onUserSigExpired",sx.onRoomDismissed="onRoomDismissed",sx.onRoomNameChanged="onRoomNameChanged",sx.onRoomSeatModeChanged="onRoomSeatModeChanged",sx.onRoomUserCountChanged="onRoomUserCountChanged",sx.onAllUserCameraDisableChanged="onAllUserCameraDisableChanged",sx.onAllUserMicrophoneDisableChanged="onAllUserMicrophoneDisableChanged",sx.onScreenShareForAllUserDisableChanged="onScreenShareForAllUserDisableChanged",sx.onSendMessageForAllUserDisableChanged="onSendMessageForAllUserDisableChanged",sx.onRoomMaxSeatCountChanged="onRoomMaxSeatCountChanged",sx.onRemoteUserEnterRoom="onRemoteUserEnterRoom",sx.onRemoteUserLeaveRoom="onRemoteUserLeaveRoom",sx.onUserInfoChanged="onUserInfoChanged",sx.onUserRoleChanged="onUserRoleChanged",sx.onUserVideoStateChanged="onUserVideoStateChanged",sx.onUserAudioStateChanged="onUserAudioStateChanged",sx.onSendMessageForUserDisableChanged="onSendMessageForUserDisableChanged",sx.onUserVoiceVolumeChanged="onUserVoiceVolumeChanged",sx.onUserNetworkQualityChanged="onUserNetworkQualityChanged",sx.onSeatListChanged="onSeatListChanged",sx.onKickedOffSeat="onKickedOffSeat",sx.onRequestReceived="onRequestReceived",sx.onRequestCancelled="onRequestCancelled",sx.onRequestProcessed="onRequestProcessed",sx.onReceiveTextMessage="onReceiveTextMessage",sx.onReceiveCustomMessage="onReceiveCustomMessage",sx.onDeviceChange="onDeviceChange",sx.onUserScreenCaptureStopped="onUserScreenCaptureStopped",exports.TUIRoomDeviceMangerEvents=void 0,(ux=exports.TUIRoomDeviceMangerEvents||(exports.TUIRoomDeviceMangerEvents={})).onDeviceChanged="onDeviceChanged",ux.onTestMicVolume="onTestMicVolume",ux.onTestSpeakerVolume="onTestSpeakerVolume",exports.TUIConferenceListManagerEvents=void 0,(cx=exports.TUIConferenceListManagerEvents||(exports.TUIConferenceListManagerEvents={})).onConferenceScheduled="onConferenceScheduled",cx.onConferenceWillStart="onConferenceWillStart",cx.onConferenceCancelled="onConferenceCancelled",cx.onConferenceInfoChanged="onConferenceInfoChanged",cx.onScheduleAttendeesChanged="onScheduleAttendeesChanged",cx.onConferenceStatusChanged="onConferenceStatusChanged",exports.TUIConferenceInvitationManagerEvents=void 0,(lx=exports.TUIConferenceInvitationManagerEvents||(exports.TUIConferenceInvitationManagerEvents={})).onReceiveInvitation="onReceiveInvitation",lx.onInvitationHandledByOtherDevice="onInvitationHandledByOtherDevice",lx.onInvitationCancelled="onInvitationCancelled",lx.onInvitationAccepted="onInvitationAccepted",lx.onInvitationRejected="onInvitationRejected",lx.onInvitationTimeout="onInvitationTimeout",lx.onInvitationRevokedByAdmin="onInvitationRevokedByAdmin",lx.onInvitationAdded="onInvitationAdded",lx.onInvitationRemoved="onInvitationRemoved",lx.onInvitationStatusChanged="onInvitationStatusChanged";const fx=e=>"function"==typeof e,px=e=>void 0===e,vx=e=>"string"==typeof e,hx=e=>"number"==typeof e;function gx(e){return Reflect.apply(Object.prototype.toString,e,[]).replace(/^\[object\s(\w+)\]$/,"$1").toLowerCase()}const mx=function(e){if(!e||"object"!=typeof e||"[object Object]"!=Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Function.prototype.toString.call(n)===Function.prototype.toString.call(Object)};function yx(e){if("string"!=typeof e)return e;let t;try{const n=JSON.parse(e);t="object"==typeof n&&n?n:e}catch(Lk){t=e}return t}const Tx={[exports.TUIRoomEvents.onError]:["code","message"],[exports.TUIRoomEvents.onKickedOutOfRoom]:["roomId","reason","message"],[exports.TUIRoomEvents.onKickedOffLine]:["message"],[exports.TUIRoomEvents.onUserSigExpired]:[],[exports.TUIRoomEvents.onRoomDismissed]:["roomId","reason"],[exports.TUIRoomEvents.onRoomNameChanged]:["roomId","roomName"],[exports.TUIRoomEvents.onRoomSeatModeChanged]:["roomId","seatMode"],[exports.TUIRoomEvents.onRoomUserCountChanged]:["roomId","userCount"],[exports.TUIRoomEvents.onAllUserCameraDisableChanged]:["roomId","isDisable"],[exports.TUIRoomEvents.onAllUserMicrophoneDisableChanged]:["roomId","isDisable"],[exports.TUIRoomEvents.onScreenShareForAllUserDisableChanged]:["roomId","isDisable"],[exports.TUIRoomEvents.onSendMessageForAllUserDisableChanged]:["roomId","isDisable"],[exports.TUIRoomEvents.onRoomMaxSeatCountChanged]:["roomId","maxSeatNumber"],[exports.TUIRoomEvents.onRemoteUserEnterRoom]:["roomId","userInfo"],[exports.TUIRoomEvents.onRemoteUserLeaveRoom]:["roomId","userInfo"],[exports.TUIRoomEvents.onUserInfoChanged]:["userInfo"],[exports.TUIRoomEvents.onUserRoleChanged]:["userInfo"],[exports.TUIRoomEvents.onUserVideoStateChanged]:["userId","streamType","hasVideo","reason"],[exports.TUIRoomEvents.onUserAudioStateChanged]:["userId","hasAudio","reason"],[exports.TUIRoomEvents.onSendMessageForUserDisableChanged]:["roomId","userId","isDisable"],[exports.TUIRoomEvents.onUserVoiceVolumeChanged]:["userVolumeList"],[exports.TUIRoomEvents.onUserNetworkQualityChanged]:["userNetworkList"],[exports.TUIRoomEvents.onSeatListChanged]:["seatList","seatedList","leftList"],[exports.TUIRoomEvents.onKickedOffSeat]:["seatIndex","userInfo"],[exports.TUIRoomEvents.onRequestReceived]:["request"],[exports.TUIRoomEvents.onRequestCancelled]:["request","userInfo"],[exports.TUIRoomEvents.onRequestProcessed]:["request","userInfo"],[exports.TUIRoomEvents.onReceiveTextMessage]:["roomId","message"],[exports.TUIRoomEvents.onReceiveCustomMessage]:["roomId","message"],[exports.TUIRoomEvents.onUserScreenCaptureStopped]:["reason"],[exports.TUIRoomEvents.onDeviceChange]:["deviceId","type","state"],[exports.TUIRoomDeviceMangerEvents.onDeviceChanged]:["deviceId","type","state"],[exports.TUIRoomDeviceMangerEvents.onTestMicVolume]:["volume"],[exports.TUIRoomDeviceMangerEvents.onTestSpeakerVolume]:["volume"],[exports.TUIConferenceListManagerEvents.onConferenceScheduled]:["conferenceInfo"],[exports.TUIConferenceListManagerEvents.onConferenceWillStart]:["conferenceInfo"],[exports.TUIConferenceListManagerEvents.onConferenceCancelled]:["roomId","reason","operateUser"],[exports.TUIConferenceListManagerEvents.onConferenceInfoChanged]:["conferenceInfo","modifyFlag"],[exports.TUIConferenceListManagerEvents.onScheduleAttendeesChanged]:["roomId","leftUsers","joinedUsers"],[exports.TUIConferenceListManagerEvents.onConferenceStatusChanged]:["roomId","status"],[exports.TUIConferenceInvitationManagerEvents.onReceiveInvitation]:["roomInfo","invitation","extensionInfo"],[exports.TUIConferenceInvitationManagerEvents.onInvitationHandledByOtherDevice]:["roomInfo","accepted"],[exports.TUIConferenceInvitationManagerEvents.onInvitationCancelled]:["roomInfo","invitation"],[exports.TUIConferenceInvitationManagerEvents.onInvitationAccepted]:["roomInfo","invitation"],[exports.TUIConferenceInvitationManagerEvents.onInvitationRejected]:["roomInfo","invitation","reason"],[exports.TUIConferenceInvitationManagerEvents.onInvitationTimeout]:["roomInfo","invitation"],[exports.TUIConferenceInvitationManagerEvents.onInvitationRevokedByAdmin]:["roomInfo","invitation","operateUser"],[exports.TUIConferenceInvitationManagerEvents.onInvitationAdded]:["roomInfo","invitation"],[exports.TUIConferenceInvitationManagerEvents.onInvitationRemoved]:["roomInfo","invitation"],[exports.TUIConferenceInvitationManagerEvents.onInvitationStatusChanged]:["roomInfo","invitation"]};function Rx(e,t){const n=yx(t),r={};return Tx[e].forEach(((e,t)=>{r[e]=n[t]})),r}class Ex extends Error{constructor(e){const{code:t,message:n,name:r}=e;super(n),this.code=t,this.message=n,this.name=r||""}}const Cx="INVALID_PARAMETER_REQUIRED",Ix="INVALID_PARAMETER_TYPE",Sx="INVALID_PARAMETER_EMPTY",_x="INVALID_PARAMETER_INSTANCE",Ax="INVALID_PARAMETER_RANGE",bx="CANNOT_LESS_THAN_ZERO",Mx={INVALID_PARAMETER_REQUIRED:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' is a required param when calling ${r}(), received: ${o}.`},INVALID_PARAMETER_TYPE:e=>{const{key:t,rule:n,fnName:r,value:o}=e,i=`${t||n.name}`;let a="";return a=Array.isArray(n.type)?n.type.join("|"):n.type,`'${i}' must be type of ${a} when calling ${r}(), received type: ${gx(o)}.`},INVALID_PARAMETER_EMPTY:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' cannot be '${o}' when calling ${r}().`},INVALID_PARAMETER_INSTANCE:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${`${t||n.name}`}' must be instanceof ${`${n.instanceOf.name||n.instanceOf}`} when calling ${r}(), received type: ${gx(o)}.`},INVALID_PARAMETER_RANGE:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' must be one of ${n.values.join("|")} when calling ${r}(), received: ${o}.`},CANNOT_LESS_THAN_ZERO:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' cannot be less than 0 when calling ${r}().`},xxx:"lajfl "};function Ox(e){const{key:t,data:n}=e;return Mx[t]?fx(Mx[t])?Mx[t](n):vx(Mx[t])?Mx[t]:"":""}function xx(...e){return function(t,n,r){const o=r.value;return r.value=function(...t){return Nx.call(this,e,t,n,this.className),o.apply(this,t)},r}}function kx(...e){return function(t,n,r){const o=r.value;return r.value=function(...t){return a(this,void 0,void 0,(function*(){return Nx.call(this,e,t,n,this.className),o.apply(this,t)}))},r}}function Nx(e,t,n,r){try{for(let o=0;o<e.length;o++)Ux.call(this,{rule:e[o],value:t[o],key:e[o].name,fnName:n,className:r})}catch(Lk){throw console.error(Lk,Lk.code,Lk.message),Lk}}function Ux(e){const{rule:t,value:n,key:r,fnName:o,className:i}=e;if(px(n)){if(t.required)throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:Cx,data:{key:r,rule:t,fnName:o,value:n}})});return}if(Array.isArray(t.type)){if(!t.type.map((e=>e.toLowerCase())).includes(gx(n)))throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:Ix,data:{key:r,rule:t,fnName:o,value:n}})})}else if(!px(t.type)&&gx(n)!==t.type)throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:Ix,data:{key:r,rule:t,fnName:o,value:n}})});if(!1===t.allowEmpty){const e=hx(n)&&(0===n||Number.isNaN(n)),i=vx(n)&&""===n.trim();if(e||i)throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:Sx,data:{key:r,rule:t,fnName:o,value:n}})})}if(t.notLessThanZero&&hx(n)&&n<0)throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:bx,data:{key:r,rule:t,fnName:o,value:n}})});if(vx(t.instanceOf)){if(!n||n.name_!==t.instanceOf)throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:_x,data:{key:r,rule:t,fnName:o,value:n}})})}else if(fx(t.instanceOf)&&!(n instanceof t.instanceOf))throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:_x,data:{key:r,rule:t,fnName:o,value:n}})});if(t.values&&!t.values.includes(n))throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ox({key:Ax,data:{key:r,rule:t,fnName:o,value:n}})});const{properties:a}=t;mx(a)&&"object"===gx(n)&&Object.keys(a).forEach((e=>{Ux.call(this,{rule:a[e],value:n&&n[e],key:`${r}.${e}`,fnName:o,className:i})}));const{arrayItem:s}=t;mx(s)&&(e=>"array"===gx(e))(n)&&n.forEach(((e,t)=>{Ux.call(this,{rule:s,value:e,key:`${r}[${t}]`,fnName:o,className:i})})),fx(t.validate)&&t.validate.call(this,n,r,o,i,this)}const Dx=new WeakMap;function Px(){return function(e,t,n){const r=n.value,o=e=>{const{fn:t,args:n,context:r,resolve:i,reject:a}=e;t.apply(r,n).then(i,a).finally((()=>{const e=Dx.get(r);e&&(e.shift(),e[0]&&o(Object.assign({},e[0])))}))};return n.value=function(...e){return new Promise(((n,i)=>{if(Dx.has(this)){const a=Dx.get(this),{length:s}=a;a.push({fn:r,args:e,context:this,resolve:n,reject:i,name:t}),0===s&&o({fn:r,args:e,context:this,resolve:n,reject:i})}else Dx.set(this,[{fn:r,args:e,context:this,resolve:n,reject:i,name:t}]),o({fn:r,args:e,context:this,resolve:n,reject:i})}))},n}}const Lx="string",Vx="number",Fx="boolean",jx="array",$x="object",qx="null",Bx={ELECTRON:"electron",WEB:"web",MINI_PROGRAM:"miniProgram"},Wx={login:{name:"options",required:!0,type:$x,properties:{sdkAppId:{required:!0,type:Vx,allowEmpty:!1},userId:{required:!0,type:Lx,allowEmpty:!1},userSig:{required:!0,type:Lx,allowEmpty:!1}}},setSelfInfo:{name:"options",required:!0,type:$x,properties:{userName:{required:!0,type:Lx},avatarUrl:{required:!0,type:Lx},customInfo:{required:!1,type:$x,allowEmpty:!1}}},createRoom:{name:"options",required:!0,type:$x,properties:{roomId:{required:!0,type:Lx,allowEmpty:!1},roomName:{type:Lx,allowEmpty:!1},roomType:{instanceof:exports.TUIRoomType},isMicrophoneDisableForAllUser:{type:Fx},isScreenShareDisableForAllUser:{type:Fx},isCameraDisableForAllUser:{type:Fx},isMessageDisableForAllUser:{type:Fx},maxSeatCount:{type:Vx},password:{type:Lx}}},enterRoom:{name:"options",required:!0,type:$x,properties:{roomId:{required:!0,type:Lx,allowEmpty:!1},roomType:{instanceof:exports.TUIRoomType},options:{type:$x,properties:{password:{type:Lx}}}}},updateRoomNameByAdmin:{name:"options",require:!0,type:$x,properties:{roomName:{require:!0,type:Lx,allowEmpty:!1}}},setRoomMaxSeatCount:{name:"options",require:!0,type:$x,properties:{maxSeatCount:{require:!0,type:Vx}}},getUserList:{name:"options",required:!1,type:$x,properties:{nextSequence:{type:Vx}}},getUserInfo:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1}}},setCustomInfoForUser:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},customInfo:{required:!0,type:$x,allowEmpty:!1}}},takeSeat:{name:"options",required:!0,type:$x,properties:{seatIndex:{required:!0,type:Vx},timeout:{required:!0,type:Vx},requestCallback:{instanceof:Function}}},getSeatList:{},openRemoteDeviceByAdmin:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},timeout:{required:!0,type:Vx},device:{require:!0,instanceof:exports.TUIMediaDevice}}},closeRemoteDeviceByAdmin:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},device:{required:!0,instanceof:exports.TUIMediaDevice}}},takeUserOnSeatByAdmin:{name:"options",required:!0,type:$x,properties:{seatIndex:{required:!0,type:Vx},userId:{required:!0,type:Lx,allowEmpty:!1},timeout:{required:!0,type:Vx},requestCallback:{instanceof:Function}}},kickUserOffSeatByAdmin:{name:"options",required:!0,type:$x,properties:{seatIndex:{required:!0,type:Vx},userId:{required:!0,type:Lx,allowEmpty:!1}}},cancelRequest:{name:"options",required:!0,type:$x,properties:{requestId:{required:!0,type:Lx,allowEmpty:!1}}},responseRemoteRequest:{name:"options",required:!0,type:$x,properties:{requestId:{required:!0,type:Lx,allowEmpty:!1},agree:{required:!0,type:Fx}}},setLocalVideoView:{name:"options",required:!0,type:$x,properties:{view:{required:!0,type:[Lx,jx,qx],allowEmpty:!1,validate:e=>{if(e instanceof Array){if(e.some((e=>null===e)))throw new Ex({code:exports.TUIErrorCode.ERR_INVALID_PARAMETER,message:"When calling the setLocalVideoView interface with the view parameter as an array, the array content cannot contain null."})}}}}},openLocalCamera:{name:"options",type:$x,properties:{isFrontCamera:{type:Fx,allowEmpty:!1}}},closeLocalCamera:{},openLocalMicrophone:{},closeLocalMicrophone:{},setVideoResolutionMode:{name:"options",required:!0,type:$x,properties:{streamType:{required:!0,instanceof:exports.TUIVideoStreamType},resolutionMode:{required:!0,instanceof:exports.TUIResolutionMode}}},updateVideoQuality:{name:"options",required:!0,type:$x,properties:{quality:{required:!0,instanceof:exports.TUIVideoQuality}}},updateVideoQualityEx:{name:"options",required:!0,type:$x,properties:{streamType:{required:!0,instanceof:exports.TUIVideoStreamType},encoderParams:{required:!0,properties:{quality:{instanceof:exports.TUIVideoQuality},fps:{type:Vx},bitrate:{type:Vx},resolutionMode:{instanceof:exports.TUIResolutionMode}}}}},updateAudioQuality:{name:"options",required:!0,type:$x,properties:{quality:{required:!0,instanceof:exports.TUIAudioQuality}}},muteRemoteAudioStream:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},isMute:{required:!0,type:Fx}}},startPushLocalVideo:{},stopPushLocalVideo:{},setRemoteVideoView:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},streamType:{required:!0,instanceof:exports.TUIVideoStreamType},view:{required:!0,type:[Lx,jx],allowEmpty:!1}}},startPlayRemoteVideo:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},streamType:{required:!0,instanceof:exports.TUIVideoStreamType}}},stopPlayRemoteVideo:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},streamType:{required:!0,instanceof:exports.TUIVideoStreamType}}},changeUserRole:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},userRole:{required:!0,instanceof:exports.TUIRole}}},changeUserNameCard:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1},nameCard:{required:!0,type:Lx}}},kickRemoteUserOutOfRoom:{name:"options",required:!0,type:$x,properties:{userId:{required:!0,type:Lx,allowEmpty:!1}}},sendTextMessage:{name:"options",required:!0,type:$x,properties:{messageText:{require:!0,type:Lx,allowEmpty:!1}}},sendCustomMessage:{name:"options",required:!0,type:$x,properties:{messageText:{require:!0,type:Lx,allowEmpty:!1}}},startScreenSharing:{name:"options",type:$x,properties:{screenAudio:{type:Fx}}},stopScreenSharing:{},startScreenSharingElectron:{name:"targetId",required:!0,type:Lx},selectScreenSharingTarget:{name:"targetId",required:!0,type:Lx},setCurrentCameraDevice:{name:"options",required:!0,type:$x,properties:{deviceId:{require:!0,type:Lx}}},setCurrentMicDevice:{name:"options",required:!0,type:$x,properties:{deviceId:{require:!0,type:Lx}}},setCurrentSpeakerDevice:{name:"options",required:!0,type:$x,properties:{deviceId:{require:!0,type:Lx}}},disableDeviceForAllUserByAdmin:{name:"options",required:!0,type:$x,properties:{isDisable:{require:!0,type:Fx},device:{require:!0,instanceof:exports.TUIMediaDevice}}},disableSendingMessageForAllUser:{name:"options",required:!0,type:$x,properties:{isDisable:{require:!0,type:Fx}}},disableSendingMessageByAdmin:{name:"options",required:!0,type:$x,properties:{userId:{require:!0,instanceof:Lx},isDisable:{require:!0,type:Fx}}},updateRoomSeatModeByAdmin:{name:"options",required:!0,type:$x,properties:{seatMode:{require:!0,instanceof:exports.TUISeatMode}}},updateRoomPasswordByAdmin:{name:"options",required:!0,type:$x,properties:{password:{required:!0,type:Lx,allowEmpty:!1}}},applyToAdminToOpenLocalDevice:{name:"options",required:!0,type:$x,properties:{timeout:{required:!0,type:Vx},device:{require:!0,instanceof:exports.TUIMediaDevice}}},lockSeatByAdmin:{name:"options",required:!0,type:$x,properties:{seatIndex:{required:!0,type:Vx},lockParams:{require:!0,type:$x,properties:{lockSeat:{require:!0,type:Fx},lockVideo:{require:!0,type:Fx},lockAudio:{require:!0,type:Fx}}}}}};class Qx{constructor(e,t){if(this.trtcCloud=e,t){const{userId:n,sdkAppId:r,seq:o}=t;this.seq=o,e._log&&(this.logger=e._log.createLogger({id:`roomEngine${o}`,userId:n,sdkAppId:r}))}else this.logger=e._log;this.logger||(this.logger={debug:t=>{e.logger&&e.logger.debug?e.logger.debug(t):console.debug(this.getTime(),t)},info:t=>{e.logger&&e.logger.info?e.logger.info(t):console.info(this.getTime(),t)},warn:t=>{e.logger&&e.logger.warn?e.logger.warn(t):console.warn(this.getTime(),t)},error:t=>{e.logger&&e.logger.error?e.logger.error(t):console.error(this.getTime(),t)}})}getLogMessage(e){try{return e.map((e=>"string"!=typeof e?JSON.stringify(e):e)).join(" ")}catch(Lk){return e}}update(e){const{userId:t,sdkAppId:n}=e;this.trtcCloud._log&&this.trtcCloud._log.createLogger&&(this.logger=this.trtcCloud._log.createLogger({id:`roomEngine${this.seq}`,userId:t,sdkAppId:n}))}debug(...e){const t=this.getLogMessage(e);this.logger.debug(t)}info(...e){const t=this.getLogMessage(e);this.logger&&this.logger.info&&this.logger.info(t)}warn(...e){const t=this.getLogMessage(e);this.logger&&this.logger.warn&&this.logger.warn(t)}error(...e){const t=this.getLogMessage(e);this.logger&&this.logger.error&&this.logger.error(t)}getTime(){const e=new Date;return`${e.toLocaleTimeString("en-US",{hour12:!1})}.${function(e){let t;switch(e.toString().length){case 1:t=`00${e}`;break;case 2:t=`0${e}`;break;default:t=e}return t}(e.getMilliseconds())}`}}const Jx=new dx;class Hx{constructor(e){const{logger:t,trtcCloud:n}=e;return Hx.deviceManager||(this.logger=t,this.trtcCloud=n,Hx.deviceManager=this),Hx.deviceManager}setDeviceManagerWASM(e){this.deviceManagerWASM=e.getExtensionManager("TUIRoomDeviceManagerWASM")}JSCallNativeFunctionPromise(e,...t){return new Promise(((n,r)=>{const o=t=>{this.logger.info(`deviceManager.${e} success`,yx(t)),n(yx(t))},i=(t,n)=>{this.logger.warn(`deviceManager.${e} fail. `,t,n),r(new Ex({code:t,message:n}))};try{t.length>0?this.deviceManagerWASM[e](...t,o,i):this.deviceManagerWASM[e](o,i)}catch(Lk){this.logger.warn(`deviceManager.${e} error. `,Lk.code,Lk.message),r(new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message}))}}))}getDevicesList(e){return a(this,void 0,void 0,(function*(){return[]}))}setCurrentDevice(e){return a(this,void 0,void 0,(function*(){}))}getCurrentDevice(e){}startCameraDeviceTest(e){return a(this,void 0,void 0,(function*(){}))}stopCameraDeviceTest(){return a(this,void 0,void 0,(function*(){}))}startMicDeviceTest(e){return a(this,void 0,void 0,(function*(){}))}stopMicDeviceTest(){return a(this,void 0,void 0,(function*(){}))}startSpeakerDeviceTest(e){return a(this,void 0,void 0,(function*(){}))}stopSpeakerDeviceTest(){return a(this,void 0,void 0,(function*(){}))}isFrontCamera(){return!!fx(this.trtcCloud.isFrontCamera)&&this.trtcCloud.isFrontCamera()}switchCamera(e){return a(this,void 0,void 0,(function*(){this.logger.info("deviceManager.switchCamera with options: ",e);const{isFrontCamera:t}=e;this.deviceManagerWASM?yield this.JSCallNativeFunctionPromise("switchCamera",t):yield this.trtcCloud.switchCamera(t)}))}isAutoFocusEnabled(){return!!fx(this.trtcCloud.isAutoFocusEnabled)&&this.trtcCloud.isAutoFocusEnabled()}enableCameraTorch(e){fx(this.trtcCloud.enableCameraTorch)&&this.trtcCloud.enableCameraTorch(e.enabled)}setAudioRoute(e){fx(this.trtcCloud.setAudioRoute)&&this.trtcCloud.setAudioRoute(e.route)}on(e,t){Jx.on(e,t),this.handleTrtcCloudBindEvent(e)}handleTrtcCloudBindEvent(e){const t={[exports.TUIRoomDeviceMangerEvents.onDeviceChanged]:"onDeviceChange",[exports.TUIRoomDeviceMangerEvents.onTestMicVolume]:"onTestMicVolume",[exports.TUIRoomDeviceMangerEvents.onTestSpeakerVolume]:"onTestSpeakerVolume"}[e]||e;this.trtcCloud.removeAllListeners&&this.trtcCloud.removeAllListeners(t),this.trtcCloud.on(t,((...t)=>{const n=Rx(e,t);"{}"===JSON.stringify(n)?Jx.emit(e):Jx.emit(e,n);[exports.TUIRoomDeviceMangerEvents.onTestMicVolume,exports.TUIRoomDeviceMangerEvents.onTestSpeakerVolume].includes(e)||this.logger.info(`DeviceManager received event: [${e}] ${JSON.stringify(n)}`)}))}off(e,t){Jx.off(e,t)}}var Yx;const Gx=(null===(Yx=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===Yx?void 0:Yx.toLowerCase().indexOf(" electron/"))>-1,Kx="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),zx=new dx;class Xx{constructor(e){const{logger:t,roomEngineWASM:n}=e;return Xx.conferenceListManager||(this.logger=t,this.conferenceListManagerWASM=n.getExtensionManager("TUIConferenceListManagerWASM"),Xx.conferenceListManager=this,this.observerFunction=this.observerFunction.bind(this),this.conferenceListManagerWASM.setObserver(this.observerFunction)),Xx.conferenceListManager}JSCallNativeFunctionPromise(e,...t){return new Promise(((n,r)=>{const o=t=>{this.logger.info(`ConferenceListManager.${e} success`,yx(t)),n(yx(t))},i=(t,n)=>{this.logger.warn(`ConferenceListManager.${e} fail. `,t,n),r(new Ex({code:t,message:n}))};try{t.length>0?this.conferenceListManagerWASM[e](...t,o,i):this.conferenceListManagerWASM[e](o,i)}catch(Lk){this.logger.warn(`ConferenceListManager.${e} error. `,Lk.code,Lk.message),r(new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message}))}}))}scheduleConference(e){return a(this,void 0,void 0,(function*(){const{scheduleStartTime:t,scheduleEndTime:n,scheduleAttendees:r=[],reminderSecondsBeforeStart:o=0,roomId:i,roomName:a,roomType:s,maxSeatCount:u,isSeatEnabled:c=!1,seatMode:l=exports.TUISeatMode.kFreeToTake,isMicrophoneDisableForAllUser:d,isScreenShareDisableForAllUser:f,isCameraDisableForAllUser:p,isMessageDisableForAllUser:v,password:h=""}=e;delete e.password,this.logger.info("conferenceListManager.scheduleConference with options: ",e);const g={scheduleStartTime:t,scheduleEndTime:n,scheduleAttendees:r,reminderSecondsBeforeStart:o,roomId:i,roomType:s,roomName:a,isSeatEnabled:c,seatMode:l,isMicrophoneDisableForAllUser:d,isScreenShareDisableForAllUser:f,isCameraDisableForAllUser:p,isMessageDisableForAllUser:v,maxSeatCount:u,password:h};yield this.JSCallNativeFunctionPromise("scheduleConference",g)}))}cancelConference(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.cancelConference with options: ",e);const{roomId:t}=e;yield this.JSCallNativeFunctionPromise("cancelConference",t)}))}updateConferenceInfo(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.updateConferenceInfo with options: ",e),yield this.JSCallNativeFunctionPromise("updateConferenceInfo",e)}))}fetchScheduledConferenceList(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.fetchScheduledConferenceList with options: ",e);const{cursor:t,count:n}=e,r=e&&e.statusArray||[exports.TUIConferenceStatus.kConferenceStatusNotStarted,exports.TUIConferenceStatus.kConferenceStatusRunning];let o=0;for(let e=0;e<r.length;e++)o|=r[e];return yield this.JSCallNativeFunctionPromise("fetchScheduledConferenceList",o,t,n)}))}fetchAttendeeList(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.fetchAttendeeList with options: ",e);const{roomId:t,cursor:n,count:r}=e;return yield this.JSCallNativeFunctionPromise("fetchAttendeeList",t,n,r)}))}addAttendeesByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.addAttendeesByAdmin with options: ",e);const{roomId:t,userIdList:n}=e;yield this.JSCallNativeFunctionPromise("addAttendeesByAdmin",t,n)}))}removeAttendeesByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.removeAttendeesByAdmin with options: ",e);const{roomId:t,userIdList:n}=e;yield this.JSCallNativeFunctionPromise("removeAttendeesByAdmin",t,n)}))}on(e,t){this.logger.info(`listen for event: ${e}`),zx.on(e,t)}observerFunction(e,t){const n=Rx(e,t);"{}"===JSON.stringify(n)?zx.emit(e):(this.handleConferenceChangedEvent(e,n),zx.emit(e,n)),this.logger.info(`ConferenceListManager received event: [${e}] ${JSON.stringify(n)}`)}handleConferenceChangedEvent(e,t){if(e===exports.TUIConferenceListManagerEvents.onConferenceInfoChanged){const e=t.modifyFlag,{conferenceInfo:n}=t,r={basicRoomInfo:{roomId:n.basicRoomInfo.roomId}};e&Xx.ROOM_NAME&&(r.basicRoomInfo.roomName=n.basicRoomInfo.roomName),e&Xx.SCHEDULED_START_TIME&&(r.scheduleStartTime=n.scheduleStartTime),e&Xx.SCHEDULED_END_TIME&&(r.scheduleEndTime=n.scheduleEndTime),delete t.modifyFlag,delete t.conferenceInfo,t.conferenceModifyInfo=r}}off(e,t){zx.off(e,t)}}Xx.ROOM_NAME=1,Xx.SCHEDULED_START_TIME=65536,Xx.SCHEDULED_END_TIME=1<<17;const Zx=new dx;class ek{constructor(e){const{logger:t,roomEngineWASM:n}=e;return ek.conferenceInvitationManager||(this.logger=t,this.conferenceInvitationManagerWASM=n.getExtensionManager("TUIConferenceInvitationManagerWASM"),ek.conferenceInvitationManager=this,this.observerFunction=this.observerFunction.bind(this),this.conferenceInvitationManagerWASM.setObserver(this.observerFunction)),ek.conferenceInvitationManager}JSCallNativeFunctionPromise(e,...t){return new Promise(((n,r)=>{const o=t=>{this.logger.info(`ConferenceInvitationManager.${e} success`,yx(t)),n(yx(t))},i=(t,n)=>{this.logger.warn(`ConferenceInvitationManager.${e} fail. `,t,n),r(new Ex({code:t,message:n}))};try{t.length>0?this.conferenceInvitationManagerWASM[e](...t,o,i):this.conferenceInvitationManagerWASM[e](o,i)}catch(Lk){this.logger.warn(`ConferenceInvitationManager.${e} error. `,Lk.code,Lk.message),r(new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message}))}}))}inviteUsers(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.inviteUsers with options: ",e);const{roomId:t,userIdList:n,timeout:r,extensionInfo:o=""}=e;yield this.JSCallNativeFunctionPromise("inviteUsers",t,n,r,o)}))}cancelInvitation(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.cancelInvitation with options: ",e);const{roomId:t,userIdList:n}=e;yield this.JSCallNativeFunctionPromise("cancelInvitation",t,n)}))}accept(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.accept with options: ",e);const{roomId:t}=e;yield this.JSCallNativeFunctionPromise("accept",t)}))}reject(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.reject with options: ",e);const{roomId:t,reason:n}=e;yield this.JSCallNativeFunctionPromise("reject",t,n)}))}getInvitationList(e){return a(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.getInvitationList with options: ",e);const{roomId:t,cursor:n,count:r}=e;return yield this.JSCallNativeFunctionPromise("getInvitationList",t,n,r)}))}on(e,t){this.logger.info(`listen for event: ${e}`),Zx.on(e,t)}observerFunction(e,t){const n=Rx(e,t);"{}"===JSON.stringify(n)?Zx.emit(e):Zx.emit(e,n),this.logger.info(`ConferenceListManager received event: [${e}] ${JSON.stringify(n)}`)}off(e,t){Zx.off(e,t)}}var tk,nk,rk,ok,ik,ak,sk,uk,ck,lk,dk,fk,pk,vk,hk,gk,mk,yk,Tk;exports.TRTCVideoResolution=void 0,(tk=exports.TRTCVideoResolution||(exports.TRTCVideoResolution={}))[tk.TRTCVideoResolution_120_120=1]="TRTCVideoResolution_120_120",tk[tk.TRTCVideoResolution_160_160=3]="TRTCVideoResolution_160_160",tk[tk.TRTCVideoResolution_270_270=5]="TRTCVideoResolution_270_270",tk[tk.TRTCVideoResolution_480_480=7]="TRTCVideoResolution_480_480",tk[tk.TRTCVideoResolution_160_120=50]="TRTCVideoResolution_160_120",tk[tk.TRTCVideoResolution_240_180=52]="TRTCVideoResolution_240_180",tk[tk.TRTCVideoResolution_280_210=54]="TRTCVideoResolution_280_210",tk[tk.TRTCVideoResolution_320_240=56]="TRTCVideoResolution_320_240",tk[tk.TRTCVideoResolution_400_300=58]="TRTCVideoResolution_400_300",tk[tk.TRTCVideoResolution_480_360=60]="TRTCVideoResolution_480_360",tk[tk.TRTCVideoResolution_640_480=62]="TRTCVideoResolution_640_480",tk[tk.TRTCVideoResolution_960_720=64]="TRTCVideoResolution_960_720",tk[tk.TRTCVideoResolution_160_90=100]="TRTCVideoResolution_160_90",tk[tk.TRTCVideoResolution_256_144=102]="TRTCVideoResolution_256_144",tk[tk.TRTCVideoResolution_320_180=104]="TRTCVideoResolution_320_180",tk[tk.TRTCVideoResolution_480_270=106]="TRTCVideoResolution_480_270",tk[tk.TRTCVideoResolution_640_360=108]="TRTCVideoResolution_640_360",tk[tk.TRTCVideoResolution_960_540=110]="TRTCVideoResolution_960_540",tk[tk.TRTCVideoResolution_1280_720=112]="TRTCVideoResolution_1280_720",tk[tk.TRTCVideoResolution_1920_1080=114]="TRTCVideoResolution_1920_1080",exports.TRTCVideoStreamType=void 0,(nk=exports.TRTCVideoStreamType||(exports.TRTCVideoStreamType={}))[nk.TRTCVideoStreamTypeBig=0]="TRTCVideoStreamTypeBig",nk[nk.TRTCVideoStreamTypeSmall=1]="TRTCVideoStreamTypeSmall",nk[nk.TRTCVideoStreamTypeSub=2]="TRTCVideoStreamTypeSub",exports.TRTCVideoFillMode=void 0,(rk=exports.TRTCVideoFillMode||(exports.TRTCVideoFillMode={}))[rk.TRTCVideoFillMode_Fill=0]="TRTCVideoFillMode_Fill",rk[rk.TRTCVideoFillMode_Fit=1]="TRTCVideoFillMode_Fit",exports.TRTCVideoMirrorType=void 0,(ok=exports.TRTCVideoMirrorType||(exports.TRTCVideoMirrorType={}))[ok.TRTCVideoMirrorType_Auto=0]="TRTCVideoMirrorType_Auto",ok[ok.TRTCVideoMirrorType_Enable=1]="TRTCVideoMirrorType_Enable",ok[ok.TRTCVideoMirrorType_Disable=2]="TRTCVideoMirrorType_Disable",exports.TRTCBeautyStyle=void 0,(ik=exports.TRTCBeautyStyle||(exports.TRTCBeautyStyle={}))[ik.TRTCBeautyStyleSmooth=0]="TRTCBeautyStyleSmooth",ik[ik.TRTCBeautyStyleNature=1]="TRTCBeautyStyleNature",exports.TRTCAppScene=void 0,(ak=exports.TRTCAppScene||(exports.TRTCAppScene={}))[ak.TRTCAppSceneVideoCall=0]="TRTCAppSceneVideoCall",ak[ak.TRTCAppSceneLIVE=1]="TRTCAppSceneLIVE",ak[ak.TRTCAppSceneAudioCall=2]="TRTCAppSceneAudioCall",ak[ak.TRTCAppSceneVoiceChatRoom=3]="TRTCAppSceneVoiceChatRoom",exports.TRTCRoleType=void 0,(sk=exports.TRTCRoleType||(exports.TRTCRoleType={}))[sk.TRTCRoleAnchor=20]="TRTCRoleAnchor",sk[sk.TRTCRoleAudience=21]="TRTCRoleAudience",exports.TRTCAudioQuality=void 0,(uk=exports.TRTCAudioQuality||(exports.TRTCAudioQuality={}))[uk.TRTCAudioQualityDefault=0]="TRTCAudioQualityDefault",uk[uk.TRTCAudioQualitySpeech=1]="TRTCAudioQualitySpeech",uk[uk.TRTCAudioQualityMusic=3]="TRTCAudioQualityMusic";class Rk{constructor(e="",t="",n="",r="",o=""){this.deviceId=e,this.deviceName=t,this.kind=n,this.label=r,this.groupId=o}}exports.TRTCDeviceState=void 0,(ck=exports.TRTCDeviceState||(exports.TRTCDeviceState={}))[ck.TRTCDeviceStateAdd=0]="TRTCDeviceStateAdd",ck[ck.TRTCDeviceStateRemove=1]="TRTCDeviceStateRemove",ck[ck.TRTCDeviceStateActive=2]="TRTCDeviceStateActive",exports.TRTCDeviceType=void 0,(lk=exports.TRTCDeviceType||(exports.TRTCDeviceType={}))[lk.TRTCDeviceTypeUnknow=-1]="TRTCDeviceTypeUnknow",lk[lk.TRTCDeviceTypeMic=0]="TRTCDeviceTypeMic",lk[lk.TRTCDeviceTypeSpeaker=1]="TRTCDeviceTypeSpeaker",lk[lk.TRTCDeviceTypeCamera=2]="TRTCDeviceTypeCamera";class Ek{constructor(e=0,t="",n="",r=0,o="",i=exports.TRTCRoleType.TRTCRoleAnchor,a=null,s=null,u=null,c=null,l=30){this.sdkAppId=e,this.userId=t,this.userSig=n,this.roomId=r,this.strRoomId=o,this.role=i,this.privateMapKey=a,this.streamId=u,this.userDefineRecordId=c,this.frameWorkType=l}}class Ck{constructor(e=exports.TRTCVideoResolution.TRTCVideoResolution_640_360,t=15,n=550){this.videoResolution=e,this.videoFps=t,this.videoBitrate=n}}exports.TRTCVideoRotation=void 0,(dk=exports.TRTCVideoRotation||(exports.TRTCVideoRotation={}))[dk.TRTCVideoRotation0=0]="TRTCVideoRotation0",dk[dk.TRTCVideoRotation90=1]="TRTCVideoRotation90",dk[dk.TRTCVideoRotation180=2]="TRTCVideoRotation180",dk[dk.TRTCVideoRotation270=3]="TRTCVideoRotation270";exports.TRTCQuality=void 0,(fk=exports.TRTCQuality||(exports.TRTCQuality={}))[fk.TRTCQuality_Unknown=0]="TRTCQuality_Unknown",fk[fk.TRTCQuality_Excellent=1]="TRTCQuality_Excellent",fk[fk.TRTCQuality_Good=2]="TRTCQuality_Good",fk[fk.TRTCQuality_Poor=3]="TRTCQuality_Poor",fk[fk.TRTCQuality_Bad=4]="TRTCQuality_Bad",fk[fk.TRTCQuality_Vbad=5]="TRTCQuality_Vbad",fk[fk.TRTCQuality_Down=6]="TRTCQuality_Down";class Ik{constructor(e="",t=exports.TRTCQuality.TRTCQuality_Unknown){this.userId=e,this.quality=t}}class Sk{constructor(e="",t=0){this.userId=e,this.volume=t}}class _k{constructor(e=0,t=0,n=0,r=0,o=0,i=0,a=0,s=[],u=0,c=0){this.upLoss=e,this.downLoss=t,this.appCpu=n,this.systemCpu=r,this.rtt=o,this.receivedBytes=i,this.sentBytes=a,this.localStatisticsArray=s,this.localStatisticsArraySize=u,this.remoteStatisticsArraySize=c}}exports.TRTCVideoResolutionMode=void 0,(pk=exports.TRTCVideoResolutionMode||(exports.TRTCVideoResolutionMode={}))[pk.TRTCVideoResolutionModeLandscape=0]="TRTCVideoResolutionModeLandscape",pk[pk.TRTCVideoResolutionModePortrait=1]="TRTCVideoResolutionModePortrait",exports.TRTCVideoQosPreference=void 0,(vk=exports.TRTCVideoQosPreference||(exports.TRTCVideoQosPreference={}))[vk.TRTCVideoQosPreferenceSmooth=1]="TRTCVideoQosPreferenceSmooth",vk[vk.TRTCVideoQosPreferenceClear=2]="TRTCVideoQosPreferenceClear",exports.TRTCQosControlMode=void 0,(hk=exports.TRTCQosControlMode||(exports.TRTCQosControlMode={}))[hk.TRTCQosControlModeClient=0]="TRTCQosControlModeClient",hk[hk.TRTCQosControlModeServer=1]="TRTCQosControlModeServer";class Ak{constructor(e=new ArrayBuffer(0),t=0,n=0,r=0){this.buffer=e,this.length=t,this.width=n,this.height=r}}exports.TRTCLogLevel=void 0,(gk=exports.TRTCLogLevel||(exports.TRTCLogLevel={}))[gk.TRTCLogLevelVerbose=0]="TRTCLogLevelVerbose",gk[gk.TRTCLogLevelDebug=1]="TRTCLogLevelDebug",gk[gk.TRTCLogLevelInfo=2]="TRTCLogLevelInfo",gk[gk.TRTCLogLevelWarn=3]="TRTCLogLevelWarn",gk[gk.TRTCLogLevelError=4]="TRTCLogLevelError",gk[gk.TRTCLogLevelFatal=5]="TRTCLogLevelFatal",gk[gk.TRTCLogLevelNone=6]="TRTCLogLevelNone",exports.TRTCScreenCaptureSourceType=void 0,(mk=exports.TRTCScreenCaptureSourceType||(exports.TRTCScreenCaptureSourceType={}))[mk.TRTCScreenCaptureSourceTypeUnknown=-1]="TRTCScreenCaptureSourceTypeUnknown",mk[mk.TRTCScreenCaptureSourceTypeWindow=0]="TRTCScreenCaptureSourceTypeWindow",mk[mk.TRTCScreenCaptureSourceTypeScreen=1]="TRTCScreenCaptureSourceTypeScreen",mk[mk.TRTCScreenCaptureSourceTypeCustom=2]="TRTCScreenCaptureSourceTypeCustom";class bk{constructor(e=exports.TRTCScreenCaptureSourceType.TRTCScreenCaptureSourceTypeUnknown,t="",n="",r=new Ak,o=new Ak,i=!1){this.type=e,this.sourceId=t,this.sourceName=n,this.thumbBGRA=r,this.iconBGRA=o,this.isMinimizeWindow=i}}class wk{constructor(e=0,t=0,n=0,r=0){this.left=e,this.top=t,this.right=n,this.bottom=r}}exports.TRTCTranscodingConfigMode=void 0,(yk=exports.TRTCTranscodingConfigMode||(exports.TRTCTranscodingConfigMode={}))[yk.TRTCTranscodingConfigMode_Unknown=0]="TRTCTranscodingConfigMode_Unknown",yk[yk.TRTCTranscodingConfigMode_Manual=1]="TRTCTranscodingConfigMode_Manual",yk[yk.TRTCTranscodingConfigMode_Template_PureAudio=2]="TRTCTranscodingConfigMode_Template_PureAudio",yk[yk.TRTCTranscodingConfigMode_Template_PresetLayout=3]="TRTCTranscodingConfigMode_Template_PresetLayout",yk[yk.TRTCTranscodingConfigMode_Template_ScreenSharing=4]="TRTCTranscodingConfigMode_Template_ScreenSharing",yk[yk.TRTC_TranscodingConfigMode_Unknown=5]="TRTC_TranscodingConfigMode_Unknown",yk[yk.TRTC_TranscodingConfigMode_Manual=6]="TRTC_TranscodingConfigMode_Manual",yk[yk.TRTC_TranscodingConfigMode_Template_PureAudio=7]="TRTC_TranscodingConfigMode_Template_PureAudio",yk[yk.TRTC_TranscodingConfigMode_Template_PresetLayout=8]="TRTC_TranscodingConfigMode_Template_PresetLayout",yk[yk.TRTC_TranscodingConfigMode_Template_ScreenSharing=9]="TRTC_TranscodingConfigMode_Template_ScreenSharing";exports.TRTCMixInputType=void 0,(Tk=exports.TRTCMixInputType||(exports.TRTCMixInputType={}))[Tk.TRTCMixInputTypeUndefined=0]="TRTCMixInputTypeUndefined",Tk[Tk.TRTCMixInputTypeAudioVideo=1]="TRTCMixInputTypeAudioVideo",Tk[Tk.TRTCMixInputTypePureVideo=2]="TRTCMixInputTypePureVideo",Tk[Tk.TRTCMixInputTypePureAudio=3]="TRTCMixInputTypePureAudio";const Mk={TRTCDeviceInfo:Rk,TRTCAudioQuality:exports.TRTCAudioQuality,TRTCScreenCaptureSourceInfo:bk,Rect:wk,TRTCScreenCaptureSourceType:exports.TRTCScreenCaptureSourceType,TRTCVideoEncParam:Ck,TRTCVideoResolution:exports.TRTCVideoResolution,TRTCVideoResolutionMode:exports.TRTCVideoResolutionMode,TRTCVideoQosPreference:exports.TRTCVideoQosPreference,TRTCBeautyStyle:exports.TRTCBeautyStyle,TRTCVideoStreamType:exports.TRTCVideoStreamType,TRTCVolumeInfo:Sk,TRTCDeviceType:exports.TRTCDeviceType,TRTCDeviceState:exports.TRTCDeviceState,TRTCQualityInfo:Ik,TRTCStatistics:_k,TRTCVideoFillMode:exports.TRTCVideoFillMode,TRTCAppScene:exports.TRTCAppScene,TRTCRoleType:exports.TRTCRoleType,TRTCParams:Ek,TRTCQuality:exports.TRTCQuality},Ok=Gx?Bx.ELECTRON:Kx?Bx.MINI_PROGRAM:Bx.WEB,xk={};xk.TIM=r.default,xk.TRTCCloud=o.default,xk.TRTCDefine=Mk,xk.TIMDefine=r.default.TYPES,xk.FRAMEWORK=Bx,xk.currentFrameWork=Ok;const kk=o.default.getTRTCShareInstance();xk.isWXMiniProgram=!0;const Nk=new Qx(kk);xk.loggerManager=Nk,xk.logger=Nk,Nk.info("TUIRoomEngine WX SDK Version:","3.1.0"),xk.roomInstanceMap=new Map;let Uk=1;!function(){a(this,void 0,void 0,(function*(){yield UO(xk),Pk.setModule(xk)}))}();const Dk=new dx;class Pk{static setModule(e){Nk.info("TUIRoomEngineWASM ready!"),this.Module=e,this.isReady=!0,Dk.emit("ready")}static once(e,t){Dk.once(e,t),"ready"===e&&Pk.isReady&&Dk.emit("ready")}static getInstance(){return this.shareInstance||(this.shareInstance=new Pk),this.shareInstance}constructor(){if(this.deviceManager=null,this.conferenceListManager=null,this.conferenceInvitationManager=null,this.roomId="",this.localVideoQuality=exports.TUIVideoQuality.kVideoQuality_720p,this.localAudioQuality=exports.TUIAudioQuality.kAudioProfileDefault,!Pk.isReady)throw new Ex({code:exports.TUIErrorCode.ERR_FAILED,message:"Please listen to the ready event and then execute the constructor method. ref: https://cloud.tencent.com/document/product/647/98556#once"});if(!Pk.shareInstance){const e=!0;this.roomEngineWASM=new Pk.Module.TUIRoomEngineWASM(e),this.trtcCloud=this.roomEngineWASM.getTRTCCloud(),this.observerFunction=this.observerFunction.bind(this),this.roomEngineWASM.setObserver(this.observerFunction),this.logger=new Qx(this.trtcCloud,{sdkAppId:Pk.sdkAppId,userId:Pk.userId,seq:Uk}),Uk+=1,xk.logger=this.logger,xk.wxMessageChannel=this.wxMessageChannel,Pk.shareInstance=this}return Pk.shareInstance}wxMessageChannel(e,t){"updatePusher"===e&&Dk.emit("updatePusher",t)}static JSCallNativeFunctionPromise(e,...t){if(!this.Module||!this.Module.TUIRoomEngineWASM)throw new Ex({code:-1,message:`TUIRoomEngine is not ready, please listen to the ready event and re-execute the TUIRoomEngine.${e} method.`});return new Promise(((n,r)=>{const o=t=>{Nk.info(`TUIRoomEngine.${e} success.`),n(yx(t))},i=(t,n)=>{Nk.warn(`TUIRoomEngine.${e} fail. `,t,n),r(new Ex({code:t,message:n}))};try{this.Module.TUIRoomEngineWASM[e](...t,o,i)}catch(Lk){Nk.warn(`TUIRoomEngine.${e} error. `,Lk.code,Lk.message),r(new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message}))}}))}JSCallNativeFunctionPromise(e,...t){return new Promise(((n,r)=>{const o=t=>{this.logger.info(`roomEngine.${e} success`,yx(t)),n(yx(t))},i=(t,n)=>{this.logger.warn(`roomEngine.${e} fail. `,t,n),r(new Ex({code:t,message:n}))};try{t.length>0?this.roomEngineWASM[e](...t,o,i):this.roomEngineWASM[e](o,i)}catch(Lk){this.logger.warn(`roomEngine.${e} error. `,Lk.code,Lk.message),r(new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message}))}}))}JSCallNativeRequestFunctionPromise(e,...t){const n=t.splice(t.length-1,1)[0];return new Promise(((r,o)=>{const i=t=>{this.logger.info(`roomEngine.${e} success with request:`,yx(t)),r(yx(t))},a=(e,t,r,i,a)=>{e===exports.TUIRequestCallbackType.kRequestError?(n({requestCallbackType:e,requestId:r,userId:i,code:t,message:a}),o(new Ex({code:t,message:a}))):n({requestCallbackType:e,requestId:r,userId:i,code:t,message:a})};try{this.roomEngineWASM[e](...t,i,a)}catch(Lk){console.error(`roomEngine.${e} error. `,Lk.code,Lk.message),o(new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message}))}}))}static login(e){return a(this,void 0,void 0,(function*(){Pk.isReady||(yield xk.ready);const{sdkAppId:t,userId:n,userSig:r,tim:o}=e;Pk.userId=n,Pk.sdkAppId=t,o&&(xk.tim=o),Nk.info("TUIRoomEngine.login with options: ",e),yield this.JSCallNativeFunctionPromise("login",t,n,r)}))}static setSelfInfo(e){return a(this,void 0,void 0,(function*(){Nk.info("TUIRoomEngine.setSelfInfo with options: ",e);const{userName:t,avatarUrl:n,customInfo:r}=e,o={userName:t,avatarUrl:n,customInfo:JSON.stringify(r)};yield this.JSCallNativeFunctionPromise("setSelfInfo",o)}))}static getSelfInfo(){return a(this,void 0,void 0,(function*(){return yield this.JSCallNativeFunctionPromise("getSelfInfo")}))}static logout(){return a(this,void 0,void 0,(function*(){Nk.info("TUIRoomEngine.logout."),yield this.JSCallNativeFunctionPromise("logout")}))}createRoom(e){return a(this,void 0,void 0,(function*(){const{roomId:t,roomName:n,roomType:r,maxSeatCount:o,isSeatEnabled:i=!1,seatMode:a=exports.TUISeatMode.kFreeToTake,isMicrophoneDisableForAllUser:s,isScreenShareDisableForAllUser:u,isCameraDisableForAllUser:c,isMessageDisableForAllUser:l,password:d=""}=e;this.roomId=t,this.logger.update({sdkAppId:Pk.sdkAppId,userId:Pk.userId}),xk.roomInstanceMap.get(t)||xk.roomInstanceMap.set(t,{roomEngineWASM:this.roomEngineWASM,logger:this.logger}),delete e.password,this.logger.info("roomEngine.createRoom with options: ",e);const f={roomId:t,roomType:r,roomName:n,isSeatEnabled:i,seatMode:a,isMicrophoneDisableForAllUser:s,isScreenShareDisableForAllUser:u,isCameraDisableForAllUser:c,isMessageDisableForAllUser:l,maxSeatCount:o,password:d};yield this.JSCallNativeFunctionPromise("createRoom",f)}))}enterRoom(e){return a(this,void 0,void 0,(function*(){const{roomId:t,roomType:n=exports.TUIRoomType.kConference,options:r={}}=e;delete e.options,this.logger.info("roomEngine.enterRoom with options: ",e),this.roomId=t,this.logger.update({sdkAppId:Pk.sdkAppId,userId:Pk.userId}),xk.roomInstanceMap.get(t)||xk.roomInstanceMap.set(t,{roomEngineWASM:this.roomEngineWASM,logger:this.logger});const o=yield this.JSCallNativeFunctionPromise("enterRoom",t,n,r);return this.handleDeviceManagerWASM(),o}))}destroyRoom(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.destroyRoom"),yield this.JSCallNativeFunctionPromise("destroyRoom"),this.roomId&&xk.roomInstanceMap.get(this.roomId)&&xk.roomInstanceMap.delete(this.roomId)}))}exitRoom(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.exitRoom"),yield this.JSCallNativeFunctionPromise("exitRoom",!1),this.roomId&&xk.roomInstanceMap.get(this.roomId)&&xk.roomInstanceMap.delete(this.roomId)}))}fetchRoomInfo(e){return a(this,void 0,void 0,(function*(){if(!e)return yield this.JSCallNativeFunctionPromise("fetchRoomInfo");const{roomId:t,roomType:n}=e;return yield this.JSCallNativeFunctionPromise("fetchRoomInfoById",t,n)}))}updateRoomNameByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateRoomNameByAdmin with options: ",e);const{roomName:t}=e;yield this.JSCallNativeFunctionPromise("updateRoomNameByAdmin",t)}))}updateRoomSeatModeByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateRoomSeatModeByAdmin with options: ",e);const{seatMode:t}=e;yield this.JSCallNativeFunctionPromise("updateRoomSeatModeByAdmin",t)}))}updateRoomPasswordByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateRoomPasswordByAdmin");const{password:t}=e;yield this.JSCallNativeFunctionPromise("updateRoomPasswordByAdmin",t)}))}getUserList(e){return a(this,void 0,void 0,(function*(){const t=e&&e.nextSequence||0;return yield this.JSCallNativeFunctionPromise("getUserList",t)}))}getUserInfo(e){return a(this,void 0,void 0,(function*(){const{userId:t}=e;return yield this.JSCallNativeFunctionPromise("getUserInfo",t)}))}setCustomInfoForUser(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.setCustomInfoForUser with options: ",e);const{userId:t,customInfo:n}=e;return yield this.JSCallNativeFunctionPromise("setCustomInfoForUser",t,JSON.stringify(n))}))}setLocalVideoView(e){this.logger.info("roomEngine.setLocalVideoView with options: ",e);const{view:t}=e;this.JSCallNativeFunctionPromise("setLocalVideoView",t instanceof Array?t.join():t)}openLocalCamera(e={isFrontCamera:!0}){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.openLocalCamera",e);const{isFrontCamera:t}=e,n=t?1:0;yield this.JSCallNativeFunctionPromise("openLocalCamera",n,this.localVideoQuality)}))}closeLocalCamera(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.closeLocalCamera"),yield this.JSCallNativeFunctionPromise("closeLocalCamera")}))}openLocalMicrophone(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.openLocalMicrophone");try{yield this.JSCallNativeFunctionPromise("openLocalMicrophone",this.localAudioQuality)}catch(e){if("you have been muted the audio"===e.message||"open microphone need apply to admin"===e.message)return void this.logger.warn(e);throw e}}))}closeLocalMicrophone(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.closeLocalMicrophone"),yield this.JSCallNativeFunctionPromise("closeLocalMicrophone")}))}updateVideoQuality(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateVideoQuality with options: ",e);const{quality:t}=e;this.localVideoQuality=t,yield this.JSCallNativeFunctionPromise("updateVideoQuality",t)}))}setVideoResolutionMode(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.setVideoResolutionMode with options: ",e);const{streamType:t,resolutionMode:n}=e;yield this.JSCallNativeFunctionPromise("setVideoResolutionMode",t,n)}))}updateVideoQualityEx(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateVideoQualityEx with options: ",e);const{streamType:t,encoderParams:n}=e;n&&n.videoResolution&&t===exports.TUIVideoStreamType.kCameraStream?this.localVideoQuality=n&&n.videoResolution:n&&n.quality&&(this.localVideoQuality=n&&n.quality,n.videoResolution=n.quality),yield this.JSCallNativeFunctionPromise("updateVideoQualityEx",t,n)}))}updateAudioQuality(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateAudioQuality with options: ",e);const{quality:t}=e;this.localAudioQuality=t,yield this.JSCallNativeFunctionPromise("updateAudioQuality",t)}))}startPushLocalVideo(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.startPushLocalVideo"),yield this.JSCallNativeFunctionPromise("startPushLocalVideo")}))}stopPushLocalVideo(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.stopPushLocalVideo"),yield this.JSCallNativeFunctionPromise("stopPushLocalVideo")}))}muteLocalAudio(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.muteLocalAudio"),yield this.JSCallNativeFunctionPromise("muteLocalAudio")}))}unmuteLocalAudio(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.unmuteLocalAudio"),yield this.JSCallNativeFunctionPromise("unmuteLocalAudio")}))}setRemoteVideoView(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.setRemoteVideoView with options: ",e);const{userId:t,streamType:n,view:r}=e;yield this.JSCallNativeFunctionPromise("setRemoteVideoView",t,n,r instanceof Array?r.join():r)}))}startPlayRemoteVideo(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.startPlayRemoteVideo with options: ",e);const{userId:t,streamType:n}=e;return new Promise(((e,r)=>{const o=(...t)=>{console.log("roomEngine startPlayRemoteVideo playingCallback",...t),e()},i=(...e)=>{console.log("roomEngine startPlayRemoteVideo loadingCallback",...e)},a=(...e)=>{console.log("roomEngine startPlayRemoteVideo errorCallback",...e),r()};try{this.roomEngineWASM.startPlayRemoteVideo(t,n,o,i,a)}catch(Lk){console.error("roomEngine.startPlayRemoteVideo error. ",Lk.code,Lk.message);const t=new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message});r(t)}}))}))}stopPlayRemoteVideo(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.stopPlayRemoteVideo with options: ",e);const{userId:t,streamType:n}=e;yield this.JSCallNativeFunctionPromise("stopPlayRemoteVideo",t,n)}))}muteRemoteAudioStream(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.muteRemoteAudioStream with options",e);const{userId:t,isMute:n}=e;yield this.JSCallNativeFunctionPromise("muteRemoteAudioStream",t,n)}))}openRemoteDeviceByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.openRemoteDeviceByAdmin with options: ",e),e.requestCallback||(e.requestCallback=()=>{});const{userId:t,device:n,timeout:r,requestCallback:o}=e;return yield this.JSCallNativeRequestFunctionPromise("openRemoteDeviceByAdmin",t,n,r,o)}))}applyToAdminToOpenLocalDevice(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.applyToAdminToOpenLocalDevice with options: ",e),e.requestCallback||(e.requestCallback=()=>{});const{device:t,timeout:n,requestCallback:r}=e;return yield this.JSCallNativeRequestFunctionPromise("applyToAdminToOpenLocalDevice",t,n,r)}))}closeRemoteDeviceByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.closeRemoteDeviceByAdmin with options: ",e);const{userId:t,device:n}=e;yield this.JSCallNativeFunctionPromise("closeRemoteDeviceByAdmin",t,n)}))}cancelRequest(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.cancelRequest with options: ",e);const{requestId:t}=e;return yield this.JSCallNativeFunctionPromise("cancelRequest",t)}))}responseRemoteRequest(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.responseRemoteRequest with options: ",e);const{requestId:t,agree:n}=e;return yield this.JSCallNativeFunctionPromise("responseRemoteRequest",t,n)}))}disableDeviceForAllUserByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.disableDeviceForAllUserByAdmin with options: ",e);const{device:t,isDisable:n}=e;yield this.JSCallNativeFunctionPromise("disableDeviceForAllUserByAdmin",t,n)}))}disableSendingMessageForAllUser(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.disableSendingMessageForAllUser with options: ",e);const{isDisable:t}=e;yield this.JSCallNativeFunctionPromise("disableSendingMessageForAllUser",t)}))}disableSendingMessageByAdmin(e){return a(this,void 0,void 0,(function*(){const{userId:t,isDisable:n}=e;yield this.JSCallNativeFunctionPromise("disableSendingMessageByAdmin",t,n)}))}changeUserRole(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.changeUserRole with options: ",e);const{userId:t,userRole:n}=e;yield this.JSCallNativeFunctionPromise("changeUserRole",t,n)}))}changeUserNameCard(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.changeUserNameCard with options: ",e);const{userId:t,nameCard:n}=e;yield this.JSCallNativeFunctionPromise("changeUserNameCard",t,n)}))}kickRemoteUserOutOfRoom(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.kickRemoteUserOutOfRoom with options: ",e);const{userId:t}=e;yield this.JSCallNativeFunctionPromise("kickRemoteUserOutOfRoom",t)}))}getSeatList(){return a(this,void 0,void 0,(function*(){return yield this.JSCallNativeFunctionPromise("getSeatList")}))}takeSeat(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.takeSeat with options: ",e),e.requestCallback||(e.requestCallback=()=>{});const{seatIndex:t,timeout:n,requestCallback:r}=e;let o=!0,i={content:"",requestAction:0,requestId:"",timestamp:0,userId:"",userName:"",nameCard:"",avatarUrl:""};return new Promise(((e,a)=>{const s=t=>{const n=yx(t);""===n.requestId?(o=!1,i=n):(this.logger.info("roomEngine.takeSeat success with requestId:",n.requestId),e(n))},u=(t,n,s,u,c)=>{const l={requestCallbackType:t,requestId:s,userId:u,code:n,message:c};if(r(l),t===exports.TUIRequestCallbackType.kRequestAccepted&&!o)return this.logger.info("roomEngine.takeSeat success without request."),void e(i);this.logger.info("roomEngine.takeSeat response data:",l),t===exports.TUIRequestCallbackType.kRequestError&&a(new Ex({code:n,message:c}))};try{this.roomEngineWASM.takeSeat(t,n,s,u)}catch(Lk){console.error("roomEngine.takeSeat error. ",Lk.code,Lk.message),a(new Ex({code:Lk.code||exports.TUIErrorCode.ERR_FAILED,message:Lk.message}))}}))}))}leaveSeat(){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.leaveSeat"),yield this.JSCallNativeFunctionPromise("leaveSeat")}))}moveToSeat(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.moveToSeat with options:",e);const{targetSeatIndex:t}=e;yield this.JSCallNativeFunctionPromise("moveToSeat",t)}))}takeUserOnSeatByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.takeUserOnSeatByAdmin with options: ",e),e.requestCallback||(e.requestCallback=()=>{});const{seatIndex:t,userId:n,timeout:r,requestCallback:o}=e;return yield this.JSCallNativeRequestFunctionPromise("takeUserOnSeatByAdmin",t,n,r,o)}))}kickUserOffSeatByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.kickUserOffSeatByAdmin with options: ",e);const{seatIndex:t,userId:n}=e;yield this.JSCallNativeFunctionPromise("kickUserOffSeatByAdmin",t,n)}))}lockSeatByAdmin(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.lockSeatByAdmin with options: ",e);const{seatIndex:t,lockParams:n}=e;return yield this.JSCallNativeFunctionPromise("lockSeatByAdmin",t,n)}))}getSeatApplicationList(){return a(this,void 0,void 0,(function*(){return yield this.JSCallNativeFunctionPromise("getSeatApplicationList")}))}sendTextMessage(e){return a(this,void 0,void 0,(function*(){this.logger.warn("roomEngine.sendTextMessage is deprecated since v2.0.0, Please use roomEngine.getTIM.")}))}sendCustomMessage(e){return a(this,void 0,void 0,(function*(){this.logger.warn("roomEngine.sendCustomMessage is deprecated since v2.0.0, Please use roomEngine.getTIM.")}))}on(e,t){this.logger.info(`listen for event: ${e}`),Dk.on(e,t)}observerFunction(e,t){const n=Rx(e,t);"{}"===JSON.stringify(n)?Dk.emit(e):(this.supportForDeprecatedEvents(e,n),Dk.emit(e,n));[exports.TUIRoomEvents.onUserVoiceVolumeChanged,exports.TUIRoomEvents.onUserNetworkQualityChanged,exports.TUIRoomEvents.onReceiveTextMessage,exports.TUIRoomEvents.onReceiveCustomMessage].includes(e)||(e!==exports.TUIRoomEvents.onSeatListChanged?this.logger.info(`RoomEngine received event: [${e}] ${JSON.stringify(n)}`):this.logger.info(`RoomEngine received event: [onSeatListChanged] {seatedList: ${JSON.stringify(n.seatedList)}, leftList: ${JSON.stringify(n.leftList)}}`))}supportForDeprecatedEvents(e,t){switch(e){case exports.TUIRoomEvents.onUserRoleChanged:t.userId=t.userInfo.userId,t.userRole=t.userInfo.userRole;break;case exports.TUIRoomEvents.onKickedOffSeat:t.userId=t.userInfo.userId;break;case exports.TUIRoomEvents.onRequestCancelled:case exports.TUIRoomEvents.onRequestProcessed:t.userId=t.userInfo.userId,t.requestId=t.request.requestId}}off(e,t){Dk.off(e,t)}getCameraDevicesList(){return a(this,void 0,void 0,(function*(){return[]}))}getMicDevicesList(){return a(this,void 0,void 0,(function*(){return[]}))}getSpeakerDevicesList(){return a(this,void 0,void 0,(function*(){return[]}))}setCurrentCameraDevice(e){return a(this,void 0,void 0,(function*(){}))}switchCamera(e){return a(this,void 0,void 0,(function*(){this.logger.info("roomEngine.switchCamera with options: ",e);const{isFrontCamera:t}=e;yield this.trtcCloud.switchCamera(t)}))}setCurrentMicDevice(e){return a(this,void 0,void 0,(function*(){}))}setCurrentSpeakerDevice(e){return a(this,void 0,void 0,(function*(){}))}getCurrentCameraDevice(){}getCurrentMicDevice(){}getCurrentSpeakerDevice(){}startCameraDeviceTest(e){return a(this,void 0,void 0,(function*(){}))}stopCameraDeviceTest(){return a(this,void 0,void 0,(function*(){}))}startMicDeviceTest(e){return a(this,void 0,void 0,(function*(){}))}stopMicDeviceTest(){return a(this,void 0,void 0,(function*(){}))}getMediaDeviceManager(){return this.deviceManager||(this.deviceManager=new Hx({logger:this.logger,Module:Pk.Module,trtcCloud:this.trtcCloud}),this.deviceManagerWASM&&this.deviceManager.setDeviceManagerWASM(this.deviceManagerWASM)),this.deviceManager}handleDeviceManagerWASM(){try{this.deviceManagerWASM=this.roomEngineWASM.getMediaDeviceManager(),this.deviceManager&&this.deviceManager.setDeviceManagerWASM(this.deviceManagerWASM)}catch(Lk){this.logger.error("handleDeviceManagerWASM error",Lk)}}getConferenceListManager(){return this.conferenceListManager||(this.conferenceListManager=new Xx({logger:this.logger,Module:Pk.Module,roomEngineWASM:this.roomEngineWASM})),this.conferenceListManager}getConferenceInvitationManager(){return this.conferenceInvitationManager||(this.conferenceInvitationManager=new ek({logger:this.logger,Module:Pk.Module,roomEngineWASM:this.roomEngineWASM})),this.conferenceInvitationManager}getTRTCCloud(){return this.trtcCloud}getTIM(){return xk.tim}destroy(){this.logger.info("roomEngine.destroy"),this.roomEngineWASM.delete()}static callExperimentalAPI(e){return a(this,void 0,void 0,(function*(){Nk.info("TUIRoomEngine.callExperimentalAPI",e);const t=yx(e);if(t===e)return;const{api:n,params:r}=t;if(n&&r)if("setFramework"===n)yield Pk.handleSetFramework(r);else yield Pk.JSCallNativeFunctionPromise("callExperimentalAPI",e)}))}static handleSetFramework(e){return a(this,void 0,void 0,(function*(){const{component:t,language:n}=e,r={[Bx.ELECTRON]:2,[Bx.MINI_PROGRAM]:3,[Bx.WEB]:30},o={TUIRoomEngine:16,TUIRoomKit:18,TIMRoomKit:19,TUILiveKit:21,VoiceRoom:22,EngineLive:23,Classroom:24},i={vue2:5,vue3:6};if(o[t]&&i[n]){const e=JSON.stringify({api:"setFramework",params:{framework:r[Ok],component:o[t],language:i[n]}});yield Pk.JSCallNativeFunctionPromise("callExperimentalAPI",e)}}))}}Pk.className="TUIRoomEngine",Pk.isReady=!1,i([kx(Wx.createRoom)],Pk.prototype,"createRoom",null),i([kx(Wx.enterRoom)],Pk.prototype,"enterRoom",null),i([kx(Wx.updateRoomNameByAdmin)],Pk.prototype,"updateRoomNameByAdmin",null),i([kx(Wx.updateRoomSeatModeByAdmin)],Pk.prototype,"updateRoomSeatModeByAdmin",null),i([kx(Wx.updateRoomPasswordByAdmin)],Pk.prototype,"updateRoomPasswordByAdmin",null),i([kx(Wx.getUserList)],Pk.prototype,"getUserList",null),i([kx(Wx.getUserInfo)],Pk.prototype,"getUserInfo",null),i([kx(Wx.setCustomInfoForUser)],Pk.prototype,"setCustomInfoForUser",null),i([xx(Wx.setLocalVideoView)],Pk.prototype,"setLocalVideoView",null),i([kx(Wx.openLocalCamera)],Pk.prototype,"openLocalCamera",null),i([kx(Wx.updateVideoQuality)],Pk.prototype,"updateVideoQuality",null),i([kx(Wx.setVideoResolutionMode)],Pk.prototype,"setVideoResolutionMode",null),i([kx(Wx.updateVideoQualityEx)],Pk.prototype,"updateVideoQualityEx",null),i([kx(Wx.updateAudioQuality)],Pk.prototype,"updateAudioQuality",null),i([xx(Wx.setRemoteVideoView)],Pk.prototype,"setRemoteVideoView",null),i([xx(Wx.startPlayRemoteVideo)],Pk.prototype,"startPlayRemoteVideo",null),i([kx(Wx.stopPlayRemoteVideo)],Pk.prototype,"stopPlayRemoteVideo",null),i([xx(Wx.muteRemoteAudioStream)],Pk.prototype,"muteRemoteAudioStream",null),i([kx(Wx.openRemoteDeviceByAdmin)],Pk.prototype,"openRemoteDeviceByAdmin",null),i([kx(Wx.applyToAdminToOpenLocalDevice)],Pk.prototype,"applyToAdminToOpenLocalDevice",null),i([kx(Wx.closeRemoteDeviceByAdmin)],Pk.prototype,"closeRemoteDeviceByAdmin",null),i([kx(Wx.cancelRequest)],Pk.prototype,"cancelRequest",null),i([kx(Wx.responseRemoteRequest)],Pk.prototype,"responseRemoteRequest",null),i([kx(Wx.disableDeviceForAllUserByAdmin)],Pk.prototype,"disableDeviceForAllUserByAdmin",null),i([kx(Wx.disableSendingMessageForAllUser)],Pk.prototype,"disableSendingMessageForAllUser",null),i([kx(Wx.disableSendingMessageByAdmin)],Pk.prototype,"disableSendingMessageByAdmin",null),i([kx(Wx.changeUserRole)],Pk.prototype,"changeUserRole",null),i([kx(Wx.changeUserNameCard)],Pk.prototype,"changeUserNameCard",null),i([kx(Wx.kickRemoteUserOutOfRoom)],Pk.prototype,"kickRemoteUserOutOfRoom",null),i([kx(Wx.takeSeat)],Pk.prototype,"takeSeat",null),i([kx(Wx.takeUserOnSeatByAdmin)],Pk.prototype,"takeUserOnSeatByAdmin",null),i([kx(Wx.kickUserOffSeatByAdmin)],Pk.prototype,"kickUserOffSeatByAdmin",null),i([kx(Wx.lockSeatByAdmin)],Pk.prototype,"lockSeatByAdmin",null),i([kx(Wx.setCurrentCameraDevice)],Pk.prototype,"setCurrentCameraDevice",null),i([kx(Wx.setCurrentMicDevice)],Pk.prototype,"setCurrentMicDevice",null),i([kx(Wx.setCurrentSpeakerDevice)],Pk.prototype,"setCurrentSpeakerDevice",null),i([kx(Wx.login),Px()],Pk,"login",null),i([kx(Wx.setSelfInfo)],Pk,"setSelfInfo",null),i([Px()],Pk,"logout",null),Object.defineProperty(exports,"TIM",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"TencentCloudChat",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"TRTCCloud",{enumerable:!0,get:function(){return o.default}}),exports.Rect=wk,exports.TRTCDeviceInfo=Rk,exports.TRTCImageBuffer=Ak,exports.TRTCLocalStatistics=class{constructor(e=0,t=0,n=0,r=0,o=0,i=0,a=exports.TRTCVideoStreamType.TRTCVideoStreamTypeBig){this.width=e,this.height=t,this.frameRate=n,this.videoBitrate=r,this.audioSampleRate=o,this.audioBitrate=i,this.streamType=a}},exports.TRTCMixUser=class{constructor(e="",t="",n=null,r=0,o=!1,i=exports.TRTCVideoStreamType.TRTCVideoStreamTypeBig,a=exports.TRTCMixInputType.TRTCMixInputTypeUndefined,s=0){this.userId=e,this.roomId=t,this.rect=n,this.zOrder=r,this.pureAudio=o,this.streamType=i,this.inputType=a,this.renderMode=s}},exports.TRTCNetworkQosParam=class{constructor(e=exports.TRTCVideoQosPreference.TRTCVideoQosPreferenceClear,t=exports.TRTCQosControlMode.TRTCQosControlModeServer){this.preference=e,this.controlMode=t}},exports.TRTCParams=Ek,exports.TRTCPublishCDNParam=class{constructor(e=0,t=0,n=null){this.appId=e,this.bizId=t,this.url=n}},exports.TRTCQualityInfo=Ik,exports.TRTCRenderParams=class{constructor(e=exports.TRTCVideoRotation.TRTCVideoRotation0,t=exports.TRTCVideoFillMode.TRTCVideoFillMode_Fit,n=exports.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable){this.rotation=e,this.fillMode=t,this.mirrorType=n}},exports.TRTCScreenCaptureSourceInfo=bk,exports.TRTCStatistics=_k,exports.TRTCTranscodingConfig=class{constructor(e=exports.TRTCTranscodingConfigMode.TRTCTranscodingConfigMode_Unknown,t=0,n=0,r=0,o=0,i=0,a=15,s=2,u=0,c="",l=64,d=48e3,f=1,p=[],v=""){this.mode=e,this.appId=t,this.bizId=n,this.videoWidth=r,this.videoHeight=o,this.videoBitrate=i,this.videoFramerate=a,this.videoGOP=s,this.backgroundColor=u,this.backgroundImage=c,this.audioSampleRate=l,this.audioBitrate=d,this.audioChannels=f,this.mixUsersArray=p,this.mixUsersArraySize=p.length,this.streamId=v}},exports.TRTCVideoEncParam=Ck,exports.TRTCVolumeInfo=Sk,exports.TUIConferenceInvitationManager=ek,exports.TUIConferenceListManager=Xx,exports.TUIRoomDeviceManager=Hx,exports.TUIRoomEngine=Pk,exports.default=Pk;