@veltdev/sdk-staging 4.5.0-beta.14 → 4.5.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NotificationSettingsConfig } from "./notification.model";
|
|
2
|
+
import { NotificationEventTypes } from "../../utils/enums";
|
|
3
|
+
export interface SettingsUpdatedEvent {
|
|
4
|
+
settings: NotificationSettingsConfig;
|
|
5
|
+
isMutedAll: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type NotificationEventTypesMap = {
|
|
8
|
+
[NotificationEventTypes.SETTINGS_UPDATED]: SettingsUpdatedEvent;
|
|
9
|
+
};
|
package/models.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './app/models/data/location.model';
|
|
|
35
35
|
export * from './app/models/data/media-preview-config.data.model';
|
|
36
36
|
export * from './app/models/data/multi-thread.data.model';
|
|
37
37
|
export * from './app/models/data/notification.model';
|
|
38
|
+
export * from './app/models/data/notifications-events.data.model';
|
|
38
39
|
export * from './app/models/data/page-info.model';
|
|
39
40
|
export * from './app/models/data/permission.data.model';
|
|
40
41
|
export * from './app/models/data/presence-user.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.5.0-beta.
|
|
3
|
+
"version": "4.5.0-beta.15",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|
package/velt.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var SNIPPYLY_VERSION = '4.5.0-beta.
|
|
1
|
+
var SNIPPYLY_VERSION = '4.5.0-beta.15';
|
|
2
2
|
(function(m,w){"use strict";function rt(){var e=K.splice(0,K.length);for(ie=0;e.length;)e.shift().call(null,e.shift())}function me(e,t){for(var n=0,r=e.length;n<r;n++)Te(e[n],t)}function ot(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],U(t,q[pe(t)])}function fe(e){return function(t){Lt(t)&&(Te(t,e),L.length&&me(t.querySelectorAll(L),e))}}function pe(e){var t=le.call(e,"is"),n=e.nodeName.toUpperCase(),r=v.call(D,t?Y+t.toUpperCase():x+n);return t&&-1<r&&!De(n,t)?-1:r}function De(e,t){return-1<L.indexOf(e+'[is="'+t+'"]')}function Ie(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,l=e[W]||2,a=e[He]||3;!ce||o&&o!==t||!t[y]||r==="style"||e.prevValue===e.newValue&&(e.newValue!==""||n!==l&&n!==a)||t[y](r,n===l?null:e.prevValue,n===a?null:e.newValue)}function Fe(e){var t=fe(e);return function(n){K.push(t,n.target),ie&&clearTimeout(ie),ie=setTimeout(rt,1)}}function de(e){nt&&(nt=!1,e.currentTarget.removeEventListener(Ze,de)),L.length&&me((e.target||u).querySelectorAll(L),e.detail===E?E:b),R&&at()}function lt(e,t){var n=this;Ye.call(n,e,t),Me.call(n,{target:n})}function Se(e,t,n){var r=t.apply(e,n),o=pe(r);return-1<o&&U(r,q[o]),n.pop()&&L.length&&ot(r.querySelectorAll(L)),r}function he(e,t){Tt(e,t),$?$.observe(e,gt):(ue&&(e.setAttribute=lt,e[H]=Ee(e),e[g](st,Me)),e[g](N,Ie)),e[k]&&ce&&(e.created=!0,e[k](),e.created=!1)}function at(){for(var e,t=0,n=G.length;t<n;t++)e=G[t],V.contains(e)||(n--,G.splice(t--,1),Te(e,E))}function Ve(e){throw new Error("A "+e+" type is already registered")}function Te(e,t){var n,r,o=pe(e);-1<o&&!Mt.call(e,"TEMPLATE")&&(Q(e,q[o]),o=0,t!==b||e[b]?t!==E||e[E]||(e[b]=!1,e[E]=!0,r="disconnected",o=1):(e[E]=!1,e[b]=!0,r="connected",o=1,R&&v.call(G,e)<0&&G.push(e)),o&&(n=e[t+O]||e[r+O])&&n.call(e))}function z(){}function Pe(e,t,n){var r=n&&n[_]||"",o=t.prototype,l=Ce(o),a=t.observedAttributes||ye,s={prototype:l};oe(l,k,{value:function(){if(te)te=!1;else if(!this[B]){this[B]=!0,new t(this),o[k]&&o[k].call(this);var i=j[ne.get(t)];(!Z||i.create.length>1)&&_e(this)}}}),oe(l,y,{value:function(i){-1<v.call(a,i)&&o[y]&&o[y].apply(this,arguments)}}),o[qe]&&oe(l,ut,{value:o[qe]}),o[Be]&&oe(l,ct,{value:o[Be]}),r&&(s[_]=r),e=e.toUpperCase(),j[e]={constructor:t,create:r?[r,re(e)]:[e]},ne.set(t,e),u[S](e.toLowerCase(),s),Le(e),P[e].r()}function Re(e){var t=j[e.toUpperCase()];return t&&t.constructor}function Ue(e){return typeof e=="string"?e:e&&e.is||""}function _e(e){for(var t,n=e[y],r=n?e.attributes:ye,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function Le(e){return e=e.toUpperCase(),e in P||(P[e]={},P[e].p=new Xe(function(t){P[e].r=t})),P[e].p}function ke(){C&&delete m.customElements,I(m,"customElements",{configurable:!0,value:new z}),I(m,"CustomElementRegistry",{configurable:!0,value:z});for(var e=it.get(/^HTML[A-Z]*[a-z]/),t=e.length;t--;function(n){var r=m[n];if(r){m[n]=function(o){var l,a;return o||(o=this),o[B]||(te=!0,l=j[ne.get(o.constructor)],a=Z&&l.create.length===1,o=a?Reflect.construct(r,ye,l.constructor):u.createElement.apply(u,l.create),o[B]=!0,te=!1,a||_e(o)),o},m[n].prototype=r.prototype;try{r.prototype.constructor=m[n]}catch{dt=!0,I(r,B,{value:m[n]})}}}(e[t]));u.createElement=function(n,r){var o=Ue(r);return o?Ae.call(this,n,re(o)):Ae.call(this,n)},et||(Oe=!0,u[S](""))}var u=m.document,T=m.Object,it=function(e){var t,n,r,o,l=/^[A-Z]+[a-z]/,a=function(p){var f,h=[];for(f in i)p.test(f)&&h.push(f);return h},s=function(p,f){(f=f.toLowerCase())in i||(i[p]=(i[p]||[]).concat(f),i[f]=i[f.toUpperCase()]=p)},i=(T.create||T)(null),c={};for(n in e)for(o in e[n])for(r=e[n][o],i[o]=r,t=0;t<r.length;t++)i[r[t].toLowerCase()]=i[r[t].toUpperCase()]=o;return c.get=function(p){return typeof p=="string"?i[p]||(l.test(p)?[]:""):a(p)},c.set=function(p,f){return l.test(p)?s(p,f):s(f,p),c},c}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});typeof w!="object"&&(w={type:w||"auto"});var K,Me,X,Ee,$,ve,Q,U,A,S="registerElement",xe=1e5*m.Math.random()>>0,H="__"+S+xe,g="addEventListener",b="attached",O="Callback",E="detached",_="extends",y="attributeChanged"+O,ut=b+O,qe="connected"+O,Be="disconnected"+O,k="created"+O,ct=E+O,W="ADDITION",He="REMOVAL",N="DOMAttrModified",Ze="DOMContentLoaded",st="DOMSubtreeModified",x="<",Y="=",mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ft=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],D=[],q=[],L="",V=u.documentElement,v=D.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ge=T.prototype,be=ge.hasOwnProperty,J=ge.isPrototypeOf,I=T.defineProperty,ye=[],ee=T.getOwnPropertyDescriptor,je=T.getOwnPropertyNames,pt=T.getPrototypeOf,Ge=T.setPrototypeOf,ze=!!T.__proto__,dt=!1,B="__dreCEv1",C=m.customElements,Z=!/^force/.test(w.type)&&!!(C&&C.define&&C.get&&C.whenDefined),Ke=T.create||T,ht=m.Map||function(){var e,t=[],n=[];return{get:function(r){return n[v.call(t,r)]},set:function(r,o){e=v.call(t,r),e<0?n[t.push(r)-1]=o:n[e]=o}}},Xe=m.Promise||function(e){function t(l){for(r=!0;n.length;)n.shift()(l)}var n=[],r=!1,o={catch:function(){return o},then:function(l){return n.push(l),r&&setTimeout(t,1),o}};return e(t),o},te=!1,j=Ke(null),P=Ke(null),ne=new ht,re=function(e){return e.toLowerCase()},Ce=T.create||function e(t){return t?(e.prototype=t,new e):this},Tt=Ge||(ze?function(e,t){return e.__proto__=t,e}:je&&ee?function(){function e(t,n){for(var r,o=je(n),l=0,a=o.length;l<a;l++)r=o[l],be.call(t,r)||I(t,r,ee(n,r))}return function(t,n){do e(t,n);while((n=pt(n))&&!J.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),F=m.MutationObserver||m.WebKitMutationObserver,$e=m.HTMLAnchorElement,d=(m.HTMLElement||m.Element||m.Node).prototype,R=!J.call(d,V),oe=R?function(e,t,n){return e[t]=n.value,e}:I,Lt=R?function(e){return e.nodeType===1}:function(e){return J.call(d,e)},G=R&&[],Qe=d.attachShadow,We=d.cloneNode,Mt=d.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},we=d.dispatchEvent,le=d.getAttribute,Et=d.hasAttribute,vt=d.removeAttribute,Ye=d.setAttribute,ae=u.createElement,Ht=u.importNode,Ae=ae,gt=F&&{attributes:!0,characterData:!0,attributeOldValue:!0},Je=F||function(e){ue=!1,V.removeEventListener(N,Je)},ie=0,et=S in u&&!/^force-all/.test(w.type),tt=!0,Oe=!1,ue=!0,nt=!0,ce=!0;if(F&&(A=u.createElement("div"),A.innerHTML="<div><div></div></div>",new F(function(e,t){if(e[0]&&e[0].type=="childList"&&!e[0].removedNodes[0].childNodes.length){A=ee(d,"innerHTML");var n=A&&A.set;n&&I(d,"innerHTML",{set:function(r){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,r)}})}t.disconnect(),A=null}).observe(A,{childList:!0,subtree:!0}),A.innerHTML=""),et||(Ge||ze?(Q=function(e,t){J.call(t,e)||he(e,t)},U=he):(Q=function(e,t){e[H]||(e[H]=T(!0),he(e,t))},U=Q),R?(ue=!1,function(){var e=ee(d,g),t=e.value,n=function(l){var a=new CustomEvent(N,{bubbles:!0});a.attrName=l,a.prevValue=le.call(this,l),a.newValue=null,a[He]=a.attrChange=2,vt.call(this,l),we.call(this,a)},r=function(l,a){var s=Et.call(this,l),i=s&&le.call(this,l),c=new CustomEvent(N,{bubbles:!0});Ye.call(this,l,a),c.attrName=l,c.prevValue=s?i:null,c.newValue=a,s?c.MODIFICATION=c.attrChange=1:c[W]=c.attrChange=0,we.call(this,c)},o=function(l){var a,s=l.currentTarget,i=s[H],c=l.propertyName;i.hasOwnProperty(c)&&(i=i[c],a=new CustomEvent(N,{bubbles:!0}),a.attrName=i.name,a.prevValue=i.value||null,a.newValue=i.value=s[c]||null,a.prevValue==null?a[W]=a.attrChange=0:a.MODIFICATION=a.attrChange=1,we.call(s,a))};e.value=function(l,a,s){l===N&&this[y]&&this.setAttribute!==r&&(this[H]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,l,a,s)},I(d,g,e)}()):F||(V[g](N,Je),V.setAttribute(H,1),V.removeAttribute(H),ue&&(Me=function(e){var t,n,r,o=this;if(o===e.target){t=o[H],o[H]=n=Ee(o);for(r in n){if(!(r in t))return X(0,o,r,t[r],n[r],W);if(n[r]!==t[r])return X(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return X(2,o,r,t[r],n[r],He)}},X=function(e,t,n,r,o,l){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[l]=e,Ie(a)},Ee=function(e){for(var t,n,r={},o=e.attributes,l=0,a=o.length;l<a;l++)t=o[l],(n=t.name)!=="setAttribute"&&(r[n]=t.value);return r})),u[S]=function(e,t){if(n=e.toUpperCase(),tt&&(tt=!1,F?($=function(i,c){function p(f,h){for(var M=0,se=f.length;M<se;h(f[M++]));}return new F(function(f){for(var h,M,se,Ne=0,bt=f.length;Ne<bt;Ne++)h=f[Ne],h.type==="childList"?(p(h.addedNodes,i),p(h.removedNodes,c)):(M=h.target,ce&&M[y]&&h.attributeName!=="style"&&(se=le.call(M,h.attributeName))!==h.oldValue&&M[y](h.attributeName,h.oldValue,se))})}(fe(b),fe(E)),ve=function(i){return $.observe(i,{childList:!0,subtree:!0}),i},ve(u),Qe&&(d.attachShadow=function(){return ve(Qe.apply(this,arguments))})):(K=[],u[g]("DOMNodeInserted",Fe(b)),u[g]("DOMNodeRemoved",Fe(E))),u[g](Ze,de),u[g]("readystatechange",de),u.importNode=function(i,c){switch(i.nodeType){case 1:return Se(u,Ht,[i,!!c]);case 11:for(var p=u.createDocumentFragment(),f=i.childNodes,h=f.length,M=0;M<h;M++)p.appendChild(u.importNode(f[M],!!c));return p;default:return We.call(i,!!c)}},d.cloneNode=function(i){return Se(this,We,[!!i])}),Oe)return Oe=!1;if(-2<v.call(D,Y+n)+v.call(D,x+n)&&Ve(e),!mt.test(n)||-1<v.call(ft,n))throw new Error("The type "+e+" is invalid");var n,r,o=function(){return a?u.createElement(s,n):u.createElement(s)},l=t||ge,a=be.call(l,_),s=a?t[_].toUpperCase():n;return a&&-1<v.call(D,x+s)&&Ve(s),r=D.push((a?Y:x)+n)-1,L=L.concat(L.length?",":"",a?s+'[is="'+e.toLowerCase()+'"]':s),o.prototype=q[r]=be.call(l,"prototype")?l.prototype:Ce(d),L.length&&me(u.querySelectorAll(L),b),o},u.createElement=Ae=function(e,t){var n=Ue(t),r=n?ae.call(u,e,re(n)):ae.call(u,e),o=""+e,l=v.call(D,(n?Y:x)+(n||o).toUpperCase()),a=-1<l;return n&&(r.setAttribute("is",n=n.toLowerCase()),a&&(a=De(o.toUpperCase(),n))),ce=!u.createElement.innerHTMLHelper,a&&U(r,q[l]),r}),addEventListener("beforeunload",function(){delete u.createElement,delete u.importNode,delete u[S]},!1),z.prototype={constructor:z,define:Z?function(e,t,n){if(n)Pe(e,t,n);else{var r=e.toUpperCase();j[r]={constructor:t,create:[r]},ne.set(t,r),C.define(e,t)}}:Pe,get:Z?function(e){return C.get(e)||Re(e)}:Re,whenDefined:Z?function(e){return Xe.race([C.whenDefined(e),Le(e)])}:Le},!C||/^force/.test(w.type))ke();else if(!w.noBuiltIn)try{(function(e,t,n){var r=new RegExp(`^<a\\s+is=('|")`+n+"\\1></a>$");if(t[_]="a",e.prototype=Ce($e.prototype),e.prototype.constructor=e,m.customElements.define(n,e,t),!r.test(u.createElement("a",{is:n}).outerHTML)||!r.test(new e().outerHTML))throw t})(function e(){return Reflect.construct($e,[],e)},{},"document-register-element-a"+xe)}catch{ke()}if(!w.noBuiltIn)try{if(ae.call(u,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{re=function(t){return{is:t.toLowerCase()}}}})(window);
|
|
3
3
|
|
|
4
|
-
var u0e=Object.create;var Cw=Object.defineProperty,h0e=Object.defineProperties,f0e=Object.getOwnPropertyDescriptor,v0e=Object.getOwnPropertyDescriptors,C0e=Object.getOwnPropertyNames,vw=Object.getOwnPropertySymbols,mG=Object.getPrototypeOf,c7=Object.prototype.hasOwnProperty,dG=Object.prototype.propertyIsEnumerable,_0e=Reflect.get;var cG=(n,o,t)=>o in n?Cw(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,I=(n,o)=>{for(var t in o||={})c7.call(o,t)&&cG(n,t,o[t]);if(vw)for(var t of vw(o))dG.call(o,t)&&cG(n,t,o[t]);return n},T=(n,o)=>h0e(n,v0e(o));var m7=(n,o)=>{var t={};for(var e in n)c7.call(n,e)&&o.indexOf(e)<0&&(t[e]=n[e]);if(n!=null&&vw)for(var e of vw(n))o.indexOf(e)<0&&dG.call(n,e)&&(t[e]=n[e]);return t};var y0e=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),_w=(n,o)=>{for(var t in o)Cw(n,t,{get:o[t],enumerable:!0})},S0e=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of C0e(o))!c7.call(n,i)&&i!==t&&Cw(n,i,{get:()=>o[i],enumerable:!(e=f0e(o,i))||e.enumerable});return n};var pG=(n,o,t)=>(t=n!=null?u0e(mG(n)):{},S0e(o||!n||!n.__esModule?Cw(t,"default",{value:n,enumerable:!0}):t,n));var Vd=(n,o,t)=>_0e(mG(n),t,o);var te=(n,o,t)=>new Promise((e,i)=>{var r=m=>{try{s(t.next(m))}catch(p){i(p)}},a=m=>{try{s(t.throw(m))}catch(p){i(p)}},s=m=>m.done?e(m.value):Promise.resolve(m.value).then(r,a);s((t=t.apply(n,o)).next())});var wz=y0e((
|
|
4
|
+
var u0e=Object.create;var Cw=Object.defineProperty,h0e=Object.defineProperties,f0e=Object.getOwnPropertyDescriptor,v0e=Object.getOwnPropertyDescriptors,C0e=Object.getOwnPropertyNames,vw=Object.getOwnPropertySymbols,mG=Object.getPrototypeOf,c7=Object.prototype.hasOwnProperty,dG=Object.prototype.propertyIsEnumerable,_0e=Reflect.get;var cG=(n,o,t)=>o in n?Cw(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,I=(n,o)=>{for(var t in o||={})c7.call(o,t)&&cG(n,t,o[t]);if(vw)for(var t of vw(o))dG.call(o,t)&&cG(n,t,o[t]);return n},T=(n,o)=>h0e(n,v0e(o));var m7=(n,o)=>{var t={};for(var e in n)c7.call(n,e)&&o.indexOf(e)<0&&(t[e]=n[e]);if(n!=null&&vw)for(var e of vw(n))o.indexOf(e)<0&&dG.call(n,e)&&(t[e]=n[e]);return t};var y0e=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),_w=(n,o)=>{for(var t in o)Cw(n,t,{get:o[t],enumerable:!0})},S0e=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of C0e(o))!c7.call(n,i)&&i!==t&&Cw(n,i,{get:()=>o[i],enumerable:!(e=f0e(o,i))||e.enumerable});return n};var pG=(n,o,t)=>(t=n!=null?u0e(mG(n)):{},S0e(o||!n||!n.__esModule?Cw(t,"default",{value:n,enumerable:!0}):t,n));var Vd=(n,o,t)=>_0e(mG(n),t,o);var te=(n,o,t)=>new Promise((e,i)=>{var r=m=>{try{s(t.next(m))}catch(p){i(p)}},a=m=>{try{s(t.throw(m))}catch(p){i(p)}},s=m=>m.done?e(m.value):Promise.resolve(m.value).then(r,a);s((t=t.apply(n,o)).next())});var wz=y0e((Xoo,Dz)=>{"use strict";var yt={};yt.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)};yt.localCName=yt.generateIdentifier();yt.splitLines=function(n){return n.trim().split(`
|
|
5
5
|
`).map(o=>o.trim())};yt.splitSections=function(n){return n.split(`
|
|
6
6
|
m=`).map((t,e)=>(e>0?"m="+t:t).trim()+`\r
|
|
7
7
|
`)};yt.getDescription=function(n){let o=yt.splitSections(n);return o&&o[0]};yt.getMediaSections=function(n){let o=yt.splitSections(n);return o.shift(),o};yt.matchPrefix=function(n,o){return yt.splitLines(n).filter(t=>t.indexOf(o)===0)};yt.parseCandidate=function(n){let o;n.indexOf("a=candidate:")===0?o=n.substring(12).split(" "):o=n.substring(10).split(" ");let t={foundation:o[0],component:{1:"rtp",2:"rtcp"}[o[1]]||o[1],protocol:o[2].toLowerCase(),priority:parseInt(o[3],10),ip:o[4],address:o[4],port:parseInt(o[5],10),type:o[7]};for(let e=8;e<o.length;e+=2)switch(o[e]){case"raddr":t.relatedAddress=o[e+1];break;case"rport":t.relatedPort=parseInt(o[e+1],10);break;case"tcptype":t.tcpType=o[e+1];break;case"ufrag":t.ufrag=o[e+1],t.usernameFragment=o[e+1];break;default:t[o[e]]===void 0&&(t[o[e]]=o[e+1]);break}return t};yt.writeCandidate=function(n){let o=[];o.push(n.foundation);let t=n.component;t==="rtp"?o.push(1):t==="rtcp"?o.push(2):o.push(t),o.push(n.protocol.toUpperCase()),o.push(n.priority),o.push(n.address||n.ip),o.push(n.port);let e=n.type;return o.push("typ"),o.push(e),e!=="host"&&n.relatedAddress&&n.relatedPort&&(o.push("raddr"),o.push(n.relatedAddress),o.push("rport"),o.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(o.push("tcptype"),o.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(o.push("ufrag"),o.push(n.usernameFragment||n.ufrag)),"candidate:"+o.join(" ")};yt.parseIceOptions=function(n){return n.substring(14).split(" ")};yt.parseRtpMap=function(n){let o=n.substring(9).split(" "),t={payloadType:parseInt(o.shift(),10)};return o=o[0].split("/"),t.name=o[0],t.clockRate=parseInt(o[1],10),t.channels=o.length===3?parseInt(o[2],10):1,t.numChannels=t.channels,t};yt.writeRtpMap=function(n){let o=n.payloadType;n.preferredPayloadType!==void 0&&(o=n.preferredPayloadType);let t=n.channels||n.numChannels||1;return"a=rtpmap:"+o+" "+n.name+"/"+n.clockRate+(t!==1?"/"+t:"")+`\r
|
|
@@ -434,7 +434,7 @@ This typically indicates that your device does not have a healthy Internet conne
|
|
|
434
434
|
`],encapsulation:2,changeDetection:0})}return n})();var fJt={provide:Sd,useExisting:Rr(()=>JH),multi:!0};var JH=(()=>{class n{_ngZone=Se(kt);_elementRef=Se(k);_cdr=Se(Kt);_slider=Se(QH);_platform=Se(lo);_listenerCleanups;get value(){return Wl(this._hostElement.value,0)}set value(t){t=isNaN(t)?0:t;let e=t+"";if(!this._hasSetInitialValue){this._initialValue=e;return}this._isActive||this._setValue(e)}_setValue(t){this._hostElement.value=t,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}valueChange=new Oe;dragStart=new Oe;dragEnd=new Oe;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(t){this._translateX=t}_translateX;thumbPosition=Pn.END;get min(){return Wl(this._hostElement.min,0)}set min(t){this._hostElement.min=t+"",this._cdr.detectChanges()}get max(){return Wl(this._hostElement.max,0)}set max(t){this._hostElement.max=t+"",this._cdr.detectChanges()}get step(){return Wl(this._hostElement.step,0)}set step(t){this._hostElement.step=t+"",this._cdr.detectChanges()}get disabled(){return ti(this._hostElement.disabled)}set disabled(t){this._hostElement.disabled=t,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=Te("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(t){this._isFocused=t}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new Ke;_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;constructor(){let t=Se(Wi);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[t.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),t.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),t.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))]})}ngOnDestroy(){this._listenerCleanups.forEach(t=>t()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(t){if(!(this.disabled||t.button!==0)){if(this._platform.IOS){let e=this._slider._isCursorOnSliderThumb(t,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=e,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(t,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(t),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(t){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(t)},0)}_fixValue(t){let e=t.clientX-this._slider._cachedLeft,i=this._slider._cachedWidth,r=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/r),s=this._slider._isRtl?1-e/i:e/i,p=Math.round(s*a)/a*(this._slider.max-this._slider.min)+this._slider.min,h=Math.round(p/r)*r,C=this.value;if(h===C){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(t,{withAnimation:this._slider._hasAnimation});return}this.value=h,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(t,{withAnimation:this._slider._hasAnimation})}_onPointerMove(t){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(t)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(t){let e=this._tickMarkOffset,i=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(t,i),e)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(t){return t.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(t){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(t)}_updateThumbUIByPointerEvent(t,e){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(t)),this._updateThumbUI(e)}_updateThumbUI(t){this._slider._setTransition(!!t?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(t){(this._isControlInitialized||t!==null)&&(this.value=t)}registerOnChange(t){this._onChangeFn=t,this._isControlInitialized=!0}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static \u0275fac=function(e){return new(e||n)};static \u0275dir=Bt({type:n,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(e,i){e&1&&z("change",function(){return i._onChange()})("input",function(){return i._onInput()})("blur",function(){return i._onBlur()})("focus",function(){return i._onFocus()}),e&2&&x("aria-valuetext",i._valuetext())},inputs:{value:[2,"value","value",Wl]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[U([fJt,{provide:xve,useExisting:n}])]})}return n})();var wve=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Qt({type:n});static \u0275inj=Xt({imports:[Po,nv]})}return n})();var CJt=["*"],H9=(()=>{let o=class o extends nt{constructor(e,i,r,a){super(r,a),this.loggingService=e,this.customFilterService=i,this.elementRef=r,this.themeService=a,this.headingMode=!1,this.changeStatus=new Oe,this.componentId="velt-unresolve-button"}ngOnInit(){this.setupA11yAttributes()}ngOnDestroy(){super.ngOnDestroy()}setupA11yAttributes(){try{let e=this.elementRef.nativeElement;e.setAttribute("role","button"),e.setAttribute("aria-label","Unresolve comment"),e.setAttribute("data-testid",this.componentId+"-container")}catch(e){this.loggingService.catch("Error in UnresolveButtonComponent setupA11yAttributes: ",e)}}unresolveComment(e){this.loggingService.log("%c[WB] Calling FUNCTION: unresolveComment","color: green;");try{if(!this.annotation)return;this.changeStatus.emit({status:this.customFilterService.defaultStatus,statusOptionType:e})}catch(i){this.catchError("Error in UnresolveButtonComponent unresolveComment: ",i)}}catchError(e,i,r){try{this.loggingService.catch(e,i,T(I({},r||{}),{annotationId:this.annotation?.annotationId}))}catch{}}};o.\u0275fac=function(i){return new(i||o)(u(y),u(Ho),u(k),u(qe))},o.\u0275cmp=O({type:o,selectors:[["app-unresolve-button"]],inputs:{annotation:"annotation",sidebarMode:"sidebarMode",headingMode:"headingMode"},outputs:{changeStatus:"changeStatus"},standalone:!1,features:[L],ngContentSelectors:CJt,decls:3,vars:8,consts:[["type","unresolve",3,"clicked","tooltip","darkMode","colorMode"]],template:function(i,r){i&1&&(Vt(),_(0,"app-tooltip-button",0),A(1,"translate"),z("clicked",function(){return r.unresolveComment("button")}),Rt(2),S()),i&2&&(rt("color",(r.annotation==null||r.annotation.status==null?null:r.annotation.status.color)+" !important"),c("tooltip",P(1,6,"Unresolve"))("darkMode",r.darkMode)("colorMode",r.headingMode),x("data-testid",r.componentId+"-tooltip-button"))},dependencies:[dg,de],encapsulation:2});let n=o;return n})();var Ove=(()=>{let o=class o{constructor(e){this.loggingService=e,this.commentTextData$=new Ce({});try{this.loggingService.log("%c[WB] Creating CLASS: CommentTextService","color: blue;")}catch(i){this.loggingService.catch("Error in CommentTextService constructor: ",i)}}setCommentTextData(e){try{this.loggingService.log("%c[WB] Calling CommentTextService FUNCTION: setCommentTextData","color: green;");let i=e.annotationId||e.multiThreadAnnotationId;if(i){let r=e.componentId,a=this.commentTextData$.getValue();a[i]||(a[i]={}),a[i][r]=e,this.commentTextData$.next(a),this.updateLastPositionInDataByAnnotationId(i)}}catch(i){this.loggingService.catch("Error in CommentTextService setCommentTextData: ",i)}}removeCommentTextData(e){try{this.loggingService.log("%c[WB] Calling CommentTextService FUNCTION: removeCommentTextData","color: green;");let i=e.annotationId||e.multiThreadAnnotationId;if(i){let r=e.componentId,a=this.commentTextData$.getValue();delete a[i][r],this.commentTextData$.next(a),this.updateLastPositionInDataByAnnotationId(i)}}catch(i){this.loggingService.catch("Error in CommentTextService removeCommentTextData: ",i)}}updateLastPositionInDataByAnnotationId(e){try{this.loggingService.log("%c[WB] Calling CommentTextService FUNCTION: updateLastPositionInDataByAnnotationId","color: green;");let i=this.commentTextData$.getValue();Object.values(i[e]).forEach(r=>{r.last=this.checkIfLast(r)}),this.commentTextData$.next(i)}catch(i){this.loggingService.catch("Error in CommentTextService updateLastPositionInDataByAnnotationId: ",i)}}checkIfLast(e){try{if(this.loggingService.log("%c[WB] Calling CommentTextService FUNCTION: checkIfLast","color: green;"),e?.elementRef?.nativeElement){let i=[];if(e.annotationId?i=Array.from(document.querySelectorAll(`${j.TAGS.VELT_COMMENT_TEXT}[${j.ATTRIBUTES.ANNOTATION_ID}="${e.annotationId}"]`)):e.multiThreadAnnotationId&&(i=Array.from(document.querySelectorAll(`${j.TAGS.VELT_COMMENT_TEXT}[${j.ATTRIBUTES.MULTI_THREAD_ANNOTATION_ID}="${e.multiThreadAnnotationId}"]`))),i.length&&i[i.length-1]===e.elementRef.nativeElement)return!0}return!1}catch(i){return this.loggingService.catch("Error in CommentTextService checkIfLast: ",i),!1}}getCommentTextDataByAnnotationIdAndComponentId(e,i){try{return this.loggingService.log("%c[WB] Calling CommentTextService FUNCTION: getCommentTextDataByAnnotationIdAndComponentId","color: green;"),this.commentTextData$.pipe(me(r=>r&&e&&i&&r[e]?r[e][i]:null))}catch(r){return this.loggingService.catch("Error in CommentTextService getCommentTextDataByAnnotationIdAndComponentId: ",r),se(null)}}};o.\u0275fac=function(i){return new(i||o)(Q(y))},o.\u0275prov=Ae({token:o,factory:o.\u0275fac,providedIn:"root"});let n=o;return n})();var yJt=["overlay"],SJt=["*"];function bJt(n,o){if(n&1){let t=q();f(0),_(1,"velt-multi-thread-comment-dialog-internal",6),A(2,"translate"),z("updateOverlayPosition",function(){N(t);let i=l(4);return F(i.updateOverlayPosition())})("saveComment",function(i){N(t);let r=l(4);return F(r.saveComment(i))}),S(),v()}if(n&2){let t=l(3).ngIf,e=l();d(),c("multiThreadAnnotationId",t.commentPinAnnotation.annotationId)("annotation",t.commentPinAnnotation)("user",t.user)("commentPinSelected",!0),x("data-testid",e.componentTestId+"-multi-thread-dialog")("role","dialog")("aria-label",P(2,7,"Multi-thread comment dialog"))}}function IJt(n,o){if(n&1){let t=q();_(0,"snippyly-comment-dialog",7),A(1,"translate"),z("updateOverlayPosition",function(){N(t);let i=l(4);return F(i.updateOverlayPosition())})("saveComment",function(i){N(t);let r=l(4);return F(r.saveComment(i))}),S()}if(n&2){let t=l(3).ngIf,e=l();c("annotation",t.commentPinAnnotation)("user",t.user)("commentPinSelected",t.commentPinSelected),x("data-testid",e.componentTestId+"-comment-dialog")("role","dialog")("aria-label",P(1,6,"Comment dialog"))}}function EJt(n,o){if(n&1&&g(0,bJt,3,9,"ng-container",5)(1,IJt,2,8,"ng-template",null,1,De),n&2){let t=pe(2),e=l(2).ngIf;c("ngIf",(e==null||e.commentPinAnnotation==null?null:e.commentPinAnnotation.type)==="multiThread")("ngIfElse",t)}}function xJt(n,o){if(n&1&&g(0,EJt,3,2,"ng-template",4,0,De),n&2){let t=l().ngIf,e=l();c("cdkConnectedOverlayOrigin",e.origin)("cdkConnectedOverlayOpen",(!t.mobileMode||!t.isPhone)&&!t.inboxMode&&!t.streamMode&&(!t.inlineCommentMode||t.isInsidePdfViewer)&&t.floatingCommentsEnabled&&(t.last&&t.commentPinSelected||t.commentPinHover&&!t.commentPinSelected))("cdkConnectedOverlayPanelClass","snippyly-overlay-panel")("cdkConnectedOverlayBackdropClass","snippyly-overlay-backdrop")("cdkConnectedOverlayLockPosition",!1)("cdkConnectedOverlayGrowAfterOpen",!0)("cdkConnectedOverlayDisableClose",!0)}}function TJt(n,o){if(n&1&&(f(0),Rt(1),g(2,xJt,2,7,"ng-template",3),v()),n&2){let t=l();d(2),c("ngIf",t.origin)}}var Ave=(()=>{let o=class o{onPointerOverListener(e){try{this.onPointerOver(e),e.stopPropagation()}catch(i){this.catchError("Error in VeltCommentTextComponent onPointerOverListener: ",i)}}onPointerOutListener(e){try{this.onPointerOut(),e.stopPropagation()}catch(i){this.catchError("Error in VeltCommentTextComponent onPointerOutListener: ",i)}}onPointerDownListener(e){try{e.stopPropagation()}catch(i){this.catchError("Error in VeltCommentTextComponent onPointerDownListener: ",i)}}onPointerUpListener(e){try{this.togglePinSelection(),e.stopPropagation()}catch(i){this.catchError("Error in VeltCommentTextComponent onPointerUpListener: ",i)}}constructor(e,i,r,a,s,m,p){this.authService=e,this.commentService=i,this.commentTextService=r,this.domService=a,this.loggingService=s,this.elementRef=m,this.cd=p,this.resolvedCommentsOnDom=!1,this.componentConfigSignal=Te({commentPinAnnotation:void 0,user:null,selectedAnnotationsMap:{},commentPinHover:!1,commentPinSelected:!1,isPhone:!1,mobileMode:!1,streamMode:!1,inboxMode:!1,textClicked:!1,floatingCommentsEnabled:!0,sidebarVisible:!1,inlineCommentMode:!1,isInsidePdfViewer:!1,first:!1,last:!1}),this.selectedAnnotationsMap={},this.isDialogOnHoverEnabled=!1,this.subscriptions=[],this.componentId=An(),this.commentAvailable=!1,this.commentSelected=!1,this.componentTestId="velt-comment-text";try{this.loggingService.log("%c[WB] Creating Class: VeltCommentTextComponent","color: blue;"),this.origin=new On(this.elementRef),this.subscriptions.push(this.authService.getUser$().subscribe(h=>{this.componentConfigSignal.update(C=>(C=T(I({},C),{user:h}),C))},h=>{this.catchError("Error in VeltCommentTextComponent getUser$ subscription: ",h)})),this.subscriptions.push(this.domService.getSelectedAnnotationsMap$().subscribe(h=>{this.selectedAnnotationsMap=h,this.componentConfigSignal.update(C=>(C=T(I({},C),{selectedAnnotationsMap:h}),C)),this.checkPinSelection()},h=>{this.catchError("Error in VeltCommentTextComponent getSelectedAnnotationsMap$ subscription: ",h)})),this.subscriptions.push(this.commentService.getEnableDialogOnHover$().subscribe(h=>{this.isDialogOnHoverEnabled=h},h=>{this.catchError("Error in CommentPinComponent getEnableDialogOnHover subscription: ",h)})),this.subscriptions.push(this.commentService.onCommentAnnotationDelete$().subscribe(h=>{h?.annotationId&&this.componentConfigSignal().commentPinAnnotation?.annotationId&&h.annotationId===this.componentConfigSignal().commentPinAnnotation?.annotationId&&this.removeThisComponent()},h=>{this.catchError("Error in VeltCommentTextComponent onCommentAnnotationDelete$ subscription: ",h)})),this.subscriptions.push(this.commentService.onMultiThreadCommentAnnotationDelete$().subscribe(h=>{h?.annotationId&&this.componentConfigSignal().commentPinAnnotation?.annotationId&&h.annotationId===this.componentConfigSignal().commentPinAnnotation?.annotationId&&this.removeThisComponent()},h=>{this.catchError("Error in VeltCommentTextComponent onMultiThreadCommentAnnotationDelete$ subscription: ",h)})),this.subscriptions.push(this.commentService.updateCommentDialogPositionTrigger$().subscribe(()=>{try{!!(this.componentConfigSignal().selectedAnnotationsMap&&this.componentConfigSignal().commentPinAnnotation?.annotationId&&this.componentConfigSignal().selectedAnnotationsMap[this.componentConfigSignal().commentPinAnnotation.annotationId])&&this.updateOverlayPosition()}catch(h){this.catchError("Error in VeltCommentTextComponent updateCommentDialogPositionTrigger$: ",h)}},h=>{this.catchError("Error in VeltCommentTextComponent updateCommentDialogPositionTrigger$ subscription: ",h)}))}catch(h){this.catchError("Error in VeltCommentTextComponent constructor: ",h)}}ngOnInit(){this.setupA11yAttributes()}setupA11yAttributes(){try{this.elementRef.nativeElement.setAttribute("data-testid",this.componentTestId)}catch(e){this.loggingService.catch("Error in VeltCommentTextComponent setupA11yAttributes:",e)}}togglePinSelection(e){try{if(this.componentConfigSignal().textClicked&&!e)return;let i=e||this.componentConfigSignal().commentPinAnnotation;if(i)if(this.selectedAnnotationsMap[i.annotationId])e||(document.querySelector(`[${j.ATTRIBUTES.VELT_ANNOTATION_DRAFT}="${i?.annotationId}"]`)?this.domService.resetSelectedAnnotationsMap(!0,"comments"):(this.componentConfigSignal.update(a=>(a=T(I({},a),{textClicked:!0}),a)),this.domService.toggleAnnotationSelection(i)));else{let r=document.querySelector(`[${j.ATTRIBUTES.VELT_ANNOTATION_DRAFT}]`);if(r||(r=(this.domService.getDraftCommentAnnotationDialogs()||[])[0]),r){let a=r.getAttribute(j.ATTRIBUTES.VELT_ANNOTATION_DRAFT);if(a){let s=document.getElementById(`comment-pin-container-${a}`)||document.querySelector(`[data-velt-id='${a}']`);s&&(s.scrollIntoView({behavior:"auto",block:"center",inline:"center"}),this.domService.resetSelectedAnnotationsMap(!0,"comments"))}}else this.domService.resetSelectedAnnotationsMap(!0,"comments"),this.componentConfigSignal.update(a=>(a=T(I({},a),{textClicked:!0}),a)),this.domService.toggleAnnotationSelection(i)}}catch(i){this.catchError("Error in VeltCommentTextComponent togglePinSelection: ",i)}}ngAfterViewInit(){try{this.commentTextData={annotationId:this.annotationId,multiThreadAnnotationId:this.multiThreadAnnotationId,componentId:this.componentId,elementRef:this.elementRef,last:!1},this.commentTextService.setCommentTextData(this.commentTextData),this.subscriptions.push(this.commentTextService.getCommentTextDataByAnnotationIdAndComponentId(this.annotationId||this.multiThreadAnnotationId,this.componentId).subscribe(e=>{this.componentConfigSignal.update(i=>(i=T(I({},i),{last:e?.last||!1}),i)),this.checkPinSelection()},e=>{this.catchError("Error in VeltCommentTextComponent getCommentTextDataByAnnotationIdAndComponentId subscription: ",e)}))}catch(e){this.catchError("Error in VeltCommentTextComponent ngAfterViewInit: ",e)}}ngOnChanges(e){try{this.loggingService.log("%c[WB] Calling VeltCommentTextComponent FUNCTION: ngOnChanges","color: green;"),e?.annotationId&&this.annotationId&&this.getCommentAnnotationByAnnotationId(this.annotationId),e?.multiThreadAnnotationId&&this.multiThreadAnnotationId&&this.getMultiThreadCommentAnnotationByAnnotationId(this.multiThreadAnnotationId)}catch(i){this.catchError("Error in VeltCommentTextComponent ngOnChanges: ",i)}}getCommentAnnotationByAnnotationId(e){try{this.loggingService.log("%c[WB] Calling VeltCommentTextComponent FUNCTION: getCommentAnnotationByAnnotationId","color: green;"),this.commentAnnotationByAnnotationIdSubscription&&(this.commentAnnotationByAnnotationIdSubscription.unsubscribe(),this.commentAnnotationByAnnotationIdSubscription=void 0),this.commentAnnotationByAnnotationIdSubscription=this.commentService.getCommentAnnotationByAnnotationId(e).pipe(ue(i=>this.commentService.getResolvedCommentsOnDom$().pipe(me(r=>(this.resolvedCommentsOnDom=r,i)))),ue(i=>this.domService.getSelectedAnnotationsMap$().pipe(me(r=>({commentPinAnnotation:i,selectedAnnotationsMap:r||{}}))))).subscribe(i=>{let r;i?.commentPinAnnotation&&(this.resolvedCommentsOnDom||i?.commentPinAnnotation?.status?.type!=="terminal"||i?.selectedAnnotationsMap[i.commentPinAnnotation.annotationId])&&(r=i.commentPinAnnotation),this.componentConfigSignal.update(s=>(s=T(I({},s),{commentPinAnnotation:r}),s));let a=!!r;this.commentAvailable!==a&&(this.commentAvailable=a,this.cd.markForCheck()),this.checkPinSelection()})}catch(i){this.catchError("Error in VeltCommentTextComponent getCommentAnnotationByAnnotationId: ",i)}}getMultiThreadCommentAnnotationByAnnotationId(e){try{this.loggingService.log("%c[WB] Calling VeltCommentTextComponent FUNCTION: getMultiThreadCommentAnnotationByAnnotationId","color: green;"),this.multiThreadCommentAnnotationByAnnotationIdSubscription&&(this.multiThreadCommentAnnotationByAnnotationIdSubscription.unsubscribe(),this.multiThreadCommentAnnotationByAnnotationIdSubscription=void 0),this.multiThreadCommentAnnotationByAnnotationIdSubscription=this.commentService.getMultiThreadCommentAnnotationByAnnotationId(e).subscribe(i=>{this.componentConfigSignal.update(a=>(a=T(I({},a),{commentPinAnnotation:i}),a));let r=!!i;this.commentAvailable!==r&&(this.commentAvailable=r,this.cd.markForCheck()),this.checkPinSelection()})}catch(i){this.catchError("Error in VeltCommentTextComponent getMultiThreadCommentAnnotationByAnnotationId: ",i)}}unsubscribe(){try{this.loggingService.log("%c[WB] Calling VeltCommentTextComponent FUNCTION: unsubscribe","color: green;"),this.commentAnnotationByAnnotationIdSubscription&&(this.commentAnnotationByAnnotationIdSubscription.unsubscribe(),this.commentAnnotationByAnnotationIdSubscription=void 0),this.multiThreadCommentAnnotationByAnnotationIdSubscription&&(this.multiThreadCommentAnnotationByAnnotationIdSubscription.unsubscribe(),this.multiThreadCommentAnnotationByAnnotationIdSubscription=void 0),this.subscriptions.forEach(e=>{e.unsubscribe()})}catch(e){this.catchError("Error in VeltCommentTextComponent unsubscribe: ",e)}}checkPinSelection(){try{this.selectedAnnotationsMap[this.componentConfigSignal().commentPinAnnotation?.annotationId]?this.componentConfigSignal.update(e=>(e=T(I({},e),{commentPinSelected:!0}),e?.commentPinAnnotation?.isDraft&&(e.textClicked=!!e.last),e)):this.componentConfigSignal.update(e=>(e=T(I({},e),{commentPinSelected:!1,textClicked:!1}),e)),sessionStorage.getItem(j.SESSION_STORAGE.SNIPPYLY_AUTO_SELECT_ANNOTATION_ID)===this.componentConfigSignal().commentPinAnnotation?.annotationId&&this.componentConfigSignal().last&&(this.componentConfigSignal.update(e=>(e=T(I({},e),{textClicked:!0}),e)),sessionStorage.removeItem(j.SESSION_STORAGE.SNIPPYLY_AUTO_SELECT_ANNOTATION_ID)),this.componentConfigSignal().commentPinSelected!==this.commentSelected&&(this.commentSelected=this.componentConfigSignal().commentPinSelected,this.cd.markForCheck())}catch(e){this.catchError("Error in VeltCommentTextComponent checkPinSelection: ",e)}}onPointerOver(e){try{if(this.componentConfigSignal().commentPinHover)return;e.buttons?this.componentConfigSignal().commentPinHover&&this.componentConfigSignal.update(i=>(i=T(I({},i),{commentPinHover:!1}),i)):!this.componentConfigSignal().commentPinHover&&this.isDialogOnHoverEnabled&&this.componentConfigSignal.update(i=>(i=T(I({},i),{commentPinHover:!0}),i))}catch(i){this.catchError("Error in VeltCommentTextComponent onPointerOver: ",i)}}onPointerOut(){this.componentConfigSignal.update(e=>(e=T(I({},e),{commentPinHover:!1}),e))}updateOverlayPosition(){try{this.loggingService.log("updateOverlayPosition",this.componentConfigSignal().commentPinAnnotation?.annotationId),this.commentDialogOverlay&&this.commentDialogOverlay?.overlayRef?.updatePosition()}catch{}}removeThisComponent(){try{this.loggingService.log("%c[WB] Calling VeltCommentTextComponent FUNCTION: removeThisComponent","color: green;"),this.clearRemoveThisComponentTimeout();try{if(this.elementRef.nativeElement?.closest(`[${j.ATTRIBUTES.SLATE_EDITOR}]`))return}catch(e){this.catchError("Error in VeltCommentTextComponent removeThisComponent: ",e)}this.removeThisComponentTimeout=setTimeout(()=>{if(this.elementRef.nativeElement?.isConnected){let e=this.elementRef.nativeElement.parentElement,i=this.elementRef.nativeElement.childNodes,r=document.createDocumentFragment();for(let a=0;a<i.length;a++){let s=i[a];s?.nodeType!==Node.COMMENT_NODE&&r.appendChild(s)}e.insertBefore(r,this.elementRef.nativeElement),e.removeChild(this.elementRef.nativeElement),e.normalize()}},500)}catch(e){this.catchError("Error in VeltCommentTextComponent removeThisComponent: ",e)}}clearRemoveThisComponentTimeout(){try{this.removeThisComponentTimeout&&(clearTimeout(this.removeThisComponentTimeout),this.removeThisComponentTimeout=void 0)}catch(e){this.catchError("Error in VeltCommentTextComponent clearRemoveThisComponentTimeout: ",e)}}ngOnDestroy(){try{this.loggingService.log("%c[WB] Calling VeltCommentTextComponent FUNCTION: ngOnDestroy","color: green;"),this.clearRemoveThisComponentTimeout(),this.unsubscribe(),this.commentTextData&&this.commentTextService.removeCommentTextData(this.commentTextData)}catch(e){this.catchError("Error in VeltCommentTextComponent ngOnDestroy: ",e)}}saveComment(e){try{this.loggingService.log("%c[WB] Calling VeltCommentTextComponent FUNCTION: saveComment","color: green;"),this.commentService.saveComment(this.componentConfigSignal().commentPinAnnotation,e)}catch(i){this.catchError("Error in VeltCommentTextComponent saveComment: ",i)}}catchError(e,i,r){try{this.loggingService.catch(e,i,T(I({},r||{}),{annotationId:this.componentConfigSignal()?.commentPinAnnotation?.annotationId}))}catch{}}};o.\u0275fac=function(i){return new(i||o)(u(He),u(we),u(Ove),u(Ne),u(y),u(k),u(Kt))},o.\u0275cmp=O({type:o,selectors:[["velt-comment-text-internal"]],viewQuery:function(i,r){if(i&1&&ot(yJt,5),i&2){let a;Qe(a=Je())&&(r.commentDialogOverlay=a.first)}},hostVars:2,hostBindings:function(i,r){i&1&&z("pointerover",function(s){return r.onPointerOverListener(s)})("pointerout",function(s){return r.onPointerOutListener(s)})("pointerdown",function(s){return r.onPointerDownListener(s)})("pointerup",function(s){return r.onPointerUpListener(s)}),i&2&&x("comment-available",r.commentAvailable)("comment-selected",r.commentSelected)},inputs:{annotationId:"annotationId",multiThreadAnnotationId:"multiThreadAnnotationId"},standalone:!1,features:[Xe],ngContentSelectors:SJt,decls:1,vars:1,consts:[["overlay","cdkConnectedOverlay"],["commentDialogRef",""],[4,"ngIf"],[3,"ngIf"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPanelClass","cdkConnectedOverlayBackdropClass","cdkConnectedOverlayLockPosition","cdkConnectedOverlayGrowAfterOpen","cdkConnectedOverlayDisableClose"],[4,"ngIf","ngIfElse"],[3,"updateOverlayPosition","saveComment","multiThreadAnnotationId","annotation","user","commentPinSelected"],[3,"updateOverlayPosition","saveComment","annotation","user","commentPinSelected"]],template:function(i,r){i&1&&(Vt(),g(0,TJt,3,1,"ng-container",2)),i&2&&c("ngIf",r.componentConfigSignal())},dependencies:[Z,Ln,zo,os,de],encapsulation:2,changeDetection:0});let n=o;return n})();var Pve=(()=>{let o=class o{transform(e,i=!0){try{if(!i)return e;if(!e)return"";if(e.includes("@"))return e.split("@")[0];let r=e.trim().split(" ");if(r.length<=1)return e;let s=r.pop()?.[0].toUpperCase();return`${r.join(" ")} ${s}.`}catch{return e}}};o.\u0275fac=function(i){return new(i||o)},o.\u0275pipe=Hi({name:"shortUserName",type:o,pure:!0,standalone:!1});let n=o;return n})();var Mve=(()=>{let o=class o{constructor(e){this.domService=e}transform(e){try{return this.domService.sanitizeHtml(e)}catch{return e}}};o.\u0275fac=function(i){return new(i||o)(u(Ne,16))},o.\u0275pipe=Hi({name:"sanitizeHtml",type:o,pure:!0,standalone:!1});let n=o;return n})();var kve=(()=>{let o=class o{transform(e,i,r){try{return!e||!i||e.length===0?e:e.sort((s,m)=>{let p=s[i],h=m[i];return p<h?r==="asc"?-1:1:p>h?r==="asc"?1:-1:0})}catch{return e}}};o.\u0275fac=function(i){return new(i||o)},o.\u0275pipe=Hi({name:"orderBy",type:o,pure:!0,standalone:!1});let n=o;return n})();var Rve=(()=>{let o=class o{transform(e,i){try{return!e||e.length===0?e:[...e].sort((r,a)=>r.value.displayName===i?-1:a.value.displayName===i?1:0)}catch{return e}}};o.\u0275fac=function(i){return new(i||o)},o.\u0275pipe=Hi({name:"orderByThisPageInSidebarFilter",type:o,pure:!0,standalone:!1});let n=o;return n})();var Nve=n=>({componentConfigSignal:n}),DJt=(n,o)=>({condition:n,data:o}),wJt=(n,o,t,e,i)=>({template:n,context:o,componentName:"velt-notifications-panel-settings-wireframe",variant:t,setIfCondition:e,componentElementRef:i});function OJt(n,o){if(n&1&&(f(0),_(1,"div",3),D(2,"app-notifications-panel-settings-header",4),_(3,"div",5),D(4,"app-notifications-panel-settings-title",4)(5,"app-notifications-panel-settings-description",4),S(),D(6,"app-notifications-panel-settings-list",4)(7,"app-notifications-panel-settings-footer",4),S(),v()),n&2){let t=l(4);d(2),c("componentConfigSignal",t.componentConfigSignal),d(2),c("componentConfigSignal",t.componentConfigSignal),d(),c("componentConfigSignal",t.componentConfigSignal),d(),c("componentConfigSignal",t.componentConfigSignal),d(),c("componentConfigSignal",t.componentConfigSignal)}}function AJt(n,o){if(n&1&&(f(0),g(1,OJt,8,5,"ng-container",2),v()),n&2){let t=l(2).ngIf,e=l();d(),c("veltDynamicTemplate",$(3,wJt,e.template,M(1,Nve,e.componentConfigSignal),t.variant,e.setIfCondition.bind(e),e.elementRef))}}function PJt(n,o){if(n&1&&(f(0),g(1,AJt,2,9,"ng-container",0),v()),n&2){let t=l().ngIf;d(),c("ngIf",t.settingsOpen&&t.settingsEnabled)}}function MJt(n,o){if(n&1&&(f(0),g(1,PJt,2,1,"ng-container",1),v()),n&2){let t=l();d(),c("veltIf",R(3,DJt,t.conditionSignal(),M(1,Nve,t.componentConfigSignal)))}}var Fve=(()=>{let o=class o extends H{constructor(e,i,r){super(i,r,e),this.loggingService=e,this.elementRef=i,this.dynamicDataService=r,this.componentId="velt-notifications-panel-settings",super.initializeComponentConfigSignal(new at)}ngOnInit(){try{super.ngOnInit(),this.setupA11yAttributes()}catch(e){this.loggingService.catch("Error in NotificationsPanelSettingsComponent ngOnInit:",e)}}ngOnDestroy(){try{super.ngOnDestroy()}catch(e){this.loggingService.catch("Error in NotificationsPanelSettingsComponent ngOnDestroy:",e)}}setupA11yAttributes(){try{this.elementRef.nativeElement.setAttribute("data-testid",this.componentId+"-container")}catch(e){this.loggingService.catch("Error in NotificationsPanelSettingsComponent setupA11yAttributes:",e)}}};o.\u0275fac=function(i){return new(i||o)(u(y),u(k),u(b))},o.\u0275cmp=O({type:o,selectors:[["app-notifications-panel-settings"]],standalone:!1,features:[U([b]),L],decls:1,vars:1,consts:[[4,"ngIf"],[4,"veltIf"],[4,"veltDynamicTemplate"],[1,"velt-notification-panel--settings"],[3,"componentConfigSignal"],[1,"velt-notification-panel--settings-section"]],template:function(i,r){i&1&&g(0,MJt,2,6,"ng-container",0),i&2&&c("ngIf",r.componentConfigSignal())},dependencies:[Z,ne,QC,KC,ZC,XC,JC,re],styles:["html[_ngcontent-%COMP%]{--velt-base-rem-unit: 1}*[data-snippyly-element=true][_ngcontent-%COMP%], *[data-velt-element=true][_ngcontent-%COMP%]{font-family:var(--velt-default-font-family)}velt-wireframe[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%]:empty{display:none}.velt-notification-panel--settings-section[_ngcontent-%COMP%]{display:flex;padding:var(--velt-spacing-lg) var(--velt-spacing-lg) 0px var(--velt-spacing-lg);align-items:flex-start;gap:calc(var(--velt-spacing-sm) + var(--velt-spacing-2xs));align-self:stretch;flex-direction:column}"],changeDetection:0});let n=o;return n})();var Lve=(()=>{let o=class o{constructor(e){this.injector=e,this.customElements=[{name:j.TAGS.SNIPPYLY_ROOT,component:gH},{name:j.TAGS.SNIPPYLY_PRESENCE,component:PH},{name:j.TAGS.SNIPPYLY_CURSOR,component:DH},{name:j.TAGS.SNIPPYLY_COMMENT_TOOL,component:Q0},{name:j.TAGS.SNIPPYLY_COMMENTS,component:TH},{name:j.TAGS.SNIPPYLY_COMMENTS_SIDEBAR,component:R9},{name:j.TAGS.SNIPPYLY_COMMENT_BUBBLE,component:b0},{name:j.TAGS.SNIPPYLY_TAG_TOOL,component:VH},{name:j.TAGS.SNIPPYLY_TAGS,component:BH},{name:j.TAGS.SNIPPYLY_HUDDLE,component:AH},{name:j.TAGS.SNIPPYLY_HUDDLE_TOOL,component:OH},{name:j.TAGS.SNIPPYLY_RECORDER_TOOL,component:MH},{name:j.TAGS.SNIPPYLY_RECORDER_NOTES,component:RH},{name:j.TAGS.SNIPPYLY_MENU,component:uH},{name:j.TAGS.SNIPPYLY_RECORDER_CONTROL_PANEL,component:NH},{name:j.TAGS.SNIPPYLY_RECORDER_PLAYER,component:FH},{name:j.TAGS.SNIPPYLY_REWRITER,component:LH},{name:j.TAGS.SNIPPYLY_SIDEBAR_BUTTON,component:Xp},{name:j.TAGS.SNIPPYLY_USER_INVITE_TOOL,component:WD},{name:j.TAGS.SNIPPYLY_USER_REQUEST_TOOL,component:HH},{name:j.TAGS.SNIPPYLY_ARROW_TOOL,component:WH},{name:j.TAGS.SNIPPYLY_ARROWS,component:qH},{name:j.TAGS.SNIPPYLY_AREA_TOOL,component:KH},{name:j.TAGS.SNIPPYLY_AREAS,component:YH}],this.veltCustomElements=[{name:j.TAGS.VELT_ROOT,component:gH},{name:j.TAGS.VELT_PRESENCE,component:PH},{name:j.TAGS.VELT_CURSOR,component:DH},{name:j.TAGS.VELT_COMMENT_TOOL,component:Q0},{name:j.TAGS.VELT_COMMENTS,component:TH},{name:j.TAGS.VELT_COMMENTS_SIDEBAR,component:R9},{name:j.TAGS.VELT_COMMENT_BUBBLE,component:b0},{name:j.TAGS.VELT_COMMENT_THREAD,component:J3},{name:j.TAGS.VELT_COMMENT_PIN,component:bve},{name:j.TAGS.VELT_COMMENT_TEXT,component:Ave},{name:j.TAGS.VELT_CHART_COMMENT,component:vve},{name:j.TAGS.VELT_CANVAS_COMMENT,component:Ive},{name:j.TAGS.VELT_INLINE_COMMENTS_SECTION,component:cE},{name:j.TAGS.VELT_COMMENTS_MINIMAP,component:Eve},{name:j.TAGS.VELT_TAG_TOOL,component:VH},{name:j.TAGS.VELT_TAGS,component:BH},{name:j.TAGS.VELT_HUDDLE,component:AH},{name:j.TAGS.VELT_HUDDLE_TOOL,component:OH},{name:j.TAGS.VELT_RECORDER_TOOL,component:MH},{name:j.TAGS.VELT_RECORDER_NOTES,component:RH},{name:j.TAGS.VELT_MENU,component:uH},{name:j.TAGS.VELT_RECORDER_CONTROL_PANEL,component:NH},{name:j.TAGS.VELT_RECORDER_PLAYER,component:FH},{name:j.TAGS.VELT_REWRITER,component:LH},{name:j.TAGS.VELT_SIDEBAR_BUTTON,component:Xp},{name:j.TAGS.VELT_COMMENTS_SIDEBAR_BUTTON,component:Xp},{name:j.TAGS.VELT_USER_INVITE_TOOL,component:WD},{name:j.TAGS.VELT_USER_REQUEST_TOOL,component:HH},{name:j.TAGS.VELT_ARROW_TOOL,component:WH},{name:j.TAGS.VELT_ARROWS,component:qH},{name:j.TAGS.VELT_AREA_TOOL,component:KH},{name:j.TAGS.VELT_AREAS,component:YH},{name:j.TAGS.VELT_INLINE_COMMENT,component:ive},{name:j.TAGS.VELT_VIDEO_PLAYER,component:dve},{name:j.TAGS.VELT_VIDEO_COMMENTS_TIMELINE,component:j9},{name:j.TAGS.VELT_REACTION_TOOL,component:i_},{name:j.TAGS.VELT_INLINE_REACTIONS_SECTION,component:d3},{name:j.TAGS.VELT_VIEW_ANALYTICS,component:gve},{name:j.TAGS.VELT_NOTIFICATIONS_TOOL,component:YE},{name:j.TAGS.VELT_NOTIFICATIONS_PANEL,component:Tc},{name:j.TAGS.VELT_NOTIFICATIONS_HISTORY_PANEL,component:uve},{name:j.TAGS.VELT_WIREFRAME,component:fve},{name:j.TAGS.VELT_AUTOCOMPLETE,component:_ve},{name:j.TAGS.VELT_AUTOCOMPLETE_CHIP,component:yve},{name:j.TAGS.VELT_COMMENT_COMPOSER,component:B3},{name:j.TAGS.VELT_SKELETON_LOADER,component:So},{name:j.TAGS.VELT_SINGLE_EDITOR_MODE_PANEL,component:ih}]}ngDoBootstrap(){this.customElements.forEach(e=>{let i=CN(e.component,{injector:this.injector});customElements.get(e.name)||customElements.define(e.name,i)}),this.veltCustomElements.forEach(e=>{let i=CN(e.component,{injector:this.injector});customElements.get(e.name)||customElements.define(e.name,i)})}};o.\u0275fac=function(i){return new(i||o)(Q(xt))},o.\u0275mod=Qt({type:o}),o.\u0275inj=Xt({providers:[nQ(()=>{let e=sessionStorage?.getItem("veltFirebaseLogLevel")||Xn?.firebaseLogLevel||"silent";return jN(e),iQ(Xn.firebaseConfig)}),lte(()=>bi()),rJ(()=>aJ()),ene(()=>$y()),_te(()=>{let e=Ste();return Xn.useEmulators&&yte(e,"localhost",5001),e}),{provide:nl,useClass:Ufe},HR(zR()),kK()],imports:[w1,Ioe,Fs,aX,sl,F1,SX,yie,oie,bV,TV,sie,Dne,wne,wve]});let n=o;return n})();ie(Q0,[Z,vt,ne,tn,re],[]);ie(P9,[Z,aa,ep,sg],[]);ie(KM,[Z,Ln,On,zo,A9,nve,os],[]);ie(fa,[Z,SV,No,ne,fx,vx,hx,ux,re],[]);ie(DD,[Z,ne,re],[]);ie(b0,[Lr,Z,vt,ne,zb,Hb,tn,t_,re],[de]);ie(Xp,[Z,vt,Ln,On,R9,No,ne,eC,tn,rC],[de]);ie(CM,[Z,No,Bb,xb],[]);ie(L0,[Z,dg,ne,re],[de]);ie(KI,[Z,ne,YI,zI],[de]);ie(J3,[Z,zo,re],[]);ie(YE,[Z,vt,Ln,On,Tc,hve,ne,tn,qE,zE,GE,re],[de]);ie(Tc,[Z,vt,ui,ne,tn,gE,Fve,hE,yE],[de]);ie(vM,[Z,Li,Yi,No],[de]);ie(A0,[Z,L0,E2,b2,M0,S2,ne,Zb,Kb,Xb,sC,RC,Z3,re],[de]);ie(T0,[Z,ne,q2,Y2,re],[de]);ie(E2,[Z,Gfe,ne,re],[de]);ie(b2,[Z,qfe,ne,re],[]);ie(M0,[Z,B9,ne,re],[de]);ie(S2,[Z,zH,Gb,ne,re],[]);ie(W2,[Z,M0,D2,j2,G2,w2,oh,ne,U2,$2,V2,z2,H2,N0,Cx,RC,D3,eT,re],[de]);ie(D2,[Z,$n,ne,re],[de]);ie(j2,[Z,ne,re,So],[de,Pve]);ie(G2,[Z,ne,re],[wR,cg]);ie(w2,[Z,vt,Yfe,Lm,ne,re],[de]);ie(P0,[Z,ne,re],[de]);ie(x0,[Z,ne,qb,Yb,Wb,T3,re],[de]);ie(O0,[Z,ne,re],[de]);ie(I2,[Z,ne,re],[de]);ie(oh,[Z,I2,ne,v2,_2,Jb,e2,C2,pE,sC,re],[de]);ie(I0,[Z,ne,re],[de]);ie(k0,[Z,ne,re],[de]);ie(E0,[Z,ne,re],[de]);ie(F0,[Z,ne,re],[de]);ie(R0,[Z,x2,T2,ne,re],[de]);ie(x2,[Z,ne,re],[de]);ie(T2,[Z,ne,re],[de]);ie(Gb,[Z,ui,ne,lg,re],[de]);ie(q2,[ht,Z,W2,ne,y2,re],[kve,de]);ie(U2,[Z,ne,re,So],[mg,Mve,de,Cve]);ie(qb,[Z,$n,ne,re],[de]);ie(Yb,[Z,ne,re,So],[de]);ie(Wb,[Z,B9,ne,re],[]);ie(v2,[Z,ne,c2,f2,re],[de]);ie(_2,[ht,Z,Nd,F9,ne,re],[de]);ie(Jb,[Z,Li,Yi,V9,Kfe,n_,ne,Sve,re],[de]);ie(e2,[Z,Wfe,ne,re],[de]);ie(C2,[Z,mb,ne,og,lg,re],[de]);ie(Y2,[Z,ne,mT,cT,dT,re],[de]);ie(y2,[Z,ne,re],[de]);ie($2,[Z,vt,ui,zH,L0,B9,ne,lg,H9,re],[de]);ie(Zb,[Z,ne,re],[de]);ie(Kb,[Z,ne,re],[de]);ie(Xb,[Z,ne,re],[de]);ie(wI,[Z,ne,hI,OI,AI,vI,re],[de]);ie(DI,[Lr,Z,ne,_I,SI,OT,xI,K0,II,AT,PT,CI,EI,yI,TI,bI,re,pT,YC],[de]);ie(fI,[Z,vt,ne,K3,re],[de]);ie(X0,[Z,zo,ne,re],[de]);ie(hI,[Z,ne,re],[de]);ie(OI,[Z,ma,za,Da,ne,re],[de]);ie(AI,[Z,KI,ne,re],[de]);ie(vI,[Z,ne,re],[de]);ie(Xs,[Z,ne,ET,IT,bT,xT,re],[]);ie(ET,[Z,ma,za,Da,ne,re],[de]);ie(IT,[Z,ne,re],[]);ie(bT,[Z,ne,re],[]);ie(xT,[ht,Z,ne,TT,re],[]);ie(TT,[Z,ne,DT,wT,re],[]);ie(DT,[Z,ne,re],[]);ie(wT,[Z,ne,re],[]);ie(_I,[Z,ne,re],[de]);ie(SI,[Z,ne,re],[de]);ie(OT,[Z,ne,re],[de]);ie(xI,[Z,ne,re],[de]);ie(K0,[ht,Z,vt,ui,ne,Xs,ns,is,aC,re],[Xc,Rve,de]);ie(II,[ht,Z,vt,ui,ne,Xs,ns,is,re],[de]);ie(AT,[ht,Z,vt,ui,ne,Xs,ns,is,re],[de]);ie(PT,[ht,Z,vt,ui,ne,Xs,ns,is,re],[de]);ie(CI,[ht,Z,vt,ui,ne,Xs,ns,is,re],[Xc,de]);ie(EI,[ht,Z,vt,ui,ne,Xs,ns,is,re],[de]);ie(yI,[ht,Z,ne,ns,is,re],[de]);ie(TI,[ht,Z,vt,ui,ne,Xs,ns,is,re],[]);ie(bI,[ht,Z,ne,ns,is,re],[Xc,de]);ie(eC,[Z,ne,re],[]);ie(W0,[Z,ne,re],[de]);ie(z0,[Z,ne,re],[de]);ie(G0,[Z,ne,re],[]);ie(zb,[Z,ne,re],[]);ie(Hb,[Z,$n,ne,re],[]);ie(Y0,[Z,ne,re],[]);ie(V2,[ht,Z,vt,ne,M2,B2,re],[de]);ie(z2,[ht,Z,Nd,ne,re],[de]);ie(H2,[ht,Z,mh,ne,N0,re],[de]);ie(N0,[Z,i_,ne,re],[]);ie(q0,[Z,ne,re],[]);ie(o0,[Z,vt,ne,tn,re],[de]);ie(r0,[Z,vt,ne,Vb,$b,Ub,jb,tn,re],[de]);ie(Vb,[Z,ne,re],[de]);ie($b,[Z,ne,re],[]);ie(Ub,[Z,ne,re],[de]);ie(jb,[Z,ne,re],[de]);ie(UC,[ht,Z,ne,re],[de]);ie(s0,[Z,ne,fb,vb,ub,hb],[]);ie(fb,[Z,vt,$n,ne],[pg]);ie(vb,[Z,vt,ne,So],[de]);ie(ub,[Z,vt,ne],[de]);ie(hb,[Z,vt,ne],[de]);ie(jC,[Z,ne,re],[]);ie(ah,[Z,ne,re],[de]);ie(rh,[Z,ne,wI,DI,JM,fI,X0,re],[de]);ie(H0,[Lr,Z,ne,gI,uI,pI,re],[]);ie(gI,[Z,ne,re],[pg]);ie(uI,[Z,ne,re],[de]);ie(pI,[Z,ne,re],[]);ie($0,[Z,ne,mI,dI,re],[de]);ie(mI,[Z,ne,re],[pg]);ie(dI,[Z,ne,re],[de]);ie(j0,[Z,ne,sI,cI,lI,re],[]);ie(U0,[ht,Z,vt,ne,tn,aI,re],[]);ie(sI,[Z,ne,re],[]);ie(cI,[Z,ne,re],[de]);ie(lI,[Z,ne,re],[]);ie(aI,[Z,ne,iI,oI,rI,re],[de]);ie(iI,[Z,ne,re],[de]);ie(oI,[Z,ne,re],[de]);ie(rI,[Z,ne,re],[de]);ie(V0,[Z,ne,re],[de]);ie(B0,[Z,vt,ne,tn,nI,K2,J2,Q2,mx,re],[]);ie(nI,[Z,ne,eI,tI,re],[]);ie(K2,[Z,ne,re],[de]);ie(J2,[Z,ne,re],[de]);ie(Q2,[Z,ne,X2,Z2,re],[de]);ie(X2,[Z,ne,re],[de]);ie(Z2,[Z,ne,re],[de]);ie(eI,[Z,ne,re],[de]);ie(tI,[Z,ne,re],[de]);ie(nC,[Z,ne,re],[U9,de]);ie(tC,[Z,ne,re],[de]);ie(iC,[Z,vt,ne,tn,RI],[de]);ie(RI,[ht,Z,ne,kI,re],[de]);ie(kI,[Z,ne,PI,MI,re],[de]);ie(PI,[Z,$n,ne,re],[de]);ie(MI,[Z,ne,re,So],[de]);ie(oC,[ht,Z,ne,FI,re],[Xc,de]);ie(FI,[Z,ne,NI,re],[de]);ie(NI,[Z,ne,re],[]);ie(a0,[Z,vt,ne,tn,pb,gb,db,re],[]);ie(pb,[Z,vt,$n,ne,re],[pg]);ie(gb,[Z,vt,ne,re],[de]);ie(db,[Z,vt,ne,re],[de]);ie(M2,[Z,ne,P2,A2,O2,re,So],[de]);ie(B2,[Z,ne,N2,F2,L2,R2,k2,re,So],[de]);ie(P2,[Z,ne,re],[de]);ie(A2,[Z,ne,re],[de]);ie(O2,[Z,Ple,ne,re],[de]);ie(N2,[Z,ne,XH,re],[]);ie(F2,[Z,ne,re],[de]);ie(L2,[Z,ne,re],[de,ZH]);ie(R2,[Z,ne,re],[de]);ie(k2,[Z,ne,re],[de]);ie(c2,[ht,Z,ne,l2,re],[de]);ie(o2,[Z,ne,i2,n2,t2,re],[de]);ie(h2,[Z,ne,d2,g2,u2,p2,m2,re],[de]);ie(i2,[Z,ne,re],[]);ie(n2,[Z,ne,re],[de]);ie(t2,[Z,ne,re],[]);ie(d2,[Z,ne,XH,re],[]);ie(g2,[Z,ne,re],[de]);ie(u2,[Z,ne,re],[ZH]);ie(p2,[Z,ne,re],[]);ie(m2,[Z,ne,re],[de]);ie(f2,[ht,Z,ne,o2,h2,re],[de]);ie(l2,[Z,ne,r2,a2,s2,re],[de]);ie(r2,[Z,ne,re],[]);ie(a2,[Z,ne,re],[de]);ie(s2,[Z,ne,re],[de]);ie(YI,[Z,ne,qI,GI,WI,re],[]);ie(qI,[Z,ne,re],[de]);ie(GI,[Z,ne,re],[]);ie(WI,[Z,ne,re],[]);ie(zI,[ht,Z,ui,ne,HI,re],[de]);ie(HI,[Z,ne,jI,$I,UI,VI,re],[]);ie(jI,[Z,ne,re],[pg,de]);ie($I,[Z,ne,re],[de]);ie(UI,[Z,ne,re],[]);ie(VI,[Z,ne,LI,BI,re],[]);ie(LI,[Z,ne,re],[]);ie(BI,[Z,ne,re],[]);ie(rC,[Z,ne,re],[]);ie(ns,[Z,ne,XI,JI,eE,re],[de]);ie(XI,[Z,ne,ZI,QI,re],[]);ie(JI,[Z,ne,re],[de]);ie(eE,[Z,ne,re],[de]);ie(ZI,[Z,ne,re],[de]);ie(QI,[Z,ne,re],[de]);ie(is,[Z,ne,re],[de]);ie(aC,[Z,ne,re],[de]);ie(Z0,[Z,ne,tE,rE,re],[]);ie(tE,[Z,zo,ne,re],[de]);ie(rE,[Z,ne,nE,iE,oE,re],[]);ie(nE,[Z,ne,re],[]);ie(iE,[Z,ne,re],[de]);ie(oE,[Z,ne,re],[de]);ie(cE,[Z,vt,ne,tn,dE,mE],[de]);ie(lE,[Z,zo,ui,ne,re],[de]);ie(aE,[Z,ne,re],[]);ie(sE,[ht,Z,zo,ne,re],[]);ie(dE,[Z,ne,re],[de]);ie(mE,[Z,ne,lE,aE,sE,re,ST],[de]);ie(pE,[Z,$n,ne,re],[de]);ie(gE,[Z,ne,uE,OD,KE,re],[de]);ie(uE,[Z,ne,re],[de]);ie(OD,[Z,ne,re],[de]);ie(AD,[Z,ne,re],[]);ie(ND,[Z,ne,re],[]);ie(FD,[Z,ne,re],[]);ie(PD,[Z,ne,RD,kD,re],[]);ie(RD,[Z,ne,FD,jD,$D,re],[]);ie(kD,[ht,Z,ne,MD,re],[]);ie(MD,[Z,ne,VD,UD,re],[]);ie(QC,[Z,ne,re],[]);ie(KC,[Z,ne,re],[]);ie(ZC,[Z,ne,ND,BD,LD,re],[]);ie(XC,[Z,ne,AD,HD,re],[]);ie(BD,[Z,ne,re],[]);ie(LD,[Z,ne,re],[]);ie(JC,[ht,Z,ne,PD,re],[]);ie(VD,[Z,ne,re],[]);ie(UD,[Z,ne,re],[]);ie(hE,[Z,ne,_E,fE,CE,vE,re],[de]);ie(yE,[Z,ne,SE,bE,$E,IE,re],[]);ie(eg,[Z,ne,FE,re],[de]);ie(FE,[Z,ne,re],[de]);ie(SE,[Z,ne,eg,Jp,tg,ig,re],[de]);ie(bE,[Z,ne,eg,ZE,ig,re],[de]);ie($E,[Z,ne,eg,jE,ig,re],[de]);ie(IE,[Z,ne,eg,xE,ig,re],[de]);ie(Jp,[ht,Z,ne,NE,re],[]);ie(NE,[Z,ne,OE,RE,ME,AE,PE,kE,re],[de]);ie(tg,[Z,ne,re],[de]);ie(xE,[ht,Z,ne,EE,re],[]);ie(EE,[Z,ne,wE,DE,TE,ex,re],[]);ie(wE,[Z,vt,ne,re],[de]);ie(DE,[Z,ne,re],[de]);ie(TE,[Z,ne,Jp,tg,re],[de]);ie(jE,[ht,Z,ne,UE,re],[Xc]);ie(UE,[Z,ne,VE,BE,LE,HE,re],[]);ie(VE,[Z,ne,re],[de]);ie(BE,[Z,ne,re],[de]);ie(LE,[Z,ne,Jp,tg,re],[de]);ie(HE,[Z,$n,ne,re],[de]);ie(OE,[Z,$n,ne,re],[]);ie(RE,[Z,ne,re],[de]);ie(ME,[Z,ne,re],[mg,de]);ie(AE,[Z,ne,re,So],[mg,de]);ie(PE,[Z,ne,re],[de]);ie(kE,[Z,ne,re],[cg,de]);ie(_E,[Z,ne,re],[de]);ie(fE,[Z,ne,re],[de]);ie(CE,[Z,ne,re],[de]);ie(vE,[Z,ne,re],[de]);ie(qE,[Z,ne,re],[de]);ie(zE,[Z,ne,re],[de]);ie(GE,[Z,ne,WE,re],[de]);ie(WE,[Z,ne,re],[]);ie(KE,[Z,ne,re],[de]);ie(ZE,[ht,Z,ne,XE,re],[de]);ie(XE,[Z,ne,QE,JE,re],[de]);ie(QE,[Z,ne,re],[de]);ie(JE,[Z,ne,Jp,tg,re],[]);ie(ex,[Z,ne,re],[de]);ie(jD,[Z,ne,re],[]);ie($D,[Z,ne,re],[]);ie(HD,[Z,ne,re],[]);ie(sC,[Z,Al,ne,cx,ox,re],[]);ie(cx,[Z,ne,sx,lx,rx,gx,re],[]);ie(ox,[ht,Z,vt,ne,tn,ix,re],[de]);ie(sx,[ht,Z,ne,ax,re],[de]);ie(lx,[Z,ne,re],[de]);ie(rx,[Z,ne,re],[de]);ie(ax,[Z,ne,re],[de]);ie(ix,[Z,ne,nx,tx,re],[]);ie(nx,[Z,ne,re],[de]);ie(tx,[Z,ne,re],[]);ie(mx,[Z,ne,dx,px,re],[]);ie(dx,[Z,ne,re],[de]);ie(px,[Z,ne,re],[de]);ie(t9,[Z,dg,ne,re],[de]);ie(gx,[Z,ne,re],[de]);ie(fx,[Z,_V,ne,re],[de]);ie(vx,[Z,yV,ne,re],[de]);ie(hx,[Z,ne,re],[de]);ie(ux,[Z,CV,ne,re],[de]);ie(Cx,[Z,ne,re],[de]);ie(cC,[Z,vt,ne,tn,re],[de]);ie(dC,[Z,vt,ne,tn,re],[de]);ie(mC,[Z,vt,ne,tn,re],[de]);ie(lC,[Z,vt,vl,xp,ne,tn,yx,re],[de]);ie(_x,[Z,$s,ne,re],[de]);ie(bx,[Z,$s,ne,re],[de]);ie(Sx,[Z,$s,ne,re],[de]);ie(yx,[Z,vt,ne,tn,_x,bx,Sx,re],[de]);ie(v0,[Z,ne,re],[de]);ie(g0,[Z,ne,re],[de]);ie(Bb,[Z,vt,ne,tn,v0,g0,Lb,Rb,C0,f0,u0,Pb,h0,p0,_0,y0,re],[]);ie(Lb,[Z,ne,re],[]);ie(Rb,[Z,ne,re],[de]);ie(C0,[Z,ne,Nb,Fb,re],[]);ie(Nb,[Z,ne,re],[de]);ie(Fb,[Z,ne,re],[]);ie(f0,[Z,ne,re],[de]);ie(u0,[Z,n_,ne,Mb,kb,re],[de]);ie(Pb,[Z,n_,ne,Ab,Ob,re],[de]);ie(h0,[Z,ne,re],[de]);ie(xb,[Z,vt,ne,tn,v0,g0,C0,f0,u0,h0,p0,_0,y0,re],[de]);ie(Ab,[Z,ne,re],[]);ie(Ob,[Z,ne,re],[]);ie(Mb,[Z,ne,re],[]);ie(kb,[Z,ne,re],[]);ie(Eb,[Z,vt,ne,tn,Cb,Ib,re],[de]);ie(Cb,[Z,ui,ne,m0,d0,c0,l0,re],[de]);ie(Ib,[Z,ui,ne,m0,d0,c0,l0,re],[de]);ie(m0,[Z,ne,re],[de]);ie(d0,[Z,ne,bb,Sb,re],[]);ie(bb,[Z,ne,re],[]);ie(Sb,[Z,ne,re],[]);ie(c0,[ht,Z,ne,_b,yb,re],[]);ie(_b,[Z,ne,re],[]);ie(yb,[Z,ne,re],[de]);ie(l0,[Z,ne,re],[]);ie(WC,[Z,ne,aD,x9,re],[]);ie(aD,[Z,ne,I9,E9,zC,rD,re],[]);ie(b9,[Z,ne,re],[]);ie(zC,[Z,ne,re],[]);ie(rD,[Z,ne,zC,zT,QT,ZT,YT,tD,oD,GT,re],[]);ie(zT,[Z,ne,re],[]);ie(QT,[Z,ne,eD,JT,re],[]);ie(ZT,[Z,ne,KT,XT,re],[]);ie(YT,[Z,ne,qT,WT,re],[]);ie(tD,[Z,ne,nD,iD,re],[]);ie(S9,[Z,ne,re],[]);ie(oD,[Z,ma,za,Da,Dve,JH,ne,re],[]);ie(GT,[ht,Z,ne,re],[de]);ie(qT,[Z,ne,re],[de]);ie(WT,[Z,ne,re],[]);ie(KT,[Z,ne,re],[]);ie(XT,[Z,ne,re],[]);ie(eD,[Z,ne,re],[]);ie(JT,[Z,ne,re],[]);ie(nD,[Z,ne,re],[]);ie(iD,[Z,ne,re],[de]);ie(p0,[Z,ne,Tb,Db,wb,re],[de]);ie(Tb,[Z,ne,re],[de]);ie(Db,[Z,ne,re],[]);ie(wb,[Z,Li,Yi,ne,re],[]);ie(hC,[Z,ne,re],[de]);ie(pC,[Z,ne,Mx,wx,Px,Dx,Tx,kx,re],[de]);ie(Mx,[Z,Li,Yi,ne,re],[de]);ie(wx,[Z,ne,re],[de]);ie(Px,[Z,ne,Ax,Ox,re],[de]);ie(Ax,[Z,ne,re],[de]);ie(Ox,[Z,ne,re],[de]);ie(Dx,[Z,ne,re],[de]);ie(Tx,[Z,ne,re],[de]);ie(fC,[Z,vt,Ln,On,ne,tn,hC,pC,sh,qC,re],[de]);ie(uC,[Z,vt,ne,tn,hC,pC,Rx,qC,re],[de]);ie(sh,[Z,ne,re],[de]);ie(Nx,[Z,ne,re],[de]);ie(xx,[Z,ne,Ex,Ix,re],[de]);ie(Ex,[Z,ne,re],[]);ie(Ix,[Z,ne,re],[]);ie(Gx,[ht,Z,ne,og,re],[rg,de]);ie(zx,[Z,ne,SC,Hx,re],[de]);ie(jx,[Z,ne,re],[de]);ie($x,[Z,ne,SC,EC,re],[de]);ie(TC,[Z,vt,DD,ne,tn,Gx,zx,jx,$x,yC,IC,xC,CC,_C,bC,VC,re],[de]);ie(SC,[Z,ne,re],[de]);ie(EC,[Z,ne,re],[]);ie(Hx,[Z,ma,ZB,za,Da,ne,re],[de]);ie(yC,[Z,ne,re],[de]);ie(IC,[Z,ch,ne,re],[de]);ie(xC,[Z,GC,ne,re],[de]);ie(CC,[Z,ne,re],[de]);ie(_C,[Z,ne,re],[de]);ie(_0,[Z,ne,Eb,re],[de]);ie(y0,[Z,ne,o_,re],[]);ie(Rx,[Z,ne,sh,Nx,xx,gC,re],[de]);ie(qC,[Z,ne,sh,gC,re],[de]);ie(kx,[Z,ne,o_,re],[de]);ie(gC,[Z,ne,o_,re],[de]);ie(vC,[Z,vt,On,ne,tn,EC,yC,IC,xC,CC,_C,Ux,Bx,Vx,bC,VC,re],[de]);ie(Ux,[ht,Z,ne,og,re],[rg,de]);ie(Bx,[Z,ne,Lx,Fx,re],[de]);ie(Vx,[Z,ne,o_,re],[de]);ie(Lx,[Z,ne,re],[]);ie(Fx,[Z,ne,re],[de]);ie(bC,[Z,ne,re],[de]);ie(DC,[Z,vt,ne,tn,Kx],[]);ie(wC,[Z,On,ne,Zx,Wx,Yx],[]);ie(Zx,[Z,ne],[de]);ie(Wx,[Z,ne],[]);ie(qx,[Z,ne],[]);ie(Yx,[Z,Ln,aa,No,ne,qx,Kx],[de]);ie(MC,[Z,aa,ne,Jx,Qx,lh,r9],[de]);ie(Jx,[Z,ne,e3,t3],[]);ie(e3,[Z,ne],[]);ie(t3,[Z,ne],[de]);ie(Qx,[Z,ne],[]);ie(lh,[Z,ne,a9,r3],[]);ie(r3,[Z,ne,o3,i3],[]);ie(PC,[Z,ne,o9,i9],[]);ie(AC,[Z,vt,ne,tn,MC],[]);ie(OC,[Z,vt,On,ne,tn,a3,Xx,n3],[]);ie(a3,[Z,ne],[de]);ie(Xx,[Z,ne],[]);ie(n3,[Z,Ln,No,ne,MC],[]);ie(o3,[Z,ne],[de]);ie(i3,[Z,ne],[de]);ie(kC,[Z,vt,ne,tn,m3,s3],[de]);ie(m3,[Z,ne,l3,c3],[]);ie(l3,[Z,ne],[de]);ie(c3,[Z,ne],[de]);ie(s3,[Z,ne],[de]);ie(VC,[Z,$n,ne,re],[de]);ie(s9,[Z,ne,re],[de]);ie(d3,[Z,vt,ne,tn,u3,re],[]);ie(u3,[Z,ne,g3,p3,re],[]);ie(g3,[ht,Z,mh,ne,re],[]);ie(p3,[Z,i_,ne,re],[]);ie(l9,[Z,ne,y3,_3,re],[de]);ie(y3,[Z,ne,re],[de]);ie(_3,[Z,ui,ne,S3,b3,h3,C3,f3,v3,re],[de]);ie(S3,[Z,ne,Nm,re],[de]);ie(b3,[Z,ne,Nm,re],[de]);ie(h3,[Z,ne,Nm,re],[de]);ie(C3,[Z,ne,Nm,re],[de]);ie(f3,[Z,ne,Nm,re],[de]);ie(v3,[Z,ne,Nm,re],[de]);ie(Nm,[Z,ne,re],[de]);ie(c9,[Z,ne,E3,I3,re],[de]);ie(E3,[Z,ne,x3,re],[de]);ie(I3,[Z,ui,ne,K0,re],[de]);ie(x3,[Z,ne,re],[de]);ie(RC,[Z,ne,H9,re],[de]);ie(T3,[Z,ne,H9,re],[]);ie(os,[Z,vt,ne,tn,NC,FC,LC,w3,L3,H3],[de]);ie(NC,[Z,ne,re],[]);ie(FC,[Z,zo,ne,re],[de]);ie(LC,[ht,Z,zo,ne,re],[de]);ie(d9,[Z,ne,NC,FC,LC,re],[de]);ie(m9,[Z,ne,re],[de]);ie(g9,[Z,ne],[]);ie(D3,[Z,ne,re],[de]);ie(w3,[Z,ne,A3,O3,re],[]);ie(A3,[Z,ui,ne,P3,k3,R3,M3,N3,F3,re],[de]);ie(O3,[Z,ne,re],[de]);ie(P3,[Z,ne,Fm,re],[de]);ie(k3,[Z,ne,Fm,re],[de]);ie(R3,[Z,ne,Fm,re],[de]);ie(M3,[Z,ne,Fm,re],[de]);ie(Fm,[Z,ne,re],[]);ie(N3,[Z,ne,Fm,re],[de]);ie(F3,[Z,ne,Fm,re],[de]);ie(L3,[Z,ne,Y3,re],[de]);ie(B3,[Z,zo,re],[]);ie(u9,[Z,ne,U3,V3,re],[de]);ie(U3,[Z,ui,ne,j3,$3,re],[de]);ie(V3,[Z,ne,re],[de]);ie(j3,[Z,ne,re],[de]);ie($3,[Z,ne,re],[de]);ie(H3,[Z,ne,re],[de]);ie(h9,[Z,ne,G3,z3,re],[]);ie(G3,[Z,ui,ne,W3,q3,re],[de]);ie(z3,[Z,ne,re],[de]);ie(W3,[Z,ne,re],[de]);ie(q3,[Z,ne,re],[de]);ie(Y3,[Z,ne,re],[de]);ie(ig,[Z,ne,re],[]);ie(K3,[Z,ne,re],[de]);ie(f9,[Z,ne,re],[de]);ie(Z3,[Z,ne,re],[de]);ie(BC,[Z,ne,Q3,X3,re],[]);ie(Q3,[Z,ne,re],[de]);ie(X3,[Z,zo,ne,re],[de]);ie(eT,[Z,Al,ne,sT,aT,re],[de]);ie(sT,[Z,ne,re],[de]);ie(aT,[Z,vt,ne,tn,rT,lT,re],[de]);ie(oT,[Z,ne,re],[de]);ie(iT,[Z,ne,re],[cg,de]);ie(nT,[Z,$n,ne,re],[de]);ie(rT,[Z,ne,re],[de]);ie(tT,[Z,ne,oT,iT,nT,re],[de]);ie(lT,[ht,Z,ne,tT,re],[de]);ie(C9,[Z,ne,re],[de]);ie(mT,[Z,ne,re],[]);ie(cT,[Z,ne,re],[]);ie(dT,[Z,ne,re],[de]);ie(pT,[ht,Z,vt,ui,ne,Xs,ns,is,re],[de]);ie(ST,[Z,ne,re,yT,vT],[]);ie(yT,[Z,ne,re,_T,CT],[de]);ie(vT,[ht,Z,ui,ne,re,fT],[de]);ie(_T,[Z,ne,re],[de]);ie(CT,[Z,ne,re],[]);ie(fT,[Z,ne,re,hT,gT,uT],[]);ie(hT,[Z,ne,re],[]);ie(gT,[Z,ne,re],[]);ie(uT,[Z,ne,re],[de]);ie(HC,[Z,ne,re,MT,kT,RT,LT,BT,VT,UT,jT,$T,wD],[]);ie(_9,[Z,ne,re],[]);ie(MT,[Z,ne,re],[]);ie(kT,[Z,ne,re],[]);ie(RT,[Z,ne,re],[]);ie(NT,[Z,ne,re],[]);ie(FT,[ht,Z,ld,aa,ne,re],[rg]);ie(LT,[Z,ne,re,NT,FT],[]);ie(BT,[Z,ne,re,$C],[]);ie(VT,[Z,ne,re,$C,HT],[]);ie(UT,[Z,ne,re,_D,bD],[]);ie(jT,[Z,ne,re],[]);ie($T,[Z,ne,re],[]);ie($C,[Z,ne,re],[]);ie(HT,[Z,ne,re],[]);ie(y9,[Z,ne,re],[de]);ie(ih,[Z,vt,ne,tn,re,sD,lD,cD,mD,dD,pD],[]);ie(T9,[Z,ne,re],[de]);ie(D9,[Z,ne,re],[de]);ie(sD,[Z,ne,re],[]);ie(lD,[Z,ne,re],[de]);ie(cD,[Z,ne,re],[de]);ie(mD,[Z,ne,re],[de]);ie(dD,[Z,ne,re],[de]);ie(pD,[Z,ne,re],[de]);ie(CD,[Z,Ln,On,No,ui,ne,re,vD,fD],[]);ie(vD,[Z,ne,re],[]);ie(fD,[Z,ne,re,hD,gD],[]);ie(hD,[ht,Z,ne,re,uD],[]);ie(uD,[Z,ne,re],[]);ie(gD,[Z,ne,re],[]);ie(_D,[ht,Z,ne,re],[]);ie(yD,[ht,Z,ne,re,CD],[]);ie(SD,[ht,Z,ne,o_,re],[]);ie(bD,[Z,ne,re,yD,SD,ID],[]);ie(ID,[Z,ne,re],[]);ie(wD,[Z,ne,re],[]);ie(w9,[Z,Ln,On,No,ui,ne,re,xD,ED],[de]);ie(xD,[Z,ne,re,TD],[de]);ie(TD,[Z,ne,re],[de]);ie(ED,[Z,ui,ne,re,YC],[de]);ie(YC,[ht,Z,vt,ui,ne,Xs,ns,is,aC,re],[Xc,de]);var Vve=!0,Uve=!0;function KD(n,o,t){let e=n.match(o);return e&&e.length>=t&&parseInt(e[t],10)}function Bm(n,o,t){if(!n.RTCPeerConnection)return;let e=n.RTCPeerConnection.prototype,i=e.addEventListener;e.addEventListener=function(a,s){if(a!==o)return i.apply(this,arguments);let m=p=>{let h=t(p);h&&(s.handleEvent?s.handleEvent(h):s(h))};return this._eventMap=this._eventMap||{},this._eventMap[o]||(this._eventMap[o]=new Map),this._eventMap[o].set(s,m),i.apply(this,[a,m])};let r=e.removeEventListener;e.removeEventListener=function(a,s){if(a!==o||!this._eventMap||!this._eventMap[o])return r.apply(this,arguments);if(!this._eventMap[o].has(s))return r.apply(this,arguments);let m=this._eventMap[o].get(s);return this._eventMap[o].delete(s),this._eventMap[o].size===0&&delete this._eventMap[o],Object.keys(this._eventMap).length===0&&delete this._eventMap,r.apply(this,[a,m])},Object.defineProperty(e,"on"+o,{get(){return this["_on"+o]},set(a){this["_on"+o]&&(this.removeEventListener(o,this["_on"+o]),delete this["_on"+o]),a&&this.addEventListener(o,this["_on"+o]=a)},enumerable:!0,configurable:!0})}function jve(n){return typeof n!="boolean"?new Error("Argument type: "+typeof n+". Please use a boolean."):(Vve=n,n?"adapter.js logging disabled":"adapter.js logging enabled")}function $ve(n){return typeof n!="boolean"?new Error("Argument type: "+typeof n+". Please use a boolean."):(Uve=!n,"adapter.js deprecation warnings "+(n?"disabled":"enabled"))}function z9(){if(typeof window=="object"){if(Vve)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function a_(n,o){Uve&&console.warn(n+" is deprecated, please use "+o+" instead.")}function Hve(n){let o={browser:null,version:null};if(typeof n>"u"||!n.navigator||!n.navigator.userAgent)return o.browser="Not a browser.",o;let{navigator:t}=n;if(t.mozGetUserMedia)o.browser="firefox",o.version=KD(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia||n.isSecureContext===!1&&n.webkitRTCPeerConnection)o.browser="chrome",o.version=KD(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.RTCPeerConnection&&t.userAgent.match(/AppleWebKit\/(\d+)\./))o.browser="safari",o.version=KD(t.userAgent,/AppleWebKit\/(\d+)\./,1),o.supportsUnifiedPlan=n.RTCRtpTransceiver&&"currentDirection"in n.RTCRtpTransceiver.prototype;else return o.browser="Not a supported browser.",o;return o}function Bve(n){return Object.prototype.toString.call(n)==="[object Object]"}function tz(n){return Bve(n)?Object.keys(n).reduce(function(o,t){let e=Bve(n[t]),i=e?tz(n[t]):n[t],r=e&&!Object.keys(i).length;return i===void 0||r?o:Object.assign(o,{[t]:i})},{}):n}function ez(n,o,t){!o||t.has(o.id)||(t.set(o.id,o),Object.keys(o).forEach(e=>{e.endsWith("Id")?ez(n,n.get(o[e]),t):e.endsWith("Ids")&&o[e].forEach(i=>{ez(n,n.get(i),t)})}))}function nz(n,o,t){let e=t?"outbound-rtp":"inbound-rtp",i=new Map;if(o===null)return i;let r=[];return n.forEach(a=>{a.type==="track"&&a.trackIdentifier===o.id&&r.push(a)}),r.forEach(a=>{n.forEach(s=>{s.type===e&&s.trackId===a.id&&ez(n,s,i)})}),i}var q9={};_w(q9,{fixNegotiationNeeded:()=>cz,shimAddTrackRemoveTrack:()=>lz,shimAddTrackRemoveTrackWithNative:()=>Wve,shimGetDisplayMedia:()=>Gve,shimGetSendersWithDtmf:()=>rz,shimGetStats:()=>az,shimGetUserMedia:()=>G9,shimMediaStream:()=>iz,shimOnTrack:()=>oz,shimPeerConnection:()=>W9,shimSenderReceiverGetStats:()=>sz});var zve=z9;function G9(n,o){let t=n&&n.navigator;if(!t.mediaDevices)return;let e=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;let m={};return Object.keys(s).forEach(p=>{if(p==="require"||p==="advanced"||p==="mediaSource")return;let h=typeof s[p]=="object"?s[p]:{ideal:s[p]};h.exact!==void 0&&typeof h.exact=="number"&&(h.min=h.max=h.exact);let C=function(E,w){return E?E+w.charAt(0).toUpperCase()+w.slice(1):w==="deviceId"?"sourceId":w};if(h.ideal!==void 0){m.optional=m.optional||[];let E={};typeof h.ideal=="number"?(E[C("min",p)]=h.ideal,m.optional.push(E),E={},E[C("max",p)]=h.ideal,m.optional.push(E)):(E[C("",p)]=h.ideal,m.optional.push(E))}h.exact!==void 0&&typeof h.exact!="number"?(m.mandatory=m.mandatory||{},m.mandatory[C("",p)]=h.exact):["min","max"].forEach(E=>{h[E]!==void 0&&(m.mandatory=m.mandatory||{},m.mandatory[C(E,p)]=h[E])})}),s.advanced&&(m.optional=(m.optional||[]).concat(s.advanced)),m},i=function(s,m){if(o.version>=61)return m(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){let p=function(h,C,E){C in h&&!(E in h)&&(h[E]=h[C],delete h[C])};s=JSON.parse(JSON.stringify(s)),p(s.audio,"autoGainControl","googAutoGainControl"),p(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=e(s.audio)}if(s&&typeof s.video=="object"){let p=s.video.facingMode;p=p&&(typeof p=="object"?p:{ideal:p});let h=o.version<66;if(p&&(p.exact==="user"||p.exact==="environment"||p.ideal==="user"||p.ideal==="environment")&&!(t.mediaDevices.getSupportedConstraints&&t.mediaDevices.getSupportedConstraints().facingMode&&!h)){delete s.video.facingMode;let C;if(p.exact==="environment"||p.ideal==="environment"?C=["back","rear"]:(p.exact==="user"||p.ideal==="user")&&(C=["front"]),C)return t.mediaDevices.enumerateDevices().then(E=>{E=E.filter(B=>B.kind==="videoinput");let w=E.find(B=>C.some(G=>B.label.toLowerCase().includes(G)));return!w&&E.length&&C.includes("back")&&(w=E[E.length-1]),w&&(s.video.deviceId=p.exact?{exact:w.deviceId}:{ideal:w.deviceId}),s.video=e(s.video),zve("chrome: "+JSON.stringify(s)),m(s)})}s.video=e(s.video)}return zve("chrome: "+JSON.stringify(s)),m(s)},r=function(s){return o.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(s,m,p){i(s,h=>{t.webkitGetUserMedia(h,m,C=>{p&&p(r(C))})})};if(t.getUserMedia=a.bind(t),t.mediaDevices.getUserMedia){let s=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(m){return i(m,p=>s(p).then(h=>{if(p.audio&&!h.getAudioTracks().length||p.video&&!h.getVideoTracks().length)throw h.getTracks().forEach(C=>{C.stop()}),new DOMException("","NotFoundError");return h},h=>Promise.reject(r(h))))}}}function Gve(n,o){if(!(n.navigator.mediaDevices&&"getDisplayMedia"in n.navigator.mediaDevices)&&n.navigator.mediaDevices){if(typeof o!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}n.navigator.mediaDevices.getDisplayMedia=function(e){return o(e).then(i=>{let r=e.video&&e.video.width,a=e.video&&e.video.height,s=e.video&&e.video.frameRate;return e.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:i,maxFrameRate:s||3}},r&&(e.video.mandatory.maxWidth=r),a&&(e.video.mandatory.maxHeight=a),n.navigator.mediaDevices.getUserMedia(e)})}}}function iz(n){n.MediaStream=n.MediaStream||n.webkitMediaStream}function oz(n){if(typeof n=="object"&&n.RTCPeerConnection&&!("ontrack"in n.RTCPeerConnection.prototype)){Object.defineProperty(n.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(t){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=t)},enumerable:!0,configurable:!0});let o=n.RTCPeerConnection.prototype.setRemoteDescription;n.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=e=>{e.stream.addEventListener("addtrack",i=>{let r;n.RTCPeerConnection.prototype.getReceivers?r=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):r={track:i.track};let a=new Event("track");a.track=i.track,a.receiver=r,a.transceiver={receiver:r},a.streams=[e.stream],this.dispatchEvent(a)}),e.stream.getTracks().forEach(i=>{let r;n.RTCPeerConnection.prototype.getReceivers?r=this.getReceivers().find(s=>s.track&&s.track.id===i.id):r={track:i};let a=new Event("track");a.track=i,a.receiver=r,a.transceiver={receiver:r},a.streams=[e.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),o.apply(this,arguments)}}else Bm(n,"track",o=>(o.transceiver||Object.defineProperty(o,"transceiver",{value:{receiver:o.receiver}}),o))}function rz(n){if(typeof n=="object"&&n.RTCPeerConnection&&!("getSenders"in n.RTCPeerConnection.prototype)&&"createDTMFSender"in n.RTCPeerConnection.prototype){let o=function(i,r){return{track:r,get dtmf(){return this._dtmf===void 0&&(r.kind==="audio"?this._dtmf=i.createDTMFSender(r):this._dtmf=null),this._dtmf},_pc:i}};if(!n.RTCPeerConnection.prototype.getSenders){n.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};let i=n.RTCPeerConnection.prototype.addTrack;n.RTCPeerConnection.prototype.addTrack=function(s,m){let p=i.apply(this,arguments);return p||(p=o(this,s),this._senders.push(p)),p};let r=n.RTCPeerConnection.prototype.removeTrack;n.RTCPeerConnection.prototype.removeTrack=function(s){r.apply(this,arguments);let m=this._senders.indexOf(s);m!==-1&&this._senders.splice(m,1)}}let t=n.RTCPeerConnection.prototype.addStream;n.RTCPeerConnection.prototype.addStream=function(r){this._senders=this._senders||[],t.apply(this,[r]),r.getTracks().forEach(a=>{this._senders.push(o(this,a))})};let e=n.RTCPeerConnection.prototype.removeStream;n.RTCPeerConnection.prototype.removeStream=function(r){this._senders=this._senders||[],e.apply(this,[r]),r.getTracks().forEach(a=>{let s=this._senders.find(m=>m.track===a);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof n=="object"&&n.RTCPeerConnection&&"getSenders"in n.RTCPeerConnection.prototype&&"createDTMFSender"in n.RTCPeerConnection.prototype&&n.RTCRtpSender&&!("dtmf"in n.RTCRtpSender.prototype)){let o=n.RTCPeerConnection.prototype.getSenders;n.RTCPeerConnection.prototype.getSenders=function(){let e=o.apply(this,[]);return e.forEach(i=>i._pc=this),e},Object.defineProperty(n.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function az(n){if(!n.RTCPeerConnection)return;let o=n.RTCPeerConnection.prototype.getStats;n.RTCPeerConnection.prototype.getStats=function(){let[e,i,r]=arguments;if(arguments.length>0&&typeof e=="function")return o.apply(this,arguments);if(o.length===0&&(arguments.length===0||typeof e!="function"))return o.apply(this,[]);let a=function(m){let p={};return m.result().forEach(C=>{let E={id:C.id,timestamp:C.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[C.type]||C.type};C.names().forEach(w=>{E[w]=C.stat(w)}),p[E.id]=E}),p},s=function(m){return new Map(Object.keys(m).map(p=>[p,m[p]]))};if(arguments.length>=2){let m=function(p){i(s(a(p)))};return o.apply(this,[m,e])}return new Promise((m,p)=>{o.apply(this,[function(h){m(s(a(h)))},p])}).then(i,r)}}function sz(n){if(!(typeof n=="object"&&n.RTCPeerConnection&&n.RTCRtpSender&&n.RTCRtpReceiver))return;if(!("getStats"in n.RTCRtpSender.prototype)){let t=n.RTCPeerConnection.prototype.getSenders;t&&(n.RTCPeerConnection.prototype.getSenders=function(){let r=t.apply(this,[]);return r.forEach(a=>a._pc=this),r});let e=n.RTCPeerConnection.prototype.addTrack;e&&(n.RTCPeerConnection.prototype.addTrack=function(){let r=e.apply(this,arguments);return r._pc=this,r}),n.RTCRtpSender.prototype.getStats=function(){let r=this;return this._pc.getStats().then(a=>nz(a,r.track,!0))}}if(!("getStats"in n.RTCRtpReceiver.prototype)){let t=n.RTCPeerConnection.prototype.getReceivers;t&&(n.RTCPeerConnection.prototype.getReceivers=function(){let i=t.apply(this,[]);return i.forEach(r=>r._pc=this),i}),Bm(n,"track",e=>(e.receiver._pc=e.srcElement,e)),n.RTCRtpReceiver.prototype.getStats=function(){let i=this;return this._pc.getStats().then(r=>nz(r,i.track,!1))}}if(!("getStats"in n.RTCRtpSender.prototype&&"getStats"in n.RTCRtpReceiver.prototype))return;let o=n.RTCPeerConnection.prototype.getStats;n.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof n.MediaStreamTrack){let e=arguments[0],i,r,a;return this.getSenders().forEach(s=>{s.track===e&&(i?a=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===e&&(r?a=!0:r=s),s.track===e)),a||i&&r?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():r?r.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return o.apply(this,arguments)}}function Wve(n){n.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};let o=n.RTCPeerConnection.prototype.addTrack;n.RTCPeerConnection.prototype.addTrack=function(a,s){if(!s)return o.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let m=o.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(m)===-1&&this._shimmedLocalStreams[s.id].push(m):this._shimmedLocalStreams[s.id]=[s,m],m};let t=n.RTCPeerConnection.prototype.addStream;n.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(p=>{if(this.getSenders().find(C=>C.track===p))throw new DOMException("Track already exists.","InvalidAccessError")});let s=this.getSenders();t.apply(this,arguments);let m=this.getSenders().filter(p=>s.indexOf(p)===-1);this._shimmedLocalStreams[a.id]=[a].concat(m)};let e=n.RTCPeerConnection.prototype.removeStream;n.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],e.apply(this,arguments)};let i=n.RTCPeerConnection.prototype.removeTrack;n.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(s=>{let m=this._shimmedLocalStreams[s].indexOf(a);m!==-1&&this._shimmedLocalStreams[s].splice(m,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function lz(n,o){if(!n.RTCPeerConnection)return;if(n.RTCPeerConnection.prototype.addTrack&&o.version>=65)return Wve(n);let t=n.RTCPeerConnection.prototype.getLocalStreams;n.RTCPeerConnection.prototype.getLocalStreams=function(){let h=t.apply(this);return this._reverseStreams=this._reverseStreams||{},h.map(C=>this._reverseStreams[C.id])};let e=n.RTCPeerConnection.prototype.addStream;n.RTCPeerConnection.prototype.addStream=function(h){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},h.getTracks().forEach(C=>{if(this.getSenders().find(w=>w.track===C))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[h.id]){let C=new n.MediaStream(h.getTracks());this._streams[h.id]=C,this._reverseStreams[C.id]=h,h=C}e.apply(this,[h])};let i=n.RTCPeerConnection.prototype.removeStream;n.RTCPeerConnection.prototype.removeStream=function(h){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[h.id]||h]),delete this._reverseStreams[this._streams[h.id]?this._streams[h.id].id:h.id],delete this._streams[h.id]},n.RTCPeerConnection.prototype.addTrack=function(h,C){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");let E=[].slice.call(arguments,1);if(E.length!==1||!E[0].getTracks().find(G=>G===h))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(G=>G.track===h))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};let B=this._streams[C.id];if(B)B.addTrack(h),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{let G=new n.MediaStream([h]);this._streams[C.id]=G,this._reverseStreams[G.id]=C,this.addStream(G)}return this.getSenders().find(G=>G.track===h)};function r(p,h){let C=h.sdp;return Object.keys(p._reverseStreams||[]).forEach(E=>{let w=p._reverseStreams[E],B=p._streams[w.id];C=C.replace(new RegExp(B.id,"g"),w.id)}),new RTCSessionDescription({type:h.type,sdp:C})}function a(p,h){let C=h.sdp;return Object.keys(p._reverseStreams||[]).forEach(E=>{let w=p._reverseStreams[E],B=p._streams[w.id];C=C.replace(new RegExp(w.id,"g"),B.id)}),new RTCSessionDescription({type:h.type,sdp:C})}["createOffer","createAnswer"].forEach(function(p){let h=n.RTCPeerConnection.prototype[p],C={[p](){let E=arguments;return arguments.length&&typeof arguments[0]=="function"?h.apply(this,[B=>{let G=r(this,B);E[0].apply(null,[G])},B=>{E[1]&&E[1].apply(null,B)},arguments[2]]):h.apply(this,arguments).then(B=>r(this,B))}};n.RTCPeerConnection.prototype[p]=C[p]});let s=n.RTCPeerConnection.prototype.setLocalDescription;n.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=a(this,arguments[0]),s.apply(this,arguments))};let m=Object.getOwnPropertyDescriptor(n.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(n.RTCPeerConnection.prototype,"localDescription",{get(){let p=m.get.apply(this);return p.type===""?p:r(this,p)}}),n.RTCPeerConnection.prototype.removeTrack=function(h){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!h._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(h._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let E;Object.keys(this._streams).forEach(w=>{this._streams[w].getTracks().find(G=>h.track===G)&&(E=this._streams[w])}),E&&(E.getTracks().length===1?this.removeStream(this._reverseStreams[E.id]):E.removeTrack(h.track),this.dispatchEvent(new Event("negotiationneeded")))}}function W9(n,o){!n.RTCPeerConnection&&n.webkitRTCPeerConnection&&(n.RTCPeerConnection=n.webkitRTCPeerConnection),n.RTCPeerConnection&&o.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let e=n.RTCPeerConnection.prototype[t],i={[t](){return arguments[0]=new(t==="addIceCandidate"?n.RTCIceCandidate:n.RTCSessionDescription)(arguments[0]),e.apply(this,arguments)}};n.RTCPeerConnection.prototype[t]=i[t]})}function cz(n,o){Bm(n,"negotiationneeded",t=>{let e=t.target;if(!((o.version<72||e.getConfiguration&&e.getConfiguration().sdpSemantics==="plan-b")&&e.signalingState!=="stable"))return t})}var Z9={};_w(Z9,{shimAddTransceiver:()=>hz,shimCreateAnswer:()=>Cz,shimCreateOffer:()=>vz,shimGetDisplayMedia:()=>qve,shimGetParameters:()=>fz,shimGetUserMedia:()=>Y9,shimOnTrack:()=>mz,shimPeerConnection:()=>K9,shimRTCDataChannel:()=>uz,shimReceiverGetStats:()=>pz,shimRemoveStream:()=>gz,shimSenderGetStats:()=>dz});function Y9(n,o){let t=n&&n.navigator,e=n&&n.MediaStreamTrack;if(t.getUserMedia=function(i,r,a){a_("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),t.mediaDevices.getUserMedia(i).then(r,a)},!(o.version>55&&"autoGainControl"in t.mediaDevices.getSupportedConstraints())){let i=function(a,s,m){s in a&&!(m in a)&&(a[m]=a[s],delete a[s])},r=t.mediaDevices.getUserMedia.bind(t.mediaDevices);if(t.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),i(a.audio,"autoGainControl","mozAutoGainControl"),i(a.audio,"noiseSuppression","mozNoiseSuppression")),r(a)},e&&e.prototype.getSettings){let a=e.prototype.getSettings;e.prototype.getSettings=function(){let s=a.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(e&&e.prototype.applyConstraints){let a=e.prototype.applyConstraints;e.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function qve(n,o){n.navigator.mediaDevices&&"getDisplayMedia"in n.navigator.mediaDevices||n.navigator.mediaDevices&&(n.navigator.mediaDevices.getDisplayMedia=function(e){if(!(e&&e.video)){let i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return e.video===!0?e.video={mediaSource:o}:e.video.mediaSource=o,n.navigator.mediaDevices.getUserMedia(e)})}function mz(n){typeof n=="object"&&n.RTCTrackEvent&&"receiver"in n.RTCTrackEvent.prototype&&!("transceiver"in n.RTCTrackEvent.prototype)&&Object.defineProperty(n.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function K9(n,o){if(typeof n!="object"||!(n.RTCPeerConnection||n.mozRTCPeerConnection))return;!n.RTCPeerConnection&&n.mozRTCPeerConnection&&(n.RTCPeerConnection=n.mozRTCPeerConnection),o.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){let r=n.RTCPeerConnection.prototype[i],a={[i](){return arguments[0]=new(i==="addIceCandidate"?n.RTCIceCandidate:n.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};n.RTCPeerConnection.prototype[i]=a[i]});let t={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},e=n.RTCPeerConnection.prototype.getStats;n.RTCPeerConnection.prototype.getStats=function(){let[r,a,s]=arguments;return e.apply(this,[r||null]).then(m=>{if(o.version<53&&!a)try{m.forEach(p=>{p.type=t[p.type]||p.type})}catch(p){if(p.name!=="TypeError")throw p;m.forEach((h,C)=>{m.set(C,Object.assign({},h,{type:t[h.type]||h.type}))})}return m}).then(a,s)}}function dz(n){if(!(typeof n=="object"&&n.RTCPeerConnection&&n.RTCRtpSender)||n.RTCRtpSender&&"getStats"in n.RTCRtpSender.prototype)return;let o=n.RTCPeerConnection.prototype.getSenders;o&&(n.RTCPeerConnection.prototype.getSenders=function(){let i=o.apply(this,[]);return i.forEach(r=>r._pc=this),i});let t=n.RTCPeerConnection.prototype.addTrack;t&&(n.RTCPeerConnection.prototype.addTrack=function(){let i=t.apply(this,arguments);return i._pc=this,i}),n.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function pz(n){if(!(typeof n=="object"&&n.RTCPeerConnection&&n.RTCRtpSender)||n.RTCRtpSender&&"getStats"in n.RTCRtpReceiver.prototype)return;let o=n.RTCPeerConnection.prototype.getReceivers;o&&(n.RTCPeerConnection.prototype.getReceivers=function(){let e=o.apply(this,[]);return e.forEach(i=>i._pc=this),e}),Bm(n,"track",t=>(t.receiver._pc=t.srcElement,t)),n.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function gz(n){!n.RTCPeerConnection||"removeStream"in n.RTCPeerConnection.prototype||(n.RTCPeerConnection.prototype.removeStream=function(t){a_("removeStream","removeTrack"),this.getSenders().forEach(e=>{e.track&&t.getTracks().includes(e.track)&&this.removeTrack(e)})})}function uz(n){n.DataChannel&&!n.RTCDataChannel&&(n.RTCDataChannel=n.DataChannel)}function hz(n){if(!(typeof n=="object"&&n.RTCPeerConnection))return;let o=n.RTCPeerConnection.prototype.addTransceiver;o&&(n.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;e===void 0&&(e=[]),e=[...e];let i=e.length>0;i&&e.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});let r=o.apply(this,arguments);if(i){let{sender:a}=r,s=a.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=e,a.sendEncodings=e,this.setParametersPromises.push(a.setParameters(s).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return r})}function fz(n){if(!(typeof n=="object"&&n.RTCRtpSender))return;let o=n.RTCRtpSender.prototype.getParameters;o&&(n.RTCRtpSender.prototype.getParameters=function(){let e=o.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function vz(n){if(!(typeof n=="object"&&n.RTCPeerConnection))return;let o=n.RTCPeerConnection.prototype.createOffer;n.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>o.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):o.apply(this,arguments)}}function Cz(n){if(!(typeof n=="object"&&n.RTCPeerConnection))return;let o=n.RTCPeerConnection.prototype.createAnswer;n.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>o.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):o.apply(this,arguments)}}var X9={};_w(X9,{shimAudioContext:()=>Tz,shimCallbacksAPI:()=>Sz,shimConstraints:()=>Yve,shimCreateOfferLegacy:()=>xz,shimGetUserMedia:()=>bz,shimLocalStreamsAPI:()=>_z,shimRTCIceServerUrls:()=>Iz,shimRemoteStreamsAPI:()=>yz,shimTrackEventTransceiver:()=>Ez});function _z(n){if(!(typeof n!="object"||!n.RTCPeerConnection)){if("getLocalStreams"in n.RTCPeerConnection.prototype||(n.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in n.RTCPeerConnection.prototype)){let o=n.RTCPeerConnection.prototype.addTrack;n.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(i=>o.call(this,i,e)),e.getVideoTracks().forEach(i=>o.call(this,i,e))},n.RTCPeerConnection.prototype.addTrack=function(e,...i){return i&&i.forEach(r=>{this._localStreams?this._localStreams.includes(r)||this._localStreams.push(r):this._localStreams=[r]}),o.apply(this,arguments)}}"removeStream"in n.RTCPeerConnection.prototype||(n.RTCPeerConnection.prototype.removeStream=function(t){this._localStreams||(this._localStreams=[]);let e=this._localStreams.indexOf(t);if(e===-1)return;this._localStreams.splice(e,1);let i=t.getTracks();this.getSenders().forEach(r=>{i.includes(r.track)&&this.removeTrack(r)})})}}function yz(n){if(!(typeof n!="object"||!n.RTCPeerConnection)&&("getRemoteStreams"in n.RTCPeerConnection.prototype||(n.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in n.RTCPeerConnection.prototype))){Object.defineProperty(n.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(t){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=t),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);let r=new Event("addstream");r.stream=i,this.dispatchEvent(r)})})}});let o=n.RTCPeerConnection.prototype.setRemoteDescription;n.RTCPeerConnection.prototype.setRemoteDescription=function(){let e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(r=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(r)>=0)return;e._remoteStreams.push(r);let a=new Event("addstream");a.stream=r,e.dispatchEvent(a)})}),o.apply(e,arguments)}}}function Sz(n){if(typeof n!="object"||!n.RTCPeerConnection)return;let o=n.RTCPeerConnection.prototype,t=o.createOffer,e=o.createAnswer,i=o.setLocalDescription,r=o.setRemoteDescription,a=o.addIceCandidate;o.createOffer=function(p,h){let C=arguments.length>=2?arguments[2]:arguments[0],E=t.apply(this,[C]);return h?(E.then(p,h),Promise.resolve()):E},o.createAnswer=function(p,h){let C=arguments.length>=2?arguments[2]:arguments[0],E=e.apply(this,[C]);return h?(E.then(p,h),Promise.resolve()):E};let s=function(m,p,h){let C=i.apply(this,[m]);return h?(C.then(p,h),Promise.resolve()):C};o.setLocalDescription=s,s=function(m,p,h){let C=r.apply(this,[m]);return h?(C.then(p,h),Promise.resolve()):C},o.setRemoteDescription=s,s=function(m,p,h){let C=a.apply(this,[m]);return h?(C.then(p,h),Promise.resolve()):C},o.addIceCandidate=s}function bz(n){let o=n&&n.navigator;if(o.mediaDevices&&o.mediaDevices.getUserMedia){let t=o.mediaDevices,e=t.getUserMedia.bind(t);o.mediaDevices.getUserMedia=i=>e(Yve(i))}!o.getUserMedia&&o.mediaDevices&&o.mediaDevices.getUserMedia&&(o.getUserMedia=(function(e,i,r){o.mediaDevices.getUserMedia(e).then(i,r)}).bind(o))}function Yve(n){return n&&n.video!==void 0?Object.assign({},n,{video:tz(n.video)}):n}function Iz(n){if(!n.RTCPeerConnection)return;let o=n.RTCPeerConnection;n.RTCPeerConnection=function(e,i){if(e&&e.iceServers){let r=[];for(let a=0;a<e.iceServers.length;a++){let s=e.iceServers[a];s.urls===void 0&&s.url?(a_("RTCIceServer.url","RTCIceServer.urls"),s=JSON.parse(JSON.stringify(s)),s.urls=s.url,delete s.url,r.push(s)):r.push(e.iceServers[a])}e.iceServers=r}return new o(e,i)},n.RTCPeerConnection.prototype=o.prototype,"generateCertificate"in o&&Object.defineProperty(n.RTCPeerConnection,"generateCertificate",{get(){return o.generateCertificate}})}function Ez(n){typeof n=="object"&&n.RTCTrackEvent&&"receiver"in n.RTCTrackEvent.prototype&&!("transceiver"in n.RTCTrackEvent.prototype)&&Object.defineProperty(n.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function xz(n){let o=n.RTCPeerConnection.prototype.createOffer;n.RTCPeerConnection.prototype.createOffer=function(e){if(e){typeof e.offerToReceiveAudio<"u"&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);let i=this.getTransceivers().find(a=>a.receiver.track.kind==="audio");e.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):e.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof e.offerToReceiveVideo<"u"&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);let r=this.getTransceivers().find(a=>a.receiver.track.kind==="video");e.offerToReceiveVideo===!1&&r?r.direction==="sendrecv"?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":r.direction==="recvonly"&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):e.offerToReceiveVideo===!0&&!r&&this.addTransceiver("video",{direction:"recvonly"})}return o.apply(this,arguments)}}function Tz(n){typeof n!="object"||n.AudioContext||(n.AudioContext=n.webkitAudioContext)}var Oz={};_w(Oz,{removeExtmapAllowMixed:()=>e7,shimAddIceCandidateNullOrEmpty:()=>JD,shimConnectionState:()=>J9,shimMaxMessageSize:()=>XD,shimParameterlessSetLocalDescription:()=>ew,shimRTCIceCandidate:()=>ZD,shimRTCIceCandidateRelayProtocol:()=>Q9,shimSendThrowTypeError:()=>QD});var s_=pG(wz());function ZD(n){if(!n.RTCIceCandidate||n.RTCIceCandidate&&"foundation"in n.RTCIceCandidate.prototype)return;let o=n.RTCIceCandidate;n.RTCIceCandidate=function(e){if(typeof e=="object"&&e.candidate&&e.candidate.indexOf("a=")===0&&(e=JSON.parse(JSON.stringify(e)),e.candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){let i=new o(e),r=s_.default.parseCandidate(e.candidate);for(let a in r)a in i||Object.defineProperty(i,a,{value:r[a]});return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new o(e)},n.RTCIceCandidate.prototype=o.prototype,Bm(n,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new n.RTCIceCandidate(t.candidate),writable:"false"}),t))}function Q9(n){!n.RTCIceCandidate||n.RTCIceCandidate&&"relayProtocol"in n.RTCIceCandidate.prototype||Bm(n,"icecandidate",o=>{if(o.candidate){let t=s_.default.parseCandidate(o.candidate.candidate);t.type==="relay"&&(o.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return o})}function XD(n,o){if(!n.RTCPeerConnection)return;"sctp"in n.RTCPeerConnection.prototype||Object.defineProperty(n.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});let t=function(s){if(!s||!s.sdp)return!1;let m=s_.default.splitSections(s.sdp);return m.shift(),m.some(p=>{let h=s_.default.parseMLine(p);return h&&h.kind==="application"&&h.protocol.indexOf("SCTP")!==-1})},e=function(s){let m=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(m===null||m.length<2)return-1;let p=parseInt(m[1],10);return p!==p?-1:p},i=function(s){let m=65536;return o.browser==="firefox"&&(o.version<57?s===-1?m=16384:m=2147483637:o.version<60?m=o.version===57?65535:65536:m=2147483637),m},r=function(s,m){let p=65536;o.browser==="firefox"&&o.version===57&&(p=65535);let h=s_.default.matchPrefix(s.sdp,"a=max-message-size:");return h.length>0?p=parseInt(h[0].substring(19),10):o.browser==="firefox"&&m!==-1&&(p=2147483637),p},a=n.RTCPeerConnection.prototype.setRemoteDescription;n.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,o.browser==="chrome"&&o.version>=76){let{sdpSemantics:m}=this.getConfiguration();m==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(t(arguments[0])){let m=e(arguments[0]),p=i(m),h=r(arguments[0],m),C;p===0&&h===0?C=Number.POSITIVE_INFINITY:p===0||h===0?C=Math.max(p,h):C=Math.min(p,h);let E={};Object.defineProperty(E,"maxMessageSize",{get(){return C}}),this._sctp=E}return a.apply(this,arguments)}}function QD(n){if(!(n.RTCPeerConnection&&"createDataChannel"in n.RTCPeerConnection.prototype))return;function o(e,i){let r=e.send;e.send=function(){let s=arguments[0],m=s.length||s.size||s.byteLength;if(e.readyState==="open"&&i.sctp&&m>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return r.apply(e,arguments)}}let t=n.RTCPeerConnection.prototype.createDataChannel;n.RTCPeerConnection.prototype.createDataChannel=function(){let i=t.apply(this,arguments);return o(i,this),i},Bm(n,"datachannel",e=>(o(e.channel,e.target),e))}function J9(n){if(!n.RTCPeerConnection||"connectionState"in n.RTCPeerConnection.prototype)return;let o=n.RTCPeerConnection.prototype;Object.defineProperty(o,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(o,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(t){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),t&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=t)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(t=>{let e=o[t];o[t]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{let r=i.target;if(r._lastConnectionState!==r.connectionState){r._lastConnectionState=r.connectionState;let a=new Event("connectionstatechange",i);r.dispatchEvent(a)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),e.apply(this,arguments)}})}function e7(n,o){if(!n.RTCPeerConnection||o.browser==="chrome"&&o.version>=71||o.browser==="safari"&&o.version>=605)return;let t=n.RTCPeerConnection.prototype.setRemoteDescription;n.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(`
|
|
435
435
|
a=extmap-allow-mixed`)!==-1){let r=i.sdp.split(`
|
|
436
436
|
`).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(`
|
|
437
|
-
`);n.RTCSessionDescription&&i instanceof n.RTCSessionDescription?arguments[0]=new n.RTCSessionDescription({type:i.type,sdp:r}):i.sdp=r}return t.apply(this,arguments)}}function JD(n,o){if(!(n.RTCPeerConnection&&n.RTCPeerConnection.prototype))return;let t=n.RTCPeerConnection.prototype.addIceCandidate;!t||t.length===0||(n.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(o.browser==="chrome"&&o.version<78||o.browser==="firefox"&&o.version<68||o.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function ew(n,o){if(!(n.RTCPeerConnection&&n.RTCPeerConnection.prototype))return;let t=n.RTCPeerConnection.prototype.setLocalDescription;!t||t.length===0||(n.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return t.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?t.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>t.apply(this,[a]))})}var kJt=pG(wz());function Kve({window:n}={},o={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let t=z9,e=Hve(n),i={browserDetails:e,commonShim:Oz,extractVersion:KD,disableLog:jve,disableWarnings:$ve,sdp:kJt};switch(e.browser){case"chrome":if(!q9||!W9||!o.shimChrome)return t("Chrome shim is not included in this adapter release."),i;if(e.version===null)return t("Chrome shim can not determine version, not shimming."),i;t("adapter.js shimming chrome."),i.browserShim=q9,JD(n,e),ew(n,e),G9(n,e),iz(n,e),W9(n,e),oz(n,e),lz(n,e),rz(n,e),az(n,e),sz(n,e),cz(n,e),ZD(n,e),Q9(n,e),J9(n,e),XD(n,e),QD(n,e),e7(n,e);break;case"firefox":if(!Z9||!K9||!o.shimFirefox)return t("Firefox shim is not included in this adapter release."),i;t("adapter.js shimming firefox."),i.browserShim=Z9,JD(n,e),ew(n,e),Y9(n,e),K9(n,e),mz(n,e),gz(n,e),dz(n,e),pz(n,e),uz(n,e),hz(n,e),fz(n,e),vz(n,e),Cz(n,e),ZD(n,e),J9(n,e),XD(n,e),QD(n,e);break;case"safari":if(!X9||!o.shimSafari)return t("Safari shim is not included in this adapter release."),i;t("adapter.js shimming safari."),i.browserShim=X9,JD(n,e),ew(n,e),Iz(n,e),xz(n,e),Sz(n,e),_z(n,e),yz(n,e),Ez(n,e),bz(n,e),Tz(n,e),ZD(n,e),Q9(n,e),XD(n,e),QD(n,e),e7(n,e);break;default:t("Unsupported browser!");break}return i}var
|
|
437
|
+
`);n.RTCSessionDescription&&i instanceof n.RTCSessionDescription?arguments[0]=new n.RTCSessionDescription({type:i.type,sdp:r}):i.sdp=r}return t.apply(this,arguments)}}function JD(n,o){if(!(n.RTCPeerConnection&&n.RTCPeerConnection.prototype))return;let t=n.RTCPeerConnection.prototype.addIceCandidate;!t||t.length===0||(n.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(o.browser==="chrome"&&o.version<78||o.browser==="firefox"&&o.version<68||o.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function ew(n,o){if(!(n.RTCPeerConnection&&n.RTCPeerConnection.prototype))return;let t=n.RTCPeerConnection.prototype.setLocalDescription;!t||t.length===0||(n.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return t.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?t.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>t.apply(this,[a]))})}var kJt=pG(wz());function Kve({window:n}={},o={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let t=z9,e=Hve(n),i={browserDetails:e,commonShim:Oz,extractVersion:KD,disableLog:jve,disableWarnings:$ve,sdp:kJt};switch(e.browser){case"chrome":if(!q9||!W9||!o.shimChrome)return t("Chrome shim is not included in this adapter release."),i;if(e.version===null)return t("Chrome shim can not determine version, not shimming."),i;t("adapter.js shimming chrome."),i.browserShim=q9,JD(n,e),ew(n,e),G9(n,e),iz(n,e),W9(n,e),oz(n,e),lz(n,e),rz(n,e),az(n,e),sz(n,e),cz(n,e),ZD(n,e),Q9(n,e),J9(n,e),XD(n,e),QD(n,e),e7(n,e);break;case"firefox":if(!Z9||!K9||!o.shimFirefox)return t("Firefox shim is not included in this adapter release."),i;t("adapter.js shimming firefox."),i.browserShim=Z9,JD(n,e),ew(n,e),Y9(n,e),K9(n,e),mz(n,e),gz(n,e),dz(n,e),pz(n,e),uz(n,e),hz(n,e),fz(n,e),vz(n,e),Cz(n,e),ZD(n,e),J9(n,e),XD(n,e),QD(n,e);break;case"safari":if(!X9||!o.shimSafari)return t("Safari shim is not included in this adapter release."),i;t("adapter.js shimming safari."),i.browserShim=X9,JD(n,e),ew(n,e),Iz(n,e),xz(n,e),Sz(n,e),_z(n,e),yz(n,e),Ez(n,e),bz(n,e),Tz(n,e),ZD(n,e),Q9(n,e),XD(n,e),QD(n,e),e7(n,e);break;default:t("Unsupported browser!");break}return i}var ero=Kve({window:typeof window>"u"?void 0:window});Xn.production&&void 0;LR().bootstrapModule(Lve,{ngZone:"noop"}).catch(n=>console.error(n));
|
|
438
438
|
|
|
439
439
|
let snippyly;
|
|
440
440
|
let snippylyInitInterval;
|