@campoint/vxwebrtc 0.0.2

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.
Files changed (40) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +22 -0
  3. package/.gitlab-ci.yml +42 -0
  4. package/README.md +1 -0
  5. package/dist/MungeSdp.d.ts +2 -0
  6. package/dist/Types/CodecsOptions.d.ts +8 -0
  7. package/dist/Types/CommonConnectionTypes.d.ts +48 -0
  8. package/dist/Types/EnumCodecContentType.d.ts +13 -0
  9. package/dist/Types/WebRTCStreamConfig.d.ts +26 -0
  10. package/dist/WebRtcInputConnection.d.ts +19 -0
  11. package/dist/WebRtcOutputConnection.d.ts +20 -0
  12. package/dist/WebRtcPeerConnection.d.ts +23 -0
  13. package/dist/browserSupportedAudioCodec.d.ts +13 -0
  14. package/dist/browserSupportedVideoCodec.d.ts +7 -0
  15. package/dist/stats.json +10326 -0
  16. package/dist/utils.d.ts +6 -0
  17. package/dist/version.d.ts +1 -0
  18. package/dist/vxwebrtc.d.ts +6 -0
  19. package/dist/vxwebrtc.js +3 -0
  20. package/dist/vxwebrtc.js.LICENSE.txt +8 -0
  21. package/dist/vxwebrtc.js.map +1 -0
  22. package/package.json +53 -0
  23. package/src/MungeSdp.ts +323 -0
  24. package/src/Types/CodecsOptions.ts +9 -0
  25. package/src/Types/CommonConnectionTypes.ts +57 -0
  26. package/src/Types/EnumCodecContentType.ts +13 -0
  27. package/src/Types/WebRTCStreamConfig.ts +59 -0
  28. package/src/WebRtcInputConnection.ts +152 -0
  29. package/src/WebRtcOutputConnection.ts +122 -0
  30. package/src/WebRtcPeerConnection.ts +91 -0
  31. package/src/browserSupportedAudioCodec.ts +49 -0
  32. package/src/browserSupportedVideoCodec.ts +39 -0
  33. package/src/utils.ts +18 -0
  34. package/src/version.ts +1 -0
  35. package/src/vxwebrtc.ts +8 -0
  36. package/tsconfig.json +15 -0
  37. package/tslint.json +18 -0
  38. package/webpack.common.js +43 -0
  39. package/webpack.dev.js +7 -0
  40. package/webpack.prod.js +7 -0
