@campoint/vxwebrtc 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see vxwebrtc.umd.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vxWebRTC",[],t):"object"==typeof exports?exports.vxWebRTC=t():e.vxWebRTC=t()}(this,(function(){return(()=>{var e={486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",c=32,u=128,f=1/0,p=9007199254740991,l=NaN,d=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",v="[object Array]",g="[object Boolean]",y="[object Date]",_="[object Error]",C="[object Function]",b="[object GeneratorFunction]",S="[object Map]",w="[object Number]",T="[object Object]",R="[object Promise]",P="[object RegExp]",E="[object Set]",k="[object String]",x="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",D="[object DataView]",j="[object Float32Array]",A="[object Float64Array]",M="[object Int8Array]",L="[object Int16Array]",W="[object Int32Array]",F="[object Uint8Array]",U="[object Uint8ClampedArray]",N="[object Uint16Array]",z="[object Uint32Array]",V=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,K=RegExp($.source),H=RegExp(J.source),q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",we="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="["+Te+"]",Pe="["+be+"]",Ee="\\d+",ke="["+Se+"]",xe="[^\\ud800-\\udfff"+Te+Ee+"\\u2700-\\u27bf"+Se+we+"]",Oe="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="["+we+"]",Me="(?:"+ke+"|"+xe+")",Le="(?:"+Ae+"|"+xe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Fe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Pe+"|"+Oe+")?",Ne="[\\ufe0e\\ufe0f]?",ze=Ne+Ue+"(?:\\u200d(?:"+[Ie,De,je].join("|")+")"+Ne+Ue+")*",Ve="(?:"+["[\\u2700-\\u27bf]",De,je].join("|")+")"+ze,Be="(?:"+[Ie+Pe+"?",Pe,De,je,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['’]","g"),$e=RegExp(Pe,"g"),Je=RegExp(Oe+"(?="+Oe+")|"+Be+ze,"g"),Ke=RegExp([Ae+"?"+ke+"+"+We+"(?="+[Re,Ae,"$"].join("|")+")",Le+"+"+Fe+"(?="+[Re,Ae+Me,"$"].join("|")+")",Ae+"?"+Me+"+"+We,Ae+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ee,Ve].join("|"),"g"),He=RegExp("[\\u200d\\ud800-\\udfff"+be+"\\ufe0e\\ufe0f]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Xe={};Xe[j]=Xe[A]=Xe[M]=Xe[L]=Xe[W]=Xe[F]=Xe[U]=Xe[N]=Xe[z]=!0,Xe[m]=Xe[v]=Xe[I]=Xe[g]=Xe[D]=Xe[y]=Xe[_]=Xe[C]=Xe[S]=Xe[w]=Xe[T]=Xe[P]=Xe[E]=Xe[k]=Xe[O]=!1;var Qe={};Qe[m]=Qe[v]=Qe[I]=Qe[D]=Qe[g]=Qe[y]=Qe[j]=Qe[A]=Qe[M]=Qe[L]=Qe[W]=Qe[S]=Qe[w]=Qe[T]=Qe[P]=Qe[E]=Qe[k]=Qe[x]=Qe[F]=Qe[U]=Qe[N]=Qe[z]=!0,Qe[_]=Qe[C]=Qe[O]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ct=st&&st.exports===at,ut=ct&&rt.process,ft=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),pt=ft&&ft.isArrayBuffer,lt=ft&&ft.isDate,dt=ft&&ft.isMap,ht=ft&&ft.isRegExp,mt=ft&&ft.isSet,vt=ft&&ft.isTypedArray;function gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function wt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Et(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function kt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ot=Wt("length");function It(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Dt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Dt(e,Mt,n)}function At(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Mt(e){return e!=e}function Lt(e,t){var n=null==e?0:e.length;return n?Nt(e,t)/n:l}function Wt(e){return function(t){return null==t?o:t[e]}}function Ft(e){return function(t){return null==e?o:e[t]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Nt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Vt(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Bt(e){return function(t){return e(t)}}function Gt(e,t){return Rt(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}function Ht(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var qt=Ft({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yt=Ft({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Zt(e){return"\\"+et[e]}function Xt(e){return He.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Ot(e)}function an(e){return Xt(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var cn=Ft({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),un=function e(t){var n,r=(t=null==t?it:un.defaults(it.Object(),t,un.pick(it,Ye))).Array,oe=t.Date,be=t.Error,Se=t.Function,we=t.Math,Te=t.Object,Re=t.RegExp,Pe=t.String,Ee=t.TypeError,ke=r.prototype,xe=Se.prototype,Oe=Te.prototype,Ie=t["__core-js_shared__"],De=xe.toString,je=Oe.hasOwnProperty,Ae=0,Me=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Oe.toString,We=De.call(Te),Fe=it._,Ue=Re("^"+De.call(je).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=ct?t.Buffer:o,ze=t.Symbol,Ve=t.Uint8Array,Be=Ne?Ne.allocUnsafe:o,Je=en(Te.getPrototypeOf,Te),He=Te.create,et=Oe.propertyIsEnumerable,rt=ke.splice,ot=ze?ze.isConcatSpreadable:o,at=ze?ze.iterator:o,st=ze?ze.toStringTag:o,ut=function(){try{var e=fi(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Ot=oe&&oe.now!==it.Date.now&&oe.now,Ft=t.setTimeout!==it.setTimeout&&t.setTimeout,fn=we.ceil,pn=we.floor,ln=Te.getOwnPropertySymbols,dn=Ne?Ne.isBuffer:o,hn=t.isFinite,mn=ke.join,vn=en(Te.keys,Te),gn=we.max,yn=we.min,_n=oe.now,Cn=t.parseInt,bn=we.random,Sn=ke.reverse,wn=fi(t,"DataView"),Tn=fi(t,"Map"),Rn=fi(t,"Promise"),Pn=fi(t,"Set"),En=fi(t,"WeakMap"),kn=fi(Te,"create"),xn=En&&new En,On={},In=Ui(wn),Dn=Ui(Tn),jn=Ui(Rn),An=Ui(Pn),Mn=Ui(En),Ln=ze?ze.prototype:o,Wn=Ln?Ln.valueOf:o,Fn=Ln?Ln.toString:o;function Un(e){if(ns(e)&&!$a(e)&&!(e instanceof Bn)){if(e instanceof Vn)return e;if(je.call(e,"__wrapped__"))return Ni(e)}return new Vn(e)}var Nn=function(){function e(){}return function(t){if(!ts(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function zn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Jn;++t<n;)this.add(e[t])}function Hn(e){var t=this.__data__=new $n(e);this.size=t.size}function qn(e,t){var n=$a(e),r=!n&&Ga(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&fs(e),a=n||r||o||i,s=a?zt(e.length,Pe):[],c=s.length;for(var u in e)!t&&!je.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||gi(u,c))||s.push(u);return s}function Yn(e){var t=e.length;return t?e[Jr(0,t-1)]:o}function Zn(e,t){return Ai(ko(e),ar(t,0,e.length))}function Xn(e){return Ai(ko(e))}function Qn(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];je.call(e,t)&&za(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function nr(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&xo(t,Ds(t),e)}function or(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Es(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,c=1&t,u=2&t,f=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var p=$a(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ko(e,s)}else{var l=di(e),d=l==C||l==b;if(qa(e))return So(e,c);if(l==T||l==m||d&&!i){if(s=u||d?{}:mi(e),!c)return u?function(e,t){return xo(e,li(e),t)}(e,function(e,t){return e&&xo(t,js(t),e)}(s,e)):function(e,t){return xo(e,pi(e),t)}(e,rr(s,e))}else{if(!Qe[l])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case I:return wo(e);case g:case y:return new o(+e);case D:return function(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case A:case M:case L:case W:case F:case U:case N:case z:return To(e,n);case S:return new o;case w:case k:return new o(e);case P:return function(e){var t=new e.constructor(e.source,le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new o;case x:return r=e,Wn?Te(Wn.call(r)):{}}}(e,l,c)}}a||(a=new Hn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var v=p?o:(f?u?ri:ni:u?js:Ds)(e);return _t(v||e,(function(r,o){v&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ee(i);return Oi((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=wt,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Rt(t,Bt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=$t,a=!1,t=new Kn(t));e:for(;++o<s;){var f=e[o],p=null==n?f:n(f);if(f=r||0!==f?f:0,a&&p==p){for(var l=u;l--;)if(t[l]===p)continue e;c.push(f)}else i(t,p,r)||c.push(f)}return c}Un.templateSettings={escape:q,evaluate:Y,interpolate:Z,variable:"",imports:{_:Un}},Un.prototype=zn.prototype,Un.prototype.constructor=Un,Vn.prototype=Nn(zn.prototype),Vn.prototype.constructor=Vn,Bn.prototype=Nn(zn.prototype),Bn.prototype.constructor=Bn,Gn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(kn){var n=t[e];return n===a?o:n}return je.call(t,e)?t[e]:o},Gn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==o:je.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===o?a:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},$n.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},$n.prototype.has=function(e){return tr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Tn||$n),string:new Gn}},Jn.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return ci(this,e).get(e)},Jn.prototype.has=function(e){return ci(this,e).has(e)},Jn.prototype.set=function(e,t){var n=ci(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Hn.prototype.clear=function(){this.__data__=new $n,this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Hn.prototype.get=function(e){return this.__data__.get(e)},Hn.prototype.has=function(e){return this.__data__.has(e)},Hn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var pr=Do(_r),lr=Do(Cr,!0);function dr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(c===o?s==s&&!us(s):n(s,c)))var c=s,u=a}return u}function mr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=vi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?vr(s,t-1,n,r,o):Pt(o,s):r||(o[o.length]=s)}return o}var gr=jo(),yr=jo(!0);function _r(e,t){return e&&gr(e,t,Ds)}function Cr(e,t){return e&&yr(e,t,Ds)}function br(e,t){return St(t,(function(t){return Xa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[Fi(t[n++])];return n&&n==r?e:o}function wr(e,t,n){var r=t(e);return $a(e)?r:Pt(r,n(e))}function Tr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Te(e)?function(e){var t=je.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=Le.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return Le.call(e)}(e)}function Rr(e,t){return e>t}function Pr(e,t){return null!=e&&je.call(e,t)}function Er(e,t){return null!=e&&t in Te(e)}function kr(e,t,n){for(var i=n?Tt:wt,a=e[0].length,s=e.length,c=s,u=r(s),f=1/0,p=[];c--;){var l=e[c];c&&t&&(l=Rt(l,Bt(t))),f=yn(l.length,f),u[c]=!n&&(t||a>=120&&l.length>=120)?new Kn(c&&l):o}l=e[0];var d=-1,h=u[0];e:for(;++d<a&&p.length<f;){var m=l[d],v=t?t(m):m;if(m=n||0!==m?m:0,!(h?$t(h,v):i(p,v,n))){for(c=s;--c;){var g=u[c];if(!(g?$t(g,v):i(e[c],v,n)))continue e}h&&h.push(v),p.push(m)}}return p}function xr(e,t,n){var r=null==(e=Pi(e,t=yo(t,e)))?e:e[Fi(Zi(t))];return null==r?o:gt(r,e,n)}function Or(e){return ns(e)&&Tr(e)==m}function Ir(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=$a(e),c=$a(t),u=s?v:di(e),f=c?v:di(t),p=(u=u==m?T:u)==T,l=(f=f==m?T:f)==T,d=u==f;if(d&&qa(e)){if(!qa(t))return!1;s=!0,p=!1}if(d&&!p)return a||(a=new Hn),s||fs(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case g:case y:case w:return za(+e,+t);case _:return e.name==t.name&&e.message==t.message;case P:case k:return e==t+"";case S:var s=Qt;case E:var c=1&r;if(s||(s=nn),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var f=ei(s(e),s(t),r,o,i,a);return a.delete(e),f;case x:if(Wn)return Wn.call(e)==Wn.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=p&&je.call(e,"__wrapped__"),C=l&&je.call(t,"__wrapped__");if(h||C){var b=h?e.value():e,R=C?t.value():t;return a||(a=new Hn),i(b,R,n,r,a)}}return!!d&&(a||(a=new Hn),function(e,t,n,r,i,a){var s=1&n,c=ni(e),u=c.length;if(u!=ni(t).length&&!s)return!1;for(var f=u;f--;){var p=c[f];if(!(s?p in t:je.call(t,p)))return!1}var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++f<u;){var v=e[p=c[f]],g=t[p];if(r)var y=s?r(g,v,p,t,e,a):r(v,g,p,e,t,a);if(!(y===o?v===g||i(v,g,n,r,a):y)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var _=e.constructor,C=t.constructor;_==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof C&&C instanceof C||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Ir,i))}function Dr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Te(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var u=(c=n[i])[0],f=e[u],p=c[1];if(s&&c[2]){if(f===o&&!(u in e))return!1}else{var l=new Hn;if(r)var d=r(f,p,u,e,t,l);if(!(d===o?Ir(p,f,3,r,l):d))return!1}}return!0}function jr(e){return!(!ts(e)||(t=e,Me&&Me in t))&&(Xa(e)?Ue:me).test(Ui(e));var t}function Ar(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?$a(e)?Ur(e[0],e[1]):Fr(e):dc(e)}function Mr(e){if(!Si(e))return vn(e);var t=[];for(var n in Te(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e,t){return e<t}function Wr(e,t){var n=-1,o=Ka(e)?r(e.length):[];return pr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Fr(e){var t=ui(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Ur(e,t){return _i(e)&&wi(t)?Ti(Fi(e),t):function(n){var r=Es(n,e);return r===o&&r===t?ks(n,e):Ir(t,r,3)}}function Nr(e,t,n,r,i){e!==t&&gr(t,(function(a,s){if(i||(i=new Hn),ts(a))!function(e,t,n,r,i,a,s){var c=ki(e,n),u=ki(t,n),f=s.get(u);if(f)Qn(e,n,f);else{var p=a?a(c,u,n+"",e,t,s):o,l=p===o;if(l){var d=$a(u),h=!d&&qa(u),m=!d&&!h&&fs(u);p=u,d||h||m?$a(c)?p=c:Ha(c)?p=ko(c):h?(l=!1,p=So(u,!0)):m?(l=!1,p=To(u,!0)):p=[]:is(u)||Ga(u)?(p=c,Ga(c)?p=ys(c):ts(c)&&!Xa(c)||(p=mi(u))):l=!1}l&&(s.set(u,p),i(p,u,r,a,s),s.delete(u)),Qn(e,n,p)}}(e,t,s,n,Nr,r,i);else{var c=r?r(ki(e,s),a,s+"",e,t,i):o;c===o&&(c=a),Qn(e,s,c)}}),js)}function zr(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?Rt(t,(function(e){return $a(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=Rt(t,Bt(si()));var o=Wr(e,(function(e,n,o){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=Ro(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Sr(e,a);n(s,a)&&Zr(i,yo(a,e),s)}return i}function Gr(e,t,n,r){var o=r?At:jt,i=-1,a=t.length,s=e;for(e===t&&(t=ko(t)),n&&(s=Rt(e,Bt(n)));++i<a;)for(var c=0,u=t[i],f=n?n(u):u;(c=o(s,f,c,r))>-1;)s!==e&&rt.call(s,c,1),rt.call(e,c,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?rt.call(e,o,1):uo(e,o)}}return e}function Jr(e,t){return e+pn(bn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pn(t/2))&&(e+=e)}while(t);return n}function Hr(e,t){return Ii(Ri(e,t,oc),e+"")}function qr(e){return Yn(zs(e))}function Yr(e,t){var n=zs(e);return Ai(n,ar(t,0,n.length))}function Zr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,c=e;null!=c&&++i<a;){var u=Fi(t[i]),f=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var p=c[u];(f=r?r(p,u,c):o)===o&&(f=ts(p)?p:gi(t[i+1])?[]:{})}er(c,u,f),c=c[u]}return e}var Xr=xn?function(e,t){return xn.set(e,t),e}:oc,Qr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function eo(e){return Ai(zs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!us(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,oc,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,c=null===t,u=us(t),f=t===o;i<a;){var p=pn((i+a)/2),l=n(e[p]),d=l!==o,h=null===l,m=l==l,v=us(l);if(s)var g=r||m;else g=f?m&&(r||d):c?m&&d&&(r||!h):u?m&&d&&!h&&(r||!v):!h&&!v&&(r?l<=t:l<t);g?i=p+1:a=p}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:us(e)?l:+e}function so(e){if("string"==typeof e)return e;if($a(e))return Rt(e,so)+"";if(us(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,n){var r=-1,o=wt,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Tt;else if(i>=200){var u=t?null:Ho(e);if(u)return nn(u);a=!1,o=$t,c=new Kn}else c=t?[]:s;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,a&&p==p){for(var l=c.length;l--;)if(c[l]===p)continue e;t&&c.push(p),s.push(f)}else o(c,p,n)||(c!==s&&c.push(p),s.push(f))}return s}function uo(e,t){return null==(e=Pi(e,t=yo(t,e)))||delete e[Fi(Zi(t))]}function fo(e,t,n,r){return Zr(e,t,n(Sr(e,t)),r)}function po(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function lo(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Et(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],c=-1;++c<o;)c!=i&&(a[i]=fr(a[i]||s,e[c],t,n));return co(vr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var c=r<a?t[r]:o;n(s,e[r],c)}return s}function vo(e){return Ha(e)?e:[]}function go(e){return"function"==typeof e?e:oc}function yo(e,t){return $a(e)?e:_i(e,t)?[e]:Wi(_s(e))}var _o=Hr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var bo=ft||function(e){return it.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=Be?Be(n):new e.constructor(n);return e.copy(r),r}function wo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function To(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ro(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=us(e),s=t!==o,c=null===t,u=t==t,f=us(t);if(!c&&!f&&!a&&e>t||a&&s&&u&&!c&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||c&&n&&i||!s&&i||!u)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,s=n.length,c=-1,u=t.length,f=gn(a-s,0),p=r(u+f),l=!o;++c<u;)p[c]=t[c];for(;++i<s;)(l||i<a)&&(p[n[i]]=e[i]);for(;f--;)p[c++]=e[i++];return p}function Eo(e,t,n,o){for(var i=-1,a=e.length,s=-1,c=n.length,u=-1,f=t.length,p=gn(a-c,0),l=r(p+f),d=!o;++i<p;)l[i]=e[i];for(var h=i;++u<f;)l[h+u]=t[u];for(;++s<c;)(d||i<a)&&(l[h+n[s]]=e[i++]);return l}function ko(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function xo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?or(n,c,u):er(n,c,u)}return n}function Oo(e,t){return function(n,r){var o=$a(n)?yt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function Io(e){return Hr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Te(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Do(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Te(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function jo(e){return function(t,n,r){for(var o=-1,i=Te(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}function Ao(e){return function(t){var n=Xt(t=_s(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function Mo(e){return function(t){return Et(Xs(Gs(t).replace(Ge,"")),e,"")}}function Lo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Nn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Wo(e){return function(t,n,r){var i=Te(t);if(!Ka(t)){var a=si(n,3);t=Ds(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Fo(e){return ti((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ee(i);if(a&&!c&&"wrapper"==ii(s))var c=new Vn([],!0)}for(r=c?r:n;++r<n;){var u=ii(s=t[r]),f="wrapper"==u?oi(s):o;c=f&&Ci(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?c[ii(f[0])].apply(c,f[3]):1==s.length&&Ci(s)?c[u]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&$a(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Uo(e,t,n,i,a,s,c,f,p,l){var d=t&u,h=1&t,m=2&t,v=24&t,g=512&t,y=m?o:Lo(e);return function o(){for(var u=arguments.length,_=r(u),C=u;C--;)_[C]=arguments[C];if(v)var b=ai(o),S=Ht(_,b);if(i&&(_=Po(_,i,a,v)),s&&(_=Eo(_,s,c,v)),u-=S,v&&u<l){var w=tn(_,b);return Jo(e,t,Uo,o.placeholder,n,_,w,f,p,l-u)}var T=h?n:this,R=m?T[e]:e;return u=_.length,f?_=Ei(_,f):g&&u>1&&_.reverse(),d&&p<u&&(_.length=p),this&&this!==it&&this instanceof o&&(R=y||Lo(R)),R.apply(T,_)}}function No(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Vo(e){return ti((function(t){return t=Rt(t,Bt(si())),Hr((function(n){var r=this;return e(t,(function(e){return gt(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,fn(e/on(t)));return Xt(t)?Co(an(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n,o){for(var i=-1,a=gn(fn((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:hs(i),e)}}function $o(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Jo(e,t,n,r,i,a,s,u,f,p){var l=8&t;t|=l?c:64,4&(t&=~(l?64:c))||(t&=-4);var d=[e,t,i,l?a:o,l?s:o,l?o:a,l?o:s,u,f,p],h=n.apply(o,d);return Ci(e)&&xi(h,d),h.placeholder=r,Di(h,e,t)}function Ko(e){var t=we[e];return function(e,n){if(e=gs(e),(n=null==n?0:yn(ms(n),292))&&hn(e)){var r=(_s(e)+"e").split("e");return+((r=(_s(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ho=Pn&&1/nn(new Pn([,-0]))[1]==f?function(e){return new Pn(e)}:uc;function qo(e){return function(t){var n=di(t);return n==S?Qt(t):n==E?rn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,n,a,f,p,l,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ee(i);var m=a?a.length:0;if(m||(t&=-97,a=f=o),l=l===o?l:gn(ms(l),0),d=d===o?d:ms(d),m-=f?f.length:0,64&t){var v=a,g=f;a=f=o}var y=h?o:oi(e),_=[e,t,n,a,f,v,g,p,l,d];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var f=e[3];e[3]=f?Po(f,c,t[4]):c,e[4]=f?tn(e[3],s):t[4]}(c=t[5])&&(f=e[5],e[5]=f?Eo(f,c,t[6]):c,e[6]=f?tn(e[5],s):t[6]),(c=t[7])&&(e[7]=c),r&u&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(_,y),e=_[0],t=_[1],n=_[2],a=_[3],f=_[4],!(d=_[9]=_[9]===o?h?0:e.length:gn(_[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||16==t?function(e,t,n){var i=Lo(e);return function a(){for(var s=arguments.length,c=r(s),u=s,f=ai(a);u--;)c[u]=arguments[u];var p=s<3&&c[0]!==f&&c[s-1]!==f?[]:tn(c,f);return(s-=p.length)<n?Jo(e,t,Uo,a.placeholder,o,c,p,o,o,n-s):gt(this&&this!==it&&this instanceof a?i:e,this,c)}}(e,t,d):t!=c&&33!=t||f.length?Uo.apply(o,_):function(e,t,n,o){var i=1&t,a=Lo(e);return function t(){for(var s=-1,c=arguments.length,u=-1,f=o.length,p=r(f+c),l=this&&this!==it&&this instanceof t?a:e;++u<f;)p[u]=o[u];for(;c--;)p[u++]=arguments[++s];return gt(l,i?n:this,p)}}(e,t,n,a);else var C=function(e,t,n){var r=1&t,o=Lo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Di((y?Xr:xi)(C,_),e,t)}function Zo(e,t,n,r){return e===o||za(e,Oe[n])&&!je.call(r,n)?t:e}function Xo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Nr(e,t,o,Xo,a),a.delete(t)),e}function Qo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var l=-1,d=!0,h=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++l<c;){var m=e[l],v=t[l];if(r)var g=s?r(v,m,l,t,e,a):r(m,v,l,e,t,a);if(g!==o){if(g)continue;d=!1;break}if(h){if(!xt(t,(function(e,t){if(!$t(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==v&&!i(m,v,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ti(e){return Ii(Ri(e,o,Ji),e+"")}function ni(e){return wr(e,Ds,pi)}function ri(e){return wr(e,js,li)}var oi=xn?function(e){return xn.get(e)}:uc;function ii(e){for(var t=e.name+"",n=On[t],r=je.call(On,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(je.call(Un,"placeholder")?Un:e).placeholder}function si(){var e=Un.iteratee||ic;return e=e===ic?Ar:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Ds(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,wi(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return jr(n)?n:o}var pi=ln?function(e){return null==e?[]:(e=Te(e),St(ln(e),(function(t){return et.call(e,t)})))}:vc,li=ln?function(e){for(var t=[];e;)Pt(t,pi(e)),e=Je(e);return t}:vc,di=Tr;function hi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=Fi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&gi(a,o)&&($a(e)||Ga(e))}function mi(e){return"function"!=typeof e.constructor||Si(e)?{}:Nn(Je(e))}function vi(e){return $a(e)||Ga(e)||!!(ot&&e&&e[ot])}function gi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&gi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function _i(e,t){if($a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||Q.test(e)||!X.test(e)||null!=t&&e in Te(t)}function Ci(e){var t=ii(e),n=Un[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(wn&&di(new wn(new ArrayBuffer(1)))!=D||Tn&&di(new Tn)!=S||Rn&&di(Rn.resolve())!=R||Pn&&di(new Pn)!=E||En&&di(new En)!=O)&&(di=function(e){var t=Tr(e),n=t==T?e.constructor:o,r=n?Ui(n):"";if(r)switch(r){case In:return D;case Dn:return S;case jn:return R;case An:return E;case Mn:return O}return t});var bi=Ie?Xa:gc;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function wi(e){return e==e&&!ts(e)}function Ti(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Te(n))}}function Ri(e,t,n){return t=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(s),gt(e,this,c)}}function Pi(e,t){return t.length<2?e:Sr(e,to(t,0,-1))}function Ei(e,t){for(var n=e.length,r=yn(t.length,n),i=ko(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}function ki(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xi=ji(Xr),Oi=Ft||function(e,t){return it.setTimeout(e,t)},Ii=ji(Qr);function Di(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(h,(function(n){var r="_."+n[0];t&n[1]&&!wt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function ji(e){var t=0,n=0;return function(){var r=_n(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ai(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Jr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Mi,Li,Wi=(Mi=Ma((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}),(function(e){return 500===Li.size&&Li.clear(),e})),Li=Mi.cache,Mi);function Fi(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ui(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Bn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=ko(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Hr((function(e,t){return Ha(e)?fr(e,vr(t,1,Ha,!0)):[]})),Vi=Hr((function(e,t){var n=Zi(t);return Ha(n)&&(n=o),Ha(e)?fr(e,vr(t,1,Ha,!0),si(n,2)):[]})),Bi=Hr((function(e,t){var n=Zi(t);return Ha(n)&&(n=o),Ha(e)?fr(e,vr(t,1,Ha,!0),o,n):[]}));function Gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=gn(r+o,0)),Dt(e,si(t,3),o)}function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?gn(r+i,0):yn(i,r-1)),Dt(e,si(t,3),i,!0)}function Ji(e){return null!=e&&e.length?vr(e,1):[]}function Ki(e){return e&&e.length?e[0]:o}var Hi=Hr((function(e){var t=Rt(e,vo);return t.length&&t[0]===e[0]?kr(t):[]})),qi=Hr((function(e){var t=Zi(e),n=Rt(e,vo);return t===Zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?kr(n,si(t,2)):[]})),Yi=Hr((function(e){var t=Zi(e),n=Rt(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?kr(n,o,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Hr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return $r(e,Rt(t,(function(e){return gi(e,n)?+e:e})).sort(Ro)),r}));function ta(e){return null==e?e:Sn.call(e)}var na=Hr((function(e){return co(vr(e,1,Ha,!0))})),ra=Hr((function(e){var t=Zi(e);return Ha(t)&&(t=o),co(vr(e,1,Ha,!0),si(t,2))})),oa=Hr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,co(vr(e,1,Ha,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Ha(e))return t=gn(e.length,t),!0})),zt(t,(function(t){return Rt(e,Wt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Rt(n,(function(e){return gt(t,o,e)}))}var sa=Hr((function(e,t){return Ha(e)?fr(e,t):[]})),ca=Hr((function(e){return ho(St(e,Ha))})),ua=Hr((function(e){var t=Zi(e);return Ha(t)&&(t=o),ho(St(e,Ha),si(t,2))})),fa=Hr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,ho(St(e,Ha),o,t)})),pa=Hr(ia),la=Hr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function da(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),va=Oo((function(e,t,n){je.call(e,n)?++e[n]:or(e,n,1)})),ga=Wo(Gi),ya=Wo($i);function _a(e,t){return($a(e)?_t:pr)(e,si(t,3))}function Ca(e,t){return($a(e)?Ct:lr)(e,si(t,3))}var ba=Oo((function(e,t,n){je.call(e,n)?e[n].push(t):or(e,n,[t])})),Sa=Hr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ka(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?gt(t,e,n):xr(e,t,n)})),a})),wa=Oo((function(e,t,n){or(e,n,t)}));function Ta(e,t){return($a(e)?Rt:Wr)(e,si(t,3))}var Ra=Oo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Pa=Hr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,vr(t,1),[])})),Ea=Ot||function(){return it.Date.now()};function ka(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Yo(e,u,o,o,o,o,t)}function xa(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Oa=Hr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Oa));r|=c}return Yo(e,r,t,n,o)})),Ia=Hr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ia));r|=c}return Yo(t,r,e,n,o)}));function Da(e,t,n){var r,a,s,c,u,f,p=0,l=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ee(i);function m(t){var n=r,i=a;return r=a=o,p=t,c=e.apply(i,n)}function v(e){return p=e,u=Oi(y,t),l?m(e):c}function g(e){var n=e-f;return f===o||n>=t||n<0||d&&e-p>=s}function y(){var e=Ea();if(g(e))return _(e);u=Oi(y,function(e){var n=t-(e-f);return d?yn(n,s-(e-p)):n}(e))}function _(e){return u=o,h&&r?m(e):(r=a=o,c)}function C(){var e=Ea(),n=g(e);if(r=arguments,a=this,f=e,n){if(u===o)return v(f);if(d)return bo(u),u=Oi(y,t),m(f)}return u===o&&(u=Oi(y,t)),c}return t=gs(t)||0,ts(n)&&(l=!!n.leading,s=(d="maxWait"in n)?gn(gs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),C.cancel=function(){u!==o&&bo(u),p=0,r=f=a=u=o},C.flush=function(){return u===o?c:_(Ea())},C}var ja=Hr((function(e,t){return ur(e,1,t)})),Aa=Hr((function(e,t,n){return ur(e,gs(t)||0,n)}));function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ma.Cache||Jn),n}function La(e){if("function"!=typeof e)throw new Ee(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=Jn;var Wa=_o((function(e,t){var n=(t=1==t.length&&$a(t[0])?Rt(t[0],Bt(si())):Rt(vr(t,1),Bt(si()))).length;return Hr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return gt(e,this,r)}))})),Fa=Hr((function(e,t){var n=tn(t,ai(Fa));return Yo(e,c,o,t,n)})),Ua=Hr((function(e,t){var n=tn(t,ai(Ua));return Yo(e,64,o,t,n)})),Na=ti((function(e,t){return Yo(e,256,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Va=$o(Rr),Ba=$o((function(e,t){return e>=t})),Ga=Or(function(){return arguments}())?Or:function(e){return ns(e)&&je.call(e,"callee")&&!et.call(e,"callee")},$a=r.isArray,Ja=pt?Bt(pt):function(e){return ns(e)&&Tr(e)==I};function Ka(e){return null!=e&&es(e.length)&&!Xa(e)}function Ha(e){return ns(e)&&Ka(e)}var qa=dn||gc,Ya=lt?Bt(lt):function(e){return ns(e)&&Tr(e)==y};function Za(e){if(!ns(e))return!1;var t=Tr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!ts(e))return!1;var t=Tr(e);return t==C||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=dt?Bt(dt):function(e){return ns(e)&&di(e)==S};function os(e){return"number"==typeof e||ns(e)&&Tr(e)==w}function is(e){if(!ns(e)||Tr(e)!=T)return!1;var t=Je(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==We}var as=ht?Bt(ht):function(e){return ns(e)&&Tr(e)==P},ss=mt?Bt(mt):function(e){return ns(e)&&di(e)==E};function cs(e){return"string"==typeof e||!$a(e)&&ns(e)&&Tr(e)==k}function us(e){return"symbol"==typeof e||ns(e)&&Tr(e)==x}var fs=vt?Bt(vt):function(e){return ns(e)&&es(e.length)&&!!Xe[Tr(e)]},ps=$o(Lr),ls=$o((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Ka(e))return cs(e)?an(e):ko(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=di(e);return(t==S?Qt:t==E?nn:zs)(e)}function hs(e){return e?(e=gs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?ar(ms(e),0,d):0}function gs(e){if("number"==typeof e)return e;if(us(e))return l;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=he.test(e);return n||ve.test(e)?nt(e.slice(2),n?2:8):de.test(e)?l:+e}function ys(e){return xo(e,js(e))}function _s(e){return null==e?"":so(e)}var Cs=Io((function(e,t){if(Si(t)||Ka(t))xo(t,Ds(t),e);else for(var n in t)je.call(t,n)&&er(e,n,t[n])})),bs=Io((function(e,t){xo(t,js(t),e)})),Ss=Io((function(e,t,n,r){xo(t,js(t),e,r)})),ws=Io((function(e,t,n,r){xo(t,Ds(t),e,r)})),Ts=ti(ir),Rs=Hr((function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=js(a),c=-1,u=s.length;++c<u;){var f=s[c],p=e[f];(p===o||za(p,Oe[f])&&!je.call(e,f))&&(e[f]=a[f])}return e})),Ps=Hr((function(e){return e.push(o,Xo),gt(Ms,o,e)}));function Es(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function ks(e,t){return null!=e&&hi(e,t,Er)}var xs=No((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),tc(oc)),Os=No((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),si),Is=Hr(xr);function Ds(e){return Ka(e)?qn(e):Mr(e)}function js(e){return Ka(e)?qn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}(e)}var As=Io((function(e,t,n){Nr(e,t,n)})),Ms=Io((function(e,t,n,r){Nr(e,t,n,r)})),Ls=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),xo(e,ri(e),n),r&&(n=sr(n,7,Qo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Ws=ti((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return ks(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Rt(ri(e),(function(e){return[e]}));return t=si(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var Us=qo(Ds),Ns=qo(js);function zs(e){return null==e?[]:Gt(e,Ds(e))}var Vs=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)}));function Bs(e){return Zs(_s(e).toLowerCase())}function Gs(e){return(e=_s(e))&&e.replace(ye,qt).replace($e,"")}var $s=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Js=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Ao("toLowerCase"),Hs=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qs=Mo((function(e,t,n){return e+(n?" ":"")+Zs(t)})),Ys=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Ao("toUpperCase");function Xs(e,t,n){return e=_s(e),(t=n?o:t)===o?function(e){return qe.test(e)}(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Qs=Hr((function(e,t){try{return gt(e,o,t)}catch(e){return Za(e)?e:new be(e)}})),ec=ti((function(e,t){return _t(t,(function(t){t=Fi(t),or(e,t,Oa(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Fo(),rc=Fo(!0);function oc(e){return e}function ic(e){return Ar("function"==typeof e?e:sr(e,1))}var ac=Hr((function(e,t){return function(n){return xr(n,e,t)}})),sc=Hr((function(e,t){return function(n){return xr(e,n,t)}}));function cc(e,t,n){var r=Ds(t),o=br(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=br(t,Ds(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return _t(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ko(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function uc(){}var fc=Vo(Rt),pc=Vo(bt),lc=Vo(xt);function dc(e){return _i(e)?Wt(Fi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hc=Go(),mc=Go(!0);function vc(){return[]}function gc(){return!1}var yc,_c=zo((function(e,t){return e+t}),0),Cc=Ko("ceil"),bc=zo((function(e,t){return e/t}),1),Sc=Ko("floor"),wc=zo((function(e,t){return e*t}),1),Tc=Ko("round"),Rc=zo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=ka,Un.assign=Cs,Un.assignIn=bs,Un.assignInWith=Ss,Un.assignWith=ws,Un.at=Ts,Un.before=xa,Un.bind=Oa,Un.bindAll=ec,Un.bindKey=Ia,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Un.chain=da,Un.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:gn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,c=r(fn(i/t));a<i;)c[s++]=to(e,a,a+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Pt($a(n)?ko(n):[n],vr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Ee(i);return[n(e[0]),e[1]]})):[],Hr((function(n){for(var r=-1;++r<t;){var o=e[r];if(gt(o[0],this,n))return gt(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Ds(e);return function(n){return cr(n,e,t)}}(sr(e,1))},Un.constant=tc,Un.countBy=va,Un.create=function(e,t){var n=Nn(e);return null==t?n:rr(n,t)},Un.curry=function e(t,n,r){var i=Yo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=Yo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=Da,Un.defaults=Rs,Un.defaultsDeep=Ps,Un.defer=ja,Un.delay=Aa,Un.difference=zi,Un.differenceBy=Vi,Un.differenceWith=Bi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:vs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return($a(e)?St:mr)(e,si(t,3))},Un.flatMap=function(e,t){return vr(Ta(e,t),1)},Un.flatMapDeep=function(e,t){return vr(Ta(e,t),f)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),vr(Ta(e,t),n)},Un.flatten=Ji,Un.flattenDeep=function(e){return null!=e&&e.length?vr(e,f):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===o?1:ms(t)):[]},Un.flip=function(e){return Yo(e,512)},Un.flow=nc,Un.flowRight=rc,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:br(e,Ds(e))},Un.functionsIn=function(e){return null==e?[]:br(e,js(e))},Un.groupBy=ba,Un.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Un.intersection=Hi,Un.intersectionBy=qi,Un.intersectionWith=Yi,Un.invert=xs,Un.invertBy=Os,Un.invokeMap=Sa,Un.iteratee=ic,Un.keyBy=wa,Un.keys=Ds,Un.keysIn=js,Un.map=Ta,Un.mapKeys=function(e,t){var n={};return t=si(t,3),_r(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=si(t,3),_r(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Un.matches=function(e){return Fr(sr(e,1))},Un.matchesProperty=function(e,t){return Ur(e,sr(t,1))},Un.memoize=Ma,Un.merge=As,Un.mergeWith=Ms,Un.method=ac,Un.methodOf=sc,Un.mixin=cc,Un.negate=La,Un.nthArg=function(e){return e=ms(e),Hr((function(t){return zr(t,e)}))},Un.omit=Ls,Un.omitBy=function(e,t){return Fs(e,La(si(t)))},Un.once=function(e){return xa(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:($a(t)||(t=null==t?[]:[t]),$a(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Un.over=fc,Un.overArgs=Wa,Un.overEvery=pc,Un.overSome=lc,Un.partial=Fa,Un.partialRight=Ua,Un.partition=Ra,Un.pick=Ws,Un.pickBy=Fs,Un.property=dc,Un.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Un.pull=Xi,Un.pullAll=Qi,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,si(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Un.pullAt=ea,Un.range=hc,Un.rangeRight=mc,Un.rearg=Na,Un.reject=function(e,t){return($a(e)?St:mr)(e,La(si(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return $r(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Ee(i);return Hr(e,t=t===o?t:ms(t))},Un.reverse=ta,Un.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ms(t),($a(e)?Zn:Yr)(e,t)},Un.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Un.shuffle=function(e){return($a(e)?Xn:eo)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),to(e,t,n)):[]},Un.sortBy=Pa,Un.sortedUniq=function(e){return e&&e.length?io(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Xt(e)?Co(an(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ee(i);return t=null==t?0:gn(ms(t),0),Hr((function(n){var r=n[t],o=Co(n,0,t);return r&&Pt(o,r),gt(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?po(e,si(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ee(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Da(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ha,Un.toArray=ds,Un.toPairs=Us,Un.toPairsIn=Ns,Un.toPath=function(e){return $a(e)?Rt(e,Fi):us(e)?[e]:ko(Wi(_s(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=$a(e),o=r||qa(e)||fs(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Xa(i)?Nn(Je(e)):{}}return(o?_t:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return ka(e,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?co(e):[]},Un.uniqBy=function(e,t){return e&&e.length?co(e,si(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},Un.unset=function(e,t){return null==e||uo(e,t)},Un.unzip=ia,Un.unzipWith=aa,Un.update=function(e,t,n){return null==e?e:fo(e,t,go(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fo(e,t,go(n),r)},Un.values=zs,Un.valuesIn=function(e){return null==e?[]:Gt(e,js(e))},Un.without=sa,Un.words=Xs,Un.wrap=function(e,t){return Fa(go(t),e)},Un.xor=ca,Un.xorBy=ua,Un.xorWith=fa,Un.zip=pa,Un.zipObject=function(e,t){return mo(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return mo(e||[],t||[],Zr)},Un.zipWith=la,Un.entries=Us,Un.entriesIn=Ns,Un.extend=bs,Un.extendWith=Ss,cc(Un,Un),Un.add=_c,Un.attempt=Qs,Un.camelCase=Vs,Un.capitalize=Bs,Un.ceil=Cc,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gs(n))==n?n:0),t!==o&&(t=(t=gs(t))==t?t:0),ar(gs(e),t,n)},Un.clone=function(e){return sr(e,4)},Un.cloneDeep=function(e){return sr(e,5)},Un.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Ds(t))},Un.deburr=Gs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=bc,Un.endsWith=function(e,t,n){e=_s(e),t=so(t);var r=e.length,i=n=n===o?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=za,Un.escape=function(e){return(e=_s(e))&&H.test(e)?e.replace(J,Yt):e},Un.escapeRegExp=function(e){return(e=_s(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=$a(e)?bt:dr;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Un.find=ga,Un.findIndex=Gi,Un.findKey=function(e,t){return It(e,si(t,3),_r)},Un.findLast=ya,Un.findLastIndex=$i,Un.findLastKey=function(e,t){return It(e,si(t,3),Cr)},Un.floor=Sc,Un.forEach=_a,Un.forEachRight=Ca,Un.forIn=function(e,t){return null==e?e:gr(e,si(t,3),js)},Un.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),js)},Un.forOwn=function(e,t){return e&&_r(e,si(t,3))},Un.forOwnRight=function(e,t){return e&&Cr(e,si(t,3))},Un.get=Es,Un.gt=Va,Un.gte=Ba,Un.has=function(e,t){return null!=e&&hi(e,t,Pr)},Un.hasIn=ks,Un.head=Ki,Un.identity=oc,Un.includes=function(e,t,n,r){e=Ka(e)?e:zs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),cs(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=gn(r+o,0)),jt(e,t,o)},Un.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e<gn(t,n)}(e=gs(e),t,n)},Un.invoke=Is,Un.isArguments=Ga,Un.isArray=$a,Un.isArrayBuffer=Ja,Un.isArrayLike=Ka,Un.isArrayLikeObject=Ha,Un.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Tr(e)==g},Un.isBuffer=qa,Un.isDate=Ya,Un.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||fs(e)||Ga(e)))return!e.length;var t=di(e);if(t==S||t==E)return!e.size;if(Si(e))return!Mr(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ir(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Ir(e,t,o,n):!!r},Un.isError=Za,Un.isFinite=function(e){return"number"==typeof e&&hn(e)},Un.isFunction=Xa,Un.isInteger=Qa,Un.isLength=es,Un.isMap=rs,Un.isMatch=function(e,t){return e===t||Dr(e,t,ui(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Dr(e,t,ui(t),n)},Un.isNaN=function(e){return os(e)&&e!=+e},Un.isNative=function(e){if(bi(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=os,Un.isObject=ts,Un.isObjectLike=ns,Un.isPlainObject=is,Un.isRegExp=as,Un.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=p},Un.isSet=ss,Un.isString=cs,Un.isSymbol=us,Un.isTypedArray=fs,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return ns(e)&&di(e)==O},Un.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Tr(e)},Un.join=function(e,t){return null==e?"":mn.call(e,t)},Un.kebabCase=$s,Un.last=Zi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?gn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Dt(e,Mt,i,!0)},Un.lowerCase=Js,Un.lowerFirst=Ks,Un.lt=ps,Un.lte=ls,Un.max=function(e){return e&&e.length?hr(e,oc,Rr):o},Un.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),Rr):o},Un.mean=function(e){return Lt(e,oc)},Un.meanBy=function(e,t){return Lt(e,si(t,2))},Un.min=function(e){return e&&e.length?hr(e,oc,Lr):o},Un.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),Lr):o},Un.stubArray=vc,Un.stubFalse=gc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wc,Un.nth=function(e,t){return e&&e.length?zr(e,ms(t)):o},Un.noConflict=function(){return it._===this&&(it._=Fe),this},Un.noop=uc,Un.now=Ea,Un.pad=function(e,t,n){e=_s(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(pn(o),n)+e+Bo(fn(o),n)},Un.padEnd=function(e,t,n){e=_s(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Bo(t-r,n):e},Un.padStart=function(e,t,n){e=_s(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Bo(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Cn(_s(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hs(e),t===o?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=bn();return yn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Jr(e,t)},Un.reduce=function(e,t,n){var r=$a(e)?Et:Ut,o=arguments.length<3;return r(e,si(t,4),n,o,pr)},Un.reduceRight=function(e,t,n){var r=$a(e)?kt:Ut,o=arguments.length<3;return r(e,si(t,4),n,o,lr)},Un.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ms(t),Kr(_s(e),t)},Un.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Fi(t[r])];a===o&&(r=i,a=n),e=Xa(a)?a.call(e):a}return e},Un.round=Tc,Un.runInContext=e,Un.sample=function(e){return($a(e)?Yn:qr)(e)},Un.size=function(e){if(null==e)return 0;if(Ka(e))return cs(e)?on(e):e.length;var t=di(e);return t==S||t==E?e.size:Mr(e).length},Un.snakeCase=Hs,Un.some=function(e,t,n){var r=$a(e)?xt:no;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Un.sortedIndex=function(e,t){return ro(e,t)},Un.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ro(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},Un.startCase=qs,Un.startsWith=function(e,t,n){return e=_s(e),n=null==n?0:ar(ms(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Un.subtract=Rc,Un.sum=function(e){return e&&e.length?Nt(e,oc):0},Un.sumBy=function(e,t){return e&&e.length?Nt(e,si(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&yi(e,t,n)&&(t=o),e=_s(e),t=Ss({},t,r,Zo);var i,a,s=Ss({},t.imports,r.imports,Zo),c=Ds(s),u=Gt(s,c),f=0,p=t.interpolate||_e,l="__p += '",d=Re((t.escape||_e).source+"|"+p.source+"|"+(p===Z?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";e.replace(d,(function(t,n,r,o,s,c){return r||(r=o),l+=e.slice(f,c).replace(Ce,Zt),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),s&&(a=!0,l+="';\n"+s+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+t.length,t})),l+="';\n";var m=je.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new be("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(a?l.replace(V,""):l).replace(B,"$1").replace(G,"$1;"),l="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var v=Qs((function(){return Se(c,h+"return "+l).apply(o,u)}));if(v.source=l,Za(v))throw v;return v},Un.times=function(e,t){if((e=ms(e))<1||e>p)return[];var n=d,r=yn(e,d);t=si(t),e-=d;for(var o=zt(r,t);++n<e;)t(n);return o},Un.toFinite=hs,Un.toInteger=ms,Un.toLength=vs,Un.toLower=function(e){return _s(e).toLowerCase()},Un.toNumber=gs,Un.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,p):0===e?e:0},Un.toString=_s,Un.toUpper=function(e){return _s(e).toUpperCase()},Un.trim=function(e,t,n){if((e=_s(e))&&(n||t===o))return Vt(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return Co(r,Jt(r,i),Kt(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=_s(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return Co(r,0,Kt(r,an(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=_s(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return Co(r,Jt(r,an(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=_s(e)).length;if(Xt(e)){var s=an(e);a=s.length}if(n>=a)return e;var c=n-on(r);if(c<1)return r;var u=s?Co(s,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(s&&(c+=u.length-c),as(i)){if(e.slice(c).search(i)){var f,p=u;for(i.global||(i=Re(i.source,_s(le.exec(i))+"g")),i.lastIndex=0;f=i.exec(p);)var l=f.index;u=u.slice(0,l===o?c:l)}}else if(e.indexOf(so(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Un.unescape=function(e){return(e=_s(e))&&K.test(e)?e.replace($,cn):e},Un.uniqueId=function(e){var t=++Ae;return _s(e)+t},Un.upperCase=Ys,Un.upperFirst=Zs,Un.each=_a,Un.eachRight=Ca,Un.first=Ki,cc(Un,(yc={},_r(Un,(function(e,t){je.call(Un.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),Un.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),_t(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===o?1:gn(ms(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(oc)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Hr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return xr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(La(si(e)))},Bn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},_r(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Bn,u=s[0],f=c||$a(t),p=function(e){var t=i.apply(Un,Pt([e],s));return r&&l?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(c=f=!1);var l=this.__chain__,d=!!this.__actions__.length,h=a&&!l,m=c&&!d;if(!a&&f){t=m?t:new Bn(this);var v=e.apply(t,s);return v.__actions__.push({func:ha,args:[p],thisArg:o}),new Vn(v,l)}return h&&m?e.apply(this,s):(v=this.thru(p),h?r?v.value()[0]:v.value():v)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ke[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[n]((function(n){return t.apply($a(n)?n:[],e)}))}})),_r(Bn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";je.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[Uo(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$a(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,u=r?s:a-1,f=this.__iteratees__,p=f.length,l=0,d=yn(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return lo(e,this.__actions__);var h=[];e:for(;c--&&l<d;){for(var m=-1,v=e[u+=t];++m<p;){var g=f[m],y=g.iteratee,_=g.type,C=y(v);if(2==_)v=C;else if(!C){if(1==_)continue e;break e}}h[l++]=v}return h},Un.prototype.at=ma,Un.prototype.chain=function(){return da(this)},Un.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Ni(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(ta)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return lo(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,at&&(Un.prototype[at]=function(){return this}),Un}();it._=un,(r=function(){return un}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},692:e=>{var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),(t+=null!=e["network-id"]?" network-id %d":"%v")+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",(t+=null!=e.rateNumerator?" rate=%s":"")+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},766:(e,t,n)=>{var r=n(962),o=n(776),i=n(692);t.grammar=i,t.write=o,t.parse=r.parse,t.parseParams=r.parseParams,t.parseFmtpConfig=r.parseFmtpConfig,t.parsePayloads=r.parsePayloads,t.parseRemoteCandidates=r.parseRemoteCandidates,t.parseImageAttributes=r.parseImageAttributes,t.parseSimulcastStreamList=r.parseSimulcastStreamList},962:(e,t,n)=>{var r=function(e){return String(Number(e))===e?Number(e):e},o=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(n.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},i=n(692),a=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],r=t;return e.split(/(\r\n|\r|\n)/).filter(a).forEach((function(e){var t=e[0],a=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),r=n[n.length-1]);for(var s=0;s<(i[t]||[]).length;s+=1){var c=i[t][s];if(c.reg.test(a))return o(c,r,a)}})),t.media=n,t};var s=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(s,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(r),o=0;o<n.length;o+=3)t.push({component:n[o],ip:n[o+1],port:n[o+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(s,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}},776:(e,t,n)=>{var r=n(692),o=/%[sdv%]/g,i=function(e){var t=1,n=arguments,r=n.length;return e.replace(o,(function(e){if(t>=r)return e;var o=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},a=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var a=t.names[o];t.name?r.push(n[t.name][a]):r.push(n[t.names[o]])}else r.push(n[t.name]);return i.apply(null,r)},s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],c=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||s,o=t.innerOrder||c,i=[];return n.forEach((function(t){r[t].forEach((function(n){n.name in e&&null!=e[n.name]?i.push(a(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){i.push(a(t,n,e))}))}))})),e.media.forEach((function(e){i.push(a("m",r.m[0],e)),o.forEach((function(t){r[t].forEach((function(n){n.name in e&&null!=e[n.name]?i.push(a(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){i.push(a(t,n,e))}))}))}))})),i.join("\r\n")+"\r\n"}},539:e=>{"use strict";const t={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((e=>e.trim()))},t.splitSections=function(e){return e.split("\nm=").map(((e,t)=>(t>0?"m="+e:e).trim()+"\r\n"))},t.getDescription=function(e){const n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){const n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter((e=>0===e.indexOf(n)))},t.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":n.relatedAddress=t[e+1];break;case"rport":n.relatedPort=parseInt(t[e+1],10);break;case"tcptype":n.tcpType=t[e+1];break;case"ufrag":n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:void 0===n[t[e]]&&(n[t[e]]=t[e+1])}return n},t.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substring(14).split(" ")},t.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},t.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},t.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<r.length;e++)n=r[e].trim().split("="),t[n[0].trim()]=n[1];return t},t.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach((t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},t.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((e=>parseInt(e,10)))}},t.getMid=function(e){const n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substring(6)},t.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},t.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){const r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],o=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&o?{usernameFragment:r.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){const n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" ");n.profile=r[2];for(let o=3;o<r.length;o++){const i=r[o],a=t.matchPrefix(e,"a=rtpmap:"+i+" ")[0];if(a){const r=t.parseRtpMap(a),o=t.matchPrefix(e,"a=fmtp:"+i+" ");switch(r.parameters=o.length?t.parseFmtp(o[0]):{},r.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+i+" ").map(t.parseRtcpFb),n.codecs.push(r),r.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(r.name.toUpperCase())}}}t.matchPrefix(e,"a=extmap:").forEach((e=>{n.headerExtensions.push(t.parseExtmap(e))}));const o=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return n.codecs.forEach((e=>{o.forEach((t=>{e.rtcpFeedback.find((e=>e.type===t.type&&e.parameter===t.parameter))||e.rtcpFeedback.push(t)}))})),n},t.writeRtpDescription=function(e,n){let r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" "+(n.profile||"UDP/TLS/RTP/SAVPF")+" ",r+=n.codecs.map((e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType)).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((e=>{r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));let o=0;return n.codecs.forEach((e=>{e.maxptime>o&&(o=e.maxptime)})),o>0&&(r+="a=maxptime:"+o+"\r\n"),n.headerExtensions&&n.headerExtensions.forEach((e=>{r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){const n=[],r=t.parseRtpParameters(e),o=-1!==r.fecMechanisms.indexOf("RED"),i=-1!==r.fecMechanisms.indexOf("ULPFEC"),a=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute)),s=a.length>0&&a[0].ssrc;let c;const u=t.matchPrefix(e,"a=ssrc-group:FID").map((e=>e.substring(17).split(" ").map((e=>parseInt(e,10)))));u.length>0&&u[0].length>1&&u[0][0]===s&&(c=u[0][1]),r.codecs.forEach((e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&c&&(t.rtx={ssrc:c}),n.push(t),o&&(t=JSON.parse(JSON.stringify(t)),t.fec={ssrc:s,mechanism:i?"red+ulpfec":"red"},n.push(t))}})),0===n.length&&s&&n.push({ssrc:s});let f=t.matchPrefix(e,"b=");return f.length&&(f=0===f[0].indexOf("b=TIAS:")?parseInt(f[0].substring(7),10):0===f[0].indexOf("b=AS:")?1e3*parseInt(f[0].substring(5),10)*.95-16e3:void 0,n.forEach((e=>{e.maxBitrate=f}))),n},t.parseRtcpParameters=function(e){const n={},r=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);const o=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=o.length>0,n.compound=0===o.length;const i=t.matchPrefix(e,"a=rtcp-mux");return n.mux=i.length>0,n},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let n;const r=t.matchPrefix(e,"a=msid:");if(1===r.length)return n=r[0].substring(7).split(" "),{stream:n[0],track:n[1]};const o=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"msid"===e.attribute));return o.length>0?(n=o[0].value.split(" "),{stream:n[0],track:n[1]}):void 0},t.parseSctpDescription=function(e){const n=t.parseMLine(e),r=t.matchPrefix(e,"a=max-message-size:");let o;r.length>0&&(o=parseInt(r[0].substring(19),10)),isNaN(o)&&(o=65536);const i=t.matchPrefix(e,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substring(12),10),protocol:n.fmt,maxMessageSize:o};const a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){const e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:o}}},t.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,n,r){let o;const i=void 0!==n?n:2;return o=e||t.generateSessionId(),"v=0\r\no="+(r||"thisisadapterortc")+" "+o+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,n){const r=t.splitLines(e);for(let e=0;e<r.length;e++)switch(r[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[e].substring(2)}return n?t.getDirection(n):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substring(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){const n=t.splitLines(e)[0].substring(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},t.parseOLine=function(e){const n=t.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const n=t.splitLines(e);for(let e=0;e<n.length;e++)if(n[e].length<2||"="!==n[e].charAt(1))return!1;return!0},e.exports=t},465:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mungeSdpPublish=void 0;var i=o(n(766)),a=o(n(723)),s=o(n(486)),c=n(317),u=n(593),f=n(121),p=function(e,t){var n=[c.EnumVideoCodecs.VP9,c.EnumVideoCodecs.VP8,c.EnumVideoCodecs.H264,c.EnumVideoCodecs.RED,c.EnumVideoCodecs.ULPFEC,c.EnumVideoCodecs.RTX,f.EnumAudioCodecs.OPUS,f.EnumAudioCodecs.ISAC,f.EnumAudioCodecs.G722,f.EnumAudioCodecs.PCMU,f.EnumAudioCodecs.PCMA,f.EnumAudioCodecs.CN],r=s.default.map(n,s.default.toLower),o=[];s.default.forEach(e.rtp,(function(e){s.default.includes(r,s.default.toLower(e.codec))&&o.push(e.payload)})),s.default.forEach(e.fmtp,(function(e){if(s.default.includes(o,e.payload)){var n=i.default.parseParams(e.config);s.default.merge(n,{"x-google-min-bitrate":t.bitrate.min,"x-google-max-bitrate":t.bitrate.max}),e.config=s.default.chain(n).toPairs().map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(";").value()}}))},l=function(e,t){var n=!0;return s.default.forOwn(e,(function(e,r){if(!s.default.has(t,r)||e!==t[r])return n=!1,!1})),n},d=function(e,t,n){var o=i.default.parsePayloads(e.payloads);s.default.forEach(["rtp","fmtp","rtcpFb"],(function(r){s.default.has(e,r)&&!s.default.isUndefined(e[r])&&s.default.isArray(e[r])&&(e[r]=(n?s.default.filter:s.default.reject)(e[r],(function(e){return"payload"in e&&s.default.includes(t,e.payload)})))}));var a=n?s.default.intersection(o,t):s.default.without.apply(s.default,r([o],t,!1));e.payloads=s.default.join(a," ")},h=function(e,t){var n=s.default.map(t,s.default.toLower),r=[];s.default.forEach(e.rtp,(function(e){s.default.includes(n,s.default.toLower(e.codec))&&r.push(e.payload)})),s.default.forEach(e.fmtp,(function(e){var t=i.default.parseParams(e.config);s.default.has(t,"apt")&&s.default.includes(r,t.apt)&&r.push(e.payload)})),d(e,r,!0)};t.mungeSdpPublish=function(e,t){var n=i.default.parse(e),r=t.audioCodec||[f.EnumAudioCodecs.OPUS],o=t.videoCodec||[c.EnumVideoCodecs.VP8],m=a.default.browserDetails.browser,v=s.default.findIndex(n.media,{type:u.EnumSupportedMediaType.AUDIO}),g=s.default.findIndex(n.media,{type:u.EnumSupportedMediaType.VIDEO}),y=s.default.get(n.media,v),_=s.default.get(n.media,g);return s.default.isUndefined(y)||(h(y,r),"chrome"===m&&p(y,{bitrate:t.audioBitrate})),s.default.isUndefined(_)||(h(_,o),function(e,t){var n=[],r=!s.default.isEmpty(t.h264CodecOptions),o=!s.default.isEmpty(t.vp9CodecOptions);if(r||o){var a=[],u=[];s.default.forEach(e.rtp,(function(e){switch(s.default.toLower(e.codec)){case s.default.toLower(c.EnumVideoCodecs.H264):a.push(e.payload);break;case s.default.toLower(c.EnumVideoCodecs.VP9):u.push(e.payload)}})),s.default.forEach(e.fmtp,(function(e){var r=!0;if(s.default.includes(a,e.payload)){var o=i.default.parseParams(e.config);r=s.default.isEqualWith(t.h264CodecOptions,o,l)}else s.default.includes(u,e.payload)&&(o=i.default.parseParams(e.config),r=s.default.isEqualWith(t.vp9CodecOptions,o,l));r||n.push(e.payload)}))}s.default.forEach(e.fmtp,(function(e){var t=i.default.parseParams(e.config);s.default.has(t,"apt")&&s.default.includes(n,t.apt)&&n.push(e.payload)})),s.default.isEmpty(n)||d(e,n,!1)}(_,s.default.pick(t,["h264CodecOptions","vp9CodecOptions"])),"chrome"===m&&p(_,{bitrate:t.videoBitrate})),-1===v||s.default.isUndefined(y)||(n.media[v]=y),-1===g||s.default.isUndefined(_)||(n.media[g]=_),i.default.write(n)}},847:(e,t)=>{"use strict";var n,r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumMediaStreamTrackKind=t.EnumWebSocketConnectionCommand=t.EnumWebSocketConnectionDirection=t.EnumWebSocketConnectionStatus=void 0,(a=t.EnumWebSocketConnectionStatus||(t.EnumWebSocketConnectionStatus={}))[a.OK=200]="OK",a[a.NOT_READY=514]="NOT_READY",(i=t.EnumWebSocketConnectionDirection||(t.EnumWebSocketConnectionDirection={})).PUBLISH="publish",i.PLAY="play",(o=t.EnumWebSocketConnectionCommand||(t.EnumWebSocketConnectionCommand={})).SEND_OFFER="sendOffer",o.GET_OFFER="getOffer",o.SEND_RESPONSE="sendResponse",o.GET_AVAILABLE_STREAM="getAvailableStreams",(r=t.EnumMediaStreamTrackKind||(t.EnumMediaStreamTrackKind={})).AUDIO="audio",r.VIDEO="video",function(e){e[e["unified-plan"]=0]="unified-plan"}(n||(n={}))},571:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumCodecContentType=void 0,(n=t.EnumCodecContentType||(t.EnumCodecContentType={})).OPUS_WEBM='audio/webm;codecs="opus"',n.OPUS_MP4='audio/mp4;codecs="opus"',n.VORBIS_WEBM='audio/webm;codecs="vorbis"',n.VORBIS_OGG='audio/ogg;codecs="vorbis"',n.H264="video/mp4",n.VP8='video/webm;codecs="vp8"',n.VP9='video/webm;codecs="vp9"',n.WEBM="video/webm",n.HLS="application/vnd.apple.mpegURL",n.H264_AVC='video/mp4; codecs="avc1.42E01E"',n.H264_MP4='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',n.H265_HEC='video/mp4; codecs="hvc1.1.L0.0"',n.H265_HEV='video/mp4; codecs="hev1.1.L0.0"'},608:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumMediaCodecSupported=void 0,(n=t.EnumMediaCodecSupported||(t.EnumMediaCodecSupported={})).UNKNOWN="",n.PROBABLY="probably",n.MAYBE="maybe"},831:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcInputConnection=void 0;var c=s(n(486)),u=n(847),f=function(e){function t(t){var n=e.call(this,t)||this;return n._peerConnectionConfig=void 0,n._repeaterRetryCount=0,n.connectionOptions=t,n.onRtcDescription=n.onRtcDescription.bind(n),n.onWsOpen=n.onWsOpen.bind(n),n.onWsMessage=n.onWsMessage.bind(n),n.onError=n.onError.bind(n),n.onRemoteTrack=n.onRemoteTrack.bind(n),n}return o(t,e),t.prototype.onRtcDescription=function(e){var t=this;if(!this.peerConnection)return this.onError(new Error("RTC got description, but no RTC"));this.peerConnection.setLocalDescription(e).then((function(){return t.sendResponse(u.EnumWebSocketConnectionDirection.PLAY,u.EnumWebSocketConnectionCommand.SEND_RESPONSE,e)})).catch(this.onError)},t.prototype.onRemoteTrack=function(e){try{this._stream=e.streams[0],c.default.isFunction(this.connectionOptions.onTrack)&&this.connectionOptions.onTrack(e.track.kind),this.connectionOptions.videoElement&&(this.connectionOptions.videoElement.srcObject=e.streams[0])}catch(e){this.onError(new Error(JSON.stringify(e||"")))}},t.prototype.onWsOpen=function(){this.peerConnection=new RTCPeerConnection(this._peerConnectionConfig),this.peerConnection.ontrack=this.onRemoteTrack,this.sendResponse(u.EnumWebSocketConnectionDirection.PLAY,u.EnumWebSocketConnectionCommand.GET_OFFER)},t.prototype.onWsMessage=function(e){var t=this,n=JSON.parse(e.data);if(parseInt(n.status,10)!==u.EnumWebSocketConnectionStatus.OK)this._repeaterRetryCount++,this._repeaterRetryCount<10?setTimeout((function(){return t.sendResponse(u.EnumWebSocketConnectionDirection.PLAY,u.EnumWebSocketConnectionCommand.GET_OFFER)}),this.connectionOptions.debounceTime):(this.onError(new Error("Live stream repeater timeout: "+this.connectionOptions.streamInfo.streamName)),this.stop());else{var r=n.sdp,o=n.streamInfo;void 0!==o&&(this.connectionOptions.streamInfo.sessionId=o.sessionId),r&&this.peerConnection&&this.peerConnection.setRemoteDescription(new RTCSessionDescription(r)).then((function(){return i(t,void 0,void 0,(function(){var e=this;return a(this,(function(t){return void 0!==this.peerConnection?[2,this.peerConnection.createAnswer().then((function(t){return e.onRtcDescription(t)})).catch(this.onError)]:[2]}))}))})).catch(this.onError);var s=n.iceCandidates;if((null==s?void 0:s.length)>0&&this.peerConnection)for(var c=0,f=s;c<f.length;c++){var p=f[c];this.peerConnection.addIceCandidate(new RTCIceCandidate(p)).catch(this.onError)}}this.wsConnection&&0==="sendResponse".localeCompare(n.command)&&this.disconnectFromWebSocket()},t.prototype.getStream=function(){return this._stream},t.prototype.start=function(){e.prototype.start.call(this),this._repeaterRetryCount=0,this.wsConnection&&(this.wsConnection.onopen=this.onWsOpen,this.wsConnection.onmessage=this.onWsMessage)},t.prototype.restartConnectionWithTcp=function(){throw new Error("Not implemented")},t}(s(n(934)).default);t.WebRtcInputConnection=f},285:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcOutputConnection=void 0;var s=a(n(486)),c=n(465),u=n(847),f=function(e){function t(t){var n=e.call(this,t)||this;return n.isUsingTcpFallback=!1,n.onError=n.onError.bind(n),n.onRtcDescription=n.onRtcDescription.bind(n),n.onWsOpen=n.onWsOpen.bind(n),n.onWsMessage=n.onWsMessage.bind(n),n.onNegotiationNeeded=n.onNegotiationNeeded.bind(n),n.connectionOptions=t,n}return o(t,e),t.prototype.onRtcDescription=function(e){var t=this;if(!this.peerConnection)return this.onError(new Error("RTC got description, but no peer connection"));var n=this.mungeDescription(e);this.peerConnection.setLocalDescription(n).then((function(){t.sendResponse(u.EnumWebSocketConnectionDirection.PUBLISH,u.EnumWebSocketConnectionCommand.SEND_OFFER,n)})).catch(this.onError)},t.prototype.mungeDescription=function(e){return e.sdp?i(i({},e),{sdp:(0,c.mungeSdpPublish)(e.sdp,this.connectionOptions.mediaInfo)}):e},t.prototype.onWsOpen=function(){this.initializePeerConnection(),this.attachLocalTracks()},t.prototype.initializePeerConnection=function(){var e=this;this.peerConnection=new RTCPeerConnection(i(i({},this.peerConnectionConfig),{sdpSemantics:"unified-plan"})),this.peerConnection.onnegotiationneeded=this.onNegotiationNeeded,this.peerConnection.onicecandidate=function(t){e.handleIceCandidate(t)},this.setupIceConnectionMonitoring(this.peerConnection)},t.prototype.handleIceCandidate=function(e){!e.candidate||!this.isUsingTcpFallback||e.candidate.candidate.toLowerCase().includes("tcp")},t.prototype.onNegotiationNeeded=function(){this.peerConnection&&this.peerConnection.createOffer().then(this.onRtcDescription).catch(this.onError)},t.prototype.attachLocalTracks=function(){if(this.peerConnection)for(var e=0,t=this.connectionOptions.localStream.getTracks();e<t.length;e++){var n=t[e],r=this.peerConnection.addTrack(n,this.connectionOptions.localStream);this.assignSender(n.kind,r)}},t.prototype.assignSender=function(e,t){e===u.EnumMediaStreamTrackKind.AUDIO?this.applyBitrateParams(t,this.connectionOptions.mediaInfo.audioBitrate):e===u.EnumMediaStreamTrackKind.VIDEO&&this.applyBitrateParams(t,this.connectionOptions.mediaInfo.videoBitrate)},t.prototype.applyBitrateParams=function(e,t){var n=e.getParameters(),r=i({maxBitrate:1e3*t.max},void 0!==t.min&&{minBitrate:1e3*t.min});n.encodings&&0!==n.encodings.length?n.encodings[0]=i(i({},n.encodings[0]),r):n.encodings=[r],e.setParameters(n).catch(this.onError)},t.prototype.onWsMessage=function(e){var t,n;null===(n=(t=this.connectionOptions).onWsMessage)||void 0===n||n.call(t,e);var r=this.parseWebSocketMessage(e.data);this.validateMessageStatus(r)&&(this.handleSdpData(r.sdp),this.handleIceCandidates(s.default.map(r.iceCandidates,this.fixTcpCandidate)))},t.prototype.fixTcpCandidate=function(e){return e.candidate.includes(" TCP ")&&!e.candidate.includes("tcptype")&&(e.candidate=e.candidate.replace(" typ host"," typ host tcptype passive")),e},t.prototype.parseWebSocketMessage=function(e){try{return JSON.parse(e)}catch(e){return this.onError(new Error("Failed to parse WebSocket message")),{}}},t.prototype.validateMessageStatus=function(e){return parseInt(e.status,10)===u.EnumWebSocketConnectionStatus.OK||(this.onError(new Error(e.statusDescription)),!1)},t.prototype.handleSdpData=function(e){e&&this.peerConnection&&(this.isUsingTcpFallback&&e.sdp&&(e=i(i({},e),{sdp:e.sdp.split("\n").filter((function(e){return!e.startsWith("a=candidate:")||e.toLowerCase().includes(" tcp ")})).join("\n")})),this.peerConnection.setRemoteDescription(new RTCSessionDescription(e)).catch(this.onError))},t.prototype.handleIceCandidates=function(e){if(e&&this.peerConnection)for(var t=0,n=e;t<n.length;t++){var r=n[t];this.isUsingTcpFallback&&this.isUdpCandidate(r)||this.peerConnection.addIceCandidate(new RTCIceCandidate(r)).catch(this.onError)}},t.prototype.isUdpCandidate=function(e){return!!e.candidate&&e.candidate.toLowerCase().includes(" udp ")},t.prototype.start=function(){e.prototype.start.call(this),this.wsConnection&&(this.wsConnection.onopen=this.onWsOpen,this.wsConnection.onmessage=this.onWsMessage)},t.prototype.stop=function(){e.prototype.stop.call(this),this.isUsingTcpFallback=!1},t.prototype.restartConnectionWithTcp=function(){this.peerConnection&&(this.peerConnection.close(),this.peerConnection=void 0),this.isUsingTcpFallback=!0,this.initializePeerConnection(),this.attachLocalTracks()},t}(a(n(934)).default);t.WebRtcOutputConnection=f},934:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(486)),c=function(){function e(e){this.connectionOptions=e,this.tcpFallbackAttemptsUsed=0,this.lastBytesSent=0,this.stallCheckCount=0,this.connectToWebSocket=this.connectToWebSocket.bind(this),this.onError=this.onError.bind(this),this.onWsError=this.onWsError.bind(this),this.checkForStall=this.checkForStall.bind(this)}return e.prototype.sendResponse=function(e,t,n){if(this.wsConnection){var o=r({direction:e,command:t,streamInfo:this.connectionOptions.streamInfo,userData:this.connectionOptions.userData},n&&{sdp:n});this.wsConnection.send(JSON.stringify(o))}},e.prototype.connectToWebSocket=function(){this.wsConnection=new WebSocket(this.connectionOptions.wsUrl),this.wsConnection.binaryType="arraybuffer",this.wsConnection.onerror=this.onWsError},e.prototype.onWsError=function(e){var t=e.target;this.isWebSocketClosing(t)||this.onError(new Error("WebSocket connection failed"))},e.prototype.isWebSocketClosing=function(e){return!s.default.isUndefined(e)&&e instanceof WebSocket&&s.default.includes([WebSocket.CLOSING,WebSocket.CLOSED],e.readyState)},e.prototype.disconnectFromWebSocket=function(e){void 0===e&&(e=1e3),s.default.isUndefined(this.wsConnection)||(this.wsConnection.onerror=null,this.wsConnection.onopen=null,this.wsConnection.onmessage=null,this.wsConnection.onclose=null,this.wsConnection.close(e)),this.wsConnection=void 0},e.prototype.onError=function(e){this.stop(),this.connectionOptions.onError(e)},e.prototype.setupIceConnectionMonitoring=function(e){var t=this;e.oniceconnectionstatechange=function(){var n,r;t.handleIceConnectionStateChange(e.iceConnectionState),null===(r=(n=t.connectionOptions).onIceConnectionStateChange)||void 0===r||r.call(n,e.iceConnectionState)},e.onconnectionstatechange=function(){var n,r;t.handleConnectionStateChange(e.connectionState),null===(r=(n=t.connectionOptions).onConnectionStateChange)||void 0===r||r.call(n,e.connectionState)}},e.prototype.handleIceConnectionStateChange=function(e){"connected"!==e&&"completed"!==e&&"checking"!==e||this.startStallDetection(),"failed"===e&&this.handleIceConnectionFailure()},e.prototype.handleConnectionStateChange=function(e){"failed"===e&&this.handleIceConnectionFailure()},e.prototype.handleIceConnectionFailure=function(){var e;if(this.connectionOptions.enableTcpFallback){var t=null!==(e=this.connectionOptions.tcpFallbackRetries)&&void 0!==e?e:1;this.tcpFallbackAttemptsUsed>=t||(this.tcpFallbackAttemptsUsed++,this.stopStallDetection(),this.restartConnectionWithTcp&&this.restartConnectionWithTcp())}},e.prototype.startStallDetection=function(){this.connectionOptions.enableTcpFallback&&(this.stopStallDetection(),this.lastBytesSent=0,this.stallCheckCount=0,this.stallCheckInterval=setInterval(this.checkForStall,3e3))},e.prototype.stopStallDetection=function(){void 0!==this.stallCheckInterval&&(clearInterval(this.stallCheckInterval),this.stallCheckInterval=void 0)},e.prototype.checkForStall=function(){var e,t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return this.peerConnection?[4,this.peerConnection.getStats()]:(this.stopStallDetection(),[2]);case 1:return n=o.sent(),(r=this.getTotalBytesSent(n))>this.lastBytesSent?(this.stallCheckCount=0,this.lastBytesSent=r,[2]):(this.stallCheckCount++,this.stallCheckCount>=3&&(this.stopStallDetection(),null===(t=(e=this.connectionOptions).onStallDetected)||void 0===t||t.call(e),this.handleIceConnectionFailure()),[2])}}))}))},e.prototype.getTotalBytesSent=function(e){var t=0;return e.forEach((function(e){"outbound-rtp"!==e.type&&"candidate-pair"!==e.type||"number"!=typeof e.bytesSent||(t+=e.bytesSent)})),t},e.prototype.start=function(){this.peerConnection||(this.disconnectFromWebSocket(),this.connectToWebSocket())},e.prototype.stop=function(){this.stopStallDetection(),this.tcpFallbackAttemptsUsed=0,this.peerConnection&&(this.peerConnection.close(),this.peerConnection=void 0),this.disconnectFromWebSocket(),this.connectionOptions.onStop()},e.prototype.stats=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return this.peerConnection?[2,this.peerConnection.getStats()]:[2,void 0]}))}))},e}();t.default=c},121:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportedAudioCodec=t.EnumAudioCodecs=void 0;var o,i=r(n(486)),a=n(571),s=n(593);!function(e){e.OPUS="opus",e.VORBIS="vorbis",e.PCMU="pcmu",e.PCMA="pcma",e.ISAC="ISAC",e.G722="g722",e.CN="CN"}(o=t.EnumAudioCodecs||(t.EnumAudioCodecs={})),t.browserSupportedAudioCodec=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n]){case o.OPUS:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.OPUS_WEBM))&&i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.OPUS_MP4))||t.push(o.OPUS);break;case o.VORBIS:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VORBIS_WEBM))&&i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VORBIS_OGG))||t.push(o.VORBIS);case o.PCMU:case o.PCMA:}return t}},317:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportedVideoCodec=t.EnumVideoCodecs=void 0;var o,i=r(n(486)),a=n(571),s=n(593);!function(e){e.H264="h264",e.VP9="VP9",e.VP8="VP8",e.RED="red",e.ULPFEC="ulpfec",e.RTX="rtx"}(o=t.EnumVideoCodecs||(t.EnumVideoCodecs={})),t.browserSupportedVideoCodec=function(e){var t=[];return i.default.forEach(e,(function(e){switch(e){case o.H264:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.H264))||t.push(o.H264);break;case o.VP9:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VP9))||t.push(o.VP9);break;case o.VP8:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VP8))||t.push(o.VP8)}})),t}},593:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.supportsCodec=t.EnumSupportedMediaType=void 0;var o,i=r(n(486));!function(e){e.VIDEO="video",e.AUDIO="audio"}(o=t.EnumSupportedMediaType||(t.EnumSupportedMediaType={})),t.supportsCodec=function(e){var t=e.split("/");return i.default.includes(Object.values(o),t[0])?window.document.createElement(t[0]).canPlayType(e):""}},723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>se});var r={};n.r(r),n.d(r,{fixNegotiationNeeded:()=>k,shimAddTrackRemoveTrack:()=>P,shimAddTrackRemoveTrackWithNative:()=>R,shimGetSendersWithDtmf:()=>w,shimGetUserMedia:()=>C,shimMediaStream:()=>b,shimOnTrack:()=>S,shimPeerConnection:()=>E,shimSenderReceiverGetStats:()=>T});var o={};n.r(o),n.d(o,{shimAddTransceiver:()=>W,shimCreateAnswer:()=>N,shimCreateOffer:()=>U,shimGetDisplayMedia:()=>O,shimGetParameters:()=>F,shimGetUserMedia:()=>x,shimOnTrack:()=>I,shimPeerConnection:()=>D,shimRTCDataChannel:()=>L,shimReceiverGetStats:()=>A,shimRemoveStream:()=>M,shimSenderGetStats:()=>j});var i={};n.r(i),n.d(i,{shimAudioContext:()=>q,shimCallbacksAPI:()=>B,shimConstraints:()=>$,shimCreateOfferLegacy:()=>H,shimGetUserMedia:()=>G,shimLocalStreamsAPI:()=>z,shimRTCIceServerUrls:()=>J,shimRemoteStreamsAPI:()=>V,shimTrackEventTransceiver:()=>K});var a={};n.r(a),n.d(a,{removeExtmapAllowMixed:()=>re,shimAddIceCandidateNullOrEmpty:()=>oe,shimConnectionState:()=>ne,shimMaxMessageSize:()=>ee,shimParameterlessSetLocalDescription:()=>ie,shimRTCIceCandidate:()=>X,shimRTCIceCandidateRelayProtocol:()=>Q,shimSendThrowTypeError:()=>te});let s=!0,c=!0;function u(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function f(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return o.apply(this,arguments);const i=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,i),o.apply(this,[e,i])};const i=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(n))return i.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,i.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function p(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(s=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function l(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(c=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function d(){if("object"==typeof window){if(s)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function h(e,t){c&&console.warn(e+" is deprecated, please use "+t+" instead.")}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return m(e)?Object.keys(e).reduce((function(t,n){const r=m(e[n]),o=r?v(e[n]):e[n],i=r&&!Object.keys(o).length;return void 0===o||i?t:Object.assign(t,{[n]:o})}),{}):e}function g(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((r=>{r.endsWith("Id")?g(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((t=>{g(e,e.get(t),n)}))})))}function y(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;const i=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&i.push(e)})),i.forEach((t=>{e.forEach((n=>{n.type===r&&n.trackId===t.id&&g(e,n,o)}))})),o}const _=d;function C(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[o("min",n)]=r.ideal,t.optional.push(e),e={},e[o("max",n)]=r.ideal,t.optional.push(e)):(e[o("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach((e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},o=function(e,o){if(t.version>=61)return o(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let i=e.video.facingMode;i=i&&("object"==typeof i?i:{ideal:i});const a=t.version<66;if(i&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||a)){let t;if(delete e.video.facingMode,"environment"===i.exact||"environment"===i.ideal?t=["back","rear"]:"user"!==i.exact&&"user"!==i.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then((n=>{let a=(n=n.filter((e=>"videoinput"===e.kind))).find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!a&&n.length&&t.includes("back")&&(a=n[n.length-1]),a&&(e.video.deviceId=i.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=r(e.video),_("chrome: "+JSON.stringify(e)),o(e)}))}e.video=r(e.video)}return _("chrome: "+JSON.stringify(e)),o(e)},i=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){o(e,(e=>{n.webkitGetUserMedia(e,t,(e=>{r&&r(i(e))}))}))}.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return o(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(i(e))))))}}}function b(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function S(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.track.id)):{track:n.track};const o=new Event("track");o.track=n.track,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)})),t.stream.getTracks().forEach((n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.id)):{track:n};const o=new Event("track");o.track=n,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else f(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function w(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function T(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>y(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),f(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>y(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach((n=>{n.track===e&&(t?r=!0:t=n)})),this.getReceivers().forEach((t=>(t.track===e&&(n?r=!0:n=t),t.track===e))),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function R(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),o.apply(this,arguments)}}function P(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return R(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const o=e.RTCPeerConnection.prototype.removeStream;function i(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(o.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function a(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),o.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const o=this.getSenders().find((e=>e.track===t));if(o)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const i=this._streams[n.id];if(i)i.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=i(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then((e=>i(this,e)))}};e.RTCPeerConnection.prototype[t]=r[t]}));const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=a(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=c.get.apply(this);return""===e.type?e:i(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((n=>{this._streams[n].getTracks().find((t=>e.track===t))&&(t=this._streams[n])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function E(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function k(e,t){f(e,"negotiationneeded",(e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}function x(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){h("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function O(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function I(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function D(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,o,i]=arguments;return r.apply(this,[e||null]).then((e=>{if(t.version<53&&!o)try{e.forEach((e=>{e.type=n[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach(((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(o,i)}}function j(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function A(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),f(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function M(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){h("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function L(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function W(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const n=e.length>0;n&&e.forEach((e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function F(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function U(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function N(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function z(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((n=>t.call(this,n,e))),e.getVideoTracks().forEach((n=>t.call(this,n,e)))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach((e=>{n.includes(e.track)&&this.removeTrack(e)}))})}}function V(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}))}),t.apply(e,arguments)}}}function B(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],o=n.apply(this,[r]);return t?(o.then(e,t),Promise.resolve()):o},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],o=r.apply(this,[n]);return t?(o.then(e,t),Promise.resolve()):o};let s=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){const r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function G(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n($(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function $(e){return e&&void 0!==e.video?Object.assign({},e,{video:v(e.video)}):e}function J(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];void 0===r.urls&&r.url?(h("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function K(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function H(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function q(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var Y=n(539),Z=n.n(Y);function X(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){const n=new t(e),r=Z().parseCandidate(e.candidate);for(const e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,f(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function Q(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||f(e,"icecandidate",(e=>{if(e.candidate){const t=Z().parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e}))}function ee(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Z().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Z().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},o=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},i=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const o=Z().matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?r=parseInt(o[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=o(e),n=i(arguments[0],e);let a;a=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const s={};Object.defineProperty(s,"maxMessageSize",{get:()=>a}),this._sctp=s}return a.apply(this,arguments)}}function te(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],o=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&o>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},f(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function ne(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}function re(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function oe(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function ie(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}if(e.sdp||"offer"!==e.type&&"answer"!==e.type)return n.apply(this,[e]);const t="offer"===e.type?this.createOffer:this.createAnswer;return t.apply(this).then((e=>n.apply(this,[e])))})}const ae=function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=d,s=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const e=n.userAgentData.brands.find((e=>"Chromium"===e.brand));if(e)return{browser:"chrome",version:parseInt(e.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=u(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=u(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=u(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),c={browserDetails:s,commonShim:a,extractVersion:u,disableLog:p,disableWarnings:l,sdp:Y};switch(s.browser){case"chrome":if(!r||!E||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),c;if(null===s.version)return n("Chrome shim can not determine version, not shimming."),c;n("adapter.js shimming chrome."),c.browserShim=r,oe(e,s),ie(e),C(e,s),b(e),E(e,s),S(e),P(e,s),w(e),T(e),k(e,s),X(e),Q(e),ne(e),ee(e,s),te(e),re(e,s);break;case"firefox":if(!o||!D||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),c;n("adapter.js shimming firefox."),c.browserShim=o,oe(e,s),ie(e),x(e,s),D(e,s),I(e),M(e),j(e),A(e),L(e),W(e),F(e),U(e),N(e),X(e),ne(e),ee(e,s),te(e);break;case"safari":if(!i||!t.shimSafari)return n("Safari shim is not included in this adapter release."),c;n("adapter.js shimming safari."),c.browserShim=i,oe(e,s),ie(e),J(e),H(e),B(e),z(e),V(e),K(e),G(e),q(e),X(e),Q(e),ee(e,s),te(e),re(e,s);break;default:n("Unsupported browser!")}return c}({window:"undefined"==typeof window?void 0:window}),se=ae}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumCodecContentType=e.EnumMediaCodecSupported=e.EnumVideoCodecs=e.browserSupportedVideoCodec=e.EnumAudioCodecs=e.browserSupportedAudioCodec=e.WebRtcOutputConnection=e.WebRtcInputConnection=void 0;var t=n(831);Object.defineProperty(e,"WebRtcInputConnection",{enumerable:!0,get:function(){return t.WebRtcInputConnection}});var o=n(285);Object.defineProperty(e,"WebRtcOutputConnection",{enumerable:!0,get:function(){return o.WebRtcOutputConnection}});var i=n(121);Object.defineProperty(e,"browserSupportedAudioCodec",{enumerable:!0,get:function(){return i.browserSupportedAudioCodec}}),Object.defineProperty(e,"EnumAudioCodecs",{enumerable:!0,get:function(){return i.EnumAudioCodecs}});var a=n(317);Object.defineProperty(e,"browserSupportedVideoCodec",{enumerable:!0,get:function(){return a.browserSupportedVideoCodec}}),Object.defineProperty(e,"EnumVideoCodecs",{enumerable:!0,get:function(){return a.EnumVideoCodecs}});var s=n(608);Object.defineProperty(e,"EnumMediaCodecSupported",{enumerable:!0,get:function(){return s.EnumMediaCodecSupported}});var c=n(571);Object.defineProperty(e,"EnumCodecContentType",{enumerable:!0,get:function(){return c.EnumCodecContentType}})})(),r})()}));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vxWebRTC",[],t):"object"==typeof exports?exports.vxWebRTC=t():e.vxWebRTC=t()}(this,(function(){return(()=>{var e={486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",c=32,u=128,f=1/0,p=9007199254740991,l=NaN,d=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",v="[object Array]",g="[object Boolean]",y="[object Date]",C="[object Error]",_="[object Function]",b="[object GeneratorFunction]",S="[object Map]",w="[object Number]",T="[object Object]",R="[object Promise]",P="[object RegExp]",E="[object Set]",k="[object String]",x="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",j="[object DataView]",D="[object Float32Array]",A="[object Float64Array]",M="[object Int8Array]",L="[object Int16Array]",W="[object Int32Array]",F="[object Uint8Array]",U="[object Uint8ClampedArray]",N="[object Uint16Array]",z="[object Uint32Array]",V=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,K=RegExp($.source),H=RegExp(J.source),q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",we="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="["+Te+"]",Pe="["+be+"]",Ee="\\d+",ke="["+Se+"]",xe="[^\\ud800-\\udfff"+Te+Ee+"\\u2700-\\u27bf"+Se+we+"]",Oe="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="["+we+"]",Me="(?:"+ke+"|"+xe+")",Le="(?:"+Ae+"|"+xe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Fe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Pe+"|"+Oe+")?",Ne="[\\ufe0e\\ufe0f]?",ze=Ne+Ue+"(?:\\u200d(?:"+[Ie,je,De].join("|")+")"+Ne+Ue+")*",Ve="(?:"+["[\\u2700-\\u27bf]",je,De].join("|")+")"+ze,Be="(?:"+[Ie+Pe+"?",Pe,je,De,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['’]","g"),$e=RegExp(Pe,"g"),Je=RegExp(Oe+"(?="+Oe+")|"+Be+ze,"g"),Ke=RegExp([Ae+"?"+ke+"+"+We+"(?="+[Re,Ae,"$"].join("|")+")",Le+"+"+Fe+"(?="+[Re,Ae+Me,"$"].join("|")+")",Ae+"?"+Me+"+"+We,Ae+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ee,Ve].join("|"),"g"),He=RegExp("[\\u200d\\ud800-\\udfff"+be+"\\ufe0e\\ufe0f]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Xe={};Xe[D]=Xe[A]=Xe[M]=Xe[L]=Xe[W]=Xe[F]=Xe[U]=Xe[N]=Xe[z]=!0,Xe[m]=Xe[v]=Xe[I]=Xe[g]=Xe[j]=Xe[y]=Xe[C]=Xe[_]=Xe[S]=Xe[w]=Xe[T]=Xe[P]=Xe[E]=Xe[k]=Xe[O]=!1;var Qe={};Qe[m]=Qe[v]=Qe[I]=Qe[j]=Qe[g]=Qe[y]=Qe[D]=Qe[A]=Qe[M]=Qe[L]=Qe[W]=Qe[S]=Qe[w]=Qe[T]=Qe[P]=Qe[E]=Qe[k]=Qe[x]=Qe[F]=Qe[U]=Qe[N]=Qe[z]=!0,Qe[C]=Qe[_]=Qe[O]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ct=st&&st.exports===at,ut=ct&&rt.process,ft=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),pt=ft&&ft.isArrayBuffer,lt=ft&&ft.isDate,dt=ft&&ft.isMap,ht=ft&&ft.isRegExp,mt=ft&&ft.isSet,vt=ft&&ft.isTypedArray;function gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function wt(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Et(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function kt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ot=Wt("length");function It(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function jt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Dt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Mt,n)}function At(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Mt(e){return e!=e}function Lt(e,t){var n=null==e?0:e.length;return n?Nt(e,t)/n:l}function Wt(e){return function(t){return null==t?o:t[e]}}function Ft(e){return function(t){return null==e?o:e[t]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Nt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Vt(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Bt(e){return function(t){return e(t)}}function Gt(e,t){return Rt(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&Dt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length;n--&&Dt(t,e[n],0)>-1;);return n}function Ht(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var qt=Ft({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yt=Ft({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Zt(e){return"\\"+et[e]}function Xt(e){return He.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Ot(e)}function an(e){return Xt(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var cn=Ft({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),un=function e(t){var n,r=(t=null==t?it:un.defaults(it.Object(),t,un.pick(it,Ye))).Array,oe=t.Date,be=t.Error,Se=t.Function,we=t.Math,Te=t.Object,Re=t.RegExp,Pe=t.String,Ee=t.TypeError,ke=r.prototype,xe=Se.prototype,Oe=Te.prototype,Ie=t["__core-js_shared__"],je=xe.toString,De=Oe.hasOwnProperty,Ae=0,Me=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Oe.toString,We=je.call(Te),Fe=it._,Ue=Re("^"+je.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=ct?t.Buffer:o,ze=t.Symbol,Ve=t.Uint8Array,Be=Ne?Ne.allocUnsafe:o,Je=en(Te.getPrototypeOf,Te),He=Te.create,et=Oe.propertyIsEnumerable,rt=ke.splice,ot=ze?ze.isConcatSpreadable:o,at=ze?ze.iterator:o,st=ze?ze.toStringTag:o,ut=function(){try{var e=fi(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Ot=oe&&oe.now!==it.Date.now&&oe.now,Ft=t.setTimeout!==it.setTimeout&&t.setTimeout,fn=we.ceil,pn=we.floor,ln=Te.getOwnPropertySymbols,dn=Ne?Ne.isBuffer:o,hn=t.isFinite,mn=ke.join,vn=en(Te.keys,Te),gn=we.max,yn=we.min,Cn=oe.now,_n=t.parseInt,bn=we.random,Sn=ke.reverse,wn=fi(t,"DataView"),Tn=fi(t,"Map"),Rn=fi(t,"Promise"),Pn=fi(t,"Set"),En=fi(t,"WeakMap"),kn=fi(Te,"create"),xn=En&&new En,On={},In=Ui(wn),jn=Ui(Tn),Dn=Ui(Rn),An=Ui(Pn),Mn=Ui(En),Ln=ze?ze.prototype:o,Wn=Ln?Ln.valueOf:o,Fn=Ln?Ln.toString:o;function Un(e){if(ns(e)&&!$a(e)&&!(e instanceof Bn)){if(e instanceof Vn)return e;if(De.call(e,"__wrapped__"))return Ni(e)}return new Vn(e)}var Nn=function(){function e(){}return function(t){if(!ts(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function zn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Jn;++t<n;)this.add(e[t])}function Hn(e){var t=this.__data__=new $n(e);this.size=t.size}function qn(e,t){var n=$a(e),r=!n&&Ga(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&fs(e),a=n||r||o||i,s=a?zt(e.length,Pe):[],c=s.length;for(var u in e)!t&&!De.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||gi(u,c))||s.push(u);return s}function Yn(e){var t=e.length;return t?e[Jr(0,t-1)]:o}function Zn(e,t){return Ai(ko(e),ar(t,0,e.length))}function Xn(e){return Ai(ko(e))}function Qn(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];De.call(e,t)&&za(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function nr(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&xo(t,js(t),e)}function or(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Es(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,c=1&t,u=2&t,f=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var p=$a(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ko(e,s)}else{var l=di(e),d=l==_||l==b;if(qa(e))return So(e,c);if(l==T||l==m||d&&!i){if(s=u||d?{}:mi(e),!c)return u?function(e,t){return xo(e,li(e),t)}(e,function(e,t){return e&&xo(t,Ds(t),e)}(s,e)):function(e,t){return xo(e,pi(e),t)}(e,rr(s,e))}else{if(!Qe[l])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case I:return wo(e);case g:case y:return new o(+e);case j:return function(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case A:case M:case L:case W:case F:case U:case N:case z:return To(e,n);case S:return new o;case w:case k:return new o(e);case P:return function(e){var t=new e.constructor(e.source,le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new o;case x:return r=e,Wn?Te(Wn.call(r)):{}}}(e,l,c)}}a||(a=new Hn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var v=p?o:(f?u?ri:ni:u?Ds:js)(e);return Ct(v||e,(function(r,o){v&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ee(i);return Oi((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=wt,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Rt(t,Bt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=$t,a=!1,t=new Kn(t));e:for(;++o<s;){var f=e[o],p=null==n?f:n(f);if(f=r||0!==f?f:0,a&&p==p){for(var l=u;l--;)if(t[l]===p)continue e;c.push(f)}else i(t,p,r)||c.push(f)}return c}Un.templateSettings={escape:q,evaluate:Y,interpolate:Z,variable:"",imports:{_:Un}},Un.prototype=zn.prototype,Un.prototype.constructor=Un,Vn.prototype=Nn(zn.prototype),Vn.prototype.constructor=Vn,Bn.prototype=Nn(zn.prototype),Bn.prototype.constructor=Bn,Gn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(kn){var n=t[e];return n===a?o:n}return De.call(t,e)?t[e]:o},Gn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==o:De.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===o?a:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},$n.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},$n.prototype.has=function(e){return tr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Tn||$n),string:new Gn}},Jn.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return ci(this,e).get(e)},Jn.prototype.has=function(e){return ci(this,e).has(e)},Jn.prototype.set=function(e,t){var n=ci(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Hn.prototype.clear=function(){this.__data__=new $n,this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Hn.prototype.get=function(e){return this.__data__.get(e)},Hn.prototype.has=function(e){return this.__data__.has(e)},Hn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var pr=jo(Cr),lr=jo(_r,!0);function dr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(c===o?s==s&&!us(s):n(s,c)))var c=s,u=a}return u}function mr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=vi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?vr(s,t-1,n,r,o):Pt(o,s):r||(o[o.length]=s)}return o}var gr=Do(),yr=Do(!0);function Cr(e,t){return e&&gr(e,t,js)}function _r(e,t){return e&&yr(e,t,js)}function br(e,t){return St(t,(function(t){return Xa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[Fi(t[n++])];return n&&n==r?e:o}function wr(e,t,n){var r=t(e);return $a(e)?r:Pt(r,n(e))}function Tr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Te(e)?function(e){var t=De.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=Le.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return Le.call(e)}(e)}function Rr(e,t){return e>t}function Pr(e,t){return null!=e&&De.call(e,t)}function Er(e,t){return null!=e&&t in Te(e)}function kr(e,t,n){for(var i=n?Tt:wt,a=e[0].length,s=e.length,c=s,u=r(s),f=1/0,p=[];c--;){var l=e[c];c&&t&&(l=Rt(l,Bt(t))),f=yn(l.length,f),u[c]=!n&&(t||a>=120&&l.length>=120)?new Kn(c&&l):o}l=e[0];var d=-1,h=u[0];e:for(;++d<a&&p.length<f;){var m=l[d],v=t?t(m):m;if(m=n||0!==m?m:0,!(h?$t(h,v):i(p,v,n))){for(c=s;--c;){var g=u[c];if(!(g?$t(g,v):i(e[c],v,n)))continue e}h&&h.push(v),p.push(m)}}return p}function xr(e,t,n){var r=null==(e=Pi(e,t=yo(t,e)))?e:e[Fi(Zi(t))];return null==r?o:gt(r,e,n)}function Or(e){return ns(e)&&Tr(e)==m}function Ir(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=$a(e),c=$a(t),u=s?v:di(e),f=c?v:di(t),p=(u=u==m?T:u)==T,l=(f=f==m?T:f)==T,d=u==f;if(d&&qa(e)){if(!qa(t))return!1;s=!0,p=!1}if(d&&!p)return a||(a=new Hn),s||fs(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case g:case y:case w:return za(+e,+t);case C:return e.name==t.name&&e.message==t.message;case P:case k:return e==t+"";case S:var s=Qt;case E:var c=1&r;if(s||(s=nn),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var f=ei(s(e),s(t),r,o,i,a);return a.delete(e),f;case x:if(Wn)return Wn.call(e)==Wn.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=p&&De.call(e,"__wrapped__"),_=l&&De.call(t,"__wrapped__");if(h||_){var b=h?e.value():e,R=_?t.value():t;return a||(a=new Hn),i(b,R,n,r,a)}}return!!d&&(a||(a=new Hn),function(e,t,n,r,i,a){var s=1&n,c=ni(e),u=c.length;if(u!=ni(t).length&&!s)return!1;for(var f=u;f--;){var p=c[f];if(!(s?p in t:De.call(t,p)))return!1}var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++f<u;){var v=e[p=c[f]],g=t[p];if(r)var y=s?r(g,v,p,t,e,a):r(v,g,p,e,t,a);if(!(y===o?v===g||i(v,g,n,r,a):y)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var C=e.constructor,_=t.constructor;C==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Ir,i))}function jr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Te(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var u=(c=n[i])[0],f=e[u],p=c[1];if(s&&c[2]){if(f===o&&!(u in e))return!1}else{var l=new Hn;if(r)var d=r(f,p,u,e,t,l);if(!(d===o?Ir(p,f,3,r,l):d))return!1}}return!0}function Dr(e){return!(!ts(e)||(t=e,Me&&Me in t))&&(Xa(e)?Ue:me).test(Ui(e));var t}function Ar(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?$a(e)?Ur(e[0],e[1]):Fr(e):dc(e)}function Mr(e){if(!Si(e))return vn(e);var t=[];for(var n in Te(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e,t){return e<t}function Wr(e,t){var n=-1,o=Ka(e)?r(e.length):[];return pr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Fr(e){var t=ui(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Ur(e,t){return Ci(e)&&wi(t)?Ti(Fi(e),t):function(n){var r=Es(n,e);return r===o&&r===t?ks(n,e):Ir(t,r,3)}}function Nr(e,t,n,r,i){e!==t&&gr(t,(function(a,s){if(i||(i=new Hn),ts(a))!function(e,t,n,r,i,a,s){var c=ki(e,n),u=ki(t,n),f=s.get(u);if(f)Qn(e,n,f);else{var p=a?a(c,u,n+"",e,t,s):o,l=p===o;if(l){var d=$a(u),h=!d&&qa(u),m=!d&&!h&&fs(u);p=u,d||h||m?$a(c)?p=c:Ha(c)?p=ko(c):h?(l=!1,p=So(u,!0)):m?(l=!1,p=To(u,!0)):p=[]:is(u)||Ga(u)?(p=c,Ga(c)?p=ys(c):ts(c)&&!Xa(c)||(p=mi(u))):l=!1}l&&(s.set(u,p),i(p,u,r,a,s),s.delete(u)),Qn(e,n,p)}}(e,t,s,n,Nr,r,i);else{var c=r?r(ki(e,s),a,s+"",e,t,i):o;c===o&&(c=a),Qn(e,s,c)}}),Ds)}function zr(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?Rt(t,(function(e){return $a(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=Rt(t,Bt(si()));var o=Wr(e,(function(e,n,o){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=Ro(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Sr(e,a);n(s,a)&&Zr(i,yo(a,e),s)}return i}function Gr(e,t,n,r){var o=r?At:Dt,i=-1,a=t.length,s=e;for(e===t&&(t=ko(t)),n&&(s=Rt(e,Bt(n)));++i<a;)for(var c=0,u=t[i],f=n?n(u):u;(c=o(s,f,c,r))>-1;)s!==e&&rt.call(s,c,1),rt.call(e,c,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?rt.call(e,o,1):uo(e,o)}}return e}function Jr(e,t){return e+pn(bn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pn(t/2))&&(e+=e)}while(t);return n}function Hr(e,t){return Ii(Ri(e,t,oc),e+"")}function qr(e){return Yn(zs(e))}function Yr(e,t){var n=zs(e);return Ai(n,ar(t,0,n.length))}function Zr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,c=e;null!=c&&++i<a;){var u=Fi(t[i]),f=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var p=c[u];(f=r?r(p,u,c):o)===o&&(f=ts(p)?p:gi(t[i+1])?[]:{})}er(c,u,f),c=c[u]}return e}var Xr=xn?function(e,t){return xn.set(e,t),e}:oc,Qr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function eo(e){return Ai(zs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!us(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,oc,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,c=null===t,u=us(t),f=t===o;i<a;){var p=pn((i+a)/2),l=n(e[p]),d=l!==o,h=null===l,m=l==l,v=us(l);if(s)var g=r||m;else g=f?m&&(r||d):c?m&&d&&(r||!h):u?m&&d&&!h&&(r||!v):!h&&!v&&(r?l<=t:l<t);g?i=p+1:a=p}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:us(e)?l:+e}function so(e){if("string"==typeof e)return e;if($a(e))return Rt(e,so)+"";if(us(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,n){var r=-1,o=wt,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Tt;else if(i>=200){var u=t?null:Ho(e);if(u)return nn(u);a=!1,o=$t,c=new Kn}else c=t?[]:s;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,a&&p==p){for(var l=c.length;l--;)if(c[l]===p)continue e;t&&c.push(p),s.push(f)}else o(c,p,n)||(c!==s&&c.push(p),s.push(f))}return s}function uo(e,t){return null==(e=Pi(e,t=yo(t,e)))||delete e[Fi(Zi(t))]}function fo(e,t,n,r){return Zr(e,t,n(Sr(e,t)),r)}function po(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function lo(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Et(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],c=-1;++c<o;)c!=i&&(a[i]=fr(a[i]||s,e[c],t,n));return co(vr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var c=r<a?t[r]:o;n(s,e[r],c)}return s}function vo(e){return Ha(e)?e:[]}function go(e){return"function"==typeof e?e:oc}function yo(e,t){return $a(e)?e:Ci(e,t)?[e]:Wi(Cs(e))}var Co=Hr;function _o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var bo=ft||function(e){return it.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=Be?Be(n):new e.constructor(n);return e.copy(r),r}function wo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function To(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ro(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=us(e),s=t!==o,c=null===t,u=t==t,f=us(t);if(!c&&!f&&!a&&e>t||a&&s&&u&&!c&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||c&&n&&i||!s&&i||!u)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,s=n.length,c=-1,u=t.length,f=gn(a-s,0),p=r(u+f),l=!o;++c<u;)p[c]=t[c];for(;++i<s;)(l||i<a)&&(p[n[i]]=e[i]);for(;f--;)p[c++]=e[i++];return p}function Eo(e,t,n,o){for(var i=-1,a=e.length,s=-1,c=n.length,u=-1,f=t.length,p=gn(a-c,0),l=r(p+f),d=!o;++i<p;)l[i]=e[i];for(var h=i;++u<f;)l[h+u]=t[u];for(;++s<c;)(d||i<a)&&(l[h+n[s]]=e[i++]);return l}function ko(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function xo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?or(n,c,u):er(n,c,u)}return n}function Oo(e,t){return function(n,r){var o=$a(n)?yt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function Io(e){return Hr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Te(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Te(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Do(e){return function(t,n,r){for(var o=-1,i=Te(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}function Ao(e){return function(t){var n=Xt(t=Cs(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?_o(n,1).join(""):t.slice(1);return r[e]()+i}}function Mo(e){return function(t){return Et(Xs(Gs(t).replace(Ge,"")),e,"")}}function Lo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Nn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Wo(e){return function(t,n,r){var i=Te(t);if(!Ka(t)){var a=si(n,3);t=js(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Fo(e){return ti((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ee(i);if(a&&!c&&"wrapper"==ii(s))var c=new Vn([],!0)}for(r=c?r:n;++r<n;){var u=ii(s=t[r]),f="wrapper"==u?oi(s):o;c=f&&_i(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?c[ii(f[0])].apply(c,f[3]):1==s.length&&_i(s)?c[u]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&$a(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Uo(e,t,n,i,a,s,c,f,p,l){var d=t&u,h=1&t,m=2&t,v=24&t,g=512&t,y=m?o:Lo(e);return function o(){for(var u=arguments.length,C=r(u),_=u;_--;)C[_]=arguments[_];if(v)var b=ai(o),S=Ht(C,b);if(i&&(C=Po(C,i,a,v)),s&&(C=Eo(C,s,c,v)),u-=S,v&&u<l){var w=tn(C,b);return Jo(e,t,Uo,o.placeholder,n,C,w,f,p,l-u)}var T=h?n:this,R=m?T[e]:e;return u=C.length,f?C=Ei(C,f):g&&u>1&&C.reverse(),d&&p<u&&(C.length=p),this&&this!==it&&this instanceof o&&(R=y||Lo(R)),R.apply(T,C)}}function No(e,t){return function(n,r){return function(e,t,n,r){return Cr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Vo(e){return ti((function(t){return t=Rt(t,Bt(si())),Hr((function(n){var r=this;return e(t,(function(e){return gt(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,fn(e/on(t)));return Xt(t)?_o(an(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n,o){for(var i=-1,a=gn(fn((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:hs(i),e)}}function $o(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Jo(e,t,n,r,i,a,s,u,f,p){var l=8&t;t|=l?c:64,4&(t&=~(l?64:c))||(t&=-4);var d=[e,t,i,l?a:o,l?s:o,l?o:a,l?o:s,u,f,p],h=n.apply(o,d);return _i(e)&&xi(h,d),h.placeholder=r,ji(h,e,t)}function Ko(e){var t=we[e];return function(e,n){if(e=gs(e),(n=null==n?0:yn(ms(n),292))&&hn(e)){var r=(Cs(e)+"e").split("e");return+((r=(Cs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ho=Pn&&1/nn(new Pn([,-0]))[1]==f?function(e){return new Pn(e)}:uc;function qo(e){return function(t){var n=di(t);return n==S?Qt(t):n==E?rn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,n,a,f,p,l,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ee(i);var m=a?a.length:0;if(m||(t&=-97,a=f=o),l=l===o?l:gn(ms(l),0),d=d===o?d:ms(d),m-=f?f.length:0,64&t){var v=a,g=f;a=f=o}var y=h?o:oi(e),C=[e,t,n,a,f,v,g,p,l,d];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var f=e[3];e[3]=f?Po(f,c,t[4]):c,e[4]=f?tn(e[3],s):t[4]}(c=t[5])&&(f=e[5],e[5]=f?Eo(f,c,t[6]):c,e[6]=f?tn(e[5],s):t[6]),(c=t[7])&&(e[7]=c),r&u&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(C,y),e=C[0],t=C[1],n=C[2],a=C[3],f=C[4],!(d=C[9]=C[9]===o?h?0:e.length:gn(C[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var i=Lo(e);return function a(){for(var s=arguments.length,c=r(s),u=s,f=ai(a);u--;)c[u]=arguments[u];var p=s<3&&c[0]!==f&&c[s-1]!==f?[]:tn(c,f);return(s-=p.length)<n?Jo(e,t,Uo,a.placeholder,o,c,p,o,o,n-s):gt(this&&this!==it&&this instanceof a?i:e,this,c)}}(e,t,d):t!=c&&33!=t||f.length?Uo.apply(o,C):function(e,t,n,o){var i=1&t,a=Lo(e);return function t(){for(var s=-1,c=arguments.length,u=-1,f=o.length,p=r(f+c),l=this&&this!==it&&this instanceof t?a:e;++u<f;)p[u]=o[u];for(;c--;)p[u++]=arguments[++s];return gt(l,i?n:this,p)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Lo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ji((y?Xr:xi)(_,C),e,t)}function Zo(e,t,n,r){return e===o||za(e,Oe[n])&&!De.call(r,n)?t:e}function Xo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Nr(e,t,o,Xo,a),a.delete(t)),e}function Qo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var l=-1,d=!0,h=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++l<c;){var m=e[l],v=t[l];if(r)var g=s?r(v,m,l,t,e,a):r(m,v,l,e,t,a);if(g!==o){if(g)continue;d=!1;break}if(h){if(!xt(t,(function(e,t){if(!$t(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==v&&!i(m,v,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ti(e){return Ii(Ri(e,o,Ji),e+"")}function ni(e){return wr(e,js,pi)}function ri(e){return wr(e,Ds,li)}var oi=xn?function(e){return xn.get(e)}:uc;function ii(e){for(var t=e.name+"",n=On[t],r=De.call(On,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(De.call(Un,"placeholder")?Un:e).placeholder}function si(){var e=Un.iteratee||ic;return e=e===ic?Ar:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=js(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,wi(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var pi=ln?function(e){return null==e?[]:(e=Te(e),St(ln(e),(function(t){return et.call(e,t)})))}:vc,li=ln?function(e){for(var t=[];e;)Pt(t,pi(e)),e=Je(e);return t}:vc,di=Tr;function hi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=Fi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&gi(a,o)&&($a(e)||Ga(e))}function mi(e){return"function"!=typeof e.constructor||Si(e)?{}:Nn(Je(e))}function vi(e){return $a(e)||Ga(e)||!!(ot&&e&&e[ot])}function gi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&gi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function Ci(e,t){if($a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||Q.test(e)||!X.test(e)||null!=t&&e in Te(t)}function _i(e){var t=ii(e),n=Un[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(wn&&di(new wn(new ArrayBuffer(1)))!=j||Tn&&di(new Tn)!=S||Rn&&di(Rn.resolve())!=R||Pn&&di(new Pn)!=E||En&&di(new En)!=O)&&(di=function(e){var t=Tr(e),n=t==T?e.constructor:o,r=n?Ui(n):"";if(r)switch(r){case In:return j;case jn:return S;case Dn:return R;case An:return E;case Mn:return O}return t});var bi=Ie?Xa:gc;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function wi(e){return e==e&&!ts(e)}function Ti(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Te(n))}}function Ri(e,t,n){return t=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(s),gt(e,this,c)}}function Pi(e,t){return t.length<2?e:Sr(e,to(t,0,-1))}function Ei(e,t){for(var n=e.length,r=yn(t.length,n),i=ko(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}function ki(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xi=Di(Xr),Oi=Ft||function(e,t){return it.setTimeout(e,t)},Ii=Di(Qr);function ji(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(h,(function(n){var r="_."+n[0];t&n[1]&&!wt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=Cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ai(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Jr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Mi,Li,Wi=(Mi=Ma((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}),(function(e){return 500===Li.size&&Li.clear(),e})),Li=Mi.cache,Mi);function Fi(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ui(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Bn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=ko(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Hr((function(e,t){return Ha(e)?fr(e,vr(t,1,Ha,!0)):[]})),Vi=Hr((function(e,t){var n=Zi(t);return Ha(n)&&(n=o),Ha(e)?fr(e,vr(t,1,Ha,!0),si(n,2)):[]})),Bi=Hr((function(e,t){var n=Zi(t);return Ha(n)&&(n=o),Ha(e)?fr(e,vr(t,1,Ha,!0),o,n):[]}));function Gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=gn(r+o,0)),jt(e,si(t,3),o)}function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?gn(r+i,0):yn(i,r-1)),jt(e,si(t,3),i,!0)}function Ji(e){return null!=e&&e.length?vr(e,1):[]}function Ki(e){return e&&e.length?e[0]:o}var Hi=Hr((function(e){var t=Rt(e,vo);return t.length&&t[0]===e[0]?kr(t):[]})),qi=Hr((function(e){var t=Zi(e),n=Rt(e,vo);return t===Zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?kr(n,si(t,2)):[]})),Yi=Hr((function(e){var t=Zi(e),n=Rt(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?kr(n,o,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Hr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return $r(e,Rt(t,(function(e){return gi(e,n)?+e:e})).sort(Ro)),r}));function ta(e){return null==e?e:Sn.call(e)}var na=Hr((function(e){return co(vr(e,1,Ha,!0))})),ra=Hr((function(e){var t=Zi(e);return Ha(t)&&(t=o),co(vr(e,1,Ha,!0),si(t,2))})),oa=Hr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,co(vr(e,1,Ha,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Ha(e))return t=gn(e.length,t),!0})),zt(t,(function(t){return Rt(e,Wt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Rt(n,(function(e){return gt(t,o,e)}))}var sa=Hr((function(e,t){return Ha(e)?fr(e,t):[]})),ca=Hr((function(e){return ho(St(e,Ha))})),ua=Hr((function(e){var t=Zi(e);return Ha(t)&&(t=o),ho(St(e,Ha),si(t,2))})),fa=Hr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,ho(St(e,Ha),o,t)})),pa=Hr(ia),la=Hr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function da(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),va=Oo((function(e,t,n){De.call(e,n)?++e[n]:or(e,n,1)})),ga=Wo(Gi),ya=Wo($i);function Ca(e,t){return($a(e)?Ct:pr)(e,si(t,3))}function _a(e,t){return($a(e)?_t:lr)(e,si(t,3))}var ba=Oo((function(e,t,n){De.call(e,n)?e[n].push(t):or(e,n,[t])})),Sa=Hr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ka(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?gt(t,e,n):xr(e,t,n)})),a})),wa=Oo((function(e,t,n){or(e,n,t)}));function Ta(e,t){return($a(e)?Rt:Wr)(e,si(t,3))}var Ra=Oo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Pa=Hr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,vr(t,1),[])})),Ea=Ot||function(){return it.Date.now()};function ka(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Yo(e,u,o,o,o,o,t)}function xa(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Oa=Hr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Oa));r|=c}return Yo(e,r,t,n,o)})),Ia=Hr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ia));r|=c}return Yo(t,r,e,n,o)}));function ja(e,t,n){var r,a,s,c,u,f,p=0,l=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ee(i);function m(t){var n=r,i=a;return r=a=o,p=t,c=e.apply(i,n)}function v(e){return p=e,u=Oi(y,t),l?m(e):c}function g(e){var n=e-f;return f===o||n>=t||n<0||d&&e-p>=s}function y(){var e=Ea();if(g(e))return C(e);u=Oi(y,function(e){var n=t-(e-f);return d?yn(n,s-(e-p)):n}(e))}function C(e){return u=o,h&&r?m(e):(r=a=o,c)}function _(){var e=Ea(),n=g(e);if(r=arguments,a=this,f=e,n){if(u===o)return v(f);if(d)return bo(u),u=Oi(y,t),m(f)}return u===o&&(u=Oi(y,t)),c}return t=gs(t)||0,ts(n)&&(l=!!n.leading,s=(d="maxWait"in n)?gn(gs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),_.cancel=function(){u!==o&&bo(u),p=0,r=f=a=u=o},_.flush=function(){return u===o?c:C(Ea())},_}var Da=Hr((function(e,t){return ur(e,1,t)})),Aa=Hr((function(e,t,n){return ur(e,gs(t)||0,n)}));function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ma.Cache||Jn),n}function La(e){if("function"!=typeof e)throw new Ee(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=Jn;var Wa=Co((function(e,t){var n=(t=1==t.length&&$a(t[0])?Rt(t[0],Bt(si())):Rt(vr(t,1),Bt(si()))).length;return Hr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return gt(e,this,r)}))})),Fa=Hr((function(e,t){var n=tn(t,ai(Fa));return Yo(e,c,o,t,n)})),Ua=Hr((function(e,t){var n=tn(t,ai(Ua));return Yo(e,64,o,t,n)})),Na=ti((function(e,t){return Yo(e,256,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Va=$o(Rr),Ba=$o((function(e,t){return e>=t})),Ga=Or(function(){return arguments}())?Or:function(e){return ns(e)&&De.call(e,"callee")&&!et.call(e,"callee")},$a=r.isArray,Ja=pt?Bt(pt):function(e){return ns(e)&&Tr(e)==I};function Ka(e){return null!=e&&es(e.length)&&!Xa(e)}function Ha(e){return ns(e)&&Ka(e)}var qa=dn||gc,Ya=lt?Bt(lt):function(e){return ns(e)&&Tr(e)==y};function Za(e){if(!ns(e))return!1;var t=Tr(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!ts(e))return!1;var t=Tr(e);return t==_||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=dt?Bt(dt):function(e){return ns(e)&&di(e)==S};function os(e){return"number"==typeof e||ns(e)&&Tr(e)==w}function is(e){if(!ns(e)||Tr(e)!=T)return!1;var t=Je(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==We}var as=ht?Bt(ht):function(e){return ns(e)&&Tr(e)==P},ss=mt?Bt(mt):function(e){return ns(e)&&di(e)==E};function cs(e){return"string"==typeof e||!$a(e)&&ns(e)&&Tr(e)==k}function us(e){return"symbol"==typeof e||ns(e)&&Tr(e)==x}var fs=vt?Bt(vt):function(e){return ns(e)&&es(e.length)&&!!Xe[Tr(e)]},ps=$o(Lr),ls=$o((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Ka(e))return cs(e)?an(e):ko(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=di(e);return(t==S?Qt:t==E?nn:zs)(e)}function hs(e){return e?(e=gs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?ar(ms(e),0,d):0}function gs(e){if("number"==typeof e)return e;if(us(e))return l;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=he.test(e);return n||ve.test(e)?nt(e.slice(2),n?2:8):de.test(e)?l:+e}function ys(e){return xo(e,Ds(e))}function Cs(e){return null==e?"":so(e)}var _s=Io((function(e,t){if(Si(t)||Ka(t))xo(t,js(t),e);else for(var n in t)De.call(t,n)&&er(e,n,t[n])})),bs=Io((function(e,t){xo(t,Ds(t),e)})),Ss=Io((function(e,t,n,r){xo(t,Ds(t),e,r)})),ws=Io((function(e,t,n,r){xo(t,js(t),e,r)})),Ts=ti(ir),Rs=Hr((function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ds(a),c=-1,u=s.length;++c<u;){var f=s[c],p=e[f];(p===o||za(p,Oe[f])&&!De.call(e,f))&&(e[f]=a[f])}return e})),Ps=Hr((function(e){return e.push(o,Xo),gt(Ms,o,e)}));function Es(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function ks(e,t){return null!=e&&hi(e,t,Er)}var xs=No((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),tc(oc)),Os=No((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),si),Is=Hr(xr);function js(e){return Ka(e)?qn(e):Mr(e)}function Ds(e){return Ka(e)?qn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}(e)}var As=Io((function(e,t,n){Nr(e,t,n)})),Ms=Io((function(e,t,n,r){Nr(e,t,n,r)})),Ls=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),xo(e,ri(e),n),r&&(n=sr(n,7,Qo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Ws=ti((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return ks(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Rt(ri(e),(function(e){return[e]}));return t=si(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var Us=qo(js),Ns=qo(Ds);function zs(e){return null==e?[]:Gt(e,js(e))}var Vs=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)}));function Bs(e){return Zs(Cs(e).toLowerCase())}function Gs(e){return(e=Cs(e))&&e.replace(ye,qt).replace($e,"")}var $s=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Js=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Ao("toLowerCase"),Hs=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qs=Mo((function(e,t,n){return e+(n?" ":"")+Zs(t)})),Ys=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Ao("toUpperCase");function Xs(e,t,n){return e=Cs(e),(t=n?o:t)===o?function(e){return qe.test(e)}(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Qs=Hr((function(e,t){try{return gt(e,o,t)}catch(e){return Za(e)?e:new be(e)}})),ec=ti((function(e,t){return Ct(t,(function(t){t=Fi(t),or(e,t,Oa(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Fo(),rc=Fo(!0);function oc(e){return e}function ic(e){return Ar("function"==typeof e?e:sr(e,1))}var ac=Hr((function(e,t){return function(n){return xr(n,e,t)}})),sc=Hr((function(e,t){return function(n){return xr(e,n,t)}}));function cc(e,t,n){var r=js(t),o=br(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=br(t,js(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return Ct(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ko(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function uc(){}var fc=Vo(Rt),pc=Vo(bt),lc=Vo(xt);function dc(e){return Ci(e)?Wt(Fi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hc=Go(),mc=Go(!0);function vc(){return[]}function gc(){return!1}var yc,Cc=zo((function(e,t){return e+t}),0),_c=Ko("ceil"),bc=zo((function(e,t){return e/t}),1),Sc=Ko("floor"),wc=zo((function(e,t){return e*t}),1),Tc=Ko("round"),Rc=zo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=ka,Un.assign=_s,Un.assignIn=bs,Un.assignInWith=Ss,Un.assignWith=ws,Un.at=Ts,Un.before=xa,Un.bind=Oa,Un.bindAll=ec,Un.bindKey=Ia,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Un.chain=da,Un.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:gn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,c=r(fn(i/t));a<i;)c[s++]=to(e,a,a+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Pt($a(n)?ko(n):[n],vr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Ee(i);return[n(e[0]),e[1]]})):[],Hr((function(n){for(var r=-1;++r<t;){var o=e[r];if(gt(o[0],this,n))return gt(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=js(e);return function(n){return cr(n,e,t)}}(sr(e,1))},Un.constant=tc,Un.countBy=va,Un.create=function(e,t){var n=Nn(e);return null==t?n:rr(n,t)},Un.curry=function e(t,n,r){var i=Yo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=Yo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=ja,Un.defaults=Rs,Un.defaultsDeep=Ps,Un.defer=Da,Un.delay=Aa,Un.difference=zi,Un.differenceBy=Vi,Un.differenceWith=Bi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:vs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return($a(e)?St:mr)(e,si(t,3))},Un.flatMap=function(e,t){return vr(Ta(e,t),1)},Un.flatMapDeep=function(e,t){return vr(Ta(e,t),f)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),vr(Ta(e,t),n)},Un.flatten=Ji,Un.flattenDeep=function(e){return null!=e&&e.length?vr(e,f):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===o?1:ms(t)):[]},Un.flip=function(e){return Yo(e,512)},Un.flow=nc,Un.flowRight=rc,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:br(e,js(e))},Un.functionsIn=function(e){return null==e?[]:br(e,Ds(e))},Un.groupBy=ba,Un.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Un.intersection=Hi,Un.intersectionBy=qi,Un.intersectionWith=Yi,Un.invert=xs,Un.invertBy=Os,Un.invokeMap=Sa,Un.iteratee=ic,Un.keyBy=wa,Un.keys=js,Un.keysIn=Ds,Un.map=Ta,Un.mapKeys=function(e,t){var n={};return t=si(t,3),Cr(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=si(t,3),Cr(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Un.matches=function(e){return Fr(sr(e,1))},Un.matchesProperty=function(e,t){return Ur(e,sr(t,1))},Un.memoize=Ma,Un.merge=As,Un.mergeWith=Ms,Un.method=ac,Un.methodOf=sc,Un.mixin=cc,Un.negate=La,Un.nthArg=function(e){return e=ms(e),Hr((function(t){return zr(t,e)}))},Un.omit=Ls,Un.omitBy=function(e,t){return Fs(e,La(si(t)))},Un.once=function(e){return xa(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:($a(t)||(t=null==t?[]:[t]),$a(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Un.over=fc,Un.overArgs=Wa,Un.overEvery=pc,Un.overSome=lc,Un.partial=Fa,Un.partialRight=Ua,Un.partition=Ra,Un.pick=Ws,Un.pickBy=Fs,Un.property=dc,Un.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Un.pull=Xi,Un.pullAll=Qi,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,si(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Un.pullAt=ea,Un.range=hc,Un.rangeRight=mc,Un.rearg=Na,Un.reject=function(e,t){return($a(e)?St:mr)(e,La(si(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return $r(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Ee(i);return Hr(e,t=t===o?t:ms(t))},Un.reverse=ta,Un.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ms(t),($a(e)?Zn:Yr)(e,t)},Un.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Un.shuffle=function(e){return($a(e)?Xn:eo)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),to(e,t,n)):[]},Un.sortBy=Pa,Un.sortedUniq=function(e){return e&&e.length?io(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=Cs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Xt(e)?_o(an(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ee(i);return t=null==t?0:gn(ms(t),0),Hr((function(n){var r=n[t],o=_o(n,0,t);return r&&Pt(o,r),gt(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?po(e,si(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ee(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ja(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ha,Un.toArray=ds,Un.toPairs=Us,Un.toPairsIn=Ns,Un.toPath=function(e){return $a(e)?Rt(e,Fi):us(e)?[e]:ko(Wi(Cs(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=$a(e),o=r||qa(e)||fs(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Xa(i)?Nn(Je(e)):{}}return(o?Ct:Cr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return ka(e,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?co(e):[]},Un.uniqBy=function(e,t){return e&&e.length?co(e,si(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},Un.unset=function(e,t){return null==e||uo(e,t)},Un.unzip=ia,Un.unzipWith=aa,Un.update=function(e,t,n){return null==e?e:fo(e,t,go(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fo(e,t,go(n),r)},Un.values=zs,Un.valuesIn=function(e){return null==e?[]:Gt(e,Ds(e))},Un.without=sa,Un.words=Xs,Un.wrap=function(e,t){return Fa(go(t),e)},Un.xor=ca,Un.xorBy=ua,Un.xorWith=fa,Un.zip=pa,Un.zipObject=function(e,t){return mo(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return mo(e||[],t||[],Zr)},Un.zipWith=la,Un.entries=Us,Un.entriesIn=Ns,Un.extend=bs,Un.extendWith=Ss,cc(Un,Un),Un.add=Cc,Un.attempt=Qs,Un.camelCase=Vs,Un.capitalize=Bs,Un.ceil=_c,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gs(n))==n?n:0),t!==o&&(t=(t=gs(t))==t?t:0),ar(gs(e),t,n)},Un.clone=function(e){return sr(e,4)},Un.cloneDeep=function(e){return sr(e,5)},Un.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||cr(e,t,js(t))},Un.deburr=Gs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=bc,Un.endsWith=function(e,t,n){e=Cs(e),t=so(t);var r=e.length,i=n=n===o?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=za,Un.escape=function(e){return(e=Cs(e))&&H.test(e)?e.replace(J,Yt):e},Un.escapeRegExp=function(e){return(e=Cs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=$a(e)?bt:dr;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Un.find=ga,Un.findIndex=Gi,Un.findKey=function(e,t){return It(e,si(t,3),Cr)},Un.findLast=ya,Un.findLastIndex=$i,Un.findLastKey=function(e,t){return It(e,si(t,3),_r)},Un.floor=Sc,Un.forEach=Ca,Un.forEachRight=_a,Un.forIn=function(e,t){return null==e?e:gr(e,si(t,3),Ds)},Un.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Ds)},Un.forOwn=function(e,t){return e&&Cr(e,si(t,3))},Un.forOwnRight=function(e,t){return e&&_r(e,si(t,3))},Un.get=Es,Un.gt=Va,Un.gte=Ba,Un.has=function(e,t){return null!=e&&hi(e,t,Pr)},Un.hasIn=ks,Un.head=Ki,Un.identity=oc,Un.includes=function(e,t,n,r){e=Ka(e)?e:zs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),cs(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Dt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=gn(r+o,0)),Dt(e,t,o)},Un.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e<gn(t,n)}(e=gs(e),t,n)},Un.invoke=Is,Un.isArguments=Ga,Un.isArray=$a,Un.isArrayBuffer=Ja,Un.isArrayLike=Ka,Un.isArrayLikeObject=Ha,Un.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Tr(e)==g},Un.isBuffer=qa,Un.isDate=Ya,Un.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||fs(e)||Ga(e)))return!e.length;var t=di(e);if(t==S||t==E)return!e.size;if(Si(e))return!Mr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ir(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Ir(e,t,o,n):!!r},Un.isError=Za,Un.isFinite=function(e){return"number"==typeof e&&hn(e)},Un.isFunction=Xa,Un.isInteger=Qa,Un.isLength=es,Un.isMap=rs,Un.isMatch=function(e,t){return e===t||jr(e,t,ui(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,jr(e,t,ui(t),n)},Un.isNaN=function(e){return os(e)&&e!=+e},Un.isNative=function(e){if(bi(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=os,Un.isObject=ts,Un.isObjectLike=ns,Un.isPlainObject=is,Un.isRegExp=as,Un.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=p},Un.isSet=ss,Un.isString=cs,Un.isSymbol=us,Un.isTypedArray=fs,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return ns(e)&&di(e)==O},Un.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Tr(e)},Un.join=function(e,t){return null==e?"":mn.call(e,t)},Un.kebabCase=$s,Un.last=Zi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?gn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):jt(e,Mt,i,!0)},Un.lowerCase=Js,Un.lowerFirst=Ks,Un.lt=ps,Un.lte=ls,Un.max=function(e){return e&&e.length?hr(e,oc,Rr):o},Un.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),Rr):o},Un.mean=function(e){return Lt(e,oc)},Un.meanBy=function(e,t){return Lt(e,si(t,2))},Un.min=function(e){return e&&e.length?hr(e,oc,Lr):o},Un.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),Lr):o},Un.stubArray=vc,Un.stubFalse=gc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wc,Un.nth=function(e,t){return e&&e.length?zr(e,ms(t)):o},Un.noConflict=function(){return it._===this&&(it._=Fe),this},Un.noop=uc,Un.now=Ea,Un.pad=function(e,t,n){e=Cs(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(pn(o),n)+e+Bo(fn(o),n)},Un.padEnd=function(e,t,n){e=Cs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Bo(t-r,n):e},Un.padStart=function(e,t,n){e=Cs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Bo(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(Cs(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hs(e),t===o?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=bn();return yn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Jr(e,t)},Un.reduce=function(e,t,n){var r=$a(e)?Et:Ut,o=arguments.length<3;return r(e,si(t,4),n,o,pr)},Un.reduceRight=function(e,t,n){var r=$a(e)?kt:Ut,o=arguments.length<3;return r(e,si(t,4),n,o,lr)},Un.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ms(t),Kr(Cs(e),t)},Un.replace=function(){var e=arguments,t=Cs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Fi(t[r])];a===o&&(r=i,a=n),e=Xa(a)?a.call(e):a}return e},Un.round=Tc,Un.runInContext=e,Un.sample=function(e){return($a(e)?Yn:qr)(e)},Un.size=function(e){if(null==e)return 0;if(Ka(e))return cs(e)?on(e):e.length;var t=di(e);return t==S||t==E?e.size:Mr(e).length},Un.snakeCase=Hs,Un.some=function(e,t,n){var r=$a(e)?xt:no;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Un.sortedIndex=function(e,t){return ro(e,t)},Un.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ro(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},Un.startCase=qs,Un.startsWith=function(e,t,n){return e=Cs(e),n=null==n?0:ar(ms(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Un.subtract=Rc,Un.sum=function(e){return e&&e.length?Nt(e,oc):0},Un.sumBy=function(e,t){return e&&e.length?Nt(e,si(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&yi(e,t,n)&&(t=o),e=Cs(e),t=Ss({},t,r,Zo);var i,a,s=Ss({},t.imports,r.imports,Zo),c=js(s),u=Gt(s,c),f=0,p=t.interpolate||Ce,l="__p += '",d=Re((t.escape||Ce).source+"|"+p.source+"|"+(p===Z?pe:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),h="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";e.replace(d,(function(t,n,r,o,s,c){return r||(r=o),l+=e.slice(f,c).replace(_e,Zt),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),s&&(a=!0,l+="';\n"+s+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+t.length,t})),l+="';\n";var m=De.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new be("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(a?l.replace(V,""):l).replace(B,"$1").replace(G,"$1;"),l="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var v=Qs((function(){return Se(c,h+"return "+l).apply(o,u)}));if(v.source=l,Za(v))throw v;return v},Un.times=function(e,t){if((e=ms(e))<1||e>p)return[];var n=d,r=yn(e,d);t=si(t),e-=d;for(var o=zt(r,t);++n<e;)t(n);return o},Un.toFinite=hs,Un.toInteger=ms,Un.toLength=vs,Un.toLower=function(e){return Cs(e).toLowerCase()},Un.toNumber=gs,Un.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,p):0===e?e:0},Un.toString=Cs,Un.toUpper=function(e){return Cs(e).toUpperCase()},Un.trim=function(e,t,n){if((e=Cs(e))&&(n||t===o))return Vt(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return _o(r,Jt(r,i),Kt(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=Cs(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return _o(r,0,Kt(r,an(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=Cs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return _o(r,Jt(r,an(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=Cs(e)).length;if(Xt(e)){var s=an(e);a=s.length}if(n>=a)return e;var c=n-on(r);if(c<1)return r;var u=s?_o(s,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(s&&(c+=u.length-c),as(i)){if(e.slice(c).search(i)){var f,p=u;for(i.global||(i=Re(i.source,Cs(le.exec(i))+"g")),i.lastIndex=0;f=i.exec(p);)var l=f.index;u=u.slice(0,l===o?c:l)}}else if(e.indexOf(so(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Un.unescape=function(e){return(e=Cs(e))&&K.test(e)?e.replace($,cn):e},Un.uniqueId=function(e){var t=++Ae;return Cs(e)+t},Un.upperCase=Ys,Un.upperFirst=Zs,Un.each=Ca,Un.eachRight=_a,Un.first=Ki,cc(Un,(yc={},Cr(Un,(function(e,t){De.call(Un.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),Un.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Ct(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===o?1:gn(ms(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(oc)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Hr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return xr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(La(si(e)))},Bn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},Cr(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Bn,u=s[0],f=c||$a(t),p=function(e){var t=i.apply(Un,Pt([e],s));return r&&l?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(c=f=!1);var l=this.__chain__,d=!!this.__actions__.length,h=a&&!l,m=c&&!d;if(!a&&f){t=m?t:new Bn(this);var v=e.apply(t,s);return v.__actions__.push({func:ha,args:[p],thisArg:o}),new Vn(v,l)}return h&&m?e.apply(this,s):(v=this.thru(p),h?r?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ke[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[n]((function(n){return t.apply($a(n)?n:[],e)}))}})),Cr(Bn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";De.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[Uo(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$a(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,u=r?s:a-1,f=this.__iteratees__,p=f.length,l=0,d=yn(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return lo(e,this.__actions__);var h=[];e:for(;c--&&l<d;){for(var m=-1,v=e[u+=t];++m<p;){var g=f[m],y=g.iteratee,C=g.type,_=y(v);if(2==C)v=_;else if(!_){if(1==C)continue e;break e}}h[l++]=v}return h},Un.prototype.at=ma,Un.prototype.chain=function(){return da(this)},Un.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Ni(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(ta)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return lo(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,at&&(Un.prototype[at]=function(){return this}),Un}();it._=un,(r=function(){return un}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},692:e=>{var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),(t+=null!=e["network-id"]?" network-id %d":"%v")+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",(t+=null!=e.rateNumerator?" rate=%s":"")+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},766:(e,t,n)=>{var r=n(962),o=n(776),i=n(692);t.grammar=i,t.write=o,t.parse=r.parse,t.parseParams=r.parseParams,t.parseFmtpConfig=r.parseFmtpConfig,t.parsePayloads=r.parsePayloads,t.parseRemoteCandidates=r.parseRemoteCandidates,t.parseImageAttributes=r.parseImageAttributes,t.parseSimulcastStreamList=r.parseSimulcastStreamList},962:(e,t,n)=>{var r=function(e){return String(Number(e))===e?Number(e):e},o=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(n.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},i=n(692),a=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],r=t;return e.split(/(\r\n|\r|\n)/).filter(a).forEach((function(e){var t=e[0],a=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),r=n[n.length-1]);for(var s=0;s<(i[t]||[]).length;s+=1){var c=i[t][s];if(c.reg.test(a))return o(c,r,a)}})),t.media=n,t};var s=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(s,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(r),o=0;o<n.length;o+=3)t.push({component:n[o],ip:n[o+1],port:n[o+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(s,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}},776:(e,t,n)=>{var r=n(692),o=/%[sdv%]/g,i=function(e){var t=1,n=arguments,r=n.length;return e.replace(o,(function(e){if(t>=r)return e;var o=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},a=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var a=t.names[o];t.name?r.push(n[t.name][a]):r.push(n[t.names[o]])}else r.push(n[t.name]);return i.apply(null,r)},s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],c=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||s,o=t.innerOrder||c,i=[];return n.forEach((function(t){r[t].forEach((function(n){n.name in e&&null!=e[n.name]?i.push(a(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){i.push(a(t,n,e))}))}))})),e.media.forEach((function(e){i.push(a("m",r.m[0],e)),o.forEach((function(t){r[t].forEach((function(n){n.name in e&&null!=e[n.name]?i.push(a(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){i.push(a(t,n,e))}))}))}))})),i.join("\r\n")+"\r\n"}},539:e=>{"use strict";const t={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((e=>e.trim()))},t.splitSections=function(e){return e.split("\nm=").map(((e,t)=>(t>0?"m="+e:e).trim()+"\r\n"))},t.getDescription=function(e){const n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){const n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter((e=>0===e.indexOf(n)))},t.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":n.relatedAddress=t[e+1];break;case"rport":n.relatedPort=parseInt(t[e+1],10);break;case"tcptype":n.tcpType=t[e+1];break;case"ufrag":n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:void 0===n[t[e]]&&(n[t[e]]=t[e+1])}return n},t.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substring(14).split(" ")},t.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},t.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},t.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<r.length;e++)n=r[e].trim().split("="),t[n[0].trim()]=n[1];return t},t.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach((t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},t.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((e=>parseInt(e,10)))}},t.getMid=function(e){const n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substring(6)},t.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},t.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){const r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],o=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&o?{usernameFragment:r.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){const n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" ");n.profile=r[2];for(let o=3;o<r.length;o++){const i=r[o],a=t.matchPrefix(e,"a=rtpmap:"+i+" ")[0];if(a){const r=t.parseRtpMap(a),o=t.matchPrefix(e,"a=fmtp:"+i+" ");switch(r.parameters=o.length?t.parseFmtp(o[0]):{},r.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+i+" ").map(t.parseRtcpFb),n.codecs.push(r),r.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(r.name.toUpperCase())}}}t.matchPrefix(e,"a=extmap:").forEach((e=>{n.headerExtensions.push(t.parseExtmap(e))}));const o=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return n.codecs.forEach((e=>{o.forEach((t=>{e.rtcpFeedback.find((e=>e.type===t.type&&e.parameter===t.parameter))||e.rtcpFeedback.push(t)}))})),n},t.writeRtpDescription=function(e,n){let r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" "+(n.profile||"UDP/TLS/RTP/SAVPF")+" ",r+=n.codecs.map((e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType)).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((e=>{r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));let o=0;return n.codecs.forEach((e=>{e.maxptime>o&&(o=e.maxptime)})),o>0&&(r+="a=maxptime:"+o+"\r\n"),n.headerExtensions&&n.headerExtensions.forEach((e=>{r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){const n=[],r=t.parseRtpParameters(e),o=-1!==r.fecMechanisms.indexOf("RED"),i=-1!==r.fecMechanisms.indexOf("ULPFEC"),a=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute)),s=a.length>0&&a[0].ssrc;let c;const u=t.matchPrefix(e,"a=ssrc-group:FID").map((e=>e.substring(17).split(" ").map((e=>parseInt(e,10)))));u.length>0&&u[0].length>1&&u[0][0]===s&&(c=u[0][1]),r.codecs.forEach((e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&c&&(t.rtx={ssrc:c}),n.push(t),o&&(t=JSON.parse(JSON.stringify(t)),t.fec={ssrc:s,mechanism:i?"red+ulpfec":"red"},n.push(t))}})),0===n.length&&s&&n.push({ssrc:s});let f=t.matchPrefix(e,"b=");return f.length&&(f=0===f[0].indexOf("b=TIAS:")?parseInt(f[0].substring(7),10):0===f[0].indexOf("b=AS:")?1e3*parseInt(f[0].substring(5),10)*.95-16e3:void 0,n.forEach((e=>{e.maxBitrate=f}))),n},t.parseRtcpParameters=function(e){const n={},r=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);const o=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=o.length>0,n.compound=0===o.length;const i=t.matchPrefix(e,"a=rtcp-mux");return n.mux=i.length>0,n},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let n;const r=t.matchPrefix(e,"a=msid:");if(1===r.length)return n=r[0].substring(7).split(" "),{stream:n[0],track:n[1]};const o=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"msid"===e.attribute));return o.length>0?(n=o[0].value.split(" "),{stream:n[0],track:n[1]}):void 0},t.parseSctpDescription=function(e){const n=t.parseMLine(e),r=t.matchPrefix(e,"a=max-message-size:");let o;r.length>0&&(o=parseInt(r[0].substring(19),10)),isNaN(o)&&(o=65536);const i=t.matchPrefix(e,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substring(12),10),protocol:n.fmt,maxMessageSize:o};const a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){const e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:o}}},t.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,n,r){let o;const i=void 0!==n?n:2;return o=e||t.generateSessionId(),"v=0\r\no="+(r||"thisisadapterortc")+" "+o+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,n){const r=t.splitLines(e);for(let e=0;e<r.length;e++)switch(r[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[e].substring(2)}return n?t.getDirection(n):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substring(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){const n=t.splitLines(e)[0].substring(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},t.parseOLine=function(e){const n=t.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const n=t.splitLines(e);for(let e=0;e<n.length;e++)if(n[e].length<2||"="!==n[e].charAt(1))return!1;return!0},e.exports=t},465:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mungeSdpPublish=void 0;var i=o(n(766)),a=o(n(723)),s=o(n(486)),c=n(317),u=n(593),f=n(121),p=function(e,t){var n=[c.EnumVideoCodecs.VP9,c.EnumVideoCodecs.VP8,c.EnumVideoCodecs.H264,c.EnumVideoCodecs.RED,c.EnumVideoCodecs.ULPFEC,c.EnumVideoCodecs.RTX,f.EnumAudioCodecs.OPUS,f.EnumAudioCodecs.ISAC,f.EnumAudioCodecs.G722,f.EnumAudioCodecs.PCMU,f.EnumAudioCodecs.PCMA,f.EnumAudioCodecs.CN],r=s.default.map(n,s.default.toLower),o=[];s.default.forEach(e.rtp,(function(e){s.default.includes(r,s.default.toLower(e.codec))&&o.push(e.payload)})),s.default.forEach(e.fmtp,(function(e){if(s.default.includes(o,e.payload)){var n=i.default.parseParams(e.config);s.default.merge(n,{"x-google-min-bitrate":t.bitrate.min,"x-google-max-bitrate":t.bitrate.max}),e.config=s.default.chain(n).toPairs().map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(";").value()}}))},l=function(e,t){var n=!0;return s.default.forOwn(e,(function(e,r){if(!s.default.has(t,r)||e!==t[r])return n=!1,!1})),n},d=function(e,t,n){var o=i.default.parsePayloads(e.payloads);s.default.forEach(["rtp","fmtp","rtcpFb"],(function(r){s.default.has(e,r)&&!s.default.isUndefined(e[r])&&s.default.isArray(e[r])&&(e[r]=(n?s.default.filter:s.default.reject)(e[r],(function(e){return"payload"in e&&s.default.includes(t,e.payload)})))}));var a=n?s.default.intersection(o,t):s.default.without.apply(s.default,r([o],t,!1));e.payloads=s.default.join(a," ")},h=function(e,t){var n=s.default.map(t,s.default.toLower),r=[];s.default.forEach(e.rtp,(function(e){s.default.includes(n,s.default.toLower(e.codec))&&r.push(e.payload)})),s.default.forEach(e.fmtp,(function(e){var t=i.default.parseParams(e.config);s.default.has(t,"apt")&&s.default.includes(r,t.apt)&&r.push(e.payload)})),d(e,r,!0)};t.mungeSdpPublish=function(e,t){var n=i.default.parse(e),r=t.audioCodec||[f.EnumAudioCodecs.OPUS],o=t.videoCodec||[c.EnumVideoCodecs.VP8],m=a.default.browserDetails.browser,v=s.default.findIndex(n.media,{type:u.EnumSupportedMediaType.AUDIO}),g=s.default.findIndex(n.media,{type:u.EnumSupportedMediaType.VIDEO}),y=s.default.get(n.media,v),C=s.default.get(n.media,g);return s.default.isUndefined(y)||(h(y,r),"chrome"===m&&p(y,{bitrate:t.audioBitrate})),s.default.isUndefined(C)||(h(C,o),function(e,t){var n=[],r=!s.default.isEmpty(t.h264CodecOptions),o=!s.default.isEmpty(t.vp9CodecOptions);if(r||o){var a=[],u=[];s.default.forEach(e.rtp,(function(e){switch(s.default.toLower(e.codec)){case s.default.toLower(c.EnumVideoCodecs.H264):a.push(e.payload);break;case s.default.toLower(c.EnumVideoCodecs.VP9):u.push(e.payload)}})),s.default.forEach(e.fmtp,(function(e){var r=!0;if(s.default.includes(a,e.payload)){var o=i.default.parseParams(e.config);r=s.default.isEqualWith(t.h264CodecOptions,o,l)}else s.default.includes(u,e.payload)&&(o=i.default.parseParams(e.config),r=s.default.isEqualWith(t.vp9CodecOptions,o,l));r||n.push(e.payload)}))}s.default.forEach(e.fmtp,(function(e){var t=i.default.parseParams(e.config);s.default.has(t,"apt")&&s.default.includes(n,t.apt)&&n.push(e.payload)})),s.default.isEmpty(n)||d(e,n,!1)}(C,s.default.pick(t,["h264CodecOptions","vp9CodecOptions"])),"chrome"===m&&p(C,{bitrate:t.videoBitrate})),-1===v||s.default.isUndefined(y)||(n.media[v]=y),-1===g||s.default.isUndefined(C)||(n.media[g]=C),i.default.write(n)}},847:(e,t)=>{"use strict";var n,r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumMediaStreamTrackKind=t.EnumWebSocketConnectionCommand=t.EnumWebSocketConnectionDirection=t.EnumWebSocketConnectionStatus=void 0,(a=t.EnumWebSocketConnectionStatus||(t.EnumWebSocketConnectionStatus={}))[a.OK=200]="OK",a[a.NOT_READY=514]="NOT_READY",(i=t.EnumWebSocketConnectionDirection||(t.EnumWebSocketConnectionDirection={})).PUBLISH="publish",i.PLAY="play",(o=t.EnumWebSocketConnectionCommand||(t.EnumWebSocketConnectionCommand={})).SEND_OFFER="sendOffer",o.GET_OFFER="getOffer",o.SEND_RESPONSE="sendResponse",o.GET_AVAILABLE_STREAM="getAvailableStreams",(r=t.EnumMediaStreamTrackKind||(t.EnumMediaStreamTrackKind={})).AUDIO="audio",r.VIDEO="video",function(e){e[e["unified-plan"]=0]="unified-plan"}(n||(n={}))},571:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumCodecContentType=void 0,(n=t.EnumCodecContentType||(t.EnumCodecContentType={})).OPUS_WEBM='audio/webm;codecs="opus"',n.OPUS_MP4='audio/mp4;codecs="opus"',n.VORBIS_WEBM='audio/webm;codecs="vorbis"',n.VORBIS_OGG='audio/ogg;codecs="vorbis"',n.H264="video/mp4",n.VP8='video/webm;codecs="vp8"',n.VP9='video/webm;codecs="vp9"',n.WEBM="video/webm",n.HLS="application/vnd.apple.mpegURL",n.H264_AVC='video/mp4; codecs="avc1.42E01E"',n.H264_MP4='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',n.H265_HEC='video/mp4; codecs="hvc1.1.L0.0"',n.H265_HEV='video/mp4; codecs="hev1.1.L0.0"'},608:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumMediaCodecSupported=void 0,(n=t.EnumMediaCodecSupported||(t.EnumMediaCodecSupported={})).UNKNOWN="",n.PROBABLY="probably",n.MAYBE="maybe"},831:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcInputConnection=void 0;var c=s(n(486)),u=n(847),f=function(e){function t(t){var n=e.call(this,t)||this;return n._peerConnectionConfig=void 0,n._repeaterRetryCount=0,n.connectionOptions=t,n.onRtcDescription=n.onRtcDescription.bind(n),n.onWsOpen=n.onWsOpen.bind(n),n.onWsMessage=n.onWsMessage.bind(n),n.onError=n.onError.bind(n),n.onRemoteTrack=n.onRemoteTrack.bind(n),n}return o(t,e),t.prototype.onRtcDescription=function(e){var t=this;if(!this.peerConnection)return this.onError(new Error("RTC got description, but no RTC"));this.peerConnection.setLocalDescription(e).then((function(){return t.sendResponse(u.EnumWebSocketConnectionDirection.PLAY,u.EnumWebSocketConnectionCommand.SEND_RESPONSE,e)})).catch(this.onError)},t.prototype.onRemoteTrack=function(e){try{this._stream=e.streams[0],c.default.isFunction(this.connectionOptions.onTrack)&&this.connectionOptions.onTrack(e.track.kind),this.connectionOptions.videoElement&&(this.connectionOptions.videoElement.srcObject=e.streams[0])}catch(e){this.onError(new Error(JSON.stringify(e||"")))}},t.prototype.onWsOpen=function(){this.peerConnection=new RTCPeerConnection(this._peerConnectionConfig),this.peerConnection.ontrack=this.onRemoteTrack,this.sendResponse(u.EnumWebSocketConnectionDirection.PLAY,u.EnumWebSocketConnectionCommand.GET_OFFER)},t.prototype.onWsMessage=function(e){var t=this,n=JSON.parse(e.data);if(parseInt(n.status,10)!==u.EnumWebSocketConnectionStatus.OK)this._repeaterRetryCount++,this._repeaterRetryCount<10?setTimeout((function(){return t.sendResponse(u.EnumWebSocketConnectionDirection.PLAY,u.EnumWebSocketConnectionCommand.GET_OFFER)}),this.connectionOptions.debounceTime):(this.onError(new Error("Live stream repeater timeout: "+this.connectionOptions.streamInfo.streamName)),this.stop());else{var r=n.sdp,o=n.streamInfo;void 0!==o&&(this.connectionOptions.streamInfo.sessionId=o.sessionId),r&&this.peerConnection&&this.peerConnection.setRemoteDescription(new RTCSessionDescription(r)).then((function(){return i(t,void 0,void 0,(function(){var e=this;return a(this,(function(t){return void 0!==this.peerConnection?[2,this.peerConnection.createAnswer().then((function(t){return e.onRtcDescription(t)})).catch(this.onError)]:[2]}))}))})).catch(this.onError);var s=n.iceCandidates;if((null==s?void 0:s.length)>0&&this.peerConnection)for(var c=0,f=s;c<f.length;c++){var p=f[c];this.peerConnection.addIceCandidate(new RTCIceCandidate(p)).catch(this.onError)}}this.wsConnection&&0==="sendResponse".localeCompare(n.command)&&this.disconnectFromWebSocket()},t.prototype.getStream=function(){return this._stream},t.prototype.start=function(){e.prototype.start.call(this),this._repeaterRetryCount=0,this.wsConnection&&(this.wsConnection.onopen=this.onWsOpen,this.wsConnection.onmessage=this.onWsMessage)},t.prototype.restartConnectionWithTcp=function(){throw new Error("Not implemented")},t}(s(n(934)).default);t.WebRtcInputConnection=f},285:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcOutputConnection=void 0;var s=a(n(486)),c=n(465),u=n(847),f=function(e){function t(t){var n=e.call(this,t)||this;return n.isUsingTcpFallback=!1,n.onError=n.onError.bind(n),n.onRtcDescription=n.onRtcDescription.bind(n),n.onWsOpen=n.onWsOpen.bind(n),n.onWsMessage=n.onWsMessage.bind(n),n.onNegotiationNeeded=n.onNegotiationNeeded.bind(n),n.connectionOptions=t,n}return o(t,e),t.prototype.onRtcDescription=function(e){var t=this;if(!this.peerConnection)return this.onError(new Error("RTC got description, but no peer connection"));var n=this.mungeDescription(e);this.peerConnection.setLocalDescription(n).then((function(){t.sendResponse(u.EnumWebSocketConnectionDirection.PUBLISH,u.EnumWebSocketConnectionCommand.SEND_OFFER,n)})).catch(this.onError)},t.prototype.mungeDescription=function(e){return e.sdp?i(i({},e),{sdp:(0,c.mungeSdpPublish)(e.sdp,this.connectionOptions.mediaInfo)}):e},t.prototype.onWsOpen=function(){this.initializePeerConnection(),this.attachLocalTracks()},t.prototype.initializePeerConnection=function(){var e=this;this.peerConnection=new RTCPeerConnection(i(i({},this.peerConnectionConfig),{sdpSemantics:"unified-plan"})),this.peerConnection.onnegotiationneeded=this.onNegotiationNeeded,this.peerConnection.onicecandidate=function(t){e.handleIceCandidate(t)},this.peerConnection.oniceconnectionstatechange=function(){var t,n,r;"connected"!==(null===(t=e.peerConnection)||void 0===t?void 0:t.iceConnectionState)&&"completed"!==(null===(n=e.peerConnection)||void 0===n?void 0:n.iceConnectionState)||null===(r=e.peerConnection)||void 0===r||r.getSenders().forEach((function(t){t.track&&e.assignSender(t.track.kind,t)}))},this.setupIceConnectionMonitoring(this.peerConnection)},t.prototype.handleIceCandidate=function(e){!e.candidate||!this.isUsingTcpFallback||e.candidate.candidate.toLowerCase().includes("tcp")},t.prototype.onNegotiationNeeded=function(){this.peerConnection&&this.peerConnection.createOffer().then(this.onRtcDescription).catch(this.onError)},t.prototype.attachLocalTracks=function(){if(this.peerConnection)for(var e=0,t=this.connectionOptions.localStream.getTracks();e<t.length;e++){var n=t[e];this.peerConnection.addTrack(n,this.connectionOptions.localStream)}},t.prototype.assignSender=function(e,t){e===u.EnumMediaStreamTrackKind.AUDIO?this.applyBitrateParams(t,this.connectionOptions.mediaInfo.audioBitrate):e===u.EnumMediaStreamTrackKind.VIDEO&&this.applyBitrateParams(t,this.connectionOptions.mediaInfo.videoBitrate)},t.prototype.applyBitrateParams=function(e,t){var n=e.getParameters();if(n.encodings&&0!==n.encodings.length){var r=n.encodings[0],o=1e3*(t.max||0),i=1e3*(t.min||0);o>0&&(r.maxBitrate=o),i>0&&(r.minBitrate=i),n.encodings[0]=r,e.setParameters(n).catch(this.onError)}},t.prototype.onWsMessage=function(e){var t,n;null===(n=(t=this.connectionOptions).onWsMessage)||void 0===n||n.call(t,e);var r=this.parseWebSocketMessage(e.data);this.validateMessageStatus(r)&&(this.handleSdpData(r.sdp),this.handleIceCandidates(s.default.map(r.iceCandidates,this.fixTcpCandidate)))},t.prototype.fixTcpCandidate=function(e){return e.candidate.includes(" TCP ")&&!e.candidate.includes("tcptype")&&(e.candidate=e.candidate.replace(" typ host"," typ host tcptype passive")),e},t.prototype.parseWebSocketMessage=function(e){try{return JSON.parse(e)}catch(e){return this.onError(new Error("Failed to parse WebSocket message")),{}}},t.prototype.validateMessageStatus=function(e){return parseInt(e.status,10)===u.EnumWebSocketConnectionStatus.OK||(this.onError(new Error(e.statusDescription)),!1)},t.prototype.handleSdpData=function(e){e&&this.peerConnection&&(this.isUsingTcpFallback&&e.sdp&&(e=i(i({},e),{sdp:e.sdp.split("\n").filter((function(e){return!e.startsWith("a=candidate:")||e.toLowerCase().includes(" tcp ")})).join("\n")})),this.peerConnection.setRemoteDescription(new RTCSessionDescription(e)).catch(this.onError))},t.prototype.handleIceCandidates=function(e){if(e&&this.peerConnection)for(var t=0,n=e;t<n.length;t++){var r=n[t];this.isUsingTcpFallback&&this.isUdpCandidate(r)||this.peerConnection.addIceCandidate(new RTCIceCandidate(r)).catch(this.onError)}},t.prototype.isUdpCandidate=function(e){return!!e.candidate&&e.candidate.toLowerCase().includes(" udp ")},t.prototype.start=function(){e.prototype.start.call(this),this.wsConnection&&(this.wsConnection.onopen=this.onWsOpen,this.wsConnection.onmessage=this.onWsMessage)},t.prototype.stop=function(){e.prototype.stop.call(this),this.isUsingTcpFallback=!1},t.prototype.restartConnectionWithTcp=function(){this.peerConnection&&(this.peerConnection.close(),this.peerConnection=void 0),this.isUsingTcpFallback=!0,this.initializePeerConnection(),this.attachLocalTracks()},t}(a(n(934)).default);t.WebRtcOutputConnection=f},934:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(486)),c=function(){function e(e){this.connectionOptions=e,this.tcpFallbackAttemptsUsed=0,this.lastBytesSent=0,this.stallCheckCount=0,this.connectToWebSocket=this.connectToWebSocket.bind(this),this.onError=this.onError.bind(this),this.onWsError=this.onWsError.bind(this),this.checkForStall=this.checkForStall.bind(this)}return e.prototype.sendResponse=function(e,t,n){if(this.wsConnection){var o=r({direction:e,command:t,streamInfo:this.connectionOptions.streamInfo,userData:this.connectionOptions.userData},n&&{sdp:n});this.wsConnection.send(JSON.stringify(o))}},e.prototype.connectToWebSocket=function(){this.wsConnection=new WebSocket(this.connectionOptions.wsUrl),this.wsConnection.binaryType="arraybuffer",this.wsConnection.onerror=this.onWsError},e.prototype.onWsError=function(e){var t=e.target;this.isWebSocketClosing(t)||this.onError(new Error("WebSocket connection failed"))},e.prototype.isWebSocketClosing=function(e){return!s.default.isUndefined(e)&&e instanceof WebSocket&&s.default.includes([WebSocket.CLOSING,WebSocket.CLOSED],e.readyState)},e.prototype.disconnectFromWebSocket=function(e){void 0===e&&(e=1e3),s.default.isUndefined(this.wsConnection)||(this.wsConnection.onerror=null,this.wsConnection.onopen=null,this.wsConnection.onmessage=null,this.wsConnection.onclose=null,this.wsConnection.close(e)),this.wsConnection=void 0},e.prototype.onError=function(e){this.stop(),this.connectionOptions.onError(e)},e.prototype.setupIceConnectionMonitoring=function(e){var t=this;e.oniceconnectionstatechange=function(){var n,r;t.handleIceConnectionStateChange(e.iceConnectionState),null===(r=(n=t.connectionOptions).onIceConnectionStateChange)||void 0===r||r.call(n,e.iceConnectionState)},e.onconnectionstatechange=function(){var n,r;t.handleConnectionStateChange(e.connectionState),null===(r=(n=t.connectionOptions).onConnectionStateChange)||void 0===r||r.call(n,e.connectionState)}},e.prototype.handleIceConnectionStateChange=function(e){"connected"!==e&&"completed"!==e&&"checking"!==e||this.startStallDetection(),"failed"===e&&this.handleIceConnectionFailure()},e.prototype.handleConnectionStateChange=function(e){"failed"===e&&this.handleIceConnectionFailure()},e.prototype.handleIceConnectionFailure=function(){var e;if(this.connectionOptions.enableTcpFallback){var t=null!==(e=this.connectionOptions.tcpFallbackRetries)&&void 0!==e?e:3;this.tcpFallbackAttemptsUsed>=t||(this.tcpFallbackAttemptsUsed++,this.stopStallDetection(),this.restartConnectionWithTcp&&this.restartConnectionWithTcp())}},e.prototype.startStallDetection=function(){var e;this.connectionOptions.enableTcpFallback&&(this.stopStallDetection(),this.lastBytesSent=0,this.stallCheckCount=0,this.stallCheckInterval=setInterval(this.checkForStall,null!==(e=this.connectionOptions.stallCheckIntervalMs)&&void 0!==e?e:3e3))},e.prototype.stopStallDetection=function(){void 0!==this.stallCheckInterval&&(clearInterval(this.stallCheckInterval),this.stallCheckInterval=void 0)},e.prototype.checkForStall=function(){var e,t,n;return o(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return this.peerConnection?[4,this.peerConnection.getStats()]:(this.stopStallDetection(),[2]);case 1:return r=i.sent(),(o=this.getTotalBytesSent(r))>this.lastBytesSent?(this.stallCheckCount=0,this.lastBytesSent=o,[2]):(this.stallCheckCount++,this.stallCheckCount>=(null!==(e=this.connectionOptions.stallChecksLimit)&&void 0!==e?e:3)&&(this.stopStallDetection(),null===(n=(t=this.connectionOptions).onStallDetected)||void 0===n||n.call(t),this.handleIceConnectionFailure()),[2])}}))}))},e.prototype.getTotalBytesSent=function(e){var t=0;return e.forEach((function(e){"outbound-rtp"!==e.type&&"candidate-pair"!==e.type||"number"!=typeof e.bytesSent||(t+=e.bytesSent)})),t},e.prototype.start=function(){this.peerConnection||(this.disconnectFromWebSocket(),this.connectToWebSocket())},e.prototype.stop=function(){this.stopStallDetection(),this.tcpFallbackAttemptsUsed=0,this.peerConnection&&(this.peerConnection.close(),this.peerConnection=void 0),this.disconnectFromWebSocket(),this.connectionOptions.onStop()},e.prototype.stats=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return this.peerConnection?[2,this.peerConnection.getStats()]:[2,void 0]}))}))},e}();t.default=c},121:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportedAudioCodecLegacy=t.browserSupportedAudioCodec=t.EnumAudioCodecs=void 0;var o,i=r(n(486)),a=r(n(723)),s=n(571),c=n(593);!function(e){e.OPUS="opus",e.VORBIS="vorbis",e.PCMU="pcmu",e.PCMA="pcma",e.ISAC="ISAC",e.G722="g722",e.CN="CN"}(o=t.EnumAudioCodecs||(t.EnumAudioCodecs={})),t.browserSupportedAudioCodec=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n]){case o.OPUS:i.default.isEmpty((0,c.supportsCodec)(s.EnumCodecContentType.OPUS_WEBM))&&i.default.isEmpty((0,c.supportsCodec)(s.EnumCodecContentType.OPUS_MP4))||t.push(o.OPUS);break;case o.VORBIS:i.default.isEmpty((0,c.supportsCodec)(s.EnumCodecContentType.VORBIS_WEBM))&&i.default.isEmpty((0,c.supportsCodec)(s.EnumCodecContentType.VORBIS_OGG))||t.push(o.VORBIS);case o.PCMU:case o.PCMA:}return t},t.browserSupportedAudioCodecLegacy=function(e){for(var t="safari"===a.default.browserDetails.browser,n=0;n<e.length;n++)switch(e[n]){case o.OPUS:if(t||"probably"===(0,c.supportsCodec)(s.EnumCodecContentType.OPUS_MP4))return[o.OPUS];break;case o.VORBIS:if("probably"===(0,c.supportsCodec)(s.EnumCodecContentType.VORBIS_OGG))return[o.VORBIS];case o.PCMU:case o.PCMA:}return[]}},317:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportedVideoCodecLegacy=t.browserSupportedVideoCodec=t.EnumVideoCodecs=void 0;var o,i=r(n(486)),a=n(571),s=n(593);!function(e){e.H264="h264",e.VP9="VP9",e.VP8="VP8",e.RED="red",e.ULPFEC="ulpfec",e.RTX="rtx"}(o=t.EnumVideoCodecs||(t.EnumVideoCodecs={})),t.browserSupportedVideoCodec=function(e){var t=[];return i.default.forEach(e,(function(e){switch(e){case o.H264:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.H264))||t.push(o.H264);break;case o.VP9:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VP9))||t.push(o.VP9);break;case o.VP8:i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VP8))||t.push(o.VP8)}})),t},t.browserSupportedVideoCodecLegacy=function(e){for(var t=0;t<e.length;t++)switch(e[t]){case o.H264:if(!i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.H264)))return[o.H264];break;case o.VP9:if(!i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VP9)))return[o.VP9];break;case o.VP8:if(!i.default.isEmpty((0,s.supportsCodec)(a.EnumCodecContentType.VP8)))return[o.VP8]}return[]}},593:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.supportsCodec=t.EnumSupportedMediaType=void 0;var o,i=r(n(486));!function(e){e.VIDEO="video",e.AUDIO="audio"}(o=t.EnumSupportedMediaType||(t.EnumSupportedMediaType={})),t.supportsCodec=function(e){var t=e.split("/");return i.default.includes(Object.values(o),t[0])?window.document.createElement(t[0]).canPlayType(e):""}},723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>se});var r={};n.r(r),n.d(r,{fixNegotiationNeeded:()=>k,shimAddTrackRemoveTrack:()=>P,shimAddTrackRemoveTrackWithNative:()=>R,shimGetSendersWithDtmf:()=>w,shimGetUserMedia:()=>_,shimMediaStream:()=>b,shimOnTrack:()=>S,shimPeerConnection:()=>E,shimSenderReceiverGetStats:()=>T});var o={};n.r(o),n.d(o,{shimAddTransceiver:()=>W,shimCreateAnswer:()=>N,shimCreateOffer:()=>U,shimGetDisplayMedia:()=>O,shimGetParameters:()=>F,shimGetUserMedia:()=>x,shimOnTrack:()=>I,shimPeerConnection:()=>j,shimRTCDataChannel:()=>L,shimReceiverGetStats:()=>A,shimRemoveStream:()=>M,shimSenderGetStats:()=>D});var i={};n.r(i),n.d(i,{shimAudioContext:()=>q,shimCallbacksAPI:()=>B,shimConstraints:()=>$,shimCreateOfferLegacy:()=>H,shimGetUserMedia:()=>G,shimLocalStreamsAPI:()=>z,shimRTCIceServerUrls:()=>J,shimRemoteStreamsAPI:()=>V,shimTrackEventTransceiver:()=>K});var a={};n.r(a),n.d(a,{removeExtmapAllowMixed:()=>re,shimAddIceCandidateNullOrEmpty:()=>oe,shimConnectionState:()=>ne,shimMaxMessageSize:()=>ee,shimParameterlessSetLocalDescription:()=>ie,shimRTCIceCandidate:()=>X,shimRTCIceCandidateRelayProtocol:()=>Q,shimSendThrowTypeError:()=>te});let s=!0,c=!0;function u(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function f(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return o.apply(this,arguments);const i=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,i),o.apply(this,[e,i])};const i=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(n))return i.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,i.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function p(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(s=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function l(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(c=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function d(){if("object"==typeof window){if(s)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function h(e,t){c&&console.warn(e+" is deprecated, please use "+t+" instead.")}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return m(e)?Object.keys(e).reduce((function(t,n){const r=m(e[n]),o=r?v(e[n]):e[n],i=r&&!Object.keys(o).length;return void 0===o||i?t:Object.assign(t,{[n]:o})}),{}):e}function g(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((r=>{r.endsWith("Id")?g(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((t=>{g(e,e.get(t),n)}))})))}function y(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;const i=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&i.push(e)})),i.forEach((t=>{e.forEach((n=>{n.type===r&&n.trackId===t.id&&g(e,n,o)}))})),o}const C=d;function _(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[o("min",n)]=r.ideal,t.optional.push(e),e={},e[o("max",n)]=r.ideal,t.optional.push(e)):(e[o("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach((e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},o=function(e,o){if(t.version>=61)return o(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let i=e.video.facingMode;i=i&&("object"==typeof i?i:{ideal:i});const a=t.version<66;if(i&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||a)){let t;if(delete e.video.facingMode,"environment"===i.exact||"environment"===i.ideal?t=["back","rear"]:"user"!==i.exact&&"user"!==i.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then((n=>{let a=(n=n.filter((e=>"videoinput"===e.kind))).find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!a&&n.length&&t.includes("back")&&(a=n[n.length-1]),a&&(e.video.deviceId=i.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=r(e.video),C("chrome: "+JSON.stringify(e)),o(e)}))}e.video=r(e.video)}return C("chrome: "+JSON.stringify(e)),o(e)},i=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){o(e,(e=>{n.webkitGetUserMedia(e,t,(e=>{r&&r(i(e))}))}))}.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return o(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(i(e))))))}}}function b(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function S(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.track.id)):{track:n.track};const o=new Event("track");o.track=n.track,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)})),t.stream.getTracks().forEach((n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.id)):{track:n};const o=new Event("track");o.track=n,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else f(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function w(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function T(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>y(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),f(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>y(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach((n=>{n.track===e&&(t?r=!0:t=n)})),this.getReceivers().forEach((t=>(t.track===e&&(n?r=!0:n=t),t.track===e))),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function R(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),o.apply(this,arguments)}}function P(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return R(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const o=e.RTCPeerConnection.prototype.removeStream;function i(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(o.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function a(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),o.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const o=this.getSenders().find((e=>e.track===t));if(o)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const i=this._streams[n.id];if(i)i.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=i(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then((e=>i(this,e)))}};e.RTCPeerConnection.prototype[t]=r[t]}));const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=a(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=c.get.apply(this);return""===e.type?e:i(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((n=>{this._streams[n].getTracks().find((t=>e.track===t))&&(t=this._streams[n])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function E(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function k(e,t){f(e,"negotiationneeded",(e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}function x(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){h("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function O(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function I(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function j(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,o,i]=arguments;return r.apply(this,[e||null]).then((e=>{if(t.version<53&&!o)try{e.forEach((e=>{e.type=n[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach(((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(o,i)}}function D(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function A(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),f(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function M(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){h("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function L(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function W(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const n=e.length>0;n&&e.forEach((e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function F(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function U(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function N(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function z(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((n=>t.call(this,n,e))),e.getVideoTracks().forEach((n=>t.call(this,n,e)))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach((e=>{n.includes(e.track)&&this.removeTrack(e)}))})}}function V(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}))}),t.apply(e,arguments)}}}function B(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],o=n.apply(this,[r]);return t?(o.then(e,t),Promise.resolve()):o},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],o=r.apply(this,[n]);return t?(o.then(e,t),Promise.resolve()):o};let s=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){const r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function G(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n($(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function $(e){return e&&void 0!==e.video?Object.assign({},e,{video:v(e.video)}):e}function J(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];void 0===r.urls&&r.url?(h("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function K(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function H(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function q(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var Y=n(539),Z=n.n(Y);function X(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){const n=new t(e),r=Z().parseCandidate(e.candidate);for(const e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,f(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function Q(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||f(e,"icecandidate",(e=>{if(e.candidate){const t=Z().parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e}))}function ee(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Z().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Z().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},o=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},i=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const o=Z().matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?r=parseInt(o[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=o(e),n=i(arguments[0],e);let a;a=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const s={};Object.defineProperty(s,"maxMessageSize",{get:()=>a}),this._sctp=s}return a.apply(this,arguments)}}function te(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],o=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&o>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},f(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function ne(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}function re(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function oe(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function ie(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}if(e.sdp||"offer"!==e.type&&"answer"!==e.type)return n.apply(this,[e]);const t="offer"===e.type?this.createOffer:this.createAnswer;return t.apply(this).then((e=>n.apply(this,[e])))})}const ae=function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=d,s=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const e=n.userAgentData.brands.find((e=>"Chromium"===e.brand));if(e)return{browser:"chrome",version:parseInt(e.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=u(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=u(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=u(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),c={browserDetails:s,commonShim:a,extractVersion:u,disableLog:p,disableWarnings:l,sdp:Y};switch(s.browser){case"chrome":if(!r||!E||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),c;if(null===s.version)return n("Chrome shim can not determine version, not shimming."),c;n("adapter.js shimming chrome."),c.browserShim=r,oe(e,s),ie(e),_(e,s),b(e),E(e,s),S(e),P(e,s),w(e),T(e),k(e,s),X(e),Q(e),ne(e),ee(e,s),te(e),re(e,s);break;case"firefox":if(!o||!j||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),c;n("adapter.js shimming firefox."),c.browserShim=o,oe(e,s),ie(e),x(e,s),j(e,s),I(e),M(e),D(e),A(e),L(e),W(e),F(e),U(e),N(e),X(e),ne(e),ee(e,s),te(e);break;case"safari":if(!i||!t.shimSafari)return n("Safari shim is not included in this adapter release."),c;n("adapter.js shimming safari."),c.browserShim=i,oe(e,s),ie(e),J(e),H(e),B(e),z(e),V(e),K(e),G(e),q(e),X(e),Q(e),ee(e,s),te(e),re(e,s);break;default:n("Unsupported browser!")}return c}({window:"undefined"==typeof window?void 0:window}),se=ae}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.EnumCodecContentType=e.EnumMediaCodecSupported=e.EnumVideoCodecs=e.browserSupportedVideoCodecLegacy=e.browserSupportedVideoCodec=e.EnumAudioCodecs=e.browserSupportedAudioCodecLegacy=e.browserSupportedAudioCodec=e.WebRtcOutputConnection=e.WebRtcInputConnection=void 0;var t=n(831);Object.defineProperty(e,"WebRtcInputConnection",{enumerable:!0,get:function(){return t.WebRtcInputConnection}});var o=n(285);Object.defineProperty(e,"WebRtcOutputConnection",{enumerable:!0,get:function(){return o.WebRtcOutputConnection}});var i=n(121);Object.defineProperty(e,"browserSupportedAudioCodec",{enumerable:!0,get:function(){return i.browserSupportedAudioCodec}}),Object.defineProperty(e,"browserSupportedAudioCodecLegacy",{enumerable:!0,get:function(){return i.browserSupportedAudioCodecLegacy}}),Object.defineProperty(e,"EnumAudioCodecs",{enumerable:!0,get:function(){return i.EnumAudioCodecs}});var a=n(317);Object.defineProperty(e,"browserSupportedVideoCodec",{enumerable:!0,get:function(){return a.browserSupportedVideoCodec}}),Object.defineProperty(e,"browserSupportedVideoCodecLegacy",{enumerable:!0,get:function(){return a.browserSupportedVideoCodecLegacy}}),Object.defineProperty(e,"EnumVideoCodecs",{enumerable:!0,get:function(){return a.EnumVideoCodecs}});var s=n(608);Object.defineProperty(e,"EnumMediaCodecSupported",{enumerable:!0,get:function(){return s.EnumMediaCodecSupported}});var c=n(571);Object.defineProperty(e,"EnumCodecContentType",{enumerable:!0,get:function(){return c.EnumCodecContentType}})})(),r})()}));
3
3
  //# sourceMappingURL=vxwebrtc.umd.js.map