1(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[3461],{39108(Be,qe,xe){"use strict";xe(89171),xe(96935);var p=xe(72447);window.originalSetInterval=window.setInterval,window.originalSetTimeout=window.setTimeout,(0,p.polyfill)()},72447(Be,qe,xe){var Ue,fe;!function(){var I,ge={polyfill:function n(){if(!("KeyboardEvent"in window)||"key"in KeyboardEvent.prototype)return!1;var e={get:function(f){var h=ge.keys[this.which||this.keyCode];return Array.isArray(h)&&(h=h[+this.shiftKey]),h}};return Object.defineProperty(KeyboardEvent.prototype,"key",e),e},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}};for(I=1;I<25;I++)ge.keys[111+I]="F"+I;var p="";for(I=65;I<91;I++)p=String.fromCharCode(I),ge.keys[I]=[p.toLowerCase(),p.toUpperCase()];void 0!==(fe="function"==typeof(Ue=ge)?Ue.call(qe,xe,qe,Be):Ue)&&(Be.exports=fe)}()},89171(Be){Be.exports=function(){return function fe(ge,I,p){function n(h,M){if(!I[h]){if(!ge[h]){if(e)return e(h,!0);var Z=new Error("Cannot find module '"+h+"'");throw Z.code="MODULE_NOT_FOUND",Z}var oe=I[h]={exports:{}};ge[h][0].call(oe.exports,function(W){return n(ge[h][1][W]||W)},oe,oe.exports,fe,ge,I,p)}return I[h].exports}for(var e=void 0,f=0;f<p.length;f++)n(p[f]);return n}}()({1:[function(fe,ge,I){"use strict";var n=(0,fe("./adapter_factory.js").adapterFactory)({window:typeof window>"u"?void 0:window});ge.exports=n},{"./adapter_factory.js":2}],2:[function(fe,ge,I){"use strict";function p(W){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(W)}Object.defineProperty(I,"__esModule",{value:!0}),I.adapterFactory=function oe(){var k=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).window,re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0},b=n.log,i=n.detectBrowser(k),l={browserDetails:i,commonShim:M,extractVersion:n.extractVersion,disableLog:n.disableLog,disableWarnings:n.disableWarnings,sdp:x};switch(i.browser){case"chrome":if(!e||!e.shimPeerConnection||!re.shimChrome)return b("Chrome shim is not included in this adapter release."),l;if(null===i.version)return b("Chrome shim can not determine version, not shimming."),l;b("adapter.js shimming chrome."),l.browserShim=e,M.shimAddIceCandidateNullOrEmpty(k,i),M.shimParameterlessSetLocalDescription(k,i),e.shimGetUserMedia(k,i),e.shimMediaStream(k,i),e.shimPeerConnection(k,i),e.shimOnTrack(k,i),e.shimAddTrackRemoveTrack(k,i),e.shimGetSendersWithDtmf(k,i),e.shimSenderReceiverGetStats(k,i),e.fixNegotiationNeeded(k,i),M.shimRTCIceCandidate(k,i),M.shimRTCIceCandidateRelayProtocol(k,i),M.shimConnectionState(k,i),M.shimMaxMessageSize(k,i),M.shimSendThrowTypeError(k,i),M.removeExtmapAllowMixed(k,i);break;case"firefox":if(!f||!f.shimPeerConnection||!re.shimFirefox)return b("Firefox shim is not included in this adapter release."),l;b("adapter.js shimming firefox."),l.browserShim=f,M.shimAddIceCandidateNullOrEmpty(k,i),M.shimParameterlessSetLocalDescription(k,i),f.shimGetUserMedia(k,i),f.shimPeerConnection(k,i),f.shimGetStats(k,i),f.shimOnTrack(k,i),f.shimRemoveStream(k,i),f.shimSenderGetStats(k,i),f.shimReceiverGetStats(k,i),f.shimRTCDataChannel
1(k,i),f.shimAddTransceiver(k,i),f.shimGetParameters(k,i),f.shimCreateOffer(k,i),f.shimCreateAnswer(k,i),M.shimRTCIceCandidate(k,i),M.shimConnectionState(k,i),M.shimMaxMessageSize(k,i),M.shimSendThrowTypeError(k,i);break;case"safari":if(!h||!re.shimSafari)return b("Safari shim is not included in this adapter release."),l;b("adapter.js shimming safari."),l.browserShim=h,M.shimAddIceCandidateNullOrEmpty(k,i),M.shimParameterlessSetLocalDescription(k,i),h.shimRTCIceServerUrls(k,i),h.shimCreateOfferLegacy(k,i),h.shimCallbacksAPI(k,i),h.shimLocalStreamsAPI(k,i),h.shimRemoteStreamsAPI(k,i),h.shimTrackEventTransceiver(k,i),h.shimGetUserMedia(k,i),h.shimAudioContext(k,i),M.shimRTCIceCandidate(k,i),M.shimRTCIceCandidateRelayProtocol(k,i),M.shimMaxMessageSize(k,i),M.shimSendThrowTypeError(k,i),M.removeExtmapAllowMixed(k,i);break;default:b("Unsupported browser!")}return l};var n=Z(fe("./utils")),e=Z(fe("./chrome/chrome_shim")),f=Z(fe("./firefox/firefox_shim")),h=Z(fe("./safari/safari_shim")),M=Z(fe("./common_shim")),x=Z(fe("sdp"));function Z(W,k){if("function"==typeof WeakMap)var re=new WeakMap,b=new WeakMap;return(Z=function(l,t){if(!t&&l&&l.__esModule)return l;var d,r,s={__proto__:null,default:l};if(null===l||"object"!=p(l)&&"function"!=typeof l)return s;if(d=t?b:re){if(d.has(l))return d.get(l);d.set(l,s)}for(var T in l)"default"!==T&&{}.hasOwnProperty.call(l,T)&&((r=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,T))&&(r.get||r.set)?d(s,T,r):s[T]=l[T]);return s})(W,k)}},{"./chrome/chrome_shim":3,"./common_shim":5,"./firefox/firefox_shim":6,"./safari/safari_shim":9,"./utils":10,sdp:11}],3:[function(fe,ge,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.fixNegotiationNeeded=function l(t,d){d.version>102||p.wrapPeerConnectionEvent(t,"negotiationneeded",function(r){var s=r.target;if(!(d.version<72||s.getConfiguration&&"plan-b"===s.getConfiguration().sdpSemantics)||"stable"===s.signalingState)return r})},I.shimAddTrackRemoveTrack=function b(t,d){if(t.RTCPeerConnection){if(t.RTCPeerConnection.prototype.addTrack&&d.version>=65)return re(t);var r=t.RTCPeerConnection.prototype.getLocalStreams;t.RTCPeerConnection.prototype.getLocalStreams=function(){var o=this,D=r.apply(this);return this._reverseStreams=this._reverseStreams||{},D.map(function(U){return o._reverseStreams[U.id]})};var s=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(o){var D=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.getTracks().forEach(function(G){if(D.getSenders().find(function(ie){return ie.track===G}))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[o.id]){var U=new t.MediaStream(o.getTracks());this._streams[o.id]=U,this._reverseStreams[U.id]=o,o=U}s.apply(this,[o])};var T=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(o){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},T.apply(this,[this._streams[o.id]||o]),delete this._reverseStreams[this._streams[o.id]?this._streams[o.id].id:o.id],delete this._streams[o.id]},t.RTCPeerConnection.prototype.addTrack=function(o,D){var U=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var G=[].slice.call(arguments,1);if(1!==G.length||!G[0].getTracks().find(function(Re){return Re===o}))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(function(Re){return Re.track===o}))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var ie=this._streams[D.id];if(ie)ie.addTrack(o),Promise.resolve().then(function(){U.dispatchEvent(new Event("negotiationneeded"))});else{var Pe=new t.MediaStream([o]);this._streams[D.id]=Pe,this._reverseStreams[Pe.id]=D,this.addStream(Pe)}return this.getSenders().find(function(Re){return Re.track===o})},["createOffer","createAnswer"].forEach(function(E){var o=t.RTCPeerConnection.prototype[E],D=f({},E,function(){var U=this,G=arguments;return arguments.length&&"function"==typeof arguments[0]?o.apply(this,[function(ie){var Pe=O(U,ie);G[0].apply(null,[Pe])},function(ie){G[1]&&G[1].apply(null,ie)},arguments[2]]):o.apply(this,arguments).then(function(ie){return O(U,ie)})});t.RTCPeerConnection.prototype[E]=D[E]});var C=t.RTCPeerConnection.prototype.setLocalDescription;t.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function m(E,o){var D=o.sdp;
1return Object.keys(E._reverseStreams||[]).forEach(function(U){var G=E._reverseStreams[U],ne=E._streams[G.id];D=D.replace(new RegExp(G.id,"g"),ne.id)}),new RTCSessionDescription({type:o.type,sdp:D})}(this,arguments[0]),C.apply(this,arguments)):C.apply(this,arguments)};var R=Object.getOwnPropertyDescriptor(t.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(t.RTCPeerConnection.prototype,"localDescription",{get:function(){var o=R.get.apply(this);return""===o.type?o:O(this,o)}}),t.RTCPeerConnection.prototype.removeTrack=function(o){var G,D=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!o._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(o._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach(function(ne){D._streams[ne].getTracks().find(function(Pe){return o.track===Pe})&&(G=D._streams[ne])}),G&&(1===G.getTracks().length?this.removeStream(this._reverseStreams[G.id]):G.removeTrack(o.track),this.dispatchEvent(new Event("negotiationneeded")))}}function O(E,o){var D=o.sdp;return Object.keys(E._reverseStreams||[]).forEach(function(U){var G=E._reverseStreams[U];D=D.replace(new RegExp(E._streams[G.id].id,"g"),G.id)}),new RTCSessionDescription({type:o.type,sdp:D})}},I.shimAddTrackRemoveTrackWithNative=re,I.shimGetSendersWithDtmf=function W(t){if("object"===x(t)&&t.RTCPeerConnection&&!("getSenders"in t.RTCPeerConnection.prototype)&&"createDTMFSender"in t.RTCPeerConnection.prototype){var d=function(R,E){return{track:E,get dtmf(){return void 0===this._dtmf&&(this._dtmf="audio"===E.kind?R.createDTMFSender(E):null),this._dtmf},_pc:R}};if(!t.RTCPeerConnection.prototype.getSenders){t.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var r=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(R,E){var o=r.apply(this,arguments);return o||(o=d(this,R),this._senders.push(o)),o};var s=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(R){s.apply(this,arguments);var E=this._senders.indexOf(R);-1!==E&&this._senders.splice(E,1)}}var T=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(R){var E=this;this._senders=this._senders||[],T.apply(this,[R]),R.getTracks().forEach(function(o){E._senders.push(d(E,o))})};var O=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(R){var E=this;this._senders=this._senders||[],O.apply(this,[R]),R.getTracks().forEach(function(o){var D=E._senders.find(function(U){return U.track===o});D&&E._senders.splice(E._senders.indexOf(D),1)})}}else if("object"===x(t)&&t.RTCPeerConnection&&"getSenders"in t.RTCPeerConnection.prototype&&"createDTMFSender"in t.RTCPeerConnection.prototype&&t.RTCRtpSender&&!("dtmf"in t.RTCRtpSender.prototype)){var m=t.RTCPeerConnection.prototype.getSenders;t.RTCPeerConnection.prototype.getSenders=function(){var R=this,E=m.apply(this,[]);return E.forEach(function(o){return o._pc=R}),E},Object.defineProperty(t.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&(this._dtmf="audio"===this.track.kind?this._pc.createDTMFSender(this.track):null),this._dtmf}})}},Object.defineProperty(I,"shimGetUserMedia",{enumerable:!0,get:function(){return n.shimGetUserMedia}}),I.shimMediaStream=function Z(t){t.MediaStream=t.MediaStream||t.webkitMediaStream},I.shimOnTrack=function oe(t,d){if(!(d.version>102))if("object"===x(t)&&t.RTCPeerConnection&&!("ontrack"in t.RTCPeerConnection.prototype)){Object.defineProperty(t.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(T){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=T)},enumerable:!0,configurable:!0});var r=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){var T=this;return this._ontrackpoly||(this._ontrackpoly=function(O){O.stream.addEventListener("addtrack",function(m){var
1C;C=t.RTCPeerConnection.prototype.getReceivers?T.getReceivers().find(function(E){return E.track&&E.track.id===m.track.id}):{track:m.track};var R=new Event("track");R.track=m.track,R.receiver=C,R.transceiver={receiver:C},R.streams=[O.stream],T.dispatchEvent(R)}),O.stream.getTracks().forEach(function(m){var C;C=t.RTCPeerConnection.prototype.getReceivers?T.getReceivers().find(function(E){return E.track&&E.track.id===m.id}):{track:m};var R=new Event("track");R.track=m,R.receiver=C,R.transceiver={receiver:C},R.streams=[O.stream],T.dispatchEvent(R)})},this.addEventListener("addstream",this._ontrackpoly)),r.apply(this,arguments)}}else p.wrapPeerConnectionEvent(t,"track",function(s){return s.transceiver||Object.defineProperty(s,"transceiver",{value:{receiver:s.receiver}}),s})},I.shimPeerConnection=function i(t,d){!t.RTCPeerConnection&&t.webkitRTCPeerConnection&&(t.RTCPeerConnection=t.webkitRTCPeerConnection),t.RTCPeerConnection&&d.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){var s=t.RTCPeerConnection.prototype[r],T=f({},r,function(){return arguments[0]=new("addIceCandidate"===r?t.RTCIceCandidate:t.RTCSessionDescription)(arguments[0]),s.apply(this,arguments)});t.RTCPeerConnection.prototype[r]=T[r]})},I.shimSenderReceiverGetStats=function k(t,d){if(!(d.version>=67)&&"object"===x(t)&&t.RTCPeerConnection&&t.RTCRtpSender&&t.RTCRtpReceiver){if(!("getStats"in t.RTCRtpSender.prototype)){var r=t.RTCPeerConnection.prototype.getSenders;r&&(t.RTCPeerConnection.prototype.getSenders=function(){var C=this,R=r.apply(this,[]);return R.forEach(function(E){return E._pc=C}),R});var s=t.RTCPeerConnection.prototype.addTrack;s&&(t.RTCPeerConnection.prototype.addTrack=function(){var C=s.apply(this,arguments);return C._pc=this,C}),t.RTCRtpSender.prototype.getStats=function(){var C=this;return this._pc.getStats().then(function(R){return p.filterStats(R,C.track,!0)})}}if(!("getStats"in t.RTCRtpReceiver.prototype)){var T=t.RTCPeerConnection.prototype.getReceivers;T&&(t.RTCPeerConnection.prototype.getReceivers=function(){var C=this,R=T.apply(this,[]);return R.forEach(function(E){return E._pc=C}),R}),p.wrapPeerConnectionEvent(t,"track",function(m){return m.receiver._pc=m.srcElement,m}),t.RTCRtpReceiver.prototype.getStats=function(){var C=this;return this._pc.getStats().then(function(R){return p.filterStats(R,C.track,!1)})}}if("getStats"in t.RTCRtpSender.prototype&&"getStats"in t.RTCRtpReceiver.prototype){var O=t.RTCPeerConnection.prototype.getStats;t.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof t.MediaStreamTrack){var R,E,o,C=arguments[0];
1return this.getSenders().forEach(function(D){D.track===C&&(R?o=!0:R=D)}),this.getReceivers().forEach(function(D){return D.track===C&&(E?o=!0:E=D),D.track===C}),o||R&&E?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):R?R.getStats():E?E.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return O.apply(this,arguments)}}}};var p=function e(t,d){if("function"==typeof WeakMap)var r=new WeakMap,s=new WeakMap;return function(O,m){if(!m&&O&&O.__esModule)return O;var C,R,E={__proto__:null,default:O};if(null===O||"object"!=x(O)&&"function"!=typeof O)return E;if(C=m?s:r){if(C.has(O))return C.get(O);C.set(O,E)}for(var o in O)"default"!==o&&{}.hasOwnProperty.call(O,o)&&((R=(C=Object.defineProperty)&&Object.getOwnPropertyDescriptor(O,o))&&(R.get||R.set)?C(E,o,R):E[o]=O[o]);return E}(t,d)}(fe("../utils.js")),n=fe("./getusermedia");function f(t,d,r){return(d=function h(t){var d=function M(t,d){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var s=r.call(t,d||"default");if("object"!=x(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===d?String:Number)(t)}(t,"string");return"symbol"==x(d)?d:d+""}(d))in t?Object.defineProperty(t,d,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[d]=r,t}function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(t)}function re(t){t.RTCPeerConnection.prototype.getLocalStreams=function(){var m=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(function(C){return m._shimmedLocalStreams[C][0]})};var d=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(m,C){if(!C)return d.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var R=d.apply(this,arguments);return this._shimmedLocalStreams[C.id]?-1===this._shimmedLocalStreams[C.id].indexOf(R)&&this._shimmedLocalStreams[C.id].push(R):this._shimmedLocalStreams[C.id]=[C,R],R};var r=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(m){var C=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},m.getTracks().forEach(function(o){if(C.getSenders().find(function(U){return U.track===o}))throw new DOMException("Track already exists.","InvalidAccessError")});var R=this.getSenders();r.apply(this,arguments);var E=this.getSenders().filter(function(o){return-1===R.indexOf(o)});this._shimmedLocalStreams[m.id]=[m].concat(E)};var s=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(m){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[m.id],s.apply(this,arguments)};var T=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(m){var C=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},m&&Object.keys(this._shimmedLocalStreams).forEach(function(R){var E=C._shimmedLocalStreams[R].indexOf(m);-1!==E&&C._shimmedLocalStreams[R].splice(E,1),1===C._shimmedLocalStreams[R].length&&delete C._shimmedLocalStreams[R]}),T.apply(this,arguments)}}},{"../utils.js":10,"./getusermedia":4}],4:[function(fe,ge,I){"use strict";function n(M,x){if("function"==typeof WeakMap)var Z=new WeakMap,oe=new WeakMap;return(n=function(k,re){if(!re&&k&&k.__esModule)return k;var b,i,l={__proto__:null,default:k};if(null===k||"object"!=e(k)&&"function"!=typeof k)return l;if(b=re?oe:Z){if(b.has(k))return b.get(k);b.set(k,l)}for(var t in k)"default"!==t&&{}.hasOwnProperty.call(k,t)&&((i=(b=Object.defineProperty)&&Object.getOwnPropertyDescriptor(k,t))&&(i.get||i.set)?b(l,t,i):l[t]=k[t]);return l})(M,x)}function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(M)}Object.defineProperty(I,"__esModule",{value:!0}),I.shimGetUserMedia=function h(M,x){var Z=M&&M.navigator;if(Z.mediaDevices){var oe=function(l){if("object"!==e(l)||l.mandatory||l.optional)return l;var t={};return Object.keys(l).forEach(function(d){if("require"!==d&&"advanced"!==d&&"mediaSource"!==d){var r="object"===e(l[d])?l[d]:{ideal:l[d]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var s=function(m,C){return m?m+C.charAt(0).toUpperCase()+C.slice(1):"deviceId"===C?"sourceId":C};if(void 0!==r.ideal){t.optional=t.optional||[];var T={};
1"number"==typeof r.ideal?(T[s("min",d)]=r.ideal,t.optional.push(T),(T={})[s("max",d)]=r.ideal,t.optional.push(T)):(T[s("",d)]=r.ideal,t.optional.push(T))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[s("",d)]=r.exact):["min","max"].forEach(function(O){void 0!==r[O]&&(t.mandatory=t.mandatory||{},t.mandatory[s(O,d)]=r[O])})}}),l.advanced&&(t.optional=(t.optional||[]).concat(l.advanced)),t},W=function(l,t){if(x.version>=61)return t(l);if((l=JSON.parse(JSON.stringify(l)))&&"object"===e(l.audio)){var d=function(m,C,R){C in m&&!(R in m)&&(m[R]=m[C],delete m[C])};d((l=JSON.parse(JSON.stringify(l))).audio,"autoGainControl","googAutoGainControl"),d(l.audio,"noiseSuppression","googNoiseSuppression"),l.audio=oe(l.audio)}if(l&&"object"===e(l.video)){var r=l.video.facingMode;r=r&&("object"===e(r)?r:{ideal:r});var T,s=x.version<66;if(r&&("user"===r.exact||"environment"===r.exact||"user"===r.ideal||"environment"===r.ideal)&&(!Z.mediaDevices.getSupportedConstraints||!Z.mediaDevices.getSupportedConstraints().facingMode||s)&&(delete l.video.facingMode,"environment"===r.exact||"environment"===r.ideal?T=["back","rear"]:("user"===r.exact||"user"===r.ideal)&&(T=["front"]),T))return Z.mediaDevices.enumerateDevices().then(function(O){var m=(O=O.filter(function(C){return"videoinput"===C.kind})).find(function(C){return T.some(function(R){return C.label.toLowerCase().includes(R)})});return!m&&O.length&&T.includes("back")&&(m=O[O.length-1]),m&&(l.video.deviceId=r.exact?{exact:m.deviceId}:{ideal:m.deviceId}),l.video=oe(l.video),f("chrome: "+JSON.stringify(l)),t(l)});l.video=oe(l.video)}return f("chrome: "+JSON.stringify(l)),t(l)},k=function(l){return x.version>=64?l:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[l.name]||l.name,message:l.message,constraint:l.constraint||l.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(Z.getUserMedia=function(l,t,d){W(l,function(r){Z.webkitGetUserMedia(r,t,function(s){d&&d(k(s))})})}.bind(Z),Z.mediaDevices.getUserMedia){var b=Z.mediaDevices.getUserMedia.bind(Z.mediaDevices);Z.mediaDevices.getUserMedia=function(i){return W(i,function(l){return b(l).then(function(t){if(l.audio&&!t.getAudioTracks().length||l.video&&!t.getVideoTracks().length)throw t.getTracks().forEach(function(d){d.stop()}),new DOMException("","NotFoundError");return t},function(t){return Promise.reject(k(t))})})}}}};var f=n(fe("../utils.js")).log},{"../utils.js":10}],5:[function(fe,ge,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.removeExtmapAllowMixed=function k(i,l){if(i.RTCPeerConnection&&!("chrome"===l.browser&&l.version>=71)&&!("safari"===l.browser&&l._safariVersion>=13.1)){var t=i.RTCPeerConnection.prototype.setRemoteDescription;i.RTCPeerConnection.prototype.setRemoteDescription=function(r){if(r&&r.sdp&&-1!==r.sdp.indexOf("\na=extmap-allow-mixed")){var s=r.sdp.split("\n").filter(function(T){return"a=extmap-allow-mixed"!==T.trim()}).join("\n");i.RTCSessionDescription&&r instanceof i.RTCSessionDescription?arguments[0]=new i.RTCSessionDescription({type:r.type,sdp:s}):r.sdp=s}return t.apply(this,arguments)}}},I.shimAddIceCandidateNullOrEmpty=function re(i,l){if(i.RTCPeerConnection&&i.RTCPeerConnection.prototype){var t=i.RTCPeerConnection.prototype.addIceCandidate;!t||0===t.length||(i.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===l.browser&&l.version<78||"firefox"===l.browser&&l.version<68||"safari"===l.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}},I.shimConnectionState=function W(i){if(i.RTCPeerConnection&&!("connectionState"in i.RTCPeerConnection.prototype)){var l=i.RTCPeerConnection.prototype;Object.defineProperty(l,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(l,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(d){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),d&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=d)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(function(t){var d=l[t];l[t]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(r){var s=r.target;if(s._lastConnectionState!==s.connectionState){s._lastConnectionState=s.connectionState;var T=new Event("connectionstatechange",r);s.dispatchEvent(T)}return r},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),d.apply(this,arguments)}})}},I.shimMaxMessageSize=function Z(i,l){if(i.RTCPeerConnection){"sctp"in i.RTCPeerConnection.prototype||Ob
1ject.defineProperty(i.RTCPeerConnection.prototype,"sctp",{get:function(){return typeof this._sctp>"u"?null:this._sctp}});var T=i.RTCPeerConnection.prototype.setRemoteDescription;i.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===l.browser&&l.version>=76&&"plan-b"===this.getConfiguration().sdpSemantics&&Object.defineProperty(this,"sctp",{get:function(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0}),function(m){if(!m||!m.sdp)return!1;var C=p.default.splitSections(m.sdp);return C.shift(),C.some(function(R){var E=p.default.parseMLine(R);return E&&"application"===E.kind&&-1!==E.protocol.indexOf("SCTP")})}(arguments[0])){var D,R=function(m){var C=m.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===C||C.length<2)return-1;var R=parseInt(C[1],10);return R!=R?-1:R}(arguments[0]),E=(m=R,C=65536,"firefox"===l.browser&&(C=l.version<57?-1===m?16384:2147483637:l.version<60?57===l.version?65535:65536:2147483637),C),o=function(m,C){var R=65536;"firefox"===l.browser&&57===l.version&&(R=65535);var E=p.default.matchPrefix(m.sdp,"a=max-message-size:");return E.length>0?R=parseInt(E[0].substring(19),10):"firefox"===l.browser&&-1!==C&&(R=2147483637),R}(arguments[0],R);D=0===E&&0===o?Number.POSITIVE_INFINITY:0===E||0===o?Math.max(E,o):Math.min(E,o);var U={};Object.defineProperty(U,"maxMessageSize",{get:function(){return D}}),this._sctp=U}var m,C;return T.apply(this,arguments)}}},I.shimParameterlessSetLocalDescription=function b(i,l){if(i.RTCPeerConnection&&i.RTCPeerConnection.prototype){var t=i.RTCPeerConnection.prototype.setLocalDescription;!t||0===t.length||(i.RTCPeerConnection.prototype.setLocalDescription=function(){var r=this,s=arguments[0]||{};if("object"!==h(s)||s.type&&s.sdp)return t.apply(this,arguments);if(!(s={type:s.type,sdp:s.sdp}).type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":s.type="offer";break;default:s.type="answer"}return s.sdp||"offer"!==s.type&&"answer"!==s.type?t.apply(this,[s]):("offer"===s.type?this.createOffer:this.createAnswer).apply(this).then(function(O){return t.apply(r,[O])})})}},I.shimRTCIceCandidate=function M(i){if(!(!i.RTCIceCandidate||i.RTCIceCandidate&&"foundation"in i.RTCIceCandidate.prototype)){var l=i.RTCIceCandidate;i.RTCIceCandidate=function(d){if("object"===h(d)&&d.candidate&&0===d.candidate.indexOf("a=")&&((d=JSON.parse(JSON.stringify(d))).candidate=d.candidate.substring(2)),d.candidate&&d.candidate.length){var r=new l(d),s=p.default.parseCandidate(d.candidate);for(var T in s)T in r||Object.defineProperty(r,T,{value:s[T]});return r.toJSON=function(){return{candidate:r.candidate,sdpMid:r.sdpMid,sdpMLineIndex:r.sdpMLineIndex,usernameFragment:r.usernameFragment}},r}return new l(d)},i.RTCIceCandidate.prototype=l.prototype,n.wrapPeerConnectionEvent(i,"icecandidate",function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new i.RTCIceCandidate(t.candidate),writable:"false"}),t})}},I.shimRTCIceCandidateRelayProtocol=function x(i){!i.RTCIceCandidate||i.RTCIceCandidate&&"relayProtocol"in i.RTCIceCandidate.prototype||n.wrapPeerConnectionEvent(i,"icecandidate",function(l){if(l.candidate){var t=p.default.parseCandidate(l.candidate.candidate);"relay"===t.type&&(l.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return l})},I.shimSendThrowTypeError=function oe(i,l){if(!(!i.RTCPeerConnection||!("createDataChannel"in i.RTCPeerConnection.prototype)||"chrome"===l.browser&&l.version>149||"firefox"===l.browser&&l.version>60)){var d=i.RTCPeerConnection.prototype.createDataChannel;i.RTCPeerConnection.prototype.createDataChannel=function(){var s=d.apply(this,arguments);return t(s,this),s},n.wrapPeerConnectionEvent(i,"datachannel",function(r){return t(r.channel,r.target),r})}function t(r,s){var T=r.send;r.send=function(){var m=arguments[0];if("open"===r.readyState&&s.sctp&&(m.length||m.size||m.byteLength)>s.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+s.sctp.maxMessageSize+" bytes)");return T.apply(r,arguments)}}};var p=function f(i){return i&&i.__esModule?i:{default:i}}(fe("sdp")),n=function e(i,l){if("function"==typeof WeakMap)var t=new WeakMap,d=new WeakMap;return function(s,T){if(!T&&s&&s.__esModule)return s;var O,m,C={__proto__:null,default:s};if(null===s||"object"!=h(s)&&"function"!=typeof s)return C;if(O=T?d:t){if(O.has(s))return O.get(s);O.set(s,C)}for(var R in s)"default"!==R&&{}.hasOwnProperty.call(s,R)&&((m=(O=Object.defineProperty)&&Object.getOwnPropertyDescriptor(s,R))&&(m.get||m.set)?O(C,R,m):C[R]=s[R]);return C}(i,l)}(fe("./utils"));
1function h(i){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(i)}},{"./utils":10,sdp:11}],6:[function(fe,ge,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.shimAddTransceiver=function m(o){if("object"===i(o)&&o.RTCPeerConnection){var D=o.RTCPeerConnection.prototype.addTransceiver;D&&(o.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var G=arguments[1]&&arguments[1].sendEncodings;void 0===G&&(G=[]);var ne=(G=function h(o){return function oe(o){if(Array.isArray(o))return W(o)}(o)||function Z(o){if(typeof Symbol<"u"&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)}(o)||function x(o,D){if(o){if("string"==typeof o)return W(o,D);var U={}.toString.call(o).slice(8,-1);return"Object"===U&&o.constructor&&(U=o.constructor.name),"Map"===U||"Set"===U?Array.from(o):"Arguments"===U||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?W(o,D):void 0}}(o)||function M(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(G)).length>0;ne&&G.forEach(function(Me){if("rid"in Me&&!/^[a-z0-9]{0,16}$/i.test(Me.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in Me&&!(parseFloat(Me.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in Me&&!(parseFloat(Me.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});var ie=D.apply(this,arguments);if(ne){var Pe=ie.sender,Re=Pe.getParameters();(!("encodings"in Re)||1===Re.encodings.length&&0===Object.keys(Re.encodings[0]).length)&&(Re.encodings=G,Pe.sendEncodings=G,this.setParametersPromises.push(Pe.setParameters(Re).then(function(){delete Pe.sendEncodings}).catch(function(){delete Pe.sendEncodings})))}return ie})}},I.shimCreateAnswer=function E(o){if("object"===i(o)&&o.RTCPeerConnection){var D=o.RTCPeerConnection.prototype.createAnswer;o.RTCPeerConnection.prototype.createAnswer=function(){var G=arguments,ne=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return D.apply(ne,G)}).finally(function(){ne.setParametersPromises=[]}):D.apply(this,arguments)}}},I.shimCreateOffer=function R(o){if("object"===i(o)&&o.RTCPeerConnection){var D=o.RTCPeerConnection.prototype.createOffer;o.RTCPeerConnection.prototype.createOffer=function(){var G=arguments,ne=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return D.apply(ne,G)}).finally(function(){ne.setParametersPromises=[]}):D.apply(this,arguments)}}},Object.defineProperty(I,"shimGetDisplayMedia",{enumerable:!0,get:function(){return e.shimGetDisplayMedia}}),I.shimGetParameters=function C(o){if("object"===i(o)&&o.RTCRtpSender){var D=o.RTCRtpSender.prototype.getParameters;D&&(o.RTCRtpSender.prototype.getParameters=function(){var G=D.apply(this,arguments);return"encodings"in G||(G.encodings=[].concat(this.sendEncodings||[{}])),G})}},I.shimGetStats=function d(o,D){if("object"===i(o)&&(o.RTCPeerConnection||o.mozRTCPeerConnection)&&!(D.version>=151)){var U={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},G=o.RTCPeerConnection.prototype.getStats;o.RTCPeerConnection.prototype.getStats=function(){var ie=Array.prototype.slice.call(arguments),Pe=ie[0],Re=ie[1],Me=ie[2];return"closed"===this.signalingState?Promise.resolve(new Map):G.apply(this,[Pe||null]).then(function(Ae){if(D.version<53&&!Re)try{Ae.forEach(function(Ie){Ie.type=U[Ie.type]||Ie.type})}catch(Ie){if("TypeError"!==Ie.name)throw Ie;Ae.forEach(function(et,ot){Ae.set(ot,Object.assign({},et,{type:U[et.type]||et.type}))})}return Ae}).then(Re,Me)}}},Object.defineProperty(I,"shimGetUserMedia",{enumerable:!0,get:function(){return n.shimGetUserMedia}}),I.shimOnTrack=function l(o){"object"===i(o)&&o.RTCTrackEvent&&"receiver"in o.RTCTrackEvent.prototype&&!("transceiver"in o.RTCTrackEvent.prototype)&&Object.defineProperty(o.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},I.shimPeerConnection=function t(o,D){"object"!==i(o)||!o.RTCPeerConnection&&!o.mozRTCPeerConnection||(!o.RTCPeerConnection&&o.mozRTCPeerConnection&&(o.RTCPeerConnection=o.mozRTCPeerConnection),D.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(U){var G=o.RTCPeerConnection.prototype[U],ne=function k(o,D,U){return(D=function re(o){var D=function b(o,D){if("object"!=i(o)||!o)return o;var U=o[Symbol.toPrimitive];if(void 0!==U){var G=U.call(o,D||"default");if("object"!=i(G))return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===D?String:Number)(o)}(o,"string");return"symbol"==i(D)?D:D+""}(D))in o?Object.defineProperty(o,D,{value:U,enumerable:!0,configurable:!0,writable:!0}):o[D]=U,o}({},U,function(){return arguments[0]=new("addIceCandidate"===U?o.RTCIceCandidate:o.RTCSessionDescription)(arguments[0]),G.apply(this,arguments)});o.RTCPeerConnection.prototype[U]=ne[U]}))},I.shimRTCDataChannel=function O(o){o.DataChannel&&!o.RTCDataChannel&&(o.RTCDataChannel=o.DataChannel)},I.shimReceiverGetStats=function s(o){if("object"===i(o)&&o.RTCPeerConnection&&o.RTCRtpSender&&(!o.RTCRtpSender||!("getStats"in o.RTCRtpReceiver.prototype))){var D=o.RTCPeerConnection.prototype.getReceivers;D&&(o.RTCPeerConnection.prototype.getReceivers=function(){var G=this,ne=D.apply(this,[]);return ne.forEach(function(ie){return ie._pc=G}),ne}),p.wrapPeerConnectionEvent(o,"track",function(U){return U.receiver._pc=U.srcElement,U}),o.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}},I.shimRemoveStream=function T(o){!o.RTCPeerConnection||"removeStream"in o.RTCPeerConnection.prototype||(o.RTCPeerConnection.prototype.removeStream=function(U){var G=this;
1p.deprecated("removeStream","removeTrack"),this.getSenders().forEach(function(ne){ne.track&&U.getTracks().includes(ne.track)&&G.removeTrack(ne)})})},I.shimSenderGetStats=function r(o){if("object"===i(o)&&o.RTCPeerConnection&&o.RTCRtpSender&&(!o.RTCRtpSender||!("getStats"in o.RTCRtpSender.prototype))){var D=o.RTCPeerConnection.prototype.getSenders;D&&(o.RTCPeerConnection.prototype.getSenders=function(){var ne=this,ie=D.apply(this,[]);return ie.forEach(function(Pe){return Pe._pc=ne}),ie});var U=o.RTCPeerConnection.prototype.addTrack;U&&(o.RTCPeerConnection.prototype.addTrack=function(){var ne=U.apply(this,arguments);return ne._pc=this,ne}),o.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}};var p=function f(o,D){if("function"==typeof WeakMap)var U=new WeakMap,G=new WeakMap;return function(ie,Pe){if(!Pe&&ie&&ie.__esModule)return ie;var Re,Me,Ae={__proto__:null,default:ie};if(null===ie||"object"!=i(ie)&&"function"!=typeof ie)return Ae;if(Re=Pe?G:U){if(Re.has(ie))return Re.get(ie);Re.set(ie,Ae)}for(var Ie in ie)"default"!==Ie&&{}.hasOwnProperty.call(ie,Ie)&&((Me=(Re=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ie,Ie))&&(Me.get||Me.set)?Re(Ae,Ie,Me):Ae[Ie]=ie[Ie]);return Ae}(o,D)}(fe("../utils")),n=fe("./getusermedia"),e=fe("./getdisplaymedia");function W(o,D){(null==D||D>o.length)&&(D=o.length);for(var U=0,G=Array(D);U<D;U++)G[U]=o[U];return G}function i(o){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(o)}},{"../utils":10,"./getdisplaymedia":7,"./getusermedia":8}],7:[function(fe,ge,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.shimGetDisplayMedia=function p(n,e){n.navigator.mediaDevices&&"getDisplayMedia"in n.navigator.mediaDevices||n.navigator.mediaDevices&&(n.navigator.mediaDevices.getDisplayMedia=function(h){if(!h||!h.video){var M=new DOMException("getDisplayMedia without video constraints is undefined");return M.name="NotFoundError",M.code=8,Promise.reject(M)}return!0===h.video?h.video={mediaSource:e}:h.video.mediaSource=e,n.navigator.mediaDevices.getUserMedia(h)})}},{}],8:[function(fe,ge,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.shimGetUserMedia=function f(h,M){var x=h&&h.navigator,Z=h&&h.MediaStreamTrack;if(x.getUserMedia=function(b,i,l){p.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),x.mediaDevices.getUserMedia(b).then(i,l)},!(M.version>55&&"autoGainControl"in x.mediaDevices.getSupportedConstraints())){var oe=function(i,l,t){l in i&&!(t in i)&&(i[t]=i[l],delete i[l])},W=x.mediaDevices.getUserMedia.bind(x.mediaDevices);if(x.mediaDevices.getUserMedia=function(b){return"object"===e(b)&&"object"===e(b.audio)&&(b=JSON.parse(JSON.stringify(b)),oe(b.audio,"autoGainControl","mozAutoGainControl"),oe(b.audio,"noiseSuppression","mozNoiseSuppression")),W(b)},Z&&Z.prototype.getSettings){var k=Z.prototype.getSettings;Z.prototype.getSettings=function(){var b=k.apply(this,arguments);return oe(b,"mozAutoGainControl","autoGainControl"),oe(b,"mozNoiseSuppression","noiseSuppression"),b}}if(Z&&Z.prototype.applyConstraints){var re=Z.prototype.applyConstraints;Z.prototype.applyConstraints=function(b){return"audio"===this.kind&&"object"===e(b)&&(b=JSON.parse(JSON.stringify(b)),oe(b,"autoGainControl","mozAutoGainControl"),oe(b,"noiseSuppression","mozNoiseSuppression")),re.apply(this,[b])}}}};var p=function n(h,M){if("function"==typeof WeakMap)var x=new WeakMap,Z=new WeakMap;return function(W,k){if(!k&&W&&W.__esModule)return W;var re,b,i={__proto__:null,default:W};if(null===W||"object"!=e(W)&&"function"!=typeof W)return i;if(re=k?Z:x){if(re.has(W))return re.get(W);re.set(W,i)}for(var l in W)"default"!==l&&{}.hasOwnProperty.call(W,l)&&((b=(re=Object.defineProperty)&&Object.getOwnPropertyDescriptor(W,l))&&(b.get||b.set)?re(i,l,b):i[l]=W[l]);return i}(h,M)}(fe("../utils"));function e(h){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M}
1)(h)}},{"../utils":10}],9:[function(fe,ge,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.shimAudioContext=function re(b){"object"!==e(b)||b.AudioContext||(b.AudioContext=b.webkitAudioContext)},I.shimCallbacksAPI=function M(b){if("object"===e(b)&&b.RTCPeerConnection){var i=b.RTCPeerConnection.prototype,l=i.createOffer,t=i.createAnswer,d=i.setLocalDescription,r=i.setRemoteDescription,s=i.addIceCandidate;i.createOffer=function(m,C){var E=l.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return C?(E.then(m,C),Promise.resolve()):E},i.createAnswer=function(m,C){var E=t.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return C?(E.then(m,C),Promise.resolve()):E};var T=function(m,C,R){var E=d.apply(this,[m]);return R?(E.then(C,R),Promise.resolve()):E};i.setLocalDescription=T,i.setRemoteDescription=T=function(m,C,R){var E=r.apply(this,[m]);return R?(E.then(C,R),Promise.resolve()):E},i.addIceCandidate=T=function(m,C,R){var E=s.apply(this,[m]);return R?(E.then(C,R),Promise.resolve()):E}}},I.shimConstraints=Z,I.shimCreateOfferLegacy=function k(b){var i=b.RTCPeerConnection.prototype.createOffer;b.RTCPeerConnection.prototype.createOffer=function(t){if(t){typeof t.offerToReceiveAudio<"u"&&(t.offerToReceiveAudio=!!t.offerToReceiveAudio);var d=this.getTransceivers().find(function(s){return"audio"===s.receiver.track.kind});!1===t.offerToReceiveAudio&&d?"sendrecv"===d.direction?d.setDirection?d.setDirection("sendonly"):d.direction="sendonly":"recvonly"===d.direction&&(d.setDirection?d.setDirection("inactive"):d.direction="inactive"):!0===t.offerToReceiveAudio&&!d&&this.addTransceiver("audio",{direction:"recvonly"}),typeof t.offerToReceiveVideo<"u"&&(t.offerToReceiveVideo=!!t.offerToReceiveVideo);var r=this.getTransceivers().find(function(s){return"video"===s.receiver.track.kind});!1===t.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0===t.offerToReceiveVideo&&!r&&this.addTransceiver("video",{direction:"recvonly"})}return i.apply(this,arguments)}},I.shimGetUserMedia=function x(b){var i=b&&b.navigator;if(i.mediaDevices&&i.mediaDevices.getUserMedia){var l=i.mediaDevices,t=l.getUserMedia.bind(l);i.mediaDevices.getUserMedia=function(d){return t(Z(d))}}!i.getUserMedia&&i.mediaDevices&&i.mediaDevices.getUserMedia&&(i.getUserMedia=function(r,s,T){i.mediaDevices.getUserMedia(r).then(s,T)}.bind(i))},I.shimLocalStreamsAPI=function f(b){if("object"===e(b)&&b.RTCPeerConnection){if("getLocalStreams"in b.RTCPeerConnection.prototype||(b.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in b.RTCPeerConnection.prototype)){var i=b.RTCPeerConnection.prototype.addTrack;b.RTCPeerConnection.prototype.addStream=function(t){var d=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(t)||this._localStreams.push(t),t.getAudioTracks().forEach(function(r){return i.call(d,r,t)}),t.getVideoTracks().forEach(function(r){return i.call(d,r,t)})},b.RTCPeerConnection.prototype.addTrack=function(t){for(var d=this,r=arguments.length,s=new Array(r>1?r-1:0),T=1;T<r;T++)s[T-1]=arguments[T];return s&&s.forEach(function(O){d._localStreams?d._localStreams.includes(O)||d._localStreams.push(O):d._localStreams=[O]}),i.apply(this,arguments)}}"removeStream"in b.RTCPeerConnection.prototype||(b.RTCPeerConnection.prototype.removeStream=function(t){var d=this;this._localStreams||(this._localStreams=[]);var r=this._localStreams.indexOf(t);if(-1!==r){this._localStreams.splice(r,1);var s=t.getTracks();this.getSenders().forEach(function(T){s.includes(T.track)&&d.removeTrack(T)})}})}},I.shimRTCIceServerUrls=function oe(b){if(b.RTCPeerConnection){var i=b.RTCPeerConnection;b.RTCPeerConnection=function(t,d){if(t&&t.iceServers){for(var r=[],s=0;s<t.iceServers.length;s++){var T=t.iceServers[s];void 0===T.urls&&T.url?(p.deprecated("RTCIceServer.url","RTCIceServer.urls"),(T=JSON.parse(JSON.stringify(T))).urls=T.url,delete T.url,r.push(T)):r.push(t.iceServers[s])}t.iceServers=r}return new i(t,d)},b.RTCPeerConnection.prototype=i.prototype,"generateCertificate"in i&&Object.defineProperty(b.RTCPeerConnection,"generateCertificate",{get:function(){return i.generateCertificate}})}},I.shimRemoteStreamsAPI=function h(b){if("object"===e(b)&&b.RTCPeerConnection&&("getRemoteStreams"in b.RTCPeerConnection.prototype||(b.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in b.RTCPeerConnection.prototype))){Object.defineProperty(b.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(t){var d=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=t),this.addEventListener("track",this._onaddstreampoly=function(r){r.streams.forEac
1h(function(s){if(d._remoteStreams||(d._remoteStreams=[]),!d._remoteStreams.includes(s)){d._remoteStreams.push(s);var T=new Event("addstream");T.stream=s,d.dispatchEvent(T)}})})}});var i=b.RTCPeerConnection.prototype.setRemoteDescription;b.RTCPeerConnection.prototype.setRemoteDescription=function(){var t=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(d){d.streams.forEach(function(r){if(t._remoteStreams||(t._remoteStreams=[]),!(t._remoteStreams.indexOf(r)>=0)){t._remoteStreams.push(r);var s=new Event("addstream");s.stream=r,t.dispatchEvent(s)}})}),i.apply(t,arguments)}}},I.shimTrackEventTransceiver=function W(b){"object"===e(b)&&b.RTCTrackEvent&&"receiver"in b.RTCTrackEvent.prototype&&!("transceiver"in b.RTCTrackEvent.prototype)&&Object.defineProperty(b.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})};var p=function n(b,i){if("function"==typeof WeakMap)var l=new WeakMap,t=new WeakMap;return function(r,s){if(!s&&r&&r.__esModule)return r;var T,O,m={__proto__:null,default:r};if(null===r||"object"!=e(r)&&"function"!=typeof r)return m;if(T=s?t:l){if(T.has(r))return T.get(r);T.set(r,m)}for(var C in r)"default"!==C&&{}.hasOwnProperty.call(r,C)&&((O=(T=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,C))&&(O.get||O.set)?T(m,C,O):m[C]=r[C]);return m}(b,i)}(fe("../utils"));function e(b){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(b)}function Z(b){return b&&void 0!==b.video?Object.assign({},b,{video:p.compactObject(b.video)}):b}},{"../utils":10}],10:[function(fe,ge,I){"use strict";function p(r,s,T){return(s=function n(r){var s=function e(r,s){if("object"!=f(r)||!r)return r;var T=r[Symbol.toPrimitive];if(void 0!==T){var O=T.call(r,s||"default");if("object"!=f(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(r)}(r,"string");return"symbol"==f(s)?s:s+""}(s))in r?Object.defineProperty(r,s,{value:T,enumerable:!0,configurable:!0,writable:!0}):r[s]=T,r}function f(r){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(s){return typeof s}:function(s){return s&&"function"==typeof Symbol&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(r)}Object.defineProperty(I,"__esModule",{value:!0}),I.compactObject=function l(r){return i(r)?Object.keys(r).reduce(function(s,T){var O=i(r[T]),m=O?l(r[T]):r[T],C=O&&!Object.keys(m).length;return void 0===m||C?s:Object.assign(s,p({},T,m))},{}):r},I.deprecated=function re(r,s){M&&console.warn(r+" is deprecated, please use "+s+" instead.")},I.detectBrowser=function b(r){var s={browser:null,version:null};if(typeof r>"u"||!r.navigator||!r.navigator.userAgent)return s.browser="Not a browser.",s;var T=r.navigator;if(T.userAgentData&&T.userAgentData.brands){var O=T.userAgentData.brands.find(function(m){return"Chromium"===m.brand});if(O)return{browser:"chrome",version:parseInt(O.version,10)}}if(T.mozGetUserMedia)s.browser="firefox",s.version=parseInt(x(T.userAgent,/Firefox\/(\d+)\./,1));else if(T.webkitGetUserMedia||!1===r.isSecureContext&&r.webkitRTCPeerConnection)s.browser="chrome",s.version=parseInt(x(T.userAgent,/Chrom(e|ium)\/(\d+)\./,2))||null;else{if(!r.RTCPeerConnection||!T.userAgent.match(/AppleWebKit\/(\d+)\./))return s.browser="Not a supported browser.",s;s.browser="safari",s.version=parseInt(x(T.userAgent,/AppleWebKit\/(\d+)\./,1)),s.supportsUnifiedPlan=r.RTCRtpTransceiver&&"currentDirection"in r.RTCRtpTransceiver.prototype,s._safariVersion=x(T.userAgent,/Version\/(\d+(\.?\d+))/,1)}return s},I.disableLog=function oe(r){return"boolean"!=typeof r?new Error("Argument type: "+f(r)+". Please use a boolean."):(h=r,r?"adapter.js logging disabled":"adapter.js logging enabled")},I.disableWarnings=function W(r){return"boolean"!=typeof r?new Error("Argument type: "+f(r)+". Please use a boolean."):(M=!r,"adapter.js deprecation warnings "+(r?"disabled":"enabled"))},I.extractVersion=x,I.filterStats=function d(r,s,T){var O=T?"outbound-rtp":"inbound-rtp",m=new Map;if(null===s)return m;var C=[];return r.forEach(function(R){"track"===R.type&&R.trackIdentifier===s.id&&C.push(R)}
vendor: 4,261 bytes, line 1
1),C.forEach(function(R){r.forEach(function(E){E.type===O&&E.trackId===R.id&&t(r,E,m)})}),m},I.log=k,I.walkStats=t,I.wrapPeerConnectionEvent=function Z(r,s,T){if(r.RTCPeerConnection){if(!Object.getOwnPropertyDescriptor(EventTarget.prototype,"addEventListener").writable)return void k("Unable to polyfill events");var m=r.RTCPeerConnection.prototype,C=m.addEventListener;m.addEventListener=function(E,o){if(E!==s)return C.apply(this,arguments);var D=function(G){var ne=T(G);ne&&(o.handleEvent?o.handleEvent(ne):o(ne))};return this._eventMap=this._eventMap||{},this._eventMap[s]||(this._eventMap[s]=new Map),this._eventMap[s].set(o,D),C.apply(this,[E,D])};var R=m.removeEventListener;m.removeEventListener=function(E,o){if(E!==s||!this._eventMap||!this._eventMap[s])return R.apply(this,arguments);if(!this._eventMap[s].has(o))return R.apply(this,arguments);var D=this._eventMap[s].get(o);return this._eventMap[s].delete(o),0===this._eventMap[s].size&&delete this._eventMap[s],0===Object.keys(this._eventMap).length&&delete this._eventMap,R.apply(this,[E,D])},Object.defineProperty(m,"on"+s,{get:function(){return this["_on"+s]},set:function(o){this["_on"+s]&&(this.removeEventListener(s,this["_on"+s]),delete this["_on"+s]),o&&this.addEventListener(s,this["_on"+s]=o)},enumerable:!0,configurable:!0})}};var h=!0,M=!0;function x(r,s,T){var O=r.match(s);return O&&O.length>=T&&parseFloat(O[T],10)}function k(){if("object"===(typeof window>"u"?"undefined":f(window))){if(h)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function i(r){return"[object Object]"===Object.prototype.toString.call(r)}function t(r,s,T){!s||T.has(s.id)||(T.set(s.id,s),Object.keys(s).forEach(function(O){O.endsWith("Id")?t(r,r.get(s[O]),T):O.endsWith("Ids")&&s[O].forEach(function(m){t(r,r.get(m),T)})}))}},{}],11:[function(fe,ge,I){"use strict";const p={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};p.localCName=p.generateIdentifier(),p.splitLines=function(n){return n.trim().split("\n").map(e=>e.trim())},p.splitSections=function(n){return n.split("\nm=").map((f,h)=>(h>0?"m="+f:f).trim()+"\r\n")},p.getDescription=function(n){const e=p.splitSections(n);return e&&e[0]},p.getMediaSections=function(n){const e=p.splitSections(n);return e.shift(),e},p.matchPrefix=function(n,e){return p.splitLines(n).filter(f=>0===f.indexOf(e))},p.parseCandidate=function(n){let e;e=0===n.indexOf("a=candidate:")?n.substring(12).split(" "):n.substring(10).split(" ");const f={foundation:e[0],component:{1:"rtp",2:"rtcp"}[e[1]]||e[1],protocol:e[2].toLowerCase(),priority:parseInt(e[3],10),ip:e[4],address:e[4],port:parseInt(e[5],10),type:e[7]};for(let h=8;h<e.length;h+=2)switch(e[h]){case"raddr":f.relatedAddress=e[h+1];break;case"rport":f.relatedPort=parseInt(e[h+1],10);break;case"tcptype":f.tcpType=e[h+1];break;case"ufrag":f.ufrag=e[h+1],f.usernameFragment=e[h+1];break;default:void 0===f[e[h]]&&(f[e[h]]=e[h+1])}return f},p.writeCandidate=function(n){const e=[];e.push(n.foundation);const f=n.component;e.push("rtp"===f?1:"rtcp"===f?2:f),e.push(n.protocol.toUpperCase()),e.push(n.priority),e.push(n.address||n.ip),e.push(n.port);const h=n.type;return e.push("typ"),e.push(h),"host"!==h&&n.relatedAddress&&void 0!==n.relatedPort&&(e.push("raddr"),e.push(n.relatedAddress),e.push("rport"),e.push(n.relatedPort)),n.tcpType&&"tcp"===n.protocol.toLowerCase()&&(e.push("tcptype"),e.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(e.push("ufrag"),e.push(n.usernameFragment||n.ufrag)),"candidate:"+e.join(" ")},p.parseIceOptions=function(n){return n.substring(14).split(" ")},p.parseRtpMap=function(n){let e=n.substring(9).split(" ");const f={payloadType:parseInt(e.shift(),10)};return e=e[0].split("/"),f.name=e[0],f.clockRate=parseInt(e[1],10),f.channels=3===e.length?parseInt(e[2],10):1,f.numChannels=f.channels,f},p.writeRtpMap=function(n){let e=n.payloadType;void 0!==n.preferredPayloadType&&(e=n.preferredPayloadType);const f=n.channels||n.numChannels||1;return"a=rtpmap:"+e+" "+n.name+"/"+n.clockRate+(1!==f?"/"+f:"")+"\r\n"},p.parseExtmap=function(n){const e=n.substring(9).split(" ");return{id:parseInt(e[0],10),direction:e[0].indexOf("/")>0?e[0].split("/")[1]:"sendrecv",uri:e[1],attributes:e.slice(2).join(" ")}}
vendor: 7,066 bytes, line 1
1,p.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&"sendrecv"!==n.direction?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+"\r\n"},p.parseFmtp=function(n){const e={};let f;const h=n.substring(n.indexOf(" ")+1).split(";");for(let M=0;M<h.length;M++)f=h[M].trim().split("="),e[f[0].trim()]=f[1];return e},p.writeFmtp=function(n){let e="",f=n.payloadType;if(void 0!==n.preferredPayloadType&&(f=n.preferredPayloadType),n.parameters&&Object.keys(n.parameters).length){const h=[];Object.keys(n.parameters).forEach(M=>{h.push(void 0!==n.parameters[M]?M+"="+n.parameters[M]:M)}),e+="a=fmtp:"+f+" "+h.join(";")+"\r\n"}return e},p.parseRtcpFb=function(n){const e=n.substring(n.indexOf(" ")+1).split(" ");return{type:e.shift(),parameter:e.join(" ")}},p.writeRtcpFb=function(n){let e="",f=n.payloadType;return void 0!==n.preferredPayloadType&&(f=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(h=>{e+="a=rtcp-fb:"+f+" "+h.type+(h.parameter&&h.parameter.length?" "+h.parameter:"")+"\r\n"}),e},p.parseSsrcMedia=function(n){const e=n.indexOf(" "),f={ssrc:parseInt(n.substring(7,e),10)},h=n.indexOf(":",e);return h>-1?(f.attribute=n.substring(e+1,h),f.value=n.substring(h+1)):f.attribute=n.substring(e+1),f},p.parseSsrcGroup=function(n){const e=n.substring(13).split(" ");return{semantics:e.shift(),ssrcs:e.map(f=>parseInt(f,10))}},p.getMid=function(n){const e=p.matchPrefix(n,"a=mid:")[0];if(e)return e.substring(6)},p.parseFingerprint=function(n){const e=n.substring(14).split(" ");return{algorithm:e[0].toLowerCase(),value:e[1].toUpperCase()}},p.getDtlsParameters=function(n,e){return{role:"auto",fingerprints:p.matchPrefix(n+e,"a=fingerprint:").map(p.parseFingerprint)}},p.writeDtlsParameters=function(n,e){let f="a=setup:"+e+"\r\n";return n.fingerprints.forEach(h=>{f+="a=fingerprint:"+h.algorithm+" "+h.value+"\r\n"}),f},p.parseCryptoLine=function(n){const e=n.substring(9).split(" ");return{tag:parseInt(e[0],10),cryptoSuite:e[1],keyParams:e[2],sessionParams:e.slice(3)}},p.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+("object"==typeof n.keyParams?p.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+"\r\n"},p.parseCryptoKeyParams=function(n){if(0!==n.indexOf("inline:"))return null;const e=n.substring(7).split("|");return{keyMethod:"inline",keySalt:e[0],lifeTime:e[1],mkiValue:e[2]?e[2].split(":")[0]:void 0,mkiLength:e[2]?e[2].split(":")[1]:void 0}},p.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},p.getCryptoParameters=function(n,e){return p.matchPrefix(n+e,"a=crypto:").map(p.parseCryptoLine)},p.getIceParameters=function(n,e){const f=p.matchPrefix(n+e,"a=ice-ufrag:")[0],h=p.matchPrefix(n+e,"a=ice-pwd:")[0];return f&&h?{usernameFragment:f.substring(12),password:h.substring(10)}:null},p.writeIceParameters=function(n){let e="a=ice-ufrag:"+n.usernameFragment+"\r\na=ice-pwd:"+n.password+"\r\n";return n.iceLite&&(e+="a=ice-lite\r\n"),e},p.parseRtpParameters=function(n){const e={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},h=p.splitLines(n)[0].split(" ");e.profile=h[2];for(let x=3;x<h.length;x++){const Z=h[x],oe=p.matchPrefix(n,"a=rtpmap:"+Z+" ")[0];if(oe){const W=p.parseRtpMap(oe),k=p.matchPrefix(n,"a=fmtp:"+Z+" ");switch(W.parameters=k.length?p.parseFmtp(k[0]):{},W.rtcpFeedback=p.matchPrefix(n,"a=rtcp-fb:"+Z+" ").map(p.parseRtcpFb),e.codecs.push(W),W.name.toUpperCase()){case"RED":case"ULPFEC":e.fecMechanisms.push(W.name.toUpperCase())}}}p.matchPrefix(n,"a=extmap:").forEach(x=>{e.headerExtensions.push(p.parseExtmap(x))});const M=p.matchPrefix(n,"a=rtcp-fb:* ").map(p.parseRtcpFb);return e.codecs.forEach(x=>{M.forEach(Z=>{x.rtcpFeedback.find(W=>W.type===Z.type&&W.parameter===Z.parameter)||x.rtcpFeedback.push(Z)})}),e},p.writeRtpDescription=function(n,e){let f="";f+="m="+n+" ",f+=e.codecs.length>0?"9":"0",f+=" "+(e.profile||"UDP/TLS/RTP/SAVPF")+" ",f+=e.codecs.map(M=>void 0!==M.preferredPayloadType?M.preferredPayloadType:M.payloadType).join(" ")+"\r\n",f+="c=IN IP4 0.0.0.0\r\n",f+="a=rtcp:9 IN IP4 0.0.0.0\r\n",e.codecs.forEach(M=>{f+=p.writeRtpMap(M),f+=p.writeFmtp(M),f+=p.writeRtcpFb(M)});let h=0;return e.codecs.forEach(M=>{M.maxptime>h&&(h=M.maxptime)}),h>0&&(f+="a=maxptime:"+h+"\r\n"),e.headerExtensions&&e.headerExtensions.forEach(M=>{f+=p.writeExtmap(M)}),f},p.parseRtpEncodingParameters=function(n){const e=[],f=p.parseRtpParameters(n),h=-1!==f.fecMechanisms.indexOf("RED"),M=-1!==f.fecMechanisms.indexOf("ULPFEC"),x=p.matchPrefix(n,"a=ssrc:").map(re=>p.parseSsrcMedia(re)).filter(re=>"cname"===re.attribute),Z=x.length>0&&x[0].ssrc;let oe;const W=p.matchPrefix(n,"a=ssrc-group:FID").map(re=>re.substring(17).split(" ").map(i=>parseInt(i,10)));W.length>0&&W[0].length>1&&W[0][0]===Z&&(oe=W[0][1]),f.codecs.forEach(re=>{if("RTX"===re.name.toUpperCase()&&re.parameters.apt){let b={ssrc:Z,codecPayloadType:parseInt(re.parameters.apt,10)};Z&&oe&&(b.rtx={ssrc:oe}),e.push(b),h&&(b=JSON.parse(JSON.stringify(b)),b.fec={ssrc:Z,mechanism:M?"red+ulpfec":"red"},e.push(b))}}),0===e.length&&Z&&e.push({ssrc:Z});let k=p.matchPrefix(n,"b=");return k.length&&(k=0===k[0].indexOf("b=TIAS:")?parseInt(k[0].substring(7),10):0===k[0].indexOf("b=AS:")?1e3*parseInt(k[0].substring(5),10)*.95-16e3:void 0,e.forEach(re=>{re.maxBitrate=k})),e},p.parseRtcpParameters=function(n){const e={},f=p.matchPrefix(n,"a=ssrc:").map(x=>p.parseSsrcMedia(x)).filter(x=>"cname"===x.attribute)[0];f&&(e.cname=f.value,e.ssrc=f.ssrc);const h=p.matchPrefix(n,"a=rtcp-rsize");e.reducedSize=h.length>0,e.compound=0===h.length;const M=p.matchPrefix(n,"a=rtcp-mux");return e.mux=M.length>0,e},p.writeRtcpParameters=function(n){let e="";return n.reducedSize&&(e+="a=rtcp-rsize\r\n"),n.mux&&(e+="a=rtcp-mux\r\n"),void 0!==n.ssrc&&n.cname&&(e+="a=ssrc:"+n.ssrc+" cname:"+n.cname+"\r\n"),e},p.parseMsid=function(n){let e;const f=p.matchPrefix(n,"a=msid:");if(1===f.length)return e=f[0].substring(7).split(" "),{stream:e[0],track:e[1]};const h=p.matchPrefix(n,"a=ssrc:").map(M=>p.parseSsrcMedia(M)).filter(M=>"msid"===M.attribute);return h.length>0?(e=h[0].value.split(" "),{stream:e[0],track:e[1]}):void 0},p.parseSctpDescription=function(n){const e=p.parseMLine(n),f=p.matchPrefix(n,"a=max-message-size:");let h;f.length>0&&(h=parseInt(f[0].substring(19),10)),isNaN(h)&&(h=65536);const M=p.matchPrefix(n,"a=sctp-port:");if(M.length>0)return{port:parseInt(M[0].substring(12),10),protocol:e.fmt,maxMessageSize:h};const x=p.matchPrefix(n,"a=sctpmap:");if(x.length>0){const Z=x[0].substring(10).split(" ");return{port:parseInt(Z[0],10),protocol:Z[1],maxMessageSize:h}}},p.writeSctpDescription=function(n,e){let f=[];return f="DTLS/SCTP"!==n.protocol?["m="+n.kind+" 9 "+n.protocol+" "+e.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+e.port+"\r\n"]:["m="+n.kind+" 9 "+n.protocol+" "+e.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+e.port+" "+e.protocol+" 65535\r\n"],void 0!==e.maxMessageSize&&f.pu
1sh("a=max-message-size:"+e.maxMessageSize+"\r\n"),f.join("")},p.generateSessionId=function(){return Math.random().toString().substr(2,22)},p.writeSessionBoilerplate=function(n,e,f){let h;const M=void 0!==e?e:2;return h=n||p.generateSessionId(),"v=0\r\no="+(f||"thisisadapterortc")+" "+h+" "+M+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},p.getDirection=function(n,e){const f=p.splitLines(n);for(let h=0;h<f.length;h++)switch(f[h]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return f[h].substring(2)}return e?p.getDirection(e):"sendrecv"},p.getKind=function(n){return p.splitLines(n)[0].split(" ")[0].substring(2)},p.isRejected=function(n){return"0"===n.split(" ",2)[1]},p.parseMLine=function(n){const f=p.splitLines(n)[0].substring(2).split(" ");return{kind:f[0],port:parseInt(f[1],10),protocol:f[2],fmt:f.slice(3).join(" ")}},p.parseOLine=function(n){const f=p.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:f[0],sessionId:f[1],sessionVersion:parseInt(f[2],10),netType:f[3],addressType:f[4],address:f[5]}},p.isValidSDP=function(n){if("string"!=typeof n||0===n.length)return!1;const e=p.splitLines(n);for(let f=0;f<e.length;f++)if(e[f].length<2||"="!==e[f].charAt(1))return!1;return!0},"object"==typeof ge&&(ge.exports=p)},{}]},{},[1])(1)},96935(){"use strict";var Be=Object.defineProperty,qe=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,I=(c,a,P)=>a in c?Be(c,a,{enumerable:!0,configurable:!0,writable:!0,value:P}):c[a]=P,p=(c,a)=>{for(var P in a||(a={}))fe.call(a,P)&&I(c,P,a[P]);if(Ue)for(var P of Ue(a))ge.call(a,P)&&I(c,P,a[P]);return c},e=(c,a,P)=>(I(c,"symbol"!=typeof a?a+"":a,P),P),f=globalThis;function h(c){return(f.__Zone_symbol_prefix||"__zone_symbol__")+c}var Z=Object.getOwnPropertyDescriptor,oe=Object.defineProperty,W=Object.getPrototypeOf,k=Object.create,re=Array.prototype.slice,b="addEventListener",i="removeEventListener",l=h(b),t=h(i),d="true",r="false",s=h("");function T(c,a){return Zone.current.wrap(c,a)}function O(c,a,P,u,S){return Zone.current.scheduleMacroTask(c,a,P,u,S)}var m=h,C=typeof window<"u",R=C?window:void 0,E=C&&R||globalThis;function D(c,a){for(let P=c.length-1;P>=0;P--)"function"==typeof c[P]&&(c[P]=T(c[P],a+"_"+P));return c}function G(c){return!c||!1!==c.writable&&!("function"==typeof c.get&&typeof c.set>"u")}var ne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ie=!("nw"in E)&&typeof E.process<"u"&&"[object process]"===E.process.toString(),Pe=!ie&&!ne&&!(!C||!R.HTMLElement),Re=typeof E.process<"u"&&"[object process]"===E.process.toString()&&!ne&&!(!C||!R.HTMLElement),Me={},Ae=m("enable_beforeunload"),Ie=function(c){if(!(c=c||E.event))return;let a=Me[c.type];a||(a=Me[c.type]=m("ON_PROPERTY"+c.type));const P=this||c.target||E,u=P[a];let S;return Pe&&P===R&&"error"===c.type?(S=u&&u.call(this,c.message,c.filename,c.lineno,c.colno,c.error),!0===S&&c.preventDefault()):(S=u&&u.apply(this,arguments),"beforeunload"===c.type&&E[Ae]&&"string"==typeof S?c.returnValue=S:null!=S&&!S&&c.preventDefault()),S};function et(c,a,P){let u=Z(c,a);if(!u&&P&&Z(P,a)&&(u={enumerable:!0,configurable:!0}),!u||!u.configurable)return;const S=m("on"+a+"patched");if(c.hasOwnProperty(S)&&c[S])return;delete u.writable,delete u.value;const j=u.get,Y=u.set,z=a.slice(2);let J=Me[z];J||(J=Me[z]=m("ON_PROPERTY"+z)),u.set=function(ee){let V=this;!V&&c===E&&(V=E),V&&("function"==typeof V[J]&&V.removeEventListener(z,Ie),Y?.call(V,null),V[J]=ee,"function"==typeof ee&&V.addEventListener(z,Ie,!1))},u.get=function(){let ee=this;if(!ee&&c===E&&(ee=E),!ee)return null;const V=ee[J];if(V)return V;if(j){let w=j.call(this);if(w)return u.set.call(this,w),"function"==typeof ee.removeAttribute&&ee.removeAttribute(a),w}return null},oe(c,a,u),c[S]=!0}function ot(c,a,P){if(a)for(let u=0;u<a.length;u++)et(c,"on"+a[u],P);else{const u=[];for(const S in c)"on"==S.slice(0,2)&&u.push(S);for(let S=0;S<u.length;S++)et(c,u[S],P)}}var Ge=m("originalInstance");function nt(c){const a=E[c];if(!a)return;E[m(c)]=a,E[c]=function(){const S=D(arguments,c);switch(S.length){case 0:this[Ge]=new a;break;case 1:this[Ge]=new a(S[0]);break;case 2:this[Ge]=new a(S[0],S[1]);break;case 3:this[Ge]=new a(S[0],S[1],S[2]);break;case 4:this[Ge]=new a(S[0],S[1],S[2],S[3]);break;default:throw new Error("Arg list too long.")}},Xe(E[c],a);const P=new a(function(){});let u;for(u in P)"XMLHttpRequest"===c&&"responseBlob"===u||function(S){"function"==typeof P[S]?E[c].prototype[S]=function(){return this[Ge][S].apply(this[Ge],arguments)}:oe(E[c].prototype,S,{set:function(j){"function"==typeof j?(this[Ge][S]=T(j,c+"."+S),Xe(this[Ge][S],j)):this[Ge][S]=j},get:function(){return this[Ge][S]}})}(u);for(u in a)"prototype"!==u&&a.hasOwnProperty(u)&&(E[c][u]=a[u])}function Je(c,a,P){let u=c;for(;u&&!u.hasOwnProperty(a);)u=W(u);!u&&c[a]&&(u=c);const S=m(a);let j=null;if(u&&(!(j=u[S])||!u.hasOwnProperty(S))&&(j=u[S]=u[a],G(u&&Z(u,a)))){const z=P(j,S,a);u[a]=function(){return z(this,arguments)},Xe(u[a],j)}return j}function Dt(c,a,P){let u=null;function S(j){const Y=j.data;return Y.args[Y.cbIdx]=function(){j.invoke.apply(this,arguments)},u.apply(Y.target,Y.args),j}u=Je(c,a,j=>function(Y,z){const J=P(Y,z);return J.cbIdx>=0&&"function"==typeof z[J.cbIdx]?O(J.name,z[J.cbIdx],J,S):j.apply(Y,z)})}function Xe(c,a){c[m("OriginalDelegate")]=a}function pt(c){return"function"==typeof c}function ht(c){return"number"==typeof c}var Mt={useG:!0},Fe={},dt={},mt=new RegExp("^"+s+"(\\w+)(true|false)$"),yt=m("propagationStopped");function vt(c,a){const P=(a?a(c):c)+r,u=(a?a(c):c)+d,S=s+P,j=s+u;Fe[c]={},Fe[c][r]=S,Fe[c][d]=j}function It(c,a,P,u){const S=u&&u.add||b,j=u&&u.rm||i,Y=u&&u.listeners||"eventListeners",z=u&&u.rmAll||"removeAllListeners",J=m(S),ee="."+S+":",V="prependListener",w="."+V+":",he=function(K,F,_e){if(K.isRemoved)return;const me=K.callback;let be;"object"==typeof me&&me.handleEvent&&(K.callback=B=>
1me.handleEvent(B),K.originalDelegate=me);try{K.invoke(K,F,[_e])}catch(B){be=B}const Te=K.options;return Te&&"object"==typeof Te&&Te.once&&F[j].call(F,_e.type,K.originalDelegate?K.originalDelegate:K.callback,Te),be};function de(K,F,_e){if(!(F=F||c.event))return;const me=K||F.target||c,be=me[Fe[F.type][_e?d:r]];if(be){const Te=[];if(1===be.length){const B=he(be[0],me,F);B&&Te.push(B)}else{const B=be.slice();for(let Oe=0;Oe<B.length&&(!F||!0!==F[yt]);Oe++){const se=he(B[Oe],me,F);se&&Te.push(se)}}if(1===Te.length)throw Te[0];for(let B=0;B<Te.length;B++){const Oe=Te[B];a.nativeScheduleMicroTask(()=>{throw Oe})}}}const Le=function(K){return de(this,K,!1)},ke=function(K){return de(this,K,!0)};function Ne(K,F){if(!K)return!1;let _e=!0;F&&void 0!==F.useG&&(_e=F.useG);const me=F&&F.vh;let be=!0;F&&void 0!==F.chkDup&&(be=F.chkDup);let Te=!1;F&&void 0!==F.rt&&(Te=F.rt);let B=K;for(;B&&!B.hasOwnProperty(S);)B=W(B);if(!B&&K[S]&&(B=K),!B||B[J])return!1;const Oe=F&&F.eventNameToString,se={},te=B[J]=B[S],le=B[m(j)]=B[j],$=B[m(Y)]=B[Y],je=B[m(z)]=B[z];let Ze;F&&F.prepend&&(Ze=B[m(F.prepend)]=B[F.prepend]);const ve=_e?function(_){if(!se.isExisting)return te.call(se.target,se.eventName,se.capture?ke:Le,se.options)}:function(_){return te.call(se.target,se.eventName,_.invoke,se.options)},pe=_e?function(_){if(!_.isRemoved){const N=Fe[_.eventName];let q;N&&(q=N[_.capture?d:r]);const Q=q&&_.target[q];if(Q)for(let H=0;H<Q.length;H++)if(Q[H]===_){Q.splice(H,1),_.isRemoved=!0,_.removeAbortListener&&(_.removeAbortListener(),_.removeAbortListener=null),0===Q.length&&(_.allRemoved=!0,_.target[q]=null);break}}if(_.allRemoved)return le.call(_.target,_.eventName,_.capture?ke:Le,_.options)}:function(_){return le.call(_.target,_.eventName,_.invoke,_.options)},Ye=F?.diff||function(_,N){const q=typeof N;return"function"===q&&_.callback===N||"object"===q&&_.originalDelegate===N},$e=Zone[m("UNPATCHED_EVENTS")],We=c[m("PASSIVE_EVENTS")],L=function(_,N,q,Q,H=!1,ae=!1){return function(){const ce=this||c;let ue=arguments[0];F&&F.transferEventName&&(ue=F.transferEventName(ue));let Se=arguments[1];if(!Se)return _.apply(this,arguments);if(ie&&"uncaughtException"===ue)return _.apply(this,arguments);let Ee=!1;if("function"!=typeof Se){if(!Se.handleEvent)return _.apply(this,arguments);Ee=!0}if(me&&!me(_,Se,ce,arguments))return;const Qe=!!We&&-1!==We.indexOf(ue),He=function A(_){if("object"==typeof _&&null!==_){const N=p({},_);return _.signal&&(N.signal=_.signal),N}return _}(function Ce(_,N){return N?"boolean"==typeof _?{capture:_,passive:!0}:_?"object"==typeof _&&!1!==_.passive?(c=>qe(c,xe({passive:!0})))(p({},_)):_:{passive:!0}:_}(arguments[2],Qe)),we=He?.signal;if(we?.aborted)return;if($e)for(let Ke=0;Ke<$e.length;Ke++)if(ue===$e[Ke])return Qe?_.call(ce,ue,Se,He):_.apply(this,arguments);const ut=!!He&&("boolean"==typeof He||He.capture),St=!(!He||"object"!=typeof He)&&He.once,Vt=Zone.current;let lt=Fe[ue];lt||(vt(ue,Oe),lt=Fe[ue]);const Et=lt[ut?d:r];let at,rt=ce[Et],bt=!1;if(rt){if(bt=!0,be)for(let Ke=0;Ke<rt.length;Ke++)if(Ye(rt[Ke],Se))return}else rt=ce[Et]=[];const Pt=ce.constructor.name,Rt=dt[Pt];Rt&&(at=Rt[ue]),at||(at=Pt+N+(Oe?Oe(ue):ue)),se.options=He,St&&(se.options.once=!1),se.target=ce,se.capture=ut,se.eventName=ue,se.isExisting=bt;const it=_e?Mt:void 0;it&&(it.taskData=se),we&&(se.options.signal=void 0);const Ve=Vt.scheduleEventTask(at,Se,it,q,Q);if(we){se.options.signal=we;const Ke=()=>Ve.zone.cancelTask(Ve);_.call(we,"abort",Ke,{once:!0}),Ve.removeAbortListener=()=>we.removeEventListener("abort",Ke)}return se.target=null,it&&(it.taskData=null),St&&(se.options.once=!0),"boolean"!=typeof Ve.options&&(Ve.options=He),Ve.target=ce,Ve.capture=ut,Ve.eventName=ue,Ee&&(Ve.originalDelegate=Se),ae?rt.unshift(Ve):rt.push(Ve),H?ce:void 0}};return B[S]=L(te,ee,ve,pe,Te),Ze&&(B[V]=L(Ze,w,function(_){return Ze.call(se.target,se.eventName,_.invoke,se.options)},pe,Te,!0)),B[j]=function(){const _=this||c;let N=arguments[0];F&&F.transferEventName&&(N=F.transferEventName(N));const q=arguments[2],Q=!!q&&("boolean"==typeof q||q.capture),H=arguments[1];if(!H)return le.apply(this,arguments);if(me&&!me(le,H,_,arguments))return;const ae=Fe[N];let ce;ae&&(ce=ae[Q?d:r]);const ue=ce&&_[ce];if(ue)for(let Se=0;Se<ue.length;Se++){const Ee=ue[Se];if(Ye(Ee,H))return ue.splice(Se,1),Ee.isRemoved=!0,0!==ue.length||(Ee.allRemoved=!0,_[ce]=null,Q||"string"!=typeof N)||(_[s+"ON_PROPERTY"+N]=null),Ee.zone.cancelTask(Ee),Te?_:void 0}return le.apply(this,arguments)},B[Y]=function(){const _=this||c;let N=arguments[0];F&&F.transferEventName&&(N=F.transferEventName(N));const q=[],Q=gt(_,Oe?Oe(N):N);for(let H=0;H<Q.length;H++){const ae=Q[H];q.push(ae.originalDelegate?ae.originalDelegate:ae.callback)}return q},B[z]=function(){const _=this||c;let N=arguments[0];if(N){F&&F.transferEventName&&(N=F.transferEventName(N));const q=Fe[N];if(q){const ae=_[q[r]],ce=_[q[d]];if(ae){const ue=ae.slice();for(let Se=0;Se<ue.length;Se++){const Ee=ue[Se];this[j].call(this,N,Ee.originalDelegate?Ee.originalDelegate:Ee.callback,Ee.options)}}if(ce){const ue=ce.slice();for(let Se=0;Se<ue.length;Se++){const Ee=ue[Se];this[j].call(this,N,Ee.originalDelegate?Ee.originalDelegate:Ee.callback,Ee.options)}}}}else{const q=Object.keys(_);for(let Q=0;Q<q.length;Q++){const ae=mt.exec(q[Q]);let ce=ae&&ae[1];ce&&"removeListener"!==ce&&this[z].call(this,ce)}this[z].call(this,"removeListener")}if(Te)return this},Xe(B[S],te),Xe(B[j],le),je&&Xe(B[z],je),$&&Xe(B[Y],$),!0}let De=[];for(let K=0;K<P.length;K++)De[K]=Ne(P[K],u);return De}function gt(c,a){if(!a){const j=[];for(let Y in c){const z=mt.exec(Y);let J=z&&z[1];if(J&&(!a||J===a)){const ee=c[Y];if(ee)for(let V=0;V<ee.length;V++)j.push(ee[V])}}return j}let P=Fe[a];P||(vt(a),P=Fe[a]);const u=c[P[r]],S=c[P[d]];return u?S?u.concat(S):u.slice():S?S.slice():[]}function Lt(c,a){const P=c.Event;P&&P.prototype&&a.patchMethod(P.prototype,"stopImmediatePropagation",u=>function(S,j){S[yt]=!0,u&&u.apply(S,j)})}var st=m("zoneTask");function tt(c,a,P,u){let S=null,j=null;P+=u;const Y={};function z(ee){const V=ee.data;V.args[0]=function(){return ee.invoke.apply(this,arguments)};const w=S.apply(c,V.args);return ht(w)?V.handleId=w:(V.handle=w,V.isRefreshable=pt(w.refresh)),ee}function J(ee){const{handle:V,handleId:w}=ee.data;return j.call(c,V??w)}S=Je(c,a+=u,ee=>function(V,w){var he;if(pt(w[0])){const de={isRefreshable:!1,isPeriodic:"Interval"===u,delay:"Timeout"===u||"Interval"===u?w[1]||0:void 0,args:w},Le=w[0];w[0]=function(){try{return Le.apply(this,arguments)}finally{const{handle:me,handleId:be,isPeriodic:Te,isRefreshable:B}=de;!Te&&!B&&(be?delete Y[be]:me&&(me[st]=null))}};const ke=O(a,w[0],de,z,J);if(!ke)return ke;const{handleId:Ne,handle:De,isRefreshable:K,isPeriodic:F}=ke.data;if(Ne)Y[Ne]=ke;else if(De&&(De[st]=ke,K&&!F)){const _e=De.refresh;De.refresh=function(){const{zone:me,state:be}=ke;return"notScheduled"===be?(ke._state="scheduled",me._updateTaskCount(ke,1)):"running"===be&&(ke._state="scheduling"),_e.call(this)}}return null!=(he=De??Ne)?he:ke}return ee.apply(c,w)}),j=Je(c,P,ee=>function(V,w){const he=w[0];let de;ht(he)?(de=Y[he],delete Y[he]):(de=he?.[st],de?he[st]=null:de=he),de?.type?de.cancelFn&&de.zone.cancelTask(de):ee.apply(c,w)})}function _t(c,a,P){if(!P||0===P.length)return a;const u=P.filter(j=>j.target===c);if(0===u.length)return a;const S=u[0].ignoreProperties;return a.filter(j=>-1===S.indexOf(j))}function Tt(c,a,P,u){c&&ot(c,_t(c,a,P),u)}function ct(c){return Object.getOwnPropertyNames(c).filter(a=>a.startsWith("on")&&a.length>2).map(a=>a.substring(2))}function zt(c,a,P,u,S){const j=Zone.__symbol__(u);if(a[j])return;const Y=a[j]=a[u];
1a[u]=function(z,J,ee){return J&&J.prototype&&S.forEach(function(V){const w=`${P}.${u}::`+V,he=J.prototype;try{if(he.hasOwnProperty(V)){const de=c.ObjectGetOwnPropertyDescriptor(he,V);de&&de.value?(de.value=c.wrapWithCurrentZone(de.value,w),c._redefineProperty(J.prototype,V,de)):he[V]&&(he[V]=c.wrapWithCurrentZone(he[V],w))}else he[V]&&(he[V]=c.wrapWithCurrentZone(he[V],w))}catch{}}),Y.call(a,z,J,ee)},c.attachOriginToPatched(a[u],Y)}var Ct=function x(){const a=globalThis,P=!0===a[h("forceDuplicateZoneCheck")];if(a.Zone&&(P||"function"!=typeof a.Zone.__symbol__))throw new Error("Zone already loaded.");return null!=a.Zone||(a.Zone=function M(){const c=f.performance;function a(ye){c&&c.mark&&c.mark(ye)}function P(ye,g){c&&c.measure&&c.measure(ye,g)}a("Zone");const u=class ft{constructor(g,v){e(this,"_parent"),e(this,"_name"),e(this,"_properties"),e(this,"_zoneDelegate"),this._parent=g,this._name=v?v.name||"unnamed":"<root>",this._properties=v&&v.properties||{},this._zoneDelegate=new Y(this,this._parent&&this._parent._zoneDelegate,v)}static assertZonePatched(){if(f.Promise!==te.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let g=ft.current;for(;g.parent;)g=g.parent;return g}static get current(){return $.zone}static get currentTask(){return je}static __load_patch(g,v,y=!1){if(te.hasOwnProperty(g)){const X=!0===f[h("forceDuplicateZoneCheck")];if(!y&&X)throw Error("Already loaded patch: "+g)}else if(!f["__Zone_disable_"+g]){const X="Zone:"+g;a(X),te[g]=v(f,ft,le),P(X,X)}}get parent(){return this._parent}get name(){return this._name}get(g){const v=this.getZoneWith(g);if(v)return v._properties[g]}getZoneWith(g){let v=this;for(;v;){if(v._properties.hasOwnProperty(g))return v;v=v._parent}return null}fork(g){if(!g)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,g)}wrap(g,v){if("function"!=typeof g)throw new Error("Expecting function got: "+g);const y=this._zoneDelegate.intercept(this,g,v),X=this;return function(){return X.runGuarded(y,this,arguments,v)}}run(g,v,y,X){$={parent:$,zone:this};try{return this._zoneDelegate.invoke(this,g,v,y,X)}finally{$=$.parent}}runGuarded(g,v=null,y,X){$={parent:$,zone:this};try{try{return this._zoneDelegate.invoke(this,g,v,y,X)}catch(ve){if(this._zoneDelegate.handleError(this,ve))throw ve}}finally{$=$.parent}}runTask(g,v,y){if(g.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(g.zone||De).name+"; Execution: "+this.name+")");const X=g,{type:ve,data:{isPeriodic:pe=!1,isRefreshable:ze=!1}={}}=g;if(g.state===K&&(ve===se||ve===Oe))return;const Ye=g.state!=me;Ye&&X._transitionTo(me,_e);const $e=je;je=X,$={parent:$,zone:this};try{ve==Oe&&g.data&&!pe&&!ze&&(g.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,X,v,y)}catch(We){if(this._zoneDelegate.handleError(this,We))throw We}}finally{const We=g.state;if(We!==K&&We!==Te)if(ve==se||pe||ze&&We===F)Ye&&X._transitionTo(_e,me,F);else{const A=X._zoneDelegates;this._updateTaskCount(X,-1),Ye&&X._transitionTo(K,me,K),ze&&(X._zoneDelegates=A)}$=$.parent,je=$e}}scheduleTask(g){if(g.zone&&g.zone!==this){let y=this;for(;y;){if(y===g.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${g.zone.name}`);y=y.parent}}g._transitionTo(F,K);const v=[];g._zoneDelegates=v,g._zone=this;try{g=this._zoneDelegate.scheduleTask(this,g)}catch(y){throw g._transitionTo(Te,F,K),this._zoneDelegate.handleError(this,y),y}return g._zoneDelegates===v&&this._updateTaskCount(g,1),g.state==F&&g._transitionTo(_e,F),g}scheduleMicroTask(g,v,y,X){return this.scheduleTask(new z(B,g,v,y,X,void 0))}scheduleMacroTask(g,v,y,X,ve){return this.scheduleTask(new z(Oe,g,v,y,X,ve))}scheduleEventTask(g,v,y,X,ve){return this.scheduleTask(new z(se,g,v,y,X,ve))}cancelTask(g){if(g.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(g.zone||De).name+"; Execution: "+this.name+")");if(g.state===_e||g.state===me){g._transitionTo(be,_e,me);try{this._zoneDelegate.cancelTask(this,g)}catch(v){throw g._transitionTo(Te,be),this._zoneDelegate.handleError(this,v),v}return this._updateTaskCount(g,-1),g._transitionTo(K,be),g.runCount=-1,g}}_updateTaskCount(g,v){const y=g._zoneDelegates;-1==v&&(g._zoneDelegates=null);for(let X=0;X<y.length;X++)y[X]._updateTaskCount(g.type,v)}
vendor: 11,543 bytes, line 1
1};e(u,"__symbol__",h);let S=u;const j={name:"",onHasTask:(ye,g,v,y)=>ye.hasTask(v,y),onScheduleTask:(ye,g,v,y)=>ye.scheduleTask(v,y),onInvokeTask:(ye,g,v,y,X,ve)=>ye.invokeTask(v,y,X,ve),onCancelTask:(ye,g,v,y)=>ye.cancelTask(v,y)};class Y{constructor(g,v,y){e(this,"_zone"),e(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),e(this,"_parentDelegate"),e(this,"_forkDlgt"),e(this,"_forkZS"),e(this,"_forkCurrZone"),e(this,"_interceptDlgt"),e(this,"_interceptZS"),e(this,"_interceptCurrZone"),e(this,"_invokeDlgt"),e(this,"_invokeZS"),e(this,"_invokeCurrZone"),e(this,"_handleErrorDlgt"),e(this,"_handleErrorZS"),e(this,"_handleErrorCurrZone"),e(this,"_scheduleTaskDlgt"),e(this,"_scheduleTaskZS"),e(this,"_scheduleTaskCurrZone"),e(this,"_invokeTaskDlgt"),e(this,"_invokeTaskZS"),e(this,"_invokeTaskCurrZone"),e(this,"_cancelTaskDlgt"),e(this,"_cancelTaskZS"),e(this,"_cancelTaskCurrZone"),e(this,"_hasTaskDlgt"),e(this,"_hasTaskDlgtOwner"),e(this,"_hasTaskZS"),e(this,"_hasTaskCurrZone"),this._zone=g,this._parentDelegate=v,this._forkZS=y&&(y&&y.onFork?y:v._forkZS),this._forkDlgt=y&&(y.onFork?v:v._forkDlgt),this._forkCurrZone=y&&(y.onFork?this._zone:v._forkCurrZone),this._interceptZS=y&&(y.onIntercept?y:v._interceptZS),this._interceptDlgt=y&&(y.onIntercept?v:v._interceptDlgt),this._interceptCurrZone=y&&(y.onIntercept?this._zone:v._interceptCurrZone),this._invokeZS=y&&(y.onInvoke?y:v._invokeZS),this._invokeDlgt=y&&(y.onInvoke?v:v._invokeDlgt),this._invokeCurrZone=y&&(y.onInvoke?this._zone:v._invokeCurrZone),this._handleErrorZS=y&&(y.onHandleError?y:v._handleErrorZS),this._handleErrorDlgt=y&&(y.onHandleError?v:v._handleErrorDlgt),this._handleErrorCurrZone=y&&(y.onHandleError?this._zone:v._handleErrorCurrZone),this._scheduleTaskZS=y&&(y.onScheduleTask?y:v._scheduleTaskZS),this._scheduleTaskDlgt=y&&(y.onScheduleTask?v:v._scheduleTaskDlgt),this._scheduleTaskCurrZone=y&&(y.onScheduleTask?this._zone:v._scheduleTaskCurrZone),this._invokeTaskZS=y&&(y.onInvokeTask?y:v._invokeTaskZS),this._invokeTaskDlgt=y&&(y.onInvokeTask?v:v._invokeTaskDlgt),this._invokeTaskCurrZone=y&&(y.onInvokeTask?this._zone:v._invokeTaskCurrZone),this._cancelTaskZS=y&&(y.onCancelTask?y:v._cancelTaskZS),this._cancelTaskDlgt=y&&(y.onCancelTask?v:v._cancelTaskDlgt),this._cancelTaskCurrZone=y&&(y.onCancelTask?this._zone:v._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const X=y&&y.onHasTask;(X||v&&v._hasTaskZS)&&(this._hasTaskZS=X?y:j,this._hasTaskDlgt=v,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,y.onScheduleTask||(this._scheduleTaskZS=j,this._scheduleTaskDlgt=v,this._scheduleTaskCurrZone=this._zone),y.onInvokeTask||(this._invokeTaskZS=j,this._invokeTaskDlgt=v,this._invokeTaskCurrZone=this._zone),y.onCancelTask||(this._cancelTaskZS=j,this._cancelTaskDlgt=v,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(g,v){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,g,v):new S(g,v)}intercept(g,v,y){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,g,v,y):v}invoke(g,v,y,X,ve){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,g,v,y,X,ve):v.apply(y,X)}handleError(g,v){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,g,v)}scheduleTask(g,v){let y=v;if(this._scheduleTaskZS)this._hasTaskZS&&y._zoneDelegates.push(this._hasTaskDlgtOwner),y=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,g,v),y||(y=v);else if(v.scheduleFn)v.scheduleFn(v);else{if(v.type!=B)throw new Error("Task is missing scheduleFn.");ke(v)}return y}invokeTask(g,v,y,X){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,g,v,y,X):v.callback.apply(y,X)}cancelTask(g,v){let y;if(this._cancelTaskZS)y=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,g,v);else{if(!v.cancelFn)throw Error("Task is not cancelable");y=v.cancelFn(v)}return y}hasTask(g,v){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,g,v)}catch(y){this.handleError(g,y)}}_updateTaskCount(g,v){const y=this._taskCounts,X=y[g],ve=y[g]=X+v;if(ve<0)throw new Error("More tasks executed then were scheduled.");0!=X&&0!=ve||this.hasTask(this._zone,{microTask:y.microTask>0,macroTask:y.macroTask>0,eventTask:y.eventTask>0,change:g})}}class z{constructor(g,v,y,X,ve,pe){if(e(this,"type"),e(this,"source"),e(this,"invoke"),e(this,"callback"),e(this,"data"),e(this,"scheduleFn"),e(this,"cancelFn"),e(this,"_zone",null),e(this,"runCount",0),e(this,"_zoneDelegates",null),e(this,"_state","notScheduled"),this.type=g,this.source=v,this.data=X,this.scheduleFn=ve,this.cancelFn=pe,!y)throw new Error("callback is not defined");this.callback=y;const ze=this;this.invoke=g===se&&X&&X.useG?z.invokeTask:function(){return z.invokeTask.call(f,ze,this,arguments)}}static invokeTask(g,v,y){g||(g=this),Ze++;try{return g.runCount++,g.zone.runTask(g,v,y)}finally{1==Ze&&Ne(),Ze--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(K,F)}_transitionTo(g,v,y){if(this._state!==v&&this._state!==y)throw new Error(`${this.type} '${this.source}': can not transition to '${g}', expecting state '${v}'${y?" or '"+y+"'":""}, was '${this._state}'.`);this._state=g,g==K&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const J=h("setTimeout"),ee=h("Promise"),V=h("then");let de,w=[],he=!1;function Le(ye){if(de||f[ee]&&(de=f[ee].resolve(0)),de){let g=de[V];g||(g=de.then),g.call(de,ye)}else f[J](ye,0)}function ke(ye){0===Ze&&0===w.length&&Le(Ne),ye&&w.push(ye)}function Ne(){if(!he){for(he=!0;w.length;){const ye=w;w=[];for(let g=0;g<ye.length;g++){const v=ye[g];try{v.zone.runTask(v,null,null)}catch(y){le.onUnhandledError(y)}}}le.microtaskDrainDone(),he=!1}}const De={name:"NO ZONE"},K="notScheduled",F="scheduling",_e="scheduled",me="running",be="canceling",Te="unknown",B="microTask",Oe="macroTask",se="eventTask",te={},le={symbol:h,currentZoneFrame:()=>$,onUnhandledError:Ce,microtaskDrainDone:Ce,scheduleMicroTask:ke,showUncaughtError:()=>!S[h("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Ce,patchMethod:()=>Ce,bindArguments:()=>[],patchThen:()=>Ce,patchMacroTask:()=>Ce,patchEventPrototype:()=>Ce,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Ce,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Ce,wrapWithCurrentZone:()=>Ce,filterProperties:()=>[],attachOriginToPatched:()=>Ce,_redefineProperty:()=>Ce,patchCallbacks:()=>Ce,nativeScheduleMicroTask:Le};let $={parent:null,zone:new S(null,null)},je=null,Ze=0;function Ce(){}return P("Zone","Zone"),S}()),a.Zone}();(function Ht(c){(function Ft(c){c.__load_patch("ZoneAwarePromise",(a,P,u)=>{const S=Object.getOwnPropertyDescriptor,j=Object.defineProperty,z=u.symbol,J=[],ee=!1!==a[z("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],V=z("Promise"),w=z("then");u.onUnhandledError=A=>{if(u.showUncaughtError()){const L=A&&A.rejection;L?console.error("Unhandled Promise rejection:",L instanceof Error?L.message:L,"; Zone:",A.zone.name,"; Task:",A.task&&A.task.source,"; Value:",L,L instanceof Error?L.stack:void 0):console.error(A)}},u.microtaskDrainDone=()=>{for(;J.length;){const A=J.shift();try{A.zone.runGuarded(()=>{throw A.throwOriginal?A.rejection:A})}catch(L){Le(L)}}};const de=z("unhandledPromiseRejectionHandler");function Le(A){u.onUnhandledError(A);try{const L=P[de];"function"==typeof L&&L.call(this,A)}catch{}}function ke(A){return A&&"function"==typeof A.then}function Ne(A){return A}function De(A){return pe.reject(A)}const K=z("state"),F=z("value"),_e=z("finally"),me=z("parentPromiseValue"),be=z("parentPromiseState"),B=null,se=!1;function le(A,L){return _=>{try{Ce(A,L,_)}catch(N){Ce(A,!1,N)}}}const $=function(){let A=!1;return function(_){return function(){A||(A=!0,_.apply(null,arguments))}}},je="Promise resolved with itself",Ze=z("currentTaskTrace");function Ce(A,L,_){const N=$();if(A===_)throw new TypeError(je);if(A[K]===B){let q=null;try{("object"==typeof _||"function"==typeof _)&&(q=_&&_.then)}catch(Q){return N(()=>{Ce(A,!1,Q)})(),A}if(L!==se&&_ instanceof pe&&_.hasOwnProperty(K)&&_.hasOwnProperty(F)&&_[K]!==B)g(_),Ce(A,_[K],_[F]);else if(L!==se&&"function"==typeof q)try{q.call(_,N(le(A,L)),N(le(A,!1)))}catch(Q){N(()=>{Ce(A,!1,Q)})()}else{A[K]=L;const Q=A[F];if(A[F]=_,A[_e]===_e&&!0===L&&(A[K]=A[be],A[F]=A[me]),L===se&&_ instanceof Error){const H=P.currentTask&&P.currentTask.data&&P.currentTask.data.__creationTrace__;H&&j(_,Ze,{configurable:!0,enumerable:!1,writable:!0,value:H})}for(let H=0;H<Q.length;)v(A,Q[H++],Q[H++],Q[H++],Q[H++]);if(0==Q.length&&L==se){A[K]=0;let H=_;try{throw new Error("Uncaught (in promise): "+function Y(A){return A&&A.toString===Object.prototype.toString?(A.constructor&&A.constructor.name||"")+": "+JSON.stringify(A):A?A.toString():Object.prototype.toString.call(A)}(_)+(_&&_.stack?"\n"+_.stack:""))}catch(ae){H=ae}ee&&(H.throwOriginal=!0),H.rejection=_,H.promise=A,H.zone=P.current,H.task=P.currentTask,J.push(H),u.scheduleMicroTask()}}}return A}const ye=z("rejectionHandledHandler");function g(A){if(0===A[K]){try{const L=P[ye];L&&"function"==typeof L&&L.call(this,{rejection:A[F],promise:A})}catch{}A[K]=se;for(let L=0;L<J.length;L++)A===J[L].promise&&J.splice(L,1)}}function v(A,L,_,N,q){g(A);const Q=A[K],H=Q?"function"==typeof N?N:Ne:"function"==typeof q?q:De;L.scheduleMicroTask("Promise.then",()=>{try{const ae=A[F],ce=!!_&&_e===_[_e];ce&&(_[me]=ae,_[be]=Q);const ue=L.run(H,void 0,ce&&H!==De&&H!==Ne?[]:[ae]);Ce(_,!0,ue)}catch(ae){Ce(_,!1,ae)}},_)}const X=function(){},ve=a.AggregateError;class pe{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(L){return L instanceof pe?L:Ce(new this(null),!0,L)}static reject(L){return Ce(new this(null),se,L)}static withResolvers(){const L={};return L.promise=new pe((_,N)=>{L.resolve=_,L.reject=N}),L}static any(L){if(!L||"function"!=typeof L[Symbol.iterator])return Promise.reject(new ve([],"All promises were rejected"));const _=[];let N=0;try{for(let H of L)N++,_.push(pe.resolve(H))}catch{return Promise.reject(new ve([],"All promises were rejected"))}if(0===N)return Promise.reject(new ve([],"All promises were rejected"));let q=!1;const Q=[];return new pe((H,ae)=>{for(let ce=0;ce<_.length;ce++)_[ce].then(ue=>{q||(q=!0,H(ue))},ue=>{Q.push(ue),N--,0===N&&(q=!0,ae(new ve(Q,"All promises were rejected")))})})}static race(L){let _,N,q=new this((ae,ce)=>{_=ae,N=ce});function Q(ae){_(ae)}function H(ae){N(ae)}for(let ae of L)ke(ae)||(ae=this.resolve(ae)),ae.then(Q,H);return q}static all(L){return pe.allWithCallback(L)}static allSettled(L){return(this&&this.prototype instanceof pe?this:pe).allWithCallback(L,{thenCallback:N=>({status:"fulfilled",value:N}),errorCallback:N=>({status:"rejected",reason:N})})}static allWithCallback(L,_){let N,q,Q=new this((ue,Se)=>{N=ue,q=Se}),H=2,ae=0;const ce=[];for(let ue of L){ke(ue)||(ue=this.resolve(ue));const Se=ae;try{ue.then(Ee=>{ce[Se]=_?_.thenCallback(Ee):Ee,H--,0===H&&N(ce)},Ee=>{_?(ce[Se]=_.errorCallback(Ee),H--,0===H&&N(ce)):q(Ee)})}catch(Ee){q(Ee)}H++,ae++}return H-=2,0===H&&N(ce),Q}constructor(L){const _=this;
1if(!(_ instanceof pe))throw new Error("Must be an instanceof Promise.");_[K]=B,_[F]=[];try{const N=$();L&&L(N(le(_,!0)),N(le(_,se)))}catch(N){Ce(_,!1,N)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return pe}then(L,_){var N;let q=null==(N=this.constructor)?void 0:N[Symbol.species];(!q||"function"!=typeof q)&&(q=this.constructor||pe);const Q=new q(X),H=P.current;return this[K]==B?this[F].push(H,Q,L,_):v(this,H,Q,L,_),Q}catch(L){return this.then(null,L)}finally(L){var _;let N=null==(_=this.constructor)?void 0:_[Symbol.species];(!N||"function"!=typeof N)&&(N=pe);const q=new N(X);q[_e]=_e;const Q=P.current;return this[K]==B?this[F].push(Q,q,L,L):v(this,Q,q,L,L),q}}pe.resolve=pe.resolve,pe.reject=pe.reject,pe.race=pe.race,pe.all=pe.all;const ze=a[V]=a.Promise;a.Promise=pe;const Ye=z("thenPatched");function $e(A){const L=A.prototype,_=S(L,"then");if(_&&(!1===_.writable||!_.configurable))return;const N=L.then;L[w]=N,A.prototype.then=function(q,Q){return new pe((ae,ce)=>{N.call(this,ae,ce)}).then(q,Q)},A[Ye]=!0}if(u.patchThen=$e,ze){$e(ze);const A=ze.try;A&&"function"==typeof A&&(pe.try=A),Je(a,"fetch",L=>function We(A){return function(L,_){let N=A.apply(L,_);if(N instanceof pe)return N;let q=N.constructor;return q[Ye]||$e(q),N}}(L))}return Promise[P.__symbol__("uncaughtPromiseErrors")]=J,pe})})(c),function Gt(c){c.__load_patch("toString",a=>{const P=Function.prototype.toString,u=m("OriginalDelegate"),S=m("Promise"),j=m("Error"),Y=function(){if("function"==typeof this){const V=this[u];if(V)return"function"==typeof V?P.call(V):Object.prototype.toString.call(V);if(this===Promise){const w=a[S];if(w)return P.call(w)}if(this===Error){const w=a[j];if(w)return P.call(w)}}return P.call(this)};Y[u]=P,Function.prototype.toString=Y;const z=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":z.call(this)}})}(c),function Wt(c){c.__load_patch("util",(a,P,u)=>{const S=ct(a);u.patchOnProperties=ot,u.patchMethod=Je,u.bindArguments=D,u.patchMacroTask=Dt;const j=P.__symbol__("BLACK_LISTED_EVENTS"),Y=P.__symbol__("UNPATCHED_EVENTS");a[Y]&&(a[j]=a[Y]),a[j]&&(P[j]=P[Y]=a[j]),u.patchEventPrototype=Lt,u.patchEventTarget=It,u.ObjectDefineProperty=oe,u.ObjectGetOwnPropertyDescriptor=Z,u.ObjectCreate=k,u.ArraySlice=re,u.patchClass=nt,u.wrapWithCurrentZone=T,u.filterProperties=_t,u.attachOriginToPatched=Xe,u._redefineProperty=Object.defineProperty,u.patchCallbacks=zt,u.getGlobalObjects=()=>({globalSources:dt,zoneSymbolEventNames:Fe,eventNames:S,isBrowser:Pe,isMix:Re,isNode:ie,TRUE_STR:d,FALSE_STR:r,ZONE_SYMBOL_PREFIX:s,ADD_EVENT_LISTENER_STR:b,REMOVE_EVENT_LISTENER_STR:i})})}(c)})(Ct),function Ut(c){c.__load_patch("timers",a=>{const u="clear";tt(a,"set",u,"Timeout"),tt(a,"set",u,"Interval"),tt(a,"set",u,"Immediate")}),c.__load_patch("requestAnimationFrame",a=>{tt(a,"request","cancel","AnimationFrame"),tt(a,"mozRequest","mozCancel","AnimationFrame"),tt(a,"webkitRequest","webkitCancel","AnimationFrame")}),c.__load_patch("blocking",(a,P)=>{const u=["alert","prompt","confirm"];for(let S=0;S<u.length;S++)Je(a,u[S],(Y,z,J)=>function(ee,V){return P.current.run(Y,a,V,J)})}),c.__load_patch("EventTarget",(a,P,u)=>{(function xt(c,a){a.patchEventPrototype(c,a)})(a,u),function Nt(c,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:P,zoneSymbolEventNames:u,TRUE_STR:S,FALSE_STR:j,ZONE_SYMBOL_PREFIX:Y}=a.getGlobalObjects();for(let J=0;J<P.length;J++){const ee=P[J],he=Y+(ee+j),de=Y+(ee+S);u[ee]={},u[ee][j]=he,u[ee][S]=de}const z=c.EventTarget;z&&z.prototype&&a.patchEventTarget(c,a,[z&&z.prototype])}(a,u);const S=a.XMLHttpRequestEventTarget;S&&S.prototype&&u.patchEventTarget(a,u,[S.prototype])}),c.__load_patch("MutationObserver",(a,P,u)=>{nt("MutationObserver"),nt("WebKitMutationObserver")}),c.__load_patch("IntersectionObserver",(a,P,u)=>{nt("IntersectionObserver")}),c.__load_patch("FileReader",(a,P,u)=>{nt("FileReader")}),c.__load_patch("on_property",(a,P,u)=>{!function Zt(c,a){if(ie&&!Re||Zone[c.symbol("patchEvents")])return;const P=a.__Zone_ignore_on_properties;let u=[];
vendor: 3,507 bytes, line 1
1if(Pe){const S=window;u=u.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),Tt(S,ct(S),P,W(S))}u=u.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let S=0;S<u.length;S++){const j=a[u[S]];j?.prototype&&Tt(j.prototype,ct(j.prototype),P)}}(u,a)}),c.__load_patch("customElements",(a,P,u)=>{!function At(c,a){const{isBrowser:P,isMix:u}=a.getGlobalObjects();(P||u)&&c.customElements&&"customElements"in c&&a.patchCallbacks(a,c.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(a,u)}),c.__load_patch("XHR",(a,P)=>{!function ee(V){const w=V.XMLHttpRequest;if(!w)return;const he=w.prototype;let Le=he[l],ke=he[t];if(!Le){const te=V.XMLHttpRequestEventTarget;if(te){const le=te.prototype;Le=le[l],ke=le[t]}}const Ne="readystatechange",De="scheduled";function K(te){const le=te.data,$=le.target;$[Y]=!1,$[J]=!1;const je=$[j];Le||(Le=$[l],ke=$[t]),je&&ke.call($,Ne,je);const Ze=$[j]=()=>{if($.readyState===$.DONE)if(!le.aborted&&$[Y]&&te.state===De){const ye=$[P.__symbol__("loadfalse")];if(0!==$.status&&ye&&ye.length>0){const g=te.invoke;te.invoke=function(){const v=$[P.__symbol__("loadfalse")];for(let y=0;y<v.length;y++)v[y]===te&&v.splice(y,1);!le.aborted&&te.state===De&&g.call(te)},ye.push(te)}else te.invoke()}else!le.aborted&&!1===$[Y]&&($[J]=!0)};return Le.call($,Ne,Ze),$[u]||($[u]=te),Oe.apply($,le.args),$[Y]=!0,te}function F(){}function _e(te){const le=te.data;return le.aborted=!0,se.apply(le.target,le.args)}const me=Je(he,"open",()=>function(te,le){return te[S]=0==le[2],te[z]=le[1],me.apply(te,le)}),Te=m("fetchTaskAborting"),B=m("fetchTaskScheduling"),Oe=Je(he,"send",()=>function(te,le){if(!0===P.current[B]||te[S])return Oe.apply(te,le);{const $={target:te,url:te[z],isPeriodic:!1,args:le,aborted:!1},je=O("XMLHttpRequest.send",F,$,K,_e);te&&!0===te[J]&&!$.aborted&&je.state===De&&je.invoke()}}),se=Je(he,"abort",()=>function(te,le){const $=function de(te){return te[u]}(te);if($&&"string"==typeof $.type){if(null==$.cancelFn||$.data&&$.data.aborted)return;$.zone.cancelTask($)}else if(!0===P.current[Te])return se.apply(te,le)})}(a);const u=m("xhrTask"),S=m("xhrSync"),j=m("xhrListener"),Y=m("xhrScheduled"),z=m("xhrURL"),J=m("xhrErrorBeforeScheduled")}),c.__load_patch("geolocation",a=>{a.navigator&&a.navigator.geolocation&&function U(c,a){const P=c.constructor.name;for(let u=0;u<a.length;u++){const S=a[u],j=c[S];if(j){if(!G(Z(c,S)))continue;c[S]=(z=>{const J=function(){return z.apply(this,D(arguments,P+"."+S))};return Xe(J,z),J})(j)}}}(a.navigator.geolocation,["getCurrentPosition","watchPosition"])}),c.__load_patch("PromiseRejectionEvent",(a,P)=>{function u(S){return function(j){gt(a,S).forEach(z=>{const J=a.PromiseRejectionEvent;if(J){const ee=new J(S,{promise:j.promise,reason:j.rejection});z.invoke(ee)}})}}a.PromiseRejectionEvent&&(P[m("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),P[m("rejectionHandledHandler")]=u("rejectionhandled"))}),c.__load_patch("queueMicrotask",(a,P,u)=>{!function jt(c,a){a.patchMethod(c,"queueMicrotask",P=>function(u,S){Zone.current.scheduleMicroTask("queueMicrotask",S[0])})}(a,u)})}(Ct)}},Be=>{Be(Be.s=39108)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.