@@ -0,0 +1,6 @@
1
+ import { EnumCodecContentType } from './Types/EnumCodecContentType';
2
+ export declare enum EnumSupportedMediaType {
3
+ VIDEO = "video",
4
+ AUDIO = "audio"
5
+ }
6
+ export declare const supportsCodec: (codecType: EnumCodecContentType) => CanPlayTypeResult;
@@ -0,0 +1 @@
1
+ export declare const VERSION = "__VERSION__";
@@ -0,0 +1,6 @@
1
+ export { WebRtcInputConnection, IWebRtcInputConnection } from './WebRtcInputConnection';
2
+ export { WebRtcOutputConnection, IWebRtcOutputConnection } from './WebRtcOutputConnection';
3
+ export { TWebRtcH264CodecOptions, TWebRtcVP9CodecOptions } from './Types/CodecsOptions';
4
+ export { TConstrainULongRange } from './Types/WebRTCStreamConfig';
5
+ export { browserSupportedAudioCodec } from './browserSupportedAudioCodec';
6
+ export { browserSupportedVideoCodec } from './browserSupportedVideoCodec';
@@ -0,0 +1,3 @@
1
+ /*! For license information please see vxwebrtc.js.LICENSE.txt */
2
+ var webRTC;(()=>{var e={486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",c="__lodash_placeholder__",s=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",s],["partialRight",64],["rearg",256]],v="[object Arguments]",m="[object Array]",y="[object Boolean]",g="[object Date]",_="[object Error]",C="[object Function]",b="[object GeneratorFunction]",S="[object Map]",T="[object Number]",R="[object Object]",w="[object Promise]",P="[object RegExp]",E="[object Set]",k="[object String]",O="[object Symbol]",x="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",I="[object Float32Array]",M="[object Float64Array]",A="[object Int8Array]",L="[object Int16Array]",W="[object Int32Array]",N="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",V=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,J=RegExp(K.source),H=RegExp($.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 (.+)\] \*/,ce=/,? & /,se=/[^\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,ve=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ge=/[\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",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\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",we="["+Re+"]",Pe="["+be+"]",Ee="\\d+",ke="["+Se+"]",Oe="[^\\ud800-\\udfff"+Re+Ee+"\\u2700-\\u27bf"+Se+Te+"]",xe="\\ud83c[\\udffb-\\udfff]",De="[^\\ud800-\\udfff]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="["+Te+"]",Ae="(?:"+ke+"|"+Oe+")",Le="(?:"+Me+"|"+Oe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ne="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Pe+"|"+xe+")?",ze="[\\ufe0e\\ufe0f]?",Fe=ze+Ue+"(?:\\u200d(?:"+[De,je,Ie].join("|")+")"+ze+Ue+")*",Ve="(?:"+["[\\u2700-\\u27bf]",je,Ie].join("|")+")"+Fe,Be="(?:"+[De+Pe+"?",Pe,je,Ie,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['’]","g"),Ke=RegExp(Pe,"g"),$e=RegExp(xe+"(?="+xe+")|"+Be+Fe,"g"),Je=RegExp([Me+"?"+ke+"+"+We+"(?="+[we,Me,"$"].join("|")+")",Le+"+"+Ne+"(?="+[we,Me+Ae,"$"].join("|")+")",Me+"?"+Ae+"+"+We,Me+"+"+Ne,"\\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[I]=Xe[M]=Xe[A]=Xe[L]=Xe[W]=Xe[N]=Xe[U]=Xe[z]=Xe[F]=!0,Xe[v]=Xe[m]=Xe[D]=Xe[y]=Xe[j]=Xe[g]=Xe[_]=Xe[C]=Xe[S]=Xe[T]=Xe[R]=Xe[P]=Xe[E]=Xe[k]=Xe[x]=!1;var Qe={};Qe[v]=Qe[m]=Qe[D]=Qe[j]=Qe[y]=Qe[g]=Qe[I]=Qe[M]=Qe[A]=Qe[L]=Qe[W]=Qe[S]=Qe[T]=Qe[R]=Qe[P]=Qe[E]=Qe[k]=Qe[O]=Qe[N]=Qe[U]=Qe[z]=Qe[F]=!0,Qe[_]=Qe[C]=Qe[x]=!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,ct=at&&e&&!e.nodeType&&e,st=ct&&ct.exports===at,ut=st&&rt.process,ft=function(){try{return ct&&ct.require&&ct.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,vt=ft&&ft.isSet,mt=ft&&ft.isTypedArray;function yt(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 gt(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 Tt(e,t){return!(null==e||!e.length)&&It(e,t,0)>-1}function Rt(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 wt(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 Ot(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 xt=Wt("length");function Dt(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 It(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,At,n)}function Mt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function At(e){return e!=e}function Lt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:l}function Wt(e){return function(t){return null==t?o:t[e]}}function Nt(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 zt(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 Ft(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,cn(e)+1).replace(re,""):e}function Bt(e){return function(t){return e(t)}}function Gt(e,t){return wt(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function $t(e,t){for(var n=-1,r=e.length;++n<r&&It(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&It(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=Nt({À:"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=Nt({"&":"&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!==c||(e[n]=c,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=$e.lastIndex=0;$e.test(e);)++t;return t}(e):xt(e)}function an(e){return Xt(e)?function(e){return e.match($e)||[]}(e):function(e){return e.split("")}(e)}function cn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var sn=Nt({"&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,Te=t.Math,Re=t.Object,we=t.RegExp,Pe=t.String,Ee=t.TypeError,ke=r.prototype,Oe=Se.prototype,xe=Re.prototype,De=t["__core-js_shared__"],je=Oe.toString,Ie=xe.hasOwnProperty,Me=0,Ae=(n=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=xe.toString,We=je.call(Re),Ne=it._,Ue=we("^"+je.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=st?t.Buffer:o,Fe=t.Symbol,Ve=t.Uint8Array,Be=ze?ze.allocUnsafe:o,$e=en(Re.getPrototypeOf,Re),He=Re.create,et=xe.propertyIsEnumerable,rt=ke.splice,ot=Fe?Fe.isConcatSpreadable:o,at=Fe?Fe.iterator:o,ct=Fe?Fe.toStringTag:o,ut=function(){try{var e=fi(Re,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,xt=oe&&oe.now!==it.Date.now&&oe.now,Nt=t.setTimeout!==it.setTimeout&&t.setTimeout,fn=Te.ceil,pn=Te.floor,ln=Re.getOwnPropertySymbols,dn=ze?ze.isBuffer:o,hn=t.isFinite,vn=ke.join,mn=en(Re.keys,Re),yn=Te.max,gn=Te.min,_n=oe.now,Cn=t.parseInt,bn=Te.random,Sn=ke.reverse,Tn=fi(t,"DataView"),Rn=fi(t,"Map"),wn=fi(t,"Promise"),Pn=fi(t,"Set"),En=fi(t,"WeakMap"),kn=fi(Re,"create"),On=En&&new En,xn={},Dn=Ui(Tn),jn=Ui(Rn),In=Ui(wn),Mn=Ui(Pn),An=Ui(En),Ln=Fe?Fe.prototype:o,Wn=Ln?Ln.valueOf:o,Nn=Ln?Ln.toString:o;function Un(e){if(nc(e)&&!Ka(e)&&!(e instanceof Bn)){if(e instanceof Vn)return e;if(Ie.call(e,"__wrapped__"))return zi(e)}return new Vn(e)}var zn=function(){function e(){}return function(t){if(!tc(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Fn(){}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 Kn(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.__data__=new $n;++t<n;)this.add(e[t])}function Hn(e){var t=this.__data__=new Kn(e);this.size=t.size}function qn(e,t){var n=Ka(e),r=!n&&Ga(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&fc(e),a=n||r||o||i,c=a?Ft(e.length,Pe):[],s=c.length;for(var u in e)!t&&!Ie.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yi(u,s))||c.push(u);return c}function Yn(e){var t=e.length;return t?e[$r(0,t-1)]:o}function Zn(e,t){return Mi(ko(e),ar(t,0,e.length))}function Xn(e){return Mi(ko(e))}function Qn(e,t,n){(n!==o&&!Fa(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Ie.call(e,t)&&Fa(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Fa(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&&Oo(t,jc(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),c=null==e;++n<i;)a[n]=c?o:Ec(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 cr(e,t,n,r,i,a){var c,s=1&t,u=2&t,f=4&t;if(n&&(c=i?n(e,r,i,a):n(e)),c!==o)return c;if(!tc(e))return e;var p=Ka(e);if(p){if(c=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return ko(e,c)}else{var l=di(e),d=l==C||l==b;if(qa(e))return So(e,s);if(l==R||l==v||d&&!i){if(c=u||d?{}:vi(e),!s)return u?function(e,t){return Oo(e,li(e),t)}(e,function(e,t){return e&&Oo(t,Ic(t),e)}(c,e)):function(e,t){return Oo(e,pi(e),t)}(e,rr(c,e))}else{if(!Qe[l])return i?e:{};c=function(e,t,n){var r,o=e.constructor;switch(t){case D:return To(e);case y:case g:return new o(+e);case j:return function(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case M:case A:case L:case W:case N:case U:case z:case F:return Ro(e,n);case S:return new o;case T: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 O:return r=e,Wn?Re(Wn.call(r)):{}}}(e,l,s)}}a||(a=new Hn);var h=a.get(e);if(h)return h;a.set(e,c),cc(e)?e.forEach((function(r){c.add(cr(r,t,n,r,e,a))})):rc(e)&&e.forEach((function(r,o){c.set(o,cr(r,t,n,o,e,a))}));var m=p?o:(f?u?ri:ni:u?Ic:jc)(e);return _t(m||e,(function(r,o){m&&(r=e[o=r]),er(c,o,cr(r,t,n,o,e,a))})),c}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Re(e);r--;){var i=n[r],a=t[i],c=e[i];if(c===o&&!(i in e)||!a(c))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ee(i);return xi((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=Tt,a=!0,c=e.length,s=[],u=t.length;if(!c)return s;n&&(t=wt(t,Bt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=Kt,a=!1,t=new Jn(t));e:for(;++o<c;){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;s.push(f)}else i(t,p,r)||s.push(f)}return s}Un.templateSettings={escape:q,evaluate:Y,interpolate:Z,variable:"",imports:{_:Un}},Un.prototype=Fn.prototype,Un.prototype.constructor=Un,Vn.prototype=zn(Fn.prototype),Vn.prototype.constructor=Vn,Bn.prototype=zn(Fn.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 Ie.call(t,e)?t[e]:o},Gn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==o:Ie.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},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.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))},Kn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},Kn.prototype.has=function(e){return tr(this.__data__,e)>-1},Kn.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},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Rn||Kn),string:new Gn}},$n.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return si(this,e).get(e)},$n.prototype.has=function(e){return si(this,e).has(e)},$n.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Jn.prototype.add=Jn.prototype.push=function(e){return this.__data__.set(e,a),this},Jn.prototype.has=function(e){return this.__data__.has(e)},Hn.prototype.clear=function(){this.__data__=new Kn,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 Kn){var r=n.__data__;if(!Rn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var pr=jo(_r),lr=jo(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],c=t(a);if(null!=c&&(s===o?c==c&&!uc(c):n(c,s)))var s=c,u=a}return u}function vr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?mr(c,t-1,n,r,o):Pt(o,c):r||(o[o.length]=c)}return o}var yr=Io(),gr=Io(!0);function _r(e,t){return e&&yr(e,t,jc)}function Cr(e,t){return e&&gr(e,t,jc)}function br(e,t){return St(t,(function(t){return Xa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Ni(t[n++])];return n&&n==r?e:o}function Tr(e,t,n){var r=t(e);return Ka(e)?r:Pt(r,n(e))}function Rr(e){return null==e?e===o?"[object Undefined]":"[object Null]":ct&&ct in Re(e)?function(e){var t=Ie.call(e,ct),n=e[ct];try{e[ct]=o;var r=!0}catch(e){}var i=Le.call(e);return r&&(t?e[ct]=n:delete e[ct]),i}(e):function(e){return Le.call(e)}(e)}function wr(e,t){return e>t}function Pr(e,t){return null!=e&&Ie.call(e,t)}function Er(e,t){return null!=e&&t in Re(e)}function kr(e,t,n){for(var i=n?Rt:Tt,a=e[0].length,c=e.length,s=c,u=r(c),f=1/0,p=[];s--;){var l=e[s];s&&t&&(l=wt(l,Bt(t))),f=gn(l.length,f),u[s]=!n&&(t||a>=120&&l.length>=120)?new Jn(s&&l):o}l=e[0];var d=-1,h=u[0];e:for(;++d<a&&p.length<f;){var v=l[d],m=t?t(v):v;if(v=n||0!==v?v:0,!(h?Kt(h,m):i(p,m,n))){for(s=c;--s;){var y=u[s];if(!(y?Kt(y,m):i(e[s],m,n)))continue e}h&&h.push(m),p.push(v)}}return p}function Or(e,t,n){var r=null==(e=Pi(e,t=go(t,e)))?e:e[Ni(Zi(t))];return null==r?o:yt(r,e,n)}function xr(e){return nc(e)&&Rr(e)==v}function Dr(e,t,n,r,i){return e===t||(null==e||null==t||!nc(e)&&!nc(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var c=Ka(e),s=Ka(t),u=c?m:di(e),f=s?m:di(t),p=(u=u==v?R:u)==R,l=(f=f==v?R:f)==R,d=u==f;if(d&&qa(e)){if(!qa(t))return!1;c=!0,p=!1}if(d&&!p)return a||(a=new Hn),c||fc(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 D:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case y:case g:case T:return Fa(+e,+t);case _:return e.name==t.name&&e.message==t.message;case P:case k:return e==t+"";case S:var c=Qt;case E:var s=1&r;if(c||(c=nn),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var f=ei(c(e),c(t),r,o,i,a);return a.delete(e),f;case O:if(Wn)return Wn.call(e)==Wn.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=p&&Ie.call(e,"__wrapped__"),C=l&&Ie.call(t,"__wrapped__");if(h||C){var b=h?e.value():e,w=C?t.value():t;return a||(a=new Hn),i(b,w,n,r,a)}}return!!d&&(a||(a=new Hn),function(e,t,n,r,i,a){var c=1&n,s=ni(e),u=s.length;if(u!=ni(t).length&&!c)return!1;for(var f=u;f--;){var p=s[f];if(!(c?p in t:Ie.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 v=c;++f<u;){var m=e[p=s[f]],y=t[p];if(r)var g=c?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(!(g===o?m===y||i(m,y,n,r,a):g)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){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,Dr,i))}function jr(e,t,n,r){var i=n.length,a=i,c=!r;if(null==e)return!a;for(e=Re(e);i--;){var s=n[i];if(c&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var u=(s=n[i])[0],f=e[u],p=s[1];if(c&&s[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?Dr(p,f,3,r,l):d))return!1}}return!0}function Ir(e){return!(!tc(e)||(t=e,Ae&&Ae in t))&&(Xa(e)?Ue:ve).test(Ui(e));var t}function Mr(e){return"function"==typeof e?e:null==e?os:"object"==typeof e?Ka(e)?Ur(e[0],e[1]):Nr(e):ds(e)}function Ar(e){if(!Si(e))return mn(e);var t=[];for(var n in Re(e))Ie.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=Ja(e)?r(e.length):[];return pr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Nr(e){var t=ui(e);return 1==t.length&&t[0][2]?Ri(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Ur(e,t){return _i(e)&&Ti(t)?Ri(Ni(e),t):function(n){var r=Ec(n,e);return r===o&&r===t?kc(n,e):Dr(t,r,3)}}function zr(e,t,n,r,i){e!==t&&yr(t,(function(a,c){if(i||(i=new Hn),tc(a))!function(e,t,n,r,i,a,c){var s=ki(e,n),u=ki(t,n),f=c.get(u);if(f)Qn(e,n,f);else{var p=a?a(s,u,n+"",e,t,c):o,l=p===o;if(l){var d=Ka(u),h=!d&&qa(u),v=!d&&!h&&fc(u);p=u,d||h||v?Ka(s)?p=s:Ha(s)?p=ko(s):h?(l=!1,p=So(u,!0)):v?(l=!1,p=Ro(u,!0)):p=[]:ic(u)||Ga(u)?(p=s,Ga(s)?p=gc(s):tc(s)&&!Xa(s)||(p=vi(u))):l=!1}l&&(c.set(u,p),i(p,u,r,a,c),c.delete(u)),Qn(e,n,p)}}(e,t,c,n,zr,r,i);else{var s=r?r(ki(e,c),a,c+"",e,t,i):o;s===o&&(s=a),Qn(e,c,s)}}),Ic)}function Fr(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?wt(t,(function(e){return Ka(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[os];var r=-1;t=wt(t,Bt(ci()));var o=Wr(e,(function(e,n,o){var i=wt(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,c=n.length;++r<a;){var s=wo(o[r],i[r]);if(s)return r>=c?s:s*("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],c=Sr(e,a);n(c,a)&&Zr(i,go(a,e),c)}return i}function Gr(e,t,n,r){var o=r?Mt:It,i=-1,a=t.length,c=e;for(e===t&&(t=ko(t)),n&&(c=wt(e,Bt(n)));++i<a;)for(var s=0,u=t[i],f=n?n(u):u;(s=o(c,f,s,r))>-1;)c!==e&&rt.call(c,s,1),rt.call(e,s,1);return e}function Kr(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;yi(o)?rt.call(e,o,1):uo(e,o)}}return e}function $r(e,t){return e+pn(bn()*(t-e+1))}function Jr(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 Di(wi(e,t,os),e+"")}function qr(e){return Yn(Fc(e))}function Yr(e,t){var n=Fc(e);return Mi(n,ar(t,0,n.length))}function Zr(e,t,n,r){if(!tc(e))return e;for(var i=-1,a=(t=go(t,e)).length,c=a-1,s=e;null!=s&&++i<a;){var u=Ni(t[i]),f=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=c){var p=s[u];(f=r?r(p,u,s):o)===o&&(f=tc(p)?p:yi(t[i+1])?[]:{})}er(s,u,f),s=s[u]}return e}var Xr=On?function(e,t){return On.set(e,t),e}:os,Qr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:ts(t),writable:!0})}:os;function eo(e){return Mi(Fc(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&&!uc(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,os,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var c=(t=n(t))!=t,s=null===t,u=uc(t),f=t===o;i<a;){var p=pn((i+a)/2),l=n(e[p]),d=l!==o,h=null===l,v=l==l,m=uc(l);if(c)var y=r||v;else y=f?v&&(r||d):s?v&&d&&(r||!h):u?v&&d&&!h&&(r||!m):!h&&!m&&(r?l<=t:l<t);y?i=p+1:a=p}return gn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],c=t?t(a):a;if(!n||!Fa(c,s)){var s=c;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:uc(e)?l:+e}function co(e){if("string"==typeof e)return e;if(Ka(e))return wt(e,co)+"";if(uc(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=Tt,i=e.length,a=!0,c=[],s=c;if(n)a=!1,o=Rt;else if(i>=200){var u=t?null:Ho(e);if(u)return nn(u);a=!1,o=Kt,s=new Jn}else s=t?[]:c;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=s.length;l--;)if(s[l]===p)continue e;t&&s.push(p),c.push(f)}else o(s,p,n)||(s!==c&&s.push(p),c.push(f))}return c}function uo(e,t){return null==(e=Pi(e,t=go(t,e)))||delete e[Ni(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?so(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var c=e[i],s=-1;++s<o;)s!=i&&(a[i]=fr(a[i]||c,e[s],t,n));return so(mr(a,1),t,n)}function vo(e,t,n){for(var r=-1,i=e.length,a=t.length,c={};++r<i;){var s=r<a?t[r]:o;n(c,e[r],s)}return c}function mo(e){return Ha(e)?e:[]}function yo(e){return"function"==typeof e?e:os}function go(e,t){return Ka(e)?e:_i(e,t)?[e]:Wi(_c(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 To(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ro(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=uc(e),c=t!==o,s=null===t,u=t==t,f=uc(t);if(!s&&!f&&!a&&e>t||a&&c&&u&&!s&&!f||r&&c&&u||!n&&u||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||s&&n&&i||!c&&i||!u)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,c=n.length,s=-1,u=t.length,f=yn(a-c,0),p=r(u+f),l=!o;++s<u;)p[s]=t[s];for(;++i<c;)(l||i<a)&&(p[n[i]]=e[i]);for(;f--;)p[s++]=e[i++];return p}function Eo(e,t,n,o){for(var i=-1,a=e.length,c=-1,s=n.length,u=-1,f=t.length,p=yn(a-s,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(;++c<s;)(d||i<a)&&(l[h+n[c]]=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 Oo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,c=t.length;++a<c;){var s=t[a],u=r?r(n[s],e[s],s,n,e):o;u===o&&(u=e[s]),i?or(n,s,u):er(n,s,u)}return n}function xo(e,t){return function(n,r){var o=Ka(n)?gt:nr,i=t?t():{};return o(n,e,ci(r,2),i)}}function Do(e){return Hr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,c=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,c&&gi(n[0],n[1],c)&&(a=i<3?o:a,i=1),t=Re(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ja(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Re(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Re(t),a=r(t),c=a.length;c--;){var s=a[e?c:++o];if(!1===n(i[s],s,i))break}return t}}function Mo(e){return function(t){var n=Xt(t=_c(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 Ao(e){return function(t){return Et(Xc(Gc(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=zn(e.prototype),r=e.apply(n,t);return tc(r)?r:n}}function Wo(e){return function(t,n,r){var i=Re(t);if(!Ja(t)){var a=ci(n,3);t=jc(t),n=function(e){return a(i[e],e,i)}}var c=e(t,n,r);return c>-1?i[a?t[c]:c]:o}}function No(e){return ti((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var c=t[r];if("function"!=typeof c)throw new Ee(i);if(a&&!s&&"wrapper"==ii(c))var s=new Vn([],!0)}for(r=s?r:n;++r<n;){var u=ii(c=t[r]),f="wrapper"==u?oi(c):o;s=f&&Ci(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?s[ii(f[0])].apply(s,f[3]):1==c.length&&Ci(c)?s[u]():s.thru(c)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ka(r))return s.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,c,s,f,p,l){var d=t&u,h=1&t,v=2&t,m=24&t,y=512&t,g=v?o:Lo(e);return function o(){for(var u=arguments.length,_=r(u),C=u;C--;)_[C]=arguments[C];if(m)var b=ai(o),S=Ht(_,b);if(i&&(_=Po(_,i,a,m)),c&&(_=Eo(_,c,s,m)),u-=S,m&&u<l){var T=tn(_,b);return $o(e,t,Uo,o.placeholder,n,_,T,f,p,l-u)}var R=h?n:this,w=v?R[e]:e;return u=_.length,f?_=Ei(_,f):y&&u>1&&_.reverse(),d&&p<u&&(_.length=p),this&&this!==it&&this instanceof o&&(w=g||Lo(w)),w.apply(R,_)}}function zo(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 Fo(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=co(n),r=co(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Vo(e){return ti((function(t){return t=wt(t,Bt(ci())),Hr((function(n){var r=this;return e(t,(function(e){return yt(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":co(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(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&&gi(t,n,i)&&(n=i=o),t=hc(t),n===o?(n=t,t=0):n=hc(n),function(e,t,n,o){for(var i=-1,a=yn(fn((t-e)/(n||1)),0),c=r(a);a--;)c[o?a:++i]=e,e+=n;return c}(t,n,i=i===o?t<n?1:-1:hc(i),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yc(t),n=yc(n)),e(t,n)}}function $o(e,t,n,r,i,a,c,u,f,p){var l=8&t;t|=l?s:64,4&(t&=~(l?64:s))||(t&=-4);var d=[e,t,i,l?a:o,l?c:o,l?o:a,l?o:c,u,f,p],h=n.apply(o,d);return Ci(e)&&Oi(h,d),h.placeholder=r,ji(h,e,t)}function Jo(e){var t=Te[e];return function(e,n){if(e=yc(e),(n=null==n?0:gn(vc(n),292))&&hn(e)){var r=(_c(e)+"e").split("e");return+((r=(_c(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)}:us;function qo(e){return function(t){var n=di(t);return n==S?Qt(t):n==E?rn(t):function(e,t){return wt(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 v=a?a.length:0;if(v||(t&=-97,a=f=o),l=l===o?l:yn(vc(l),0),d=d===o?d:vc(d),v-=f?f.length:0,64&t){var m=a,y=f;a=f=o}var g=h?o:oi(e),_=[e,t,n,a,f,m,y,p,l,d];if(g&&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 s=t[3];if(s){var f=e[3];e[3]=f?Po(f,s,t[4]):s,e[4]=f?tn(e[3],c):t[4]}(s=t[5])&&(f=e[5],e[5]=f?Eo(f,s,t[6]):s,e[6]=f?tn(e[5],c):t[6]),(s=t[7])&&(e[7]=s),r&u&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(_,g),e=_[0],t=_[1],n=_[2],a=_[3],f=_[4],!(d=_[9]=_[9]===o?h?0:e.length:yn(_[9]-v,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 c=arguments.length,s=r(c),u=c,f=ai(a);u--;)s[u]=arguments[u];var p=c<3&&s[0]!==f&&s[c-1]!==f?[]:tn(s,f);return(c-=p.length)<n?$o(e,t,Uo,a.placeholder,o,s,p,o,o,n-c):yt(this&&this!==it&&this instanceof a?i:e,this,s)}}(e,t,d):t!=s&&33!=t||f.length?Uo.apply(o,_):function(e,t,n,o){var i=1&t,a=Lo(e);return function t(){for(var c=-1,s=arguments.length,u=-1,f=o.length,p=r(f+s),l=this&&this!==it&&this instanceof t?a:e;++u<f;)p[u]=o[u];for(;s--;)p[u++]=arguments[++c];return yt(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 ji((g?Xr:Oi)(C,_),e,t)}function Zo(e,t,n,r){return e===o||Fa(e,xe[n])&&!Ie.call(r,n)?t:e}function Xo(e,t,n,r,i,a){return tc(e)&&tc(t)&&(a.set(t,e),zr(e,t,o,Xo,a),a.delete(t)),e}function Qo(e){return ic(e)?o:e}function ei(e,t,n,r,i,a){var c=1&n,s=e.length,u=t.length;if(s!=u&&!(c&&u>s))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 Jn:o;for(a.set(e,t),a.set(t,e);++l<s;){var v=e[l],m=t[l];if(r)var y=c?r(m,v,l,t,e,a):r(v,m,l,e,t,a);if(y!==o){if(y)continue;d=!1;break}if(h){if(!Ot(t,(function(e,t){if(!Kt(h,t)&&(v===e||i(v,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(v!==m&&!i(v,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ti(e){return Di(wi(e,o,$i),e+"")}function ni(e){return Tr(e,jc,pi)}function ri(e){return Tr(e,Ic,li)}var oi=On?function(e){return On.get(e)}:us;function ii(e){for(var t=e.name+"",n=xn[t],r=Ie.call(xn,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(Ie.call(Un,"placeholder")?Un:e).placeholder}function ci(){var e=Un.iteratee||is;return e=e===is?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(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=jc(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ti(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ir(n)?n:o}var pi=ln?function(e){return null==e?[]:(e=Re(e),St(ln(e),(function(t){return et.call(e,t)})))}:ms,li=ln?function(e){for(var t=[];e;)Pt(t,pi(e)),e=$e(e);return t}:ms,di=Rr;function hi(e,t,n){for(var r=-1,o=(t=go(t,e)).length,i=!1;++r<o;){var a=Ni(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ec(o)&&yi(a,o)&&(Ka(e)||Ga(e))}function vi(e){return"function"!=typeof e.constructor||Si(e)?{}:zn($e(e))}function mi(e){return Ka(e)||Ga(e)||!!(ot&&e&&e[ot])}function yi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function gi(e,t,n){if(!tc(n))return!1;var r=typeof t;return!!("number"==r?Ja(n)&&yi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function _i(e,t){if(Ka(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!uc(e))||Q.test(e)||!X.test(e)||null!=t&&e in Re(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]}(Tn&&di(new Tn(new ArrayBuffer(1)))!=j||Rn&&di(new Rn)!=S||wn&&di(wn.resolve())!=w||Pn&&di(new Pn)!=E||En&&di(new En)!=x)&&(di=function(e){var t=Rr(e),n=t==R?e.constructor:o,r=n?Ui(n):"";if(r)switch(r){case Dn:return j;case jn:return S;case In:return w;case Mn:return E;case An:return x}return t});var bi=De?Xa:ys;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xe)}function Ti(e){return e==e&&!tc(e)}function Ri(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Re(n))}}function wi(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),c=r(a);++i<a;)c[i]=o[t+i];i=-1;for(var s=r(t+1);++i<t;)s[i]=o[i];return s[t]=n(c),yt(e,this,s)}}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=gn(t.length,n),i=ko(e);r--;){var a=t[r];e[r]=yi(a,n)?i[a]:o}return e}function ki(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Ii(Xr),xi=Nt||function(e,t){return it.setTimeout(e,t)},Di=Ii(Qr);function ji(e,t,n){var r=t+"";return Di(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]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ce):[]}(r),n)))}function Ii(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 Mi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=$r(n,i),c=e[a];e[a]=e[n],e[n]=c}return e.length=t,e}var Ai,Li,Wi=(Ai=Aa((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=Ai.cache,Ai);function Ni(e){if("string"==typeof e||uc(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 zi(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 Fi=Hr((function(e,t){return Ha(e)?fr(e,mr(t,1,Ha,!0)):[]})),Vi=Hr((function(e,t){var n=Zi(t);return Ha(n)&&(n=o),Ha(e)?fr(e,mr(t,1,Ha,!0),ci(n,2)):[]})),Bi=Hr((function(e,t){var n=Zi(t);return Ha(n)&&(n=o),Ha(e)?fr(e,mr(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:vc(n);return o<0&&(o=yn(r+o,0)),jt(e,ci(t,3),o)}function Ki(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vc(n),i=n<0?yn(r+i,0):gn(i,r-1)),jt(e,ci(t,3),i,!0)}function $i(e){return null!=e&&e.length?mr(e,1):[]}function Ji(e){return e&&e.length?e[0]:o}var Hi=Hr((function(e){var t=wt(e,mo);return t.length&&t[0]===e[0]?kr(t):[]})),qi=Hr((function(e){var t=Zi(e),n=wt(e,mo);return t===Zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?kr(n,ci(t,2)):[]})),Yi=Hr((function(e){var t=Zi(e),n=wt(e,mo);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 Kr(e,wt(t,(function(e){return yi(e,n)?+e:e})).sort(wo)),r}));function ta(e){return null==e?e:Sn.call(e)}var na=Hr((function(e){return so(mr(e,1,Ha,!0))})),ra=Hr((function(e){var t=Zi(e);return Ha(t)&&(t=o),so(mr(e,1,Ha,!0),ci(t,2))})),oa=Hr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,so(mr(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=yn(e.length,t),!0})),Ft(t,(function(t){return wt(e,Wt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:wt(n,(function(e){return yt(t,o,e)}))}var ca=Hr((function(e,t){return Ha(e)?fr(e,t):[]})),sa=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),ci(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 va=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&&yi(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)})),ma=xo((function(e,t,n){Ie.call(e,n)?++e[n]:or(e,n,1)})),ya=Wo(Gi),ga=Wo(Ki);function _a(e,t){return(Ka(e)?_t:pr)(e,ci(t,3))}function Ca(e,t){return(Ka(e)?Ct:lr)(e,ci(t,3))}var ba=xo((function(e,t,n){Ie.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=Ja(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?yt(t,e,n):Or(e,t,n)})),a})),Ta=xo((function(e,t,n){or(e,n,t)}));function Ra(e,t){return(Ka(e)?wt:Wr)(e,ci(t,3))}var wa=xo((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&&gi(e,t[0],t[1])?t=[]:n>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,mr(t,1),[])})),Ea=xt||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 Oa(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=vc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var xa=Hr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(xa));r|=s}return Yo(e,r,t,n,o)})),Da=Hr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Da));r|=s}return Yo(t,r,e,n,o)}));function ja(e,t,n){var r,a,c,s,u,f,p=0,l=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ee(i);function v(t){var n=r,i=a;return r=a=o,p=t,s=e.apply(i,n)}function m(e){return p=e,u=xi(g,t),l?v(e):s}function y(e){var n=e-f;return f===o||n>=t||n<0||d&&e-p>=c}function g(){var e=Ea();if(y(e))return _(e);u=xi(g,function(e){var n=t-(e-f);return d?gn(n,c-(e-p)):n}(e))}function _(e){return u=o,h&&r?v(e):(r=a=o,s)}function C(){var e=Ea(),n=y(e);if(r=arguments,a=this,f=e,n){if(u===o)return m(f);if(d)return bo(u),u=xi(g,t),v(f)}return u===o&&(u=xi(g,t)),s}return t=yc(t)||0,tc(n)&&(l=!!n.leading,c=(d="maxWait"in n)?yn(yc(n.maxWait)||0,t):c,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?s:_(Ea())},C}var Ia=Hr((function(e,t){return ur(e,1,t)})),Ma=Hr((function(e,t,n){return ur(e,yc(t)||0,n)}));function Aa(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(Aa.Cache||$n),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)}}Aa.Cache=$n;var Wa=_o((function(e,t){var n=(t=1==t.length&&Ka(t[0])?wt(t[0],Bt(ci())):wt(mr(t,1),Bt(ci()))).length;return Hr((function(r){for(var o=-1,i=gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return yt(e,this,r)}))})),Na=Hr((function(e,t){var n=tn(t,ai(Na));return Yo(e,s,o,t,n)})),Ua=Hr((function(e,t){var n=tn(t,ai(Ua));return Yo(e,64,o,t,n)})),za=ti((function(e,t){return Yo(e,256,o,o,o,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Va=Ko(wr),Ba=Ko((function(e,t){return e>=t})),Ga=xr(function(){return arguments}())?xr:function(e){return nc(e)&&Ie.call(e,"callee")&&!et.call(e,"callee")},Ka=r.isArray,$a=pt?Bt(pt):function(e){return nc(e)&&Rr(e)==D};function Ja(e){return null!=e&&ec(e.length)&&!Xa(e)}function Ha(e){return nc(e)&&Ja(e)}var qa=dn||ys,Ya=lt?Bt(lt):function(e){return nc(e)&&Rr(e)==g};function Za(e){if(!nc(e))return!1;var t=Rr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ic(e)}function Xa(e){if(!tc(e))return!1;var t=Rr(e);return t==C||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==vc(e)}function ec(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function tc(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nc(e){return null!=e&&"object"==typeof e}var rc=dt?Bt(dt):function(e){return nc(e)&&di(e)==S};function oc(e){return"number"==typeof e||nc(e)&&Rr(e)==T}function ic(e){if(!nc(e)||Rr(e)!=R)return!1;var t=$e(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==We}var ac=ht?Bt(ht):function(e){return nc(e)&&Rr(e)==P},cc=vt?Bt(vt):function(e){return nc(e)&&di(e)==E};function sc(e){return"string"==typeof e||!Ka(e)&&nc(e)&&Rr(e)==k}function uc(e){return"symbol"==typeof e||nc(e)&&Rr(e)==O}var fc=mt?Bt(mt):function(e){return nc(e)&&ec(e.length)&&!!Xe[Rr(e)]},pc=Ko(Lr),lc=Ko((function(e,t){return e<=t}));function dc(e){if(!e)return[];if(Ja(e))return sc(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:Fc)(e)}function hc(e){return e?(e=yc(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vc(e){var t=hc(e),n=t%1;return t==t?n?t-n:t:0}function mc(e){return e?ar(vc(e),0,d):0}function yc(e){if("number"==typeof e)return e;if(uc(e))return l;if(tc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=he.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):de.test(e)?l:+e}function gc(e){return Oo(e,Ic(e))}function _c(e){return null==e?"":co(e)}var Cc=Do((function(e,t){if(Si(t)||Ja(t))Oo(t,jc(t),e);else for(var n in t)Ie.call(t,n)&&er(e,n,t[n])})),bc=Do((function(e,t){Oo(t,Ic(t),e)})),Sc=Do((function(e,t,n,r){Oo(t,Ic(t),e,r)})),Tc=Do((function(e,t,n,r){Oo(t,jc(t),e,r)})),Rc=ti(ir),wc=Hr((function(e,t){e=Re(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&gi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],c=Ic(a),s=-1,u=c.length;++s<u;){var f=c[s],p=e[f];(p===o||Fa(p,xe[f])&&!Ie.call(e,f))&&(e[f]=a[f])}return e})),Pc=Hr((function(e){return e.push(o,Xo),yt(Ac,o,e)}));function Ec(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function kc(e,t){return null!=e&&hi(e,t,Er)}var Oc=zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),ts(os)),xc=zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ci),Dc=Hr(Or);function jc(e){return Ja(e)?qn(e):Ar(e)}function Ic(e){return Ja(e)?qn(e,!0):function(e){if(!tc(e))return function(e){var t=[];if(null!=e)for(var n in Re(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var Mc=Do((function(e,t,n){zr(e,t,n)})),Ac=Do((function(e,t,n,r){zr(e,t,n,r)})),Lc=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=wt(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),Oo(e,ri(e),n),r&&(n=cr(n,7,Qo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Wc=ti((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return kc(e,n)}))}(e,t)}));function Nc(e,t){if(null==e)return{};var n=wt(ri(e),(function(e){return[e]}));return t=ci(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var Uc=qo(jc),zc=qo(Ic);function Fc(e){return null==e?[]:Gt(e,jc(e))}var Vc=Ao((function(e,t,n){return t=t.toLowerCase(),e+(n?Bc(t):t)}));function Bc(e){return Zc(_c(e).toLowerCase())}function Gc(e){return(e=_c(e))&&e.replace(ge,qt).replace(Ke,"")}var Kc=Ao((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$c=Ao((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Jc=Mo("toLowerCase"),Hc=Ao((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qc=Ao((function(e,t,n){return e+(n?" ":"")+Zc(t)})),Yc=Ao((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zc=Mo("toUpperCase");function Xc(e,t,n){return e=_c(e),(t=n?o:t)===o?function(e){return qe.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Qc=Hr((function(e,t){try{return yt(e,o,t)}catch(e){return Za(e)?e:new be(e)}})),es=ti((function(e,t){return _t(t,(function(t){t=Ni(t),or(e,t,xa(e[t],e))})),e}));function ts(e){return function(){return e}}var ns=No(),rs=No(!0);function os(e){return e}function is(e){return Mr("function"==typeof e?e:cr(e,1))}var as=Hr((function(e,t){return function(n){return Or(n,e,t)}})),cs=Hr((function(e,t){return function(n){return Or(e,n,t)}}));function ss(e,t,n){var r=jc(t),o=br(t,r);null!=n||tc(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=br(t,jc(t)));var i=!(tc(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 us(){}var fs=Vo(wt),ps=Vo(bt),ls=Vo(Ot);function ds(e){return _i(e)?Wt(Ni(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hs=Go(),vs=Go(!0);function ms(){return[]}function ys(){return!1}var gs,_s=Fo((function(e,t){return e+t}),0),Cs=Jo("ceil"),bs=Fo((function(e,t){return e/t}),1),Ss=Jo("floor"),Ts=Fo((function(e,t){return e*t}),1),Rs=Jo("round"),ws=Fo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=vc(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=ka,Un.assign=Cc,Un.assignIn=bc,Un.assignInWith=Sc,Un.assignWith=Tc,Un.at=Rc,Un.before=Oa,Un.bind=xa,Un.bindAll=es,Un.bindKey=Da,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ka(e)?e:[e]},Un.chain=da,Un.chunk=function(e,t,n){t=(n?gi(e,t,n):t===o)?1:yn(vc(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,c=0,s=r(fn(i/t));a<i;)s[c++]=to(e,a,a+=t);return s},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(Ka(n)?ko(n):[n],mr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?wt(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(yt(o[0],this,n))return yt(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=jc(e);return function(n){return sr(n,e,t)}}(cr(e,1))},Un.constant=ts,Un.countBy=ma,Un.create=function(e,t){var n=zn(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=wc,Un.defaultsDeep=Pc,Un.defer=Ia,Un.delay=Ma,Un.difference=Fi,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:vc(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:vc(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?po(e,ci(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?po(e,ci(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vc(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vc(r))<0&&(r+=i),r=n>r?0:mc(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Ka(e)?St:vr)(e,ci(t,3))},Un.flatMap=function(e,t){return mr(Ra(e,t),1)},Un.flatMapDeep=function(e,t){return mr(Ra(e,t),f)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:vc(n),mr(Ra(e,t),n)},Un.flatten=$i,Un.flattenDeep=function(e){return null!=e&&e.length?mr(e,f):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:vc(t)):[]},Un.flip=function(e){return Yo(e,512)},Un.flow=ns,Un.flowRight=rs,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,jc(e))},Un.functionsIn=function(e){return null==e?[]:br(e,Ic(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=Oc,Un.invertBy=xc,Un.invokeMap=Sa,Un.iteratee=is,Un.keyBy=Ta,Un.keys=jc,Un.keysIn=Ic,Un.map=Ra,Un.mapKeys=function(e,t){var n={};return t=ci(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=ci(t,3),_r(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Un.matches=function(e){return Nr(cr(e,1))},Un.matchesProperty=function(e,t){return Ur(e,cr(t,1))},Un.memoize=Aa,Un.merge=Mc,Un.mergeWith=Ac,Un.method=as,Un.methodOf=cs,Un.mixin=ss,Un.negate=La,Un.nthArg=function(e){return e=vc(e),Hr((function(t){return Fr(t,e)}))},Un.omit=Lc,Un.omitBy=function(e,t){return Nc(e,La(ci(t)))},Un.once=function(e){return Oa(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Ka(t)||(t=null==t?[]:[t]),Ka(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Un.over=fs,Un.overArgs=Wa,Un.overEvery=ps,Un.overSome=ls,Un.partial=Na,Un.partialRight=Ua,Un.partition=wa,Un.pick=Wc,Un.pickBy=Nc,Un.property=ds,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,ci(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=hs,Un.rangeRight=vs,Un.rearg=za,Un.reject=function(e,t){return(Ka(e)?St:vr)(e,La(ci(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ci(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Kr(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Ee(i);return Hr(e,t=t===o?t:vc(t))},Un.reverse=ta,Un.sampleSize=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:vc(t),(Ka(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(Ka(e)?Xn:eo)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gi(e,t,n)?(t=0,n=r):(t=null==t?0:vc(t),n=n===o?r:vc(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,ci(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&gi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=_c(e))&&("string"==typeof t||null!=t&&!ac(t))&&!(t=co(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:yn(vc(t),0),Hr((function(n){var r=n[t],o=Co(n,0,t);return r&&Pt(o,r),yt(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:vc(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:vc(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?po(e,ci(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?po(e,ci(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 tc(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=dc,Un.toPairs=Uc,Un.toPairsIn=zc,Un.toPath=function(e){return Ka(e)?wt(e,Ni):uc(e)?[e]:ko(Wi(_c(e)))},Un.toPlainObject=gc,Un.transform=function(e,t,n){var r=Ka(e),o=r||qa(e)||fc(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tc(e)&&Xa(i)?zn($e(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?so(e):[]},Un.uniqBy=function(e,t){return e&&e.length?so(e,ci(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(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,yo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fo(e,t,yo(n),r)},Un.values=Fc,Un.valuesIn=function(e){return null==e?[]:Gt(e,Ic(e))},Un.without=ca,Un.words=Xc,Un.wrap=function(e,t){return Na(yo(t),e)},Un.xor=sa,Un.xorBy=ua,Un.xorWith=fa,Un.zip=pa,Un.zipObject=function(e,t){return vo(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return vo(e||[],t||[],Zr)},Un.zipWith=la,Un.entries=Uc,Un.entriesIn=zc,Un.extend=bc,Un.extendWith=Sc,ss(Un,Un),Un.add=_s,Un.attempt=Qc,Un.camelCase=Vc,Un.capitalize=Bc,Un.ceil=Cs,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=yc(n))==n?n:0),t!==o&&(t=(t=yc(t))==t?t:0),ar(yc(e),t,n)},Un.clone=function(e){return cr(e,4)},Un.cloneDeep=function(e){return cr(e,5)},Un.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||sr(e,t,jc(t))},Un.deburr=Gc,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=bs,Un.endsWith=function(e,t,n){e=_c(e),t=co(t);var r=e.length,i=n=n===o?r:ar(vc(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Fa,Un.escape=function(e){return(e=_c(e))&&H.test(e)?e.replace($,Yt):e},Un.escapeRegExp=function(e){return(e=_c(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=Ka(e)?bt:dr;return n&&gi(e,t,n)&&(t=o),r(e,ci(t,3))},Un.find=ya,Un.findIndex=Gi,Un.findKey=function(e,t){return Dt(e,ci(t,3),_r)},Un.findLast=ga,Un.findLastIndex=Ki,Un.findLastKey=function(e,t){return Dt(e,ci(t,3),Cr)},Un.floor=Ss,Un.forEach=_a,Un.forEachRight=Ca,Un.forIn=function(e,t){return null==e?e:yr(e,ci(t,3),Ic)},Un.forInRight=function(e,t){return null==e?e:gr(e,ci(t,3),Ic)},Un.forOwn=function(e,t){return e&&_r(e,ci(t,3))},Un.forOwnRight=function(e,t){return e&&Cr(e,ci(t,3))},Un.get=Ec,Un.gt=Va,Un.gte=Ba,Un.has=function(e,t){return null!=e&&hi(e,t,Pr)},Un.hasIn=kc,Un.head=Ji,Un.identity=os,Un.includes=function(e,t,n,r){e=Ja(e)?e:Fc(e),n=n&&!r?vc(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),sc(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&It(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:vc(n);return o<0&&(o=yn(r+o,0)),It(e,t,o)},Un.inRange=function(e,t,n){return t=hc(t),n===o?(n=t,t=0):n=hc(n),function(e,t,n){return e>=gn(t,n)&&e<yn(t,n)}(e=yc(e),t,n)},Un.invoke=Dc,Un.isArguments=Ga,Un.isArray=Ka,Un.isArrayBuffer=$a,Un.isArrayLike=Ja,Un.isArrayLikeObject=Ha,Un.isBoolean=function(e){return!0===e||!1===e||nc(e)&&Rr(e)==y},Un.isBuffer=qa,Un.isDate=Ya,Un.isElement=function(e){return nc(e)&&1===e.nodeType&&!ic(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Ja(e)&&(Ka(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||fc(e)||Ga(e)))return!e.length;var t=di(e);if(t==S||t==E)return!e.size;if(Si(e))return!Ar(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Dr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Dr(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=ec,Un.isMap=rc,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 oc(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 Ir(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=oc,Un.isObject=tc,Un.isObjectLike=nc,Un.isPlainObject=ic,Un.isRegExp=ac,Un.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=p},Un.isSet=cc,Un.isString=sc,Un.isSymbol=uc,Un.isTypedArray=fc,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return nc(e)&&di(e)==x},Un.isWeakSet=function(e){return nc(e)&&"[object WeakSet]"==Rr(e)},Un.join=function(e,t){return null==e?"":vn.call(e,t)},Un.kebabCase=Kc,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=vc(n))<0?yn(r+i,0):gn(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,At,i,!0)},Un.lowerCase=$c,Un.lowerFirst=Jc,Un.lt=pc,Un.lte=lc,Un.max=function(e){return e&&e.length?hr(e,os,wr):o},Un.maxBy=function(e,t){return e&&e.length?hr(e,ci(t,2),wr):o},Un.mean=function(e){return Lt(e,os)},Un.meanBy=function(e,t){return Lt(e,ci(t,2))},Un.min=function(e){return e&&e.length?hr(e,os,Lr):o},Un.minBy=function(e,t){return e&&e.length?hr(e,ci(t,2),Lr):o},Un.stubArray=ms,Un.stubFalse=ys,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Ts,Un.nth=function(e,t){return e&&e.length?Fr(e,vc(t)):o},Un.noConflict=function(){return it._===this&&(it._=Ne),this},Un.noop=us,Un.now=Ea,Un.pad=function(e,t,n){e=_c(e);var r=(t=vc(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=_c(e);var r=(t=vc(t))?on(e):0;return t&&r<t?e+Bo(t-r,n):e},Un.padStart=function(e,t,n){e=_c(e);var r=(t=vc(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(_c(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&gi(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=hc(e),t===o?(t=e,e=0):t=hc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=bn();return gn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return $r(e,t)},Un.reduce=function(e,t,n){var r=Ka(e)?Et:Ut,o=arguments.length<3;return r(e,ci(t,4),n,o,pr)},Un.reduceRight=function(e,t,n){var r=Ka(e)?kt:Ut,o=arguments.length<3;return r(e,ci(t,4),n,o,lr)},Un.repeat=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:vc(t),Jr(_c(e),t)},Un.replace=function(){var e=arguments,t=_c(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=go(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ni(t[r])];a===o&&(r=i,a=n),e=Xa(a)?a.call(e):a}return e},Un.round=Rs,Un.runInContext=e,Un.sample=function(e){return(Ka(e)?Yn:qr)(e)},Un.size=function(e){if(null==e)return 0;if(Ja(e))return sc(e)?on(e):e.length;var t=di(e);return t==S||t==E?e.size:Ar(e).length},Un.snakeCase=Hc,Un.some=function(e,t,n){var r=Ka(e)?Ot:no;return n&&gi(e,t,n)&&(t=o),r(e,ci(t,3))},Un.sortedIndex=function(e,t){return ro(e,t)},Un.sortedIndexBy=function(e,t,n){return oo(e,t,ci(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Fa(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,ci(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Un.startCase=qc,Un.startsWith=function(e,t,n){return e=_c(e),n=null==n?0:ar(vc(n),0,e.length),t=co(t),e.slice(n,n+t.length)==t},Un.subtract=ws,Un.sum=function(e){return e&&e.length?zt(e,os):0},Un.sumBy=function(e,t){return e&&e.length?zt(e,ci(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&gi(e,t,n)&&(t=o),e=_c(e),t=Sc({},t,r,Zo);var i,a,c=Sc({},t.imports,r.imports,Zo),s=jc(c),u=Gt(c,s),f=0,p=t.interpolate||_e,l="__p += '",d=we((t.escape||_e).source+"|"+p.source+"|"+(p===Z?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";e.replace(d,(function(t,n,r,o,c,s){return r||(r=o),l+=e.slice(f,s).replace(Ce,Zt),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),c&&(a=!0,l+="';\n"+c+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=s+t.length,t})),l+="';\n";var v=Ie.call(t,"variable")&&t.variable;if(v){if(ue.test(v))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("+(v||"obj")+") {\n"+(v?"":"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 m=Qc((function(){return Se(s,h+"return "+l).apply(o,u)}));if(m.source=l,Za(m))throw m;return m},Un.times=function(e,t){if((e=vc(e))<1||e>p)return[];var n=d,r=gn(e,d);t=ci(t),e-=d;for(var o=Ft(r,t);++n<e;)t(n);return o},Un.toFinite=hc,Un.toInteger=vc,Un.toLength=mc,Un.toLower=function(e){return _c(e).toLowerCase()},Un.toNumber=yc,Un.toSafeInteger=function(e){return e?ar(vc(e),-9007199254740991,p):0===e?e:0},Un.toString=_c,Un.toUpper=function(e){return _c(e).toUpperCase()},Un.trim=function(e,t,n){if((e=_c(e))&&(n||t===o))return Vt(e);if(!e||!(t=co(t)))return e;var r=an(e),i=an(t);return Co(r,$t(r,i),Jt(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=_c(e))&&(n||t===o))return e.slice(0,cn(e)+1);if(!e||!(t=co(t)))return e;var r=an(e);return Co(r,0,Jt(r,an(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=_c(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=co(t)))return e;var r=an(e);return Co(r,$t(r,an(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(tc(t)){var i="separator"in t?t.separator:i;n="length"in t?vc(t.length):n,r="omission"in t?co(t.omission):r}var a=(e=_c(e)).length;if(Xt(e)){var c=an(e);a=c.length}if(n>=a)return e;var s=n-on(r);if(s<1)return r;var u=c?Co(c,0,s).join(""):e.slice(0,s);if(i===o)return u+r;if(c&&(s+=u.length-s),ac(i)){if(e.slice(s).search(i)){var f,p=u;for(i.global||(i=we(i.source,_c(le.exec(i))+"g")),i.lastIndex=0;f=i.exec(p);)var l=f.index;u=u.slice(0,l===o?s:l)}}else if(e.indexOf(co(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Un.unescape=function(e){return(e=_c(e))&&J.test(e)?e.replace(K,sn):e},Un.uniqueId=function(e){var t=++Me;return _c(e)+t},Un.upperCase=Yc,Un.upperFirst=Zc,Un.each=_a,Un.eachRight=Ca,Un.first=Ji,ss(Un,(gs={},_r(Un,(function(e,t){Ie.call(Un.prototype,t)||(gs[t]=e)})),gs),{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:yn(vc(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(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:ci(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(os)},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 Or(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(La(ci(e)))},Bn.prototype.slice=function(e,t){e=vc(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=vc(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__,c=r?[1]:arguments,s=t instanceof Bn,u=c[0],f=s||Ka(t),p=function(e){var t=i.apply(Un,Pt([e],c));return r&&l?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(s=f=!1);var l=this.__chain__,d=!!this.__actions__.length,h=a&&!l,v=s&&!d;if(!a&&f){t=v?t:new Bn(this);var m=e.apply(t,c);return m.__actions__.push({func:ha,args:[p],thisArg:o}),new Vn(m,l)}return h&&v?e.apply(this,c):(m=this.thru(p),h?r?m.value()[0]:m.value():m)})})),_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(Ka(o)?o:[],e)}return this[n]((function(n){return t.apply(Ka(n)?n:[],e)}))}})),_r(Bn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ie.call(xn,r)||(xn[r]=[]),xn[r].push({name:t,func:n})}})),xn[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=Ka(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=gn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,c=i.end,s=c-a,u=r?c:a-1,f=this.__iteratees__,p=f.length,l=0,d=gn(s,this.__takeCount__);if(!n||!r&&o==s&&d==s)return lo(e,this.__actions__);var h=[];e:for(;s--&&l<d;){for(var v=-1,m=e[u+=t];++v<p;){var y=f[v],g=y.iteratee,_=y.type,C=g(m);if(2==_)m=C;else if(!C){if(1==_)continue e;break e}}h[l++]=m}return h},Un.prototype.at=va,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__=dc(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 Fn;){var r=zi(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)},539:e=>{"use strict";const t={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};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.substr(14).split(" ")},t.parseRtpMap=function(e){let t=e.substr(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.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},t.parseFmtp=function(e){const t={};let n;const r=e.substr(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.substr(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.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},t.parseSsrcGroup=function(e){const t=e.substr(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.substr(6)},t.parseFingerprint=function(e){const t=e.substr(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.substr(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.substr(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.substr(12),password:o.substr(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(" ");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())}}}return t.matchPrefix(e,"a=extmap:").forEach((e=>{n.headerExtensions.push(t.parseExtmap(e))})),n},t.writeRtpDescription=function(e,n){let r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" 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)),c=a.length>0&&a[0].ssrc;let s;const u=t.matchPrefix(e,"a=ssrc-group:FID").map((e=>e.substr(17).split(" ").map((e=>parseInt(e,10)))));u.length>0&&u[0].length>1&&u[0][0]===c&&(s=u[0][1]),r.codecs.forEach((e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&s&&(t.rtx={ssrc:s}),n.push(t),o&&(t=JSON.parse(JSON.stringify(t)),t.fec={ssrc:c,mechanism:i?"red+ulpfec":"red"},n.push(t))}})),0===n.length&&c&&n.push({ssrc:c});let f=t.matchPrefix(e,"b=");return f.length&&(f=0===f[0].indexOf("b=TIAS:")?parseInt(f[0].substr(7),10):0===f[0].indexOf("b=AS:")?1e3*parseInt(f[0].substr(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].substr(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].substr(19),10)),isNaN(o)&&(o=65536);const i=t.matchPrefix(e,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substr(12),10),protocol:n.fmt,maxMessageSize:o};const a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){const e=a[0].substr(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,21)},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].substr(2)}return n?t.getDirection(n):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substr(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){const n=t.splitLines(e)[0].substr(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].substr(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:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mungeSdpPublish=void 0;var r=n(486),o=n(835),i=n(847),a=n(317),c={},s="",u=-1,f=-1;function p(e,t){for(var n in c){var r=Number.parseInt(n,10),o=c[r];if(o.includes(e)){if(e.includes("VP9")||e.includes("VP8")){for(var a="",s=0,p=o.split(/\r\n/);s<p.length;s++)a+=p[s],a+="\r\n";return t.includes(i.EnumMediaStreamTrackKind.AUDIO)&&(f=r),t.includes(i.EnumMediaStreamTrackKind.VIDEO)&&(u=r),a}return t.includes(i.EnumMediaStreamTrackKind.AUDIO)&&(f=r),t.includes(i.EnumMediaStreamTrackKind.VIDEO)&&(u=r),o}}return""}function l(e){if(e.startsWith("a=rtpmap")||e.startsWith("a=rtcp-fb")||e.startsWith("a=fmtp")){var t=e.split(":");if(t.length>1){var n=t[1].split(" "),r=Number.parseInt(n[0],10);if(!Number.isNaN(r)&&!n[1].startsWith("http")&&!n[1].startsWith("ur")){var o=c[r];return o||(o=""),o+=e+"\r\n",c[r]=o,!1}}}return!0}t.mungeSdpPublish=function(e,t){c={},s=r.isEmpty(t.audioCodec)?"opus":t.audioCodec,u=-1,f=-1;for(var n,d,h,v=e.split(/\r\n/),m="header",y=!1,g="",_=o.default.browserDetails.browser,C=0,b=v;C<b.length;C++)(R=b[C]).length<=0||l(R)&&(g+=R,g+="\r\n");g=function(e,t){for(var n="",r=!1,o="",i=0,a=e.split(/\r\n/);i<a.length;i++){var c=a[i];c.length<=0||(0===c.indexOf("m=audio")?o="audio":0===c.indexOf("m=video")&&(o="video"),n+=c,n+="\r\n","audio"!==o||"a=rtcp-mux"!==c||r||(n+=t,r=!0))}return n}(g,p(s,i.EnumMediaStreamTrackKind.AUDIO)),g=function(e,t){for(var n=e.split(/\r\n/),r="",o=!1,i=!1,a=0,c=n;a<c.length;a++)(f=c[a]).length<=0||f.includes("a=rtcp-rsize")&&(i=!0);for(var s=0,u=n;s<u.length;s++){var f;r+=f=u[s],r+="\r\n",0==="a=rtcp-rsize".localeCompare(f)&&!o&&i&&(r+=t,o=!0),0==="a=rtcp-mux".localeCompare(f)&&o&&!i&&(r+=t,o=!0),0!=="a=rtcp-mux".localeCompare(f)||o||i||(o=!0)}return r}(g,p(t.videoCodec,i.EnumMediaStreamTrackKind.VIDEO)),e=g,g="";for(var S=0,T=v=e.split(/\r\n/);S<T.length;S++){var R;if(!((R=T[S]).length<=0)){if("chrome"===_){var w=void 0;if(0===R.indexOf("m=audio")&&-1!==f){g+=(w=R.split(" "))[0]+" "+w[1]+" "+w[2]+" "+f+"\r\n";continue}if(0===R.indexOf("m=video")&&-1!==u){g+=(w=R.split(" "))[0]+" "+w[1]+" "+w[2]+" "+u+"\r\n";continue}}if(t.videoCodec===i.EnumVideoCodec.H264&&R.startsWith("a=fmtp")?(r.has(t.h264CodecOptions,"packetization-mode")&&(R=R.replace(/packetization-mode[\s\d=]+/,"packetization-mode=".concat(r.get(t.h264CodecOptions,"packetization-mode")))),r.has(t.h264CodecOptions,"profile-level-id")&&(R=R.replace(/profile-level-id[\s=]+[^;]+/,"profile-level-id=".concat(r.get(t.h264CodecOptions,"profile-level-id")))),r.has(t.h264CodecOptions,"level-asymmetry-allowed")&&-1!==R.indexOf("level-asymmetry-allowed")&&(R=R.replace(/level-asymmetry-allowed[\s=]+[^;]+/,"level-asymmetry-allowed=".concat(r.get(t.h264CodecOptions,"level-asymmetry-allowed"))))):t.videoCodec===a.EnumVideoCodecs.VP9&&R.startsWith("a=fmtp")&&-1!==R.indexOf("profile-id")&&r.has(t.vp9CodecOptions,"profile-id")&&(R=R.replace(/profile-id[\s=]+[^;]+/,"profile-id=".concat(r.get(t.vp9CodecOptions,"profile-id")))),g+=R,0===R.indexOf("m=audio")?(m="audio",y=!1):0===R.indexOf("m=video")?(m="video",y=!1):0===R.indexOf("a=rtpmap")&&(m="bandwidth",y=!1),"chrome"===_&&(0===R.indexOf("a=mid:")||0===R.indexOf("a=rtpmap"))&&!y)if("audio"===m)g+="\r\nb=CT:"+t.audioBitrate.max,g+="\r\nb=AS:"+t.audioBitrate.min,y=!0;else if("video"===m)g+="\r\nb=CT:"+t.videoBitrate.max,g+="\r\nb=AS:"+t.videoBitrate.min,g+="\r\na=framerate:"+r.get(t.videoFrameRate,"ideal",30),y=!0;else if("bandwidth"===m){var P=(n=R,void 0,void 0,d=new RegExp("a=rtpmap:(\\d+) (\\w+)/(\\d+)"),(h=n.match(d))&&h.length>=3?h:null);if(null!==P){var E=P[2].toLowerCase();r.includes(["vp9","vp8","h264","red","ulpfec","rtx"],E)&&(g+="\r\na=fmtp:"+P[1]+" x-google-min-bitrate="+t.videoBitrate.min+";x-google-max-bitrate="+t.videoBitrate.max),r.includes(["opus","isac","g722","pcmu","pcma","cn"],E)&&(g+="\r\na=fmtp:"+P[1]+" x-google-min-bitrate="+t.audioBitrate.min+";x-google-max-bitrate="+t.audioBitrate.max)}}"firefox"!==_&&"safari"!==_||0!==R.indexOf("c=IN")||"audio"!==m?g+="\r\n":(g+="\r\nb=TIAS:"+Math.round(.95*t.audioBitrate.min-16)+"\r\n",g+="b=AS:"+t.audioBitrate.min+"\r\n",g+="b=CT:"+t.audioBitrate.max+"\r\n")}}return g}},847:(e,t)=>{"use strict";var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumMediaStreamTrackKind=t.EnumWebSocketConnectionCommand=t.EnumWebSocketConnectionDirection=t.EnumWebSocketConnectionStatus=t.EnumVideoCodec=void 0,(t.EnumVideoCodec||(t.EnumVideoCodec={})).H264="42e01f",(i=t.EnumWebSocketConnectionStatus||(t.EnumWebSocketConnectionStatus={}))[i.OK=200]="OK",i[i.NOT_READY=514]="NOT_READY",(o=t.EnumWebSocketConnectionDirection||(t.EnumWebSocketConnectionDirection={})).PUBLISH="publish",o.PLAY="play",(r=t.EnumWebSocketConnectionCommand||(t.EnumWebSocketConnectionCommand={})).SEND_OFFER="sendOffer",r.GET_OFFER="getOffer",r.SEND_RESPONSE="sendResponse",r.GET_AVAILABLE_STREAM="getAvailableStreams",(n=t.EnumMediaStreamTrackKind||(t.EnumMediaStreamTrackKind={})).AUDIO="audio",n.VIDEO="video"},571:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EnumCodecContentType=void 0,(n=t.EnumCodecContentType||(t.EnumCodecContentType={})).OPUS='audio/mp4;codecs="opus"',n.VORBIS='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"'},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)});Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcInputConnection=void 0;var i=n(847),a=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(i.EnumWebSocketConnectionDirection.PLAY,i.EnumWebSocketConnectionCommand.SEND_RESPONSE,e)})).catch(this.onError)},t.prototype.onRemoteTrack=function(e){try{this._stream=e.streams[0],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(i.EnumWebSocketConnectionDirection.PLAY,i.EnumWebSocketConnectionCommand.GET_OFFER)},t.prototype.onWsMessage=function(e){var t=this,n=JSON.parse(e.data);if(parseInt(n.status,10)!==i.EnumWebSocketConnectionStatus.OK)this._repeaterRetryCount++,this._repeaterRetryCount<10?setTimeout((function(){return t.sendResponse(i.EnumWebSocketConnectionDirection.PLAY,i.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(){if(void 0!==t.peerConnection)return t.peerConnection.createAnswer().then((function(e){return t.onRtcDescription(e)})).catch(t.onError)})).catch(this.onError);var a=n.iceCandidates;if((null==a?void 0:a.length)>0&&this.peerConnection)for(var c=0,s=a;c<s.length;c++){var u=s[c];this.peerConnection.addIceCandidate(new RTCIceCandidate(u)).catch(this.onError)}}this.wsConnection&&0==="sendResponse".localeCompare(n.command)&&(null!==this.wsConnection&&this.wsConnection.close(),this.wsConnection=void 0)},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}(n(934).default);t.WebRtcInputConnection=a},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)});Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcOutputConnection=void 0;var i=n(835),a=n(465),c=n(847),s=function(e){function t(t){var n=e.call(this,t)||this;return n.wsConnection=void 0,n.peerConnection=void 0,n.peerConnectionConfig=void 0,n.videoSender=void 0,n.audioSender=void 0,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.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 RTC"));e.sdp&&"safari"!==i.default.browserDetails.browser&&(e.sdp=(0,a.mungeSdpPublish)(e.sdp?e.sdp:"",this.connectionOptions.mediaInfo)),this.peerConnection.setLocalDescription(e).then((function(){t.sendResponse(c.EnumWebSocketConnectionDirection.PUBLISH,c.EnumWebSocketConnectionCommand.SEND_OFFER,e)})).catch(this.onError)},t.prototype.onWsOpen=function(){var e=this;this.peerConnection=new RTCPeerConnection(this.peerConnectionConfig),this.videoSender=void 0,this.audioSender=void 0,this.peerConnection.onnegotiationneeded=function(){e.peerConnection&&e.peerConnection.createOffer().then(e.onRtcDescription,e.onError)};for(var t=0,n=this.connectionOptions.localStream.getTracks();t<n.length;t++){var r=n[t],o=this.peerConnection.addTrack(r,this.connectionOptions.localStream);r.kind===c.EnumMediaStreamTrackKind.AUDIO?this.audioSender=o:r.kind===c.EnumMediaStreamTrackKind.VIDEO&&(this.videoSender=o)}},t.prototype.onWsMessage=function(e){var t=JSON.parse(e.data);if(parseInt(t.status,10)!==c.EnumWebSocketConnectionStatus.OK)return this.onError(new Error(t.statusDescription));var n=t.sdp;n&&this.peerConnection&&this.peerConnection.setRemoteDescription(new RTCSessionDescription(n)).catch(this.onError);var r=t.iceCandidates;if(void 0!==r&&this.peerConnection)for(var o=0,i=r;o<i.length;o++){var a=i[o];this.peerConnection.addIceCandidate(new RTCIceCandidate(a)).catch(this.onError)}},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.videoSender=void 0,this.audioSender=void 0},t}(n(934).default);t.WebRtcOutputConnection=s},934:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=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},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.connectionOptions=e,this.wsConnection=void 0,this.peerConnection=void 0,this.connectionOptions=e,this.connectToWebSocket=this.connectToWebSocket.bind(this),this.onError=this.onError.bind(this)}return e.prototype.sendResponse=function(e,t,r){if(this.wsConnection){var o={direction:e,command:t,streamInfo:this.connectionOptions.streamInfo,userData:this.connectionOptions.userData};void 0!==r&&(o=n(n({},o),{sdp:r})),this.wsConnection.send(JSON.stringify(o))}},e.prototype.connectToWebSocket=function(){var e=this;this.wsConnection=new WebSocket(this.connectionOptions.wsUrl),this.wsConnection.binaryType="arraybuffer",this.wsConnection.onerror=function(){return e.onError(new Error("WsConnection failed"))}},e.prototype.onError=function(e){this.stop(),this.connectionOptions.onError(e)},e.prototype.start=function(){this.peerConnection||(this.wsConnection&&(this.wsConnection.close(),this.wsConnection=void 0),this.connectToWebSocket())},e.prototype.stop=function(){this.peerConnection&&this.peerConnection.close(),this.peerConnection=void 0,this.wsConnection&&this.wsConnection.close(),this.wsConnection=void 0,this.connectionOptions.onStop()},e}();t.default=r},121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportedAudioCodec=t.EnumMediaCodecSupported=t.EnumAudioCodecs=void 0;var r,o,i=n(835),a=n(571),c=n(593);!function(e){e.OPUS="opus",e.VORBIS="vorbis",e.PCMU="pcmu",e.PCMA="pcma"}(r=t.EnumAudioCodecs||(t.EnumAudioCodecs={})),function(e){e.UNKNOWN="",e.PROBABLY="probably",e.MAYBE="maybe"}(o=t.EnumMediaCodecSupported||(t.EnumMediaCodecSupported={})),t.browserSupportedAudioCodec=function(e){for(var t="safari"===i.default.browserDetails.browser,n=0;n<e.length;n++)switch(e[n]){case r.OPUS:if(t||(0,c.supportsCodec)(a.EnumCodecContentType.OPUS)===o.PROBABLY)return r.OPUS;break;case r.VORBIS:if((0,c.supportsCodec)(a.EnumCodecContentType.VORBIS)===o.PROBABLY)return r.VORBIS;case r.PCMU:case r.PCMA:}return""}},317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportedVideoCodec=t.EnumVideoCodecs=void 0;var r,o=n(486),i=n(571),a=n(847),c=n(593);!function(e){e.H264="h264",e.VP9="VP9",e.VP8="VP8"}(r=t.EnumVideoCodecs||(t.EnumVideoCodecs={})),t.browserSupportedVideoCodec=function(e){for(var t=0;t<e.length;t++)switch(e[t]){case r.H264:if(!o.isEmpty((0,c.supportsCodec)(i.EnumCodecContentType.H264)))return a.EnumVideoCodec.H264;break;case r.VP9:if(!o.isEmpty((0,c.supportsCodec)(i.EnumCodecContentType.VP9)))return r.VP9;break;case r.VP8:if(!o.isEmpty((0,c.supportsCodec)(i.EnumCodecContentType.VP8)))return r.VP8}return""}},593:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsCodec=t.EnumSupportedMediaType=void 0;var r,o=n(486);!function(e){e.VIDEO="video",e.AUDIO="audio"}(r=t.EnumSupportedMediaType||(t.EnumSupportedMediaType={})),t.supportsCodec=function(e){var t=e.split("/");return o.includes(Object.values(r),t[0])?window.document.createElement(t[0]).canPlayType(e):""}},835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>se});var r={};n.r(r),n.d(r,{fixNegotiationNeeded:()=>x,shimAddTrackRemoveTrack:()=>k,shimAddTrackRemoveTrackWithNative:()=>E,shimGetDisplayMedia:()=>b,shimGetSendersWithDtmf:()=>R,shimGetStats:()=>w,shimGetUserMedia:()=>C,shimMediaStream:()=>S,shimOnTrack:()=>T,shimPeerConnection:()=>O,shimSenderReceiverGetStats:()=>P});var o={};n.r(o),n.d(o,{shimAddTransceiver:()=>U,shimCreateAnswer:()=>V,shimCreateOffer:()=>F,shimGetDisplayMedia:()=>j,shimGetParameters:()=>z,shimGetUserMedia:()=>D,shimOnTrack:()=>I,shimPeerConnection:()=>M,shimRTCDataChannel:()=>N,shimReceiverGetStats:()=>L,shimRemoveStream:()=>W,shimSenderGetStats:()=>A});var i={};n.r(i),n.d(i,{shimAudioContext:()=>Z,shimCallbacksAPI:()=>K,shimConstraints:()=>J,shimCreateOfferLegacy:()=>Y,shimGetUserMedia:()=>$,shimLocalStreamsAPI:()=>B,shimRTCIceServerUrls:()=>H,shimRemoteStreamsAPI:()=>G,shimTrackEventTransceiver:()=>q});var a={};n.r(a),n.d(a,{removeExtmapAllowMixed:()=>oe,shimAddIceCandidateNullOrEmpty:()=>ie,shimConnectionState:()=>re,shimMaxMessageSize:()=>te,shimParameterlessSetLocalDescription:()=>ae,shimRTCIceCandidate:()=>ee,shimSendThrowTypeError:()=>ne});let c=!0,s=!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."):(c=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."):(s=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function d(){if("object"==typeof window){if(c)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function h(e,t){s&&console.warn(e+" is deprecated, please use "+t+" instead.")}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function m(e){return v(e)?Object.keys(e).reduce((function(t,n){const r=v(e[n]),o=r?m(e[n]):e[n],i=r&&!Object.keys(o).length;return void 0===o||i?t:Object.assign(t,{[n]:o})}),{}):e}function y(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((r=>{r.endsWith("Id")?y(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((t=>{y(e,e.get(t),n)}))})))}function g(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&&y(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,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then((t=>{const r=n.video&&n.video.width,o=n.video&&n.video.height,i=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:i||3}},r&&(n.video.mandatory.maxWidth=r),o&&(n.video.mandatory.maxHeight=o),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function S(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function T(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 R(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 w(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const o=function(e){const t={};return e.result().forEach((e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{n[t]=e.stat(t)})),t[n.id]=n})),t},i=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const r=function(e){n(i(o(e)))};return t.apply(this,[r,e])}return new Promise(((e,n)=>{t.apply(this,[function(t){e(i(o(t)))},n])})).then(n,r)}}function P(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=>g(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=>g(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 E(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 k(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return E(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 c=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=a(this,arguments[0]),c.apply(this,arguments)):c.apply(this,arguments)};const s=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=s.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 O(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 x(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 D(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 j(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 M(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 A(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 L(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 W(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 N(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function U(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.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.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function z(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 F(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 V(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 B(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 G(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 K(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 c=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=c,c=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=c,c=function(e,t,n){const r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=c}function $(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(J(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function J(e){return e&&void 0!==e.video?Object.assign({},e,{video:m(e.video)}):e}function H(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];!r.hasOwnProperty("urls")&&r.hasOwnProperty("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 q(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 Y(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 Z(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var X=n(539),Q=n.n(X);function ee(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.substr(2)),e.candidate&&e.candidate.length){const n=new t(e),r=Q().parseCandidate(e.candidate),o=Object.assign(n,r);return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}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 te(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=Q().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Q().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=Q().matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?r=parseInt(o[0].substr(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 c={};Object.defineProperty(c,"maxMessageSize",{get:()=>a}),this._sctp=c}return a.apply(this,arguments)}}function ne(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 re(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 oe(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 ie(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 ae(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 ce=function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=d,c=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=u(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)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),s={browserDetails:c,commonShim:a,extractVersion:u,disableLog:p,disableWarnings:l,sdp:X};switch(c.browser){case"chrome":if(!r||!O||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),s;if(null===c.version)return n("Chrome shim can not determine version, not shimming."),s;n("adapter.js shimming chrome."),s.browserShim=r,ie(e,c),ae(e),C(e,c),S(e),O(e,c),T(e),k(e,c),R(e),w(e),P(e),x(e,c),ee(e),re(e),te(e,c),ne(e),oe(e,c);break;case"firefox":if(!o||!M||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),s;n("adapter.js shimming firefox."),s.browserShim=o,ie(e,c),ae(e),D(e,c),M(e,c),I(e),W(e),A(e),L(e),N(e),U(e),z(e),F(e),V(e),ee(e),re(e),te(e,c),ne(e);break;case"safari":if(!i||!t.shimSafari)return n("Safari shim is not included in this adapter release."),s;n("adapter.js shimming safari."),s.browserShim=i,ie(e,c),ae(e),H(e),Y(e),K(e),B(e),G(e),q(e),$(e),Z(e),ee(e),te(e,c),ne(e),oe(e,c);break;default:n("Unsupported browser!")}return s}({window:"undefined"==typeof window?void 0:window}),se=ce}},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={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.browserSupportedVideoCodec=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}});var a=n(317);Object.defineProperty(e,"browserSupportedVideoCodec",{enumerable:!0,get:function(){return a.browserSupportedVideoCodec}})})(),webRTC=r})();
3
+ //# sourceMappingURL=vxwebrtc.js.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Lodash <https://lodash.com/>
4
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
+ * Released under MIT license <https://lodash.com/license>
6
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
+ */