UNPKG

rtc-detect

Version:
1 lines 81.8 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RTCDetect=t()}(this,(function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(){r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var p={};function d(){}function l(){}function v(){}var h={};u(h,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==t&&n.call(g,i)&&(h=g);var y=v.prototype=d.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return l.prototype=v,u(y,"constructor",v),u(v,"constructor",l),l.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=k,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,p):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),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function n(e){return n="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},n(e)}function o(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void r(s)}c.done?t(u):Promise.resolve(u).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function c(e){o(a,n,i,c,u,"next",e)}function u(e){o(a,n,i,c,u,"throw",e)}c(void 0)}))}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(e){return e&&e.Math==Math&&e},d=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof f&&f)||function(){return this}()||Function("return this")(),l={},v=function(e){try{return!!e()}catch(t){return!0}},h=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=!v((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),g=m,y=Function.prototype.call,b=g?y.bind(y):function(){return y.apply(y,arguments)},w={},x={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,E=S&&!x.call({1:2},1);w.f=E?function(e){var t=S(this,e);return!!t&&t.enumerable}:x;var O,k,C=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T=m,I=Function.prototype,P=I.call,j=T&&I.bind.bind(P,P),R=function(e){return T?j(e):function(){return P.apply(e,arguments)}},A=R,M=A({}.toString),L=A("".slice),D=function(e){return L(M(e),8,-1)},F=D,_=R,N=function(e){if("Function"===F(e))return _(e)},B=v,V=D,z=Object,H=N("".split),G=B((function(){return!z("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?H(e,""):z(e)}:z,W=function(e){return null==e},U=W,Q=TypeError,$=function(e){if(U(e))throw Q("Can't call method on "+e);return e},Y=G,K=$,X=function(e){return Y(K(e))},q="object"==typeof document&&document.all,J={all:q,IS_HTMLDDA:void 0===q&&void 0!==q},Z=J.all,ee=J.IS_HTMLDDA?function(e){return"function"==typeof e||e===Z}:function(e){return"function"==typeof e},te=ee,re=J.all,ne=J.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:te(e)||e===re}:function(e){return"object"==typeof e?null!==e:te(e)},oe=d,ie=ee,ae=function(e){return ie(e)?e:void 0},ce=function(e,t){return arguments.length<2?ae(oe[e]):oe[e]&&oe[e][t]},ue=N({}.isPrototypeOf),se=ce("navigator","userAgent")||"",fe=d,pe=se,de=fe.process,le=fe.Deno,ve=de&&de.versions||le&&le.version,he=ve&&ve.v8;he&&(k=(O=he.split("."))[0]>0&&O[0]<4?1:+(O[0]+O[1])),!k&&pe&&(!(O=pe.match(/Edge\/(\d+)/))||O[1]>=74)&&(O=pe.match(/Chrome\/(\d+)/))&&(k=+O[1]);var me=k,ge=me,ye=v,be=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),we=be&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,xe=ce,Se=ee,Ee=ue,Oe=Object,ke=we?function(e){return"symbol"==typeof e}:function(e){var t=xe("Symbol");return Se(t)&&Ee(t.prototype,Oe(e))},Ce=String,Te=function(e){try{return Ce(e)}catch(t){return"Object"}},Ie=ee,Pe=Te,je=TypeError,Re=function(e){if(Ie(e))return e;throw je(Pe(e)+" is not a function")},Ae=Re,Me=W,Le=function(e,t){var r=e[t];return Me(r)?void 0:Ae(r)},De=b,Fe=ee,_e=ne,Ne=TypeError,Be={exports:{}},Ve=d,ze=Object.defineProperty,He=function(e,t){try{ze(Ve,e,{value:t,configurable:!0,writable:!0})}catch(r){Ve[e]=t}return t},Ge=He,We="__core-js_shared__",Ue=d[We]||Ge(We,{}),Qe=Ue;(Be.exports=function(e,t){return Qe[e]||(Qe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=$,Ye=Object,Ke=function(e){return Ye($e(e))},Xe=Ke,qe=N({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return qe(Xe(e),t)},Ze=N,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},ot=d,it=Be.exports,at=Je,ct=nt,ut=be,st=we,ft=it("wks"),pt=ot.Symbol,dt=pt&&pt.for,lt=st?pt:pt&&pt.withoutSetter||ct,vt=function(e){if(!at(ft,e)||!ut&&"string"!=typeof ft[e]){var t="Symbol."+e;ut&&at(pt,e)?ft[e]=pt[e]:ft[e]=st&&dt?dt(t):lt(t)}return ft[e]},ht=b,mt=ne,gt=ke,yt=Le,bt=function(e,t){var r,n;if("string"===t&&Fe(r=e.toString)&&!_e(n=De(r,e)))return n;if(Fe(r=e.valueOf)&&!_e(n=De(r,e)))return n;if("string"!==t&&Fe(r=e.toString)&&!_e(n=De(r,e)))return n;throw Ne("Can't convert object to primitive value")},wt=TypeError,xt=vt("toPrimitive"),St=function(e,t){if(!mt(e)||gt(e))return e;var r,n=yt(e,xt);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!mt(r)||gt(r))return r;throw wt("Can't convert object to primitive value")}return void 0===t&&(t="number"),bt(e,t)},Et=ke,Ot=function(e){var t=St(e,"string");return Et(t)?t:t+""},kt=ne,Ct=d.document,Tt=kt(Ct)&&kt(Ct.createElement),It=function(e){return Tt?Ct.createElement(e):{}},Pt=It,jt=!h&&!v((function(){return 7!=Object.defineProperty(Pt("div"),"a",{get:function(){return 7}}).a})),Rt=h,At=b,Mt=w,Lt=C,Dt=X,Ft=Ot,_t=Je,Nt=jt,Bt=Object.getOwnPropertyDescriptor;l.f=Rt?Bt:function(e,t){if(e=Dt(e),t=Ft(t),Nt)try{return Bt(e,t)}catch(r){}if(_t(e,t))return Lt(!At(Mt.f,e,t),e[t])};var Vt={},zt=h&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ht=ne,Gt=String,Wt=TypeError,Ut=function(e){if(Ht(e))return e;throw Wt(Gt(e)+" is not an object")},Qt=h,$t=jt,Yt=zt,Kt=Ut,Xt=Ot,qt=TypeError,Jt=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,er="enumerable",tr="configurable",rr="writable";Vt.f=Qt?Yt?function(e,t,r){if(Kt(e),t=Xt(t),Kt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&rr in r&&!r.writable){var n=Zt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:tr in r?r.configurable:n.configurable,enumerable:er in r?r.enumerable:n.enumerable,writable:!1})}return Jt(e,t,r)}:Jt:function(e,t,r){if(Kt(e),t=Xt(t),Kt(r),$t)try{return Jt(e,t,r)}catch(n){}if("get"in r||"set"in r)throw qt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var nr=Vt,or=C,ir=h?function(e,t,r){return nr.f(e,t,or(1,r))}:function(e,t,r){return e[t]=r,e},ar={exports:{}},cr=h,ur=Je,sr=Function.prototype,fr=cr&&Object.getOwnPropertyDescriptor,pr=ur(sr,"name"),dr={EXISTS:pr,PROPER:pr&&"something"===function(){}.name,CONFIGURABLE:pr&&(!cr||cr&&fr(sr,"name").configurable)},lr=ee,vr=Ue,hr=N(Function.toString);lr(vr.inspectSource)||(vr.inspectSource=function(e){return hr(e)});var mr,gr,yr,br=vr.inspectSource,wr=ee,xr=d.WeakMap,Sr=wr(xr)&&/native code/.test(String(xr)),Er=Be.exports,Or=nt,kr=Er("keys"),Cr=function(e){return kr[e]||(kr[e]=Or(e))},Tr={},Ir=Sr,Pr=d,jr=ne,Rr=ir,Ar=Je,Mr=Ue,Lr=Cr,Dr=Tr,Fr="Object already initialized",_r=Pr.TypeError,Nr=Pr.WeakMap;if(Ir||Mr.state){var Br=Mr.state||(Mr.state=new Nr);Br.get=Br.get,Br.has=Br.has,Br.set=Br.set,mr=function(e,t){if(Br.has(e))throw _r(Fr);return t.facade=e,Br.set(e,t),t},gr=function(e){return Br.get(e)||{}},yr=function(e){return Br.has(e)}}else{var Vr=Lr("state");Dr[Vr]=!0,mr=function(e,t){if(Ar(e,Vr))throw _r(Fr);return t.facade=e,Rr(e,Vr,t),t},gr=function(e){return Ar(e,Vr)?e[Vr]:{}},yr=function(e){return Ar(e,Vr)}}var zr={set:mr,get:gr,has:yr,enforce:function(e){return yr(e)?gr(e):mr(e,{})},getterFor:function(e){return function(t){var r;if(!jr(t)||(r=gr(t)).type!==e)throw _r("Incompatible receiver, "+e+" required");return r}}},Hr=v,Gr=ee,Wr=Je,Ur=h,Qr=dr.CONFIGURABLE,$r=br,Yr=zr.enforce,Kr=zr.get,Xr=Object.defineProperty,qr=Ur&&!Hr((function(){return 8!==Xr((function(){}),"length",{value:8}).length})),Jr=String(String).split("String"),Zr=ar.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Wr(e,"name")||Qr&&e.name!==t)&&(Ur?Xr(e,"name",{value:t,configurable:!0}):e.name=t),qr&&r&&Wr(r,"arity")&&e.length!==r.arity&&Xr(e,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?Ur&&Xr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var n=Yr(e);return Wr(n,"source")||(n.source=Jr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Zr((function(){return Gr(this)&&Kr(this).source||$r(this)}),"toString");var en=ee,tn=Vt,rn=ar.exports,nn=He,on=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(en(r)&&rn(r,i,n),n.global)o?e[t]=r:nn(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(a){}o?e[t]=r:tn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},an={},cn=Math.ceil,un=Math.floor,sn=Math.trunc||function(e){var t=+e;return(t>0?un:cn)(t)},fn=function(e){var t=+e;return t!=t||0===t?0:sn(t)},pn=fn,dn=Math.max,ln=Math.min,vn=function(e,t){var r=pn(e);return r<0?dn(r+t,0):ln(r,t)},hn=fn,mn=Math.min,gn=function(e){return e>0?mn(hn(e),9007199254740991):0},yn=gn,bn=function(e){return yn(e.length)},wn=X,xn=vn,Sn=bn,En=function(e){return function(t,r,n){var o,i=wn(t),a=Sn(i),c=xn(n,a);if(e&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===r)return e||c||0;return!e&&-1}},On={includes:En(!0),indexOf:En(!1)},kn=Je,Cn=X,Tn=On.indexOf,In=Tr,Pn=N([].push),jn=function(e,t){var r,n=Cn(e),o=0,i=[];for(r in n)!kn(In,r)&&kn(n,r)&&Pn(i,r);for(;t.length>o;)kn(n,r=t[o++])&&(~Tn(i,r)||Pn(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],An=jn,Mn=Rn.concat("length","prototype");an.f=Object.getOwnPropertyNames||function(e){return An(e,Mn)};var Ln={};Ln.f=Object.getOwnPropertySymbols;var Dn=ce,Fn=an,_n=Ln,Nn=Ut,Bn=N([].concat),Vn=Dn("Reflect","ownKeys")||function(e){var t=Fn.f(Nn(e)),r=_n.f;return r?Bn(t,r(e)):t},zn=Je,Hn=Vn,Gn=l,Wn=Vt,Un=v,Qn=ee,$n=/#|\.prototype\./,Yn=function(e,t){var r=Xn[Kn(e)];return r==Jn||r!=qn&&(Qn(t)?Un(t):!!t)},Kn=Yn.normalize=function(e){return String(e).replace($n,".").toLowerCase()},Xn=Yn.data={},qn=Yn.NATIVE="N",Jn=Yn.POLYFILL="P",Zn=Yn,eo=d,to=l.f,ro=ir,no=on,oo=He,io=function(e,t,r){for(var n=Hn(t),o=Wn.f,i=Gn.f,a=0;a<n.length;a++){var c=n[a];zn(e,c)||r&&zn(r,c)||o(e,c,i(t,c))}},ao=Zn,co=function(e,t){var r,n,o,i,a,c=e.target,u=e.global,s=e.stat;if(r=u?eo:s?eo[c]||oo(c,{}):(eo[c]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=to(r,n))&&a.value:r[n],!ao(u?n:c+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;io(i,o)}(e.sham||o&&o.sham)&&ro(i,"sham",!0),no(r,n,i,e)}},uo=D,so=Array.isArray||function(e){return"Array"==uo(e)},fo=TypeError,po=Ot,lo=Vt,vo=C,ho=function(e,t,r){var n=po(t);n in e?lo.f(e,n,vo(0,r)):e[n]=r},mo={};mo[vt("toStringTag")]="z";var go="[object z]"===String(mo),yo=go,bo=ee,wo=D,xo=vt("toStringTag"),So=Object,Eo="Arguments"==wo(function(){return arguments}()),Oo=yo?wo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=So(e),xo))?r:Eo?wo(t):"Object"==(n=wo(t))&&bo(t.callee)?"Arguments":n},ko=N,Co=v,To=ee,Io=Oo,Po=br,jo=function(){},Ro=[],Ao=ce("Reflect","construct"),Mo=/^\s*(?:class|function)\b/,Lo=ko(Mo.exec),Do=!Mo.exec(jo),Fo=function(e){if(!To(e))return!1;try{return Ao(jo,Ro,e),!0}catch(t){return!1}},_o=function(e){if(!To(e))return!1;switch(Io(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Do||!!Lo(Mo,Po(e))}catch(t){return!0}};_o.sham=!0;var No=!Ao||Co((function(){var e;return Fo(Fo.call)||!Fo(Object)||!Fo((function(){e=!0}))||e}))?_o:Fo,Bo=so,Vo=No,zo=ne,Ho=vt("species"),Go=Array,Wo=function(e){var t;return Bo(e)&&(t=e.constructor,(Vo(t)&&(t===Go||Bo(t.prototype))||zo(t)&&null===(t=t[Ho]))&&(t=void 0)),void 0===t?Go:t},Uo=function(e,t){return new(Wo(e))(0===t?0:t)},Qo=v,$o=me,Yo=vt("species"),Ko=function(e){return $o>=51||!Qo((function(){var t=[];return(t.constructor={})[Yo]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Xo=co,qo=v,Jo=so,Zo=ne,ei=Ke,ti=bn,ri=function(e){if(e>9007199254740991)throw fo("Maximum allowed index exceeded");return e},ni=ho,oi=Uo,ii=Ko,ai=me,ci=vt("isConcatSpreadable"),ui=ai>=51||!qo((function(){var e=[];return e[ci]=!1,e.concat()[0]!==e})),si=ii("concat"),fi=function(e){if(!Zo(e))return!1;var t=e[ci];return void 0!==t?!!t:Jo(e)};Xo({target:"Array",proto:!0,arity:1,forced:!ui||!si},{concat:function(e){var t,r,n,o,i,a=ei(this),c=oi(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(fi(i=-1===t?a:arguments[t]))for(o=ti(i),ri(u+o),r=0;r<o;r++,u++)r in i&&ni(c,u,i[r]);else ri(u+1),ni(c,u++,i);return c.length=u,c}});var pi={},di=jn,li=Rn,vi=Object.keys||function(e){return di(e,li)},hi=h,mi=zt,gi=Vt,yi=Ut,bi=X,wi=vi;pi.f=hi&&!mi?Object.defineProperties:function(e,t){yi(e);for(var r,n=bi(t),o=wi(t),i=o.length,a=0;i>a;)gi.f(e,r=o[a++],n[r]);return e};var xi,Si=ce("document","documentElement"),Ei=Ut,Oi=pi,ki=Rn,Ci=Tr,Ti=Si,Ii=It,Pi=Cr("IE_PROTO"),ji=function(){},Ri=function(e){return"<script>"+e+"</"+"script>"},Ai=function(e){e.write(Ri("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mi=function(){try{xi=new ActiveXObject("htmlfile")}catch(n){}var e,t;Mi="undefined"!=typeof document?document.domain&&xi?Ai(xi):((t=Ii("iframe")).style.display="none",Ti.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ri("document.F=Object")),e.close(),e.F):Ai(xi);for(var r=ki.length;r--;)delete Mi.prototype[ki[r]];return Mi()};Ci[Pi]=!0;var Li=Object.create||function(e,t){var r;return null!==e?(ji.prototype=Ei(e),r=new ji,ji.prototype=null,r[Pi]=e):r=Mi(),void 0===t?r:Oi.f(r,t)},Di=vt,Fi=Li,_i=Vt.f,Ni=Di("unscopables"),Bi=Array.prototype;null==Bi[Ni]&&_i(Bi,Ni,{configurable:!0,value:Fi(null)});var Vi,zi,Hi,Gi=function(e){Bi[Ni][e]=!0},Wi={},Ui=!v((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qi=Je,$i=ee,Yi=Ke,Ki=Ui,Xi=Cr("IE_PROTO"),qi=Object,Ji=qi.prototype,Zi=Ki?qi.getPrototypeOf:function(e){var t=Yi(e);if(Qi(t,Xi))return t[Xi];var r=t.constructor;return $i(r)&&t instanceof r?r.prototype:t instanceof qi?Ji:null},ea=v,ta=ee,ra=ne,na=Zi,oa=on,ia=vt("iterator"),aa=!1;[].keys&&("next"in(Hi=[].keys())?(zi=na(na(Hi)))!==Object.prototype&&(Vi=zi):aa=!0);var ca=!ra(Vi)||ea((function(){var e={};return Vi[ia].call(e)!==e}));ca&&(Vi={}),ta(Vi[ia])||oa(Vi,ia,(function(){return this}));var ua={IteratorPrototype:Vi,BUGGY_SAFARI_ITERATORS:aa},sa=Vt.f,fa=Je,pa=vt("toStringTag"),da=function(e,t,r){e&&!r&&(e=e.prototype),e&&!fa(e,pa)&&sa(e,pa,{configurable:!0,value:t})},la=ua.IteratorPrototype,va=Li,ha=C,ma=da,ga=Wi,ya=function(){return this},ba=ee,wa=String,xa=TypeError,Sa=N,Ea=Ut,Oa=function(e){if("object"==typeof e||ba(e))return e;throw xa("Can't set "+wa(e)+" as a prototype")},ka=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Sa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ea(r),Oa(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ca=co,Ta=b,Ia=ee,Pa=function(e,t,r,n){var o=t+" Iterator";return e.prototype=va(la,{next:ha(+!n,r)}),ma(e,o,!1),ga[o]=ya,e},ja=Zi,Ra=ka,Aa=da,Ma=ir,La=on,Da=Wi,Fa=dr.PROPER,_a=dr.CONFIGURABLE,Na=ua.IteratorPrototype,Ba=ua.BUGGY_SAFARI_ITERATORS,Va=vt("iterator"),za="keys",Ha="values",Ga="entries",Wa=function(){return this},Ua=function(e,t,r,n,o,i,a){Pa(r,t,n);var c,u,s,f=function(e){if(e===o&&h)return h;if(!Ba&&e in l)return l[e];switch(e){case za:case Ha:case Ga:return function(){return new r(this,e)}}return function(){return new r(this)}},p=t+" Iterator",d=!1,l=e.prototype,v=l[Va]||l["@@iterator"]||o&&l[o],h=!Ba&&v||f(o),m="Array"==t&&l.entries||v;if(m&&(c=ja(m.call(new e)))!==Object.prototype&&c.next&&(ja(c)!==Na&&(Ra?Ra(c,Na):Ia(c[Va])||La(c,Va,Wa)),Aa(c,p,!0)),Fa&&o==Ha&&v&&v.name!==Ha&&(_a?Ma(l,"name",Ha):(d=!0,h=function(){return Ta(v,this)})),o)if(u={values:f(Ha),keys:i?h:f(za),entries:f(Ga)},a)for(s in u)(Ba||d||!(s in l))&&La(l,s,u[s]);else Ca({target:t,proto:!0,forced:Ba||d},u);return l[Va]!==h&&La(l,Va,h,{name:o}),Da[t]=h,u},Qa=function(e,t){return{value:e,done:t}},$a=X,Ya=Gi,Ka=Wi,Xa=zr,qa=Vt.f,Ja=Ua,Za=Qa,ec=h,tc="Array Iterator",rc=Xa.set,nc=Xa.getterFor(tc),oc=Ja(Array,"Array",(function(e,t){rc(this,{type:tc,target:$a(e),index:0,kind:t})}),(function(){var e=nc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Za(void 0,!0)):Za("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),ic=Ka.Arguments=Ka.Array;if(Ya("keys"),Ya("values"),Ya("entries"),ec&&"values"!==ic.name)try{qa(ic,"name",{value:"values"})}catch(gg){}var ac={exports:{}},cc={},uc=vn,sc=bn,fc=ho,pc=Array,dc=Math.max,lc=D,vc=X,hc=an.f,mc=function(e,t,r){for(var n=sc(e),o=uc(t,n),i=uc(void 0===r?n:r,n),a=pc(dc(i-o,0)),c=0;o<i;o++,c++)fc(a,c,e[o]);return a.length=c,a},gc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];cc.f=function(e){return gc&&"Window"==lc(e)?function(e){try{return hc(e)}catch(gg){return mc(gc)}}(e):hc(vc(e))};var yc=v((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),bc=v,wc=ne,xc=D,Sc=yc,Ec=Object.isExtensible,Oc=bc((function(){Ec(1)}))||Sc?function(e){return!!wc(e)&&((!Sc||"ArrayBuffer"!=xc(e))&&(!Ec||Ec(e)))}:Ec,kc=!v((function(){return Object.isExtensible(Object.preventExtensions({}))})),Cc=co,Tc=N,Ic=Tr,Pc=ne,jc=Je,Rc=Vt.f,Ac=an,Mc=cc,Lc=Oc,Dc=kc,Fc=!1,_c=nt("meta"),Nc=0,Bc=function(e){Rc(e,_c,{value:{objectID:"O"+Nc++,weakData:{}}})},Vc=ac.exports={enable:function(){Vc.enable=function(){},Fc=!0;var e=Ac.f,t=Tc([].splice),r={};r[_c]=1,e(r).length&&(Ac.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===_c){t(n,o,1);break}return n},Cc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Mc.f}))},fastKey:function(e,t){if(!Pc(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!jc(e,_c)){if(!Lc(e))return"F";if(!t)return"E";Bc(e)}return e[_c].objectID},getWeakData:function(e,t){if(!jc(e,_c)){if(!Lc(e))return!0;if(!t)return!1;Bc(e)}return e[_c].weakData},onFreeze:function(e){return Dc&&Fc&&Lc(e)&&!jc(e,_c)&&Bc(e),e}};Ic[_c]=!0;var zc=Re,Hc=m,Gc=N(N.bind),Wc=function(e,t){return zc(e),void 0===t?e:Hc?Gc(e,t):function(){return e.apply(t,arguments)}},Uc=Wi,Qc=vt("iterator"),$c=Array.prototype,Yc=Oo,Kc=Le,Xc=W,qc=Wi,Jc=vt("iterator"),Zc=function(e){if(!Xc(e))return Kc(e,Jc)||Kc(e,"@@iterator")||qc[Yc(e)]},eu=b,tu=Re,ru=Ut,nu=Te,ou=Zc,iu=TypeError,au=b,cu=Ut,uu=Le,su=Wc,fu=b,pu=Ut,du=Te,lu=function(e){return void 0!==e&&(Uc.Array===e||$c[Qc]===e)},vu=bn,hu=ue,mu=function(e,t){var r=arguments.length<2?ou(e):t;if(tu(r))return ru(eu(r,e));throw iu(nu(e)+" is not iterable")},gu=Zc,yu=function(e,t,r){var n,o;cu(e);try{if(!(n=uu(e,"return"))){if("throw"===t)throw r;return r}n=au(n,e)}catch(gg){o=!0,n=gg}if("throw"===t)throw r;if(o)throw n;return cu(n),r},bu=TypeError,wu=function(e,t){this.stopped=e,this.result=t},xu=wu.prototype,Su=function(e,t,r){var n,o,i,a,c,u,s,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),l=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=su(t,f),m=function(e){return n&&yu(n,"normal",e),new wu(!0,e)},g=function(e){return p?(pu(e),v?h(e[0],e[1],m):h(e[0],e[1])):v?h(e,m):h(e)};if(d)n=e.iterator;else if(l)n=e;else{if(!(o=gu(e)))throw bu(du(e)+" is not iterable");if(lu(o)){for(i=0,a=vu(e);a>i;i++)if((c=g(e[i]))&&hu(xu,c))return c;return new wu(!1)}n=mu(e,o)}for(u=d?e.next:n.next;!(s=fu(u,n)).done;){try{c=g(s.value)}catch(gg){yu(n,"throw",gg)}if("object"==typeof c&&c&&hu(xu,c))return c}return new wu(!1)},Eu=ue,Ou=TypeError,ku=function(e,t){if(Eu(t,e))return e;throw Ou("Incorrect invocation")},Cu=vt("iterator"),Tu=!1;try{var Iu=0,Pu={next:function(){return{done:!!Iu++}},return:function(){Tu=!0}};Pu[Cu]=function(){return this},Array.from(Pu,(function(){throw 2}))}catch(gg){}var ju=function(e,t){if(!t&&!Tu)return!1;var r=!1;try{var n={};n[Cu]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(gg){}return r},Ru=ee,Au=ne,Mu=ka,Lu=co,Du=d,Fu=N,_u=Zn,Nu=on,Bu=ac.exports,Vu=Su,zu=ku,Hu=ee,Gu=W,Wu=ne,Uu=v,Qu=ju,$u=da,Yu=function(e,t,r){var n,o;return Mu&&Ru(n=t.constructor)&&n!==r&&Au(o=n.prototype)&&o!==r.prototype&&Mu(e,o),e},Ku=on,Xu=ce,qu=Vt,Ju=h,Zu=vt("species"),es=function(e){var t=Xu(e),r=qu.f;Ju&&t&&!t[Zu]&&r(t,Zu,{configurable:!0,get:function(){return this}})},ts=Vt.f,rs=Li,ns=function(e,t,r){for(var n in t)Ku(e,n,t[n],r);return e},os=Wc,is=ku,as=W,cs=Su,us=Ua,ss=Qa,fs=es,ps=h,ds=ac.exports.fastKey,ls=zr.set,vs=zr.getterFor,hs={getConstructor:function(e,t,r,n){var o=e((function(e,o){is(e,i),ls(e,{type:t,index:rs(null),first:void 0,last:void 0,size:0}),ps||(e.size=0),as(o)||cs(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=vs(t),c=function(e,t,r){var n,o,i=a(e),c=u(e,t);return c?c.value=r:(i.last=c={index:o=ds(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=c),n&&(n.next=c),ps?i.size++:e.size++,"F"!==o&&(i.index[o]=c)),e},u=function(e,t){var r,n=a(e),o=ds(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return ns(i,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,ps?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),ps?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=os(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),ns(i,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return c(this,0===e?0:e,t)}}:{add:function(e){return c(this,e=0===e?0:e,e)}}),ps&&ts(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=vs(t),i=vs(n);us(e,t,(function(e,t){ls(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?ss("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,ss(void 0,!0))}),r?"entries":"values",!r,!0),fs(t)}};(function(e,t,r){var n=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=n?"set":"add",a=Du[e],c=a&&a.prototype,u=a,s={},f=function(e){var t=Fu(c[e]);Nu(c,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Wu(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Wu(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Wu(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(_u(e,!Hu(a)||!(o||c.forEach&&!Uu((function(){(new a).entries().next()})))))u=r.getConstructor(t,e,n,i),Bu.enable();else if(_u(e,!0)){var p=new u,d=p[i](o?{}:-0,1)!=p,l=Uu((function(){p.has(1)})),v=Qu((function(e){new a(e)})),h=!o&&Uu((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));v||((u=t((function(e,t){zu(e,c);var r=Yu(new a,e,u);return Gu(t)||Vu(t,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=c,c.constructor=u),(l||h)&&(f("delete"),f("has"),n&&f("get")),(h||d)&&f(i),o&&c.clear&&delete c.clear}s[e]=u,Lu({global:!0,constructor:!0,forced:u!=a},s),$u(u,e),o||r.setStrong(u,e,n)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),hs);var ms=Oo,gs=go?{}.toString:function(){return"[object "+ms(this)+"]"};go||on(Object.prototype,"toString",gs,{unsafe:!0});var ys=Oo,bs=String,ws=function(e){if("Symbol"===ys(e))throw TypeError("Cannot convert a Symbol value to a string");return bs(e)},xs=N,Ss=fn,Es=ws,Os=$,ks=xs("".charAt),Cs=xs("".charCodeAt),Ts=xs("".slice),Is=function(e){return function(t,r){var n,o,i=Es(Os(t)),a=Ss(r),c=i.length;return a<0||a>=c?e?"":void 0:(n=Cs(i,a))<55296||n>56319||a+1===c||(o=Cs(i,a+1))<56320||o>57343?e?ks(i,a):n:e?Ts(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ps={codeAt:Is(!1),charAt:Is(!0)},js=Ps.charAt,Rs=ws,As=zr,Ms=Ua,Ls=Qa,Ds="String Iterator",Fs=As.set,_s=As.getterFor(Ds);Ms(String,"String",(function(e){Fs(this,{type:Ds,string:Rs(e),index:0})}),(function(){var e,t=_s(this),r=t.string,n=t.index;return n>=r.length?Ls(void 0,!0):(e=js(r,n),t.index+=e.length,Ls(e,!1))}));var Ns={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},Bs=It("span").classList,Vs=Bs&&Bs.constructor&&Bs.constructor.prototype,zs=Vs===Object.prototype?void 0:Vs,Hs=d,Gs=Ns,Ws=zs,Us=oc,Qs=ir,$s=vt,Ys=$s("iterator"),Ks=$s("toStringTag"),Xs=Us.values,qs=function(e,t){if(e){if(e[Ys]!==Xs)try{Qs(e,Ys,Xs)}catch(gg){e[Ys]=Xs}if(e[Ks]||Qs(e,Ks,t),Gs[t])for(var r in Us)if(e[r]!==Us[r])try{Qs(e,r,Us[r])}catch(gg){e[r]=Us[r]}}};for(var Js in Gs)qs(Hs[Js]&&Hs[Js].prototype,Js);qs(Ws,"DOMTokenList");var Zs,ef,tf=Ut,rf=v,nf=d.RegExp,of=rf((function(){var e=nf("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),af=of||rf((function(){return!nf("a","y").sticky})),cf={BROKEN_CARET:of||rf((function(){var e=nf("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:af,UNSUPPORTED_Y:of},uf=v,sf=d.RegExp,ff=uf((function(){var e=sf(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),pf=v,df=d.RegExp,lf=pf((function(){var e=df("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),vf=b,hf=N,mf=ws,gf=function(){var e=tf(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},yf=cf,bf=Be.exports,wf=Li,xf=zr.get,Sf=ff,Ef=lf,Of=bf("native-string-replace",String.prototype.replace),kf=RegExp.prototype.exec,Cf=kf,Tf=hf("".charAt),If=hf("".indexOf),Pf=hf("".replace),jf=hf("".slice),Rf=(ef=/b*/g,vf(kf,Zs=/a/,"a"),vf(kf,ef,"a"),0!==Zs.lastIndex||0!==ef.lastIndex),Af=yf.BROKEN_CARET,Mf=void 0!==/()??/.exec("")[1];(Rf||Mf||Af||Sf||Ef)&&(Cf=function(e){var t,r,n,o,i,a,c,u=this,s=xf(u),f=mf(e),p=s.raw;if(p)return p.lastIndex=u.lastIndex,t=vf(Cf,p,f),u.lastIndex=p.lastIndex,t;var d=s.groups,l=Af&&u.sticky,v=vf(gf,u),h=u.source,m=0,g=f;if(l&&(v=Pf(v,"y",""),-1===If(v,"g")&&(v+="g"),g=jf(f,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Tf(f,u.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,m++),r=new RegExp("^(?:"+h+")",v)),Mf&&(r=new RegExp("^"+h+"$(?!\\s)",v)),Rf&&(n=u.lastIndex),o=vf(kf,l?r:u,g),l?o?(o.input=jf(o.input,m),o[0]=jf(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Rf&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Mf&&o&&o.length>1&&vf(Of,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=wf(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var Lf=Cf;co({target:"RegExp",proto:!0,forced:/./.exec!==Lf},{exec:Lf});var Df=$,Ff=ws,_f=N("".replace),Nf="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Bf=RegExp("^"+Nf+Nf+"*"),Vf=RegExp(Nf+Nf+"*$"),zf=function(e){return function(t){var r=Ff(Df(t));return 1&e&&(r=_f(r,Bf,"")),2&e&&(r=_f(r,Vf,"")),r}},Hf={start:zf(1),end:zf(2),trim:zf(3)},Gf=d,Wf=v,Uf=ws,Qf=Hf.trim,$f=N("".charAt),Yf=Gf.parseFloat,Kf=Gf.Symbol,Xf=Kf&&Kf.iterator,qf=1/Yf("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-Infinity||Xf&&!Wf((function(){Yf(Object(Xf))}))?function(e){var t=Qf(Uf(e)),r=Yf(t);return 0===r&&"-"==$f(t,0)?-0:r}:Yf;co({global:!0,forced:parseFloat!=qf},{parseFloat:qf});var Jf=N,Zf=on,ep=Lf,tp=v,rp=vt,np=ir,op=rp("species"),ip=RegExp.prototype,ap=Ps.charAt,cp=b,up=Ut,sp=ee,fp=D,pp=Lf,dp=TypeError,lp=b,vp=function(e,t,r,n){var o=rp(e),i=!tp((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!tp((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[op]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var c=Jf(/./[o]),u=t(o,""[e],(function(e,t,r,n,o){var a=Jf(e),u=t.exec;return u===ep||u===ip.exec?i&&!o?{done:!0,value:c(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Zf(String.prototype,e,u[0]),Zf(ip,o,u[1])}n&&np(ip[o],"sham",!0)},hp=Ut,mp=W,gp=gn,yp=ws,bp=$,wp=Le,xp=function(e,t,r){return t+(r?ap(e,t).length:1)},Sp=function(e,t){var r=e.exec;if(sp(r)){var n=cp(r,e,t);return null!==n&&up(n),n}if("RegExp"===fp(e))return cp(pp,e,t);throw dp("RegExp#exec called on incompatible receiver")};vp("match",(function(e,t,r){return[function(t){var r=bp(this),n=mp(t)?void 0:wp(t,e);return n?lp(n,t,r):new RegExp(t)[e](yp(r))},function(e){var n=hp(this),o=yp(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return Sp(n,o);var a=n.unicode;n.lastIndex=0;for(var c,u=[],s=0;null!==(c=Sp(n,o));){var f=yp(c[0]);u[s]=f,""===f&&(n.lastIndex=xp(o,gp(n.lastIndex),a)),s++}return 0===s?null:u}]}));var Ep=window.navigator&&window.navigator.userAgent||"",Op=/AppleWebKit\/([\d.]+)/i.exec(Ep);Op&&parseFloat(Op.pop());var kp=/iPad/i.test(Ep),Cp=/iPhone/i.test(Ep)&&!kp,Tp=/iPod/i.test(Ep),Ip=Cp||kp||Tp;Ip&&function(){var e=Ep.match(/OS (\d+)_/i);e&&e[1]&&e[1]}();var Pp=/Android/i.test(Ep);Pp&&function(){var e=Ep.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),r=e[2]&&parseFloat(e[2]);t&&r&&parseFloat("".concat(e[1],".").concat(e[2]))}();Pp&&/webkit/i.test(Ep);var jp=/Firefox/i.test(Ep),Rp=jp&&function(){var e=Ep.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),Ap=/Edge\//i.test(Ep),Mp=Ap&&function(){var e=Ep.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),Lp=/Edg\//i.test(Ep),Dp=Lp&&function(){var e=Ep.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),Fp=/SogouMobileBrowser\//i.test(Ep),_p=Fp&&function(){var e=Ep.match(/SogouMobileBrowser\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),Np=/MetaSr\s/i.test(Ep),Bp=Np&&function(){var e=Ep.match(/MetaSr(\s\d+(\.\d+)+)/);return e&&e[1]?parseFloat(e[1]):null}(),Vp=/TBS\/\d+/i.test(Ep),zp=Vp&&function(){var e=Ep.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),Hp=/XWEB\/\d+/i.test(Ep),Gp=Hp&&function(){var e=Ep.match(/XWEB\/(\d+)/i);if(e&&e[1])return e[1]}();/MSIE\s8\.0/.test(Ep),/MSIE\/\d+/i.test(Ep)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(Ep),t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(Ep)&&/rv:11.0/.test(Ep)&&(t=11)}(),/windowswechat/i.test(Ep);var Wp=/(micromessenger|webbrowser)/i.test(Ep),Up=Wp&&function(){var e=Ep.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),Qp=!Vp&&/MQQBrowser\/\d+/i.test(Ep)&&/COVC\/\d+/i.test(Ep),$p=!Vp&&/MQQBrowser\/\d+/i.test(Ep)&&!/COVC\/\d+/i.test(Ep),Yp=($p||Qp)&&function(){var e=Ep.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Kp=!Vp&&/ QQBrowser\/\d+/i.test(Ep),Xp=Kp&&function(){var e=Ep.match(/ QQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),qp=!Vp&&/QQBrowserLite\/\d+/i.test(Ep),Jp=qp&&function(){var e=Ep.match(/QQBrowserLite\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Zp=!Vp&&/MQBHD\/\d+/i.test(Ep),ed=Zp&&function(){var e=Ep.match(/MQBHD\/([\d.]+)/);return e&&e[1]?e[1]:null}(),td=/Windows/i.test(Ep),rd=!Ip&&/MAC OS X/i.test(Ep),nd=!Pp&&/Linux/i.test(Ep);/MicroMessenger/i.test(Ep);var od=/UCBrowser/i.test(Ep);/Electron/i.test(Ep);var id=/MiuiBrowser/i.test(Ep),ad=id&&function(){var e=Ep.match(/MiuiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),cd=/HuaweiBrowser/i.test(Ep),ud=cd&&function(){var e=Ep.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),sd=/SamsungBrowser/i.test(Ep),fd=sd&&function(){var e=Ep.match(/SamsungBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),pd=/HeyTapBrowser/i.test(Ep),dd=pd&&function(){var e=Ep.match(/HeyTapBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),ld=/VivoBrowser/i.test(Ep),vd=ld&&function(){var e=Ep.match(/VivoBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),hd=/Chrome/i.test(Ep),md=!Ap&&!Np&&!Fp&&!Vp&&!Hp&&!Lp&&!Kp&&!id&&!cd&&!sd&&!pd&&!ld&&/Chrome/i.test(Ep);md&&function(){var e=Ep.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var gd=md&&function(){var e=Ep.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),yd=!hd&&!$p&&!Qp&&!qp&&!Zp&&/Safari/i.test(Ep),bd=yd&&function(){var e=Ep.match(/Version\/([\d.]+)/);return e&&e[1]?e[1]:null}(),wd="file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname),xd=new Map([[Pp,"Android"],[Ip,"iOS"],[td,"Windows"],[rd,"MacOS"],[nd,"Linux"]]),Sd=new Map([[jp,["Firefox",Rp]],[Lp,["Edg",Dp]],[md,["Chrome",gd]],[yd,["Safari",bd]],[Vp,["TBS",zp]],[Hp,["XWEB",Gp]],[Wp&&Cp,["WeChat",Up]],[Kp,["QQ(Win)",Xp]],[$p,["QQ(Mobile)",Yp]],[Qp,["QQ(Mobile X5)",Yp]],[qp,["QQ(Mac)",Jp]],[Zp,["QQ(iPad)",ed]],[id,["MI",ad]],[cd,["HW",ud]],[sd,["Samsung",fd]],[pd,["OPPO",dd]],[ld,["VIVO",vd]],[Ap,["EDGE",Mp]],[Fp,["SogouMobile",_p]],[Np,["Sogou",Bp]]]),Ed=function(){var e="unknown",t="unknown";if(Sd.get(!0)){var r=u(Sd.get(!0),2);e=r[0],t=r[1]}return{name:e,version:t}},Od=navigator.userAgent,kd=function(){var e=void 0;screen.width&&(e={width:screen.width?screen.width*window.devicePixelRatio:"",height:screen.height?screen.height*window.devicePixelRatio:""});return e},Cd=Wc,Td=G,Id=Ke,Pd=bn,jd=Uo,Rd=N([].push),Ad=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(u,s,f,p){for(var d,l,v=Id(u),h=Td(v),m=Cd(s,f),g=Pd(h),y=0,b=p||jd,w=t?b(u,g):r||a?b(u,0):void 0;g>y;y++)if((c||y in h)&&(l=m(d=h[y],y,v),e))if(t)w[y]=l;else if(l)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Rd(w,d)}else switch(e){case 4:return!1;case 7:Rd(w,d)}return i?-1:n||o?o:w}},Md={forEach:Ad(0),map:Ad(1),filter:Ad(2),some:Ad(3),every:Ad(4),find:Ad(5),findIndex:Ad(6),filterReject:Ad(7)},Ld=Md.filter;co({target:"Array",proto:!0,forced:!Ko("filter")},{filter:function(e){return Ld(this,e,arguments.length>1?arguments[1]:void 0)}});var Dd=v,Fd=function(e,t){var r=[][e];return!!r&&Dd((function(){r.call(null,t||function(){return 1},1)}))},_d=Md.forEach,Nd=Fd("forEach")?[].forEach:function(e){return _d(this,e,arguments.length>1?arguments[1]:void 0)};co({target:"Array",proto:!0,forced:[].forEach!=Nd},{forEach:Nd});var Bd=function(){for(var e={isSupported:!1},t=["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"],r=0;r<t.length;r++)if(t[r]in window){e.isSupported=!0;break}return e.isSupported},Vd=function(){var e=!1;return jp&&void 0!==window.mozRTCPeerConnection?"getSenders"in window.mozRTCPeerConnection.prototype&&(e=!0):md&&void 0!==window.webkitRTCPeerConnection&&"getSenders"in window.webkitRTCPeerConnection.prototype&&(e=!0),e},zd=d,Hd=Ns,Gd=zs,Wd=Nd,Ud=ir,Qd=function(e){if(e&&e.forEach!==Wd)try{Ud(e,"forEach",Wd)}catch(gg){e.forEach=Wd}};for(var $d in Hd)Hd[$d]&&Qd(zd[$d]&&zd[$d].prototype);Qd(Gd);var Yd=co,Kd=On.indexOf,Xd=Fd,qd=N([].indexOf),Jd=!!qd&&1/qd([1],1,-0)<0,Zd=Xd("indexOf");Yd({target:"Array",proto:!0,forced:Jd||!Zd},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Jd?qd(this,e,t)||0:Kd(this,e,t)}});var el=Md.map;co({target:"Array",proto:!0,forced:!Ko("map")},{map:function(e){return el(this,e,arguments.length>1?arguments[1]:void 0)}});var tl=Ke,rl=Zi,nl=Ui;co({target:"Object",stat:!0,forced:v((function(){rl(1)})),sham:!nl},{getPrototypeOf:function(e){return rl(tl(e))}}),co({target:"Array",stat:!0},{isArray:so});var ol=Object.prototype.hasOwnProperty;function il(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(function(e){if(!e||"object"!==n(e)||"[object Object]"!=Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.toString.call(r)===Function.prototype.toString.call(Object)}(e))switch(Object.prototype.toString.call(e)){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var t in e)if(ol.call(e,t))return!1;return!0}return!1}var al=function(e){return void 0===e},cl=function(){var e=i(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!hl()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,ul(t);case 4:if(!(n=e.sent).audio){e.next=11;break}return e.next=8,wl();case 8:if(0!==e.sent.length){e.next=11;break}throw new Error({message:"no microphone detected, but you are trying to get audio stream, please check your microphone and the configuration on TRTC.createStream."});case 11:if(!n.video){e.next=17;break}return e.next=14,bl();case 14:if(0!==e.sent.length){e.next=17;break}throw new Error({message:"no camera detected, but you are trying to get video stream, please check your camera and the configuration on TRTC.createStream."});case 17:return e.next=19,navigator.mediaDevices.getUserMedia(n);case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function ul(e){return sl.apply(this,arguments)}function sl(){return(sl=i(r().mark((function e(n){var o,i,a,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={echoCancellation:n.echoCancellation,autoGainControl:n.autoGainControl,noiseSuppression:n.noiseSuppression},n.audio){e.next=5;break}o=!1,e.next=15;break;case 5:if(il(n.microphoneId)){e.next=9;break}o=t({deviceId:{exact:n.microphoneId},sampleRate:n.sampleRate,channelCount:n.channelCount},o),e.next=15;break;case 9:return o=t({sampleRate:n.sampleRate,channelCount:n.channelCount},o),e.next=12,wl();case 12:i=e.sent,(a=i.filter((function(e){var t=e.deviceId;return t.length>0&&"default"!==t}))).length>0&&(o.deviceId={exact:a[0].deviceId});case 15:return c={},c=!al(n.facingMode)&&n.video?{facingMode:n.facingMode,width:n.width,height:n.height,frameRate:n.frameRate}:!il(n.cameraId)&&n.video?{deviceId:{exact:n.cameraId},width:n.width,height:n.height,frameRate:n.frameRate}:!!n.video&&(!!al(n.width)||{width:n.width,height:n.height,frameRate:n.frameRate}),e.abrupt("return",{audio:o,video:c});case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var fl,pl,dl,ll,vl=function(){var e=i(r().mark((function e(t){var n,o,i,a,c,u,s,f,p,d,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=[7680,4320],e.prev=1,e.next=4,cl({cameraId:t,video:!0,audio:!1,width:o[0],height:o[1]});case 4:if(n=e.sent,!(i=n.getTracks()[0])||!i.getCapabilities){e.next=14;break}if(s=i.getCapabilities(),f=null==s||null===(a=s.width)||void 0===a?void 0:a.max,p=null==s||null===(c=s.height)||void 0===c?void 0:c.max,d=null==s||null===(u=s.frameRate)||void 0===u?void 0:u.max,!(f&&p&&d)){e.next=14;break}return i.stop(),e.abrupt("return",{maxWidth:f,maxHeight:p,maxFrameRate:d});case 14:return l=i.getSettings(),i.stop(),e.abrupt("return",{maxWidth:l.width,maxHeight:l.height});case 19:e.prev=19,e.t0=e.catch(1),console.error(e.t0);case 22:case"end":return e.stop()}}),e,null,[[1,19]])})));return function(t){return e.apply(this,arguments)}}(),hl=function(){return al(navigator.mediaDevices)?(console.error("navigator.mediaDevices is not supported on your browser"),!0):al(navigator.mediaDevices.getUserMedia)?(console.error("navigator.mediaDevices.getUserMedia is not supported on your browser"),!0):!!al(navigator.mediaDevices.enumerateDevices)&&(console.error("navigator.mediaDevices.enumerateDevices is not supported on your browser"),!0)},ml=function(){return"http:"===location.protocol&&!wd&&(console.error("you should use https"),!0)},gl=function(){if(!navigator.mediaDevices)return!1;var e=["getUserMedia","enumerateDevices"];return e.filter((function(e){return e in navigator.mediaDevices})).length===e.length},yl=function(){var e=i(r().mark((function e(){var t,n,o,i,a,c,u,s,f;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ml()&&!hl()){e.next=2;break}return e.abrupt("return",[]);case 2:return t=!1,n=!1,o=[],i=[],a=[],c={},e.next=13,navigator.mediaDevices.enumerateDevices();case 13:if(e.sent.forEach((function(e){var r=JSON.parse(JSON.stringify(e));if(!c[r.deviceId+r.label+r.kind]){if("audio"===r.kind&&(r.kind="audioinput"),"video"===r.kind&&(r.kind="videoinput"),r.deviceId||(r.deviceId=r.id),r.label?("videoinput"!==r.kind||t||(t=!0),"audioinput"!==r.kind||n||(n=!0)):"videoinput"===r.kind?r.label="Camera ".concat(a.length+1):"audioinput"===r.kind?r.label="Microphone ".concat(o.length+1):"audiooutput"===r.kind?r.label="Speaker ".concat(i.length+1):r.label="Please invoke getUserMedia once.","audioinput"===r.kind&&-1===o.indexOf(r)&&o.push(r),"audiooutput"===r.kind&&-1===i.indexOf(r)&&i.push(r),"videoinput"===r.kind){if(e.getCapabilities&&e.deviceId){var u,s,f,p=e.getCapabilities();r.resolution={maxWidth:null==p||null===(u=p.width)||void 0===u?void 0:u.max,maxHeight:null==p||null===(s=p.height)||void 0===s?void 0:s.max,maxFrameRate:null==p||null===(f=p.