@veltdev/sdk-dev 6.0.0-beta.28 → 6.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/app/client/snippyly.model.d.ts +3 -12
  2. package/app/models/data/comment-events.data.model.d.ts +0 -39
  3. package/app/models/data/config.data.model.d.ts +0 -154
  4. package/app/models/data/reaction-resolver.data.model.d.ts +0 -1
  5. package/app/models/data/selection.model.d.ts +8 -10
  6. package/app/models/data/user-resolver.data.model.d.ts +9 -11
  7. package/app/models/data/user.data.model.d.ts +18 -21
  8. package/app/models/element/activity-element.model.d.ts +1 -0
  9. package/app/models/element/area-element.model.d.ts +1 -0
  10. package/app/models/element/arrow-element.model.d.ts +2 -1
  11. package/app/models/element/autocomplete-element.model.d.ts +1 -0
  12. package/app/models/element/comment-element.model.d.ts +77 -103
  13. package/app/models/element/contact-element.model.d.ts +2 -1
  14. package/app/models/element/crdt-element.model.d.ts +1 -1
  15. package/app/models/element/cursor-element.model.d.ts +2 -1
  16. package/app/models/element/huddle-element.model.d.ts +2 -1
  17. package/app/models/element/live-state-sync-element.model.d.ts +1 -1
  18. package/app/models/element/notification-element.model.d.ts +2 -33
  19. package/app/models/element/presence-element.model.d.ts +11 -32
  20. package/app/models/element/reaction-element.model.d.ts +1 -1
  21. package/app/models/element/recorder-element.model.d.ts +2 -21
  22. package/app/models/element/rewriter-element.model.d.ts +1 -43
  23. package/app/models/element/selection-element.model.d.ts +1 -1
  24. package/app/models/element/suggestion-element.model.d.ts +1 -0
  25. package/app/models/element/tag-element.model.d.ts +8 -7
  26. package/app/models/element/views-element.model.d.ts +1 -1
  27. package/app/utils/enums.d.ts +83 -97
  28. package/{chunk-WDA4SVMN.js → chunk-25GEE4UD.js} +1 -1
  29. package/{chunk-BYJ7FNFA.js → chunk-2HGBJS2C.js} +1 -1
  30. package/{chunk-MMLFNU6G.js → chunk-2KJNXU43.js} +1 -1
  31. package/{chunk-ROAAPWB6.js → chunk-447SWJD2.js} +1 -1
  32. package/chunk-5B5CQEDX.js +1 -0
  33. package/{chunk-R7O6MRU7.js → chunk-5FKOPJVO.js} +7 -7
  34. package/{chunk-2XFMMSIA.js → chunk-6SOP2T3L.js} +1 -1
  35. package/{chunk-DJYRZD7H.js → chunk-7W553TUZ.js} +1 -1
  36. package/{chunk-NTNPNLFT.js → chunk-7ZOGXD6Z.js} +1 -1
  37. package/{chunk-46SLBZHY.js → chunk-ABOXMXUZ.js} +1 -1
  38. package/{chunk-RU3S5WM7.js → chunk-AOHSD4YE.js} +2 -2
  39. package/chunk-APIRNTKO.js +1 -0
  40. package/chunk-AVMLJMVU.js +1 -0
  41. package/{chunk-MWSODQ6X.js → chunk-BG6MNCDK.js} +1 -1
  42. package/chunk-BLIJMW4Z.js +13 -0
  43. package/chunk-BY627CV6.js +1 -0
  44. package/{chunk-O7ZAC2ZS.js → chunk-DX4SZFHQ.js} +1 -1
  45. package/{chunk-XA2U66CN.js → chunk-IXZIBE27.js} +1 -1
  46. package/{chunk-MNSD5X74.js → chunk-J6J7I3SW.js} +1 -1
  47. package/{chunk-GGPJ6IKC.js → chunk-JFRM6MNS.js} +1 -1
  48. package/chunk-JWLHBAMV.js +167 -0
  49. package/{chunk-B4IA4XDT.js → chunk-N4SGYLNB.js} +1 -1
  50. package/{chunk-7YVQR4BL.js → chunk-Q7BPHHBS.js} +1 -1
  51. package/{chunk-TH6YKCXO.js → chunk-QE2MK6NF.js} +1 -1
  52. package/{chunk-GBHISGGX.js → chunk-SALUJBOS.js} +1 -1
  53. package/{chunk-RFCFKIUM.js → chunk-TXOYHDVN.js} +1 -1
  54. package/{chunk-SJ45VMIG.js → chunk-UJMFCXYS.js} +1 -1
  55. package/{chunk-35J3HFXX.js → chunk-USRSVPHC.js} +1 -1
  56. package/{chunk-HCYE7VHY.js → chunk-XMYVEF74.js} +1 -1
  57. package/{chunk-OEREM5JH.js → chunk-XQZVQUQK.js} +3 -3
  58. package/{chunk-7KKEGN3R.js → chunk-Y6QKEGWK.js} +1 -1
  59. package/{chunk-G35OSTOG.js → chunk-YBQBSGLX.js} +1 -1
  60. package/{chunk-SZKZ3DG3.js → chunk-ZVY2YW2G.js} +1 -1
  61. package/package.json +1 -1
  62. package/types.d.ts +22 -22
  63. package/velt-activity-log.js +1 -1
  64. package/velt-area.js +1 -1
  65. package/velt-arrow.js +2 -2
  66. package/velt-comment.js +8 -8
  67. package/velt-crdt.js +1 -1
  68. package/velt-cursor.js +2 -2
  69. package/velt-huddle.js +3 -3
  70. package/velt-live-state-sync.js +2 -2
  71. package/velt-notification.js +1 -1
  72. package/velt-presence.js +1 -1
  73. package/velt-reaction.js +1 -1
  74. package/velt-recorder.js +1 -1
  75. package/velt-rewriter.js +2 -2
  76. package/velt-selection.js +1 -1
  77. package/velt-tag.js +1 -1
  78. package/velt-user-invite.js +1 -1
  79. package/velt-user-request.js +1 -1
  80. package/velt-video-player.js +1 -1
  81. package/velt-views.js +3 -3
  82. package/velt.d.ts +3 -2
  83. package/velt.js +22 -264
  84. package/chunk-ATMZKPBX.js +0 -13
  85. package/chunk-FXUDI3M6.js +0 -167
  86. package/chunk-GRHEZULW.js +0 -1
  87. package/chunk-TYMRWTZD.js +0 -1
  88. package/chunk-WD2ZEHH2.js +0 -1
  89. package/chunk-XK65RTYQ.js +0 -1
package/velt.js CHANGED
@@ -1,7 +1,7 @@
1
- var SNIPPYLY_VERSION = '6.0.0-beta.28';
1
+ var SNIPPYLY_VERSION = '6.0.0-beta.3';
2
2
  Promise.allSettled||(Promise.allSettled=function(t){return Promise.all(t.map(function(r){return Promise.resolve(r).then(function(e){return{status:"fulfilled",value:e}}).catch(function(e){return{status:"rejected",reason:e}})}))});
3
3
 
4
- import{a as Ms}from"./chunk-ATMZKPBX.js";import{d as T}from"./chunk-46SLBZHY.js";import{a as Ps}from"./chunk-7KKEGN3R.js";import{b as Oo,d as re}from"./chunk-O7ZAC2ZS.js";import"./chunk-35J3HFXX.js";import{a as qo,d as Bo}from"./chunk-G35OSTOG.js";import"./chunk-GBHISGGX.js";import"./chunk-MWSODQ6X.js";import{d as So}from"./chunk-RFCFKIUM.js";import{d as Yo}from"./chunk-7YVQR4BL.js";import"./chunk-WDA4SVMN.js";import"./chunk-XA2U66CN.js";import"./chunk-GGPJ6IKC.js";import{b as As,c as Rs,j as ks,q as di,t as xs}from"./chunk-OEREM5JH.js";import"./chunk-HCYE7VHY.js";import{l as Vo,m as Go,o as $o,r as Qo,s as Xo,u as Jo,v as Zo,w as es}from"./chunk-DJYRZD7H.js";import{a as ui}from"./chunk-XK65RTYQ.js";import{a as Ds}from"./chunk-NTNPNLFT.js";import"./chunk-BYJ7FNFA.js";import{A as xe,B as Se,a as Ye,b as si,c as fs,d as ct,e as vs,f as ai,g as li,h as ci,i as Rt,j as ys,k as _s,l as Cs,m as bs,n as Es,t as Ss,u as Ts,v as Os,w as Is,x as Pr}from"./chunk-ROAAPWB6.js";import{a as gs}from"./chunk-SZKZ3DG3.js";import{a as Ke,b as De,c as kt,d as hi}from"./chunk-SJ45VMIG.js";import{a as Pe}from"./chunk-2XFMMSIA.js";import{a as dt}from"./chunk-B4IA4XDT.js";import{a as xr}from"./chunk-MNSD5X74.js";import{I as ii,M as Wo,S as Et,ba as Ko,ca as Z,ea as At,l as Co,o as bo,p as Eo,v as To,y as Dr}from"./chunk-RU3S5WM7.js";import{$ as le,$b as ke,Aa as lo,Ab as Ve,Af as ns,Bb as Ge,Bd as Do,Bi as ms,Ca as co,Cd as xo,Cf as ni,Da as ho,Db as Kt,Dd as Po,E as to,Eb as Xt,Ee as A,Fa as X,Fb as Jt,Fc as Zt,Fi as ps,Ga as uo,Gc as $e,Gd as Mo,Ha as Er,Hd as No,Ib as Tr,Id as wo,Ie as ri,J as io,Je as rs,Kb as _t,Kd as Lo,Ke as Tt,L as ro,Lc as bt,Na as mo,Nb as je,Ob as Or,Pa as R,Pb as Ct,Pd as Fo,Qc as ei,Qd as zo,Rc as fo,Rd as Uo,Sc as vo,Tc as ti,Td as jo,Ua as j,Ud as Ho,Va as Re,Vc as yo,Vd as St,Wc as _o,Wd as Qe,Ya as Sr,Z as I,_a as ge,_b as Ir,a as k,aa as Ae,ac as po,b as G,ba as no,be as ts,c as Kn,ca as U,cc as Ar,ci as Ot,d as ml,da as Fe,db as Ue,di as l,e as jt,ei as B,f as Xn,fb as qe,fi as as,g as L,gb as Be,gi as ls,ha as st,i as Wt,ia as at,ig as os,ja as Ht,ji as oi,kc as We,l as Jn,la as be,lb as W,lc as He,li as fe,m as M,ma as Cr,mb as $,md as Io,mi as ie,nb as te,oa as oo,ob as J,oe as C,pc as Rr,qa as so,qc as go,r as x,re as is,rh as ss,sb as Qt,tb as Yt,ua as $t,ui as cs,v as Zn,va as ao,vb as lt,vh as g,vi as ds,w as eo,wa as ze,wi as hs,xb as Ee,xc as kr,xd as Ao,xi as us,yd as Ro,yi as D,za as br,zb as q,zd as ko,zi as It}from"./chunk-FXUDI3M6.js";var jn=ml((fv,Gn)=>{"use strict";var p={};p.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)};p.localCName=p.generateIdentifier();p.splitLines=function(r){return r.trim().split(`
4
+ import{a as bs}from"./chunk-BLIJMW4Z.js";import{d as T}from"./chunk-ABOXMXUZ.js";import{a as Cs}from"./chunk-Y6QKEGWK.js";import{b as fo,d as re}from"./chunk-DX4SZFHQ.js";import"./chunk-USRSVPHC.js";import{a as xo,d as Po}from"./chunk-YBQBSGLX.js";import"./chunk-SALUJBOS.js";import"./chunk-BG6MNCDK.js";import{d as po}from"./chunk-TXOYHDVN.js";import{d as qo}from"./chunk-Q7BPHHBS.js";import"./chunk-25GEE4UD.js";import"./chunk-IXZIBE27.js";import"./chunk-JFRM6MNS.js";import{b as gs,c as fs,j as vs,q as ai,t as _s}from"./chunk-XQZVQUQK.js";import"./chunk-XMYVEF74.js";import{l as Mo,m as No,o as zo,r as Uo,s as Vo,u as Go,v as jo,w as Wo}from"./chunk-7W553TUZ.js";import{a as ci}from"./chunk-AVMLJMVU.js";import{a as ys}from"./chunk-7ZOGXD6Z.js";import"./chunk-2HGBJS2C.js";import{A as xe,B as Se,a as Qe,b as ri,c as ns,d as lt,e as os,f as ni,g as oi,h as si,i as It,j as ss,k as as,l as ls,m as cs,n as ds,t as hs,u as us,v as ms,w as ps,x as Ir}from"./chunk-447SWJD2.js";import{a as rs}from"./chunk-ZVY2YW2G.js";import{a as Ye,b as De,c as At,d as li}from"./chunk-UJMFCXYS.js";import{a as Pe}from"./chunk-6SOP2T3L.js";import{a as ct}from"./chunk-N4SGYLNB.js";import{a as Or}from"./chunk-J6J7I3SW.js";import{I as Zt,M as Lo,S as bt,ba as Bo,ca as J,ea as Ot,l as ho,o as uo,p as mo,v as go,y as Tr}from"./chunk-AOHSD4YE.js";import{$ as pe,$b as ke,Aa as Zn,Ab as Ve,Ad as bo,Bb as Ge,Bd as Eo,Ca as eo,Cd as So,Da as to,Db as Qt,De as C,Di as Xo,E as $n,Eb as Yt,Ei as Jo,Fa as K,Fb as Kt,Fc as Xt,Fd as To,Fh as Ko,Fi as Zo,Ga as io,Gc as $e,Ge as $o,Gi as es,Ha as fr,Hi as D,Ib as yr,Id as Oo,Ii as Tt,J as Qn,Kb as yt,Ki as ts,L as Yn,Lc as Ct,Ld as Io,Na as ro,Nb as je,Ob as _r,Oi as is,Pa as R,Pb as _t,Qc as so,Qd as Ao,Qf as ti,Rc as ao,Sc as Jt,Te as A,Ua as j,Uc as lo,Va as Re,Vc as co,Ya as vr,Ye as ei,Z as I,Ze as Qo,_a as ge,_b as Cr,_e as Et,a as k,aa as Ae,ac as no,b as G,ba as Kn,be as Ro,c as Vn,ca as U,cc as br,ce as ko,d as Qa,da as Fe,db as Ue,de as Do,e as Vt,f as Gn,fb as qe,g as L,gb as Be,ge as wo,ha as nt,he as Fo,i as Gt,ia as ot,ie as at,ja as jt,je as g,kc as We,l as jn,la as be,lb as W,lc as He,ld as vo,m as M,ma as pr,mb as $,nb as te,oa as Xn,ob as X,oi as St,pc as Er,pi as l,qa as Jn,qc as oo,qe as Ho,qi as B,r as x,sb as Ht,si as ii,tb as $t,ua as Wt,ui as fe,v as Wn,vb as st,vi as ie,w as Hn,wa as ze,wd as yo,wg as Yo,xb as Ee,xc as Sr,xd as _o,yd as Co,za as gr,zb as q}from"./chunk-JWLHBAMV.js";var Ln=Qa((Af,wn)=>{"use strict";var p={};p.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)};p.localCName=p.generateIdentifier();p.splitLines=function(r){return r.trim().split(`
5
5
  `).map(e=>e.trim())};p.splitSections=function(r){return r.split(`
6
6
  m=`).map((t,i)=>(i>0?"m="+t:t).trim()+`\r
7
7
  `)};p.getDescription=function(r){let e=p.splitSections(r);return e&&e[0]};p.getMediaSections=function(r){let e=p.splitSections(r);return e.shift(),e};p.matchPrefix=function(r,e){return p.splitLines(r).filter(t=>t.indexOf(e)===0)};p.parseCandidate=function(r){let e;r.indexOf("a=candidate:")===0?e=r.substring(12).split(" "):e=r.substring(10).split(" ");let t={foundation:e[0],component:{1:"rtp",2:"rtcp"}[e[1]]||e[1],protocol:e[2].toLowerCase(),priority:parseInt(e[3],10),ip:e[4],address:e[4],port:parseInt(e[5],10),type:e[7]};for(let i=8;i<e.length;i+=2)switch(e[i]){case"raddr":t.relatedAddress=e[i+1];break;case"rport":t.relatedPort=parseInt(e[i+1],10);break;case"tcptype":t.tcpType=e[i+1];break;case"ufrag":t.ufrag=e[i+1],t.usernameFragment=e[i+1];break;default:t[e[i]]===void 0&&(t[e[i]]=e[i+1]);break}return t};p.writeCandidate=function(r){let e=[];e.push(r.foundation);let t=r.component;t==="rtp"?e.push(1):t==="rtcp"?e.push(2):e.push(t),e.push(r.protocol.toUpperCase()),e.push(r.priority),e.push(r.address||r.ip),e.push(r.port);let i=r.type;return e.push("typ"),e.push(i),i!=="host"&&r.relatedAddress&&r.relatedPort&&(e.push("raddr"),e.push(r.relatedAddress),e.push("rport"),e.push(r.relatedPort)),r.tcpType&&r.protocol.toLowerCase()==="tcp"&&(e.push("tcptype"),e.push(r.tcpType)),(r.usernameFragment||r.ufrag)&&(e.push("ufrag"),e.push(r.usernameFragment||r.ufrag)),"candidate:"+e.join(" ")};p.parseIceOptions=function(r){return r.substring(14).split(" ")};p.parseRtpMap=function(r){let e=r.substring(9).split(" "),t={payloadType:parseInt(e.shift(),10)};return e=e[0].split("/"),t.name=e[0],t.clockRate=parseInt(e[1],10),t.channels=e.length===3?parseInt(e[2],10):1,t.numChannels=t.channels,t};p.writeRtpMap=function(r){let e=r.payloadType;r.preferredPayloadType!==void 0&&(e=r.preferredPayloadType);let t=r.channels||r.numChannels||1;return"a=rtpmap:"+e+" "+r.name+"/"+r.clockRate+(t!==1?"/"+t:"")+`\r
@@ -32,13 +32,17 @@ a=ice-pwd:`+r.password+`\r
32
32
  o=`+(t||"thisisadapterortc")+" "+i+" "+n+` IN IP4 127.0.0.1\r
33
33
  s=-\r
34
34
  t=0 0\r
35
- `};p.getDirection=function(r,e){let t=p.splitLines(r);for(let i=0;i<t.length;i++)switch(t[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return t[i].substring(2);default:}return e?p.getDirection(e):"sendrecv"};p.getKind=function(r){return p.splitLines(r)[0].split(" ")[0].substring(2)};p.isRejected=function(r){return r.split(" ",2)[1]==="0"};p.parseMLine=function(r){let t=p.splitLines(r)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}};p.parseOLine=function(r){let t=p.matchPrefix(r,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}};p.isValidSDP=function(r){if(typeof r!="string"||r.length===0)return!1;let e=p.splitLines(r);for(let t=0;t<e.length;t++)if(e[t].length<2||e[t].charAt(1)!=="=")return!1;return!0};typeof Gn=="object"&&(Gn.exports=p)});var Ns=20;var pl=new no("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let r=Fe(be);return()=>Dr(r,{scrollThrottle:Ns})}});function gl(r){let e=Fe(be);return()=>Dr(e,{scrollThrottle:Ns})}var ws={provide:pl,deps:[],useFactory:gl};var Mr=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=Re({type:r});static \u0275inj=Ae({providers:[ws],imports:[Wo,ii,Et,Et,bo]})}return r})();var S=(function(r){return r[r.State=0]="State",r[r.Transition=1]="Transition",r[r.Sequence=2]="Sequence",r[r.Group=3]="Group",r[r.Animate=4]="Animate",r[r.Keyframes=5]="Keyframes",r[r.Style=6]="Style",r[r.Trigger=7]="Trigger",r[r.Reference=8]="Reference",r[r.AnimateChild=9]="AnimateChild",r[r.AnimateRef=10]="AnimateRef",r[r.Query=11]="Query",r[r.Stagger=12]="Stagger",r})(S||{}),ce="*";function Nr(r,e){return{type:S.Trigger,name:r,definitions:e,options:{}}}function mi(r,e=null){return{type:S.Animate,styles:e,timings:r}}function Ls(r,e=null){return{type:S.Sequence,steps:r,options:e}}function ye(r){return{type:S.Style,styles:r,offset:null}}function pi(r,e,t){return{type:S.State,name:r,styles:e,options:t}}function gi(r,e,t=null){return{type:S.Transition,expr:r,animation:e,options:t}}var ve=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Xe=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,i=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(n)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},ht="!";function Fs(r){return new I(3e3,!1)}function fl(){return new I(3100,!1)}function vl(){return new I(3101,!1)}function yl(r){return new I(3001,!1)}function _l(r){return new I(3003,!1)}function Cl(r){return new I(3004,!1)}function Us(r,e){return new I(3005,!1)}function qs(){return new I(3006,!1)}function Bs(){return new I(3007,!1)}function Vs(r,e){return new I(3008,!1)}function Gs(r){return new I(3002,!1)}function js(r,e,t,i,n){return new I(3010,!1)}function Ws(){return new I(3011,!1)}function Hs(){return new I(3012,!1)}function $s(){return new I(3200,!1)}function Qs(){return new I(3202,!1)}function Ys(){return new I(3013,!1)}function Ks(r){return new I(3014,!1)}function Xs(r){return new I(3015,!1)}function Js(r){return new I(3016,!1)}function Zs(r,e){return new I(3404,!1)}function bl(r){return new I(3502,!1)}function ea(r){return new I(3503,!1)}function ta(){return new I(3300,!1)}function ia(r){return new I(3504,!1)}function ra(r){return new I(3301,!1)}function na(r,e){return new I(3302,!1)}function oa(r){return new I(3303,!1)}function sa(r,e){return new I(3400,!1)}function aa(r){return new I(3401,!1)}function la(r){return new I(3402,!1)}function ca(r,e){return new I(3505,!1)}function Te(r){switch(r.length){case 0:return new ve;case 1:return r[0];default:return new Xe(r)}}function zr(r,e,t=new Map,i=new Map){let n=[],o=[],s=-1,a=null;if(e.forEach(c=>{let d=c.get("offset"),h=d==s,u=h&&a||new Map;c.forEach((m,v)=>{let f=v,y=m;if(v!=="offset")switch(f=r.normalizePropertyName(f,n),y){case ht:y=t.get(v);break;case ce:y=i.get(v);break;default:y=r.normalizeStyleValue(v,f,y,n);break}u.set(f,y)}),h||o.push(u),a=u,s=d}),n.length)throw bl(n);return o}function fi(r,e,t,i){switch(e){case"start":r.onStart(()=>i(t&&wr(t,"start",r)));break;case"done":r.onDone(()=>i(t&&wr(t,"done",r)));break;case"destroy":r.onDestroy(()=>i(t&&wr(t,"destroy",r)));break}}function wr(r,e,t){let i=t.totalTime,n=!!t.disabled,o=vi(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,i??r.totalTime,n),s=r._data;return s!=null&&(o._data=s),o}function vi(r,e,t,i,n="",o=0,s){return{element:r,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:o,disabled:!!s}}function ne(r,e,t){let i=r.get(e);return i||r.set(e,i=t),i}function Ur(r){let e=r.indexOf(":"),t=r.substring(1,e),i=r.slice(e+1);return[t,i]}var El=typeof document>"u"?null:document.documentElement;function yi(r){let e=r.parentNode||r.host||null;return e===El?null:e}function Sl(r){return r.substring(1,6)=="ebkit"}var Je=null,zs=!1;function da(r){Je||(Je=Tl()||{},zs=Je.style?"WebkitAppearance"in Je.style:!1);let e=!0;return Je.style&&!Sl(r)&&(e=r in Je.style,!e&&zs&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in Je.style)),e}function Tl(){return typeof document<"u"?document.body:null}function qr(r,e){for(;e;){if(e===r)return!0;e=yi(e)}return!1}function Br(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let i=r.querySelector(e);return i?[i]:[]}var Ol=1e3,Vr="{{",Il="}}",Gr="ng-enter",_i="ng-leave",Dt="ng-trigger",xt=".ng-trigger",jr="ng-animating",Ci=".ng-animating";function _e(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Lr(parseFloat(e[1]),e[2])}function Lr(r,e){return e==="s"?r*Ol:r}function Pt(r,e,t){return r.hasOwnProperty("duration")?r:Rl(r,e,t)}var Al=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Rl(r,e,t){let i,n=0,o="";if(typeof r=="string"){let s=r.match(Al);if(s===null)return e.push(Fs(r)),{duration:0,delay:0,easing:""};i=Lr(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(n=Lr(parseFloat(a),s[4]));let c=s[5];c&&(o=c)}else i=r;if(!t){let s=!1,a=e.length;i<0&&(e.push(fl()),s=!0),n<0&&(e.push(vl()),s=!0),s&&e.splice(a,0,Fs(r))}return{duration:i,delay:n,easing:o}}function ha(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function he(r,e,t){e.forEach((i,n)=>{let o=bi(n);t&&!t.has(n)&&t.set(n,r.style[o]),r.style[o]=i})}function Me(r,e){e.forEach((t,i)=>{let n=bi(i);r.style[n]=""})}function ut(r){return Array.isArray(r)?r.length==1?r[0]:Ls(r):r}function ua(r,e,t){let i=e.params||{},n=Wr(r);n.length&&n.forEach(o=>{i.hasOwnProperty(o)||t.push(yl(o))})}var Fr=new RegExp(`${Vr}\\s*(.+?)\\s*${Il}`,"g");function Wr(r){let e=[];if(typeof r=="string"){let t;for(;t=Fr.exec(r);)e.push(t[1]);Fr.lastIndex=0}return e}function mt(r,e,t){let i=`${r}`,n=i.replace(Fr,(o,s)=>{let a=e[s];return a==null&&(t.push(_l(s)),a=""),a.toString()});return n==i?r:n}var kl=/-+([a-z0-9])/g;function bi(r){return r.replace(kl,(...e)=>e[1].toUpperCase())}function ma(r,e){return r===0||e===0}function pa(r,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((o,s)=>{i.has(s)||n.push(s),i.set(s,o)}),n.length)for(let o=1;o<e.length;o++){let s=e[o];n.forEach(a=>s.set(a,Ei(r,a)))}}return e}function oe(r,e,t){switch(e.type){case S.Trigger:return r.visitTrigger(e,t);case S.State:return r.visitState(e,t);case S.Transition:return r.visitTransition(e,t);case S.Sequence:return r.visitSequence(e,t);case S.Group:return r.visitGroup(e,t);case S.Animate:return r.visitAnimate(e,t);case S.Keyframes:return r.visitKeyframes(e,t);case S.Style:return r.visitStyle(e,t);case S.Reference:return r.visitReference(e,t);case S.AnimateChild:return r.visitAnimateChild(e,t);case S.AnimateRef:return r.visitAnimateRef(e,t);case S.Query:return r.visitQuery(e,t);case S.Stagger:return r.visitStagger(e,t);default:throw Cl(e.type)}}function Ei(r,e){return window.getComputedStyle(r)[e]}var cn=(()=>{class r{validateStyleProperty(t){return da(t)}containsElement(t,i){return qr(t,i)}getParentElement(t){return yi(t)}query(t,i,n){return Br(t,i,n)}computeStyle(t,i,n){return n||""}animate(t,i,n,o,s,a=[],c){return new ve(n,o)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=le({token:r,factory:r.\u0275fac})}return r})(),et=class{static NOOP=new cn},tt=class{};var Dl=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ai=class extends tt{normalizePropertyName(e,t){return bi(e)}normalizeStyleValue(e,t,i,n){let o="",s=i.toString().trim();if(Dl.has(t)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(Us(e,i))}return s+o}};var Ri="*";function xl(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(i=>Pl(i,t,e)):t.push(r),t}function Pl(r,e,t){if(r[0]==":"){let c=Ml(r,t);if(typeof c=="function"){e.push(c);return}r=c}let i=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Xs(r)),e;let n=i[1],o=i[2],s=i[3];e.push(ga(n,s));let a=n==Ri&&s==Ri;o[0]=="<"&&!a&&e.push(ga(s,n))}function Ml(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(Js(r)),"* => *"}}var Si=new Set(["true","1"]),Ti=new Set(["false","0"]);function ga(r,e){let t=Si.has(r)||Ti.has(r),i=Si.has(e)||Ti.has(e);return(n,o)=>{let s=r==Ri||r==n,a=e==Ri||e==o;return!s&&t&&typeof n=="boolean"&&(s=n?Si.has(r):Ti.has(r)),!a&&i&&typeof o=="boolean"&&(a=o?Si.has(e):Ti.has(e)),s&&a}}var Oa=":self",Nl=new RegExp(`s*${Oa}s*,?`,"g");function Ia(r,e,t,i){return new Xr(r).build(e,t,i)}var fa="",Xr=class{_driver;constructor(e){this._driver=e}build(e,t,i){let n=new Jr(t);return this._resetContextStyleTimingState(n),oe(this,ut(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=fa,e.collectedStyles=new Map,e.collectedStyles.set(fa,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&t.errors.push(qs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let c=a,d=c.name;d.toString().split(/\s*,\s*/).forEach(h=>{c.name=h,o.push(this.visitState(c,t))}),c.name=d}else if(a.type==S.Transition){let c=this.visitTransition(a,t);i+=c.queryCount,n+=c.depCount,s.push(c)}else t.errors.push(Bs())}),{type:S.Trigger,name:e.name,states:o,transitions:s,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{Wr(c).forEach(d=>{s.hasOwnProperty(d)||o.add(d)})})}),o.size&&t.errors.push(Vs(e.name,[...o.values()]))}return{type:S.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=oe(this,ut(e.animation),t),n=xl(e.expr,t.errors);return{type:S.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ze(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(i=>oe(this,i,t)),options:Ze(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,o=e.steps.map(s=>{t.currentTime=i;let a=oe(this,s,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:S.Group,steps:o,options:Ze(e.options)}}visitAnimate(e,t){let i=zl(e.timings,t.errors);t.currentAnimateTimings=i;let n,o=e.styles?e.styles:ye({});if(o.type==S.Keyframes)n=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;let d={};i.easing&&(d.easing=i.easing),s=ye(d)}t.currentTime+=i.duration+i.delay;let c=this.visitStyle(s,t);c.isEmptyStep=a,n=c}return t.currentAnimateTimings=null,{type:S.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===ce?i.push(a):t.errors.push(Gs(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(Vr)>=0){o=!0;break}}}),{type:S.Style,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let d=t.collectedStyles.get(t.currentQuerySelector),h=d.get(c),u=!0;h&&(o!=n&&o>=h.startTime&&n<=h.endTime&&(t.errors.push(js(c,h.startTime,h.endTime,o,n)),u=!1),o=h.startTime),u&&d.set(c,{startTime:o,endTime:n}),t.options&&ua(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ws()),i;let n=1,o=0,s=[],a=!1,c=!1,d=0,h=e.steps.map(w=>{let F=this._makeStyleAst(w,t),Y=F.offset!=null?F.offset:Fl(F.styles),V=0;return Y!=null&&(o++,V=F.offset=Y),c=c||V<0||V>1,a=a||V<d,d=V,s.push(V),F});c&&t.errors.push(Hs()),a&&t.errors.push($s());let u=e.steps.length,m=0;o>0&&o<u?t.errors.push(Qs()):o==0&&(m=n/(u-1));let v=u-1,f=t.currentTime,y=t.currentAnimateTimings,P=y.duration;return h.forEach((w,F)=>{let Y=m>0?F==v?1:m*F:s[F],V=Y*P;t.currentTime=f+y.delay+V,y.duration=V,this._validateStyleAst(w,t),w.offset=Y,i.styles.push(w)}),i}visitReference(e,t){return{type:S.Reference,animation:oe(this,ut(e.animation),t),options:Ze(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:Ze(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:Ze(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[o,s]=wl(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,ne(t.collectedStyles,t.currentQuerySelector,new Map);let a=oe(this,ut(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:S.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Ze(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ys());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Pt(e.timings,t.errors,!0);return{type:S.Stagger,animation:oe(this,ut(e.animation),t),timings:i,options:null}}};function wl(r){let e=!!r.split(/\s*,\s*/).find(t=>t==Oa);return e&&(r=r.replace(Nl,"")),r=r.replace(/@\*/g,xt).replace(/@\w+/g,t=>xt+"-"+t.slice(1)).replace(/:animating/g,Ci),[r,e]}function Ll(r){return r?k({},r):null}var Jr=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Fl(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function zl(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let o=Pt(r,e).duration;return Hr(o,0,"")}let t=r;if(t.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Hr(0,0,"");return o.dynamic=!0,o.strValue=t,o}let n=Pt(t,e);return Hr(n.duration,n.delay,n.easing)}function Ze(r){return r?(r=k({},r),r.params&&(r.params=Ll(r.params))):r={},r}function Hr(r,e,t){return{duration:r,delay:e,easing:t}}function dn(r,e,t,i,n,o,s=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:o,totalTime:n+o,easing:s,subTimeline:a}}var Nt=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ul=1,ql=":enter",Bl=new RegExp(ql,"g"),Vl=":leave",Gl=new RegExp(Vl,"g");function Aa(r,e,t,i,n,o=new Map,s=new Map,a,c,d=[]){return new Zr().buildKeyframes(r,e,t,i,n,o,s,a,c,d)}var Zr=class{buildKeyframes(e,t,i,n,o,s,a,c,d,h=[]){d=d||new Nt;let u=new en(e,t,d,n,o,h,[]);u.options=c;let m=c.delay?_e(c.delay):0;u.currentTimeline.delayNextStep(m),u.currentTimeline.setStyles([s],null,u.errors,c),oe(this,i,u);let v=u.timelines.filter(f=>f.containsAnimation());if(v.length&&a.size){let f;for(let y=v.length-1;y>=0;y--){let P=v[y];if(P.element===t){f=P;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,c)}return v.length?v.map(f=>f.buildKeyframes()):[dn(t,[],[],[],0,m,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,n,n.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let n of e){let o=n?.delay;if(o){let s=typeof o=="number"?o:_e(mt(o,n?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime,s=i.duration!=null?_e(i.duration):null,a=i.delay!=null?_e(i.delay):null;return s!==0&&e.forEach(c=>{let d=t.appendInstructionToTimeline(c,s,a);o=Math.max(o,d.duration+d.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),oe(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,n=t,o=e.options;if(o&&(o.params||o.delay)&&(n=t.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==S.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ki);let s=_e(o.delay);n.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>oe(this,s,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,o=e.options&&e.options.delay?_e(e.options.delay):0;e.steps.forEach(s=>{let a=t.createSubContext(e.options);o&&a.delayNextStep(o),oe(this,s,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?mt(i,t.params,t.errors):i;return Pt(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let o=e.style;o.type==S.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(c=>{let d=c.offset||0;a.forwardTime(d*o),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+o),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},o=n.delay?_e(n.delay):0;o&&(t.previousNode.type===S.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ki);let s=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((d,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,d);o&&u.delayNextStep(o),d===t.element&&(c=u.currentTimeline),oe(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let m=u.currentTimeline.currentTime;s=Math.max(s,m)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1),c=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime;break}let h=t.currentTimeline;c&&h.delayNextStep(c);let u=h.currentTime;oe(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}},ki={},en=class r{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=ki;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,n,o,s,a,c){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=c||new Di(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=_e(i.duration)),i.delay!=null&&(n.delay=_e(i.delay));let o=i.params;if(o){let s=n.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=mt(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n]})}}return e}createSubContext(e=null,t,i){let n=t||this.element,o=new r(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=ki,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new tn(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,n,o,s){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Bl,"."+this._enterClassName),e=e.replace(Gl,"."+this._leaveClassName);let c=i!=1,d=this._driver.query(this.element,e,c);i!==0&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),a.push(...d)}return!o&&a.length==0&&s.push(Ks(t)),a}},Di=class r{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ul,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||ce),this._currentKeyframe.set(t,ce);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let o=n&&n.params||{},s=jl(e,this._globalTimelineStyles);for(let[a,c]of s){let d=mt(c,o,i);this._pendingStyles.set(a,d),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ce),this._updateStyle(a,d)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,c)=>{let d=new Map([...this._backFill,...a]);d.forEach((h,u)=>{h===ht?e.add(u):h===ce&&t.add(u)}),i||d.set("offset",c/this.duration),n.push(d)});let o=[...e.values()],s=[...t.values()];if(i){let a=n[0],c=new Map(a);a.set("offset",0),c.set("offset",1),n=[a,c]}return dn(this.element,n,o,s,this.duration,this.startTime,this.easing,!1)}},tn=class extends Di{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,n,o,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let o=[],s=i+t,a=t/s,c=new Map(e[0]);c.set("offset",0),o.push(c);let d=new Map(e[0]);d.set("offset",va(a)),o.push(d);let h=e.length-1;for(let u=1;u<=h;u++){let m=new Map(e[u]),v=m.get("offset"),f=t+v*i;m.set("offset",va(f/s)),o.push(m)}i=s,t=0,n="",e=o}return dn(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,!0)}};function va(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function jl(r,e){let t=new Map,i;return r.forEach(n=>{if(n==="*"){i??=e.keys();for(let o of i)t.set(o,ce)}else for(let[o,s]of n)t.set(o,s)}),t}function ya(r,e,t,i,n,o,s,a,c,d,h,u,m){return{type:0,element:r,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:d,postStyleProps:h,totalTime:u,errors:m}}var $r={},xi=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,n){return Wl(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,o,s,a,c,d,h){let u=[],m=this.ast.options&&this.ast.options.params||$r,v=a&&a.params||$r,f=this.buildStyles(i,v,u),y=c&&c.params||$r,P=this.buildStyles(n,y,u),w=new Set,F=new Map,Y=new Map,V=n==="void",nt={params:Ra(y,m),delay:this.ast.options?.delay},me=h?[]:Aa(e,t,this.ast.animation,o,s,f,P,nt,d,u),K=0;return me.forEach(ee=>{K=Math.max(ee.duration+ee.delay,K)}),u.length?ya(t,this._triggerName,i,n,V,f,P,[],[],F,Y,K,u):(me.forEach(ee=>{let Ne=ee.element,ot=ne(F,Ne,new Set);ee.preStyleProps.forEach(we=>ot.add(we));let Hn=ne(Y,Ne,new Set);ee.postStyleProps.forEach(we=>Hn.add(we)),Ne!==t&&w.add(Ne)}),ya(t,this._triggerName,i,n,V,f,P,me,[...w.values()],F,Y,K))}};function Wl(r,e,t,i,n){return r.some(o=>o(e,t,i,n))}function Ra(r,e){let t=k({},e);return Object.entries(r).forEach(([i,n])=>{n!=null&&(t[i]=n)}),t}var rn=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,n=Ra(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=mt(s,n,t));let c=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,c,s,t),i.set(a,s)})}),i}};function Hl(r,e,t){return new nn(r,e,t)}var nn=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new rn(n.style,o,i))}),_a(this.states,"true","1"),_a(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new xi(e,n,this.states))}),this.fallbackTransition=$l(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(s=>s.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function $l(r,e,t){let i=[(s,a)=>!0],n={type:S.Sequence,steps:[],options:null},o={type:S.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new xi(r,o,e)}function _a(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var Ql=new Nt,on=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],n=[],o=Ia(this._driver,t,i,n);if(i.length)throw ea(i);this._animations.set(e,o)}_buildPlayer(e,t,i){let n=e.element,o=zr(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let n=[],o=this._animations.get(e),s,a=new Map;if(o?(s=Aa(this._driver,t,o,Gr,_i,new Map,new Map,i,Ql,n),s.forEach(h=>{let u=ne(a,h.element,new Map);h.postStyleProps.forEach(m=>u.set(m,null))})):(n.push(ta()),s=[]),n.length)throw ia(n);a.forEach((h,u)=>{h.forEach((m,v)=>{h.set(v,this._driver.computeStyle(u,v,ce))})});let c=s.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),d=Te(c);return this._playersById.set(e,d),d.onDestroy(()=>this.destroy(e)),this.players.push(d),d}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw ra(e);return t}listen(e,t,i,n){let o=vi(t,"","","");return fi(this._getPlayer(e),i,o,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let s=n[0]||{};this.create(e,t,s);return}let o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Ca="ng-animate-queued",Yl=".ng-animate-queued",Qr="ng-animate-disabled",Kl=".ng-animate-disabled",Xl="ng-star-inserted",Jl=".ng-star-inserted",Zl=[],ka={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ec={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ue="__ng_removed",wt=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=ic(n),i){let o=e,{value:s}=o,a=Kn(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n])})}}},Mt="void",Yr=new wt(Mt),sn=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,de(t,this._hostClassName)}listen(e,t,i,n){if(!this._triggers.has(t))throw na(i,t);if(i==null||i.length==0)throw oa(t);if(!rc(i))throw sa(i,t);let o=ne(this._elementListeners,e,[]),s={name:t,phase:i,callback:n};o.push(s);let a=ne(this._engine.statesByElement,e,new Map);return a.has(t)||(de(e,Dt),de(e,Dt+"-"+t),a.set(t,Yr)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw aa(e);return t}trigger(e,t,i,n=!0){let o=this._getTrigger(t),s=new Lt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(de(e,Dt),de(e,Dt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let c=a.get(t),d=new wt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&d.absorbOptions(c.options),a.set(t,d),c||(c=Yr),!(d.value===Mt)&&c.value===d.value){if(!sc(c.params,d.params)){let y=[],P=o.matchStyles(c.value,c.params,y),w=o.matchStyles(d.value,d.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Me(e,P),he(e,w)})}return}let m=ne(this._engine.playersByElement,e,[]);m.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let v=o.matchTransition(c.value,d.value,e,d.params),f=!1;if(!v){if(!n)return;v=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:v,fromState:c,toState:d,player:s,isFallbackTransition:f}),f||(de(e,Ca),s.onStart(()=>{pt(e,Ca)})),s.onDone(()=>{let y=this.players.indexOf(s);y>=0&&this.players.splice(y,1);let P=this._engine.playersByElement.get(e);if(P){let w=P.indexOf(s);w>=0&&P.splice(w,1)}}),this.players.push(s),m.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,xt,!0);i.forEach(n=>{if(n[ue])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(s=>s.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,i,n){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((c,d)=>{if(s.set(d,c.value),this._triggers.has(d)){let h=this.trigger(e,d,Mt,n);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&Te(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(o=>{let s=o.name;if(n.has(s))return;n.add(s);let c=this._triggers.get(s).fallbackTransition,d=i.get(s)||Yr,h=new wt(Mt),u=new Lt(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:d,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,!1,t);else{let o=e[ue];(!o||o===ka)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){de(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let c=vi(o,i.triggerName,i.fromState.value,i.toState.value);c._data=e,fi(i.player,a.phase,c,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(i)}),this._queue=[],t.sort((i,n)=>{let o=i.transition.ast.depCount,s=n.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},an=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new sn(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){let c=n.get(a);if(c){let d=i.indexOf(c);i.splice(d+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&t.add(o)}}return t}trigger(e,t,i,n){if(Oi(t)){let o=this._fetchNamespace(e);if(o)return o.trigger(t,i,n),!0}return!1}insertNode(e,t,i,n){if(!Oi(t))return;let o=t[ue];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(t,i)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),de(e,Qr)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),pt(e,Qr))}removeNode(e,t,i){if(Oi(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,n,o){this.collectedLeaveElements.push(t),t[ue]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,n,o){return Oi(t)?this._fetchNamespace(e).listen(t,i,n,o):()=>{}}_buildInstruction(e,t,i,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,xt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ci,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Te(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ue];if(t&&t.setForRemoval){if(e[ue]=ka,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Qr)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Kl,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];de(n,Xl)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let n=0;n<i.length;n++)i[n]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Te(t).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(e){throw la(e)}_flushAnimations(e,t){let i=new Nt,n=[],o=new Map,s=[],a=new Map,c=new Map,d=new Map,h=new Set;this.disabledNodes.forEach(_=>{h.add(_);let b=this.driver.query(_,Yl,!0);for(let E=0;E<b.length;E++)h.add(b[E])});let u=this.bodyNode,m=Array.from(this.statesByElement.keys()),v=Sa(m,this.collectedEnterElements),f=new Map,y=0;v.forEach((_,b)=>{let E=Gr+y++;f.set(b,E),_.forEach(O=>de(O,E))});let P=[],w=new Set,F=new Set;for(let _=0;_<this.collectedLeaveElements.length;_++){let b=this.collectedLeaveElements[_],E=b[ue];E&&E.setForRemoval&&(P.push(b),w.add(b),E.hasAnimation?this.driver.query(b,Jl,!0).forEach(O=>w.add(O)):F.add(b))}let Y=new Map,V=Sa(m,Array.from(w));V.forEach((_,b)=>{let E=_i+y++;Y.set(b,E),_.forEach(O=>de(O,E))}),e.push(()=>{v.forEach((_,b)=>{let E=f.get(b);_.forEach(O=>pt(O,E))}),V.forEach((_,b)=>{let E=Y.get(b);_.forEach(O=>pt(O,E))}),P.forEach(_=>{this.processLeaveNode(_)})});let nt=[],me=[];for(let _=this._namespaceList.length-1;_>=0;_--)this._namespaceList[_].drainQueuedTransitions(t).forEach(E=>{let O=E.player,z=E.element;if(nt.push(O),this.collectedEnterElements.length){let H=z[ue];if(H&&H.setForMove){if(H.previousTriggersValues&&H.previousTriggersValues.has(E.triggerName)){let Le=H.previousTriggersValues.get(E.triggerName),ae=this.statesByElement.get(E.element);if(ae&&ae.has(E.triggerName)){let Gt=ae.get(E.triggerName);Gt.value=Le,ae.set(E.triggerName,Gt)}}O.destroy();return}}let pe=!u||!this.driver.containsElement(u,z),se=Y.get(z),Ie=f.get(z),N=this._buildInstruction(E,i,Ie,se,pe);if(N.errors&&N.errors.length){me.push(N);return}if(pe){O.onStart(()=>Me(z,N.fromStyles)),O.onDestroy(()=>he(z,N.toStyles)),n.push(O);return}if(E.isFallbackTransition){O.onStart(()=>Me(z,N.fromStyles)),O.onDestroy(()=>he(z,N.toStyles)),n.push(O);return}let Yn=[];N.timelines.forEach(H=>{H.stretchStartingKeyframe=!0,this.disabledNodes.has(H.element)||Yn.push(H)}),N.timelines=Yn,i.append(z,N.timelines);let ul={instruction:N,player:O,element:z};s.push(ul),N.queriedElements.forEach(H=>ne(a,H,[]).push(O)),N.preStyleProps.forEach((H,Le)=>{if(H.size){let ae=c.get(Le);ae||c.set(Le,ae=new Set),H.forEach((Gt,_r)=>ae.add(_r))}}),N.postStyleProps.forEach((H,Le)=>{let ae=d.get(Le);ae||d.set(Le,ae=new Set),H.forEach((Gt,_r)=>ae.add(_r))})});if(me.length){let _=[];me.forEach(b=>{_.push(ca(b.triggerName,b.errors))}),nt.forEach(b=>b.destroy()),this.reportError(_)}let K=new Map,ee=new Map;s.forEach(_=>{let b=_.element;i.has(b)&&(ee.set(b,b),this._beforeAnimationBuild(_.player.namespaceId,_.instruction,K))}),n.forEach(_=>{let b=_.element;this._getPreviousPlayers(b,!1,_.namespaceId,_.triggerName,null).forEach(O=>{ne(K,b,[]).push(O),O.destroy()})});let Ne=P.filter(_=>Ta(_,c,d)),ot=new Map;Ea(ot,this.driver,F,d,ce).forEach(_=>{Ta(_,c,d)&&Ne.push(_)});let we=new Map;v.forEach((_,b)=>{Ea(we,this.driver,new Set(_),c,ht)}),Ne.forEach(_=>{let b=ot.get(_),E=we.get(_);ot.set(_,new Map([...b?.entries()??[],...E?.entries()??[]]))});let yr=[],$n=[],Qn={};s.forEach(_=>{let{element:b,player:E,instruction:O}=_;if(i.has(b)){if(h.has(b)){E.onDestroy(()=>he(b,O.toStyles)),E.disabled=!0,E.overrideTotalTime(O.totalTime),n.push(E);return}let z=Qn;if(ee.size>1){let se=b,Ie=[];for(;se=se.parentNode;){let N=ee.get(se);if(N){z=N;break}Ie.push(se)}Ie.forEach(N=>ee.set(N,z))}let pe=this._buildAnimation(E.namespaceId,O,K,o,we,ot);if(E.setRealPlayer(pe),z===Qn)yr.push(E);else{let se=this.playersByElement.get(z);se&&se.length&&(E.parentPlayer=Te(se)),n.push(E)}}else Me(b,O.fromStyles),E.onDestroy(()=>he(b,O.toStyles)),$n.push(E),h.has(b)&&n.push(E)}),$n.forEach(_=>{let b=o.get(_.element);if(b&&b.length){let E=Te(b);_.setRealPlayer(E)}}),n.forEach(_=>{_.parentPlayer?_.syncPlayerEvents(_.parentPlayer):_.destroy()});for(let _=0;_<P.length;_++){let b=P[_],E=b[ue];if(pt(b,_i),E&&E.hasAnimation)continue;let O=[];if(a.size){let pe=a.get(b);pe&&pe.length&&O.push(...pe);let se=this.driver.query(b,Ci,!0);for(let Ie=0;Ie<se.length;Ie++){let N=a.get(se[Ie]);N&&N.length&&O.push(...N)}}let z=O.filter(pe=>!pe.destroyed);z.length?nc(this,b,z):this.processLeaveNode(b)}return P.length=0,yr.forEach(_=>{this.players.push(_),_.onDone(()=>{_.destroy();let b=this.players.indexOf(_);this.players.splice(b,1)}),_.play()}),yr}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,n,o){let s=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!o||o==Mt;a.forEach(d=>{d.queued||!c&&d.triggerName!=n||s.push(d)})}}return(i||n)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){let n=t.triggerName,o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let c of t.timelines){let d=c.element,h=d!==o,u=ne(i,d,[]);this._getPreviousPlayers(d,h,s,a,t.toState).forEach(v=>{let f=v.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),v.destroy(),u.push(v)})}Me(o,t.fromStyles)}_buildAnimation(e,t,i,n,o,s){let a=t.triggerName,c=t.element,d=[],h=new Set,u=new Set,m=t.timelines.map(f=>{let y=f.element;h.add(y);let P=y[ue];if(P&&P.removedBeforeQueried)return new ve(f.duration,f.delay);let w=y!==c,F=oc((i.get(y)||Zl).map(K=>K.getRealPlayer())).filter(K=>{let ee=K;return ee.element?ee.element===y:!1}),Y=o.get(y),V=s.get(y),nt=zr(this._normalizer,f.keyframes,Y,V),me=this._buildPlayer(f,nt,F);if(f.subTimeline&&n&&u.add(y),w){let K=new Lt(e,a,y);K.setRealPlayer(me),d.push(K)}return me});d.forEach(f=>{ne(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>tc(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>de(f,jr));let v=Te(m);return v.onDestroy(()=>{h.forEach(f=>pt(f,jr)),he(c,t.toStyles)}),u.forEach(f=>{ne(n,f,[]).push(v)}),v}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new ve(e.duration,e.delay)}},Lt=class{namespaceId;triggerName;element;_player=new ve;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>fi(e,i,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){ne(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function tc(r,e,t){let i=r.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1)}i.length==0&&r.delete(e)}return i}function ic(r){return r??null}function Oi(r){return r&&r.nodeType===1}function rc(r){return r=="start"||r=="done"}function ba(r,e){let t=r.style.display;return r.style.display=e??"none",t}function Ea(r,e,t,i,n){let o=[];t.forEach(c=>o.push(ba(c)));let s=[];i.forEach((c,d)=>{let h=new Map;c.forEach(u=>{let m=e.computeStyle(d,u,n);h.set(u,m),(!m||m.length==0)&&(d[ue]=ec,s.push(d))}),r.set(d,h)});let a=0;return t.forEach(c=>ba(c,o[a++])),s}function Sa(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),o=new Map;function s(a){if(!a)return i;let c=o.get(a);if(c)return c;let d=a.parentNode;return t.has(d)?c=d:n.has(d)?c=i:c=s(d),o.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==i&&t.get(c).push(a)}),t}function de(r,e){r.classList?.add(e)}function pt(r,e){r.classList?.remove(e)}function nc(r,e,t){Te(t).onDone(()=>r.processLeaveNode(e))}function oc(r){let e=[];return Da(r,e),e}function Da(r,e){for(let t=0;t<r.length;t++){let i=r[t];i instanceof Xe?Da(i.players,e):e.push(i)}}function sc(r,e){let t=Object.keys(r),i=Object.keys(e);if(t.length!=i.length)return!1;for(let n=0;n<t.length;n++){let o=t[n];if(!e.hasOwnProperty(o)||r[o]!==e[o])return!1}return!0}function Ta(r,e,t){let i=t.get(r);if(!i)return!1;let n=e.get(r);return n?i.forEach(o=>n.add(o)):e.set(r,i),t.delete(r),!0}var gt=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new an(e.body,t,i),this._timelineEngine=new on(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,t,i,n,o){let s=e+"-"+n,a=this._triggerCache[s];if(!a){let c=[],d=[],h=Ia(this._driver,o,c,d);if(c.length)throw Zs(n,c);a=Hl(n,h,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,n){if(i.charAt(0)=="@"){let[o,s]=Ur(i),a=n;this._timelineEngine.command(o,t,s,a)}else this._transitionEngine.trigger(e,t,i,n)}listen(e,t,i,n,o){if(i.charAt(0)=="@"){let[s,a]=Ur(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,i,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ac(r,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Kr(e[0]),e.length>1&&(i=Kr(e[e.length-1]))):e instanceof Map&&(t=Kr(e)),t||i?new lc(r,t,i):null}var lc=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,n){this._element=t,this._startStyles=i,this._endStyles=n;let o=r.initialStylesByElement.get(t);o||r.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&he(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(he(this._element,this._initialStyles),this._endStyles&&(he(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Me(this._element,this._endStyles),this._endStyles=null),he(this._element,this._initialStyles),this._state=3)}}return r})();function Kr(r){let e=null;return r.forEach((t,i)=>{cc(i)&&(e=e||new Map,e.set(i,t))}),e}function cc(r){return r==="display"||r==="position"}var Pi=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();return t.addEventListener("finish",i),this.onDestroy(()=>{t.removeEventListener("finish",i)}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){let n=this._convertKeyframesToObject(t);try{return e.animate(n,i)}catch{return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:Ei(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Mi=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return qr(e,t)}getParentElement(e){return yi(e)}query(e,t,i){return Br(e,t,i)}computeStyle(e,t,i){return Ei(e,t)}animate(e,t,i,n,o,s=[]){let a=n==0?"both":"forwards",c={duration:i,delay:n,fill:a};o&&(c.easing=o);let d=new Map,h=s.filter(v=>v instanceof Pi);ma(i,n)&&h.forEach(v=>{v.currentSnapshot.forEach((f,y)=>d.set(y,f))});let u=ha(t).map(v=>new Map(v));u=pa(e,u,d);let m=ac(e,u);return new Pi(e,u,c,m)}};var Ii="@",xa="@.disabled",Ni=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,n=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,i,n){if(n){this.delegate.removeChild(e,t,i,n);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,n){this.delegate.setAttribute(e,t,i,n)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Ii&&t==xa?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i,n){return this.delegate.listen(e,t,i,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},ln=class extends Ni{factory;constructor(e,t,i,n,o){super(t,i,n,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Ii?t.charAt(1)=="."&&t==xa?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i,n){if(t.charAt(0)==Ii){let o=dc(e),s=t.slice(1),a="";return s.charAt(0)!=Ii&&([s,a]=hc(s)),this.engine.listen(this.namespaceId,o,s,a,c=>{let d=c._data||-1;this.factory.scheduleListenerCallback(d,i,c)})}return this.delegate.listen(e,t,i,n)}};function dc(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function hc(r){let e=r.indexOf("."),t=r.substring(0,e),i=r.slice(e+1);return[t,i]}var wi=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(n,o)=>{o?.removeChild(null,n)}}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let d=this._rendererCache,h=d.get(n);if(!h){let u=()=>d.delete(n);h=new Ni("",n,this.engine,u),d.set(n,h)}return h}let o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=d=>{Array.isArray(d)?d.forEach(a):this.engine.registerTrigger(o,s,e,d.name,d)};return t.data.animation.forEach(a),new ln(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var mc=(()=>{class r extends gt{constructor(t,i,n){super(t,i,n)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||r)(U(Cr),U(et),U(tt))};static \u0275prov=le({token:r,factory:r.\u0275fac})}return r})();function pc(){return new Ai}function gc(r,e,t){return new wi(r,e,t)}var Ma=[{provide:tt,useFactory:pc},{provide:gt,useClass:mc},{provide:mo,useFactory:gc,deps:[fo,gt,Er]}],fc=[{provide:et,useClass:cn},{provide:br,useValue:"NoopAnimations"},...Ma],Pa=[{provide:et,useFactory:()=>new Mi},{provide:br,useFactory:()=>"BrowserAnimations"},...Ma],Na=(()=>{class r{static withConfig(t){return{ngModule:r,providers:t.disableAnimations?fc:Pa}}static \u0275fac=function(i){return new(i||r)};static \u0275mod=Re({type:r});static \u0275inj=Ae({providers:Pa,imports:[ti]})}return r})();var vc="data-velt-style",yc="data-velt-functional-style",Li=!1,hn=!0,zi=new Set,it=new WeakMap,wa=new Map,_c=new Set(["position","top","right","bottom","left","z-index","display","visibility","opacity","width","height","min-width","min-height","max-width","max-height","box-sizing","aspect-ratio","float","clear","isolation","gap","row-gap","column-gap","order","transform","translate","rotate","scale","pointer-events","touch-action","object-fit","object-position","overflow","flex","grid","contain","inset","direction"]),Cc=["flex-","grid-","overflow-","inset-","align-","justify-","place-","transform-","contain-"];function bc(r){return r.startsWith("--")||_c.has(r)?!0:Cc.some(e=>r.startsWith(e))}function Fi(r){let e=r.trim();return e==="0"||e==="0px"}function Ec(r){return!Fi(r.getPropertyValue("width"))||!Fi(r.getPropertyValue("height"))?!1:["top","right","bottom","left"].some(e=>{let t=r.getPropertyValue(`border-${e}-width`).trim();return t!==""&&!Fi(t)})}var Sc=["background","background-color","background-image","backdrop-filter"],Tc=new Set(["100vw","100%"]),Oc=new Set(["100vh","100%"]);function Ic(r){let e=r.getPropertyValue("width").trim(),t=r.getPropertyValue("height").trim();if(e==="100vw"&&t==="100vh")return!0;let i=r.getPropertyValue("position").trim();return i!=="fixed"&&i!=="absolute"?!1:Tc.has(e)&&Oc.has(t)?!0:["top","right","bottom","left"].every(n=>{let o=r.getPropertyValue(n);return o!==""&&Fi(o)})}function La(r){try{if(!r)return;r.setAttribute(vc,"true"),zi.add(r),Li&&Ua(r)}catch(e){Qe.catch("Error in registerVeltStyleElement: ",e)}}function Fa(r,e){try{Li=!!r,hn=e?.keepFunctionalStyles??!0;for(let t of zi)try{if(!t.isConnected){qa(t);continue}Li?Ua(t):Ac(t)}catch(i){Qe.catch("Error toggling a style element in setUnstyledModeState: ",i)}Dc(Li)}catch(t){Qe.catch("Error in setUnstyledModeState: ",t)}}function za(){try{for(let r of zi)r.isConnected||qa(r)}catch(r){Qe.catch("Error in pruneDetachedVeltStyleElements: ",r)}}function Ua(r){let e=it.get(r);if(!hn&&e&&(e.remove(),it.delete(r)),hn&&!e&&r instanceof HTMLStyleElement){let t=Rc(r);if(t){let i=document.createElement("style");i.setAttribute(yc,"true"),i.textContent=t,r.after(i),it.set(r,i)}}r.disabled=!0}function Ac(r){r.disabled=!1;let e=it.get(r);e&&(e.remove(),it.delete(r))}function qa(r){it.get(r)?.remove(),it.delete(r),zi.delete(r)}function Rc(r){let e=r.textContent??"",t=wa.get(e);if(t!==void 0)return t;let i="";try{r.sheet&&(i=un(r.sheet.cssRules))}catch{i=""}return wa.set(e,i),i}function un(r){let e="";for(let t of Array.from(r))if(t instanceof CSSStyleRule){let i=kc(t.style);i&&(e+=`${t.selectorText}{${i}}`)}else if(t instanceof CSSMediaRule){let i=un(t.cssRules);i&&(e+=`@media ${t.conditionText}{${i}}`)}else if(t instanceof CSSSupportsRule){let i=un(t.cssRules);i&&(e+=`@supports ${t.conditionText}{${i}}`)}return e}function kc(r){let e=Ec(r),t=Ic(r),i="";for(let n=0;n<r.length;n++){let o=r.item(n);if(!(bc(o)||e&&o.startsWith("border-")||t&&Sc.some(c=>o===c||o.startsWith(c+"-"))))continue;let a=r.getPropertyPriority(o);i+=`${o}:${r.getPropertyValue(o)}${a?" !important":""};`}return i}function Dc(r){document.querySelectorAll('link[rel="stylesheet"][href*="velt.css"]').forEach(e=>{e.disabled=r})}var Ba=(()=>{let e=class e extends ei{addStyles(i,n){super.addStyles(i,n),this.registerTrackedElements()}addHost(i){super.addHost(i),this.registerTrackedElements()}removeStyles(i,n){super.removeStyles(i,n),za()}registerTrackedElements(){try{let i=[this.inline,this.external];for(let n of i)n instanceof Map&&n.forEach(o=>{o?.elements?.forEach(s=>La(s))})}catch(i){Qe.catch("Error in VeltSharedStylesHost.registerTrackedElements: ",i)}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=ao(e)))(o||e)}})(),e.\u0275prov=le({token:e,factory:e.\u0275fac});let r=e;return r})();var Ui=class{constructor(e,t){this.queue=[],this.realElement=null,this.loadPromise=t.ensureActivityLogChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyActivityElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}getAllActivities(e){return this.proxyObservable(t=>t.getAllActivities(e))}createActivity(e){return this.loadPromise.then(t=>t.createActivity(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var qi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureAreaChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyAreaElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableArea(){this.enqueueOrCall(e=>e.enableArea())}disableArea(){this.enqueueOrCall(e=>e.disableArea())}enableAreaComment(){this.enqueueOrCall(e=>e.enableAreaComment())}disableAreaComment(){this.enqueueOrCall(e=>e.disableAreaComment())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}};var Bi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureArrowChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyArrowElement post-load wiring failed: ",n)}}).catch(()=>{})}allowedElementIds(e){if(this.realElement){this.realElement.allowedElementIds(e);return}this.queue.push(t=>t.allowedElementIds(e))}ha(e){if(this.realElement){this.realElement.ha(e);return}this.queue.push(t=>t.ha(e))}};var Vi=class extends Pe{constructor(e){super(e),this.getService(l).log("%c[WB] Creating CLASS: AutocompleteElement","color: blue;"),this.create=this._create,this.onAutocompleteChipClick=this._onAutocompleteChipClick}_create(e){this.getService(l).log("%c[WB] Calling FUNCTION: create","color: green;");try{return this.trackEvent(g.Events.Autocomplete.CREATE_TRIGGERED,{payload:{data:e}}),this.getService(Ye).create(e)}catch(t){this.getService(l).catch("Error in _create: ",t)}}_onAutocompleteChipClick(){this.getService(l).log("%c[WB] Calling FUNCTION: onAutocompleteChipClick","color: green;");try{return this.trackEvent(g.Events.Autocomplete.ON_AUTOCOMPLETE_CHIP_CLICK_TRIGGERED),this.getService(Ye).getOnAutocompleteChipClick$()}catch(e){return this.getService(l).catch("Error in _onAutocompleteChipClick: ",e),x(null)}}};var Gi=class{constructor(e,t){this.__lazyQueue=[],this.__lazyRealElement=null,this.__lazyLoadPromise=t.ensureCommentChunk(),this.__lazyLoadPromise.then(i=>{try{this.__lazyRealElement=i;let n=this.__lazyQueue;this.__lazyQueue=[],n.forEach(o=>{try{o(i)}catch(s){e.get(l).catch("LazyCommentElement queued call failed: ",s)}})}catch(n){e.get(l).catch("LazyCommentElement post-load wiring failed: ",n)}}).catch(()=>{})}getAllCommentAnnotations(...e){return this.__lazyProxyObservable(t=>t.getAllCommentAnnotations(...e))}getCommentAnnotationById(...e){return this.__lazyProxyObservable(t=>t.getCommentAnnotationById(...e))}getCommentAnnotations(...e){return this.__lazyProxyObservable(t=>t.getCommentAnnotations(...e))}getCommentAnnotationsCount(...e){return this.__lazyProxyObservable(t=>t.getCommentAnnotationsCount(...e))}getSelectedComments(...e){return this.__lazyProxyObservable(t=>t.getSelectedComments(...e))}getUnreadCommentAnnotationCountByLocationId(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentAnnotationCountByLocationId(...e))}getUnreadCommentAnnotationCountOnCurrentDocument(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentAnnotationCountOnCurrentDocument(...e))}getUnreadCommentCountByAnnotationId(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentCountByAnnotationId(...e))}getUnreadCommentCountByLocationId(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentCountByLocationId(...e))}getUnreadCommentCountOnCurrentDocument(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentCountOnCurrentDocument(...e))}isUserGlobalContact(...e){return this.__lazyProxyObservable(t=>t.isUserGlobalContact(...e))}on(...e){return this.__lazyProxyObservable(t=>t.on(...e))}onCommentAdd(...e){return this.__lazyProxyObservable(t=>t.onCommentAdd(...e))}onCommentModeChange(...e){return this.__lazyProxyObservable(t=>t.onCommentModeChange(...e))}onCommentSelectionChange(...e){return this.__lazyProxyObservable(t=>t.onCommentSelectionChange(...e))}onCommentSidebarActionButtonClick(...e){return this.__lazyProxyObservable(t=>t.onCommentSidebarActionButtonClick(...e))}onCommentSidebarData(...e){return this.__lazyProxyObservable(t=>t.onCommentSidebarData(...e))}onCommentSidebarInit(...e){return this.__lazyProxyObservable(t=>t.onCommentSidebarInit(...e))}onCommentUpdate(...e){return this.__lazyProxyObservable(t=>t.onCommentUpdate(...e))}onCopyLink(...e){return this.__lazyProxyObservable(t=>t.onCopyLink(...e))}onSidebarButtonOnCommentDialogClick(...e){return this.__lazyProxyObservable(t=>t.onSidebarButtonOnCommentDialogClick(...e))}acceptCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.acceptCommentAnnotation(...e))}addAttachment(...e){return this.__lazyAwaitAndCall(t=>t.addAttachment(...e))}addComment(...e){return this.__lazyAwaitAndCall(t=>t.addComment(...e))}addCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.addCommentAnnotation(...e))}addManualComment(...e){return this.__lazyAwaitAndCall(t=>t.addManualComment(...e))}addReaction(...e){return this.__lazyAwaitAndCall(t=>t.addReaction(...e))}approveCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.approveCommentAnnotation(...e))}assignUser(...e){return this.__lazyAwaitAndCall(t=>t.assignUser(...e))}copyLink(...e){return this.__lazyAwaitAndCall(t=>t.copyLink(...e))}deleteAttachment(...e){return this.__lazyAwaitAndCall(t=>t.deleteAttachment(...e))}deleteComment(...e){return this.__lazyAwaitAndCall(t=>t.deleteComment(...e))}deleteCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.deleteCommentAnnotation(...e))}deleteReaction(...e){return this.__lazyAwaitAndCall(t=>t.deleteReaction(...e))}deleteRecording(...e){return this.__lazyAwaitAndCall(t=>t.deleteRecording(...e))}deleteSelectedComment(...e){return this.__lazyAwaitAndCall(t=>t.deleteSelectedComment(...e))}fetchCommentAnnotations(...e){return this.__lazyAwaitAndCall(t=>t.fetchCommentAnnotations(...e))}getAttachment(...e){return this.__lazyAwaitAndCall(t=>t.getAttachment(...e))}getComment(...e){return this.__lazyAwaitAndCall(t=>t.getComment(...e))}getLink(...e){return this.__lazyAwaitAndCall(t=>t.getLink(...e))}getRecording(...e){return this.__lazyAwaitAndCall(t=>t.getRecording(...e))}markAsRead(...e){return this.__lazyAwaitAndCall(t=>t.markAsRead(...e))}markAsUnread(...e){return this.__lazyAwaitAndCall(t=>t.markAsUnread(...e))}rejectCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.rejectCommentAnnotation(...e))}resolveCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.resolveCommentAnnotation(...e))}subscribeCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.subscribeCommentAnnotation(...e))}toggleReaction(...e){return this.__lazyAwaitAndCall(t=>t.toggleReaction(...e))}unsubscribeCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.unsubscribeCommentAnnotation(...e))}updateAccess(...e){return this.__lazyAwaitAndCall(t=>t.updateAccess(...e))}updateComment(...e){return this.__lazyAwaitAndCall(t=>t.updateComment(...e))}updateContext(...e){return this.__lazyAwaitAndCall(t=>t.updateContext(...e))}updatePriority(...e){return this.__lazyAwaitAndCall(t=>t.updatePriority(...e))}updateStatus(...e){return this.__lazyAwaitAndCall(t=>t.updateStatus(...e))}updateVisibility(...e){return this.__lazyAwaitAndCall(t=>t.updateVisibility(...e))}addCommentOnElement(...e){this.__lazyEnqueueOrCall(t=>{t.addCommentOnElement(...e)})}addCommentOnSelectedText(...e){this.__lazyEnqueueOrCall(t=>{t.addCommentOnSelectedText(...e)})}allowedElementClassNames(...e){this.__lazyEnqueueOrCall(t=>{t.allowedElementClassNames(...e)})}allowedElementIds(...e){this.__lazyEnqueueOrCall(t=>{t.allowedElementIds(...e)})}allowedElementQuerySelectors(...e){this.__lazyEnqueueOrCall(t=>{t.allowedElementQuerySelectors(...e)})}attachComment(...e){this.__lazyEnqueueOrCall(t=>{t.attachComment(...e)})}clearComposer(...e){this.__lazyEnqueueOrCall(t=>{t.clearComposer(...e)})}clearPageModeComposerContext(...e){this.__lazyEnqueueOrCall(t=>{t.clearPageModeComposerContext(...e)})}closeCommentSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.closeCommentSidebar(...e)})}createCustomListDataOnAnnotation(...e){this.__lazyEnqueueOrCall(t=>{t.createCustomListDataOnAnnotation(...e)})}createCustomListDataOnComment(...e){this.__lazyEnqueueOrCall(t=>{t.createCustomListDataOnComment(...e)})}disableAnonymousEmail(...e){this.__lazyEnqueueOrCall(t=>{t.disableAnonymousEmail(...e)})}disableAreaComment(...e){this.__lazyEnqueueOrCall(t=>{t.disableAreaComment(...e)})}disableAttachmentDownload(...e){this.__lazyEnqueueOrCall(t=>{t.disableAttachmentDownload(...e)})}disableAttachments(...e){this.__lazyEnqueueOrCall(t=>{t.disableAttachments(...e)})}disableAutoCategorize(...e){this.__lazyEnqueueOrCall(t=>{t.disableAutoCategorize(...e)})}disableBubbleOnPin(...e){this.__lazyEnqueueOrCall(t=>{t.disableBubbleOnPin(...e)})}disableBubbleOnPinHover(...e){this.__lazyEnqueueOrCall(t=>{t.disableBubbleOnPinHover(...e)})}disableChangeDetectionInCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableChangeDetectionInCommentMode(...e)})}disableCollapsedComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableCollapsedComments(...e)})}disableCollapsedRepliesPreview(...e){this.__lazyEnqueueOrCall(t=>{t.disableCollapsedRepliesPreview(...e)})}disableCommentIndex(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentIndex(...e)})}disableCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentMode(...e)})}disableCommentPinHighlighter(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentPinHighlighter(...e)})}disableCommentToNearestAllowedElement(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentToNearestAllowedElement(...e)})}disableCommentTool(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentTool(...e)})}disableContextInPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.disableContextInPageModeComposer(...e)})}disableCustomAutocompleteSearch(...e){this.__lazyEnqueueOrCall(t=>{t.disableCustomAutocompleteSearch(...e)})}disableDarkMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableDarkMode(...e)})}disableDeleteOnBackspace(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeleteOnBackspace(...e)})}disableDeleteReplyConfirmation(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeleteReplyConfirmation(...e)})}disableDeviceIndicatorOnCommentPins(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeviceIndicatorOnCommentPins(...e)})}disableDeviceInfo(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeviceInfo(...e)})}disableDialogOnHover(...e){this.__lazyEnqueueOrCall(t=>{t.disableDialogOnHover(...e)})}disableDialogOnTargetElementClick(...e){this.__lazyEnqueueOrCall(t=>{t.disableDialogOnTargetElementClick(...e)})}disableDialogShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.disableDialogShadowDOM(...e)})}disableDraftMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableDraftMode(...e)})}disableEnterKeyToSubmit(...e){this.__lazyEnqueueOrCall(t=>{t.disableEnterKeyToSubmit(...e)})}disableFilterCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.disableFilterCommentsOnDom(...e)})}disableFilterGhostCommentsInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.disableFilterGhostCommentsInSidebar(...e)})}disableFloatingCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.disableFloatingCommentDialog(...e)})}disableForceCloseAllOnEsc(...e){this.__lazyEnqueueOrCall(t=>{t.disableForceCloseAllOnEsc(...e)})}disableFormatOptions(...e){this.__lazyEnqueueOrCall(t=>{t.disableFormatOptions(...e)})}disableFullExpanded(...e){this.__lazyEnqueueOrCall(t=>{t.disableFullExpanded(...e)})}disableFullScreenInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.disableFullScreenInSidebar(...e)})}disableGhostComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableGhostComments(...e)})}disableGhostCommentsIndicator(...e){this.__lazyEnqueueOrCall(t=>{t.disableGhostCommentsIndicator(...e)})}disableGroupMatchedComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableGroupMatchedComments(...e)})}disableGroupMultipleMatch(...e){this.__lazyEnqueueOrCall(t=>{t.disableGroupMultipleMatch(...e)})}disableHotkey(...e){this.__lazyEnqueueOrCall(t=>{t.disableHotkey(...e)})}disableInboxMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableInboxMode(...e)})}disableInlineCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableInlineCommentMode(...e)})}disableLinkCallback(...e){this.__lazyEnqueueOrCall(t=>{t.disableLinkCallback(...e)})}disableMinimap(...e){this.__lazyEnqueueOrCall(t=>{t.disableMinimap(...e)})}disableMobileMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableMobileMode(...e)})}disableModeratorMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableModeratorMode(...e)})}disableMultiThread(...e){this.__lazyEnqueueOrCall(t=>{t.disableMultiThread(...e)})}disableMultiThreadMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableMultiThreadMode(...e)})}disablePaginatedContactList(...e){this.__lazyEnqueueOrCall(t=>{t.disablePaginatedContactList(...e)})}disablePersistentCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePersistentCommentMode(...e)})}disablePinDrag(...e){this.__lazyEnqueueOrCall(t=>{t.disablePinDrag(...e)})}disablePinShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.disablePinShadowDOM(...e)})}disablePopoverMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePopoverMode(...e)})}disablePopoverTriangleComponent(...e){this.__lazyEnqueueOrCall(t=>{t.disablePopoverTriangleComponent(...e)})}disablePriority(...e){this.__lazyEnqueueOrCall(t=>{t.disablePriority(...e)})}disablePrivateCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePrivateCommentMode(...e)})}disablePrivateMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePrivateMode(...e)})}disableQueryParamsComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableQueryParamsComments(...e)})}disableReactions(...e){this.__lazyEnqueueOrCall(t=>{t.disableReactions(...e)})}disableReadOnly(...e){this.__lazyEnqueueOrCall(t=>{t.disableReadOnly(...e)})}disableRecordingCountdown(...e){this.__lazyEnqueueOrCall(t=>{t.disableRecordingCountdown(...e)})}disableRecordingSummary(...e){this.__lazyEnqueueOrCall(t=>{t.disableRecordingSummary(...e)})}disableRecordingTranscription(...e){this.__lazyEnqueueOrCall(t=>{t.disableRecordingTranscription(...e)})}disableReplyAvatars(...e){this.__lazyEnqueueOrCall(t=>{t.disableReplyAvatars(...e)})}disableResolveButton(...e){this.__lazyEnqueueOrCall(t=>{t.disableResolveButton(...e)})}disableResolveStatusAccessAdminOnly(...e){this.__lazyEnqueueOrCall(t=>{t.disableResolveStatusAccessAdminOnly(...e)})}disableRestrictTextSearchToAnchor(...e){this.__lazyEnqueueOrCall(t=>{t.disableRestrictTextSearchToAnchor(...e)})}disableScreenshot(...e){this.__lazyEnqueueOrCall(t=>{t.disableScreenshot(...e)})}disableScrollToComment(...e){this.__lazyEnqueueOrCall(t=>{t.disableScrollToComment(...e)})}disableSeenByUsers(...e){this.__lazyEnqueueOrCall(t=>{t.disableSeenByUsers(...e)})}disableShortUserName(...e){this.__lazyEnqueueOrCall(t=>{t.disableShortUserName(...e)})}disableSidebarButtonOnCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarButtonOnCommentDialog(...e)})}disableSidebarCustomActions(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarCustomActions(...e)})}disableSidebarShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarShadowDOM(...e)})}disableSidebarUrlNavigation(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarUrlNavigation(...e)})}disableSignInButton(...e){this.__lazyEnqueueOrCall(t=>{t.disableSignInButton(...e)})}disableStatus(...e){this.__lazyEnqueueOrCall(t=>{t.disableStatus(...e)})}disableStreamMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableStreamMode(...e)})}disableSuggestionMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableSuggestionMode(...e)})}disableSvgAsImg(...e){this.__lazyEnqueueOrCall(t=>{t.disableSvgAsImg(...e)})}disableTextComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableTextComments(...e)})}disableUpgradeButton(...e){this.__lazyEnqueueOrCall(t=>{t.disableUpgradeButton(...e)})}disableUserMentions(...e){this.__lazyEnqueueOrCall(t=>{t.disableUserMentions(...e)})}disableVisibilityOptions(...e){this.__lazyEnqueueOrCall(t=>{t.disableVisibilityOptions(...e)})}enableAnonymousEmail(...e){this.__lazyEnqueueOrCall(t=>{t.enableAnonymousEmail(...e)})}enableAreaComment(...e){this.__lazyEnqueueOrCall(t=>{t.enableAreaComment(...e)})}enableAttachmentDownload(...e){this.__lazyEnqueueOrCall(t=>{t.enableAttachmentDownload(...e)})}enableAttachments(...e){this.__lazyEnqueueOrCall(t=>{t.enableAttachments(...e)})}enableAutoCategorize(...e){this.__lazyEnqueueOrCall(t=>{t.enableAutoCategorize(...e)})}enableBubbleOnPin(...e){this.__lazyEnqueueOrCall(t=>{t.enableBubbleOnPin(...e)})}enableBubbleOnPinHover(...e){this.__lazyEnqueueOrCall(t=>{t.enableBubbleOnPinHover(...e)})}enableChangeDetectionInCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableChangeDetectionInCommentMode(...e)})}enableCollapsedComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableCollapsedComments(...e)})}enableCollapsedRepliesPreview(...e){this.__lazyEnqueueOrCall(t=>{t.enableCollapsedRepliesPreview(...e)})}enableCommentIndex(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentIndex(...e)})}enableCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentMode(...e)})}enableCommentPinHighlighter(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentPinHighlighter(...e)})}enableCommentToNearestAllowedElement(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentToNearestAllowedElement(...e)})}enableCommentTool(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentTool(...e)})}enableContextInPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.enableContextInPageModeComposer(...e)})}enableCustomAutocompleteSearch(...e){this.__lazyEnqueueOrCall(t=>{t.enableCustomAutocompleteSearch(...e)})}enableDarkMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableDarkMode(...e)})}enableDeleteOnBackspace(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeleteOnBackspace(...e)})}enableDeleteReplyConfirmation(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeleteReplyConfirmation(...e)})}enableDeviceIndicatorOnCommentPins(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeviceIndicatorOnCommentPins(...e)})}enableDeviceInfo(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeviceInfo(...e)})}enableDialogOnHover(...e){this.__lazyEnqueueOrCall(t=>{t.enableDialogOnHover(...e)})}enableDialogOnTargetElementClick(...e){this.__lazyEnqueueOrCall(t=>{t.enableDialogOnTargetElementClick(...e)})}enableDialogShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.enableDialogShadowDOM(...e)})}enableDraftMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableDraftMode(...e)})}enableEnterKeyToSubmit(...e){this.__lazyEnqueueOrCall(t=>{t.enableEnterKeyToSubmit(...e)})}enableFilterCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.enableFilterCommentsOnDom(...e)})}enableFilterGhostCommentsInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.enableFilterGhostCommentsInSidebar(...e)})}enableFloatingCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.enableFloatingCommentDialog(...e)})}enableForceCloseAllOnEsc(...e){this.__lazyEnqueueOrCall(t=>{t.enableForceCloseAllOnEsc(...e)})}enableFormatOptions(...e){this.__lazyEnqueueOrCall(t=>{t.enableFormatOptions(...e)})}enableFullExpanded(...e){this.__lazyEnqueueOrCall(t=>{t.enableFullExpanded(...e)})}enableFullScreenInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.enableFullScreenInSidebar(...e)})}enableGhostComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableGhostComments(...e)})}enableGhostCommentsIndicator(...e){this.__lazyEnqueueOrCall(t=>{t.enableGhostCommentsIndicator(...e)})}enableGroupMatchedComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableGroupMatchedComments(...e)})}enableGroupMultipleMatch(...e){this.__lazyEnqueueOrCall(t=>{t.enableGroupMultipleMatch(...e)})}enableHotkey(...e){this.__lazyEnqueueOrCall(t=>{t.enableHotkey(...e)})}enableInboxMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableInboxMode(...e)})}enableInlineCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableInlineCommentMode(...e)})}enableLinkCallback(...e){this.__lazyEnqueueOrCall(t=>{t.enableLinkCallback(...e)})}enableMinimap(...e){this.__lazyEnqueueOrCall(t=>{t.enableMinimap(...e)})}enableMobileMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableMobileMode(...e)})}enableModeratorMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableModeratorMode(...e)})}enableMultiThread(...e){this.__lazyEnqueueOrCall(t=>{t.enableMultiThread(...e)})}enableMultiThreadMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableMultiThreadMode(...e)})}enablePaginatedContactList(...e){this.__lazyEnqueueOrCall(t=>{t.enablePaginatedContactList(...e)})}enablePersistentCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePersistentCommentMode(...e)})}enablePinDrag(...e){this.__lazyEnqueueOrCall(t=>{t.enablePinDrag(...e)})}enablePinShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.enablePinShadowDOM(...e)})}enablePopoverMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePopoverMode(...e)})}enablePopoverTriangleComponent(...e){this.__lazyEnqueueOrCall(t=>{t.enablePopoverTriangleComponent(...e)})}enablePriority(...e){this.__lazyEnqueueOrCall(t=>{t.enablePriority(...e)})}enablePrivateCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePrivateCommentMode(...e)})}enablePrivateMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePrivateMode(...e)})}enableQueryParamsComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableQueryParamsComments(...e)})}enableReactions(...e){this.__lazyEnqueueOrCall(t=>{t.enableReactions(...e)})}enableReadOnly(...e){this.__lazyEnqueueOrCall(t=>{t.enableReadOnly(...e)})}enableRecordingCountdown(...e){this.__lazyEnqueueOrCall(t=>{t.enableRecordingCountdown(...e)})}enableRecordingSummary(...e){this.__lazyEnqueueOrCall(t=>{t.enableRecordingSummary(...e)})}enableRecordingTranscription(...e){this.__lazyEnqueueOrCall(t=>{t.enableRecordingTranscription(...e)})}enableReplyAvatars(...e){this.__lazyEnqueueOrCall(t=>{t.enableReplyAvatars(...e)})}enableResolveButton(...e){this.__lazyEnqueueOrCall(t=>{t.enableResolveButton(...e)})}enableResolveStatusAccessAdminOnly(...e){this.__lazyEnqueueOrCall(t=>{t.enableResolveStatusAccessAdminOnly(...e)})}enableRestrictTextSearchToAnchor(...e){this.__lazyEnqueueOrCall(t=>{t.enableRestrictTextSearchToAnchor(...e)})}enableScreenshot(...e){this.__lazyEnqueueOrCall(t=>{t.enableScreenshot(...e)})}enableScrollToComment(...e){this.__lazyEnqueueOrCall(t=>{t.enableScrollToComment(...e)})}enableSeenByUsers(...e){this.__lazyEnqueueOrCall(t=>{t.enableSeenByUsers(...e)})}enableShortUserName(...e){this.__lazyEnqueueOrCall(t=>{t.enableShortUserName(...e)})}enableSidebarButtonOnCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarButtonOnCommentDialog(...e)})}enableSidebarCustomActions(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarCustomActions(...e)})}enableSidebarShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarShadowDOM(...e)})}enableSidebarUrlNavigation(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarUrlNavigation(...e)})}enableSignInButton(...e){this.__lazyEnqueueOrCall(t=>{t.enableSignInButton(...e)})}enableStatus(...e){this.__lazyEnqueueOrCall(t=>{t.enableStatus(...e)})}enableStreamMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableStreamMode(...e)})}enableSuggestionMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableSuggestionMode(...e)})}enableSvgAsImg(...e){this.__lazyEnqueueOrCall(t=>{t.enableSvgAsImg(...e)})}enableTextComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableTextComments(...e)})}enableUpgradeButton(...e){this.__lazyEnqueueOrCall(t=>{t.enableUpgradeButton(...e)})}enableUserMentions(...e){this.__lazyEnqueueOrCall(t=>{t.enableUserMentions(...e)})}enableVisibilityOptions(...e){this.__lazyEnqueueOrCall(t=>{t.enableVisibilityOptions(...e)})}excludeLocationIdsFromSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.excludeLocationIdsFromSidebar(...e)})}focusPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.focusPageModeComposer(...e)})}getComposerData(...e){this.__lazyEnqueueOrCall(t=>{t.getComposerData(...e)})}getElementRefByAnnotationId(...e){this.__lazyEnqueueOrCall(t=>{t.getElementRefByAnnotationId(...e)})}hideCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.hideCommentsOnDom(...e)})}hideResolvedCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.hideResolvedCommentsOnDom(...e)})}openCommentSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.openCommentSidebar(...e)})}scrollToCommentByAnnotationId(...e){this.__lazyEnqueueOrCall(t=>{t.scrollToCommentByAnnotationId(...e)})}selectCommentByAnnotationId(...e){this.__lazyEnqueueOrCall(t=>{t.selectCommentByAnnotationId(...e)})}setAllowedFileTypes(...e){this.__lazyEnqueueOrCall(t=>{t.setAllowedFileTypes(...e)})}setAssignToType(...e){this.__lazyEnqueueOrCall(t=>{t.setAssignToType(...e)})}setCommentSidebarData(...e){this.__lazyEnqueueOrCall(t=>{t.setCommentSidebarData(...e)})}setCommentSidebarDefaultCustomActions(...e){this.__lazyEnqueueOrCall(t=>{t.setCommentSidebarDefaultCustomActions(...e)})}setCommentSidebarFilters(...e){this.__lazyEnqueueOrCall(t=>{t.setCommentSidebarFilters(...e)})}setComposerFileAttachments(...e){this.__lazyEnqueueOrCall(t=>{t.setComposerFileAttachments(...e)})}setContextInPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.setContextInPageModeComposer(...e)})}setContextProvider(...e){this.__lazyEnqueueOrCall(t=>{t.setContextProvider(...e)})}setCustomCategory(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomCategory(...e)})}setCustomPriority(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomPriority(...e)})}setCustomReactions(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomReactions(...e)})}setCustomStatus(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomStatus(...e)})}setDStrategy(...e){this.__lazyEnqueueOrCall(t=>{t.setDStrategy(...e)})}setFormatConfig(...e){this.__lazyEnqueueOrCall(t=>{t.setFormatConfig(...e)})}setMaxReplyAvatars(...e){this.__lazyEnqueueOrCall(t=>{t.setMaxReplyAvatars(...e)})}setPinCursorImage(...e){this.__lazyEnqueueOrCall(t=>{t.setPinCursorImage(...e)})}setRecordings(...e){this.__lazyEnqueueOrCall(t=>{t.setRecordings(...e)})}setSidebarButtonCountType(...e){this.__lazyEnqueueOrCall(t=>{t.setSidebarButtonCountType(...e)})}setSystemFiltersOperator(...e){this.__lazyEnqueueOrCall(t=>{t.setSystemFiltersOperator(...e)})}setTotalMediaLength(...e){this.__lazyEnqueueOrCall(t=>{t.setTotalMediaLength(...e)})}setTransformContext(...e){this.__lazyEnqueueOrCall(t=>{t.setTransformContext(...e)})}setUnreadIndicatorMode(...e){this.__lazyEnqueueOrCall(t=>{t.setUnreadIndicatorMode(...e)})}showCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.showCommentsOnDom(...e)})}showResolvedCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.showResolvedCommentsOnDom(...e)})}submitComment(...e){this.__lazyEnqueueOrCall(t=>{t.submitComment(...e)})}toggleCommentSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.toggleCommentSidebar(...e)})}updateCommentDialogPosition(...e){this.__lazyEnqueueOrCall(t=>{t.updateCommentDialogPosition(...e)})}__lazyEnqueueOrCall(e){if(this.__lazyRealElement){e(this.__lazyRealElement);return}this.__lazyQueue.push(e)}__lazyAwaitAndCall(e){return this.__lazyRealElement?Promise.resolve(e(this.__lazyRealElement)):this.__lazyLoadPromise.then(t=>e(t))}__lazyProxyObservable(e){if(this.__lazyRealElement)return e(this.__lazyRealElement);let t=new M(1);return this.__lazyQueue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var ji=class extends Pe{constructor(e){super(e),this.getService(l).log("%c[WB] Creating CLASS: ContactElement","color: blue;"),this.isUserGlobalContact=this._isUserGlobalContact,this.onContactSelected=this._onContactSelected,this.enableAtHere=this._enableAtHere,this.setAtHereLabel=this._setAtHereLabel,this.setAtHereDescription=this._setAtHereDescription,this.disableAtHere=this._disableAtHere,this.updateContactListScopeForOrganizationUsers=this._updateContactListScopeForOrganizationUsers,this.updateContactList=this._updateContactList,this.updateOrgList=this._updateOrgList,this.getContactList=this._getContactList}_isUserGlobalContact(){this.getService(l).log("%c[WB] Calling FUNCTION: isUserGlobalContact","color: green;");try{return this.trackEvent(g.Events.Contact.IS_USER_GLOBAL_CONTACT_TRIGGERED),this.getService(Z).isUserGlobalContact$()}catch(e){return this.getService(l).catch("Error in _isUserGlobalContact: ",e),x(!1)}}_onContactSelected(){this.getService(l).log("%c[WB] Calling FUNCTION: onContactSelected","color: green;");try{return this.trackEvent(g.Events.Contact.ON_CONTACT_SELECTED_TRIGGERED),this.getService(Z).onContactSelected$()}catch(e){return this.getService(l).catch("Error in _onContactSelected: ",e),x(null)}}_enableAtHere(){this.getService(l).log("%c[WB] Calling FUNCTION: enableAtHere","color: green;");try{this.trackEvent(g.Events.Contact.ENABLE_AT_HERE_TRIGGERED),this.getService(Z).enableAtHere()}catch(e){this.getService(l).catch("Error in _enableAtHere: ",e)}}_setAtHereLabel(e){this.getService(l).log("%c[WB] Calling FUNCTION: setAtHereLabel","color: green;");try{this.trackEvent(g.Events.Contact.SET_AT_HERE_LABEL_TRIGGERED,{payload:{label:e}}),this.getService(Z).setAtHereLabel(e)}catch(t){this.getService(l).catch("Error in setAtHereLabel: ",t)}}_setAtHereDescription(e){this.getService(l).log("%c[WB] Calling FUNCTION: setAtHereDescription","color: green;");try{this.trackEvent(g.Events.Contact.SET_AT_HERE_DESCRIPTION_TRIGGERED,{payload:{description:e}}),this.getService(Z).setAtHereDescription(e)}catch(t){this.getService(l).catch("Error in setAtHereDescription: ",t)}}_disableAtHere(){this.getService(l).log("%c[WB] Calling FUNCTION: disableAtHere","color: green;");try{this.trackEvent(g.Events.Contact.DISABLE_AT_HERE_TRIGGERED),this.getService(Z).disableAtHere()}catch(e){this.getService(l).catch("Error in _disableAtHere: ",e)}}_updateContactListScopeForOrganizationUsers(e){this.getService(l).log("%c[WB] Calling FUNCTION: updateContactListScopeForOrganizationUsers","color: green;");try{this.trackEvent(g.Events.Contact.UPDATE_CONTACT_LIST_SCOPE_FOR_ORGANIZATION_USERS_TRIGGERED,{payload:{scope:e}}),this.getService(Z).updateContactListScopeForOrganizationUsers(e)}catch(t){this.getService(l).catch("Error in _updateContactListScopeForOrganizationUsers: ",t)}}_updateContactList(e,t){this.getService(l).log("%c[WB] Calling FUNCTION: _updateContactList","color: green;");try{this.trackEvent(g.Events.Contact.UPDATE_CONTACT_LIST_TRIGGERED,{payload:{userContacts:e,config:t}}),typeof e=="object"&&e instanceof Array&&(!t||t&&typeof t=="object")&&(e=JSON.parse(JSON.stringify(e)),this.getService(Z).convert(t).updateContactList(e,t))}catch(i){this.getService(l).catch("Error in _updateContactList: ",i)}}_updateOrgList(e){this.getService(l).log("%c[WB] Calling FUNCTION: _updateOrgList","color: green;");try{this.trackEvent(g.Events.Contact.UPDATE_ORG_LIST_TRIGGERED,{payload:{config:e}}),e&&typeof e=="object"&&Array.isArray(e.orgList)&&(e=JSON.parse(JSON.stringify(e)),this.getService(Z).updateOrgList(e))}catch(t){this.getService(l).catch("Error in _updateOrgList: ",t)}}_getContactList(){this.getService(l).log("%c[WB] Calling FUNCTION: getContactList","color: green;");try{return this.trackEvent(g.Events.Contact.GET_CONTACT_LIST_TRIGGERED),this.getService(Z).getContactList$()}catch(e){return this.getService(l).catch("Error in _getContactList: ",e),x(null)}}};var Wi=class{constructor(e,t){this.queue=[],this.realElement=null,this.loggingService=e.get(l),this.loadPromise=t.ensureCrdtChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){this.loggingService.catch("LazyCrdtElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableWebhook(){this.enqueueOrCall(e=>e.enableWebhook())}disableWebhook(){this.enqueueOrCall(e=>e.disableWebhook())}setWebhookDebounceTime(e){this.enqueueOrCall(t=>t.setWebhookDebounceTime(e))}setActivityDebounceTime(e){this.enqueueOrCall(t=>t.setActivityDebounceTime(e))}updateData(e){return this.loadPromise.then(t=>t.updateData(e))}getData(e){return this.loadPromise.then(t=>t.getData(e))}updateState(e){return this.loadPromise.then(t=>t.updateState(e))}registerSyncUser(e){return this.loadPromise.then(t=>t.registerSyncUser(e))}setPresence(e){return this.loadPromise.then(t=>t.setPresence(e))}pushMessage(e){return this.loadPromise.then(t=>t.pushMessage(e))}getMessages(e){return this.loadPromise.then(t=>t.getMessages(e))}saveSnapshot(e){return this.loadPromise.then(t=>t.saveSnapshot(e))}getSnapshot(e){return this.loadPromise.then(t=>t.getSnapshot(e))}pruneMessages(e){return this.loadPromise.then(t=>t.pruneMessages(e))}saveVersion(e){return this.loadPromise.then(t=>t.saveVersion(e))}getVersion(e){return this.loadPromise.then(t=>t.getVersion(e))}getVersions(e){return this.loadPromise.then(t=>t.getVersions(e))}onDataChange(e){return this.deferredSub(t=>t.onDataChange(e))}onStateChange(e){return this.deferredSub(t=>t.onStateChange(e))}onRegisteredUserChange(e){return this.deferredSub(t=>t.onRegisteredUserChange(e))}onPresenceChange(e){return this.deferredSub(t=>t.onPresenceChange(e))}onMessage(e){return this.deferredSub(t=>t.onMessage(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}deferredSub(e){let t=null,i=!1;return this.loadPromise.then(n=>{if(!i)try{t=e(n)}catch(o){this.loggingService.catch("LazyCrdtElement deferredSub wiring failed: ",o)}}).catch(()=>{}),()=>{if(i=!0,t){try{t()}catch(n){this.loggingService.catch("LazyCrdtElement deferredSub unsub failed: ",n)}t=null}}}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1),i;return this.loadPromise.then(n=>{try{i=e(n).subscribe({next:o=>t.next(o),error:o=>t.error(o),complete:()=>t.complete()})}catch(o){this.loggingService.catch("LazyCrdtElement proxyObservable wiring failed: ",o)}}).catch(()=>{}),t.asObservable()}};var Hi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureCursorChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyCursorElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}setInactivityTime(e){this.enqueueOrCall(t=>t.setInactivityTime(e))}allowedElementIds(e){this.enqueueOrCall(t=>t.allowedElementIds(e))}getLiveCursorsOnCurrentDocument(){return this.proxyObservable(e=>e.getLiveCursorsOnCurrentDocument())}getOnlineUsersOnCurrentDocument(){return this.proxyObservable(e=>e.getOnlineUsersOnCurrentDocument())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var $i=class extends Pe{constructor(e){super(e),this.getService(l).log("%c[WB] Creating CLASS: DocElement","color: blue;"),this.getDocumentMetadata=this._getDocumentMetadata}_getDocumentMetadata(){this.getService(l).log("%c[WB] Calling FUNCTION: getDocumentMetadata","color: green;");try{return this.trackEvent(g.Events.Doc.GET_DOCUMENT_METADATA_TRIGGERED),this.getService(D).getDocumentMetadata$()}catch(e){return this.getService(l).catch("Error in getDocumentMetadata: ",e),x(null)}}};var Qi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureHuddleChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyHuddleElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableCursorMode(){this.enqueueOrCall(e=>e.enableCursorMode())}disableCursorMode(){this.enqueueOrCall(e=>e.disableCursorMode())}enableChat(){this.enqueueOrCall(e=>e.enableChat())}disableChat(){this.enqueueOrCall(e=>e.disableChat())}enableFlockModeOnAvatarClick(){this.enqueueOrCall(e=>e.enableFlockModeOnAvatarClick())}disableFlockModeOnAvatarClick(){this.enqueueOrCall(e=>e.disableFlockModeOnAvatarClick())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}};var Yi=class{constructor(e,t){this.queue=[],this.realElement=null,this.loggingService=e.get(l),this.loadPromise=t.ensureLiveStateSyncChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){this.loggingService.catch("LazyLiveStateSyncElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableSingleEditorMode(e){this.enqueueOrCall(t=>t.enableSingleEditorMode(e))}disableSingleEditorMode(){this.enqueueOrCall(e=>e.disableSingleEditorMode())}resetUserAccess(){this.enqueueOrCall(e=>e.resetUserAccess())}singleEditorModeContainerIds(e){this.enqueueOrCall(t=>t.singleEditorModeContainerIds(e))}enableAutoSyncState(){this.enqueueOrCall(e=>e.enableAutoSyncState())}disableAutoSyncState(){this.enqueueOrCall(e=>e.disableAutoSyncState())}acceptEditorAccessRequest(){this.enqueueOrCall(e=>e.acceptEditorAccessRequest())}rejectEditorAccessRequest(){this.enqueueOrCall(e=>e.rejectEditorAccessRequest())}cancelEditorAccessRequest(){this.enqueueOrCall(e=>e.cancelEditorAccessRequest())}editCurrentTab(){this.enqueueOrCall(e=>e.editCurrentTab())}setEditorAccessTimeout(e){this.enqueueOrCall(t=>t.setEditorAccessTimeout(e))}enableEditorAccessTransferOnTimeOut(){this.enqueueOrCall(e=>e.enableEditorAccessTransferOnTimeOut())}disableEditorAccessTransferOnTimeOut(){this.enqueueOrCall(e=>e.disableEditorAccessTransferOnTimeOut())}enableDefaultSingleEditorUI(){this.enqueueOrCall(e=>e.enableDefaultSingleEditorUI())}disableDefaultSingleEditorUI(){this.enqueueOrCall(e=>e.disableDefaultSingleEditorUI())}updateUserPresence(e){this.enqueueOrCall(t=>t.updateUserPresence(e))}enableHeartbeat(){this.enqueueOrCall(e=>e.enableHeartbeat())}disableHeartbeat(){this.enqueueOrCall(e=>e.disableHeartbeat())}fetchLiveStateData(e){return this.loadPromise.then(t=>t.fetchLiveStateData(e))}setLiveStateData(e,t,i){return this.loadPromise.then(n=>n.setLiveStateData(e,t,i))}setUserAsEditor(){return this.loadPromise.then(e=>e.setUserAsEditor())}getLiveStateData$(e,t){return this.proxyObservable(i=>i.getLiveStateData$(e,t))}getLiveStateData(e,t){return this.proxyObservable(i=>i.getLiveStateData(e,t))}isUserEditor$(){return this.proxyObservable(e=>e.isUserEditor$())}isUserEditor(){return this.proxyObservable(e=>e.isUserEditor())}getEditor(){return this.proxyObservable(e=>e.getEditor())}requestEditorAccess(){return this.proxyObservable(e=>e.requestEditorAccess())}isEditorAccessRequested(){return this.proxyObservable(e=>e.isEditorAccessRequested())}getEditorAccessTimer(){return this.proxyObservable(e=>e.getEditorAccessTimer())}onServerConnectionStateChange(){return this.proxyObservable(e=>e.onServerConnectionStateChange())}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1),i;return this.loadPromise.then(n=>{try{i=e(n).subscribe({next:o=>t.next(o),error:o=>t.error(o),complete:()=>t.complete()})}catch(o){this.loggingService.catch("LazyLiveStateSyncElement proxyObservable wiring failed: ",o)}}).catch(()=>{}),t.asObservable()}};var Ki=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureNotificationChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyNotificationElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}openHistoryPanel(){this.enqueueOrCall(e=>e.openHistoryPanel())}closeHistoryPanel(){this.enqueueOrCall(e=>e.closeHistoryPanel())}toggleHistoryPanel(){this.enqueueOrCall(e=>e.toggleHistoryPanel())}setMaxDays(e){this.enqueueOrCall(t=>t.setMaxDays(e))}setTabConfig(e){this.enqueueOrCall(t=>t.setTabConfig(e))}enableReadNotificationsOnForYouTab(){this.enqueueOrCall(e=>e.enableReadNotificationsOnForYouTab())}disableReadNotificationsOnForYouTab(){this.enqueueOrCall(e=>e.disableReadNotificationsOnForYouTab())}setAllNotificationsAsRead(e){this.enqueueOrCall(t=>t.setAllNotificationsAsRead(e))}markNotificationAsReadById(e){this.enqueueOrCall(t=>t.markNotificationAsReadById(e))}setSettings(e){this.enqueueOrCall(t=>t.setSettings(e))}muteAllNotifications(){this.enqueueOrCall(e=>e.muteAllNotifications())}enableSettings(){this.enqueueOrCall(e=>e.enableSettings())}disableSettings(){this.enqueueOrCall(e=>e.disableSettings())}enableSettingsAtOrganizationLevel(){this.enqueueOrCall(e=>e.enableSettingsAtOrganizationLevel())}disableSettingsAtOrganizationLevel(){this.enqueueOrCall(e=>e.disableSettingsAtOrganizationLevel())}enableSelfNotifications(){this.enqueueOrCall(e=>e.enableSelfNotifications())}disableSelfNotifications(){this.enqueueOrCall(e=>e.disableSelfNotifications())}setSettingsInitialConfig(e){this.enqueueOrCall(t=>t.setSettingsInitialConfig(e))}openNotificationsPanel(){this.enqueueOrCall(e=>e.openNotificationsPanel())}closeNotificationsPanel(){this.enqueueOrCall(e=>e.closeNotificationsPanel())}enableCurrentDocumentOnly(){this.enqueueOrCall(e=>e.enableCurrentDocumentOnly())}disableCurrentDocumentOnly(){this.enqueueOrCall(e=>e.disableCurrentDocumentOnly())}enableCrossOrganization(e){this.enqueueOrCall(t=>t.enableCrossOrganization(e))}disableCrossOrganization(){this.enqueueOrCall(e=>e.disableCrossOrganization())}getNotificationsData(e){return this.proxyObservable(t=>t.getNotificationsData(e))}getUnreadNotificationsCount(){return this.proxyObservable(e=>e.getUnreadNotificationsCount())}getSettings(){return this.proxyObservable(e=>e.getSettings())}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Xi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensurePresenceChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyPresenceElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableFlockMode(e){this.enqueueOrCall(t=>t.enableFlockMode(e))}disableFlockMode(){this.enqueueOrCall(e=>e.disableFlockMode())}startFollowingUser(e,t){this.enqueueOrCall(i=>i.startFollowingUser(e,t))}stopFollowingUser(){this.enqueueOrCall(e=>e.stopFollowingUser())}setInactivityTime(e){this.enqueueOrCall(t=>t.setInactivityTime(e))}enableSelf(){this.enqueueOrCall(e=>e.enableSelf())}disableSelf(){this.enqueueOrCall(e=>e.disableSelf())}addUser(e){this.enqueueOrCall(t=>t.addUser(e))}removeUser(e){this.enqueueOrCall(t=>t.removeUser(e))}getOnlineUsersOnCurrentDocument(){return this.proxyObservable(e=>e.getOnlineUsersOnCurrentDocument())}getData(e){return this.proxyObservable(t=>t.getData(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Ji=class{constructor(e,t){this.queue=[],this.realElement=null,this.loadPromise=t.ensureReactionChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyReactionElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableDarkMode(){this.enqueueOrCall(e=>e.enableDarkMode())}disableDarkMode(){this.enqueueOrCall(e=>e.disableDarkMode())}setCustomReactions(e){this.enqueueOrCall(t=>t.setCustomReactions(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}};var Zi=class{constructor(e,t){this.queue=[],this.realElement=null,this.loadPromise=t.ensureRecorderChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyRecorderElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}initRecording(e,t){return this.awaitAndCall(i=>i.initRecording(e,t))}enableDarkMode(){this.enqueueOrCall(e=>e.enableDarkMode())}disableDarkMode(){this.enqueueOrCall(e=>e.disableDarkMode())}enableRecordingCountdown(){this.enqueueOrCall(e=>e.enableRecordingCountdown())}disableRecordingCountdown(){this.enqueueOrCall(e=>e.disableRecordingCountdown())}enableRecordingTranscription(){this.enqueueOrCall(e=>e.enableRecordingTranscription())}disableRecordingTranscription(){this.enqueueOrCall(e=>e.disableRecordingTranscription())}enableVideoEditor(){this.enqueueOrCall(e=>e.enableVideoEditor())}disableVideoEditor(){this.enqueueOrCall(e=>e.disableVideoEditor())}setRecordingQualityConstraints(e){this.enqueueOrCall(t=>t.setRecordingQualityConstraints(e))}setRecordingEncodingOptions(e){this.enqueueOrCall(t=>t.setRecordingEncodingOptions(e))}enableRecordingMic(){this.enqueueOrCall(e=>e.enableRecordingMic())}disableRecordingMic(){this.enqueueOrCall(e=>e.disableRecordingMic())}enableOnboardingTooltip(){this.enqueueOrCall(e=>e.enableOnboardingTooltip())}disableOnboardingTooltip(){this.enqueueOrCall(e=>e.disableOnboardingTooltip())}enableRetakeOnVideoEditor(){this.enqueueOrCall(e=>e.enableRetakeOnVideoEditor())}disableRetakeOnVideoEditor(){this.enqueueOrCall(e=>e.disableRetakeOnVideoEditor())}askDevicePermission(e){this.enqueueOrCall(t=>t.askDevicePermission(e))}setMaxLength(e){this.enqueueOrCall(t=>t.setMaxLength(e))}enablePictureInPicture(){this.enqueueOrCall(e=>e.enablePictureInPicture())}disablePictureInPicture(){this.enqueueOrCall(e=>e.disablePictureInPicture())}enablePlaybackOnPreviewClick(){this.enqueueOrCall(e=>e.enablePlaybackOnPreviewClick())}disablePlaybackOnPreviewClick(){this.enqueueOrCall(e=>e.disablePlaybackOnPreviewClick())}getRecordingData(e){return this.awaitAndCall(t=>t.getRecordingData(e))}fetchRecordings(e){return this.awaitAndCall(t=>t.fetchRecordings(e))}deleteRecordings(e){return this.awaitAndCall(t=>t.deleteRecordings(e))}downloadLatestVideo(e){return this.awaitAndCall(t=>t.downloadLatestVideo(e))}openPictureInPicture(){return this.awaitAndCall(e=>e.openPictureInPicture())}exitPictureInPicture(){return this.awaitAndCall(e=>e.exitPictureInPicture())}requestScreenPermission(){return this.awaitAndCall(e=>e.requestScreenPermission())}onRecordedData(){return this.proxyObservable(e=>e.onRecordedData())}getRecordingDataByRecorderId(e){return this.proxyObservable(t=>t.getRecordingDataByRecorderId(e))}getRecordings(e){return this.proxyObservable(t=>t.getRecordings(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}awaitAndCall(e){return this.realElement?Promise.resolve(e(this.realElement)):this.loadPromise.then(t=>e(t))}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var er=class{constructor(e,t){this.queue=[],this.realElement=null,this.loggingService=e.get(l),this.loadPromise=t.ensureRewriterChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){this.loggingService.catch("LazyRewriterElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableRewriter(){this.enqueueOrCall(e=>e.enableRewriter())}disableRewriter(){this.enqueueOrCall(e=>e.disableRewriter())}enableDefaultUI(){this.enqueueOrCall(e=>e.enableDefaultUI())}disableDefaultUI(){this.enqueueOrCall(e=>e.disableDefaultUI())}askAi(e){return this.loadPromise.then(t=>t.askAi(e))}replaceText(e){return this.loadPromise.then(t=>t.replaceText(e))}addComment(e){return this.loadPromise.then(t=>t.addComment(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1),i;return this.loadPromise.then(n=>{try{i=e(n).subscribe({next:o=>t.next(o),error:o=>t.error(o),complete:()=>t.complete()})}catch(o){this.loggingService.catch("LazyRewriterElement proxyObservable wiring failed: ",o)}}).catch(()=>{}),t.asObservable()}};var tr=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureSelectionChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazySelectionElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableLiveSelection(){this.enqueueOrCall(e=>e.enableLiveSelection())}disableLiveSelection(){this.enqueueOrCall(e=>e.disableLiveSelection())}enableUserIndicator(){this.enqueueOrCall(e=>e.enableUserIndicator())}disableUserIndicator(){this.enqueueOrCall(e=>e.disableUserIndicator())}setUserIndicatorPosition(e){this.enqueueOrCall(t=>t.setUserIndicatorPosition(e))}setUserIndicatorType(e){this.enqueueOrCall(t=>t.setUserIndicatorType(e))}enableDefaultElementsTracking(){this.enqueueOrCall(e=>e.enableDefaultElementsTracking())}disableDefaultElementsTracking(){this.enqueueOrCall(e=>e.disableDefaultElementsTracking())}enableDefaultStyling(){this.enqueueOrCall(e=>e.enableDefaultStyling())}disableDefaultStyling(){this.enqueueOrCall(e=>e.disableDefaultStyling())}setInactivityTime(e){this.enqueueOrCall(t=>t.setInactivityTime(e))}getLiveSelectionData(){return this.proxyObservable(e=>e.getLiveSelectionData())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var ir=class extends Pe{constructor(e){super(e),this._enableSuggestionMode=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: enableSuggestionMode","color: green;");try{this.trackEvent(g.Events.Suggestions.ENABLE_SUGGESTION_MODE_TRIGGERED),this.getService(re).enableSuggestionMode(t)}catch(i){this.getService(l).catch("Error in _enableSuggestionMode: ",i)}},this._disableSuggestionMode=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: disableSuggestionMode","color: green;");try{this.trackEvent(g.Events.Suggestions.DISABLE_SUGGESTION_MODE_TRIGGERED),this.getService(re).disableSuggestionMode()}catch(t){this.getService(l).catch("Error in _disableSuggestionMode: ",t)}},this._isSuggestionModeEnabled=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: isSuggestionModeEnabled","color: green;");try{return this.trackEvent(g.Events.Suggestions.IS_SUGGESTION_MODE_ENABLED_TRIGGERED),this.getService(re).isSuggestionModeEnabled()}catch(t){return this.getService(l).catch("Error in _isSuggestionModeEnabled: ",t),!1}},this._isSuggestionModeEnabled$=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: isSuggestionModeEnabled$","color: green;");try{return this.trackEvent(g.Events.Suggestions.IS_SUGGESTION_MODE_ENABLED_STREAM_TRIGGERED),this.getService(re).isSuggestionModeEnabled$()}catch(t){return this.getService(l).catch("Error in _isSuggestionModeEnabled$: ",t),new Wt}},this._registerTarget=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: registerTarget","color: green;");try{this.trackEvent(g.Events.Suggestions.REGISTER_TARGET_TRIGGERED),this.getService(re).registerTarget(t)}catch(i){this.getService(l).catch("Error in _registerTarget: ",i)}},this._unregisterTarget=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: unregisterTarget","color: green;");try{this.trackEvent(g.Events.Suggestions.UNREGISTER_TARGET_TRIGGERED),this.getService(re).unregisterTarget(t)}catch(i){this.getService(l).catch("Error in _unregisterTarget: ",i)}},this._startSuggestion=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: startSuggestion","color: green;");try{this.trackEvent(g.Events.Suggestions.START_SUGGESTION_TRIGGERED),this.getService(re).startSuggestion(t)}catch(i){this.getService(l).catch("Error in _startSuggestion: ",i)}},this._commitSuggestion=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: commitSuggestion","color: green;");try{return this.trackEvent(g.Events.Suggestions.COMMIT_SUGGESTION_TRIGGERED),this.getService(re).commitSuggestion(t)}catch(i){return this.getService(l).catch("Error in _commitSuggestion: ",i),Promise.reject(i)}},this._getSuggestions=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSuggestions","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_SUGGESTIONS_TRIGGERED),this.getService(re).getSuggestions(t)}catch(i){return this.getService(l).catch("Error in _getSuggestions: ",i),[]}},this._getSuggestions$=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSuggestions$","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_SUGGESTIONS_STREAM_TRIGGERED),this.getService(re).getSuggestions$(t)}catch(i){return this.getService(l).catch("Error in _getSuggestions$: ",i),new Wt}},this._getPendingSuggestion=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getPendingSuggestion","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_PENDING_SUGGESTION_TRIGGERED),this.getService(re).getPendingSuggestion(t)}catch(i){return this.getService(l).catch("Error in _getPendingSuggestion: ",i),null}},this._getPendingSuggestion$=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getPendingSuggestion$","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_PENDING_SUGGESTION_STREAM_TRIGGERED),this.getService(re).getPendingSuggestion$(t)}catch(i){return this.getService(l).catch("Error in _getPendingSuggestion$: ",i),new Wt}},this._on=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: on","color: green;");try{return this.trackEvent(g.Events.Suggestions.ON_TRIGGERED,{payload:{action:t}}),this.getService(re).onAction(t)}catch(i){return this.getService(l).catch("Error in _on: ",i),x(null)}},this.getService(l).log("%c[WB] Creating CLASS: SuggestionElement","color: blue;"),this.enableSuggestionMode=this._enableSuggestionMode,this.disableSuggestionMode=this._disableSuggestionMode,this.isSuggestionModeEnabled=this._isSuggestionModeEnabled,this.isSuggestionModeEnabled$=this._isSuggestionModeEnabled$,this.registerTarget=this._registerTarget,this.unregisterTarget=this._unregisterTarget,this.startSuggestion=this._startSuggestion,this.commitSuggestion=this._commitSuggestion,this.getSuggestions=this._getSuggestions,this.getSuggestions$=this._getSuggestions$,this.getPendingSuggestion=this._getPendingSuggestion,this.getPendingSuggestion$=this._getPendingSuggestion$,this.on=this._on}};var rr=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureTagChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyTagElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}deleteTag(){this.enqueueOrCall(e=>e.deleteTag())}allowedElementIds(e){this.enqueueOrCall(t=>t.allowedElementIds(e))}attachTag(e){this.enqueueOrCall(t=>t.attachTag(e))}getAllTagAnnotations(e,t){return this.proxyObservable(i=>i.getAllTagAnnotations(e,t))}addTagModeChange(){return this.proxyObservable(e=>e.addTagModeChange())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var nr=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureViewChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyViewsElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}getUniqueViewsByUser(e){return this.proxyObservable(t=>t.getUniqueViewsByUser(e))}getUniqueViewsByDate(e){return this.proxyObservable(t=>t.getUniqueViewsByDate(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Ft=(()=>{let e=class e{constructor(i,n){this.docService=i,this.loggingService=n}updateDocuments(i){return L(this,null,function*(){try{return yield this.docService.updateDocuments(i)}catch(n){return this.loggingService.catch("Error in DocActionsService updateDocuments: ",n),null}})}updateLocations(i){return L(this,null,function*(){try{return yield this.docService.updateLocations(i)}catch(n){return this.loggingService.catch("Error in DocActionsService updateLocations: ",n),null}})}fetchDocuments(i){return L(this,null,function*(){try{let n=yield this.docService.fetchDocuments(i),o=[];return n.forEach(s=>{let a=s?.docIamConfig??{},c=s?.metadata??{};c.disabled=!!a?.disabled,c.id=c?.clientDocumentId,c.documentId=c?.clientDocumentId,delete c?.clientDocumentId,c.organizationId=c?.clientOrganizationId,delete c?.clientOrganizationId,delete c?.pageInfo,delete c?.veltFolderId,o.push(c)}),{data:o.reduce((s,a)=>(a?.documentId&&(s[a.documentId]=a),s),{})}}catch(n){return this.loggingService.catch("Error in CommentActionsService fetchDocuments: ",n),{data:null}}})}fetchFolders(i){return L(this,null,function*(){try{let n=yield this.docService.fetchFolders(i),o=n?.parentFolders?.map(a=>{let c=a?.metadata??{};return delete c?.veltFolderId,c.organizationId=c.clientOrganizationId,delete c?.clientOrganizationId,delete c?.veltParentFolderId,k({},c)});return{data:(n?.data?.map(a=>{let c=a?.metadata??{};return delete c?.veltFolderId,c.organizationId=c.clientOrganizationId,delete c?.clientOrganizationId,delete c?.veltParentFolderId,k(k({},c),i?.folderId?{subFolders:o}:{})})).reduce((a,c)=>(c?.folderId&&(a[c.folderId]=c),a),{})}}catch(n){return this.loggingService.catch("Error in CommentActionsService fetchFolders: ",n),{data:null}}})}};e.\u0275fac=function(n){return new(n||e)(U(D),U(l))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var or=(()=>{let e=class e{constructor(i,n,o,s,a){this.authService=i,this.coreActionsService=n,this.docService=o,this.iamService=s,this.loggingService=a,this.veltInitState$=new Jn(void 0);try{this.loggingService.log("%c[WB] Creating CLASS: VeltService","color: blue;");let c=this.authService.getUser$(),d=this.docService.getDocumentPaths$(),h=this.iamService.isUserAllowed$();eo([c,d,h]).subscribe(([u,m,v])=>{u&&m&&v?this.veltInitState$.next(!0):this.veltInitState$.next(!1)}),this.getVeltInitState$().subscribe(u=>{this.coreActionsService.triggerAction(ts.DOCUMENT_INIT,u)})}catch(c){this.loggingService.catch("Error in VeltService constructor: ",c)}}getVeltInitState$(){try{return this.veltInitState$.asObservable().pipe(ro())}catch(i){return this.loggingService.catch("Error in VeltService getVeltInitState$: ",i),x(void 0)}}};e.\u0275fac=function(n){return new(n||e)(U(ie),U(oi),U(D),U(dt),U(l))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var sr=class{constructor(e){this.injector=e,this.initConfig=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: initConfig","color: green;");try{if(!t)this.getService(l).catch("Error in initConfig: ","Apikey is not provided.");else if(typeof t!="string")this.getService(l).catch("Error in initConfig: ","Apikey must be string.");else if(!t?.trim())this.getService(l).catch("Error in initConfig: ","Apikey is not provided.");else{let n=i?.featureAllowList?.length?i.featureAllowList:void 0;this.getService(ie).setApiKey(t?.trim(),i),this.preloadLazyChunksFromAllowList(n)}}catch(n){this.getService(l).catch("Error in initConfig: ",n)}},this.ensureFeatureEnabled=t=>{try{this.getService(B).enableFeatures([t])}catch(i){this.getService(l).catch("Error in ensureFeatureEnabled: ",i)}},this.identify=(t,i,n)=>(this.getService(l).log("%c[WB] Calling FUNCTION: identify","color: green;"),new Promise((o,s)=>{try{typeof t=="object"&&(t=JSON.parse(JSON.stringify(t)));let a=this.getService(B).getApiKey(),c=os(a,t.userId);if(n?.ha||this.getService(Ot).trackEvent(g.Events.Core.IDENTIFY,{apiKey:a,clientUserId:t.userId,snippylyUserId:c,forceReset:i?.forceReset,user:this.getService(ie).getUserWithoutContacts(t),source:"client",fromProvider:n?.fromProvider},!0,c,t?.userId),!(t&&t.userId))this.getService(l).catch("Error in identify: ","Missing userId in config data."),i?.throwError?s("Missing userId in config data."):o(null);else if(typeof t.userId!="string")this.getService(l).catch("Error in identify: ","userId must be string."),i?.throwError?s("userId must be string."):o(null);else if(t?.groupId&&typeof t?.groupId!="string")this.getService(l).catch("Error in identify: ","groupId must be string."),i?.throwError?s("groupId must be string."):o(null);else{if(t?.groupId)if(t?.groupId?.match(/^[a-zA-Z0-9_]*$/))t.clientGroupId=t.groupId;else{let h=t.groupId;t.clientGroupId=h,t.groupId=ni(h)}if(t?.organizationId){let h=t.organizationId;t.clientOrganizationId=h,t.organizationId=ni(h)}delete t.isAdmin;let d=A.REGEX_URL_FOR_USER_NAME;t?.name&&d.test(t?.name)&&(t.name=t.name?.split(".")?.slice(0,-1)?.join(".")),t.clientUserName=t.name,t?.name&&t?.name?.length>30&&(t.name=t.name.slice(0,30)),this.getService(ie).initializeClient(t,i||{},new Date().getTime(),void 0,"external").then(h=>{let u;try{h&&(u=JSON.parse(JSON.stringify(h)))}catch{}o(u)}).catch(h=>{this.getService(l).catch("Error in identify: ",h),i?.throwError?s(h):o(null)})}}catch(a){this.getService(l).catch("Error in identify: ",a),i?.throwError?s(a):o(null)}})),this.updateUser=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateUser","color: green;");try{if(this.getService(l).catch("DEPRECATED: ","'updateUser' method is deprecated."),t&&typeof t=="object"){if(t=JSON.parse(JSON.stringify(t)),t?.groupId)if(t?.groupId?.match(/^[a-zA-Z0-9_]*$/))t.clientGroupId=t.groupId;else{let i=t.groupId;t.clientGroupId=i,t.groupId=ni(i)}delete t.isAdmin,this.getService(ie).updateUser(t)}else this.getService(l).catch("Error in updateUser: ","Invalid user object provided.")}catch(i){this.getService(l).catch("Error in updateUser: ",i)}},this.signOutUser=t=>(this.getService(l).log("%c[WB] Calling FUNCTION: signOutUser","color: green;"),t?.ha||this.trackEvent(g.Events.Core.SIGN_OUT_USER_TRIGGERED),new Promise((i,n)=>L(this,null,function*(){try{yield this.getService(ie).signOutUser("external"),i(null)}catch(o){this.getService(l).catch("Error in signOutUser: ",o),i(null)}}))),this.setDocument=(t,i,n,o)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setDocument","color: green;");try{o?.ha||this.trackEvent(g.Events.Core.SET_DOCUMENTS_TRIGGERED,{payload:{id:t,documentMetadata:i,methodName:"setDocument",source:"external"}}),t&&t.trim()?(i&&(typeof i=="object"?(i=JSON.parse(JSON.stringify(i)),i?.pageInfo&&ri(i.pageInfo,t)):this.getService(l).catch("Error in setDocument: ","Invalid documentMetadata provided.")),yield this.getService(D).setDocument({documentId:t,documentMetadata:i,options:n,source:"external"})):this.getService(l).catch("Error in setDocument: ","Invalid document id provided.")}catch(s){this.getService(l).catch("Error in setDocument: ",s)}}),this.setPageInfo=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setPageInfo","color: green;");try{ri(t,i?.documentId)}catch(n){this.getService(l).catch("Error in setPageInfo: ",n)}},this.clearPageInfo=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: clearPageInfo","color: green;");try{rs(t?.documentId)}catch(i){this.getService(l).catch("Error in clearPageInfo: ",i)}},this.setDocumentId=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setDocumentId","color: green;");try{if(n?.ha||this.trackEvent(g.Events.Core.SET_DOCUMENTS_TRIGGERED,{payload:{id:t,organizationId:i,methodName:"setDocumentId",source:"external"}}),t&&t.trim())return yield this.getService(D).setDocumentId({documentId:t,clientOrganizationId:i,source:"external"});this.getService(l).catch("Error in setDocumentId: ","Invalid document id provided.")}catch(o){this.getService(l).catch("Error in setDocumentId: ",o)}}),this.setDocuments=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setDocuments","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.SET_DOCUMENTS_TRIGGERED,{payload:{documents:t,options:i,methodName:"setDocuments",source:"external"}}),typeof t=="object"&&t instanceof Array?(t=JSON.parse(JSON.stringify(t)),t=t.filter(o=>typeof o=="object"&&o!==null&&o.id?.trim()),t.length?(t.forEach(o=>{o?.metadata?.pageInfo&&ri(o.metadata.pageInfo,o.id)}),yield this.getService(D).setDocuments({documents:t,options:i,source:"external"})):this.getService(l).catch("Error in setDocuments: ","Invalid documents provided.")):this.getService(l).catch("Error in setDocuments: ","Invalid documents provided.")}catch(o){this.getService(l).catch("Error in setDocuments: ",o)}}),this.setRootDocument=(t,i)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setRootDocument","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ROOT_DOCUMENT_TRIGGERED,{payload:{document:t,methodName:"setRootDocument",source:"external"}}),typeof t=="object"?(t=JSON.parse(JSON.stringify(t)),t.id?yield this.getService(D).setRootDocument({document:t,source:"external"}):this.getService(l).catch("Error in setRootDocument: ","Invalid document provided.")):this.getService(l).catch("Error in setRootDocument: ","Invalid document provided.")}catch(n){this.getService(l).catch("Error in setRootDocument: ",n)}}),this.unsetDocumentId=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: unsetDocumentId","color: green;");try{t?.ha||this.trackEvent(g.Events.Core.UNSET_DOCUMENTS_TRIGGERED,{payload:{methodName:"unsetDocumentId",source:"external"}}),this.getService(D).unsetDocumentId({source:"external"})}catch(i){this.getService(l).catch("Error in unsetDocumentId: ",i)}},this.unsetDocuments=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: unsetDocuments","color: green;");try{t?.ha||this.trackEvent(g.Events.Core.UNSET_DOCUMENTS_TRIGGERED,{payload:{methodName:"unsetDocuments",source:"external"}}),this.getService(D).unsetDocuments({source:"external"})}catch(i){this.getService(l).catch("Error in unsetDocuments: ",i)}},this.fetchDocuments=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: fetchDocuments","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.FETCH_DOCUMENTS_TRIGGERED,{payload:{options:t}}),this.getService(Ft).fetchDocuments(t)}catch(n){return this.getService(l).catch("Error in fetchDocuments: ",n),Promise.resolve({data:null})}},this.updateDocuments=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateDocuments","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.UPDATE_DOCUMENTS_TRIGGERED,{payload:{request:t}}),this.getService(Ft).updateDocuments(t)}catch(n){return this.getService(l).catch("Error in updateDocuments: ",n),Promise.resolve({data:null})}},this.updateLocations=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateLocations","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.UPDATE_LOCATIONS_TRIGGERED,{payload:{request:t}}),this.getService(Ft).updateLocations(t)}catch(n){return this.getService(l).catch("Error in updateLocations: ",n),Promise.resolve({data:null})}},this.fetchFolders=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: fetchFolders","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.FETCH_FOLDERS_TRIGGERED,{payload:{options:t}}),this.getService(Ft).fetchFolders(t)}catch(n){return this.getService(l).catch("Error in fetchFolders: ",n),Promise.resolve({data:null})}},this.setUserDataProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setUserDataProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_USER_DATA_PROVIDER_TRIGGERED),this.getService(It).setUserDataProvider(t)}catch(n){this.getService(l).catch("Error in setUserDataProvider: ",n)}},this.setAnonymousUserDataProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setAnonymousUserDataProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ANONYMOUS_USER_DATA_PROVIDER_TRIGGERED),this.getService(It).setAnonymousUserDataProvider(t)}catch(n){this.getService(l).catch("Error in setAnonymousUserDataProvider: ",n)}},this.setDataProviders=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setDataProviders","color: green;");try{if(i?.ha||this.trackEvent(g.Events.Core.SET_DATA_PROVIDERS_TRIGGERED),t.comment&&this.getService(cs).setCommentAnnotationDataProvider(t.comment),t.user&&this.getService(It).setUserDataProvider(t.user),t.reaction&&this.getService(ds).setReactionAnnotationDataProvider(t.reaction),t.anonymousUser&&this.getService(It).setAnonymousUserDataProvider(t.anonymousUser),t.recorder&&this.getService(us).setRecorderAnnotationDataProvider(t.recorder),t.notification&&this.getService(ps).setNotificationDataProvider(t.notification),t.activity&&this.getService(ms).setActivityDataProvider(t.activity),t.attachment)if(t.comment)this.getService(hs).setAttachmentDataProvider(t.attachment);else throw new Error("Comment data provider is required for attachment data provider")}catch(n){this.getService(l).catch("Error in setDataProviders: ",n)}},this.setPermissionProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setPermissionProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_PERMISSION_PROVIDER_TRIGGERED),this.getService(ui).setPermissionProvider(t)}catch(n){this.getService(l).catch("Error in setPermissionProvider: ",n)}},this.setEncryptionProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setEncryptionProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ENCRYPTION_PROVIDER_TRIGGERED),this.getService(B).setEncryptionProvider(t)}catch(n){this.getService(l).catch("Error in setEncryptionProvider: ",n)}},this.setVeltAuthProvider=t=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setVeltAuthProvider","color: green;");try{return yield this.getService(ie).setVeltAuthProvider(t)}catch(i){return this.getService(l).catch("Error in setVeltAuthProvider: ",i),null}}),this.getDocumentId=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getDocumentId","color: green;");try{return t?.ha||this.trackEvent(g.Events.Core.GET_DOCUMENT_ID_TRIGGERED),this.getService(D).getDocumentId()}catch(i){this.getService(l).catch("Error in getDocumentId: ",i)}},this.setLocation=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setLocation","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.SET_LOCATIONS_TRIGGERED,{payload:{params:t,appendLocation:i,methodName:"setLocation",source:"external"}}),t&&typeof t=="object"?i?this.getService(D).addLocation({location:t,source:"external"}):yield this.getService(D).setLocation({location:t,source:"external"}):this.getService(l).catch("Error in setLocation: ","Invalid location params provided.")}catch(o){this.getService(l).catch("Error in setLocation: ",o)}}),this.setRootLocation=(t,i)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setRootLocation","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ROOT_LOCATION_TRIGGERED,{payload:{location:t,methodName:"setRootLocation",source:"external"}}),typeof t=="object"?(t=JSON.parse(JSON.stringify(t)),t.id?yield this.getService(D).setRootLocation({location:t,source:"external"}):this.getService(l).catch("Error in setRootLocation: ","Invalid location provided.")):this.getService(l).catch("Error in setRootLocation: ","Invalid location provided.")}catch(n){this.getService(l).catch("Error in setRootLocation: ",n)}}),this.setLocations=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setLocations","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.SET_LOCATIONS_TRIGGERED,{payload:{locations:t,options:i,methodName:"setLocations",source:"external"}}),t&&Array.isArray(t)?yield this.getService(D).setLocations({locations:t,options:i,source:"external"}):this.getService(l).catch("Error in setLocations: ","Invalid location params provided.")}catch(o){this.getService(l).catch("Error in setLocations: ",o)}}),this.addLocation=(t,i)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: addLocation","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_LOCATIONS_TRIGGERED,{payload:{params:t,methodName:"addLocation",source:"external"}}),t&&typeof t=="object"?this.getService(D).addLocation({location:t,source:"external"}):this.getService(l).catch("Error in addLocation: ","Invalid location params provided.")}catch(n){this.getService(l).catch("Error in addLocation: ",n)}}),this.setScrollableElementsIds=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setScrollableElementsIds","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_SCROLLABLE_ELEMENTS_IDS_TRIGGERED,{payload:{ids:t}}),t?this.getService(fe).setScrollableElementsIds(t):this.getService(l).catch("Error in setScrollableElementsIds: ","Invalid ids provided.")}catch(n){this.getService(l).catch("Error in setScrollableElementsIds: ",n)}},this.removeLocation=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: removeLocation","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.REMOVE_LOCATIONS_TRIGGERED,{payload:{location:t},methodName:"removeLocation",source:"external"}),this.getService(D).removeLocation({location:t,source:"external"})}catch(n){this.getService(l).catch("Error in removeLocation: ",n)}},this.removeLocations=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: removeLocations","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.REMOVE_LOCATIONS_TRIGGERED,{payload:{locations:t},methodName:"removeLocations",source:"external"}),this.getService(D).removeLocations({locations:t,source:"external"})}catch(n){this.getService(l).catch("Error in removeLocations: ",n)}},this.unsetLocationIds=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: unsetLocationIds","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.UNSET_LOCATIONS_TRIGGERED,{payload:{locationIds:t},methodName:"unsetLocationIds",source:"external"}),this.getService(D).unsetLocationIds(t,"external")}catch(n){this.getService(l).catch("Error in unsetLocationIds: ",n)}},this.excludeLocationIds=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: excludeLocationIds","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.EXCLUDE_LOCATION_IDS_TRIGGERED,{payload:{ids:t}}),typeof t=="object"&&t instanceof Array&&(t=t.filter(n=>typeof n=="string"),this.getService(D).excludeLocationIds(t))}catch(n){this.getService(l).catch("Error in excludeLocationIds: ",n)}},this.updateContactList=(t,i,n)=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateContactList","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.UPDATE_CONTACT_LIST_TRIGGERED,{payload:{userContacts:t,config:i}}),typeof t=="object"&&t instanceof Array&&(!i||i&&typeof i=="object")&&(t=JSON.parse(JSON.stringify(t)),this.getService(Z).updateContactList(t,i))}catch(o){this.getService(l).catch("Error in updateContactList: ",o)}},this.removeScrollableElementsIds=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: removeScrollableElementsIds","color: green;");try{t?.ha||this.trackEvent(g.Events.Core.REMOVE_SCROLLABLE_ELEMENTS_IDS_TRIGGERED),this.getService(fe).removeScrollableElementsIds()}catch(i){this.getService(l).catch("Error in removeScrollableElementsIds: ",i)}},this.getPresenceElement=t=>{this.ensureFeatureEnabled(C.PRESENCE),this.getService(l).log("%c[WB] Calling FUNCTION: getPresenceElement","color: green;");try{let i=new Xi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getPresenceElement: ",i),null}},this.preloadPresence=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadPresence","color: green;"),this.ensureFeatureEnabled(C.PRESENCE),this.getService(T).ensurePresenceChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadPresence: ",t)})),this.getCursorElement=t=>{this.ensureFeatureEnabled(C.CURSOR),this.getService(l).log("%c[WB] Calling FUNCTION: getCursorElement","color: green;");try{let i=new Hi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getCursorElement: ",i),null}},this.preloadCursor=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadCursor","color: green;"),this.ensureFeatureEnabled(C.CURSOR),this.getService(T).ensureCursorChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadCursor: ",t)})),this.getCommentElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getCommentElement","color: green;"),this.ensureFeatureEnabled(C.COMMENT);try{let n=new Gi(this.injector,this.getService(T));return t?.ha&&n.ha(t.ha),n}catch(i){return this.getService(l).catch("Error in getCommentElement: ",i),null}},this.preloadComment=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadComment","color: green;"),this.ensureFeatureEnabled(C.COMMENT),this.getService(T).ensureCommentChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadComment: ",t)})),this._suggestionElement=null,this.getSuggestionElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSuggestionElement","color: green;");try{return this._suggestionElement||(this._suggestionElement=new ir(this.injector)),t?.ha&&this._suggestionElement.ha(t.ha),this._suggestionElement}catch(i){return this.getService(l).catch("Error in getSuggestionElement: ",i),null}},this.getTagElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getTagElement","color: green;");try{this.ensureFeatureEnabled(C.TAG);let i=new rr(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getTagElement: ",i),null}},this.preloadTag=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadTag","color: green;"),this.ensureFeatureEnabled(C.TAG),this.getService(T).ensureTagChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadTag: ",t)})),this.getSelectionElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSelectionElement","color: green;");try{this.ensureFeatureEnabled(C.LIVE_SELECTION);let i=new tr(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getSelectionElement: ",i),null}},this.preloadSelection=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadSelection","color: green;"),this.ensureFeatureEnabled(C.LIVE_SELECTION),this.getService(T).ensureSelectionChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadSelection: ",t)})),this.getRecorderElement=t=>{this.ensureFeatureEnabled(C.RECORDER),this.getService(l).log("%c[WB] Calling FUNCTION: getRecorderElement","color: green;");try{let i=new Zi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getRecorderElement: ",i),null}},this.preloadRecorder=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadRecorder","color: green;"),this.ensureFeatureEnabled(C.RECORDER),this.getService(T).ensureRecorderChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadRecorder: ",t)})),this.getContactElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getContactElement","color: green;");try{let i=new ji(this.injector);return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getContactElement: ",i),null}},this.getRewriterElement=t=>{this.ensureFeatureEnabled(C.REWRITER),this.getService(l).log("%c[WB] Calling FUNCTION: getRewriterElement","color: green;");try{let i=new er(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getRewriterElement: ",i),null}},this.preloadRewriter=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadRewriter","color: green;"),this.ensureFeatureEnabled(C.REWRITER),this.getService(T).ensureRewriterChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadRewriter: ",t)})),this.getHuddleElement=t=>{this.ensureFeatureEnabled(C.HUDDLE),this.getService(l).log("%c[WB] Calling FUNCTION: getHuddleElement","color: green;");try{let i=new Qi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getHuddleElement: ",i),null}},this.preloadHuddle=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadHuddle","color: green;"),this.ensureFeatureEnabled(C.HUDDLE),this.getService(T).ensureHuddleChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadHuddle: ",t)})),this.getLiveStateSyncElement=t=>{this.ensureFeatureEnabled(C.LIVE_STATE_SYNC),this.getService(l).log("%c[WB] Calling FUNCTION: getLiveStateSyncElement","color: green;");try{let i=new Yi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getLiveStateSyncElement: ",i),null}},this.preloadLiveStateSync=()=>(this.ensureFeatureEnabled(C.LIVE_STATE_SYNC),this.getService(T).ensureLiveStateSyncChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadLiveStateSync: ",t)})),this.getArrowElement=t=>{this.ensureFeatureEnabled(C.ARROW),this.getService(l).log("%c[WB] Calling FUNCTION: getArrowElement","color: green;");try{let i=new Bi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getArrowElement: ",i),null}},this.preloadArrow=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadArrow","color: green;"),this.ensureFeatureEnabled(C.ARROW),this.getService(T).ensureArrowChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadArrow: ",t)})),this.getViewsElement=t=>{this.ensureFeatureEnabled(C.VIEWS),this.getService(l).log("%c[WB] Calling FUNCTION: getViewsElement","color: green;");try{let i=new nr(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getViewsElement: ",i),null}},this.preloadViews=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadViews","color: green;"),this.ensureFeatureEnabled(C.VIEWS),this.getService(T).ensureViewChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadViews: ",t)})),this.preloadUserInvite=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadUserInvite","color: green;"),this.ensureFeatureEnabled(C.USER_INVITE),this.getService(T).ensureUserInviteChunk().catch(t=>{this.getService(l).catch("Error in preloadUserInvite: ",t)})),this.preloadUserRequest=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadUserRequest","color: green;"),this.ensureFeatureEnabled(C.USER_REQUEST),this.getService(T).ensureUserRequestChunk().catch(t=>{this.getService(l).catch("Error in preloadUserRequest: ",t)})),this.preloadVideoPlayer=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadVideoPlayer","color: green;"),this.ensureFeatureEnabled(C.VIDEO_PLAYER),this.getService(T).ensureVideoPlayerChunk().catch(t=>{this.getService(l).catch("Error in preloadVideoPlayer: ",t)})),this.getNotificationElement=t=>{this.ensureFeatureEnabled(C.NOTIFICATION),this.getService(l).log("%c[WB] Calling FUNCTION: getNotificationElement","color: green;");try{let i=new Ki(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getNotificationElement: ",i),null}},this.preloadNotification=()=>(this.ensureFeatureEnabled(C.NOTIFICATION),this.getService(l).log("%c[WB] Calling FUNCTION: preloadNotification","color: green;"),this.getService(T).ensureNotificationChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadNotification: ",t)})),this.getAutocompleteElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getAutocompleteElement","color: green;");try{let i=new Vi(this.injector);return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getAutocompleteElement: ",i),null}},this.getDocElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getDocElement","color: green;");try{let i=new $i(this.injector);return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getDocElement: ",i),null}},this.getActivityElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getActivityElement","color: green;");try{this.ensureFeatureEnabled(C.ACTIVITY);let i=new Ui(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getActivityElement: ",i),null}},this.preloadActivity=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: preloadActivity","color: green;");try{return this.ensureFeatureEnabled(C.ACTIVITY),this.getService(T).ensureActivityLogChunk().then(()=>{})}catch(t){return this.getService(l).catch("Error in preloadActivity: ",t),Promise.resolve()}},this.getAreaElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getAreaElement","color: green;");try{this.ensureFeatureEnabled(C.AREA);let i=new qi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getAreaElement: ",i),null}},this.preloadArea=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadArea","color: green;"),this.ensureFeatureEnabled(C.AREA),this.getService(T).ensureAreaChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadArea: ",t)})),this.getReactionElement=t=>{this.ensureFeatureEnabled(C.REACTION),this.getService(l).log("%c[WB] Calling FUNCTION: getReactionElement","color: green;");try{let i=new Ji(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getReactionElement: ",i),null}},this.preloadReaction=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadReaction","color: green;"),this.ensureFeatureEnabled(C.REACTION),this.getService(T).ensureReactionChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadReaction: ",t)})),this.getCrdtElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getCrdtElement","color: green;");try{this.ensureFeatureEnabled(C.CRDT);let i=new Wi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getCrdtElement: ",i),null}},this.preloadCrdt=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadCrdt","color: green;"),this.ensureFeatureEnabled(C.CRDT),this.getService(T).ensureCrdtChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadCrdt: ",t)})),this.getMetadata=t=>L(this,null,function*(){try{return t?.ha||this.trackEvent(g.Events.Core.GET_METADATA_TRIGGERED),this.getService(si).getGlobalMetadata()}catch(i){return this.getService(l).catch("Error in getMetadata: ",i),null}}),this.fetchDebugInfo=t=>L(this,null,function*(){try{return t?.ha||this.trackEvent(g.Events.Core.FETCH_DEBUG_INFO_TRIGGERED),this.getService(si).getDebugInfo()}catch(i){return this.getService(l).catch("Error in fetchDebugInfo: ",i),null}}),this.getDebugInfo=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_DEBUG_INFO_TRIGGERED),this.getService(si).getDebugInfo$()}catch(i){return this.getService(l).catch("Error in getDebugInfo: ",i),x(null)}},this.disableFeatures=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.DISABLE_FEATURES_TRIGGERED,{payload:{features:t}}),this.getService(B).disableFeatures(t)}catch(n){this.getService(l).catch("Error in disableFeatures: ",n)}},this.setDarkMode=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_DARK_MODE_TRIGGERED,{payload:{value:t}}),this.getService(At).setDarkMode(t)}catch(n){this.getService(l).catch("Error in setDarkMode: ",n)}},this.setUnstyledMode=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_UNSTYLED_MODE_TRIGGERED,{payload:{value:t,keepFunctionalStyles:i?.keepFunctionalStyles}}),Fa(t,{keepFunctionalStyles:i?.keepFunctionalStyles})}catch(n){this.getService(l).catch("Error in setUnstyledMode: ",n)}},this.enableLogs=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_LOGS_TRIGGERED),this.getService(B).enableLogs()}catch(i){this.getService(l).catch("Error in enableLogs: ",i)}},this.disableLogs=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.DISABLE_LOGS_TRIGGERED),this.getService(B).disableLogs(t)}catch(n){this.getService(l).catch("Error in disableLogs: ",n)}},this.isUserAllowed$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.IS_USER_ALLOWED_TRIGGERED),this.getService(dt).isUserAllowed$()}catch(i){return this.getService(l).catch("Error in isUserAllowed$: ",i),x(!1)}},this.getUser=t=>{try{t?.ha||this.trackEvent(g.Events.Core.GET_USER_TRIGGERED);let i=this.getService(ie).getUser();if(i&&typeof i=="object"){let n=JSON.parse(JSON.stringify(i));return n?.clientOrganizationId&&(n.organizationId=n.clientOrganizationId,delete n.clientOrganizationId),n?.clientGroupId&&(n.groupId=n.clientGroupId,delete n.clientGroupId),delete n.userSnippylyId,n}else return null}catch(i){return this.getService(l).catch("Error in getUser: ",i),null}},this.getCurrentUser=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_CURRENT_USER_TRIGGERED),this.getService(ie).getUser$().pipe(Zn(i=>ss(i)))}catch(i){return this.getService(l).catch("Error in getCurrentUser: ",i),x(null)}},this.getHeartbeat=(t,i)=>{try{return i?.ha||this.trackEvent(g.Events.Core.GET_HEARTBEAT_TRIGGERED),this.getService(Ms).getHeartbeat(t)}catch(n){return this.getService(l).catch("Error in getHeartbeat: ",n),x({data:null})}},this.getUserRole$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_USER_ROLE_TRIGGERED),this.getService(dt).getRole$()}catch(i){return this.getService(l).catch("Error in getUserRole$: ",i),x("")}},this.getUserPermissions=(t,i)=>L(this,null,function*(){try{return i?.ha||this.trackEvent(g.Events.Core.GET_USER_PERMISSIONS_TRIGGERED,{payload:{request:t,source:"external"}}),this.getService(ui).getUserPermissions(t)}catch(n){return this.getService(l).catch("Error in getUserPermissions$: ",n),{}}}),this.getCurrentUserPermissions=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_CURRENT_USER_PERMISSIONS_TRIGGERED),this.getService(ui).getCurrentUserPermissions$()}catch(i){return this.getService(l).catch("Error in getCurrentUserPermissions: ",i),x(null)}},this.getFeaturesAccessLevelIam$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_FEATURES_ACCESS_LEVEL_IAM_TRIGGERED),this.getService(dt).getFeaturesAccessLevel$()}catch(i){return this.getService(l).catch("Error in getFeaturesAccessLevel$: ",i),x(void 0)}},this.isPlanExpired$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.IS_PLAN_EXPIRED_TRIGGERED),this.getService(ie).isPlanExpired$()}catch(i){return this.getService(l).catch("Error in isPlanExpired$: ",i),x(!1)}},this.getCustomerMetadata$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_CUSTOMER_METADATA_TRIGGERED),this.getService(D).getCustomerMetadata$()}catch(i){return this.getService(l).catch("Error in getCustomerMetadata$: ",i),x(null)}},this.getDocumentMetadata=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_DOCUMENT_METADATA_TRIGGERED),this.getService(D).getDocumentMetadata$()}catch(i){return this.getService(l).catch("Error in getDocumentMetadata: ",i),x(null)}},this.getVeltInitState=t=>{try{return t?.ha,this.getService(or).getVeltInitState$()}catch(i){return this.getService(l).catch("Error in getVeltInitState: ",i),x(void 0)}},this.removeVeltContent=(t,i)=>{try{return i?.ha||this.trackEvent(g.Events.Core.REMOVE_VELT_CONTENT_TRIGGERED),this.getService(fe).removeSnippylyContent(t)}catch(n){return this.getService(l).catch("Error in removeVeltContent: ",n),""}},this.injectCustomCss=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.INJECT_CUSTOM_CSS_TRIGGERED),this.getService(l).log("%c[WB] Calling FUNCTION: injectCustomCss","color: green;"),this.getService(fe).setCustomCss(t)}catch(n){this.getService(l).catch("Error in injectCustomCss: ",n)}},this.setLanguage=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_LANGUAGE_TRIGGERED,{payload:{language:t}}),this.getService(Ke).setLanguage(t)}catch(n){this.getService(l).catch("Error in setLanguage: ",n)}},this.setTranslations=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_TRANSLATIONS_TRIGGERED,{payload:{translations:t}}),this.getService(Ke).setTranslations(t)}catch(n){this.getService(l).catch("Error in setTranslations: ",n)}},this.enableAutoTranslation=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_AUTO_TRANSLATION_TRIGGERED),this.getService(Ke).enableAutoTranslation()}catch(i){this.getService(l).catch("Error in enableAutoTranslation: ",i)}},this.disableAutoTranslation=t=>{try{t?.ha||this.trackEvent(g.Events.Core.DISABLE_AUTO_TRANSLATION_TRIGGERED),this.getService(Ke).disableAutoTranslation()}catch(i){this.getService(l).catch("Error in disableAutoTranslation: ",i)}},this.sf=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SF_TRIGGERED,{payload:{value:t}}),t?(document.querySelector(A.TAGS.SNIPPYLY_PLUGIN)||document.querySelector(A.TAGS.SUPERFLOW_TOOLBAR))&&this.getService(B).setSF(t):this.getService(B).setSF(t)}catch(n){this.getService(l).catch("Error in sf: ",n)}},this.st=(t,i)=>{try{i?.ha,this.getService(B).setSdkType(t)}catch(n){this.getService(l).catch("Error in st: ",n)}},this.getService=t=>this.injector.get(t),this.on=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: on","color: green;");try{return i?.ha,this.getService(oi).onAction(t)}catch(n){return this.getService(l).catch("Error in on: ",n),x(null)}},this.setUiState=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_UI_STATE_TRIGGERED,{payload:{uiState:t}}),this.getService(D).setUIState(t)}catch(n){this.getService(l).catch("Error in setUiState: ",n)}},this.getUiState=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_UI_STATE_TRIGGERED),this.getService(D).getUIState$()}catch(i){return this.getService(l).catch("Error in getUiState: ",i),x({})}},this.enableSafeEval=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_SAFE_EVAL_TRIGGERED),this.getService(B).enableSafeEval()}catch(i){this.getService(l).catch("Error in enableSafeEval: ",i)}},this.disableSafeEval=t=>{try{t?.ha||this.trackEvent(g.Events.Core.DISABLE_SAFE_EVAL_TRIGGERED),this.getService(B).disableSafeEval()}catch(i){this.getService(l).catch("Error in disableSafeEval: ",i)}},this.enableFirestorePersistentCache=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_FIRESTORE_PERSISTENT_CACHE_TRIGGERED),this.getService(B).enableFirestorePersistentCache()}catch(i){this.getService(l).catch("Error in enableFirestorePersistentCache: ",i)}},this.disableFirestorePersistentCache=t=>{try{t?.ha||this.trackEvent(g.Events.Core.DISABLE_FIRESTORE_PERSISTENT_CACHE_TRIGGERED),this.getService(B).disableFirestorePersistentCache()}catch(i){this.getService(l).catch("Error in disableFirestorePersistentCache: ",i)}},this.resetVeltButtonState=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.RESET_VELT_BUTTON_STATE_TRIGGERED,{payload:{config:t}}),this.getService(Ts).resetVeltButtonState(t)}catch(n){this.getService(l).catch("Error in resetVeltButtonState: ",n)}},this.getService(l).log("%c[WB] Creating CLASS: Snippyly","color: blue;")}preloadLazyChunksFromAllowList(e){try{let t=this.getService(T),i=[{feature:C.ARROW,name:"arrow",load:()=>t.ensureArrowChunk()},{feature:C.COMMENT,name:"comment",load:()=>t.ensureCommentChunk()},{feature:C.CURSOR,name:"cursor",load:()=>t.ensureCursorChunk()},{feature:C.HUDDLE,name:"huddle",load:()=>t.ensureHuddleChunk()},{feature:C.NOTIFICATION,name:"notification",load:()=>t.ensureNotificationChunk()},{feature:C.PRESENCE,name:"presence",load:()=>t.ensurePresenceChunk()},{feature:C.REACTION,name:"reaction",load:()=>t.ensureReactionChunk()},{feature:C.RECORDER,name:"recorder",load:()=>t.ensureRecorderChunk()},{feature:C.TAG,name:"tag",load:()=>t.ensureTagChunk()},{feature:C.REWRITER,name:"rewriter",load:()=>t.ensureRewriterChunk()},{feature:C.LIVE_SELECTION,name:"selection",load:()=>t.ensureSelectionChunk()},{feature:C.AREA,name:"area",load:()=>t.ensureAreaChunk()},{feature:C.ACTIVITY,name:"activity-log",load:()=>t.ensureActivityLogChunk()},{feature:C.VIEWS,name:"view",load:()=>t.ensureViewChunk()},{feature:C.USER_INVITE,name:"user-invite",load:()=>t.ensureUserInviteChunk()},{feature:C.USER_REQUEST,name:"user-request",load:()=>t.ensureUserRequestChunk()},{feature:C.VIDEO_PLAYER,name:"video-player",load:()=>t.ensureVideoPlayerChunk()},{feature:C.CRDT,name:"crdt",load:()=>t.ensureCrdtChunk()},{feature:C.LIVE_STATE_SYNC,name:"live-state-sync",load:()=>t.ensureLiveStateSyncChunk()}],n=e===void 0?i:i.filter(s=>e.includes(s.feature));if(!n.length){this.getService(l).log("%c[WB] preloadLazyChunksFromAllowList: no lazy chunks to preload","color: orange;");return}let o=e===void 0?"default-all":`allowList(${n.map(s=>s.name).join(",")})`;this.getService(l).log(`%c[WB] preloadLazyChunksFromAllowList: ${o}`,"color: green;");for(let s of n)s.load().catch(()=>{})}catch(t){this.getService(l).catch("Error in preloadLazyChunksFromAllowList: ",t)}}trackEvent(e,t={},i=!0){try{t||(t={}),t=G(k({},t),{source:"external"}),this.getService(Ot).trackAuthenticatedEvent(e,t,i)}catch(n){this.getService(l).catch("Error in _trackEvent: ",n);return}}};var Ga=(()=>{let e=class e{constructor(){this.veltElement=!0}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=j({type:e,selectors:[["app-external-styles"]],hostVars:1,hostBindings:function(n,o){n&2&&Ue("data-velt-element",o.veltElement)},standalone:!1,decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors:active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}html{--velt-base-rem-unit: 1}velt-wireframe{display:none!important}body.velt-pin-dragging iframe{pointer-events:none!important}:root{--legacy-velt-neutral-0: #000000;--legacy-velt-neutral-1: #141416;--legacy-velt-neutral-2: #23262F;--legacy-velt-neutral-3: #353945;--legacy-velt-neutral-4: #777E90;--legacy-velt-neutral-5: #B1B5C3;--legacy-velt-neutral-6: #E6E8EC;--legacy-velt-neutral-7: #F4F5F6;--legacy-velt-neutral-8: #FCFCFD;--legacy-velt-neutral-9: #FFFFFF;--legacy-velt-dark-1: #141416;--legacy-velt-dark-2: #222226;--legacy-velt-dark-3: #303034;--legacy-velt-dark-4: #404044;--legacy-velt-dark-5: #59595F;--legacy-velt-dark-6: #80808A;--legacy-velt-dark-7: #91919C;--legacy-velt-dark-8: #E5E5E9;--legacy-velt-primary-color: var(--legacy-velt-dark-1);--legacy-velt-primary-dark-color: var(--legacy-velt-dark-8);--legacy-velt-secondary-color: var(--legacy-velt-neutral-4);--legacy-velt-secondary-dark-color: var(--legacy-velt-dark-7);--legacy-velt-bg-color: var(--legacy-velt-neutral-8);--legacy-velt-bg-dark-color: var(--legacy-velt-dark-1);--legacy-velt-border-color: var(--legacy-velt-neutral-6);--legacy-velt-border-dark-color: var(--legacy-velt-dark-3);--legacy-velt-grey-2-color: #D4D6DF;--legacy-velt-grey-2-dark-color: var(--legacy-velt-dark-4);--legacy-velt-grey-4-color: #989898;--legacy-velt-grey-4-dark-color: var(--legacy-velt-dark-6);--legacy-velt-status-open-color: #625DF5;--legacy-velt-status-in-progress-color: #ECB000;--legacy-velt-status-resolved-color: #00C48C;--legacy-velt-purple: #625DF5;--legacy-velt-orange: #ECB000;--legacy-velt-green: #0DCF82;--legacy-velt-blue: #0d6efd;--legacy-velt-primary-btn-color: var(--legacy-velt-purple);--legacy-velt-hyperlink-color: var(--legacy-velt-purple);--legacy-velt-grey-btn-color: var(--legacy-velt-neutral-5);--legacy-velt-header-btn-color: var(--legacy-velt-neutral-3);--legacy-velt-dropdown-item-color: var(--legacy-velt-neutral-2);--legacy-velt-avatar-size: 2rem;--velt-default-font-family: sans-serif;--Icon-Size-Small: 12px;--Icon-Size-Medium: 16px;--Icon-Size-Large: 24px}:root[data-velt-theme=dark]{--legacy-velt-primary-color: var(--legacy-velt-primary-dark-color);--legacy-velt-secondary-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-bg-color: var(--legacy-velt-bg-dark-color);--legacy-velt-border-color: var(--legacy-velt-border-dark-color);--legacy-velt-grey-2-color: var(--legacy-velt-grey-2-dark-color);--legacy-velt-grey-4-color: var(--legacy-velt-grey-4-dark-color);--legacy-velt-primary-btn-color: var(--legacy-velt-border-dark-color);--legacy-velt-hyperlink-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-grey-btn-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-header-btn-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-dropdown-item-color: var(--legacy-velt-secondary-dark-color)}:root{--legacy-velt-tool-padding: 6px;--legacy-velt-tool-icon-size: 1.5rem;--legacy-velt-tool-icon-color: var(--legacy-velt-neutral-4);--legacy-velt-tool-border-radius: 50px;--legacy-velt-tool-border-color: transparent;--legacy-velt-tool-border: 2px solid var(--legacy-velt-tool-border-color);--legacy-velt-tool-bg-color: transparent;--legacy-velt-tool-focus-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-focus-icon-color: var(--legacy-velt-tool-icon-color);--legacy-velt-tool-focus-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-focus-border-color: var(--legacy-velt-neutral-7);--legacy-velt-tool-focus-border: 2px solid var(--legacy-velt-tool-focus-border-color);--legacy-velt-tool-focus-bg-color: var(--legacy-velt-tool-bg-color);--legacy-velt-tool-hover-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-hover-icon-color: var(--legacy-velt-neutral-3);--legacy-velt-tool-hover-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-hover-border-color: var(--legacy-velt-neutral-7);--legacy-velt-tool-hover-border: 2px solid var(--legacy-velt-tool-hover-border-color);--legacy-velt-tool-hover-bg-color: var(--legacy-velt-neutral-7);--legacy-velt-tool-active-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-active-icon-color: var(--legacy-velt-neutral-9);--legacy-velt-tool-active-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-active-border-color: var(--legacy-velt-purple);--legacy-velt-tool-active-border: 2px solid var(--legacy-velt-tool-active-border-color);--legacy-velt-tool-active-bg-color: var(--legacy-velt-purple)}:root[data-velt-theme=dark],:root:not(data-velt-theme) velt-comment-tool[dark],:root:not(data-velt-theme) velt-sidebar-button[dark],:root:not(data-velt-theme) velt-arrow-tool[dark],:root:not(data-velt-theme) velt-reaction-tool[dark],:root:not(data-velt-theme) velt-huddle-tool[dark],:root:not(data-velt-theme) velt-recorder-tool[dark],:root:not(data-velt-theme) velt-user-invite-tool[dark],:root:not(data-velt-theme) velt-user-request-tool[dark],:root:not(data-velt-theme) velt-notifications-tool[dark],:root:not(data-velt-theme) app-recorder-all-tool-menu[dark],:root:not(data-velt-theme) snippyly-recording-preview-steps-dialog[dark],:root:not(data-velt-theme) snippyly-recorder-control-panel-internal[dark],:root:not(data-velt-theme) snippyly-recorder-player-internal[dark],:root:not(data-velt-theme) snippyly-recorder-control-panel-embed[dark],:root:not(data-velt-theme) snippyly-recorder-player-embed[dark],:root:not(data-velt-theme) velt-recorder-control-panel-embed[dark],:root:not(data-velt-theme) velt-recorder-player-embed[dark],:root:not(data-velt-theme) velt-recorder-player-expanded[dark]:root:not(data-velt-theme) app-transcription-panel[dark]{--legacy-velt-tool-icon-size: 1.5rem;--legacy-velt-tool-icon-color: var(--legacy-velt-neutral-4);--legacy-velt-tool-border-radius: 50px;--legacy-velt-tool-border-color: transparent;--legacy-velt-tool-border: 2px solid var(--legacy-velt-tool-border-color);--legacy-velt-tool-bg-color: transparent;--legacy-velt-tool-focus-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-focus-icon-color: var(--legacy-velt-tool-icon-color);--legacy-velt-tool-focus-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-focus-border-color: var(--legacy-velt-neutral-2);--legacy-velt-tool-focus-border: 2px solid var(--legacy-velt-tool-focus-border-color);--legacy-velt-tool-focus-bg-color: var(--legacy-velt-tool-bg-color);--legacy-velt-tool-hover-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-hover-icon-color: var(--legacy-velt-neutral-5);--legacy-velt-tool-hover-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-hover-border-color: var(--legacy-velt-neutral-1);--legacy-velt-tool-hover-border: 2px solid var(--legacy-velt-tool-hover-border-color);--legacy-velt-tool-hover-bg-color: var(--legacy-velt-neutral-1);--legacy-velt-tool-active-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-active-icon-color: var(--legacy-velt-neutral-9);--legacy-velt-tool-active-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-active-border-color: var(--legacy-velt-purple);--legacy-velt-tool-active-border: 2px solid var(--legacy-velt-tool-active-border-color);--legacy-velt-tool-active-bg-color: var(--legacy-velt-purple)}snippyly-user-avatar,velt-user-avatar{--legacy-velt-user-avatar-size: var(--legacy-velt-avatar-size);--legacy-velt-user-avatar-initial-font-size: .8}snippyly-follow-overlay,velt-follow-overlay{--legacy-velt-follow-overlay-bg-color: var(--legacy-velt-bg-color);--legacy-velt-follow-overlay-text-color: var(--legacy-velt-primary-color);--legacy-velt-follow-overlay-btn-color: var(--legacy-velt-neutral-6);--legacy-velt-follow-overlay-btn-hover-color: var(--legacy-velt-neutral-5);--legacy-velt-follow-overlay-border-color: var(--legacy-velt-border-color)}snippyly-follow-overlay[dark],velt-follow-overlay[dark]{--legacy-velt-follow-overlay-bg-color: var(--legacy-velt-bg-dark-color);--legacy-velt-follow-overlay-text-color: var(--legacy-velt-primary-dark-color);--legacy-velt-follow-overlay-border-color: var(--legacy-velt-border-dark-color)}snippyly-cursor,velt-cursor{--legacy-velt-cursor-avatar-size: var(--legacy-velt-avatar-size);--legacy-velt-cursor-video-size: 4.2rem}snippyly-reaction-tool,velt-reaction-tool,app-reaction-tool{--legacy-velt-reaction-tool-icon-size: 2rem;--legacy-velt-reaction-tool-border-radius: 50px;--legacy-velt-reaction-tool-icon-color: #8F95B2;--legacy-velt-reaction-tool-hover-bg-color: #EAE8F9;--legacy-velt-reaction-tool-active-fill-color: white;--legacy-velt-reaction-tool-active-bg-color: var(--legacy-velt-purple)}snippyly-reaction-tool[dark],velt-reaction-tool[dark],app-reaction-tool[dark]{--legacy-velt-reaction-tool-icon-size: 2rem;--legacy-velt-reaction-tool-border-radius: 50px;--legacy-velt-reaction-tool-icon-color: #EAE8F9;--legacy-velt-reaction-tool-hover-bg-color: #8F95B2;--legacy-velt-reaction-tool-active-fill-color: white;--legacy-velt-reaction-tool-active-bg-color: var(--legacy-velt-purple)}velt-view-analytics-dialog{--legacy-velt-view-analytics-dialog-bg-color: #FFF;--legacy-velt-view-analytics-dialog-border-radius: 12px;--legacy-velt-view-analytics-dialog-border: 1px solid rgba(0, 0, 0, .08);--legacy-velt-view-analytics-dialog-box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, .12);--legacy-velt-view-analytics-dialog-padding: 8px;--legacy-velt-view-analytics-dialog-total-views-count-color: #111;--legacy-velt-view-analytics-dialog-total-views-text-color: #625DF5;--legacy-velt-view-analytics-dialog-today-views-text-color: #848297;--legacy-velt-view-analytics-dialog-views-container-bg-color: #F4F3FF;--legacy-velt-view-analytics-dialog-user-name-color: #4C5366;--legacy-velt-view-analytics-dialog-user-timestamp-color: #959595;--legacy-velt-view-analytics-dialog-back-btn-color: #8F95B2}velt-view-analytics-dialog[dark]{--legacy-velt-view-analytics-dialog-bg-color: #131229;--legacy-velt-view-analytics-dialog-border-radius: 12px;--legacy-velt-view-analytics-dialog-border: 1px solid rgba(255, 255, 255, .08);--legacy-velt-view-analytics-dialog-box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, .12);--legacy-velt-view-analytics-dialog-padding: 8px;--legacy-velt-view-analytics-dialog-total-views-count-color: #FFF;--legacy-velt-view-analytics-dialog-total-views-text-color: #9491F8;--legacy-velt-view-analytics-dialog-today-views-text-color: #848297;--legacy-velt-view-analytics-dialog-views-container-bg-color: rgba(244, 243, 255, .06);--legacy-velt-view-analytics-dialog-user-name-color: #FFF;--legacy-velt-view-analytics-dialog-user-timestamp-color: rgba(255, 255, 255, .4)}velt-reaction-pin-tooltip-internal{--Surface-Neutral-0: #FFF;--Surface-Neutral-2: #F5F5F5;--Surface-Neutral-3: #F0F0F0;--Text-Neutral-0: #0A0A0A;--Text-Neutral-3: #292929;--Text-Neutral-5: #525252;--Text-Neutral-9: #999;--Text-Brand-Primary: #625DF5}velt-reaction-pin-tooltip-internal[dark]{--Surface-Neutral-0: #0F0F0F;--Surface-Neutral-2: #1F1F1F;--Surface-Neutral-3: #2F2F2F;--Text-Neutral-0: #FFF;--Text-Neutral-3: #E0E0E0;--Text-Neutral-5: #C2C2C2;--Text-Neutral-9: #ADADAD;--Text-Brand-Primary: #9491F8}:root{--velt-border-radius-2xs: calc((.125rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-xs: calc((.25rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-sm: calc((.5rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-md: calc((.75rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-lg: calc((1rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-xl: calc((1.25rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-2xl: calc((1.5rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-3xl: calc((2rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-full: calc((5rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-2xs: calc((.125rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-xs: calc((.25rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-sm: calc((.5rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-md: calc((.75rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-lg: calc((1rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-xl: calc((1.25rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-2xl: calc((1.5rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-2xs: calc((.625rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-xs: calc((.75rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-sm: calc((.875rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-md: calc((1rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-lg: calc((1.5rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-xl: calc((1.75rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-2xl: calc((2rem + 0px) * var(--velt-base-rem-unit));--velt-light-mode-green: #0DCF82;--velt-light-mode-magenta: #A259FE;--velt-light-mode-amber: #FF7162;--velt-light-mode-purple: #625DF5;--velt-light-mode-cyan: #4BC9F0;--velt-light-mode-orange: #FE965C;--velt-light-mode-black: #080808;--velt-light-mode-white: #FFFFFF;--velt-light-mode-gray: #EBEBEB;--velt-light-mode-error: #FF7162;--velt-light-mode-error-hover: #DE5041;--velt-light-mode-error-foreground: #FFFFFF;--velt-light-mode-error-light: #FFF4F2;--velt-light-mode-error-transparent: rgba(255, 113, 98, .08);--velt-light-mode-warning: #FFCD2E;--velt-light-mode-warning-hover: #C69400;--velt-light-mode-warning-foreground: #474747;--velt-light-mode-warning-light: #FFFBEE;--velt-light-mode-warning-transparent: rgba(255, 205, 46, .08);--velt-light-mode-success: #198F65;--velt-light-mode-success-hover: #006B41;--velt-light-mode-success-foreground: #FFFFFF;--velt-light-mode-success-light: #EDF6F3;--velt-light-mode-success-transparent: rgba(25, 143, 101, .08);--velt-light-mode-accent: #625DF5;--velt-light-mode-accent-text: #625DF5;--velt-light-mode-accent-hover: #534FCF;--velt-light-mode-accent-foreground: #FFFFFF;--velt-light-mode-accent-light: #F2F2FE;--velt-light-mode-accent-transparent: rgba(148, 145, 248, .08);--velt-light-mode-text-0: #0A0A0A;--velt-light-mode-text-1: #141414;--velt-light-mode-text-2: #1F1F1F;--velt-light-mode-text-3: #292929;--velt-light-mode-text-4: #3D3D3D;--velt-light-mode-text-5: #525252;--velt-light-mode-text-6: #666666;--velt-light-mode-text-7: #7A7A7A;--velt-light-mode-text-8: #858585;--velt-light-mode-text-9: #999999;--velt-light-mode-text-10: #B8B8B8;--velt-light-mode-text-11: #A3A3A3;--velt-light-mode-text-12: #8F8F8F;--velt-light-mode-background-0: #FFFFFF;--velt-light-mode-background-1: #FAFAFA;--velt-light-mode-background-2: #F5F5F5;--velt-light-mode-background-3: #F0F0F0;--velt-light-mode-background-4: #EBEBEB;--velt-light-mode-background-5: #E5E5E5;--velt-light-mode-background-6: #E0E0E0;--velt-light-mode-background-7: #DBDBDB;--velt-light-mode-background-8: #D6D6D6;--velt-light-mode-background-9: #D1D1D1;--velt-light-mode-background-10: #CCCCCC;--velt-light-mode-border-0: #FFFFFF;--velt-light-mode-border-1: #FAFAFA;--velt-light-mode-border-2: #F5F5F5;--velt-light-mode-border-3: #F0F0F0;--velt-light-mode-border-4: #EBEBEB;--velt-light-mode-border-5: #E5E5E5;--velt-light-mode-border-6: #E0E0E0;--velt-light-mode-border-7: #DBDBDB;--velt-light-mode-border-8: #D6D6D6;--velt-light-mode-border-9: #D1D1D1;--velt-light-mode-border-10: #CCCCCC;--velt-light-mode-background-transparent: rgba(255, 255, 255, .8);--velt-light-mode-border-transparent: rgba(0, 0, 0, .16);--velt-light-mode-animation-transparent: rgba(255, 255, 255, .2);--velt-dark-mode-green: #0DCF82;--velt-dark-mode-magenta: #A259FE;--velt-dark-mode-amber: #FF7162;--velt-dark-mode-purple: #625DF5;--velt-dark-mode-cyan: #4BC9F0;--velt-dark-mode-orange: #FE965C;--velt-dark-mode-black: #080808;--velt-dark-mode-white: #FFFFFF;--velt-dark-mode-gray: #EBEBEB;--velt-dark-mode-error: #FF7162;--velt-dark-mode-error-hover: #DE5041;--velt-dark-mode-error-foreground: #FFFFFF;--velt-dark-mode-error-light: #FFF4F2;--velt-dark-mode-error-transparent: rgba(255, 113, 98, .08);--velt-dark-mode-warning: #FFCD2E;--velt-dark-mode-warning-hover: #C69400;--velt-dark-mode-warning-foreground: #474747;--velt-dark-mode-warning-light: #FFFBEE;--velt-dark-mode-warning-transparent: rgba(255, 205, 46, .08);--velt-dark-mode-success: #198F65;--velt-dark-mode-success-hover: #006B41;--velt-dark-mode-success-foreground: #FFFFFF;--velt-dark-mode-success-light: #EDF6F3;--velt-dark-mode-success-transparent: rgba(25, 143, 101, .08);--velt-dark-mode-accent: #625DF5;--velt-dark-mode-accent-text: #9491F8;--velt-dark-mode-accent-hover: #534FCF;--velt-dark-mode-accent-foreground: #FFFFFF;--velt-dark-mode-accent-light: #F2F2FE;--velt-dark-mode-accent-transparent: rgba(148, 145, 248, .08);--velt-dark-mode-text-0: #FFFFFF;--velt-dark-mode-text-1: #F5F5F5;--velt-dark-mode-text-2: #EBEBEB;--velt-dark-mode-text-3: #E0E0E0;--velt-dark-mode-text-4: #D6D6D6;--velt-dark-mode-text-5: #C2C2C2;--velt-dark-mode-text-6: #ADADAD;--velt-dark-mode-text-7: #8F8F8F;--velt-dark-mode-text-8: #7A7A7A;--velt-dark-mode-text-9: #666666;--velt-dark-mode-text-10: #525252;--velt-dark-mode-text-11: #474747;--velt-dark-mode-text-12: #3D3D3D;--velt-dark-mode-background-0: #0F0F0F;--velt-dark-mode-background-1: #1A1A1A;--velt-dark-mode-background-2: #1F1F1F;--velt-dark-mode-background-3: #242424;--velt-dark-mode-background-4: #292929;--velt-dark-mode-background-5: #2E2E2E;--velt-dark-mode-background-6: #333333;--velt-dark-mode-background-7: #383838;--velt-dark-mode-background-8: #3D3D3D;--velt-dark-mode-background-9: #424242;--velt-dark-mode-background-10: #474747;--velt-dark-mode-border-0: #0F0F0F;--velt-dark-mode-border-1: #1A1A1A;--velt-dark-mode-border-2: #1F1F1F;--velt-dark-mode-border-3: #242424;--velt-dark-mode-border-4: #292929;--velt-dark-mode-border-5: #2E2E2E;--velt-dark-mode-border-6: #333333;--velt-dark-mode-border-7: #383838;--velt-dark-mode-border-8: #3D3D3D;--velt-dark-mode-border-9: #424242;--velt-dark-mode-border-10: #474747;--velt-dark-mode-background-transparent: rgba(0, 0, 0, .8);--velt-dark-mode-border-transparent: rgba(255, 255, 255, .16);--velt-dark-mode-animation-transparent: rgba(255, 255, 255, .2);--velt-comment-pin-z-index: 2147483557;--velt-arrow-z-index: 2147483557;--velt-recorder-player-z-index: 2147483557;--velt-cursor-z-index: 2147483647;--velt-persistent-comment-frame-z-index: 2147483647;--velt-toast-popup-z-index: 2147483647;--velt-live-state-sync-overlay-z-index: 2147483647;--velt-follow-mode-overlay-z-index: 2147483647;--velt-comments-minimap-z-index: 2147483637;--velt-global-overlay-z-index: 2147483637}*[data-snippyly-element=true],*[data-velt-element=true]{font-family:var(--velt-default-font-family)}.cdk-overlay-container{z-index:var(--velt-global-overlay-z-index)!important}.cdk-overlay-container .velt-overlay-panel.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}.velt-mat-dialog-container mat-dialog-container .mat-mdc-dialog-surface.mdc-dialog__surface{background-color:#fff;padding:24px}.velt-mat-dialog-container mat-dialog-container .mat-mdc-dialog-surface.mdc-dialog__surface .mdc-dialog__title:before{height:unset}.velt-mat-dialog-container mat-dialog-container .mat-mdc-dialog-actions{padding:var(--mat-dialog-actions-padding, 8px)}.velt-overlay-panel{background-color:transparent;border:none;box-shadow:none}.velt-overlay-panel.mat-mdc-tooltip-panel .mat-mdc-tooltip{color:#fff;background-color:#0b0b0b;border:1px solid #eeeeee;border-radius:4px;padding:8px 12px;font-size:14px}.velt-menu.mat-mdc-menu-panel{box-shadow:none}video.flip{transform:rotateY(180deg);-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg)}body[data-velt-huddle-on-cursor-mode] .cdk-overlay-container{z-index:calc(var(--velt-global-overlay-z-index, 2147483637) - 1)!important}body[data-velt-huddle-on-cursor-mode]:not(.show-pin-cursor){cursor:none!important}body[data-velt-huddle-on-cursor-mode]:not(.show-pin-cursor) *{cursor:none!important}body.snippyly-add-comment-mode,body.snippyly-add-comment-mode *{-webkit-user-select:none!important;user-select:none!important}body.snippyly-add-comment-mode [data-velt-iframe-container=true][data-velt-iframe-container-static=true]{position:relative!important}body.snippyly-add-comment-mode [data-velt-iframe-container=true]:before{content:""!important;position:absolute!important;inset:0!important;z-index:1!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] [data-velt-element=true]:not(snippyly-comment-text-portal):not(velt-recorder-control-panel):not([data-velt-screen-recorder-panel=true]){display:none!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] snippyly-text-highlight.snippyly-text-highlight{color:inherit!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight{color:inherit!important;background-color:inherit!important;cursor:inherit!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight.selected{background-color:inherit!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight snippyly-comment-text-portal,body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight velt-comment-text-portal{font-family:inherit!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight{color:transparent!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight.selected{color:transparent!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight .comment-annotation-number{display:none!important}:where([data-velt-pdf-viewer=true]) .textLayer:is(:has([data-snippyly-pin-host],[data-velt-pin-host]),:has(snippyly-comment-pin-portal,snippyly-tag-pin-portal,snippyly-recorder-pin-portal,snippyly-arrow-pin-portal,snippyly-area-pin-portal,velt-comment-pin-portal,velt-tag-pin-portal,velt-recorder-pin-portal,velt-arrow-pin-portal,velt-area-pin-portal)){opacity:1!important;visibility:visible!important}:where([data-velt-pdf-viewer=true]) .textLayer:is(:has([data-snippyly-pin-host],[data-velt-pin-host]),:has(snippyly-comment-pin-portal,snippyly-tag-pin-portal,snippyly-recorder-pin-portal,snippyly-arrow-pin-portal,snippyly-area-pin-portal,velt-comment-pin-portal,velt-tag-pin-portal,velt-recorder-pin-portal,velt-arrow-pin-portal,velt-area-pin-portal)) snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight{opacity:.2!important}[data-snippyly-comment-pin-host][data-snippyly-comment-pin-host-static],[data-snippyly-tag-pin-host][data-snippyly-tag-pin-host-static],[data-snippyly-recorder-pin-host][data-snippyly-recorder-pin-host-static],[data-snippyly-arrow-pin-host][data-snippyly-arrow-pin-host-static],[data-snippyly-area-pin-host][data-snippyly-area-pin-host-static],[data-velt-comment-pin-host][data-velt-comment-pin-host-static],[data-velt-tag-pin-host][data-velt-tag-pin-host-static],[data-velt-recorder-pin-host][data-velt-recorder-pin-host-static],[data-velt-arrow-pin-host][data-velt-arrow-pin-host-static],[data-velt-area-pin-host][data-velt-area-pin-host-static]{position:relative}[data-velt-comment-pin-host][data-velt-comment-pin-active=true],[data-velt-area-pin-host][data-velt-area-pin-active=true]{opacity:1!important;visibility:visible!important}.s-display-none,.velt-display-none{display:none!important}.s-flex,.velt-display-flex{display:flex!important}.velt-items-center{align-items:center!important}.s-background-blur-1{-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}.s-background-blur-2{-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important}.s-background-blur-3{-webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important}.s-background-blur-4{-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important}.s-tooltip{position:relative!important}.s-tooltip .s-tooltiptext{visibility:hidden!important;block-size:auto!important;width:max-content!important;top:120%!important;background-color:var(--legacy-velt-bg-color);border:1px solid var(--legacy-velt-border-color);color:var(--legacy-velt-primary-color)!important;text-align:left!important;padding:.5em .75em!important;border-radius:6px!important;font-style:normal!important;font-weight:400!important;font-size:12px!important;line-height:2em!important;box-shadow:var(--legacy-velt-box-shadow)!important;position:absolute!important;z-index:1!important;opacity:0!important;transition:opacity .5s!important;left:50%!important;transform:translate(-50%)!important}.s-tooltip .s-tooltiptext:after{content:" "!important;position:absolute!important;top:0!important;left:50%!important;width:12px!important;height:12px!important;border-left:1px solid var(--legacy-velt-border-color);border-top:1px solid var(--legacy-velt-border-color);background-color:var(--legacy-velt-bg-color);border-radius:4px!important;transform:translate(-50%,-41%) rotate(45deg)!important;transform-origin:center!important}.s-tooltip .s-tooltiptext:before{content:" ";position:absolute;top:0;left:50%;width:24px;height:24px;transform:translate(-50%,-41%);background:transparent}.s-tooltip .s-tooltiptext.left{top:50%!important;right:120%!important;transform:translateY(-50%)!important}.s-tooltip .s-tooltiptext.left:after{transform:translate(41%,-50%) rotate(45deg)!important;transform-origin:center!important;left:unset!important;right:0!important;top:50%!important}.s-tooltip .s-tooltiptext.left.top{top:100%!important;transform:translateY(-45%)!important}.s-tooltip .s-tooltiptext.left.top:after{transform:translate(41%,66%) rotate(45deg)!important;top:0!important}.s-tooltip:hover .s-tooltiptext{visibility:visible!important;opacity:1!important}.s-tooltip-light .s-tooltiptext{background-color:#fff!important;color:#000!important;box-shadow:0 2px 8px -2px #9f9f9f!important}.s-tooltip-light .s-tooltiptext:after{background-color:#fff!important}.s-tooltip-link{font-style:normal!important;font-weight:400!important;font-size:12px!important;line-height:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;color:#fff!important}.s-cursor-pointer,.velt-cursor-pointer{cursor:pointer!important}.s-shake{animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translateZ(0);backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}app-render-timer-wrapper{width:100%;height:100%}velt-comment-text[comment-available=true]{color:var(--Constant-Warning---Text, #E2A600);background-color:#e2a6001a;border-bottom:1px solid #E2A600}.velt-mat-bottom-sheet-container.snippyly-comment-bottom-sheet-container,.velt-mat-bottom-sheet-container.snippyly-comment-bottom-sheet-container .mat-bottom-sheet-container{padding:0!important}.velt-mat-bottom-sheet-container.snippyly-comment-bottom-sheet-container .velt-comment-dialog{width:100%!important;min-width:100%!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
36
- `],encapsulation:2,changeDetection:0});let r=e;return r})();function Mc(r,e){r&1&&(Ht(),$(0,"svg",6),J(1,"path",7),te())}function Nc(r,e){r&1&&(Ht(),$(0,"svg",6),J(1,"path",8)(2,"path",9),te())}function wc(r,e){if(r&1){let t=lt();$(0,"div",2),ge(1,Mc,2,0,"svg",3)(2,Nc,3,0,"svg",3),je(3),We(4,"translate"),Ht(),$(5,"svg",4),Ee("click",function(){let n=st(t).$implicit,o=q();return at(o.removeToast(n))}),J(6,"path",5),te()()}if(r&2){let t=e.$implicit;W("@fade",!0),X(),W("ngIf",t.type==="success"),X(),W("ngIf",t.type==="error"),X(),Ct(" ",He(4,4,t.message)," ")}}var Wa=(()=>{let e=class e{constructor(i,n,o){this.loggingService=i,this.toastService=n,this.elementRef=o,this.toasts=[],this.subscriptions=[];try{this.subscriptions.push(this.toastService.getToasts$().subscribe(s=>{this.toasts=s}))}catch(s){console.log(s)}}ngOnDestroy(){try{this.subscriptions.forEach(i=>{i.unsubscribe()})}catch{}}ngAfterViewInit(){try{setTimeout(()=>{this.moveToastTagToEnd()},5e3)}catch{}}moveToastTagToEnd(){try{let i=this.elementRef?.nativeElement;document.body.appendChild(i)}catch(i){this.loggingService.catch("Error in ToastPopupComponent moveToastTagToEnd: ",i)}}removeToast(i){this.toastService.removeToast(i)}};e.\u0275fac=function(n){return new(n||e)(R(l),R(Ps),R(ze))},e.\u0275cmp=j({type:e,selectors:[["velt-toast-popup"]],standalone:!1,decls:2,vars:1,consts:[[1,"s-notification-container"],["class","s-notification",4,"ngFor","ngForOf"],[1,"s-notification"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"s-last-item","s-notification-close-btn",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z","fill","#E6E8EC"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM17.7071 9.70711C18.0976 9.31658 18.0976 8.68342 17.7071 8.29289C17.3166 7.90237 16.6834 7.90237 16.2929 8.29289L11 13.5858L8.70711 11.2929C8.31658 10.9024 7.68342 10.9024 7.29289 11.2929C6.90237 11.6834 6.90237 12.3166 7.29289 12.7071L10.2929 15.7071C10.6834 16.0976 11.3166 16.0976 11.7071 15.7071L17.7071 9.70711Z","fill","#0DCF82"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z","fill","#FF7162"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z","fill","#FF7162"]],template:function(n,o){n&1&&($(0,"div",0),ge(1,wc,7,6,"div",1),te()),n&2&&(X(),W("ngForOf",o.toasts))},dependencies:[Zt,$e,De],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}.s-notification-container[_ngcontent-%COMP%]{position:fixed!important;top:5%!important;left:50%!important;transform:translate(-50%)!important;display:flex!important;justify-content:center!important;align-items:center!important;z-index:var(--velt-toast-popup-z-index)!important;gap:calc((.5rem + 0px) * var(--velt-base-rem-unit))!important;flex-direction:column!important}.s-notification[_ngcontent-%COMP%]{display:flex!important;padding:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;gap:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;border-radius:calc((10rem + 0px) * var(--velt-base-rem-unit))!important;background:#23262f!important;color:#e6e8ec!important;width:calc((30rem + 0px) * var(--velt-base-rem-unit))!important;max-width:90vw!important;align-items:center!important}.s-last-item[_ngcontent-%COMP%]{margin-left:auto!important}.s-notification-close-btn[_ngcontent-%COMP%]{cursor:pointer!important}"],data:{animation:[Nr("fade",[pi("false",ye({opacity:0})),pi("true",ye({opacity:1})),gi("false => true",[ye({opacity:0}),mi(1e3,ye({opacity:1}))]),gi("true => false",[mi(1e3,ye({opacity:0}))])])]},changeDetection:0});let r=e;return r})();function Uc(r,e){r&1&&J(0,"app-external-styles")}var pn=(()=>{let e=class e{set signInButton(i){this.translateService.setLanguage(i)}set translations(i){try{let n=i;if(typeof i=="string"&&(n=JSON.parse(i)),!n||typeof n!="object")return;this.translateService.setTranslations(n)}catch(n){this.loggingService.catch("Error in AppComponent set translations: ",n)}}set _autoTranslation(i){let n=i;typeof i=="string"&&(n=JSON.parse(i)),n?this.translateService.enableAutoTranslation():this.translateService.disableAutoTranslation()}onResize(i){this.setSnippylyViewportSize()}constructor(i,n,o,s,a,c,d,h,u,m,v){this.docService=i,this.domService=n,this.loggingService=o,this.viewportRuler=s,this.themeService=a,this.breakpointObserver=c,this.translateService=d,this.veltService=h,this.injector=u,this.configService=m,this.cd=v,this.snippyly=new sr(this.injector),this.stylesEnabled=null,this.getSnippyly=new uo,this.subscriptions=[],this.veltElement=!0,this.loggingService.log("%c[WB] Creating CLASS: AppComponent","color: blue;");try{this.subscriptions.push(this.docService.getDocumentPaths$().subscribe(()=>{this.domService.removeScrollableElementsIds()},f=>{this.loggingService.catch("Error in AppComponent getDocumentPaths subscription:",f)})),this.subscriptions.push(this.configService.getConfig$().pipe(to(f=>f!=null),io(1)).subscribe(f=>{try{this.stylesEnabled=f?.globalStyles!==!1,this.cd.detectChanges()}catch(y){this.loggingService.catch("Error in AppComponent config subscription:",y)}})),this.updateDeviceType(),this.updateDeviceOrientation(),this.setVeltVersion()}catch(f){this.loggingService.catch("Error in AppComponent constructor:",f)}}ngOnInit(){}ngAfterViewInit(){try{this.domService.setDeviceInfo(),this.setSnippylyViewportSize(),this.getSnippyly.emit(this.snippyly),this.setSnippylyRemBaseUnit(),this.subscriptions.push(this.domService.onWindowResize$().subscribe(()=>{this.setSnippylyRemBaseUnit()})),this.themeService.updateListenerOnConfigChange()}catch(i){this.loggingService.catch("Error in App After view init: ",i)}}setVeltVersion(){try{window?.Velt?.version&&localStorage.setItem(A.LOCAL_STORAGE.VELT_VERSION,window.Velt.version)}catch(i){this.loggingService.catch("Error in AppComponent setVeltVersion: ",i)}}updateDeviceType(){try{Object.values(Ho).forEach(n=>{Tt.Breakpoints[n]=this.breakpointObserver.isMatched(n),this.subscriptions.push(this.breakpointObserver.observe(n).subscribe(o=>{Tt.Breakpoints[n]=o.matches}))})}catch(i){this.loggingService.catch("Error in AppComponent updateDeviceType: ",i)}}updateDeviceOrientation(){try{Object.values(is).forEach(n=>{Tt.Orientations[n]=window.matchMedia(n).matches,this.subscriptions.push(this.breakpointObserver.observe(n).subscribe(o=>{Tt.Orientations[n]=o.matches}))})}catch(i){this.loggingService.catch("Error in AppComponent updateDeviceOrientation: ",i)}}observeHtmlTagChanges(){}setSnippylyRemBaseUnit(){try{let i=document.documentElement,n=window.getComputedStyle(i),o=16,s=+n.fontSize.replace("px",""),a=s?o/s:1;i.style.setProperty(A.VELT_BASE_REM_UNIT,a+"")}catch(i){this.loggingService.catch("Error in AppComponent setSnippylyRemBaseUnit: ",i)}}setSnippylyViewportSize(){try{setTimeout(()=>{let i=this.viewportRuler.getViewportSize(),n=document.documentElement;n.style.setProperty(A.VELT_VIEWPORT_WIDTH,i.width+"px"),n.style.setProperty(A.VELT_VIEWPORT_HEIGHT,i.height+"px")},100)}catch{}}ngOnDestroy(){try{this.subscriptions.forEach(i=>{i.unsubscribe()}),this.themeService.disablePrefersColorScheme()}catch{}}};e.\u0275fac=function(n){return new(n||e)(R(D),R(fe),R(l),R(Co),R(At),R(jo),R(Ke),R(or),R(be),R(B),R(kr))},e.\u0275cmp=j({type:e,selectors:[["app-root"]],hostVars:1,hostBindings:function(n,o){n&1&&Ee("resize",function(a){return o.onResize(a)},ho),n&2&&Ue("data-velt-element",o.veltElement)},inputs:{snippyly:"snippyly",signInButton:[0,"language","signInButton"],translations:"translations",_autoTranslation:[0,"autoTranslation","_autoTranslation"]},outputs:{getSnippyly:"getSnippyly"},standalone:!1,decls:3,vars:1,consts:[[4,"ngIf"]],template:function(n,o){n&1&&(ge(0,Uc,1,0,"app-external-styles",0),J(1,"velt-toast-popup")(2,"snippyly-live-state-sync-overlay")),n&2&&W("ngIf",o.stylesEnabled===!0)},dependencies:[$e,Ga,Wa],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important} snippyly-highlight-user-text.velt-live-selection-on-text-default{background-color:var(--velt-selection-color, rgba(162, 89, 254, .5333333333))!important} .velt-live-selection-on-element-default{outline:2px solid var(--velt-selection-color, #a259fe)!important} .snippyly-highlight{outline:var(--legacy-velt-comment-pin-highlight, 2px dashed #a259fe)!important} [snippyly-highlight-preview=true]{outline:2px solid green!important} body.snippyly-add-comment-mode.show-pin-cursor:not[data-velt-element], body.snippyly-add-comment-mode.show-pin-cursor[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not[data-velt-element]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0iIzYyNURGNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9InBhdGgtMS1pbnNpZGUtMV8yMDMyXzIzNjgxIiBmaWxsPSJ3aGl0ZSI+CjxwYXRoIGQ9Ik0wLjM1Mjk0MSAxOEMwLjE1ODAxNyAxOCAtNi45MDcxNWUtMDkgMTcuODQyIC0xLjU0Mjc1ZS0wOCAxNy42NDcxTC0zLjkzNDAyZS0wNyA5Qy02LjEwNjczZS0wNyA0LjAyOTQ0IDQuMDI5NDQgLTEuNzYxMzJlLTA3IDkgLTMuOTM0MDJlLTA3Vi0zLjkzNDAyZS0wN0MxMy45NzA2IC02LjEwNjczZS0wNyAxOCA0LjAyOTQ0IDE4IDlWOUMxOCAxMy45NzA2IDEzLjk3MDYgMTggOSAxOEwwLjM1Mjk0MSAxOFoiLz4KPC9tYXNrPgo8cGF0aCBkPSJNMC4zNTI5NDEgMThDMC4xNTgwMTcgMTggLTYuOTA3MTVlLTA5IDE3Ljg0MiAtMS41NDI3NWUtMDggMTcuNjQ3MUwtMy45MzQwMmUtMDcgOUMtNi4xMDY3M2UtMDcgNC4wMjk0NCA0LjAyOTQ0IC0xLjc2MTMyZS0wNyA5IC0zLjkzNDAyZS0wN1YtMy45MzQwMmUtMDdDMTMuOTcwNiAtNi4xMDY3M2UtMDcgMTggNC4wMjk0NCAxOCA5VjlDMTggMTMuOTcwNiAxMy45NzA2IDE4IDkgMThMMC4zNTI5NDEgMThaIiBmaWxsPSIjMTQxNDE2Ii8+CjxwYXRoIGQ9Ik0wLjM1Mjk0MSAxOEMwLjE1ODAxNyAxOCAtNi45MDcxNWUtMDkgMTcuODQyIC0xLjU0Mjc1ZS0wOCAxNy42NDcxTC0zLjkzNDAyZS0wNyA5Qy02LjEwNjczZS0wNyA0LjAyOTQ0IDQuMDI5NDQgLTEuNzYxMzJlLTA3IDkgLTMuOTM0MDJlLTA3Vi0zLjkzNDAyZS0wN0MxMy45NzA2IC02LjEwNjczZS0wNyAxOCA0LjAyOTQ0IDE4IDlWOUMxOCAxMy45NzA2IDEzLjk3MDYgMTggOSAxOEwwLjM1Mjk0MSAxOFoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMjAzMl8yMzY4MSkiLz4KPC9zdmc+Cg==) 0 31,auto} body.snippyly-add-tag-mode.show-pin-cursor:not[data-velt-element], body.snippyly-add-tag-mode.show-pin-cursor[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not[data-velt-element]{cursor:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczpieD0iaHR0cHM6Ly9ib3h5LXN2Zy5jb20iPgogIDxlbGxpcHNlIHN0eWxlPSJzdHJva2U6IHJnYigwLCAwLCAwKTsgZmlsbDogcmdiKDE2MiwgODksIDI1NCk7IHBhaW50LW9yZGVyOiBmaWxsOyBzdHJva2Utd2lkdGg6IDBweDsiIGN4PSIxNiIgY3k9IjE2IiByeD0iMTYiIHJ5PSIxNiIvPgogIDxwYXRoIGQ9Ik0gOS4zMzMgMjIgQyA5LjMzMyAyMiA4IDIyIDggMjAuNjY3IEMgOCAxOS4zMzMgOS4zMzMgMTUuMzMzIDE2IDE1LjMzMyBDIDIyLjY2NyAxNS4zMzMgMjQgMTkuMzMzIDI0IDIwLjY2NyBDIDI0IDIyIDIyLjY2NyAyMiAyMi42NjcgMjIgTCA5LjMzMyAyMiBaIE0gMTYgMTQgQyAxOS4wNzkgMTQgMjEuMDA0IDEwLjY2NyAxOS40NjQgOCBDIDE4Ljc1IDYuNzYyIDE3LjQyOSA2IDE2IDYgQyAxMi45MjEgNiAxMC45OTYgOS4zMzMgMTIuNTM2IDEyIEMgMTMuMjUgMTMuMjM3IDE0LjU3MSAxNCAxNiAxNCBaIiBzdHlsZT0iZmlsbDogcmdiKDI1NSwgMjU1LCAyNTUpOyIgYng6b3JpZ2luPSIwLjUgMC41Ii8+Cjwvc3ZnPg==) 16 16,auto!important} body.snippyly-add-arrow-mode.show-pin-cursor:not[data-velt-element], body.snippyly-add-arrow-mode.show-pin-cursor[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not[data-velt-element]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNiAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44MDU0IDEwLjAyMDdDMTQuNTQxMiA5Ljk5MTMxIDE1LjExMzggOS4zNzA5OCAxNS4wODQzIDguNjM1MThMMTQuODMwNiAyLjI4OTM5QzE0LjgwMjggMS41OTQ4NiAxNC4yNDYxIDEuMDM4MTkgMTMuNTUxNiAxLjAxMDQxTDcuMjA1NzEgMC43NTY1MzdDNi40Njk5MiAwLjcyNzEwMiA1Ljg0OTU4IDEuMjk5NzIgNS44MjAxNSAyLjAzNTUxQzUuNzkwNzEgMi43NzEzIDYuMzYzMzMgMy4zOTE2NCA3LjA5OTEyIDMuNDIxMDdMMTAuNDAyMSAzLjU1MzIxTDEuMjQxNzcgMTIuNzEzNkMwLjcyMTA2NyAxMy4yMzQzIDAuNzIxMDY3IDE0LjA3ODUgMS4yNDE3NyAxNC41OTkyQzEuNzYyNDYgMTUuMTE5OSAyLjYwNjY4IDE1LjExOTkgMy4xMjczOCAxNC41OTkyTDEyLjI4NzcgNS40Mzg4NkwxMi40MTk4IDguNzQxNzVDMTIuNDQ5MiA5LjQ3NzU0IDEzLjA2OTYgMTAuMDUwMiAxMy44MDU0IDEwLjAyMDdaIiBmaWxsPSIjOEY5NUIyIi8+Cjwvc3ZnPgo=) 15 0,auto!important} .selection-element-portal{display:flex!important} .snippyly-user-marker{cursor:default;display:inline;position:relative} .snippyly-user-marker:after{color:#fff;content:attr(data-name);display:none;font-style:normal;font-weight:400;left:0;line-height:1;opacity:0;position:absolute;top:-30px;transition:opacity .2s linear,transform .3s ease-in-out;white-space:nowrap;z-index:99999;padding:4px!important;font-size:calc((.8rem + 0px) * var(--velt-base-rem-unit));border-radius:8px;font-family:var(--velt-default-font-family, unset);transform:translate(-50%)} .snippyly-user-marker:hover:after, .snippyly-user-marker.active:after{animation:all 1s ease-in-out;display:block;opacity:1} .snippyly-user-marker .snippyly-user-marker-line{bottom:0;height:100%;position:absolute;width:0} .snippyly-user-marker .snippyly-user-marker-line .snippyly-user-marker-dot{border-radius:50%;cursor:default;display:block;height:4px;left:50%;position:absolute;top:-3px;transform:translate(-50%,-50%);width:4px} .snippyly-user-marker:after{background-color:var(--velt-selection-marker-color)!important} .snippyly-user-marker .snippyly-user-marker-line, .snippyly-user-marker .snippyly-user-marker-dot{border:1px solid var(--velt-selection-marker-color)!important;background-color:var(--velt-selection-marker-color)!important} .v-device-info-tooltip-container{display:flex;padding:calc((.25rem + 0px) * var(--velt-base-rem-unit)) calc((.5rem + 0px) * var(--velt-base-rem-unit));margin:calc((.5rem + 0px) * var(--velt-base-rem-unit));align-items:flex-start;flex-direction:column;gap:calc((.2rem + 0px) * var(--velt-base-rem-unit));border-radius:calc((.5rem + 0px) * var(--velt-base-rem-unit));background:var(--neutrals-1, #141416);color:var(--neutrals-10, #FFF);font-size:calc((.75rem + 0px) * var(--velt-base-rem-unit));font-style:normal;font-weight:400;line-height:normal} .v-device-info-tooltip-container.dark{background:var(--neutrals-3, #353945);color:var(--neutrals-10, #FFF)} .huddle-all-menu-panel{box-shadow:0 calc((1rem + 0px) * var(--velt-base-rem-unit)) calc((3rem + 0px) * var(--velt-base-rem-unit)) #0000002d!important;background-color:#fff!important;border-radius:8px;color:#000} .huddle-all-menu-panel .mat-mdc-menu-item{background-color:#fff!important;padding:0 calc((1rem + 0px) * var(--velt-base-rem-unit))!important;height:40px!important;min-height:40px!important;width:100%!important;font-size:calc((.9rem + 0px) * var(--velt-base-rem-unit))!important;display:flex!important;gap:8px!important;align-items:center!important;border:0!important;font-weight:unset!important;text-transform:unset!important;font-family:var(--velt-default-font-family, unset)!important} .huddle-all-menu-panel .mat-mdc-menu-item .mat-mdc-menu-item-text{font-size:calc((.9rem + 0px) * var(--velt-base-rem-unit))!important;display:flex!important;gap:8px!important;align-items:center!important;border:0!important;font-weight:unset!important;text-transform:unset!important;font-family:var(--velt-default-font-family, unset)!important} .huddle-all-menu-panel .mat-mdc-menu-item:hover{background-color:#f1f1f1!important} .huddle-all-menu-panel .mat-mdc-menu-item:disabled{color:#c4c4c4!important} .snippyly-huddle-menu-panel-overlay-panel{z-index:2147483617!important} .snippyly-huddle-banner-panel{top:0!important;left:0!important} .snippyly-huddle-banner-panel .huddle-banner{border:1px solid rgba(26,28,30,.1);box-shadow:0 2px 12px #001c3b1f;border-radius:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;position:fixed;background:#fff;z-index:2;top:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;right:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;color:#000} .snippyly-huddle-banner-panel .huddle-banner>div{display:flex} .snippyly-huddle-banner-panel .huddle-banner>div>*{padding:calc((.75rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .title{font-weight:600;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;line-height:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;margin:0!important} .snippyly-huddle-banner-panel .huddle-banner>div .subtitle{font-weight:400;font-size:14px!important;line-height:21px!important;margin:0} .snippyly-huddle-banner-panel .huddle-banner>div .action-btn-container{margin:calc((.75rem + 0px) * var(--velt-base-rem-unit)) 0 calc((.25rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .action-btn-container button{cursor:pointer} .snippyly-huddle-banner-panel .huddle-banner>div .join-btn{padding:calc((.5rem + 0px) * var(--velt-base-rem-unit)) calc((.75rem + 0px) * var(--velt-base-rem-unit))!important;background:#625df5;border-radius:90px!important;border:0;margin-right:calc((.5rem + 0px) * var(--velt-base-rem-unit))!important;color:#fff!important;font-weight:700;transition:.2s;font-size:calc((.8rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .join-btn:hover{background:#4742dc} .snippyly-huddle-banner-panel .huddle-banner>div .cancel-btn{color:#777e91;background:transparent;border:0;font-weight:700;font-size:calc((.8rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .close-btn{cursor:pointer} .velt-recorder-all-tool--menu-panel{overflow:unset!important} .velt-recorder-all-tool--menu-panel .mat-mdc-menu-content{padding:0!important} .v-view-analytics-overlay-panel{z-index:2147483617!important}"],changeDetection:0});let r=e;return r})();var qc=["menuRef"],Bc=["menuTrigger"],Vc=["*"];function Gc(r,e){r&1&&(Qt(0),J(1,"button",5),Yt())}var gn=(()=>{let e=class e{constructor(i){this.loggingService=i,this.menuItems=[],this.veltElement=!0}ngOnInit(){}ngAfterViewInit(){try{let i=this.menuTrigger?.nativeElement?.querySelector("[menu-items]");if(i){i.style.display="none";for(let n=0;n<i.children.length;n++){let o=i.children[n];this.menuItems.push(o)}setTimeout(()=>{this.addMenuOptions()},100)}}catch(i){this.loggingService.catch("Error in MenuComponent afterViewInit: ",i)}}ngAfterContentInit(){}addMenuOptions(){try{this.menuRef&&this.menuRef._allItems.forEach((i,n)=>{i._getHostElement()?.appendChild(this.menuItems[n])})}catch(i){this.loggingService.catch("Error in MenuComponent addMenuOptions: ",i)}}};e.\u0275fac=function(n){return new(n||e)(R(l))},e.\u0275cmp=j({type:e,selectors:[["snippyly-menu"]],viewQuery:function(n,o){if(n&1&&(Kt(qc,5),Kt(Bc,5)),n&2){let s;Xt(s=Jt())&&(o.menuRef=s.first),Xt(s=Jt())&&(o.menuTrigger=s.first)}},hostVars:1,hostBindings:function(n,o){n&2&&Ue("data-velt-element",o.veltElement)},standalone:!1,ngContentSelectors:Vc,decls:7,vars:4,consts:[["menuTrigger","","menuTriggerRef","matMenuTrigger"],["menuRef","matMenu"],[3,"matMenuTriggerFor"],[1,"velt-menu","snippyly-menu-panel"],[4,"ngFor","ngForOf"],["mat-menu-item",""]],template:function(n,o){if(n&1&&(Ve(),$(0,"div",2,0),Ge(3),te(),$(4,"mat-menu",3,1),ge(6,Gc,2,0,"ng-container",4),te()),n&2){let s=Tr(2),a=Tr(5);_t("active",s==null?null:s.menuOpen),W("matMenuTriggerFor",a),X(6),W("ngForOf",o.menuItems)}},dependencies:[Zt,Jo,Xo,Zo],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}[_nghost-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box;-webkit-tap-highlight-color:rgba(255,255,255,0)!important;outline:none!important;margin:0!important;padding:0!important;height:unset;width:unset;text-align:left!important;line-height:1.5!important;color:#000!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))}[_nghost-%COMP%] *[_ngcontent-%COMP%]:empty{display:revert!important} .snippyly-menu-panel{box-shadow:0 calc((1rem + 0px) * var(--velt-base-rem-unit)) calc((3rem + 0px) * var(--velt-base-rem-unit)) #0000002d!important;background-color:#fff!important;border-radius:8px!important} .snippyly-menu-panel button{background-color:#fff;padding:0 calc((1rem + 0px) * var(--velt-base-rem-unit))!important;height:40px!important;width:100%!important;font-size:calc((.9rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-menu-panel button:hover{background-color:#f1f1f1}"],changeDetection:0});let r=e;return r})();var $a=(()=>{let e=class e{constructor(i,n){this.injector=i,this.configService=n,this.suppressAll=!1,this.permissionDeniedErrorCount=0;try{this.configService.getDisableLogsConfig$().subscribe(o=>{this.suppressAll=o?.suppressAll??!1}),window.addEventListener("error",o=>{try{o?.filename?.includes("velt.js")&&(this.handleError(o.error),o.preventDefault())}catch{}}),window.addEventListener("unhandledrejection",o=>{try{(o?.reason?.stack||String(o?.reason||"")).includes("velt.js")&&this.suppressAll&&(this.handleError(o.reason),o.preventDefault())}catch{}})}catch{}}handleError(i){try{if(i?.message?.includes("ExpressionChangedAfterItHasBeenCheckedError"))return;let n=i?.message||"",o=i?.code||"",s=!1;if(typeof o=="string"&&o?.toLowerCase()?.includes("permission_denied")?(s=!0,this.permissionDeniedErrorCount++):typeof n=="string"&&n?.toLowerCase()?.includes("permission_denied")&&(s=!0,this.permissionDeniedErrorCount++),s&&this.permissionDeniedErrorCount>2)return;let a=this.injector.get(Ot);a&&a.trackEvent(g.Events.Core.SDK_UNCAUGHT_ERROR,{message:i?.message?i?.message:i,clientUserId:a?.user?.userId,snippylyUserId:a?.user?.userSnippylyId,source:"sdk"})}catch{}}};e.\u0275fac=function(n){return new(n||e)(U(be),U(B))},e.\u0275prov=le({token:e,factory:e.\u0275fac});let r=e;return r})();var jc=["*"],Qa=(()=>{let e=class e{constructor(i,n,o,s){this.el=i,this.domService=n,this.loggingService=o,this.wireframeService=s;try{this.loggingService.log("%c[WB] Creating CLASS: WireframeComponent","color: blue;")}catch(a){this.loggingService.catch("Error in WireframeComponent constructor: ",a)}}ngAfterContentInit(){try{this.loggingService.log("%c[WB] Calling WireframeComponent FUNCTION: ngAfterContentInit","color: green;");let i=this.el.nativeElement.querySelectorAll(":scope > *"),n=new Map;i.forEach(o=>{if(o.nodeType===1){let s=o;if(s&&s?.tagName?.toLowerCase()?.startsWith("velt-")){let c=s.tagName.toLowerCase();if(c==="velt-comment-dialog-composer-action-button-wireframe"||c==="velt-comment-dialog-composer-format-toolbar-button-wireframe"){let u=s.getAttribute("type");u&&(c+=`--${u}`)}let d=s.getAttribute("variant");d&&(c+=`---${d}`);let h=this.domService.deepCloneElement(s);this.domService.setRandomNumberToElementRecursive(h),n.set(c,h)}}}),this.wireframeService.setWireframeMap(n)}catch(i){this.loggingService.catch("Error in WireframeComponent ngAfterContentInit: ",i)}}};e.\u0275fac=function(n){return new(n||e)(R(ze),R(fe),R(l),R(gs))},e.\u0275cmp=j({type:e,selectors:[["app-wireframe"]],standalone:!1,ngContentSelectors:jc,decls:1,vars:0,template:function(n,o){n&1&&(Ve(),Ge(0))},encapsulation:2,changeDetection:0});let r=e;return r})();var Ya=(()=>{let e=class e{set _hotkey(i){try{this.hotkey=i,this.setListData()}catch{}}set _listData(i){try{this.listData=Wc(i),this.setListData()}catch{}}constructor(i,n){this.autocompleteService=i,this.loggingService=n,this.hotkey="",this.listData=[];try{this.loggingService.log("%c[WB] Creating COMPONENT AutocompleteComponent","color: blue;")}catch(o){this.loggingService.catch("Error in AutocompleteComponent constructor: ",o)}}setListData(){try{this.loggingService.log("%c[WB] Calling AutocompleteComponent FUNCTION: setListData","color: green;"),Hc(this.hotkey,this.listData)&&this.autocompleteService.create({hotkey:this.hotkey,data:this.listData,type:"custom"})}catch(i){this.loggingService.catch("Error in AutocompleteComponent setListData: ",i)}}ngOnDestroy(){try{this.loggingService.log("%c[WB] Calling AutocompleteComponent FUNCTION: OnDestroy","color: green;"),this.hotkey&&this.autocompleteService.remove(this.hotkey)}catch(i){this.loggingService.catch("Error in AutocompleteComponent OnDestroy: ",i)}}};e.\u0275fac=function(n){return new(n||e)(R(Ye),R(l))},e.\u0275cmp=j({type:e,selectors:[["velt-autocomplete-internal"]],inputs:{_hotkey:[0,"hotkey","_hotkey"],_listData:[0,"listData","_listData"]},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let r=e;return r})();function Wc(r){return typeof r=="string"?JSON.parse(r):r}function Hc(r,e){return!!(r&&e?.length)}var Yc=(r,e)=>({componentConfigSignal:r,parentLocalUIState:e}),Kc=(r,e)=>({condition:r,data:e}),Xc=()=>({"line-height":"20px"});function Jc(r,e){if(r&1){let t=lt();$(0,"mark",7),Ee("click",function(){st(t);let n=q(5);return at(n.onClick())}),je(1),We(2,"translate"),te()}if(r&2){let t=q(4),i=q();_t("velt-autocomplete--contact-chip-current-user",(t==null||t.user==null?null:t.user.userId)&&(t==null||t.contact==null?null:t.contact.userId)===(t==null||t.user==null?null:t.user.userId))("current-user-chip",(t==null||t.user==null?null:t.user.userId)&&(t==null||t.contact==null?null:t.contact.userId)===(t==null||t.user==null?null:t.user.userId)),X(),Ct(" ",He(2,5,(t==null||t.contact==null?null:t.contact.name)||(t==null||t.contact==null?null:t.contact.email)||i.email))}}function Zc(r,e){if(r&1){let t=lt();$(0,"mark",8),Ee("click",function(){st(t);let n=q(5);return at(n.onClick())}),je(1),We(2,"translate"),te()}if(r&2){let t=q(4);X(),Ct(" ",He(2,1,(t==null||t.group==null||t.group.group==null||t.group.group.metadata==null?null:t.group.group.metadata.groupName)||(t==null||t.group==null?null:t.group.text)))}}function ed(r,e){if(r&1&&(J(0,"div",10),We(1,"safeSvg")),r&2){let t=q(5);W("innerHtml",He(1,1,t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null?null:t.custom.custom.icon.svg),lo)}}function td(r,e){if(r&1&&J(0,"img",11),r&2){let t=q(5);W("src",t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null?null:t.custom.custom.icon.url,co)}}function id(r,e){if(r&1){let t=lt();$(0,"div",9),Ee("click",function(){st(t);let n=q(5);return at(n.onClick())}),qe(1,ed,2,3,"div",10),qe(2,td,1,1,"img",11),$(3,"span"),je(4),We(5,"translate"),te()()}if(r&2){let t=q(4);X(),Be(!(t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null)&&t.custom.custom.icon.svg?1:-1),X(),Be(!(t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null)&&t.custom.custom.icon.url?2:-1),X(2),Or(He(5,3,t==null||t.custom==null||t.custom.custom==null?null:t.custom.custom.name))}}function rd(r,e){if(r&1&&qe(0,Jc,3,7,"mark",4)(1,Zc,3,3,"mark",5)(2,id,6,5,"div",6),r&2){let t=q(4);Be(t.type==="contact"?0:t.type==="group"?1:t.type==="custom"?2:-1)}}function nd(r,e){if(r&1&&J(0,"velt-autocomplete-chip-tooltip-internal",12),r&2){let t=q(3),i=q();W("componentConfigSignal",i.componentConfigSignal)("shadowDom",!!(t!=null&&t.shadowDom))}}function od(r,e){r&1&&($(0,"app-overlay-tooltip"),ge(1,rd,3,1,"ng-template",null,0,Rr)(3,nd,1,2,"ng-template",null,1,Rr),te())}function sd(r,e){r&1&&J(0,"velt-skeleton-loader-internal",3),r&2&&W("borderRadius","4px")("customStyles",po(2,Xc))}function ad(r,e){if(r&1&&(Qt(0),qe(1,od,5,0,"app-overlay-tooltip")(2,sd,1,3,"velt-skeleton-loader-internal",3),Yt()),r&2){let t=q(2);X(),Be(t.type!=="loading"?1:2)}}function ld(r,e){if(r&1&&ge(0,ad,3,1,"ng-container",2),r&2){let t=q();W("veltIf",Ar(4,Kc,t.conditionSignal(),Ar(1,Yc,t.componentConfigSignal,t.localUIStateSignal)))}}var Ka=(()=>{let e=class e extends vs{set _custom(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _group(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _contactData(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _encodedContact(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _encodedGroup(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _encodedCustom(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set userObject(i){this.resolveUserObjectToContact(i,n=>{this.componentConfigSignal.update(o=>G(k({},o),{type:"contact",contact:n}))})}set userId(i){this.resolveUserIdToContact(i,n=>{this.componentConfigSignal.update(o=>G(k({},o),{type:"contact",contact:n}))})}set _shadowDom(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}constructor(){super(),this.componentId="velt-autocomplete-chip",this.type="contact",this.componentConfigSignal=so({type:"contact"}),this.subscriptions=[],this.authService=Fe(ie),this.autocompleteService=Fe(Ye),this.contactService=Fe(Z);try{this.loggingService.log("%c[WB] Creating COMPONENT AutocompleteChipComponent","color: blue;"),this.subscriptions.push(this.commentService.getDialogShadowDOM$().subscribe(i=>{this.componentConfigSignal.update(n=>(n=G(k({},n),{shadowDom:i}),n))}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent constructor: ",i)}}ngOnInit(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: ngOnInit","color: green;"),super.ngOnInit(),setTimeout(()=>{this.componentConfigSignal().type==="contact"&&(this.email||this.componentConfigSignal().contactData?.contact)&&(this.getCurrentUser(),this.email?(this.getContacts(),this.getUserByEmail(this.email)):this.componentConfigSignal().contactData?.contact&&this.componentConfigSignal.update(i=>(i=G(k({},i),{contact:i.contactData?.contact}),i))),this.componentConfigSignal().type==="group"&&this.getOrganizationGroups()},0)}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent ngOnInit: ",i)}}ngOnChanges(i){try{i&&setTimeout(()=>{Object.keys(i).forEach(n=>{n==="_custom"?this.componentConfigSignal.update(o=>{let s=i[n].currentValue;if(typeof s=="string")try{s=JSON.parse(s)}catch{if(i?._encodedCustom?.currentValue)try{s=JSON.parse(atob(i?._encodedCustom?.currentValue))}catch{}}return o=G(k({},o),{custom:s}),o}):n==="_group"?this.componentConfigSignal.update(o=>{let s=i[n].currentValue;if(typeof s=="string")try{s=JSON.parse(s)}catch{if(i?._encodedGroup?.currentValue)try{s=JSON.parse(atob(i?._encodedGroup?.currentValue))}catch{}}return o=G(k({},o),{group:s}),o}):n==="_contactData"?this.componentConfigSignal.update(o=>{let s=i[n].currentValue;if(typeof s=="string")try{s=JSON.parse(s)}catch{if(i?._encodedContact?.currentValue)try{s=JSON.parse(atob(i?._encodedContact?.currentValue))}catch{}}return o=G(k({},o),{contactData:s}),o}):n==="_shadowDom"?this.componentConfigSignal.update(o=>(o=k({},o),o.shadowDom=typeof i[n].currentValue=="string"?JSON.parse(i[n].currentValue):i[n].currentValue,o)):this.componentConfigSignal.update(o=>(o=G(k({},o),{[n]:i[n].currentValue}),o))})},0)}catch(n){this.loggingService.catch("Error in AutocompleteChipComponent ngOnChanges: ",n)}}getCurrentUser(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getCurrentUser","color: green;"),this.subscriptions.push(this.authService.getUser$().subscribe(i=>{this.componentConfigSignal.update(n=>(n=G(k({},n),{user:i}),n))}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent getCurrentUser: ",i)}}getContacts(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getContacts","color: green;"),this.subscriptions.push(this.contactService.getUserContacts$().subscribe(i=>{let n=i?.find(o=>o.email===this.email);n&&this.componentConfigSignal.update(o=>(o=G(k({},o),{contact:n}),o))}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent getContacts: ",i)}}getUserByEmail(i){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getUserByEmail","color: green;"),this.subscriptions.push(this.contactService.getUserByEmail$(i).subscribe(n=>{n&&this.componentConfigSignal.update(o=>(o=G(k({},o),{contact:n}),o))}))}catch(n){this.loggingService.catch("Error in AutocompleteChipComponent getUserByEmail: ",n)}}getOrganizationGroups(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getOrganizationGroups","color: green;"),this.subscriptions.push(this.contactService.getOrganizationGroups$().subscribe(i=>{if(i){let n=i.find(o=>o?.metadata?.groupId===this.componentConfigSignal().group?.groupId);n&&this.componentConfigSignal().group&&this.componentConfigSignal.update(o=>(o=G(k({},o),{group:G(k({},o.group),{group:n})}),o))}}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent getOrganizationGroups: ",i)}}onClick(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: onClick","color: green;");let i;this.componentConfigSignal().custom?.custom?i=G(k({},this.componentConfigSignal().custom?.custom),{type:"custom"}):this.componentConfigSignal().contact?(i={id:this.componentConfigSignal().contact?.userId,name:this.componentConfigSignal().contact?.name,description:this.componentConfigSignal().contact?.email,type:"contact"},this.componentConfigSignal().contact?.photoUrl&&(i.icon={url:this.componentConfigSignal().contact?.photoUrl})):this.componentConfigSignal().type==="contact"&&(i={id:void 0,name:void 0,description:this.email,type:"contact"}),i&&this.autocompleteService.setOnAutocompleteChipClick(i)}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent onClick: ",i)}}unsubscribe(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: unsubscribe","color: green;"),this._userIdSub?.unsubscribe(),this.subscriptions.forEach(i=>i?.unsubscribe())}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent unsubscribe: ",i)}}ngOnDestroy(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: OnDestroy","color: green;"),this.unsubscribe(),super.ngOnDestroy()}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent OnDestroy: ",i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=j({type:e,selectors:[["velt-autocomplete-chip-internal"]],inputs:{type:"type",email:"email",_custom:[0,"custom","_custom"],_group:[0,"group","_group"],_contactData:[0,"contact","_contactData"],_encodedContact:[0,"encodedContact","_encodedContact"],_encodedGroup:[0,"encodedGroup","_encodedGroup"],_encodedCustom:[0,"encodedCustom","_encodedCustom"],userObject:"userObject",userId:"userId",_shadowDom:[0,"shadowDom","_shadowDom"]},standalone:!1,features:[Sr,$t],decls:1,vars:1,consts:[["triggerTemplate",""],["tooltipTemplate",""],[4,"veltIf"],["width","64px",3,"borderRadius","customStyles"],[1,"velt-autocomplete--contact-chip",3,"velt-autocomplete--contact-chip-current-user","current-user-chip"],[1,"velt-autocomplete--group-chip"],[1,"custom-chip"],[1,"velt-autocomplete--contact-chip",3,"click"],[1,"velt-autocomplete--group-chip",3,"click"],[1,"custom-chip",3,"click"],[1,"custom-chip-icon","custom-chip-icon-svg",3,"innerHtml"],[1,"custom-chip-icon","custom-chip-icon-img",3,"src"],[3,"componentConfigSignal","shadowDom"]],template:function(n,o){if(n&1&&qe(0,ld,1,7,"ng-container"),n&2){let s;Be((s=o.componentConfigSignal())?0:-1,s)}},dependencies:[ks,Se,kt,Rt,De,di],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}[_nghost-%COMP%]{--velt-green: var(--velt-light-mode-green);--velt-magenta: var(--velt-light-mode-magenta);--velt-amber: var(--velt-light-mode-amber);--velt-purple: var(--velt-light-mode-purple);--velt-cyan: var(--velt-light-mode-cyan);--velt-orange: var(--velt-light-mode-orange);--velt-black: var(--velt-light-mode-black);--velt-white: var(--velt-light-mode-white);--velt-gray: var(--velt-light-mode-gray);--velt-error: var(--velt-light-mode-error);--velt-error-hover: var(--velt-light-mode-error-hover);--velt-error-foreground: var(--velt-light-mode-error-foreground);--velt-error-light: var(--velt-light-mode-error-light);--velt-error-transparent: var(--velt-light-mode-error-transparent);--velt-warning: var(--velt-light-mode-warning);--velt-warning-hover: var(--velt-light-mode-warning-hover);--velt-warning-foreground: var(--velt-light-mode-warning-foreground);--velt-warning-light: var(--velt-light-mode-warning-light);--velt-warning-transparent: var(--velt-light-mode-warning-transparent);--velt-agent-accent: #4495ff;--velt-agent-accent-transparent: rgba(68, 149, 255, .2);--velt-success: var(--velt-light-mode-success);--velt-success-hover: var(--velt-light-mode-success-hover);--velt-success-foreground: var(--velt-light-mode-success-foreground);--velt-success-light: var(--velt-light-mode-success-light);--velt-success-transparent: var(--velt-light-mode-success-transparent);--velt-accent: var(--velt-light-mode-accent);--velt-accent-text: var(--velt-light-mode-accent-text);--velt-accent-hover: var(--velt-light-mode-accent-hover);--velt-accent-foreground: var(--velt-light-mode-accent-foreground);--velt-accent-light: var(--velt-light-mode-accent-light);--velt-accent-transparent: var(--velt-light-mode-accent-transparent);--velt-text-0: var(--velt-light-mode-text-0);--velt-text-1: var(--velt-light-mode-text-1);--velt-text-2: var(--velt-light-mode-text-2);--velt-text-3: var(--velt-light-mode-text-3);--velt-text-4: var(--velt-light-mode-text-4);--velt-text-5: var(--velt-light-mode-text-5);--velt-text-6: var(--velt-light-mode-text-6);--velt-text-7: var(--velt-light-mode-text-7);--velt-text-8: var(--velt-light-mode-text-8);--velt-text-9: var(--velt-light-mode-text-9);--velt-text-10: var(--velt-light-mode-text-10);--velt-text-11: var(--velt-light-mode-text-11);--velt-text-12: var(--velt-light-mode-text-12);--velt-background-0: var(--velt-light-mode-background-0);--velt-background-1: var(--velt-light-mode-background-1);--velt-background-2: var(--velt-light-mode-background-2);--velt-background-3: var(--velt-light-mode-background-3);--velt-background-4: var(--velt-light-mode-background-4);--velt-background-5: var(--velt-light-mode-background-5);--velt-background-6: var(--velt-light-mode-background-6);--velt-background-7: var(--velt-light-mode-background-7);--velt-background-8: var(--velt-light-mode-background-8);--velt-background-9: var(--velt-light-mode-background-9);--velt-background-10: var(--velt-light-mode-background-10);--velt-border-0: var(--velt-light-mode-border-0);--velt-border-1: var(--velt-light-mode-border-1);--velt-border-2: var(--velt-light-mode-border-2);--velt-border-3: var(--velt-light-mode-border-3);--velt-border-4: var(--velt-light-mode-border-4);--velt-border-5: var(--velt-light-mode-border-5);--velt-border-6: var(--velt-light-mode-border-6);--velt-border-7: var(--velt-light-mode-border-7);--velt-border-8: var(--velt-light-mode-border-8);--velt-border-9: var(--velt-light-mode-border-9);--velt-border-10: var(--velt-light-mode-border-10);--velt-background-transparent: var(--velt-light-mode-background-transparent);--velt-border-transparent: var(--velt-light-mode-border-transparent);--velt-animation-transparent: var(--velt-light-mode-animation-transparent);display:inline-flex;line-height:32px}[_nghost-%COMP%]:empty{display:none}[dark][_nghost-%COMP%]{--velt-green: var(--velt-dark-mode-green);--velt-magenta: var(--velt-dark-mode-magenta);--velt-amber: var(--velt-dark-mode-amber);--velt-purple: var(--velt-dark-mode-purple);--velt-cyan: var(--velt-dark-mode-cyan);--velt-orange: var(--velt-dark-mode-orange);--velt-black: var(--velt-dark-mode-black);--velt-white: var(--velt-dark-mode-white);--velt-gray: var(--velt-dark-mode-gray);--velt-error: var(--velt-dark-mode-error);--velt-error-hover: var(--velt-dark-mode-error-hover);--velt-error-foreground: var(--velt-dark-mode-error-foreground);--velt-error-light: var(--velt-dark-mode-error-light);--velt-error-transparent: var(--velt-dark-mode-error-transparent);--velt-warning: var(--velt-dark-mode-warning);--velt-warning-hover: var(--velt-dark-mode-warning-hover);--velt-warning-foreground: var(--velt-dark-mode-warning-foreground);--velt-warning-light: var(--velt-dark-mode-warning-light);--velt-warning-transparent: var(--velt-dark-mode-warning-transparent);--velt-agent-accent: #4495ff;--velt-agent-accent-transparent: rgba(68, 149, 255, .2);--velt-success: var(--velt-dark-mode-success);--velt-success-hover: var(--velt-dark-mode-success-hover);--velt-success-foreground: var(--velt-dark-mode-success-foreground);--velt-success-light: var(--velt-dark-mode-success-light);--velt-success-transparent: var(--velt-dark-mode-success-transparent);--velt-accent: var(--velt-dark-mode-accent);--velt-accent-text: var(--velt-dark-mode-accent-text);--velt-accent-hover: var(--velt-dark-mode-accent-hover);--velt-accent-foreground: var(--velt-dark-mode-accent-foreground);--velt-accent-light: var(--velt-dark-mode-accent-light);--velt-accent-transparent: var(--velt-dark-mode-accent-transparent);--velt-text-0: var(--velt-dark-mode-text-0);--velt-text-1: var(--velt-dark-mode-text-1);--velt-text-2: var(--velt-dark-mode-text-2);--velt-text-3: var(--velt-dark-mode-text-3);--velt-text-4: var(--velt-dark-mode-text-4);--velt-text-5: var(--velt-dark-mode-text-5);--velt-text-6: var(--velt-dark-mode-text-6);--velt-text-7: var(--velt-dark-mode-text-7);--velt-text-8: var(--velt-dark-mode-text-8);--velt-text-9: var(--velt-dark-mode-text-9);--velt-text-10: var(--velt-dark-mode-text-10);--velt-text-11: var(--velt-dark-mode-text-11);--velt-text-12: var(--velt-dark-mode-text-12);--velt-background-0: var(--velt-dark-mode-background-0);--velt-background-1: var(--velt-dark-mode-background-1);--velt-background-2: var(--velt-dark-mode-background-2);--velt-background-3: var(--velt-dark-mode-background-3);--velt-background-4: var(--velt-dark-mode-background-4);--velt-background-5: var(--velt-dark-mode-background-5);--velt-background-6: var(--velt-dark-mode-background-6);--velt-background-7: var(--velt-dark-mode-background-7);--velt-background-8: var(--velt-dark-mode-background-8);--velt-background-9: var(--velt-dark-mode-background-9);--velt-background-10: var(--velt-dark-mode-background-10);--velt-border-0: var(--velt-dark-mode-border-0);--velt-border-1: var(--velt-dark-mode-border-1);--velt-border-2: var(--velt-dark-mode-border-2);--velt-border-3: var(--velt-dark-mode-border-3);--velt-border-4: var(--velt-dark-mode-border-4);--velt-border-5: var(--velt-dark-mode-border-5);--velt-border-6: var(--velt-dark-mode-border-6);--velt-border-7: var(--velt-dark-mode-border-7);--velt-border-8: var(--velt-dark-mode-border-8);--velt-border-9: var(--velt-dark-mode-border-9);--velt-border-10: var(--velt-dark-mode-border-10);--velt-background-transparent: var(--velt-dark-mode-background-transparent);--velt-border-transparent: var(--velt-dark-mode-border-transparent);--velt-animation-transparent: var(--velt-dark-mode-animation-transparent)}.custom-chip[_ngcontent-%COMP%]{color:var(--velt-accent-text);background:var(--velt-accent-transparent);border-radius:var(--velt-border-radius-xs);word-break:break-word;padding:var(--velt-spacing-xs);margin:1px;gap:var(--velt-spacing-xs);opacity:0px;font-size:var(--velt-font-size-sm);font-style:normal;font-weight:400;line-height:120%;text-align:left;color:var(--velt-accent);display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.custom-chip[_ngcontent-%COMP%] .custom-chip-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.custom-chip[_ngcontent-%COMP%] .custom-chip-icon.custom-chip-icon-img[_ngcontent-%COMP%]{max-height:12px}"],changeDetection:0});let r=e;return r})();var cd=["*"],dd=new Set(["autocomplete-id","class","style","id","ng-reflect-autocomplete-id","ng-version","_nghost","_ngcontent"]),Xa=(()=>{let e=class e{constructor(i,n,o,s){this.coreService=i,this.elementRef=n,this.registry=o,this.loggingService=s,this.parentContextData={},this.onParentPayload=a=>{try{!this.autocompleteId&&a.autocompleteId&&(this.autocompleteId=a.autocompleteId),this.parentContextData=a.contextData||{},this.initializeAndBroadcast()}catch(c){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in onParentPayload:",c)}}}ngOnInit(){try{if(this.findAndConnectToParent(),this.parentRegistry){this.parentRegistry.register(this.onParentPayload);let i=this.parentRegistry.getLastPayload?.();i&&this.onParentPayload(i)}this.initializeAndBroadcast()}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in ngOnInit:",i)}}findAndConnectToParent(){try{let n=this.elementRef.nativeElement.parentElement;for(;n;){if(n.tagName?.toLowerCase()==="velt-autocomplete-context-wrapper"){let o=n.__veltContext;if(o?.registry instanceof ct){this.parentWrapper=o.wrapperRef,this.parentRegistry=o.registry;return}let s=window.ng;if(s?.getComponent){let c=s.getComponent(n);if(c?.registry){this.parentWrapper=c,this.parentRegistry=c.registry;return}}let a=n.__ngContext__;if(a&&Array.isArray(a))for(let c=0;c<a.length;c++){let d=a[c];if(d&&typeof d=="object"&&d.registry instanceof ct){this.parentWrapper=d,this.parentRegistry=d.registry;return}}}n=n.parentElement}}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error finding parent wrapper:",i)}}ngOnChanges(i){try{i.autocompleteId&&!i.autocompleteId.firstChange&&this.initializeAndBroadcast()}catch(n){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in ngOnChanges:",n)}}ngOnDestroy(){try{let i=this.autocompleteId&&!this.parentWrapper;if(this.parentRegistry&&this.parentRegistry.unregister(this.onParentPayload),this.elementRef?.nativeElement&&(this.elementRef.nativeElement.__veltContext=void 0),this.parentWrapper=void 0,this.parentRegistry=void 0,i){let n=this.autocompleteId,o=this.registry;setTimeout(()=>{let s=this.coreService.getRegistry(n);(s===o||!s)&&this.coreService.clearContextConfig(n)},0)}}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in ngOnDestroy:",i)}}collectAttributes(){let i={};try{let o=this.elementRef.nativeElement.attributes;for(let s=0;s<o.length;s++){let a=o[s],c=a.name.toLowerCase();dd.has(c)||c.startsWith("_ng")||c.startsWith("ng-")||(i[c]=a.value)}}catch(n){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error collecting attributes:",n)}return i}initializeAndBroadcast(){try{let i=this.autocompleteId||this.parentContextData["autocomplete-id"];if(!i)return;this.autocompleteId&&(this.coreService.getOrCreateContextConfig(this.autocompleteId),this.coreService.setRegistry(this.autocompleteId,this.registry),this.elementRef.nativeElement.setAttribute("autocomplete-id",this.autocompleteId));let n=this.collectAttributes(),o=k(k({},this.parentContextData),n);this.elementRef.nativeElement.__veltContext={registry:this.registry,autocompleteId:i,contextData:o,wrapperRef:this};let s={autocompleteId:i,contextData:o};this.registry.broadcast(s)}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in initializeAndBroadcast:",i)}}};e.\u0275fac=function(n){return new(n||e)(R(fs),R(ze),R(ct),R(l))},e.\u0275cmp=j({type:e,selectors:[["velt-autocomplete-context-wrapper"]],inputs:{autocompleteId:"autocompleteId"},standalone:!1,features:[Ir([ct]),$t],ngContentSelectors:cd,decls:1,vars:0,template:function(n,o){n&1&&(Ve(),Ge(0))},styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0});let r=e;return r})();var Ja=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=Re({type:r});static \u0275inj=Ae({imports:[Et,$o]})}return r})();var Za=(()=>{let e=class e{constructor(i){this.injector=i,this.customElements=[{name:A.TAGS.SNIPPYLY_ROOT,component:pn},{name:A.TAGS.SNIPPYLY_MENU,component:gn}],this.veltCustomElements=[{name:A.TAGS.VELT_ROOT,component:pn},{name:A.TAGS.VELT_MENU,component:gn},{name:A.TAGS.VELT_WIREFRAME,component:Qa},{name:A.TAGS.VELT_AUTOCOMPLETE,component:Ya},{name:A.TAGS.VELT_AUTOCOMPLETE_PANEL,component:As},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION,component:Es},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_ICON,component:Cs},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_NAME,component:bs},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_DESCRIPTION,component:ys},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_ERROR_ICON,component:_s},{name:A.TAGS.VELT_AUTOCOMPLETE_GROUP_OPTION,component:Is},{name:A.TAGS.VELT_AUTOCOMPLETE_TOOL,component:Rs},{name:A.TAGS.VELT_AUTOCOMPLETE_EMPTY,component:Pr},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP,component:Ka},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP,component:Rt},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP_ICON,component:li},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP_NAME,component:ci},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP_DESCRIPTION,component:ai},{name:A.TAGS.VELT_AUTOCOMPLETE_CONTEXT_WRAPPER,component:Xa},{name:A.TAGS.VELT_SKELETON_LOADER,component:kt}]}ngDoBootstrap(){this.customElements.forEach(i=>{let n=xr(i.component,{injector:this.injector});customElements.get(i.name)||customElements.define(i.name,n)}),this.veltCustomElements.forEach(i=>{let n=xr(i.component,{injector:this.injector});customElements.get(i.name)||customElements.define(i.name,n)})}};e.\u0275fac=function(n){return new(n||e)(U(be))},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({providers:[Ao(()=>{let i=sessionStorage?.getItem("veltFirebaseLogLevel")||St?.firebaseLogLevel||"silent";return Io(i),ko(as(ls()))}),wo(()=>Lo()),Mo(()=>{let i=No(Ro(),{persistence:[Po,Do,xo]});return ns(i),i}),qo(()=>Bo()),Fo(()=>{let i=Uo();return St.useEmulators&&zo(i,"localhost",5001),i}),{provide:oo,useClass:$a},{provide:ei,useClass:Ba},yo(_o()),go()],imports:[ti,Na,ii,So,To,Eo,Oo,es,Mr,Qo,Ko,Yo,Vo,Go,Ja,xs,hi,kt]});let r=e;return r})();ke(Pr,[xe,Se],[]);ke(Rt,[bt,Ds,xe,Se,li,ci,ai],[]);ke(li,[bt,xe,Se,hi],[di]);ke(ci,[bt,xe,Se],[De]);ke(ai,[bt,xe,Se],[De]);ke(Ss,[$e,xe],[]);ke(Os,[$e,xe,Se],[De]);var tl=!0,il=!0;function ft(r,e,t){let i=r.match(e);return i&&i.length>=t&&parseFloat(i[t],10)}function Ce(r,e,t){if(!r.RTCPeerConnection)return;let i=r.RTCPeerConnection.prototype,n=i.addEventListener;i.addEventListener=function(s,a){if(s!==e)return n.apply(this,arguments);let c=d=>{let h=t(d);h&&(a.handleEvent?a.handleEvent(h):a(h))};return this._eventMap=this._eventMap||{},this._eventMap[e]||(this._eventMap[e]=new Map),this._eventMap[e].set(a,c),n.apply(this,[s,c])};let o=i.removeEventListener;i.removeEventListener=function(s,a){if(s!==e||!this._eventMap||!this._eventMap[e])return o.apply(this,arguments);if(!this._eventMap[e].has(a))return o.apply(this,arguments);let c=this._eventMap[e].get(a);return this._eventMap[e].delete(a),this._eventMap[e].size===0&&delete this._eventMap[e],Object.keys(this._eventMap).length===0&&delete this._eventMap,o.apply(this,[s,c])},Object.defineProperty(i,"on"+e,{get(){return this["_on"+e]},set(s){this["_on"+e]&&(this.removeEventListener(e,this["_on"+e]),delete this["_on"+e]),s&&this.addEventListener(e,this["_on"+e]=s)},enumerable:!0,configurable:!0})}function rl(r){return typeof r!="boolean"?new Error("Argument type: "+typeof r+". Please use a boolean."):(tl=r,r?"adapter.js logging disabled":"adapter.js logging enabled")}function nl(r){return typeof r!="boolean"?new Error("Argument type: "+typeof r+". Please use a boolean."):(il=!r,"adapter.js deprecation warnings "+(r?"disabled":"enabled"))}function ar(){if(typeof window=="object"){if(tl)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function vt(r,e){il&&console.warn(r+" is deprecated, please use "+e+" instead.")}function ol(r){let e={browser:null,version:null};if(typeof r>"u"||!r.navigator||!r.navigator.userAgent)return e.browser="Not a browser.",e;let{navigator:t}=r;if(t.mozGetUserMedia)e.browser="firefox",e.version=parseInt(ft(t.userAgent,/Firefox\/(\d+)\./,1));else if(t.webkitGetUserMedia||r.isSecureContext===!1&&r.webkitRTCPeerConnection)e.browser="chrome",e.version=parseInt(ft(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2));else if(r.RTCPeerConnection&&t.userAgent.match(/AppleWebKit\/(\d+)\./))e.browser="safari",e.version=parseInt(ft(t.userAgent,/AppleWebKit\/(\d+)\./,1)),e.supportsUnifiedPlan=r.RTCRtpTransceiver&&"currentDirection"in r.RTCRtpTransceiver.prototype,e._safariVersion=ft(t.userAgent,/Version\/(\d+(\.?\d+))/,1);else return e.browser="Not a supported browser.",e;return e}function el(r){return Object.prototype.toString.call(r)==="[object Object]"}function vn(r){return el(r)?Object.keys(r).reduce(function(e,t){let i=el(r[t]),n=i?vn(r[t]):r[t],o=i&&!Object.keys(n).length;return n===void 0||o?e:Object.assign(e,{[t]:n})},{}):r}function fn(r,e,t){!e||t.has(e.id)||(t.set(e.id,e),Object.keys(e).forEach(i=>{i.endsWith("Id")?fn(r,r.get(e[i]),t):i.endsWith("Ids")&&e[i].forEach(n=>{fn(r,r.get(n),t)})}))}function yn(r,e,t){let i=t?"outbound-rtp":"inbound-rtp",n=new Map;if(e===null)return n;let o=[];return r.forEach(s=>{s.type==="track"&&s.trackIdentifier===e.id&&o.push(s)}),o.forEach(s=>{r.forEach(a=>{a.type===i&&a.trackId===s.id&&fn(r,a,n)})}),n}var dr={};jt(dr,{fixNegotiationNeeded:()=>On,shimAddTrackRemoveTrack:()=>Tn,shimAddTrackRemoveTrackWithNative:()=>ll,shimGetDisplayMedia:()=>al,shimGetSendersWithDtmf:()=>bn,shimGetStats:()=>En,shimGetUserMedia:()=>lr,shimMediaStream:()=>_n,shimOnTrack:()=>Cn,shimPeerConnection:()=>cr,shimSenderReceiverGetStats:()=>Sn});var sl=ar;function lr(r,e){let t=r&&r.navigator;if(!t.mediaDevices)return;let i=function(a){if(typeof a!="object"||a.mandatory||a.optional)return a;let c={};return Object.keys(a).forEach(d=>{if(d==="require"||d==="advanced"||d==="mediaSource")return;let h=typeof a[d]=="object"?a[d]:{ideal:a[d]};h.exact!==void 0&&typeof h.exact=="number"&&(h.min=h.max=h.exact);let u=function(m,v){return m?m+v.charAt(0).toUpperCase()+v.slice(1):v==="deviceId"?"sourceId":v};if(h.ideal!==void 0){c.optional=c.optional||[];let m={};typeof h.ideal=="number"?(m[u("min",d)]=h.ideal,c.optional.push(m),m={},m[u("max",d)]=h.ideal,c.optional.push(m)):(m[u("",d)]=h.ideal,c.optional.push(m))}h.exact!==void 0&&typeof h.exact!="number"?(c.mandatory=c.mandatory||{},c.mandatory[u("",d)]=h.exact):["min","max"].forEach(m=>{h[m]!==void 0&&(c.mandatory=c.mandatory||{},c.mandatory[u(m,d)]=h[m])})}),a.advanced&&(c.optional=(c.optional||[]).concat(a.advanced)),c},n=function(a,c){if(e.version>=61)return c(a);if(a=JSON.parse(JSON.stringify(a)),a&&typeof a.audio=="object"){let d=function(h,u,m){u in h&&!(m in h)&&(h[m]=h[u],delete h[u])};a=JSON.parse(JSON.stringify(a)),d(a.audio,"autoGainControl","googAutoGainControl"),d(a.audio,"noiseSuppression","googNoiseSuppression"),a.audio=i(a.audio)}if(a&&typeof a.video=="object"){let d=a.video.facingMode;d=d&&(typeof d=="object"?d:{ideal:d});let h=e.version<66;if(d&&(d.exact==="user"||d.exact==="environment"||d.ideal==="user"||d.ideal==="environment")&&!(t.mediaDevices.getSupportedConstraints&&t.mediaDevices.getSupportedConstraints().facingMode&&!h)){delete a.video.facingMode;let u;if(d.exact==="environment"||d.ideal==="environment"?u=["back","rear"]:(d.exact==="user"||d.ideal==="user")&&(u=["front"]),u)return t.mediaDevices.enumerateDevices().then(m=>{m=m.filter(f=>f.kind==="videoinput");let v=m.find(f=>u.some(y=>f.label.toLowerCase().includes(y)));return!v&&m.length&&u.includes("back")&&(v=m[m.length-1]),v&&(a.video.deviceId=d.exact?{exact:v.deviceId}:{ideal:v.deviceId}),a.video=i(a.video),sl("chrome: "+JSON.stringify(a)),c(a)})}a.video=i(a.video)}return sl("chrome: "+JSON.stringify(a)),c(a)},o=function(a){return e.version>=64?a:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[a.name]||a.name,message:a.message,constraint:a.constraint||a.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(a,c,d){n(a,h=>{t.webkitGetUserMedia(h,c,u=>{d&&d(o(u))})})};if(t.getUserMedia=s.bind(t),t.mediaDevices.getUserMedia){let a=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(c){return n(c,d=>a(d).then(h=>{if(d.audio&&!h.getAudioTracks().length||d.video&&!h.getVideoTracks().length)throw h.getTracks().forEach(u=>{u.stop()}),new DOMException("","NotFoundError");return h},h=>Promise.reject(o(h))))}}}function al(r,e){if(!(r.navigator.mediaDevices&&"getDisplayMedia"in r.navigator.mediaDevices)&&r.navigator.mediaDevices){if(typeof e!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}r.navigator.mediaDevices.getDisplayMedia=function(i){return e(i).then(n=>{let o=i.video&&i.video.width,s=i.video&&i.video.height,a=i.video&&i.video.frameRate;return i.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:n,maxFrameRate:a||3}},o&&(i.video.mandatory.maxWidth=o),s&&(i.video.mandatory.maxHeight=s),r.navigator.mediaDevices.getUserMedia(i)})}}}function _n(r){r.MediaStream=r.MediaStream||r.webkitMediaStream}function Cn(r){if(typeof r=="object"&&r.RTCPeerConnection&&!("ontrack"in r.RTCPeerConnection.prototype)){Object.defineProperty(r.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 e=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=i=>{i.stream.addEventListener("addtrack",n=>{let o;r.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(a=>a.track&&a.track.id===n.track.id):o={track:n.track};let s=new Event("track");s.track=n.track,s.receiver=o,s.transceiver={receiver:o},s.streams=[i.stream],this.dispatchEvent(s)}),i.stream.getTracks().forEach(n=>{let o;r.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(a=>a.track&&a.track.id===n.id):o={track:n};let s=new Event("track");s.track=n,s.receiver=o,s.transceiver={receiver:o},s.streams=[i.stream],this.dispatchEvent(s)})},this.addEventListener("addstream",this._ontrackpoly)),e.apply(this,arguments)}}else Ce(r,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function bn(r){if(typeof r=="object"&&r.RTCPeerConnection&&!("getSenders"in r.RTCPeerConnection.prototype)&&"createDTMFSender"in r.RTCPeerConnection.prototype){let e=function(n,o){return{track:o,get dtmf(){return this._dtmf===void 0&&(o.kind==="audio"?this._dtmf=n.createDTMFSender(o):this._dtmf=null),this._dtmf},_pc:n}};if(!r.RTCPeerConnection.prototype.getSenders){r.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};let n=r.RTCPeerConnection.prototype.addTrack;r.RTCPeerConnection.prototype.addTrack=function(a,c){let d=n.apply(this,arguments);return d||(d=e(this,a),this._senders.push(d)),d};let o=r.RTCPeerConnection.prototype.removeTrack;r.RTCPeerConnection.prototype.removeTrack=function(a){o.apply(this,arguments);let c=this._senders.indexOf(a);c!==-1&&this._senders.splice(c,1)}}let t=r.RTCPeerConnection.prototype.addStream;r.RTCPeerConnection.prototype.addStream=function(o){this._senders=this._senders||[],t.apply(this,[o]),o.getTracks().forEach(s=>{this._senders.push(e(this,s))})};let i=r.RTCPeerConnection.prototype.removeStream;r.RTCPeerConnection.prototype.removeStream=function(o){this._senders=this._senders||[],i.apply(this,[o]),o.getTracks().forEach(s=>{let a=this._senders.find(c=>c.track===s);a&&this._senders.splice(this._senders.indexOf(a),1)})}}else if(typeof r=="object"&&r.RTCPeerConnection&&"getSenders"in r.RTCPeerConnection.prototype&&"createDTMFSender"in r.RTCPeerConnection.prototype&&r.RTCRtpSender&&!("dtmf"in r.RTCRtpSender.prototype)){let e=r.RTCPeerConnection.prototype.getSenders;r.RTCPeerConnection.prototype.getSenders=function(){let i=e.apply(this,[]);return i.forEach(n=>n._pc=this),i},Object.defineProperty(r.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 En(r){if(!r.RTCPeerConnection)return;let e=r.RTCPeerConnection.prototype.getStats;r.RTCPeerConnection.prototype.getStats=function(){let[i,n,o]=arguments;if(arguments.length>0&&typeof i=="function")return e.apply(this,arguments);if(e.length===0&&(arguments.length===0||typeof i!="function"))return e.apply(this,[]);let s=function(c){let d={};return c.result().forEach(u=>{let m={id:u.id,timestamp:u.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[u.type]||u.type};u.names().forEach(v=>{m[v]=u.stat(v)}),d[m.id]=m}),d},a=function(c){return new Map(Object.keys(c).map(d=>[d,c[d]]))};if(arguments.length>=2){let c=function(d){n(a(s(d)))};return e.apply(this,[c,i])}return new Promise((c,d)=>{e.apply(this,[function(h){c(a(s(h)))},d])}).then(n,o)}}function Sn(r){if(!(typeof r=="object"&&r.RTCPeerConnection&&r.RTCRtpSender&&r.RTCRtpReceiver))return;if(!("getStats"in r.RTCRtpSender.prototype)){let t=r.RTCPeerConnection.prototype.getSenders;t&&(r.RTCPeerConnection.prototype.getSenders=function(){let o=t.apply(this,[]);return o.forEach(s=>s._pc=this),o});let i=r.RTCPeerConnection.prototype.addTrack;i&&(r.RTCPeerConnection.prototype.addTrack=function(){let o=i.apply(this,arguments);return o._pc=this,o}),r.RTCRtpSender.prototype.getStats=function(){let o=this;return this._pc.getStats().then(s=>yn(s,o.track,!0))}}if(!("getStats"in r.RTCRtpReceiver.prototype)){let t=r.RTCPeerConnection.prototype.getReceivers;t&&(r.RTCPeerConnection.prototype.getReceivers=function(){let n=t.apply(this,[]);return n.forEach(o=>o._pc=this),n}),Ce(r,"track",i=>(i.receiver._pc=i.srcElement,i)),r.RTCRtpReceiver.prototype.getStats=function(){let n=this;return this._pc.getStats().then(o=>yn(o,n.track,!1))}}if(!("getStats"in r.RTCRtpSender.prototype&&"getStats"in r.RTCRtpReceiver.prototype))return;let e=r.RTCPeerConnection.prototype.getStats;r.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof r.MediaStreamTrack){let i=arguments[0],n,o,s;return this.getSenders().forEach(a=>{a.track===i&&(n?s=!0:n=a)}),this.getReceivers().forEach(a=>(a.track===i&&(o?s=!0:o=a),a.track===i)),s||n&&o?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):n?n.getStats():o?o.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return e.apply(this,arguments)}}function ll(r){r.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(s=>this._shimmedLocalStreams[s][0])};let e=r.RTCPeerConnection.prototype.addTrack;r.RTCPeerConnection.prototype.addTrack=function(s,a){if(!a)return e.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let c=e.apply(this,arguments);return this._shimmedLocalStreams[a.id]?this._shimmedLocalStreams[a.id].indexOf(c)===-1&&this._shimmedLocalStreams[a.id].push(c):this._shimmedLocalStreams[a.id]=[a,c],c};let t=r.RTCPeerConnection.prototype.addStream;r.RTCPeerConnection.prototype.addStream=function(s){this._shimmedLocalStreams=this._shimmedLocalStreams||{},s.getTracks().forEach(d=>{if(this.getSenders().find(u=>u.track===d))throw new DOMException("Track already exists.","InvalidAccessError")});let a=this.getSenders();t.apply(this,arguments);let c=this.getSenders().filter(d=>a.indexOf(d)===-1);this._shimmedLocalStreams[s.id]=[s].concat(c)};let i=r.RTCPeerConnection.prototype.removeStream;r.RTCPeerConnection.prototype.removeStream=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[s.id],i.apply(this,arguments)};let n=r.RTCPeerConnection.prototype.removeTrack;r.RTCPeerConnection.prototype.removeTrack=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},s&&Object.keys(this._shimmedLocalStreams).forEach(a=>{let c=this._shimmedLocalStreams[a].indexOf(s);c!==-1&&this._shimmedLocalStreams[a].splice(c,1),this._shimmedLocalStreams[a].length===1&&delete this._shimmedLocalStreams[a]}),n.apply(this,arguments)}}function Tn(r,e){if(!r.RTCPeerConnection)return;if(r.RTCPeerConnection.prototype.addTrack&&e.version>=65)return ll(r);let t=r.RTCPeerConnection.prototype.getLocalStreams;r.RTCPeerConnection.prototype.getLocalStreams=function(){let h=t.apply(this);return this._reverseStreams=this._reverseStreams||{},h.map(u=>this._reverseStreams[u.id])};let i=r.RTCPeerConnection.prototype.addStream;r.RTCPeerConnection.prototype.addStream=function(h){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},h.getTracks().forEach(u=>{if(this.getSenders().find(v=>v.track===u))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[h.id]){let u=new r.MediaStream(h.getTracks());this._streams[h.id]=u,this._reverseStreams[u.id]=h,h=u}i.apply(this,[h])};let n=r.RTCPeerConnection.prototype.removeStream;r.RTCPeerConnection.prototype.removeStream=function(h){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},n.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]},r.RTCPeerConnection.prototype.addTrack=function(h,u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");let m=[].slice.call(arguments,1);if(m.length!==1||!m[0].getTracks().find(y=>y===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(y=>y.track===h))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};let f=this._streams[u.id];if(f)f.addTrack(h),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{let y=new r.MediaStream([h]);this._streams[u.id]=y,this._reverseStreams[y.id]=u,this.addStream(y)}return this.getSenders().find(y=>y.track===h)};function o(d,h){let u=h.sdp;return Object.keys(d._reverseStreams||[]).forEach(m=>{let v=d._reverseStreams[m],f=d._streams[v.id];u=u.replace(new RegExp(f.id,"g"),v.id)}),new RTCSessionDescription({type:h.type,sdp:u})}function s(d,h){let u=h.sdp;return Object.keys(d._reverseStreams||[]).forEach(m=>{let v=d._reverseStreams[m],f=d._streams[v.id];u=u.replace(new RegExp(v.id,"g"),f.id)}),new RTCSessionDescription({type:h.type,sdp:u})}["createOffer","createAnswer"].forEach(function(d){let h=r.RTCPeerConnection.prototype[d],u={[d](){let m=arguments;return arguments.length&&typeof arguments[0]=="function"?h.apply(this,[f=>{let y=o(this,f);m[0].apply(null,[y])},f=>{m[1]&&m[1].apply(null,f)},arguments[2]]):h.apply(this,arguments).then(f=>o(this,f))}};r.RTCPeerConnection.prototype[d]=u[d]});let a=r.RTCPeerConnection.prototype.setLocalDescription;r.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?a.apply(this,arguments):(arguments[0]=s(this,arguments[0]),a.apply(this,arguments))};let c=Object.getOwnPropertyDescriptor(r.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(r.RTCPeerConnection.prototype,"localDescription",{get(){let d=c.get.apply(this);return d.type===""?d:o(this,d)}}),r.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 m;Object.keys(this._streams).forEach(v=>{this._streams[v].getTracks().find(y=>h.track===y)&&(m=this._streams[v])}),m&&(m.getTracks().length===1?this.removeStream(this._reverseStreams[m.id]):m.removeTrack(h.track),this.dispatchEvent(new Event("negotiationneeded")))}}function cr(r,e){!r.RTCPeerConnection&&r.webkitRTCPeerConnection&&(r.RTCPeerConnection=r.webkitRTCPeerConnection),r.RTCPeerConnection&&e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let i=r.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new(t==="addIceCandidate"?r.RTCIceCandidate:r.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};r.RTCPeerConnection.prototype[t]=n[t]})}function On(r,e){Ce(r,"negotiationneeded",t=>{let i=t.target;if(!((e.version<72||i.getConfiguration&&i.getConfiguration().sdpSemantics==="plan-b")&&i.signalingState!=="stable"))return t})}var mr={};jt(mr,{shimAddTransceiver:()=>xn,shimCreateAnswer:()=>Nn,shimCreateOffer:()=>Mn,shimGetDisplayMedia:()=>cl,shimGetParameters:()=>Pn,shimGetUserMedia:()=>hr,shimOnTrack:()=>In,shimPeerConnection:()=>ur,shimRTCDataChannel:()=>Dn,shimReceiverGetStats:()=>Rn,shimRemoveStream:()=>kn,shimSenderGetStats:()=>An});function hr(r,e){let t=r&&r.navigator,i=r&&r.MediaStreamTrack;if(t.getUserMedia=function(n,o,s){vt("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),t.mediaDevices.getUserMedia(n).then(o,s)},!(e.version>55&&"autoGainControl"in t.mediaDevices.getSupportedConstraints())){let n=function(s,a,c){a in s&&!(c in s)&&(s[c]=s[a],delete s[a])},o=t.mediaDevices.getUserMedia.bind(t.mediaDevices);if(t.mediaDevices.getUserMedia=function(s){return typeof s=="object"&&typeof s.audio=="object"&&(s=JSON.parse(JSON.stringify(s)),n(s.audio,"autoGainControl","mozAutoGainControl"),n(s.audio,"noiseSuppression","mozNoiseSuppression")),o(s)},i&&i.prototype.getSettings){let s=i.prototype.getSettings;i.prototype.getSettings=function(){let a=s.apply(this,arguments);return n(a,"mozAutoGainControl","autoGainControl"),n(a,"mozNoiseSuppression","noiseSuppression"),a}}if(i&&i.prototype.applyConstraints){let s=i.prototype.applyConstraints;i.prototype.applyConstraints=function(a){return this.kind==="audio"&&typeof a=="object"&&(a=JSON.parse(JSON.stringify(a)),n(a,"autoGainControl","mozAutoGainControl"),n(a,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[a])}}}}function cl(r,e){r.navigator.mediaDevices&&"getDisplayMedia"in r.navigator.mediaDevices||r.navigator.mediaDevices&&(r.navigator.mediaDevices.getDisplayMedia=function(i){if(!(i&&i.video)){let n=new DOMException("getDisplayMedia without video constraints is undefined");return n.name="NotFoundError",n.code=8,Promise.reject(n)}return i.video===!0?i.video={mediaSource:e}:i.video.mediaSource=e,r.navigator.mediaDevices.getUserMedia(i)})}function In(r){typeof r=="object"&&r.RTCTrackEvent&&"receiver"in r.RTCTrackEvent.prototype&&!("transceiver"in r.RTCTrackEvent.prototype)&&Object.defineProperty(r.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ur(r,e){if(typeof r!="object"||!(r.RTCPeerConnection||r.mozRTCPeerConnection))return;!r.RTCPeerConnection&&r.mozRTCPeerConnection&&(r.RTCPeerConnection=r.mozRTCPeerConnection),e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){let o=r.RTCPeerConnection.prototype[n],s={[n](){return arguments[0]=new(n==="addIceCandidate"?r.RTCIceCandidate:r.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};r.RTCPeerConnection.prototype[n]=s[n]});let t={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=r.RTCPeerConnection.prototype.getStats;r.RTCPeerConnection.prototype.getStats=function(){let[o,s,a]=arguments;return i.apply(this,[o||null]).then(c=>{if(e.version<53&&!s)try{c.forEach(d=>{d.type=t[d.type]||d.type})}catch(d){if(d.name!=="TypeError")throw d;c.forEach((h,u)=>{c.set(u,Object.assign({},h,{type:t[h.type]||h.type}))})}return c}).then(s,a)}}function An(r){if(!(typeof r=="object"&&r.RTCPeerConnection&&r.RTCRtpSender)||r.RTCRtpSender&&"getStats"in r.RTCRtpSender.prototype)return;let e=r.RTCPeerConnection.prototype.getSenders;e&&(r.RTCPeerConnection.prototype.getSenders=function(){let n=e.apply(this,[]);return n.forEach(o=>o._pc=this),n});let t=r.RTCPeerConnection.prototype.addTrack;t&&(r.RTCPeerConnection.prototype.addTrack=function(){let n=t.apply(this,arguments);return n._pc=this,n}),r.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Rn(r){if(!(typeof r=="object"&&r.RTCPeerConnection&&r.RTCRtpSender)||r.RTCRtpSender&&"getStats"in r.RTCRtpReceiver.prototype)return;let e=r.RTCPeerConnection.prototype.getReceivers;e&&(r.RTCPeerConnection.prototype.getReceivers=function(){let i=e.apply(this,[]);return i.forEach(n=>n._pc=this),i}),Ce(r,"track",t=>(t.receiver._pc=t.srcElement,t)),r.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function kn(r){!r.RTCPeerConnection||"removeStream"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.removeStream=function(t){vt("removeStream","removeTrack"),this.getSenders().forEach(i=>{i.track&&t.getTracks().includes(i.track)&&this.removeTrack(i)})})}function Dn(r){r.DataChannel&&!r.RTCDataChannel&&(r.RTCDataChannel=r.DataChannel)}function xn(r){if(!(typeof r=="object"&&r.RTCPeerConnection))return;let e=r.RTCPeerConnection.prototype.addTransceiver;e&&(r.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let i=arguments[1]&&arguments[1].sendEncodings;i===void 0&&(i=[]),i=[...i];let n=i.length>0;n&&i.forEach(s=>{if("rid"in s&&!/^[a-z0-9]{0,16}$/i.test(s.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in s&&!(parseFloat(s.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in s&&!(parseFloat(s.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});let o=e.apply(this,arguments);if(n){let{sender:s}=o,a=s.getParameters();(!("encodings"in a)||a.encodings.length===1&&Object.keys(a.encodings[0]).length===0)&&(a.encodings=i,s.sendEncodings=i,this.setParametersPromises.push(s.setParameters(a).then(()=>{delete s.sendEncodings}).catch(()=>{delete s.sendEncodings})))}return o})}function Pn(r){if(!(typeof r=="object"&&r.RTCRtpSender))return;let e=r.RTCRtpSender.prototype.getParameters;e&&(r.RTCRtpSender.prototype.getParameters=function(){let i=e.apply(this,arguments);return"encodings"in i||(i.encodings=[].concat(this.sendEncodings||[{}])),i})}function Mn(r){if(!(typeof r=="object"&&r.RTCPeerConnection))return;let e=r.RTCPeerConnection.prototype.createOffer;r.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}function Nn(r){if(!(typeof r=="object"&&r.RTCPeerConnection))return;let e=r.RTCPeerConnection.prototype.createAnswer;r.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}var pr={};jt(pr,{shimAudioContext:()=>Vn,shimCallbacksAPI:()=>Fn,shimConstraints:()=>dl,shimCreateOfferLegacy:()=>Bn,shimGetUserMedia:()=>zn,shimLocalStreamsAPI:()=>wn,shimRTCIceServerUrls:()=>Un,shimRemoteStreamsAPI:()=>Ln,shimTrackEventTransceiver:()=>qn});function wn(r){if(!(typeof r!="object"||!r.RTCPeerConnection)){if("getLocalStreams"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in r.RTCPeerConnection.prototype)){let e=r.RTCPeerConnection.prototype.addTrack;r.RTCPeerConnection.prototype.addStream=function(i){this._localStreams||(this._localStreams=[]),this._localStreams.includes(i)||this._localStreams.push(i),i.getAudioTracks().forEach(n=>e.call(this,n,i)),i.getVideoTracks().forEach(n=>e.call(this,n,i))},r.RTCPeerConnection.prototype.addTrack=function(i,...n){return n&&n.forEach(o=>{this._localStreams?this._localStreams.includes(o)||this._localStreams.push(o):this._localStreams=[o]}),e.apply(this,arguments)}}"removeStream"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.removeStream=function(t){this._localStreams||(this._localStreams=[]);let i=this._localStreams.indexOf(t);if(i===-1)return;this._localStreams.splice(i,1);let n=t.getTracks();this.getSenders().forEach(o=>{n.includes(o.track)&&this.removeTrack(o)})})}}function Ln(r){if(!(typeof r!="object"||!r.RTCPeerConnection)&&("getRemoteStreams"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in r.RTCPeerConnection.prototype))){Object.defineProperty(r.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=i=>{i.streams.forEach(n=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(n))return;this._remoteStreams.push(n);let o=new Event("addstream");o.stream=n,this.dispatchEvent(o)})})}});let e=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(){let i=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(n){n.streams.forEach(o=>{if(i._remoteStreams||(i._remoteStreams=[]),i._remoteStreams.indexOf(o)>=0)return;i._remoteStreams.push(o);let s=new Event("addstream");s.stream=o,i.dispatchEvent(s)})}),e.apply(i,arguments)}}}function Fn(r){if(typeof r!="object"||!r.RTCPeerConnection)return;let e=r.RTCPeerConnection.prototype,t=e.createOffer,i=e.createAnswer,n=e.setLocalDescription,o=e.setRemoteDescription,s=e.addIceCandidate;e.createOffer=function(d,h){let u=arguments.length>=2?arguments[2]:arguments[0],m=t.apply(this,[u]);return h?(m.then(d,h),Promise.resolve()):m},e.createAnswer=function(d,h){let u=arguments.length>=2?arguments[2]:arguments[0],m=i.apply(this,[u]);return h?(m.then(d,h),Promise.resolve()):m};let a=function(c,d,h){let u=n.apply(this,[c]);return h?(u.then(d,h),Promise.resolve()):u};e.setLocalDescription=a,a=function(c,d,h){let u=o.apply(this,[c]);return h?(u.then(d,h),Promise.resolve()):u},e.setRemoteDescription=a,a=function(c,d,h){let u=s.apply(this,[c]);return h?(u.then(d,h),Promise.resolve()):u},e.addIceCandidate=a}function zn(r){let e=r&&r.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){let t=e.mediaDevices,i=t.getUserMedia.bind(t);e.mediaDevices.getUserMedia=n=>i(dl(n))}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=(function(i,n,o){e.mediaDevices.getUserMedia(i).then(n,o)}).bind(e))}function dl(r){return r&&r.video!==void 0?Object.assign({},r,{video:vn(r.video)}):r}function Un(r){if(!r.RTCPeerConnection)return;let e=r.RTCPeerConnection;r.RTCPeerConnection=function(i,n){if(i&&i.iceServers){let o=[];for(let s=0;s<i.iceServers.length;s++){let a=i.iceServers[s];a.urls===void 0&&a.url?(vt("RTCIceServer.url","RTCIceServer.urls"),a=JSON.parse(JSON.stringify(a)),a.urls=a.url,delete a.url,o.push(a)):o.push(i.iceServers[s])}i.iceServers=o}return new e(i,n)},r.RTCPeerConnection.prototype=e.prototype,"generateCertificate"in e&&Object.defineProperty(r.RTCPeerConnection,"generateCertificate",{get(){return e.generateCertificate}})}function qn(r){typeof r=="object"&&r.RTCTrackEvent&&"receiver"in r.RTCTrackEvent.prototype&&!("transceiver"in r.RTCTrackEvent.prototype)&&Object.defineProperty(r.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Bn(r){let e=r.RTCPeerConnection.prototype.createOffer;r.RTCPeerConnection.prototype.createOffer=function(i){if(i){typeof i.offerToReceiveAudio<"u"&&(i.offerToReceiveAudio=!!i.offerToReceiveAudio);let n=this.getTransceivers().find(s=>s.receiver.track.kind==="audio");i.offerToReceiveAudio===!1&&n?n.direction==="sendrecv"?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":n.direction==="recvonly"&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):i.offerToReceiveAudio===!0&&!n&&this.addTransceiver("audio",{direction:"recvonly"}),typeof i.offerToReceiveVideo<"u"&&(i.offerToReceiveVideo=!!i.offerToReceiveVideo);let o=this.getTransceivers().find(s=>s.receiver.track.kind==="video");i.offerToReceiveVideo===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):i.offerToReceiveVideo===!0&&!o&&this.addTransceiver("video",{direction:"recvonly"})}return e.apply(this,arguments)}}function Vn(r){typeof r!="object"||r.AudioContext||(r.AudioContext=r.webkitAudioContext)}var Wn={};jt(Wn,{removeExtmapAllowMixed:()=>vr,shimAddIceCandidateNullOrEmpty:()=>Bt,shimConnectionState:()=>fr,shimMaxMessageSize:()=>Ut,shimParameterlessSetLocalDescription:()=>Vt,shimRTCIceCandidate:()=>zt,shimRTCIceCandidateRelayProtocol:()=>gr,shimSendThrowTypeError:()=>qt});var yt=Xn(jn());function zt(r){if(!r.RTCIceCandidate||r.RTCIceCandidate&&"foundation"in r.RTCIceCandidate.prototype)return;let e=r.RTCIceCandidate;r.RTCIceCandidate=function(i){if(typeof i=="object"&&i.candidate&&i.candidate.indexOf("a=")===0&&(i=JSON.parse(JSON.stringify(i)),i.candidate=i.candidate.substring(2)),i.candidate&&i.candidate.length){let n=new e(i),o=yt.default.parseCandidate(i.candidate);for(let s in o)s in n||Object.defineProperty(n,s,{value:o[s]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new e(i)},r.RTCIceCandidate.prototype=e.prototype,Ce(r,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new r.RTCIceCandidate(t.candidate),writable:"false"}),t))}function gr(r){!r.RTCIceCandidate||r.RTCIceCandidate&&"relayProtocol"in r.RTCIceCandidate.prototype||Ce(r,"icecandidate",e=>{if(e.candidate){let t=yt.default.parseCandidate(e.candidate.candidate);t.type==="relay"&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e})}function Ut(r,e){if(!r.RTCPeerConnection)return;"sctp"in r.RTCPeerConnection.prototype||Object.defineProperty(r.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});let t=function(a){if(!a||!a.sdp)return!1;let c=yt.default.splitSections(a.sdp);return c.shift(),c.some(d=>{let h=yt.default.parseMLine(d);return h&&h.kind==="application"&&h.protocol.indexOf("SCTP")!==-1})},i=function(a){let c=a.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(c===null||c.length<2)return-1;let d=parseInt(c[1],10);return d!==d?-1:d},n=function(a){let c=65536;return e.browser==="firefox"&&(e.version<57?a===-1?c=16384:c=2147483637:e.version<60?c=e.version===57?65535:65536:c=2147483637),c},o=function(a,c){let d=65536;e.browser==="firefox"&&e.version===57&&(d=65535);let h=yt.default.matchPrefix(a.sdp,"a=max-message-size:");return h.length>0?d=parseInt(h[0].substring(19),10):e.browser==="firefox"&&c!==-1&&(d=2147483637),d},s=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,e.browser==="chrome"&&e.version>=76){let{sdpSemantics:c}=this.getConfiguration();c==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(t(arguments[0])){let c=i(arguments[0]),d=n(c),h=o(arguments[0],c),u;d===0&&h===0?u=Number.POSITIVE_INFINITY:d===0||h===0?u=Math.max(d,h):u=Math.min(d,h);let m={};Object.defineProperty(m,"maxMessageSize",{get(){return u}}),this._sctp=m}return s.apply(this,arguments)}}function qt(r){if(!(r.RTCPeerConnection&&"createDataChannel"in r.RTCPeerConnection.prototype))return;function e(i,n){let o=i.send;i.send=function(){let a=arguments[0],c=a.length||a.size||a.byteLength;if(i.readyState==="open"&&n.sctp&&c>n.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+n.sctp.maxMessageSize+" bytes)");return o.apply(i,arguments)}}let t=r.RTCPeerConnection.prototype.createDataChannel;r.RTCPeerConnection.prototype.createDataChannel=function(){let n=t.apply(this,arguments);return e(n,this),n},Ce(r,"datachannel",i=>(e(i.channel,i.target),i))}function fr(r){if(!r.RTCPeerConnection||"connectionState"in r.RTCPeerConnection.prototype)return;let e=r.RTCPeerConnection.prototype;Object.defineProperty(e,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e,"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 i=e[t];e[t]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=n=>{let o=n.target;if(o._lastConnectionState!==o.connectionState){o._lastConnectionState=o.connectionState;let s=new Event("connectionstatechange",n);o.dispatchEvent(s)}return n},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),i.apply(this,arguments)}})}function vr(r,e){if(!r.RTCPeerConnection||e.browser==="chrome"&&e.version>=71||e.browser==="safari"&&e._safariVersion>=13.1)return;let t=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(n){if(n&&n.sdp&&n.sdp.indexOf(`
35
+ `};p.getDirection=function(r,e){let t=p.splitLines(r);for(let i=0;i<t.length;i++)switch(t[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return t[i].substring(2);default:}return e?p.getDirection(e):"sendrecv"};p.getKind=function(r){return p.splitLines(r)[0].split(" ")[0].substring(2)};p.isRejected=function(r){return r.split(" ",2)[1]==="0"};p.parseMLine=function(r){let t=p.splitLines(r)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}};p.parseOLine=function(r){let t=p.matchPrefix(r,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}};p.isValidSDP=function(r){if(typeof r!="string"||r.length===0)return!1;let e=p.splitLines(r);for(let t=0;t<e.length;t++)if(e[t].length<2||e[t].charAt(1)!=="=")return!1;return!0};typeof wn=="object"&&(wn.exports=p)});var Es=20;var Ya=new Kn("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let r=Fe(be);return()=>Tr(r,{scrollThrottle:Es})}});function Ka(r){let e=Fe(be);return()=>Tr(e,{scrollThrottle:Es})}var Ss={provide:Ya,deps:[],useFactory:Ka};var Ar=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=Re({type:r});static \u0275inj=Ae({providers:[Ss],imports:[Lo,Zt,bt,bt,uo]})}return r})();var S=(function(r){return r[r.State=0]="State",r[r.Transition=1]="Transition",r[r.Sequence=2]="Sequence",r[r.Group=3]="Group",r[r.Animate=4]="Animate",r[r.Keyframes=5]="Keyframes",r[r.Style=6]="Style",r[r.Trigger=7]="Trigger",r[r.Reference=8]="Reference",r[r.AnimateChild=9]="AnimateChild",r[r.AnimateRef=10]="AnimateRef",r[r.Query=11]="Query",r[r.Stagger=12]="Stagger",r})(S||{}),le="*";function Rr(r,e){return{type:S.Trigger,name:r,definitions:e,options:{}}}function di(r,e=null){return{type:S.Animate,styles:e,timings:r}}function Ts(r,e=null){return{type:S.Sequence,steps:r,options:e}}function ye(r){return{type:S.Style,styles:r,offset:null}}function hi(r,e,t){return{type:S.State,name:r,styles:e,options:t}}function ui(r,e,t=null){return{type:S.Transition,expr:r,animation:e,options:t}}var ve=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Ke=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,i=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(n)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},dt="!";function Os(r){return new I(3e3,!1)}function Xa(){return new I(3100,!1)}function Ja(){return new I(3101,!1)}function Za(r){return new I(3001,!1)}function el(r){return new I(3003,!1)}function tl(r){return new I(3004,!1)}function As(r,e){return new I(3005,!1)}function Rs(){return new I(3006,!1)}function ks(){return new I(3007,!1)}function Ds(r,e){return new I(3008,!1)}function xs(r){return new I(3002,!1)}function Ps(r,e,t,i,n){return new I(3010,!1)}function Ms(){return new I(3011,!1)}function Ns(){return new I(3012,!1)}function ws(){return new I(3200,!1)}function Ls(){return new I(3202,!1)}function Fs(){return new I(3013,!1)}function zs(r){return new I(3014,!1)}function Us(r){return new I(3015,!1)}function qs(r){return new I(3016,!1)}function Bs(r,e){return new I(3404,!1)}function il(r){return new I(3502,!1)}function Vs(r){return new I(3503,!1)}function Gs(){return new I(3300,!1)}function js(r){return new I(3504,!1)}function Ws(r){return new I(3301,!1)}function Hs(r,e){return new I(3302,!1)}function $s(r){return new I(3303,!1)}function Qs(r,e){return new I(3400,!1)}function Ys(r){return new I(3401,!1)}function Ks(r){return new I(3402,!1)}function Xs(r,e){return new I(3505,!1)}function Te(r){switch(r.length){case 0:return new ve;case 1:return r[0];default:return new Ke(r)}}function Pr(r,e,t=new Map,i=new Map){let n=[],o=[],s=-1,a=null;if(e.forEach(c=>{let d=c.get("offset"),h=d==s,u=h&&a||new Map;c.forEach((m,v)=>{let f=v,y=m;if(v!=="offset")switch(f=r.normalizePropertyName(f,n),y){case dt:y=t.get(v);break;case le:y=i.get(v);break;default:y=r.normalizeStyleValue(v,f,y,n);break}u.set(f,y)}),h||o.push(u),a=u,s=d}),n.length)throw il(n);return o}function mi(r,e,t,i){switch(e){case"start":r.onStart(()=>i(t&&kr(t,"start",r)));break;case"done":r.onDone(()=>i(t&&kr(t,"done",r)));break;case"destroy":r.onDestroy(()=>i(t&&kr(t,"destroy",r)));break}}function kr(r,e,t){let i=t.totalTime,n=!!t.disabled,o=pi(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,i??r.totalTime,n),s=r._data;return s!=null&&(o._data=s),o}function pi(r,e,t,i,n="",o=0,s){return{element:r,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:o,disabled:!!s}}function ne(r,e,t){let i=r.get(e);return i||r.set(e,i=t),i}function Mr(r){let e=r.indexOf(":"),t=r.substring(1,e),i=r.slice(e+1);return[t,i]}var rl=typeof document>"u"?null:document.documentElement;function gi(r){let e=r.parentNode||r.host||null;return e===rl?null:e}function nl(r){return r.substring(1,6)=="ebkit"}var Xe=null,Is=!1;function Js(r){Xe||(Xe=ol()||{},Is=Xe.style?"WebkitAppearance"in Xe.style:!1);let e=!0;return Xe.style&&!nl(r)&&(e=r in Xe.style,!e&&Is&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in Xe.style)),e}function ol(){return typeof document<"u"?document.body:null}function Nr(r,e){for(;e;){if(e===r)return!0;e=gi(e)}return!1}function wr(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let i=r.querySelector(e);return i?[i]:[]}var sl=1e3,Lr="{{",al="}}",Fr="ng-enter",fi="ng-leave",Rt="ng-trigger",kt=".ng-trigger",zr="ng-animating",vi=".ng-animating";function _e(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Dr(parseFloat(e[1]),e[2])}function Dr(r,e){return e==="s"?r*sl:r}function Dt(r,e,t){return r.hasOwnProperty("duration")?r:cl(r,e,t)}var ll=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function cl(r,e,t){let i,n=0,o="";if(typeof r=="string"){let s=r.match(ll);if(s===null)return e.push(Os(r)),{duration:0,delay:0,easing:""};i=Dr(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(n=Dr(parseFloat(a),s[4]));let c=s[5];c&&(o=c)}else i=r;if(!t){let s=!1,a=e.length;i<0&&(e.push(Xa()),s=!0),n<0&&(e.push(Ja()),s=!0),s&&e.splice(a,0,Os(r))}return{duration:i,delay:n,easing:o}}function Zs(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function de(r,e,t){e.forEach((i,n)=>{let o=yi(n);t&&!t.has(n)&&t.set(n,r.style[o]),r.style[o]=i})}function Me(r,e){e.forEach((t,i)=>{let n=yi(i);r.style[n]=""})}function ht(r){return Array.isArray(r)?r.length==1?r[0]:Ts(r):r}function ea(r,e,t){let i=e.params||{},n=Ur(r);n.length&&n.forEach(o=>{i.hasOwnProperty(o)||t.push(Za(o))})}var xr=new RegExp(`${Lr}\\s*(.+?)\\s*${al}`,"g");function Ur(r){let e=[];if(typeof r=="string"){let t;for(;t=xr.exec(r);)e.push(t[1]);xr.lastIndex=0}return e}function ut(r,e,t){let i=`${r}`,n=i.replace(xr,(o,s)=>{let a=e[s];return a==null&&(t.push(el(s)),a=""),a.toString()});return n==i?r:n}var dl=/-+([a-z0-9])/g;function yi(r){return r.replace(dl,(...e)=>e[1].toUpperCase())}function ta(r,e){return r===0||e===0}function ia(r,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((o,s)=>{i.has(s)||n.push(s),i.set(s,o)}),n.length)for(let o=1;o<e.length;o++){let s=e[o];n.forEach(a=>s.set(a,_i(r,a)))}}return e}function oe(r,e,t){switch(e.type){case S.Trigger:return r.visitTrigger(e,t);case S.State:return r.visitState(e,t);case S.Transition:return r.visitTransition(e,t);case S.Sequence:return r.visitSequence(e,t);case S.Group:return r.visitGroup(e,t);case S.Animate:return r.visitAnimate(e,t);case S.Keyframes:return r.visitKeyframes(e,t);case S.Style:return r.visitStyle(e,t);case S.Reference:return r.visitReference(e,t);case S.AnimateChild:return r.visitAnimateChild(e,t);case S.AnimateRef:return r.visitAnimateRef(e,t);case S.Query:return r.visitQuery(e,t);case S.Stagger:return r.visitStagger(e,t);default:throw tl(e.type)}}function _i(r,e){return window.getComputedStyle(r)[e]}var rn=(()=>{class r{validateStyleProperty(t){return Js(t)}containsElement(t,i){return Nr(t,i)}getParentElement(t){return gi(t)}query(t,i,n){return wr(t,i,n)}computeStyle(t,i,n){return n||""}animate(t,i,n,o,s,a=[],c){return new ve(n,o)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=pe({token:r,factory:r.\u0275fac})}return r})(),Ze=class{static NOOP=new rn},et=class{};var hl=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ti=class extends et{normalizePropertyName(e,t){return yi(e)}normalizeStyleValue(e,t,i,n){let o="",s=i.toString().trim();if(hl.has(t)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(As(e,i))}return s+o}};var Oi="*";function ul(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(i=>ml(i,t,e)):t.push(r),t}function ml(r,e,t){if(r[0]==":"){let c=pl(r,t);if(typeof c=="function"){e.push(c);return}r=c}let i=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Us(r)),e;let n=i[1],o=i[2],s=i[3];e.push(ra(n,s));let a=n==Oi&&s==Oi;o[0]=="<"&&!a&&e.push(ra(s,n))}function pl(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(qs(r)),"* => *"}}var Ci=new Set(["true","1"]),bi=new Set(["false","0"]);function ra(r,e){let t=Ci.has(r)||bi.has(r),i=Ci.has(e)||bi.has(e);return(n,o)=>{let s=r==Oi||r==n,a=e==Oi||e==o;return!s&&t&&typeof n=="boolean"&&(s=n?Ci.has(r):bi.has(r)),!a&&i&&typeof o=="boolean"&&(a=o?Ci.has(e):bi.has(e)),s&&a}}var ma=":self",gl=new RegExp(`s*${ma}s*,?`,"g");function pa(r,e,t,i){return new Wr(r).build(e,t,i)}var na="",Wr=class{_driver;constructor(e){this._driver=e}build(e,t,i){let n=new Hr(t);return this._resetContextStyleTimingState(n),oe(this,ht(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=na,e.collectedStyles=new Map,e.collectedStyles.set(na,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&t.errors.push(Rs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let c=a,d=c.name;d.toString().split(/\s*,\s*/).forEach(h=>{c.name=h,o.push(this.visitState(c,t))}),c.name=d}else if(a.type==S.Transition){let c=this.visitTransition(a,t);i+=c.queryCount,n+=c.depCount,s.push(c)}else t.errors.push(ks())}),{type:S.Trigger,name:e.name,states:o,transitions:s,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{Ur(c).forEach(d=>{s.hasOwnProperty(d)||o.add(d)})})}),o.size&&t.errors.push(Ds(e.name,[...o.values()]))}return{type:S.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=oe(this,ht(e.animation),t),n=ul(e.expr,t.errors);return{type:S.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Je(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(i=>oe(this,i,t)),options:Je(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,o=e.steps.map(s=>{t.currentTime=i;let a=oe(this,s,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:S.Group,steps:o,options:Je(e.options)}}visitAnimate(e,t){let i=_l(e.timings,t.errors);t.currentAnimateTimings=i;let n,o=e.styles?e.styles:ye({});if(o.type==S.Keyframes)n=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;let d={};i.easing&&(d.easing=i.easing),s=ye(d)}t.currentTime+=i.duration+i.delay;let c=this.visitStyle(s,t);c.isEmptyStep=a,n=c}return t.currentAnimateTimings=null,{type:S.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===le?i.push(a):t.errors.push(xs(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(Lr)>=0){o=!0;break}}}),{type:S.Style,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let d=t.collectedStyles.get(t.currentQuerySelector),h=d.get(c),u=!0;h&&(o!=n&&o>=h.startTime&&n<=h.endTime&&(t.errors.push(Ps(c,h.startTime,h.endTime,o,n)),u=!1),o=h.startTime),u&&d.set(c,{startTime:o,endTime:n}),t.options&&ea(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ms()),i;let n=1,o=0,s=[],a=!1,c=!1,d=0,h=e.steps.map(w=>{let F=this._makeStyleAst(w,t),Q=F.offset!=null?F.offset:yl(F.styles),V=0;return Q!=null&&(o++,V=F.offset=Q),c=c||V<0||V>1,a=a||V<d,d=V,s.push(V),F});c&&t.errors.push(Ns()),a&&t.errors.push(ws());let u=e.steps.length,m=0;o>0&&o<u?t.errors.push(Ls()):o==0&&(m=n/(u-1));let v=u-1,f=t.currentTime,y=t.currentAnimateTimings,P=y.duration;return h.forEach((w,F)=>{let Q=m>0?F==v?1:m*F:s[F],V=Q*P;t.currentTime=f+y.delay+V,y.duration=V,this._validateStyleAst(w,t),w.offset=Q,i.styles.push(w)}),i}visitReference(e,t){return{type:S.Reference,animation:oe(this,ht(e.animation),t),options:Je(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:Je(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:Je(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[o,s]=fl(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,ne(t.collectedStyles,t.currentQuerySelector,new Map);let a=oe(this,ht(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:S.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Je(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Fs());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Dt(e.timings,t.errors,!0);return{type:S.Stagger,animation:oe(this,ht(e.animation),t),timings:i,options:null}}};function fl(r){let e=!!r.split(/\s*,\s*/).find(t=>t==ma);return e&&(r=r.replace(gl,"")),r=r.replace(/@\*/g,kt).replace(/@\w+/g,t=>kt+"-"+t.slice(1)).replace(/:animating/g,vi),[r,e]}function vl(r){return r?k({},r):null}var Hr=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function yl(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function _l(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let o=Dt(r,e).duration;return qr(o,0,"")}let t=r;if(t.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=qr(0,0,"");return o.dynamic=!0,o.strValue=t,o}let n=Dt(t,e);return qr(n.duration,n.delay,n.easing)}function Je(r){return r?(r=k({},r),r.params&&(r.params=vl(r.params))):r={},r}function qr(r,e,t){return{duration:r,delay:e,easing:t}}function nn(r,e,t,i,n,o,s=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:o,totalTime:n+o,easing:s,subTimeline:a}}var Pt=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Cl=1,bl=":enter",El=new RegExp(bl,"g"),Sl=":leave",Tl=new RegExp(Sl,"g");function ga(r,e,t,i,n,o=new Map,s=new Map,a,c,d=[]){return new $r().buildKeyframes(r,e,t,i,n,o,s,a,c,d)}var $r=class{buildKeyframes(e,t,i,n,o,s,a,c,d,h=[]){d=d||new Pt;let u=new Qr(e,t,d,n,o,h,[]);u.options=c;let m=c.delay?_e(c.delay):0;u.currentTimeline.delayNextStep(m),u.currentTimeline.setStyles([s],null,u.errors,c),oe(this,i,u);let v=u.timelines.filter(f=>f.containsAnimation());if(v.length&&a.size){let f;for(let y=v.length-1;y>=0;y--){let P=v[y];if(P.element===t){f=P;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,c)}return v.length?v.map(f=>f.buildKeyframes()):[nn(t,[],[],[],0,m,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,n,n.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let n of e){let o=n?.delay;if(o){let s=typeof o=="number"?o:_e(ut(o,n?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime,s=i.duration!=null?_e(i.duration):null,a=i.delay!=null?_e(i.delay):null;return s!==0&&e.forEach(c=>{let d=t.appendInstructionToTimeline(c,s,a);o=Math.max(o,d.duration+d.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),oe(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,n=t,o=e.options;if(o&&(o.params||o.delay)&&(n=t.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==S.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ii);let s=_e(o.delay);n.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>oe(this,s,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,o=e.options&&e.options.delay?_e(e.options.delay):0;e.steps.forEach(s=>{let a=t.createSubContext(e.options);o&&a.delayNextStep(o),oe(this,s,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?ut(i,t.params,t.errors):i;return Dt(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let o=e.style;o.type==S.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(c=>{let d=c.offset||0;a.forwardTime(d*o),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+o),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},o=n.delay?_e(n.delay):0;o&&(t.previousNode.type===S.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ii);let s=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((d,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,d);o&&u.delayNextStep(o),d===t.element&&(c=u.currentTimeline),oe(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let m=u.currentTimeline.currentTime;s=Math.max(s,m)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1),c=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime;break}let h=t.currentTimeline;c&&h.delayNextStep(c);let u=h.currentTime;oe(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}},Ii={},Qr=class r{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ii;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,n,o,s,a,c){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=c||new Ai(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=_e(i.duration)),i.delay!=null&&(n.delay=_e(i.delay));let o=i.params;if(o){let s=n.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=ut(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n]})}}return e}createSubContext(e=null,t,i){let n=t||this.element,o=new r(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Ii,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new Yr(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,n,o,s){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(El,"."+this._enterClassName),e=e.replace(Tl,"."+this._leaveClassName);let c=i!=1,d=this._driver.query(this.element,e,c);i!==0&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),a.push(...d)}return!o&&a.length==0&&s.push(zs(t)),a}},Ai=class r{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Cl,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||le),this._currentKeyframe.set(t,le);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let o=n&&n.params||{},s=Ol(e,this._globalTimelineStyles);for(let[a,c]of s){let d=ut(c,o,i);this._pendingStyles.set(a,d),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??le),this._updateStyle(a,d)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,c)=>{let d=new Map([...this._backFill,...a]);d.forEach((h,u)=>{h===dt?e.add(u):h===le&&t.add(u)}),i||d.set("offset",c/this.duration),n.push(d)});let o=[...e.values()],s=[...t.values()];if(i){let a=n[0],c=new Map(a);a.set("offset",0),c.set("offset",1),n=[a,c]}return nn(this.element,n,o,s,this.duration,this.startTime,this.easing,!1)}},Yr=class extends Ai{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,n,o,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let o=[],s=i+t,a=t/s,c=new Map(e[0]);c.set("offset",0),o.push(c);let d=new Map(e[0]);d.set("offset",oa(a)),o.push(d);let h=e.length-1;for(let u=1;u<=h;u++){let m=new Map(e[u]),v=m.get("offset"),f=t+v*i;m.set("offset",oa(f/s)),o.push(m)}i=s,t=0,n="",e=o}return nn(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,!0)}};function oa(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function Ol(r,e){let t=new Map,i;return r.forEach(n=>{if(n==="*"){i??=e.keys();for(let o of i)t.set(o,le)}else for(let[o,s]of n)t.set(o,s)}),t}function sa(r,e,t,i,n,o,s,a,c,d,h,u,m){return{type:0,element:r,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:d,postStyleProps:h,totalTime:u,errors:m}}var Br={},Ri=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,n){return Il(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,o,s,a,c,d,h){let u=[],m=this.ast.options&&this.ast.options.params||Br,v=a&&a.params||Br,f=this.buildStyles(i,v,u),y=c&&c.params||Br,P=this.buildStyles(n,y,u),w=new Set,F=new Map,Q=new Map,V=n==="void",it={params:fa(y,m),delay:this.ast.options?.delay},ue=h?[]:ga(e,t,this.ast.animation,o,s,f,P,it,d,u),Y=0;return ue.forEach(ee=>{Y=Math.max(ee.duration+ee.delay,Y)}),u.length?sa(t,this._triggerName,i,n,V,f,P,[],[],F,Q,Y,u):(ue.forEach(ee=>{let Ne=ee.element,rt=ne(F,Ne,new Set);ee.preStyleProps.forEach(we=>rt.add(we));let zn=ne(Q,Ne,new Set);ee.postStyleProps.forEach(we=>zn.add(we)),Ne!==t&&w.add(Ne)}),sa(t,this._triggerName,i,n,V,f,P,ue,[...w.values()],F,Q,Y))}};function Il(r,e,t,i,n){return r.some(o=>o(e,t,i,n))}function fa(r,e){let t=k({},e);return Object.entries(r).forEach(([i,n])=>{n!=null&&(t[i]=n)}),t}var Kr=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,n=fa(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ut(s,n,t));let c=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,c,s,t),i.set(a,s)})}),i}};function Al(r,e,t){return new Xr(r,e,t)}var Xr=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Kr(n.style,o,i))}),aa(this.states,"true","1"),aa(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Ri(e,n,this.states))}),this.fallbackTransition=Rl(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(s=>s.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Rl(r,e,t){let i=[(s,a)=>!0],n={type:S.Sequence,steps:[],options:null},o={type:S.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new Ri(r,o,e)}function aa(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var kl=new Pt,Jr=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],n=[],o=pa(this._driver,t,i,n);if(i.length)throw Vs(i);this._animations.set(e,o)}_buildPlayer(e,t,i){let n=e.element,o=Pr(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let n=[],o=this._animations.get(e),s,a=new Map;if(o?(s=ga(this._driver,t,o,Fr,fi,new Map,new Map,i,kl,n),s.forEach(h=>{let u=ne(a,h.element,new Map);h.postStyleProps.forEach(m=>u.set(m,null))})):(n.push(Gs()),s=[]),n.length)throw js(n);a.forEach((h,u)=>{h.forEach((m,v)=>{h.set(v,this._driver.computeStyle(u,v,le))})});let c=s.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),d=Te(c);return this._playersById.set(e,d),d.onDestroy(()=>this.destroy(e)),this.players.push(d),d}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ws(e);return t}listen(e,t,i,n){let o=pi(t,"","","");return mi(this._getPlayer(e),i,o,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let s=n[0]||{};this.create(e,t,s);return}let o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},la="ng-animate-queued",Dl=".ng-animate-queued",Vr="ng-animate-disabled",xl=".ng-animate-disabled",Pl="ng-star-inserted",Ml=".ng-star-inserted",Nl=[],va={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wl={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},he="__ng_removed",Mt=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=Fl(n),i){let o=e,{value:s}=o,a=Vn(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n])})}}},xt="void",Gr=new Mt(xt),Zr=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,ce(t,this._hostClassName)}listen(e,t,i,n){if(!this._triggers.has(t))throw Hs(i,t);if(i==null||i.length==0)throw $s(t);if(!zl(i))throw Qs(i,t);let o=ne(this._elementListeners,e,[]),s={name:t,phase:i,callback:n};o.push(s);let a=ne(this._engine.statesByElement,e,new Map);return a.has(t)||(ce(e,Rt),ce(e,Rt+"-"+t),a.set(t,Gr)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ys(e);return t}trigger(e,t,i,n=!0){let o=this._getTrigger(t),s=new Nt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(ce(e,Rt),ce(e,Rt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let c=a.get(t),d=new Mt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&d.absorbOptions(c.options),a.set(t,d),c||(c=Gr),!(d.value===xt)&&c.value===d.value){if(!Bl(c.params,d.params)){let y=[],P=o.matchStyles(c.value,c.params,y),w=o.matchStyles(d.value,d.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Me(e,P),de(e,w)})}return}let m=ne(this._engine.playersByElement,e,[]);m.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let v=o.matchTransition(c.value,d.value,e,d.params),f=!1;if(!v){if(!n)return;v=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:v,fromState:c,toState:d,player:s,isFallbackTransition:f}),f||(ce(e,la),s.onStart(()=>{mt(e,la)})),s.onDone(()=>{let y=this.players.indexOf(s);y>=0&&this.players.splice(y,1);let P=this._engine.playersByElement.get(e);if(P){let w=P.indexOf(s);w>=0&&P.splice(w,1)}}),this.players.push(s),m.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,kt,!0);i.forEach(n=>{if(n[he])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(s=>s.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,i,n){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((c,d)=>{if(s.set(d,c.value),this._triggers.has(d)){let h=this.trigger(e,d,xt,n);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&Te(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(o=>{let s=o.name;if(n.has(s))return;n.add(s);let c=this._triggers.get(s).fallbackTransition,d=i.get(s)||Gr,h=new Mt(xt),u=new Nt(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:d,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,!1,t);else{let o=e[he];(!o||o===va)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){ce(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let c=pi(o,i.triggerName,i.fromState.value,i.toState.value);c._data=e,mi(i.player,a.phase,c,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(i)}),this._queue=[],t.sort((i,n)=>{let o=i.transition.ast.depCount,s=n.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},en=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Zr(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){let c=n.get(a);if(c){let d=i.indexOf(c);i.splice(d+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&t.add(o)}}return t}trigger(e,t,i,n){if(Ei(t)){let o=this._fetchNamespace(e);if(o)return o.trigger(t,i,n),!0}return!1}insertNode(e,t,i,n){if(!Ei(t))return;let o=t[he];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(t,i)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ce(e,Vr)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),mt(e,Vr))}removeNode(e,t,i){if(Ei(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,n,o){this.collectedLeaveElements.push(t),t[he]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,n,o){return Ei(t)?this._fetchNamespace(e).listen(t,i,n,o):()=>{}}_buildInstruction(e,t,i,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,kt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,vi,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Te(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[he];if(t&&t.setForRemoval){if(e[he]=va,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Vr)&&this.markElementAsDisabled(e,!1),this.driver.query(e,xl,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];ce(n,Pl)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let n=0;n<i.length;n++)i[n]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Te(t).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(e){throw Ks(e)}_flushAnimations(e,t){let i=new Pt,n=[],o=new Map,s=[],a=new Map,c=new Map,d=new Map,h=new Set;this.disabledNodes.forEach(_=>{h.add(_);let b=this.driver.query(_,Dl,!0);for(let E=0;E<b.length;E++)h.add(b[E])});let u=this.bodyNode,m=Array.from(this.statesByElement.keys()),v=ha(m,this.collectedEnterElements),f=new Map,y=0;v.forEach((_,b)=>{let E=Fr+y++;f.set(b,E),_.forEach(O=>ce(O,E))});let P=[],w=new Set,F=new Set;for(let _=0;_<this.collectedLeaveElements.length;_++){let b=this.collectedLeaveElements[_],E=b[he];E&&E.setForRemoval&&(P.push(b),w.add(b),E.hasAnimation?this.driver.query(b,Ml,!0).forEach(O=>w.add(O)):F.add(b))}let Q=new Map,V=ha(m,Array.from(w));V.forEach((_,b)=>{let E=fi+y++;Q.set(b,E),_.forEach(O=>ce(O,E))}),e.push(()=>{v.forEach((_,b)=>{let E=f.get(b);_.forEach(O=>mt(O,E))}),V.forEach((_,b)=>{let E=Q.get(b);_.forEach(O=>mt(O,E))}),P.forEach(_=>{this.processLeaveNode(_)})});let it=[],ue=[];for(let _=this._namespaceList.length-1;_>=0;_--)this._namespaceList[_].drainQueuedTransitions(t).forEach(E=>{let O=E.player,z=E.element;if(it.push(O),this.collectedEnterElements.length){let H=z[he];if(H&&H.setForMove){if(H.previousTriggersValues&&H.previousTriggersValues.has(E.triggerName)){let Le=H.previousTriggersValues.get(E.triggerName),ae=this.statesByElement.get(E.element);if(ae&&ae.has(E.triggerName)){let Bt=ae.get(E.triggerName);Bt.value=Le,ae.set(E.triggerName,Bt)}}O.destroy();return}}let me=!u||!this.driver.containsElement(u,z),se=Q.get(z),Ie=f.get(z),N=this._buildInstruction(E,i,Ie,se,me);if(N.errors&&N.errors.length){ue.push(N);return}if(me){O.onStart(()=>Me(z,N.fromStyles)),O.onDestroy(()=>de(z,N.toStyles)),n.push(O);return}if(E.isFallbackTransition){O.onStart(()=>Me(z,N.fromStyles)),O.onDestroy(()=>de(z,N.toStyles)),n.push(O);return}let Bn=[];N.timelines.forEach(H=>{H.stretchStartingKeyframe=!0,this.disabledNodes.has(H.element)||Bn.push(H)}),N.timelines=Bn,i.append(z,N.timelines);let $a={instruction:N,player:O,element:z};s.push($a),N.queriedElements.forEach(H=>ne(a,H,[]).push(O)),N.preStyleProps.forEach((H,Le)=>{if(H.size){let ae=c.get(Le);ae||c.set(Le,ae=new Set),H.forEach((Bt,mr)=>ae.add(mr))}}),N.postStyleProps.forEach((H,Le)=>{let ae=d.get(Le);ae||d.set(Le,ae=new Set),H.forEach((Bt,mr)=>ae.add(mr))})});if(ue.length){let _=[];ue.forEach(b=>{_.push(Xs(b.triggerName,b.errors))}),it.forEach(b=>b.destroy()),this.reportError(_)}let Y=new Map,ee=new Map;s.forEach(_=>{let b=_.element;i.has(b)&&(ee.set(b,b),this._beforeAnimationBuild(_.player.namespaceId,_.instruction,Y))}),n.forEach(_=>{let b=_.element;this._getPreviousPlayers(b,!1,_.namespaceId,_.triggerName,null).forEach(O=>{ne(Y,b,[]).push(O),O.destroy()})});let Ne=P.filter(_=>ua(_,c,d)),rt=new Map;da(rt,this.driver,F,d,le).forEach(_=>{ua(_,c,d)&&Ne.push(_)});let we=new Map;v.forEach((_,b)=>{da(we,this.driver,new Set(_),c,dt)}),Ne.forEach(_=>{let b=rt.get(_),E=we.get(_);rt.set(_,new Map([...b?.entries()??[],...E?.entries()??[]]))});let ur=[],Un=[],qn={};s.forEach(_=>{let{element:b,player:E,instruction:O}=_;if(i.has(b)){if(h.has(b)){E.onDestroy(()=>de(b,O.toStyles)),E.disabled=!0,E.overrideTotalTime(O.totalTime),n.push(E);return}let z=qn;if(ee.size>1){let se=b,Ie=[];for(;se=se.parentNode;){let N=ee.get(se);if(N){z=N;break}Ie.push(se)}Ie.forEach(N=>ee.set(N,z))}let me=this._buildAnimation(E.namespaceId,O,Y,o,we,rt);if(E.setRealPlayer(me),z===qn)ur.push(E);else{let se=this.playersByElement.get(z);se&&se.length&&(E.parentPlayer=Te(se)),n.push(E)}}else Me(b,O.fromStyles),E.onDestroy(()=>de(b,O.toStyles)),Un.push(E),h.has(b)&&n.push(E)}),Un.forEach(_=>{let b=o.get(_.element);if(b&&b.length){let E=Te(b);_.setRealPlayer(E)}}),n.forEach(_=>{_.parentPlayer?_.syncPlayerEvents(_.parentPlayer):_.destroy()});for(let _=0;_<P.length;_++){let b=P[_],E=b[he];if(mt(b,fi),E&&E.hasAnimation)continue;let O=[];if(a.size){let me=a.get(b);me&&me.length&&O.push(...me);let se=this.driver.query(b,vi,!0);for(let Ie=0;Ie<se.length;Ie++){let N=a.get(se[Ie]);N&&N.length&&O.push(...N)}}let z=O.filter(me=>!me.destroyed);z.length?Ul(this,b,z):this.processLeaveNode(b)}return P.length=0,ur.forEach(_=>{this.players.push(_),_.onDone(()=>{_.destroy();let b=this.players.indexOf(_);this.players.splice(b,1)}),_.play()}),ur}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,n,o){let s=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!o||o==xt;a.forEach(d=>{d.queued||!c&&d.triggerName!=n||s.push(d)})}}return(i||n)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){let n=t.triggerName,o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let c of t.timelines){let d=c.element,h=d!==o,u=ne(i,d,[]);this._getPreviousPlayers(d,h,s,a,t.toState).forEach(v=>{let f=v.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),v.destroy(),u.push(v)})}Me(o,t.fromStyles)}_buildAnimation(e,t,i,n,o,s){let a=t.triggerName,c=t.element,d=[],h=new Set,u=new Set,m=t.timelines.map(f=>{let y=f.element;h.add(y);let P=y[he];if(P&&P.removedBeforeQueried)return new ve(f.duration,f.delay);let w=y!==c,F=ql((i.get(y)||Nl).map(Y=>Y.getRealPlayer())).filter(Y=>{let ee=Y;return ee.element?ee.element===y:!1}),Q=o.get(y),V=s.get(y),it=Pr(this._normalizer,f.keyframes,Q,V),ue=this._buildPlayer(f,it,F);if(f.subTimeline&&n&&u.add(y),w){let Y=new Nt(e,a,y);Y.setRealPlayer(ue),d.push(Y)}return ue});d.forEach(f=>{ne(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ll(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>ce(f,zr));let v=Te(m);return v.onDestroy(()=>{h.forEach(f=>mt(f,zr)),de(c,t.toStyles)}),u.forEach(f=>{ne(n,f,[]).push(v)}),v}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new ve(e.duration,e.delay)}},Nt=class{namespaceId;triggerName;element;_player=new ve;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>mi(e,i,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){ne(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Ll(r,e,t){let i=r.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1)}i.length==0&&r.delete(e)}return i}function Fl(r){return r??null}function Ei(r){return r&&r.nodeType===1}function zl(r){return r=="start"||r=="done"}function ca(r,e){let t=r.style.display;return r.style.display=e??"none",t}function da(r,e,t,i,n){let o=[];t.forEach(c=>o.push(ca(c)));let s=[];i.forEach((c,d)=>{let h=new Map;c.forEach(u=>{let m=e.computeStyle(d,u,n);h.set(u,m),(!m||m.length==0)&&(d[he]=wl,s.push(d))}),r.set(d,h)});let a=0;return t.forEach(c=>ca(c,o[a++])),s}function ha(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),o=new Map;function s(a){if(!a)return i;let c=o.get(a);if(c)return c;let d=a.parentNode;return t.has(d)?c=d:n.has(d)?c=i:c=s(d),o.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==i&&t.get(c).push(a)}),t}function ce(r,e){r.classList?.add(e)}function mt(r,e){r.classList?.remove(e)}function Ul(r,e,t){Te(t).onDone(()=>r.processLeaveNode(e))}function ql(r){let e=[];return ya(r,e),e}function ya(r,e){for(let t=0;t<r.length;t++){let i=r[t];i instanceof Ke?ya(i.players,e):e.push(i)}}function Bl(r,e){let t=Object.keys(r),i=Object.keys(e);if(t.length!=i.length)return!1;for(let n=0;n<t.length;n++){let o=t[n];if(!e.hasOwnProperty(o)||r[o]!==e[o])return!1}return!0}function ua(r,e,t){let i=t.get(r);if(!i)return!1;let n=e.get(r);return n?i.forEach(o=>n.add(o)):e.set(r,i),t.delete(r),!0}var pt=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new en(e.body,t,i),this._timelineEngine=new Jr(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,t,i,n,o){let s=e+"-"+n,a=this._triggerCache[s];if(!a){let c=[],d=[],h=pa(this._driver,o,c,d);if(c.length)throw Bs(n,c);a=Al(n,h,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,n){if(i.charAt(0)=="@"){let[o,s]=Mr(i),a=n;this._timelineEngine.command(o,t,s,a)}else this._transitionEngine.trigger(e,t,i,n)}listen(e,t,i,n,o){if(i.charAt(0)=="@"){let[s,a]=Mr(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,i,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Vl(r,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=jr(e[0]),e.length>1&&(i=jr(e[e.length-1]))):e instanceof Map&&(t=jr(e)),t||i?new Gl(r,t,i):null}var Gl=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,n){this._element=t,this._startStyles=i,this._endStyles=n;let o=r.initialStylesByElement.get(t);o||r.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&de(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(de(this._element,this._initialStyles),this._endStyles&&(de(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Me(this._element,this._endStyles),this._endStyles=null),de(this._element,this._initialStyles),this._state=3)}}return r})();function jr(r){let e=null;return r.forEach((t,i)=>{jl(i)&&(e=e||new Map,e.set(i,t))}),e}function jl(r){return r==="display"||r==="position"}var ki=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();return t.addEventListener("finish",i),this.onDestroy(()=>{t.removeEventListener("finish",i)}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){let n=this._convertKeyframesToObject(t);try{return e.animate(n,i)}catch{return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:_i(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Di=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Nr(e,t)}getParentElement(e){return gi(e)}query(e,t,i){return wr(e,t,i)}computeStyle(e,t,i){return _i(e,t)}animate(e,t,i,n,o,s=[]){let a=n==0?"both":"forwards",c={duration:i,delay:n,fill:a};o&&(c.easing=o);let d=new Map,h=s.filter(v=>v instanceof ki);ta(i,n)&&h.forEach(v=>{v.currentSnapshot.forEach((f,y)=>d.set(y,f))});let u=Zs(t).map(v=>new Map(v));u=ia(e,u,d);let m=Vl(e,u);return new ki(e,u,c,m)}};var Si="@",_a="@.disabled",xi=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,n=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,i,n){if(n){this.delegate.removeChild(e,t,i,n);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,n){this.delegate.setAttribute(e,t,i,n)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Si&&t==_a?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i,n){return this.delegate.listen(e,t,i,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},tn=class extends xi{factory;constructor(e,t,i,n,o){super(t,i,n,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Si?t.charAt(1)=="."&&t==_a?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i,n){if(t.charAt(0)==Si){let o=Wl(e),s=t.slice(1),a="";return s.charAt(0)!=Si&&([s,a]=Hl(s)),this.engine.listen(this.namespaceId,o,s,a,c=>{let d=c._data||-1;this.factory.scheduleListenerCallback(d,i,c)})}return this.delegate.listen(e,t,i,n)}};function Wl(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function Hl(r){let e=r.indexOf("."),t=r.substring(0,e),i=r.slice(e+1);return[t,i]}var Pi=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(n,o)=>{o?.removeChild(null,n)}}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let d=this._rendererCache,h=d.get(n);if(!h){let u=()=>d.delete(n);h=new xi("",n,this.engine,u),d.set(n,h)}return h}let o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=d=>{Array.isArray(d)?d.forEach(a):this.engine.registerTrigger(o,s,e,d.name,d)};return t.data.animation.forEach(a),new tn(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var Ql=(()=>{class r extends pt{constructor(t,i,n){super(t,i,n)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||r)(U(pr),U(Ze),U(et))};static \u0275prov=pe({token:r,factory:r.\u0275fac})}return r})();function Yl(){return new Ti}function Kl(r,e,t){return new Pi(r,e,t)}var ba=[{provide:et,useFactory:Yl},{provide:pt,useClass:Ql},{provide:ro,useFactory:Kl,deps:[so,pt,fr]}],Xl=[{provide:Ze,useClass:rn},{provide:gr,useValue:"NoopAnimations"},...ba],Ca=[{provide:Ze,useFactory:()=>new Di},{provide:gr,useFactory:()=>"BrowserAnimations"},...ba],Ea=(()=>{class r{static withConfig(t){return{ngModule:r,providers:t.disableAnimations?Xl:Ca}}static \u0275fac=function(i){return new(i||r)};static \u0275mod=Re({type:r});static \u0275inj=Ae({providers:Ca,imports:[Jt]})}return r})();var Mi=class{constructor(e,t){this.queue=[],this.realElement=null,this.loadPromise=t.ensureActivityLogChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyActivityElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}getAllActivities(e){return this.proxyObservable(t=>t.getAllActivities(e))}createActivity(e){return this.loadPromise.then(t=>t.createActivity(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Ni=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureAreaChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyAreaElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableArea(){this.enqueueOrCall(e=>e.enableArea())}disableArea(){this.enqueueOrCall(e=>e.disableArea())}enableAreaComment(){this.enqueueOrCall(e=>e.enableAreaComment())}disableAreaComment(){this.enqueueOrCall(e=>e.disableAreaComment())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}};var wi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureArrowChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyArrowElement post-load wiring failed: ",n)}}).catch(()=>{})}allowedElementIds(e){if(this.realElement){this.realElement.allowedElementIds(e);return}this.queue.push(t=>t.allowedElementIds(e))}ha(e){if(this.realElement){this.realElement.ha(e);return}this.queue.push(t=>t.ha(e))}};var Li=class extends Pe{constructor(e){super(e),this.getService(l).log("%c[WB] Creating CLASS: AutocompleteElement","color: blue;"),this.create=this._create,this.onAutocompleteChipClick=this._onAutocompleteChipClick}_create(e){this.getService(l).log("%c[WB] Calling FUNCTION: create","color: green;");try{return this.trackEvent(g.Events.Autocomplete.CREATE_TRIGGERED,{payload:{data:e}}),this.getService(Qe).create(e)}catch(t){this.getService(l).catch("Error in _create: ",t)}}_onAutocompleteChipClick(){this.getService(l).log("%c[WB] Calling FUNCTION: onAutocompleteChipClick","color: green;");try{return this.trackEvent(g.Events.Autocomplete.ON_AUTOCOMPLETE_CHIP_CLICK_TRIGGERED),this.getService(Qe).getOnAutocompleteChipClick$()}catch(e){return this.getService(l).catch("Error in _onAutocompleteChipClick: ",e),x(null)}}};var Fi=class{constructor(e,t){this.__lazyQueue=[],this.__lazyRealElement=null,this.__lazyLoadPromise=t.ensureCommentChunk(),this.__lazyLoadPromise.then(i=>{try{this.__lazyRealElement=i;let n=this.__lazyQueue;this.__lazyQueue=[],n.forEach(o=>{try{o(i)}catch(s){e.get(l).catch("LazyCommentElement queued call failed: ",s)}})}catch(n){e.get(l).catch("LazyCommentElement post-load wiring failed: ",n)}}).catch(()=>{})}getAllCommentAnnotations(...e){return this.__lazyProxyObservable(t=>t.getAllCommentAnnotations(...e))}getCommentAnnotationById(...e){return this.__lazyProxyObservable(t=>t.getCommentAnnotationById(...e))}getCommentAnnotations(...e){return this.__lazyProxyObservable(t=>t.getCommentAnnotations(...e))}getCommentAnnotationsCount(...e){return this.__lazyProxyObservable(t=>t.getCommentAnnotationsCount(...e))}getSelectedComments(...e){return this.__lazyProxyObservable(t=>t.getSelectedComments(...e))}getUnreadCommentAnnotationCountByLocationId(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentAnnotationCountByLocationId(...e))}getUnreadCommentAnnotationCountOnCurrentDocument(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentAnnotationCountOnCurrentDocument(...e))}getUnreadCommentCountByAnnotationId(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentCountByAnnotationId(...e))}getUnreadCommentCountByLocationId(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentCountByLocationId(...e))}getUnreadCommentCountOnCurrentDocument(...e){return this.__lazyProxyObservable(t=>t.getUnreadCommentCountOnCurrentDocument(...e))}isUserGlobalContact(...e){return this.__lazyProxyObservable(t=>t.isUserGlobalContact(...e))}on(...e){return this.__lazyProxyObservable(t=>t.on(...e))}onCommentAdd(...e){return this.__lazyProxyObservable(t=>t.onCommentAdd(...e))}onCommentModeChange(...e){return this.__lazyProxyObservable(t=>t.onCommentModeChange(...e))}onCommentSelectionChange(...e){return this.__lazyProxyObservable(t=>t.onCommentSelectionChange(...e))}onCommentSidebarActionButtonClick(...e){return this.__lazyProxyObservable(t=>t.onCommentSidebarActionButtonClick(...e))}onCommentSidebarData(...e){return this.__lazyProxyObservable(t=>t.onCommentSidebarData(...e))}onCommentSidebarInit(...e){return this.__lazyProxyObservable(t=>t.onCommentSidebarInit(...e))}onCommentUpdate(...e){return this.__lazyProxyObservable(t=>t.onCommentUpdate(...e))}onCopyLink(...e){return this.__lazyProxyObservable(t=>t.onCopyLink(...e))}onSidebarButtonOnCommentDialogClick(...e){return this.__lazyProxyObservable(t=>t.onSidebarButtonOnCommentDialogClick(...e))}acceptCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.acceptCommentAnnotation(...e))}addAttachment(...e){return this.__lazyAwaitAndCall(t=>t.addAttachment(...e))}addComment(...e){return this.__lazyAwaitAndCall(t=>t.addComment(...e))}addCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.addCommentAnnotation(...e))}addManualComment(...e){return this.__lazyAwaitAndCall(t=>t.addManualComment(...e))}addReaction(...e){return this.__lazyAwaitAndCall(t=>t.addReaction(...e))}approveCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.approveCommentAnnotation(...e))}assignUser(...e){return this.__lazyAwaitAndCall(t=>t.assignUser(...e))}copyLink(...e){return this.__lazyAwaitAndCall(t=>t.copyLink(...e))}deleteAttachment(...e){return this.__lazyAwaitAndCall(t=>t.deleteAttachment(...e))}deleteComment(...e){return this.__lazyAwaitAndCall(t=>t.deleteComment(...e))}deleteCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.deleteCommentAnnotation(...e))}deleteReaction(...e){return this.__lazyAwaitAndCall(t=>t.deleteReaction(...e))}deleteRecording(...e){return this.__lazyAwaitAndCall(t=>t.deleteRecording(...e))}deleteSelectedComment(...e){return this.__lazyAwaitAndCall(t=>t.deleteSelectedComment(...e))}fetchCommentAnnotations(...e){return this.__lazyAwaitAndCall(t=>t.fetchCommentAnnotations(...e))}getAttachment(...e){return this.__lazyAwaitAndCall(t=>t.getAttachment(...e))}getComment(...e){return this.__lazyAwaitAndCall(t=>t.getComment(...e))}getLink(...e){return this.__lazyAwaitAndCall(t=>t.getLink(...e))}getRecording(...e){return this.__lazyAwaitAndCall(t=>t.getRecording(...e))}markAsRead(...e){return this.__lazyAwaitAndCall(t=>t.markAsRead(...e))}markAsUnread(...e){return this.__lazyAwaitAndCall(t=>t.markAsUnread(...e))}rejectCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.rejectCommentAnnotation(...e))}resolveCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.resolveCommentAnnotation(...e))}subscribeCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.subscribeCommentAnnotation(...e))}toggleReaction(...e){return this.__lazyAwaitAndCall(t=>t.toggleReaction(...e))}unsubscribeCommentAnnotation(...e){return this.__lazyAwaitAndCall(t=>t.unsubscribeCommentAnnotation(...e))}updateAccess(...e){return this.__lazyAwaitAndCall(t=>t.updateAccess(...e))}updateComment(...e){return this.__lazyAwaitAndCall(t=>t.updateComment(...e))}updateContext(...e){return this.__lazyAwaitAndCall(t=>t.updateContext(...e))}updatePriority(...e){return this.__lazyAwaitAndCall(t=>t.updatePriority(...e))}updateStatus(...e){return this.__lazyAwaitAndCall(t=>t.updateStatus(...e))}updateVisibility(...e){return this.__lazyAwaitAndCall(t=>t.updateVisibility(...e))}addCommentOnElement(...e){this.__lazyEnqueueOrCall(t=>{t.addCommentOnElement(...e)})}addCommentOnSelectedText(...e){this.__lazyEnqueueOrCall(t=>{t.addCommentOnSelectedText(...e)})}allowedElementClassNames(...e){this.__lazyEnqueueOrCall(t=>{t.allowedElementClassNames(...e)})}allowedElementIds(...e){this.__lazyEnqueueOrCall(t=>{t.allowedElementIds(...e)})}allowedElementQuerySelectors(...e){this.__lazyEnqueueOrCall(t=>{t.allowedElementQuerySelectors(...e)})}attachComment(...e){this.__lazyEnqueueOrCall(t=>{t.attachComment(...e)})}clearComposer(...e){this.__lazyEnqueueOrCall(t=>{t.clearComposer(...e)})}clearPageModeComposerContext(...e){this.__lazyEnqueueOrCall(t=>{t.clearPageModeComposerContext(...e)})}closeCommentSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.closeCommentSidebar(...e)})}createCustomListDataOnAnnotation(...e){this.__lazyEnqueueOrCall(t=>{t.createCustomListDataOnAnnotation(...e)})}createCustomListDataOnComment(...e){this.__lazyEnqueueOrCall(t=>{t.createCustomListDataOnComment(...e)})}disableAnonymousEmail(...e){this.__lazyEnqueueOrCall(t=>{t.disableAnonymousEmail(...e)})}disableAreaComment(...e){this.__lazyEnqueueOrCall(t=>{t.disableAreaComment(...e)})}disableAttachmentDownload(...e){this.__lazyEnqueueOrCall(t=>{t.disableAttachmentDownload(...e)})}disableAttachments(...e){this.__lazyEnqueueOrCall(t=>{t.disableAttachments(...e)})}disableAutoCategorize(...e){this.__lazyEnqueueOrCall(t=>{t.disableAutoCategorize(...e)})}disableBubbleOnPin(...e){this.__lazyEnqueueOrCall(t=>{t.disableBubbleOnPin(...e)})}disableBubbleOnPinHover(...e){this.__lazyEnqueueOrCall(t=>{t.disableBubbleOnPinHover(...e)})}disableChangeDetectionInCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableChangeDetectionInCommentMode(...e)})}disableCollapsedComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableCollapsedComments(...e)})}disableCollapsedRepliesPreview(...e){this.__lazyEnqueueOrCall(t=>{t.disableCollapsedRepliesPreview(...e)})}disableCommentIndex(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentIndex(...e)})}disableCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentMode(...e)})}disableCommentPinHighlighter(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentPinHighlighter(...e)})}disableCommentToNearestAllowedElement(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentToNearestAllowedElement(...e)})}disableCommentTool(...e){this.__lazyEnqueueOrCall(t=>{t.disableCommentTool(...e)})}disableContextInPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.disableContextInPageModeComposer(...e)})}disableCustomAutocompleteSearch(...e){this.__lazyEnqueueOrCall(t=>{t.disableCustomAutocompleteSearch(...e)})}disableDarkMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableDarkMode(...e)})}disableDeleteOnBackspace(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeleteOnBackspace(...e)})}disableDeleteReplyConfirmation(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeleteReplyConfirmation(...e)})}disableDeviceIndicatorOnCommentPins(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeviceIndicatorOnCommentPins(...e)})}disableDeviceInfo(...e){this.__lazyEnqueueOrCall(t=>{t.disableDeviceInfo(...e)})}disableDialogOnHover(...e){this.__lazyEnqueueOrCall(t=>{t.disableDialogOnHover(...e)})}disableDialogOnTargetElementClick(...e){this.__lazyEnqueueOrCall(t=>{t.disableDialogOnTargetElementClick(...e)})}disableDialogShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.disableDialogShadowDOM(...e)})}disableDraftMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableDraftMode(...e)})}disableEnterKeyToSubmit(...e){this.__lazyEnqueueOrCall(t=>{t.disableEnterKeyToSubmit(...e)})}disableFilterCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.disableFilterCommentsOnDom(...e)})}disableFilterGhostCommentsInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.disableFilterGhostCommentsInSidebar(...e)})}disableFloatingCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.disableFloatingCommentDialog(...e)})}disableForceCloseAllOnEsc(...e){this.__lazyEnqueueOrCall(t=>{t.disableForceCloseAllOnEsc(...e)})}disableFormatOptions(...e){this.__lazyEnqueueOrCall(t=>{t.disableFormatOptions(...e)})}disableFullExpanded(...e){this.__lazyEnqueueOrCall(t=>{t.disableFullExpanded(...e)})}disableFullScreenInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.disableFullScreenInSidebar(...e)})}disableGhostComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableGhostComments(...e)})}disableGhostCommentsIndicator(...e){this.__lazyEnqueueOrCall(t=>{t.disableGhostCommentsIndicator(...e)})}disableGroupMatchedComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableGroupMatchedComments(...e)})}disableGroupMultipleMatch(...e){this.__lazyEnqueueOrCall(t=>{t.disableGroupMultipleMatch(...e)})}disableHotkey(...e){this.__lazyEnqueueOrCall(t=>{t.disableHotkey(...e)})}disableInboxMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableInboxMode(...e)})}disableInlineCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableInlineCommentMode(...e)})}disableLinkCallback(...e){this.__lazyEnqueueOrCall(t=>{t.disableLinkCallback(...e)})}disableMinimap(...e){this.__lazyEnqueueOrCall(t=>{t.disableMinimap(...e)})}disableMobileMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableMobileMode(...e)})}disableModeratorMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableModeratorMode(...e)})}disableMultiThread(...e){this.__lazyEnqueueOrCall(t=>{t.disableMultiThread(...e)})}disableMultiThreadMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableMultiThreadMode(...e)})}disablePaginatedContactList(...e){this.__lazyEnqueueOrCall(t=>{t.disablePaginatedContactList(...e)})}disablePersistentCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePersistentCommentMode(...e)})}disablePinDrag(...e){this.__lazyEnqueueOrCall(t=>{t.disablePinDrag(...e)})}disablePinShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.disablePinShadowDOM(...e)})}disablePopoverMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePopoverMode(...e)})}disablePopoverTriangleComponent(...e){this.__lazyEnqueueOrCall(t=>{t.disablePopoverTriangleComponent(...e)})}disablePriority(...e){this.__lazyEnqueueOrCall(t=>{t.disablePriority(...e)})}disablePrivateCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePrivateCommentMode(...e)})}disablePrivateMode(...e){this.__lazyEnqueueOrCall(t=>{t.disablePrivateMode(...e)})}disableQueryParamsComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableQueryParamsComments(...e)})}disableReactions(...e){this.__lazyEnqueueOrCall(t=>{t.disableReactions(...e)})}disableReadOnly(...e){this.__lazyEnqueueOrCall(t=>{t.disableReadOnly(...e)})}disableRecordingCountdown(...e){this.__lazyEnqueueOrCall(t=>{t.disableRecordingCountdown(...e)})}disableRecordingSummary(...e){this.__lazyEnqueueOrCall(t=>{t.disableRecordingSummary(...e)})}disableRecordingTranscription(...e){this.__lazyEnqueueOrCall(t=>{t.disableRecordingTranscription(...e)})}disableReplyAvatars(...e){this.__lazyEnqueueOrCall(t=>{t.disableReplyAvatars(...e)})}disableResolveButton(...e){this.__lazyEnqueueOrCall(t=>{t.disableResolveButton(...e)})}disableResolveStatusAccessAdminOnly(...e){this.__lazyEnqueueOrCall(t=>{t.disableResolveStatusAccessAdminOnly(...e)})}disableScreenshot(...e){this.__lazyEnqueueOrCall(t=>{t.disableScreenshot(...e)})}disableScrollToComment(...e){this.__lazyEnqueueOrCall(t=>{t.disableScrollToComment(...e)})}disableSeenByUsers(...e){this.__lazyEnqueueOrCall(t=>{t.disableSeenByUsers(...e)})}disableShortUserName(...e){this.__lazyEnqueueOrCall(t=>{t.disableShortUserName(...e)})}disableSidebarButtonOnCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarButtonOnCommentDialog(...e)})}disableSidebarCustomActions(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarCustomActions(...e)})}disableSidebarShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarShadowDOM(...e)})}disableSidebarUrlNavigation(...e){this.__lazyEnqueueOrCall(t=>{t.disableSidebarUrlNavigation(...e)})}disableSignInButton(...e){this.__lazyEnqueueOrCall(t=>{t.disableSignInButton(...e)})}disableStatus(...e){this.__lazyEnqueueOrCall(t=>{t.disableStatus(...e)})}disableStreamMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableStreamMode(...e)})}disableSuggestionMode(...e){this.__lazyEnqueueOrCall(t=>{t.disableSuggestionMode(...e)})}disableSvgAsImg(...e){this.__lazyEnqueueOrCall(t=>{t.disableSvgAsImg(...e)})}disableTextComments(...e){this.__lazyEnqueueOrCall(t=>{t.disableTextComments(...e)})}disableUpgradeButton(...e){this.__lazyEnqueueOrCall(t=>{t.disableUpgradeButton(...e)})}disableUserMentions(...e){this.__lazyEnqueueOrCall(t=>{t.disableUserMentions(...e)})}disableVisibilityOptions(...e){this.__lazyEnqueueOrCall(t=>{t.disableVisibilityOptions(...e)})}enableAnonymousEmail(...e){this.__lazyEnqueueOrCall(t=>{t.enableAnonymousEmail(...e)})}enableAreaComment(...e){this.__lazyEnqueueOrCall(t=>{t.enableAreaComment(...e)})}enableAttachmentDownload(...e){this.__lazyEnqueueOrCall(t=>{t.enableAttachmentDownload(...e)})}enableAttachments(...e){this.__lazyEnqueueOrCall(t=>{t.enableAttachments(...e)})}enableAutoCategorize(...e){this.__lazyEnqueueOrCall(t=>{t.enableAutoCategorize(...e)})}enableBubbleOnPin(...e){this.__lazyEnqueueOrCall(t=>{t.enableBubbleOnPin(...e)})}enableBubbleOnPinHover(...e){this.__lazyEnqueueOrCall(t=>{t.enableBubbleOnPinHover(...e)})}enableChangeDetectionInCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableChangeDetectionInCommentMode(...e)})}enableCollapsedComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableCollapsedComments(...e)})}enableCollapsedRepliesPreview(...e){this.__lazyEnqueueOrCall(t=>{t.enableCollapsedRepliesPreview(...e)})}enableCommentIndex(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentIndex(...e)})}enableCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentMode(...e)})}enableCommentPinHighlighter(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentPinHighlighter(...e)})}enableCommentToNearestAllowedElement(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentToNearestAllowedElement(...e)})}enableCommentTool(...e){this.__lazyEnqueueOrCall(t=>{t.enableCommentTool(...e)})}enableContextInPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.enableContextInPageModeComposer(...e)})}enableCustomAutocompleteSearch(...e){this.__lazyEnqueueOrCall(t=>{t.enableCustomAutocompleteSearch(...e)})}enableDarkMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableDarkMode(...e)})}enableDeleteOnBackspace(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeleteOnBackspace(...e)})}enableDeleteReplyConfirmation(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeleteReplyConfirmation(...e)})}enableDeviceIndicatorOnCommentPins(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeviceIndicatorOnCommentPins(...e)})}enableDeviceInfo(...e){this.__lazyEnqueueOrCall(t=>{t.enableDeviceInfo(...e)})}enableDialogOnHover(...e){this.__lazyEnqueueOrCall(t=>{t.enableDialogOnHover(...e)})}enableDialogOnTargetElementClick(...e){this.__lazyEnqueueOrCall(t=>{t.enableDialogOnTargetElementClick(...e)})}enableDialogShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.enableDialogShadowDOM(...e)})}enableDraftMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableDraftMode(...e)})}enableEnterKeyToSubmit(...e){this.__lazyEnqueueOrCall(t=>{t.enableEnterKeyToSubmit(...e)})}enableFilterCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.enableFilterCommentsOnDom(...e)})}enableFilterGhostCommentsInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.enableFilterGhostCommentsInSidebar(...e)})}enableFloatingCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.enableFloatingCommentDialog(...e)})}enableForceCloseAllOnEsc(...e){this.__lazyEnqueueOrCall(t=>{t.enableForceCloseAllOnEsc(...e)})}enableFormatOptions(...e){this.__lazyEnqueueOrCall(t=>{t.enableFormatOptions(...e)})}enableFullExpanded(...e){this.__lazyEnqueueOrCall(t=>{t.enableFullExpanded(...e)})}enableFullScreenInSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.enableFullScreenInSidebar(...e)})}enableGhostComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableGhostComments(...e)})}enableGhostCommentsIndicator(...e){this.__lazyEnqueueOrCall(t=>{t.enableGhostCommentsIndicator(...e)})}enableGroupMatchedComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableGroupMatchedComments(...e)})}enableGroupMultipleMatch(...e){this.__lazyEnqueueOrCall(t=>{t.enableGroupMultipleMatch(...e)})}enableHotkey(...e){this.__lazyEnqueueOrCall(t=>{t.enableHotkey(...e)})}enableInboxMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableInboxMode(...e)})}enableInlineCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableInlineCommentMode(...e)})}enableLinkCallback(...e){this.__lazyEnqueueOrCall(t=>{t.enableLinkCallback(...e)})}enableMinimap(...e){this.__lazyEnqueueOrCall(t=>{t.enableMinimap(...e)})}enableMobileMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableMobileMode(...e)})}enableModeratorMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableModeratorMode(...e)})}enableMultiThread(...e){this.__lazyEnqueueOrCall(t=>{t.enableMultiThread(...e)})}enableMultiThreadMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableMultiThreadMode(...e)})}enablePaginatedContactList(...e){this.__lazyEnqueueOrCall(t=>{t.enablePaginatedContactList(...e)})}enablePersistentCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePersistentCommentMode(...e)})}enablePinDrag(...e){this.__lazyEnqueueOrCall(t=>{t.enablePinDrag(...e)})}enablePinShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.enablePinShadowDOM(...e)})}enablePopoverMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePopoverMode(...e)})}enablePopoverTriangleComponent(...e){this.__lazyEnqueueOrCall(t=>{t.enablePopoverTriangleComponent(...e)})}enablePriority(...e){this.__lazyEnqueueOrCall(t=>{t.enablePriority(...e)})}enablePrivateCommentMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePrivateCommentMode(...e)})}enablePrivateMode(...e){this.__lazyEnqueueOrCall(t=>{t.enablePrivateMode(...e)})}enableQueryParamsComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableQueryParamsComments(...e)})}enableReactions(...e){this.__lazyEnqueueOrCall(t=>{t.enableReactions(...e)})}enableReadOnly(...e){this.__lazyEnqueueOrCall(t=>{t.enableReadOnly(...e)})}enableRecordingCountdown(...e){this.__lazyEnqueueOrCall(t=>{t.enableRecordingCountdown(...e)})}enableRecordingSummary(...e){this.__lazyEnqueueOrCall(t=>{t.enableRecordingSummary(...e)})}enableRecordingTranscription(...e){this.__lazyEnqueueOrCall(t=>{t.enableRecordingTranscription(...e)})}enableReplyAvatars(...e){this.__lazyEnqueueOrCall(t=>{t.enableReplyAvatars(...e)})}enableResolveButton(...e){this.__lazyEnqueueOrCall(t=>{t.enableResolveButton(...e)})}enableResolveStatusAccessAdminOnly(...e){this.__lazyEnqueueOrCall(t=>{t.enableResolveStatusAccessAdminOnly(...e)})}enableScreenshot(...e){this.__lazyEnqueueOrCall(t=>{t.enableScreenshot(...e)})}enableScrollToComment(...e){this.__lazyEnqueueOrCall(t=>{t.enableScrollToComment(...e)})}enableSeenByUsers(...e){this.__lazyEnqueueOrCall(t=>{t.enableSeenByUsers(...e)})}enableShortUserName(...e){this.__lazyEnqueueOrCall(t=>{t.enableShortUserName(...e)})}enableSidebarButtonOnCommentDialog(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarButtonOnCommentDialog(...e)})}enableSidebarCustomActions(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarCustomActions(...e)})}enableSidebarShadowDOM(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarShadowDOM(...e)})}enableSidebarUrlNavigation(...e){this.__lazyEnqueueOrCall(t=>{t.enableSidebarUrlNavigation(...e)})}enableSignInButton(...e){this.__lazyEnqueueOrCall(t=>{t.enableSignInButton(...e)})}enableStatus(...e){this.__lazyEnqueueOrCall(t=>{t.enableStatus(...e)})}enableStreamMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableStreamMode(...e)})}enableSuggestionMode(...e){this.__lazyEnqueueOrCall(t=>{t.enableSuggestionMode(...e)})}enableSvgAsImg(...e){this.__lazyEnqueueOrCall(t=>{t.enableSvgAsImg(...e)})}enableTextComments(...e){this.__lazyEnqueueOrCall(t=>{t.enableTextComments(...e)})}enableUpgradeButton(...e){this.__lazyEnqueueOrCall(t=>{t.enableUpgradeButton(...e)})}enableUserMentions(...e){this.__lazyEnqueueOrCall(t=>{t.enableUserMentions(...e)})}enableVisibilityOptions(...e){this.__lazyEnqueueOrCall(t=>{t.enableVisibilityOptions(...e)})}excludeLocationIdsFromSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.excludeLocationIdsFromSidebar(...e)})}focusPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.focusPageModeComposer(...e)})}getComposerData(...e){this.__lazyEnqueueOrCall(t=>{t.getComposerData(...e)})}getElementRefByAnnotationId(...e){this.__lazyEnqueueOrCall(t=>{t.getElementRefByAnnotationId(...e)})}hideCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.hideCommentsOnDom(...e)})}hideResolvedCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.hideResolvedCommentsOnDom(...e)})}openCommentSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.openCommentSidebar(...e)})}scrollToCommentByAnnotationId(...e){this.__lazyEnqueueOrCall(t=>{t.scrollToCommentByAnnotationId(...e)})}selectCommentByAnnotationId(...e){this.__lazyEnqueueOrCall(t=>{t.selectCommentByAnnotationId(...e)})}setAllowedFileTypes(...e){this.__lazyEnqueueOrCall(t=>{t.setAllowedFileTypes(...e)})}setAssignToType(...e){this.__lazyEnqueueOrCall(t=>{t.setAssignToType(...e)})}setCommentSidebarData(...e){this.__lazyEnqueueOrCall(t=>{t.setCommentSidebarData(...e)})}setCommentSidebarDefaultCustomActions(...e){this.__lazyEnqueueOrCall(t=>{t.setCommentSidebarDefaultCustomActions(...e)})}setCommentSidebarFilters(...e){this.__lazyEnqueueOrCall(t=>{t.setCommentSidebarFilters(...e)})}setComposerFileAttachments(...e){this.__lazyEnqueueOrCall(t=>{t.setComposerFileAttachments(...e)})}setContextInPageModeComposer(...e){this.__lazyEnqueueOrCall(t=>{t.setContextInPageModeComposer(...e)})}setContextProvider(...e){this.__lazyEnqueueOrCall(t=>{t.setContextProvider(...e)})}setCustomCategory(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomCategory(...e)})}setCustomPriority(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomPriority(...e)})}setCustomReactions(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomReactions(...e)})}setCustomStatus(...e){this.__lazyEnqueueOrCall(t=>{t.setCustomStatus(...e)})}setDStrategy(...e){this.__lazyEnqueueOrCall(t=>{t.setDStrategy(...e)})}setFormatConfig(...e){this.__lazyEnqueueOrCall(t=>{t.setFormatConfig(...e)})}setMaxReplyAvatars(...e){this.__lazyEnqueueOrCall(t=>{t.setMaxReplyAvatars(...e)})}setPinCursorImage(...e){this.__lazyEnqueueOrCall(t=>{t.setPinCursorImage(...e)})}setRecordings(...e){this.__lazyEnqueueOrCall(t=>{t.setRecordings(...e)})}setSidebarButtonCountType(...e){this.__lazyEnqueueOrCall(t=>{t.setSidebarButtonCountType(...e)})}setSystemFiltersOperator(...e){this.__lazyEnqueueOrCall(t=>{t.setSystemFiltersOperator(...e)})}setTotalMediaLength(...e){this.__lazyEnqueueOrCall(t=>{t.setTotalMediaLength(...e)})}setTransformContext(...e){this.__lazyEnqueueOrCall(t=>{t.setTransformContext(...e)})}setUnreadIndicatorMode(...e){this.__lazyEnqueueOrCall(t=>{t.setUnreadIndicatorMode(...e)})}showCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.showCommentsOnDom(...e)})}showResolvedCommentsOnDom(...e){this.__lazyEnqueueOrCall(t=>{t.showResolvedCommentsOnDom(...e)})}submitComment(...e){this.__lazyEnqueueOrCall(t=>{t.submitComment(...e)})}toggleCommentSidebar(...e){this.__lazyEnqueueOrCall(t=>{t.toggleCommentSidebar(...e)})}updateCommentDialogPosition(...e){this.__lazyEnqueueOrCall(t=>{t.updateCommentDialogPosition(...e)})}__lazyEnqueueOrCall(e){if(this.__lazyRealElement){e(this.__lazyRealElement);return}this.__lazyQueue.push(e)}__lazyAwaitAndCall(e){return this.__lazyRealElement?Promise.resolve(e(this.__lazyRealElement)):this.__lazyLoadPromise.then(t=>e(t))}__lazyProxyObservable(e){if(this.__lazyRealElement)return e(this.__lazyRealElement);let t=new M(1);return this.__lazyQueue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var zi=class extends Pe{constructor(e){super(e),this.getService(l).log("%c[WB] Creating CLASS: ContactElement","color: blue;"),this.isUserGlobalContact=this._isUserGlobalContact,this.onContactSelected=this._onContactSelected,this.enableAtHere=this._enableAtHere,this.setAtHereLabel=this._setAtHereLabel,this.setAtHereDescription=this._setAtHereDescription,this.disableAtHere=this._disableAtHere,this.updateContactListScopeForOrganizationUsers=this._updateContactListScopeForOrganizationUsers,this.updateContactList=this._updateContactList,this.updateOrgList=this._updateOrgList,this.getContactList=this._getContactList}_isUserGlobalContact(){this.getService(l).log("%c[WB] Calling FUNCTION: isUserGlobalContact","color: green;");try{return this.trackEvent(g.Events.Contact.IS_USER_GLOBAL_CONTACT_TRIGGERED),this.getService(J).isUserGlobalContact$()}catch(e){return this.getService(l).catch("Error in _isUserGlobalContact: ",e),x(!1)}}_onContactSelected(){this.getService(l).log("%c[WB] Calling FUNCTION: onContactSelected","color: green;");try{return this.trackEvent(g.Events.Contact.ON_CONTACT_SELECTED_TRIGGERED),this.getService(J).onContactSelected$()}catch(e){return this.getService(l).catch("Error in _onContactSelected: ",e),x(null)}}_enableAtHere(){this.getService(l).log("%c[WB] Calling FUNCTION: enableAtHere","color: green;");try{this.trackEvent(g.Events.Contact.ENABLE_AT_HERE_TRIGGERED),this.getService(J).enableAtHere()}catch(e){this.getService(l).catch("Error in _enableAtHere: ",e)}}_setAtHereLabel(e){this.getService(l).log("%c[WB] Calling FUNCTION: setAtHereLabel","color: green;");try{this.trackEvent(g.Events.Contact.SET_AT_HERE_LABEL_TRIGGERED,{payload:{label:e}}),this.getService(J).setAtHereLabel(e)}catch(t){this.getService(l).catch("Error in setAtHereLabel: ",t)}}_setAtHereDescription(e){this.getService(l).log("%c[WB] Calling FUNCTION: setAtHereDescription","color: green;");try{this.trackEvent(g.Events.Contact.SET_AT_HERE_DESCRIPTION_TRIGGERED,{payload:{description:e}}),this.getService(J).setAtHereDescription(e)}catch(t){this.getService(l).catch("Error in setAtHereDescription: ",t)}}_disableAtHere(){this.getService(l).log("%c[WB] Calling FUNCTION: disableAtHere","color: green;");try{this.trackEvent(g.Events.Contact.DISABLE_AT_HERE_TRIGGERED),this.getService(J).disableAtHere()}catch(e){this.getService(l).catch("Error in _disableAtHere: ",e)}}_updateContactListScopeForOrganizationUsers(e){this.getService(l).log("%c[WB] Calling FUNCTION: updateContactListScopeForOrganizationUsers","color: green;");try{this.trackEvent(g.Events.Contact.UPDATE_CONTACT_LIST_SCOPE_FOR_ORGANIZATION_USERS_TRIGGERED,{payload:{scope:e}}),this.getService(J).updateContactListScopeForOrganizationUsers(e)}catch(t){this.getService(l).catch("Error in _updateContactListScopeForOrganizationUsers: ",t)}}_updateContactList(e,t){this.getService(l).log("%c[WB] Calling FUNCTION: _updateContactList","color: green;");try{this.trackEvent(g.Events.Contact.UPDATE_CONTACT_LIST_TRIGGERED,{payload:{userContacts:e,config:t}}),typeof e=="object"&&e instanceof Array&&(!t||t&&typeof t=="object")&&(e=JSON.parse(JSON.stringify(e)),this.getService(J).convert(t).updateContactList(e,t))}catch(i){this.getService(l).catch("Error in _updateContactList: ",i)}}_updateOrgList(e){this.getService(l).log("%c[WB] Calling FUNCTION: _updateOrgList","color: green;");try{this.trackEvent(g.Events.Contact.UPDATE_ORG_LIST_TRIGGERED,{payload:{config:e}}),e&&typeof e=="object"&&Array.isArray(e.orgList)&&(e=JSON.parse(JSON.stringify(e)),this.getService(J).updateOrgList(e))}catch(t){this.getService(l).catch("Error in _updateOrgList: ",t)}}_getContactList(){this.getService(l).log("%c[WB] Calling FUNCTION: getContactList","color: green;");try{return this.trackEvent(g.Events.Contact.GET_CONTACT_LIST_TRIGGERED),this.getService(J).getContactList$()}catch(e){return this.getService(l).catch("Error in _getContactList: ",e),x(null)}}};var Ui=class{constructor(e,t){this.queue=[],this.realElement=null,this.loggingService=e.get(l),this.loadPromise=t.ensureCrdtChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){this.loggingService.catch("LazyCrdtElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableWebhook(){this.enqueueOrCall(e=>e.enableWebhook())}disableWebhook(){this.enqueueOrCall(e=>e.disableWebhook())}setWebhookDebounceTime(e){this.enqueueOrCall(t=>t.setWebhookDebounceTime(e))}setActivityDebounceTime(e){this.enqueueOrCall(t=>t.setActivityDebounceTime(e))}updateData(e){return this.loadPromise.then(t=>t.updateData(e))}getData(e){return this.loadPromise.then(t=>t.getData(e))}updateState(e){return this.loadPromise.then(t=>t.updateState(e))}registerSyncUser(e){return this.loadPromise.then(t=>t.registerSyncUser(e))}setPresence(e){return this.loadPromise.then(t=>t.setPresence(e))}pushMessage(e){return this.loadPromise.then(t=>t.pushMessage(e))}getMessages(e){return this.loadPromise.then(t=>t.getMessages(e))}saveSnapshot(e){return this.loadPromise.then(t=>t.saveSnapshot(e))}getSnapshot(e){return this.loadPromise.then(t=>t.getSnapshot(e))}pruneMessages(e){return this.loadPromise.then(t=>t.pruneMessages(e))}saveVersion(e){return this.loadPromise.then(t=>t.saveVersion(e))}getVersion(e){return this.loadPromise.then(t=>t.getVersion(e))}getVersions(e){return this.loadPromise.then(t=>t.getVersions(e))}onDataChange(e){return this.deferredSub(t=>t.onDataChange(e))}onStateChange(e){return this.deferredSub(t=>t.onStateChange(e))}onRegisteredUserChange(e){return this.deferredSub(t=>t.onRegisteredUserChange(e))}onPresenceChange(e){return this.deferredSub(t=>t.onPresenceChange(e))}onMessage(e){return this.deferredSub(t=>t.onMessage(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}deferredSub(e){let t=null,i=!1;return this.loadPromise.then(n=>{if(!i)try{t=e(n)}catch(o){this.loggingService.catch("LazyCrdtElement deferredSub wiring failed: ",o)}}).catch(()=>{}),()=>{if(i=!0,t){try{t()}catch(n){this.loggingService.catch("LazyCrdtElement deferredSub unsub failed: ",n)}t=null}}}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1),i;return this.loadPromise.then(n=>{try{i=e(n).subscribe({next:o=>t.next(o),error:o=>t.error(o),complete:()=>t.complete()})}catch(o){this.loggingService.catch("LazyCrdtElement proxyObservable wiring failed: ",o)}}).catch(()=>{}),t.asObservable()}};var qi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureCursorChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyCursorElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}setInactivityTime(e){this.enqueueOrCall(t=>t.setInactivityTime(e))}allowedElementIds(e){this.enqueueOrCall(t=>t.allowedElementIds(e))}getLiveCursorsOnCurrentDocument(){return this.proxyObservable(e=>e.getLiveCursorsOnCurrentDocument())}getOnlineUsersOnCurrentDocument(){return this.proxyObservable(e=>e.getOnlineUsersOnCurrentDocument())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Bi=class extends Pe{constructor(e){super(e),this.getService(l).log("%c[WB] Creating CLASS: DocElement","color: blue;"),this.getDocumentMetadata=this._getDocumentMetadata}_getDocumentMetadata(){this.getService(l).log("%c[WB] Calling FUNCTION: getDocumentMetadata","color: green;");try{return this.trackEvent(g.Events.Doc.GET_DOCUMENT_METADATA_TRIGGERED),this.getService(D).getDocumentMetadata$()}catch(e){return this.getService(l).catch("Error in getDocumentMetadata: ",e),x(null)}}};var Vi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureHuddleChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyHuddleElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableCursorMode(){this.enqueueOrCall(e=>e.enableCursorMode())}disableCursorMode(){this.enqueueOrCall(e=>e.disableCursorMode())}enableChat(){this.enqueueOrCall(e=>e.enableChat())}disableChat(){this.enqueueOrCall(e=>e.disableChat())}enableFlockModeOnAvatarClick(){this.enqueueOrCall(e=>e.enableFlockModeOnAvatarClick())}disableFlockModeOnAvatarClick(){this.enqueueOrCall(e=>e.disableFlockModeOnAvatarClick())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}};var Gi=class{constructor(e,t){this.queue=[],this.realElement=null,this.loggingService=e.get(l),this.loadPromise=t.ensureLiveStateSyncChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){this.loggingService.catch("LazyLiveStateSyncElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableSingleEditorMode(e){this.enqueueOrCall(t=>t.enableSingleEditorMode(e))}disableSingleEditorMode(){this.enqueueOrCall(e=>e.disableSingleEditorMode())}resetUserAccess(){this.enqueueOrCall(e=>e.resetUserAccess())}singleEditorModeContainerIds(e){this.enqueueOrCall(t=>t.singleEditorModeContainerIds(e))}enableAutoSyncState(){this.enqueueOrCall(e=>e.enableAutoSyncState())}disableAutoSyncState(){this.enqueueOrCall(e=>e.disableAutoSyncState())}acceptEditorAccessRequest(){this.enqueueOrCall(e=>e.acceptEditorAccessRequest())}rejectEditorAccessRequest(){this.enqueueOrCall(e=>e.rejectEditorAccessRequest())}cancelEditorAccessRequest(){this.enqueueOrCall(e=>e.cancelEditorAccessRequest())}editCurrentTab(){this.enqueueOrCall(e=>e.editCurrentTab())}setEditorAccessTimeout(e){this.enqueueOrCall(t=>t.setEditorAccessTimeout(e))}enableEditorAccessTransferOnTimeOut(){this.enqueueOrCall(e=>e.enableEditorAccessTransferOnTimeOut())}disableEditorAccessTransferOnTimeOut(){this.enqueueOrCall(e=>e.disableEditorAccessTransferOnTimeOut())}enableDefaultSingleEditorUI(){this.enqueueOrCall(e=>e.enableDefaultSingleEditorUI())}disableDefaultSingleEditorUI(){this.enqueueOrCall(e=>e.disableDefaultSingleEditorUI())}updateUserPresence(e){this.enqueueOrCall(t=>t.updateUserPresence(e))}enableHeartbeat(){this.enqueueOrCall(e=>e.enableHeartbeat())}disableHeartbeat(){this.enqueueOrCall(e=>e.disableHeartbeat())}fetchLiveStateData(e){return this.loadPromise.then(t=>t.fetchLiveStateData(e))}setLiveStateData(e,t,i){return this.loadPromise.then(n=>n.setLiveStateData(e,t,i))}setUserAsEditor(){return this.loadPromise.then(e=>e.setUserAsEditor())}getLiveStateData$(e,t){return this.proxyObservable(i=>i.getLiveStateData$(e,t))}getLiveStateData(e,t){return this.proxyObservable(i=>i.getLiveStateData(e,t))}isUserEditor$(){return this.proxyObservable(e=>e.isUserEditor$())}isUserEditor(){return this.proxyObservable(e=>e.isUserEditor())}getEditor(){return this.proxyObservable(e=>e.getEditor())}requestEditorAccess(){return this.proxyObservable(e=>e.requestEditorAccess())}isEditorAccessRequested(){return this.proxyObservable(e=>e.isEditorAccessRequested())}getEditorAccessTimer(){return this.proxyObservable(e=>e.getEditorAccessTimer())}onServerConnectionStateChange(){return this.proxyObservable(e=>e.onServerConnectionStateChange())}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1),i;return this.loadPromise.then(n=>{try{i=e(n).subscribe({next:o=>t.next(o),error:o=>t.error(o),complete:()=>t.complete()})}catch(o){this.loggingService.catch("LazyLiveStateSyncElement proxyObservable wiring failed: ",o)}}).catch(()=>{}),t.asObservable()}};var ji=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureNotificationChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyNotificationElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}openHistoryPanel(){this.enqueueOrCall(e=>e.openHistoryPanel())}closeHistoryPanel(){this.enqueueOrCall(e=>e.closeHistoryPanel())}toggleHistoryPanel(){this.enqueueOrCall(e=>e.toggleHistoryPanel())}setMaxDays(e){this.enqueueOrCall(t=>t.setMaxDays(e))}setTabConfig(e){this.enqueueOrCall(t=>t.setTabConfig(e))}enableReadNotificationsOnForYouTab(){this.enqueueOrCall(e=>e.enableReadNotificationsOnForYouTab())}disableReadNotificationsOnForYouTab(){this.enqueueOrCall(e=>e.disableReadNotificationsOnForYouTab())}setAllNotificationsAsRead(e){this.enqueueOrCall(t=>t.setAllNotificationsAsRead(e))}markNotificationAsReadById(e){this.enqueueOrCall(t=>t.markNotificationAsReadById(e))}setSettings(e){this.enqueueOrCall(t=>t.setSettings(e))}muteAllNotifications(){this.enqueueOrCall(e=>e.muteAllNotifications())}enableSettings(){this.enqueueOrCall(e=>e.enableSettings())}disableSettings(){this.enqueueOrCall(e=>e.disableSettings())}enableSettingsAtOrganizationLevel(){this.enqueueOrCall(e=>e.enableSettingsAtOrganizationLevel())}disableSettingsAtOrganizationLevel(){this.enqueueOrCall(e=>e.disableSettingsAtOrganizationLevel())}enableSelfNotifications(){this.enqueueOrCall(e=>e.enableSelfNotifications())}disableSelfNotifications(){this.enqueueOrCall(e=>e.disableSelfNotifications())}setSettingsInitialConfig(e){this.enqueueOrCall(t=>t.setSettingsInitialConfig(e))}openNotificationsPanel(){this.enqueueOrCall(e=>e.openNotificationsPanel())}closeNotificationsPanel(){this.enqueueOrCall(e=>e.closeNotificationsPanel())}enableCurrentDocumentOnly(){this.enqueueOrCall(e=>e.enableCurrentDocumentOnly())}disableCurrentDocumentOnly(){this.enqueueOrCall(e=>e.disableCurrentDocumentOnly())}enableCrossOrganization(e){this.enqueueOrCall(t=>t.enableCrossOrganization(e))}disableCrossOrganization(){this.enqueueOrCall(e=>e.disableCrossOrganization())}getNotificationsData(e){return this.proxyObservable(t=>t.getNotificationsData(e))}getUnreadNotificationsCount(){return this.proxyObservable(e=>e.getUnreadNotificationsCount())}getSettings(){return this.proxyObservable(e=>e.getSettings())}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Wi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensurePresenceChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyPresenceElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableFlockMode(e){this.enqueueOrCall(t=>t.enableFlockMode(e))}disableFlockMode(){this.enqueueOrCall(e=>e.disableFlockMode())}startFollowingUser(e,t){this.enqueueOrCall(i=>i.startFollowingUser(e,t))}stopFollowingUser(){this.enqueueOrCall(e=>e.stopFollowingUser())}setInactivityTime(e){this.enqueueOrCall(t=>t.setInactivityTime(e))}enableSelf(){this.enqueueOrCall(e=>e.enableSelf())}disableSelf(){this.enqueueOrCall(e=>e.disableSelf())}addUser(e){this.enqueueOrCall(t=>t.addUser(e))}removeUser(e){this.enqueueOrCall(t=>t.removeUser(e))}getOnlineUsersOnCurrentDocument(){return this.proxyObservable(e=>e.getOnlineUsersOnCurrentDocument())}getData(e){return this.proxyObservable(t=>t.getData(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Hi=class{constructor(e,t){this.queue=[],this.realElement=null,this.loadPromise=t.ensureReactionChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyReactionElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableDarkMode(){this.enqueueOrCall(e=>e.enableDarkMode())}disableDarkMode(){this.enqueueOrCall(e=>e.disableDarkMode())}setCustomReactions(e){this.enqueueOrCall(t=>t.setCustomReactions(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}};var $i=class{constructor(e,t){this.queue=[],this.realElement=null,this.loadPromise=t.ensureRecorderChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyRecorderElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}initRecording(e,t){this.enqueueOrCall(i=>{i.initRecording(e,t)})}enableDarkMode(){this.enqueueOrCall(e=>e.enableDarkMode())}disableDarkMode(){this.enqueueOrCall(e=>e.disableDarkMode())}enableRecordingCountdown(){this.enqueueOrCall(e=>e.enableRecordingCountdown())}disableRecordingCountdown(){this.enqueueOrCall(e=>e.disableRecordingCountdown())}enableRecordingTranscription(){this.enqueueOrCall(e=>e.enableRecordingTranscription())}disableRecordingTranscription(){this.enqueueOrCall(e=>e.disableRecordingTranscription())}enableVideoEditor(){this.enqueueOrCall(e=>e.enableVideoEditor())}disableVideoEditor(){this.enqueueOrCall(e=>e.disableVideoEditor())}setRecordingQualityConstraints(e){this.enqueueOrCall(t=>t.setRecordingQualityConstraints(e))}setRecordingEncodingOptions(e){this.enqueueOrCall(t=>t.setRecordingEncodingOptions(e))}enableRecordingMic(){this.enqueueOrCall(e=>e.enableRecordingMic())}disableRecordingMic(){this.enqueueOrCall(e=>e.disableRecordingMic())}enableOnboardingTooltip(){this.enqueueOrCall(e=>e.enableOnboardingTooltip())}disableOnboardingTooltip(){this.enqueueOrCall(e=>e.disableOnboardingTooltip())}enableRetakeOnVideoEditor(){this.enqueueOrCall(e=>e.enableRetakeOnVideoEditor())}disableRetakeOnVideoEditor(){this.enqueueOrCall(e=>e.disableRetakeOnVideoEditor())}askDevicePermission(e){this.enqueueOrCall(t=>t.askDevicePermission(e))}setMaxLength(e){this.enqueueOrCall(t=>t.setMaxLength(e))}enablePictureInPicture(){this.enqueueOrCall(e=>e.enablePictureInPicture())}disablePictureInPicture(){this.enqueueOrCall(e=>e.disablePictureInPicture())}enablePlaybackOnPreviewClick(){this.enqueueOrCall(e=>e.enablePlaybackOnPreviewClick())}disablePlaybackOnPreviewClick(){this.enqueueOrCall(e=>e.disablePlaybackOnPreviewClick())}getRecordingData(e){return this.awaitAndCall(t=>t.getRecordingData(e))}fetchRecordings(e){return this.awaitAndCall(t=>t.fetchRecordings(e))}deleteRecordings(e){return this.awaitAndCall(t=>t.deleteRecordings(e))}downloadLatestVideo(e){return this.awaitAndCall(t=>t.downloadLatestVideo(e))}openPictureInPicture(){return this.awaitAndCall(e=>e.openPictureInPicture())}exitPictureInPicture(){return this.awaitAndCall(e=>e.exitPictureInPicture())}requestScreenPermission(){return this.awaitAndCall(e=>e.requestScreenPermission())}onRecordedData(){return this.proxyObservable(e=>e.onRecordedData())}getRecordingDataByRecorderId(e){return this.proxyObservable(t=>t.getRecordingDataByRecorderId(e))}getRecordings(e){return this.proxyObservable(t=>t.getRecordings(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}awaitAndCall(e){return this.realElement?Promise.resolve(e(this.realElement)):this.loadPromise.then(t=>e(t))}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Qi=class{constructor(e,t){this.queue=[],this.realElement=null,this.loggingService=e.get(l),this.loadPromise=t.ensureRewriterChunk(),this.loadPromise.then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){this.loggingService.catch("LazyRewriterElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableRewriter(){this.enqueueOrCall(e=>e.enableRewriter())}disableRewriter(){this.enqueueOrCall(e=>e.disableRewriter())}enableDefaultUI(){this.enqueueOrCall(e=>e.enableDefaultUI())}disableDefaultUI(){this.enqueueOrCall(e=>e.disableDefaultUI())}askAi(e){return this.loadPromise.then(t=>t.askAi(e))}replaceText(e){return this.loadPromise.then(t=>t.replaceText(e))}addComment(e){return this.loadPromise.then(t=>t.addComment(e))}on(e){return this.proxyObservable(t=>t.on(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1),i;return this.loadPromise.then(n=>{try{i=e(n).subscribe({next:o=>t.next(o),error:o=>t.error(o),complete:()=>t.complete()})}catch(o){this.loggingService.catch("LazyRewriterElement proxyObservable wiring failed: ",o)}}).catch(()=>{}),t.asObservable()}};var Yi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureSelectionChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazySelectionElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}enableLiveSelection(){this.enqueueOrCall(e=>e.enableLiveSelection())}disableLiveSelection(){this.enqueueOrCall(e=>e.disableLiveSelection())}enableUserIndicator(){this.enqueueOrCall(e=>e.enableUserIndicator())}disableUserIndicator(){this.enqueueOrCall(e=>e.disableUserIndicator())}setUserIndicatorPosition(e){this.enqueueOrCall(t=>t.setUserIndicatorPosition(e))}setUserIndicatorType(e){this.enqueueOrCall(t=>t.setUserIndicatorType(e))}enableDefaultElementsTracking(){this.enqueueOrCall(e=>e.enableDefaultElementsTracking())}disableDefaultElementsTracking(){this.enqueueOrCall(e=>e.disableDefaultElementsTracking())}enableDefaultStyling(){this.enqueueOrCall(e=>e.enableDefaultStyling())}disableDefaultStyling(){this.enqueueOrCall(e=>e.disableDefaultStyling())}setInactivityTime(e){this.enqueueOrCall(t=>t.setInactivityTime(e))}getLiveSelectionData(){return this.proxyObservable(e=>e.getLiveSelectionData())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Ki=class extends Pe{constructor(e){super(e),this._enableSuggestionMode=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: enableSuggestionMode","color: green;");try{this.trackEvent(g.Events.Suggestions.ENABLE_SUGGESTION_MODE_TRIGGERED),this.getService(re).enableSuggestionMode(t)}catch(i){this.getService(l).catch("Error in _enableSuggestionMode: ",i)}},this._disableSuggestionMode=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: disableSuggestionMode","color: green;");try{this.trackEvent(g.Events.Suggestions.DISABLE_SUGGESTION_MODE_TRIGGERED),this.getService(re).disableSuggestionMode()}catch(t){this.getService(l).catch("Error in _disableSuggestionMode: ",t)}},this._isSuggestionModeEnabled=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: isSuggestionModeEnabled","color: green;");try{return this.trackEvent(g.Events.Suggestions.IS_SUGGESTION_MODE_ENABLED_TRIGGERED),this.getService(re).isSuggestionModeEnabled()}catch(t){return this.getService(l).catch("Error in _isSuggestionModeEnabled: ",t),!1}},this._isSuggestionModeEnabled$=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: isSuggestionModeEnabled$","color: green;");try{return this.trackEvent(g.Events.Suggestions.IS_SUGGESTION_MODE_ENABLED_STREAM_TRIGGERED),this.getService(re).isSuggestionModeEnabled$()}catch(t){return this.getService(l).catch("Error in _isSuggestionModeEnabled$: ",t),new Gt}},this._registerTarget=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: registerTarget","color: green;");try{this.trackEvent(g.Events.Suggestions.REGISTER_TARGET_TRIGGERED),this.getService(re).registerTarget(t)}catch(i){this.getService(l).catch("Error in _registerTarget: ",i)}},this._unregisterTarget=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: unregisterTarget","color: green;");try{this.trackEvent(g.Events.Suggestions.UNREGISTER_TARGET_TRIGGERED),this.getService(re).unregisterTarget(t)}catch(i){this.getService(l).catch("Error in _unregisterTarget: ",i)}},this._startSuggestion=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: startSuggestion","color: green;");try{this.trackEvent(g.Events.Suggestions.START_SUGGESTION_TRIGGERED),this.getService(re).startSuggestion(t)}catch(i){this.getService(l).catch("Error in _startSuggestion: ",i)}},this._commitSuggestion=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: commitSuggestion","color: green;");try{return this.trackEvent(g.Events.Suggestions.COMMIT_SUGGESTION_TRIGGERED),this.getService(re).commitSuggestion(t)}catch(i){return this.getService(l).catch("Error in _commitSuggestion: ",i),Promise.reject(i)}},this._getSuggestions=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSuggestions","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_SUGGESTIONS_TRIGGERED),this.getService(re).getSuggestions(t)}catch(i){return this.getService(l).catch("Error in _getSuggestions: ",i),[]}},this._getSuggestions$=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSuggestions$","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_SUGGESTIONS_STREAM_TRIGGERED),this.getService(re).getSuggestions$(t)}catch(i){return this.getService(l).catch("Error in _getSuggestions$: ",i),new Gt}},this._getPendingSuggestion=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getPendingSuggestion","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_PENDING_SUGGESTION_TRIGGERED),this.getService(re).getPendingSuggestion(t)}catch(i){return this.getService(l).catch("Error in _getPendingSuggestion: ",i),null}},this._getPendingSuggestion$=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getPendingSuggestion$","color: green;");try{return this.trackEvent(g.Events.Suggestions.GET_PENDING_SUGGESTION_STREAM_TRIGGERED),this.getService(re).getPendingSuggestion$(t)}catch(i){return this.getService(l).catch("Error in _getPendingSuggestion$: ",i),new Gt}},this._on=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: on","color: green;");try{return this.trackEvent(g.Events.Suggestions.ON_TRIGGERED,{payload:{action:t}}),this.getService(re).onAction(t)}catch(i){return this.getService(l).catch("Error in _on: ",i),x(null)}},this.getService(l).log("%c[WB] Creating CLASS: SuggestionElement","color: blue;"),this.enableSuggestionMode=this._enableSuggestionMode,this.disableSuggestionMode=this._disableSuggestionMode,this.isSuggestionModeEnabled=this._isSuggestionModeEnabled,this.isSuggestionModeEnabled$=this._isSuggestionModeEnabled$,this.registerTarget=this._registerTarget,this.unregisterTarget=this._unregisterTarget,this.startSuggestion=this._startSuggestion,this.commitSuggestion=this._commitSuggestion,this.getSuggestions=this._getSuggestions,this.getSuggestions$=this._getSuggestions$,this.getPendingSuggestion=this._getPendingSuggestion,this.getPendingSuggestion$=this._getPendingSuggestion$,this.on=this._on}};var Xi=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureTagChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyTagElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}deleteTag(){this.enqueueOrCall(e=>e.deleteTag())}allowedElementIds(e){this.enqueueOrCall(t=>t.allowedElementIds(e))}attachTag(e){this.enqueueOrCall(t=>t.attachTag(e))}getAllTagAnnotations(e,t){return this.proxyObservable(i=>i.getAllTagAnnotations(e,t))}addTagModeChange(){return this.proxyObservable(e=>e.addTagModeChange())}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var Ji=class{constructor(e,t){this.queue=[],this.realElement=null,t.ensureViewChunk().then(i=>{try{this.realElement=i;let n=this.queue;this.queue=[],n.forEach(o=>o(i))}catch(n){e.get(l).catch("LazyViewsElement post-load wiring failed: ",n)}}).catch(()=>{})}ha(e){this.enqueueOrCall(t=>t.ha(e))}getUniqueViewsByUser(e){return this.proxyObservable(t=>t.getUniqueViewsByUser(e))}getUniqueViewsByDate(e){return this.proxyObservable(t=>t.getUniqueViewsByDate(e))}enqueueOrCall(e){if(this.realElement){e(this.realElement);return}this.queue.push(e)}proxyObservable(e){if(this.realElement)return e(this.realElement);let t=new M(1);return this.queue.push(i=>{try{e(i).subscribe({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}catch{}}),t.asObservable()}};var wt=(()=>{let e=class e{constructor(i,n){this.docService=i,this.loggingService=n}updateDocuments(i){return L(this,null,function*(){try{return yield this.docService.updateDocuments(i)}catch(n){return this.loggingService.catch("Error in DocActionsService updateDocuments: ",n),null}})}updateLocations(i){return L(this,null,function*(){try{return yield this.docService.updateLocations(i)}catch(n){return this.loggingService.catch("Error in DocActionsService updateLocations: ",n),null}})}fetchDocuments(i){return L(this,null,function*(){try{let n=yield this.docService.fetchDocuments(i),o=[];return n.forEach(s=>{let a=s?.docIamConfig??{},c=s?.metadata??{};c.disabled=!!a?.disabled,c.id=c?.clientDocumentId,c.documentId=c?.clientDocumentId,delete c?.clientDocumentId,c.organizationId=c?.clientOrganizationId,delete c?.clientOrganizationId,delete c?.pageInfo,delete c?.veltFolderId,o.push(c)}),{data:o.reduce((s,a)=>(a?.documentId&&(s[a.documentId]=a),s),{})}}catch(n){return this.loggingService.catch("Error in CommentActionsService fetchDocuments: ",n),{data:null}}})}fetchFolders(i){return L(this,null,function*(){try{let n=yield this.docService.fetchFolders(i),o=n?.parentFolders?.map(a=>{let c=a?.metadata??{};return delete c?.veltFolderId,c.organizationId=c.clientOrganizationId,delete c?.clientOrganizationId,delete c?.veltParentFolderId,k({},c)});return{data:(n?.data?.map(a=>{let c=a?.metadata??{};return delete c?.veltFolderId,c.organizationId=c.clientOrganizationId,delete c?.clientOrganizationId,delete c?.veltParentFolderId,k(k({},c),i?.folderId?{subFolders:o}:{})})).reduce((a,c)=>(c?.folderId&&(a[c.folderId]=c),a),{})}}catch(n){return this.loggingService.catch("Error in CommentActionsService fetchFolders: ",n),{data:null}}})}};e.\u0275fac=function(n){return new(n||e)(U(D),U(l))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var Zi=(()=>{let e=class e{constructor(i,n,o,s,a){this.authService=i,this.coreActionsService=n,this.docService=o,this.iamService=s,this.loggingService=a,this.veltInitState$=new jn(void 0);try{this.loggingService.log("%c[WB] Creating CLASS: VeltService","color: blue;");let c=this.authService.getUser$(),d=this.docService.getDocumentPaths$(),h=this.iamService.isUserAllowed$();Hn([c,d,h]).subscribe(([u,m,v])=>{u&&m&&v?this.veltInitState$.next(!0):this.veltInitState$.next(!1)}),this.getVeltInitState$().subscribe(u=>{this.coreActionsService.triggerAction(Ho.DOCUMENT_INIT,u)})}catch(c){this.loggingService.catch("Error in VeltService constructor: ",c)}}getVeltInitState$(){try{return this.veltInitState$.asObservable().pipe(Yn())}catch(i){return this.loggingService.catch("Error in VeltService getVeltInitState$: ",i),x(void 0)}}};e.\u0275fac=function(n){return new(n||e)(U(ie),U(ii),U(D),U(ct),U(l))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var er=class{constructor(e){this.injector=e,this.initConfig=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: initConfig","color: green;");try{if(!t)this.getService(l).catch("Error in initConfig: ","Apikey is not provided.");else if(typeof t!="string")this.getService(l).catch("Error in initConfig: ","Apikey must be string.");else if(!t?.trim())this.getService(l).catch("Error in initConfig: ","Apikey is not provided.");else{let n=i?.featureAllowList?.length?i.featureAllowList:void 0;this.getService(ie).setApiKey(t?.trim(),i),this.preloadLazyChunksFromAllowList(n)}}catch(n){this.getService(l).catch("Error in initConfig: ",n)}},this.ensureFeatureEnabled=t=>{try{this.getService(B).enableFeatures([t])}catch(i){this.getService(l).catch("Error in ensureFeatureEnabled: ",i)}},this.identify=(t,i,n)=>(this.getService(l).log("%c[WB] Calling FUNCTION: identify","color: green;"),new Promise((o,s)=>{try{typeof t=="object"&&(t=JSON.parse(JSON.stringify(t)));let a=this.getService(B).getApiKey(),c=Yo(a,t.userId);if(n?.ha||this.getService(St).trackEvent(g.Events.Core.IDENTIFY,{apiKey:a,clientUserId:t.userId,snippylyUserId:c,forceReset:i?.forceReset,user:this.getService(ie).getUserWithoutContacts(t),source:"client",fromProvider:n?.fromProvider},!0,c,t?.userId),!(t&&t.userId))this.getService(l).catch("Error in identify: ","Missing userId in config data."),i?.throwError?s("Missing userId in config data."):o(null);else if(typeof t.userId!="string")this.getService(l).catch("Error in identify: ","userId must be string."),i?.throwError?s("userId must be string."):o(null);else if(t?.groupId&&typeof t?.groupId!="string")this.getService(l).catch("Error in identify: ","groupId must be string."),i?.throwError?s("groupId must be string."):o(null);else{if(t?.groupId)if(t?.groupId?.match(/^[a-zA-Z0-9_]*$/))t.clientGroupId=t.groupId;else{let h=t.groupId;t.clientGroupId=h,t.groupId=ti(h)}if(t?.organizationId){let h=t.organizationId;t.clientOrganizationId=h,t.organizationId=ti(h)}delete t.isAdmin;let d=A.REGEX_URL_FOR_USER_NAME;t?.name&&d.test(t?.name)&&(t.name=t.name?.split(".")?.slice(0,-1)?.join(".")),t.clientUserName=t.name,t?.name&&t?.name?.length>30&&(t.name=t.name.slice(0,30)),this.getService(ie).initializeClient(t,i||{},new Date().getTime(),void 0,"external").then(h=>{let u;try{h&&(u=JSON.parse(JSON.stringify(h)))}catch{}o(u)}).catch(h=>{this.getService(l).catch("Error in identify: ",h),i?.throwError?s(h):o(null)})}}catch(a){this.getService(l).catch("Error in identify: ",a),i?.throwError?s(a):o(null)}})),this.updateUser=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateUser","color: green;");try{if(this.getService(l).catch("DEPRECATED: ","'updateUser' method is deprecated."),t&&typeof t=="object"){if(t=JSON.parse(JSON.stringify(t)),t?.groupId)if(t?.groupId?.match(/^[a-zA-Z0-9_]*$/))t.clientGroupId=t.groupId;else{let i=t.groupId;t.clientGroupId=i,t.groupId=ti(i)}delete t.isAdmin,this.getService(ie).updateUser(t)}else this.getService(l).catch("Error in updateUser: ","Invalid user object provided.")}catch(i){this.getService(l).catch("Error in updateUser: ",i)}},this.signOutUser=t=>(this.getService(l).log("%c[WB] Calling FUNCTION: signOutUser","color: green;"),t?.ha||this.trackEvent(g.Events.Core.SIGN_OUT_USER_TRIGGERED),new Promise((i,n)=>L(this,null,function*(){try{yield this.getService(ie).signOutUser("external"),i(null)}catch(o){this.getService(l).catch("Error in signOutUser: ",o),i(null)}}))),this.setDocument=(t,i,n,o)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setDocument","color: green;");try{o?.ha||this.trackEvent(g.Events.Core.SET_DOCUMENTS_TRIGGERED,{payload:{id:t,documentMetadata:i,methodName:"setDocument",source:"external"}}),t&&t.trim()?(i&&(typeof i=="object"?(i=JSON.parse(JSON.stringify(i)),i?.pageInfo&&ei(i.pageInfo,t)):this.getService(l).catch("Error in setDocument: ","Invalid documentMetadata provided.")),yield this.getService(D).setDocument({documentId:t,documentMetadata:i,options:n,source:"external"})):this.getService(l).catch("Error in setDocument: ","Invalid document id provided.")}catch(s){this.getService(l).catch("Error in setDocument: ",s)}}),this.setPageInfo=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setPageInfo","color: green;");try{ei(t,i?.documentId)}catch(n){this.getService(l).catch("Error in setPageInfo: ",n)}},this.clearPageInfo=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: clearPageInfo","color: green;");try{Qo(t?.documentId)}catch(i){this.getService(l).catch("Error in clearPageInfo: ",i)}},this.setDocumentId=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setDocumentId","color: green;");try{if(n?.ha||this.trackEvent(g.Events.Core.SET_DOCUMENTS_TRIGGERED,{payload:{id:t,organizationId:i,methodName:"setDocumentId",source:"external"}}),t&&t.trim())return yield this.getService(D).setDocumentId({documentId:t,clientOrganizationId:i,source:"external"});this.getService(l).catch("Error in setDocumentId: ","Invalid document id provided.")}catch(o){this.getService(l).catch("Error in setDocumentId: ",o)}}),this.setDocuments=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setDocuments","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.SET_DOCUMENTS_TRIGGERED,{payload:{documents:t,options:i,methodName:"setDocuments",source:"external"}}),typeof t=="object"&&t instanceof Array?(t=JSON.parse(JSON.stringify(t)),t=t.filter(o=>typeof o=="object"&&o!==null&&o.id?.trim()),t.length?(t.forEach(o=>{o?.metadata?.pageInfo&&ei(o.metadata.pageInfo,o.id)}),yield this.getService(D).setDocuments({documents:t,options:i,source:"external"})):this.getService(l).catch("Error in setDocuments: ","Invalid documents provided.")):this.getService(l).catch("Error in setDocuments: ","Invalid documents provided.")}catch(o){this.getService(l).catch("Error in setDocuments: ",o)}}),this.setRootDocument=(t,i)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setRootDocument","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ROOT_DOCUMENT_TRIGGERED,{payload:{document:t,methodName:"setRootDocument",source:"external"}}),typeof t=="object"?(t=JSON.parse(JSON.stringify(t)),t.id?yield this.getService(D).setRootDocument({document:t,source:"external"}):this.getService(l).catch("Error in setRootDocument: ","Invalid document provided.")):this.getService(l).catch("Error in setRootDocument: ","Invalid document provided.")}catch(n){this.getService(l).catch("Error in setRootDocument: ",n)}}),this.unsetDocumentId=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: unsetDocumentId","color: green;");try{t?.ha||this.trackEvent(g.Events.Core.UNSET_DOCUMENTS_TRIGGERED,{payload:{methodName:"unsetDocumentId",source:"external"}}),this.getService(D).unsetDocumentId({source:"external"})}catch(i){this.getService(l).catch("Error in unsetDocumentId: ",i)}},this.unsetDocuments=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: unsetDocuments","color: green;");try{t?.ha||this.trackEvent(g.Events.Core.UNSET_DOCUMENTS_TRIGGERED,{payload:{methodName:"unsetDocuments",source:"external"}}),this.getService(D).unsetDocuments({source:"external"})}catch(i){this.getService(l).catch("Error in unsetDocuments: ",i)}},this.fetchDocuments=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: fetchDocuments","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.FETCH_DOCUMENTS_TRIGGERED,{payload:{options:t}}),this.getService(wt).fetchDocuments(t)}catch(n){return this.getService(l).catch("Error in fetchDocuments: ",n),Promise.resolve({data:null})}},this.updateDocuments=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateDocuments","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.UPDATE_DOCUMENTS_TRIGGERED,{payload:{request:t}}),this.getService(wt).updateDocuments(t)}catch(n){return this.getService(l).catch("Error in updateDocuments: ",n),Promise.resolve({data:null})}},this.updateLocations=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateLocations","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.UPDATE_LOCATIONS_TRIGGERED,{payload:{request:t}}),this.getService(wt).updateLocations(t)}catch(n){return this.getService(l).catch("Error in updateLocations: ",n),Promise.resolve({data:null})}},this.fetchFolders=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: fetchFolders","color: green;");try{return i?.ha||this.trackEvent(g.Events.Core.FETCH_FOLDERS_TRIGGERED,{payload:{options:t}}),this.getService(wt).fetchFolders(t)}catch(n){return this.getService(l).catch("Error in fetchFolders: ",n),Promise.resolve({data:null})}},this.setUserDataProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setUserDataProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_USER_DATA_PROVIDER_TRIGGERED),this.getService(Tt).setUserDataProvider(t)}catch(n){this.getService(l).catch("Error in setUserDataProvider: ",n)}},this.setAnonymousUserDataProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setAnonymousUserDataProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ANONYMOUS_USER_DATA_PROVIDER_TRIGGERED),this.getService(Tt).setAnonymousUserDataProvider(t)}catch(n){this.getService(l).catch("Error in setAnonymousUserDataProvider: ",n)}},this.setDataProviders=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setDataProviders","color: green;");try{if(i?.ha||this.trackEvent(g.Events.Core.SET_DATA_PROVIDERS_TRIGGERED),t.comment&&this.getService(Xo).setCommentAnnotationDataProvider(t.comment),t.user&&this.getService(Tt).setUserDataProvider(t.user),t.reaction&&this.getService(Jo).setReactionAnnotationDataProvider(t.reaction),t.anonymousUser&&this.getService(Tt).setAnonymousUserDataProvider(t.anonymousUser),t.recorder&&this.getService(es).setRecorderAnnotationDataProvider(t.recorder),t.notification&&this.getService(is).setNotificationDataProvider(t.notification),t.activity&&this.getService(ts).setActivityDataProvider(t.activity),t.attachment)if(t.comment)this.getService(Zo).setAttachmentDataProvider(t.attachment);else throw new Error("Comment data provider is required for attachment data provider")}catch(n){this.getService(l).catch("Error in setDataProviders: ",n)}},this.setPermissionProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setPermissionProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_PERMISSION_PROVIDER_TRIGGERED),this.getService(ci).setPermissionProvider(t)}catch(n){this.getService(l).catch("Error in setPermissionProvider: ",n)}},this.setEncryptionProvider=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setEncryptionProvider","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ENCRYPTION_PROVIDER_TRIGGERED),this.getService(B).setEncryptionProvider(t)}catch(n){this.getService(l).catch("Error in setEncryptionProvider: ",n)}},this.setVeltAuthProvider=t=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setVeltAuthProvider","color: green;");try{return yield this.getService(ie).setVeltAuthProvider(t)}catch(i){return this.getService(l).catch("Error in setVeltAuthProvider: ",i),null}}),this.getDocumentId=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getDocumentId","color: green;");try{return t?.ha||this.trackEvent(g.Events.Core.GET_DOCUMENT_ID_TRIGGERED),this.getService(D).getDocumentId()}catch(i){this.getService(l).catch("Error in getDocumentId: ",i)}},this.setLocation=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setLocation","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.SET_LOCATIONS_TRIGGERED,{payload:{params:t,appendLocation:i,methodName:"setLocation",source:"external"}}),t&&typeof t=="object"?i?this.getService(D).addLocation({location:t,source:"external"}):yield this.getService(D).setLocation({location:t,source:"external"}):this.getService(l).catch("Error in setLocation: ","Invalid location params provided.")}catch(o){this.getService(l).catch("Error in setLocation: ",o)}}),this.setRootLocation=(t,i)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setRootLocation","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_ROOT_LOCATION_TRIGGERED,{payload:{location:t,methodName:"setRootLocation",source:"external"}}),typeof t=="object"?(t=JSON.parse(JSON.stringify(t)),t.id?yield this.getService(D).setRootLocation({location:t,source:"external"}):this.getService(l).catch("Error in setRootLocation: ","Invalid location provided.")):this.getService(l).catch("Error in setRootLocation: ","Invalid location provided.")}catch(n){this.getService(l).catch("Error in setRootLocation: ",n)}}),this.setLocations=(t,i,n)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: setLocations","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.SET_LOCATIONS_TRIGGERED,{payload:{locations:t,options:i,methodName:"setLocations",source:"external"}}),t&&Array.isArray(t)?yield this.getService(D).setLocations({locations:t,options:i,source:"external"}):this.getService(l).catch("Error in setLocations: ","Invalid location params provided.")}catch(o){this.getService(l).catch("Error in setLocations: ",o)}}),this.addLocation=(t,i)=>L(this,null,function*(){this.getService(l).log("%c[WB] Calling FUNCTION: addLocation","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_LOCATIONS_TRIGGERED,{payload:{params:t,methodName:"addLocation",source:"external"}}),t&&typeof t=="object"?this.getService(D).addLocation({location:t,source:"external"}):this.getService(l).catch("Error in addLocation: ","Invalid location params provided.")}catch(n){this.getService(l).catch("Error in addLocation: ",n)}}),this.setScrollableElementsIds=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: setScrollableElementsIds","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.SET_SCROLLABLE_ELEMENTS_IDS_TRIGGERED,{payload:{ids:t}}),t?this.getService(fe).setScrollableElementsIds(t):this.getService(l).catch("Error in setScrollableElementsIds: ","Invalid ids provided.")}catch(n){this.getService(l).catch("Error in setScrollableElementsIds: ",n)}},this.removeLocation=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: removeLocation","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.REMOVE_LOCATIONS_TRIGGERED,{payload:{location:t},methodName:"removeLocation",source:"external"}),this.getService(D).removeLocation({location:t,source:"external"})}catch(n){this.getService(l).catch("Error in removeLocation: ",n)}},this.removeLocations=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: removeLocations","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.REMOVE_LOCATIONS_TRIGGERED,{payload:{locations:t},methodName:"removeLocations",source:"external"}),this.getService(D).removeLocations({locations:t,source:"external"})}catch(n){this.getService(l).catch("Error in removeLocations: ",n)}},this.unsetLocationIds=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: unsetLocationIds","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.UNSET_LOCATIONS_TRIGGERED,{payload:{locationIds:t},methodName:"unsetLocationIds",source:"external"}),this.getService(D).unsetLocationIds(t,"external")}catch(n){this.getService(l).catch("Error in unsetLocationIds: ",n)}},this.excludeLocationIds=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: excludeLocationIds","color: green;");try{i?.ha||this.trackEvent(g.Events.Core.EXCLUDE_LOCATION_IDS_TRIGGERED,{payload:{ids:t}}),typeof t=="object"&&t instanceof Array&&(t=t.filter(n=>typeof n=="string"),this.getService(D).excludeLocationIds(t))}catch(n){this.getService(l).catch("Error in excludeLocationIds: ",n)}},this.updateContactList=(t,i,n)=>{this.getService(l).log("%c[WB] Calling FUNCTION: updateContactList","color: green;");try{n?.ha||this.trackEvent(g.Events.Core.UPDATE_CONTACT_LIST_TRIGGERED,{payload:{userContacts:t,config:i}}),typeof t=="object"&&t instanceof Array&&(!i||i&&typeof i=="object")&&(t=JSON.parse(JSON.stringify(t)),this.getService(J).updateContactList(t,i))}catch(o){this.getService(l).catch("Error in updateContactList: ",o)}},this.removeScrollableElementsIds=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: removeScrollableElementsIds","color: green;");try{t?.ha||this.trackEvent(g.Events.Core.REMOVE_SCROLLABLE_ELEMENTS_IDS_TRIGGERED),this.getService(fe).removeScrollableElementsIds()}catch(i){this.getService(l).catch("Error in removeScrollableElementsIds: ",i)}},this.getPresenceElement=t=>{this.ensureFeatureEnabled(C.PRESENCE),this.getService(l).log("%c[WB] Calling FUNCTION: getPresenceElement","color: green;");try{let i=new Wi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getPresenceElement: ",i),null}},this.preloadPresence=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadPresence","color: green;"),this.ensureFeatureEnabled(C.PRESENCE),this.getService(T).ensurePresenceChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadPresence: ",t)})),this.getCursorElement=t=>{this.ensureFeatureEnabled(C.CURSOR),this.getService(l).log("%c[WB] Calling FUNCTION: getCursorElement","color: green;");try{let i=new qi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getCursorElement: ",i),null}},this.preloadCursor=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadCursor","color: green;"),this.ensureFeatureEnabled(C.CURSOR),this.getService(T).ensureCursorChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadCursor: ",t)})),this.getCommentElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getCommentElement","color: green;"),this.ensureFeatureEnabled(C.COMMENT);try{let n=new Fi(this.injector,this.getService(T));return t?.ha&&n.ha(t.ha),n}catch(i){return this.getService(l).catch("Error in getCommentElement: ",i),null}},this.preloadComment=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadComment","color: green;"),this.ensureFeatureEnabled(C.COMMENT),this.getService(T).ensureCommentChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadComment: ",t)})),this._suggestionElement=null,this.getSuggestionElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSuggestionElement","color: green;");try{return this._suggestionElement||(this._suggestionElement=new Ki(this.injector)),t?.ha&&this._suggestionElement.ha(t.ha),this._suggestionElement}catch(i){return this.getService(l).catch("Error in getSuggestionElement: ",i),null}},this.getTagElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getTagElement","color: green;");try{this.ensureFeatureEnabled(C.TAG);let i=new Xi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getTagElement: ",i),null}},this.preloadTag=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadTag","color: green;"),this.ensureFeatureEnabled(C.TAG),this.getService(T).ensureTagChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadTag: ",t)})),this.getSelectionElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getSelectionElement","color: green;");try{this.ensureFeatureEnabled(C.LIVE_SELECTION);let i=new Yi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getSelectionElement: ",i),null}},this.preloadSelection=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadSelection","color: green;"),this.ensureFeatureEnabled(C.LIVE_SELECTION),this.getService(T).ensureSelectionChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadSelection: ",t)})),this.getRecorderElement=t=>{this.ensureFeatureEnabled(C.RECORDER),this.getService(l).log("%c[WB] Calling FUNCTION: getRecorderElement","color: green;");try{let i=new $i(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getRecorderElement: ",i),null}},this.preloadRecorder=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadRecorder","color: green;"),this.ensureFeatureEnabled(C.RECORDER),this.getService(T).ensureRecorderChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadRecorder: ",t)})),this.getContactElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getContactElement","color: green;");try{let i=new zi(this.injector);return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getContactElement: ",i),null}},this.getRewriterElement=t=>{this.ensureFeatureEnabled(C.REWRITER),this.getService(l).log("%c[WB] Calling FUNCTION: getRewriterElement","color: green;");try{let i=new Qi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getRewriterElement: ",i),null}},this.preloadRewriter=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadRewriter","color: green;"),this.ensureFeatureEnabled(C.REWRITER),this.getService(T).ensureRewriterChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadRewriter: ",t)})),this.getHuddleElement=t=>{this.ensureFeatureEnabled(C.HUDDLE),this.getService(l).log("%c[WB] Calling FUNCTION: getHuddleElement","color: green;");try{let i=new Vi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getHuddleElement: ",i),null}},this.preloadHuddle=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadHuddle","color: green;"),this.ensureFeatureEnabled(C.HUDDLE),this.getService(T).ensureHuddleChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadHuddle: ",t)})),this.getLiveStateSyncElement=t=>{this.ensureFeatureEnabled(C.LIVE_STATE_SYNC),this.getService(l).log("%c[WB] Calling FUNCTION: getLiveStateSyncElement","color: green;");try{let i=new Gi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getLiveStateSyncElement: ",i),null}},this.preloadLiveStateSync=()=>(this.ensureFeatureEnabled(C.LIVE_STATE_SYNC),this.getService(T).ensureLiveStateSyncChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadLiveStateSync: ",t)})),this.getArrowElement=t=>{this.ensureFeatureEnabled(C.ARROW),this.getService(l).log("%c[WB] Calling FUNCTION: getArrowElement","color: green;");try{let i=new wi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getArrowElement: ",i),null}},this.preloadArrow=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadArrow","color: green;"),this.ensureFeatureEnabled(C.ARROW),this.getService(T).ensureArrowChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadArrow: ",t)})),this.getViewsElement=t=>{this.ensureFeatureEnabled(C.VIEWS),this.getService(l).log("%c[WB] Calling FUNCTION: getViewsElement","color: green;");try{let i=new Ji(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getViewsElement: ",i),null}},this.preloadViews=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadViews","color: green;"),this.ensureFeatureEnabled(C.VIEWS),this.getService(T).ensureViewChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadViews: ",t)})),this.preloadUserInvite=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadUserInvite","color: green;"),this.ensureFeatureEnabled(C.USER_INVITE),this.getService(T).ensureUserInviteChunk().catch(t=>{this.getService(l).catch("Error in preloadUserInvite: ",t)})),this.preloadUserRequest=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadUserRequest","color: green;"),this.ensureFeatureEnabled(C.USER_REQUEST),this.getService(T).ensureUserRequestChunk().catch(t=>{this.getService(l).catch("Error in preloadUserRequest: ",t)})),this.preloadVideoPlayer=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadVideoPlayer","color: green;"),this.ensureFeatureEnabled(C.VIDEO_PLAYER),this.getService(T).ensureVideoPlayerChunk().catch(t=>{this.getService(l).catch("Error in preloadVideoPlayer: ",t)})),this.getNotificationElement=t=>{this.ensureFeatureEnabled(C.NOTIFICATION),this.getService(l).log("%c[WB] Calling FUNCTION: getNotificationElement","color: green;");try{let i=new ji(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getNotificationElement: ",i),null}},this.preloadNotification=()=>(this.ensureFeatureEnabled(C.NOTIFICATION),this.getService(l).log("%c[WB] Calling FUNCTION: preloadNotification","color: green;"),this.getService(T).ensureNotificationChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadNotification: ",t)})),this.getAutocompleteElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getAutocompleteElement","color: green;");try{let i=new Li(this.injector);return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getAutocompleteElement: ",i),null}},this.getDocElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getDocElement","color: green;");try{let i=new Bi(this.injector);return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getDocElement: ",i),null}},this.getActivityElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getActivityElement","color: green;");try{this.ensureFeatureEnabled(C.ACTIVITY);let i=new Mi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getActivityElement: ",i),null}},this.preloadActivity=()=>{this.getService(l).log("%c[WB] Calling FUNCTION: preloadActivity","color: green;");try{return this.ensureFeatureEnabled(C.ACTIVITY),this.getService(T).ensureActivityLogChunk().then(()=>{})}catch(t){return this.getService(l).catch("Error in preloadActivity: ",t),Promise.resolve()}},this.getAreaElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getAreaElement","color: green;");try{this.ensureFeatureEnabled(C.AREA);let i=new Ni(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getAreaElement: ",i),null}},this.preloadArea=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadArea","color: green;"),this.ensureFeatureEnabled(C.AREA),this.getService(T).ensureAreaChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadArea: ",t)})),this.getReactionElement=t=>{this.ensureFeatureEnabled(C.REACTION),this.getService(l).log("%c[WB] Calling FUNCTION: getReactionElement","color: green;");try{let i=new Hi(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getReactionElement: ",i),null}},this.preloadReaction=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadReaction","color: green;"),this.ensureFeatureEnabled(C.REACTION),this.getService(T).ensureReactionChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadReaction: ",t)})),this.getCrdtElement=t=>{this.getService(l).log("%c[WB] Calling FUNCTION: getCrdtElement","color: green;");try{this.ensureFeatureEnabled(C.CRDT);let i=new Ui(this.injector,this.getService(T));return t?.ha&&i.ha(t.ha),i}catch(i){return this.getService(l).catch("Error in getCrdtElement: ",i),null}},this.preloadCrdt=()=>(this.getService(l).log("%c[WB] Calling FUNCTION: preloadCrdt","color: green;"),this.ensureFeatureEnabled(C.CRDT),this.getService(T).ensureCrdtChunk().then(()=>{}).catch(t=>{this.getService(l).catch("Error in preloadCrdt: ",t)})),this.getMetadata=t=>L(this,null,function*(){try{return t?.ha||this.trackEvent(g.Events.Core.GET_METADATA_TRIGGERED),this.getService(ri).getGlobalMetadata()}catch(i){return this.getService(l).catch("Error in getMetadata: ",i),null}}),this.fetchDebugInfo=t=>L(this,null,function*(){try{return t?.ha||this.trackEvent(g.Events.Core.FETCH_DEBUG_INFO_TRIGGERED),this.getService(ri).getDebugInfo()}catch(i){return this.getService(l).catch("Error in fetchDebugInfo: ",i),null}}),this.getDebugInfo=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_DEBUG_INFO_TRIGGERED),this.getService(ri).getDebugInfo$()}catch(i){return this.getService(l).catch("Error in getDebugInfo: ",i),x(null)}},this.disableFeatures=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.DISABLE_FEATURES_TRIGGERED,{payload:{features:t}}),this.getService(B).disableFeatures(t)}catch(n){this.getService(l).catch("Error in disableFeatures: ",n)}},this.setDarkMode=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_DARK_MODE_TRIGGERED,{payload:{value:t}}),this.getService(Ot).setDarkMode(t)}catch(n){this.getService(l).catch("Error in setDarkMode: ",n)}},this.enableLogs=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_LOGS_TRIGGERED),this.getService(B).enableLogs()}catch(i){this.getService(l).catch("Error in enableLogs: ",i)}},this.disableLogs=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.DISABLE_LOGS_TRIGGERED),this.getService(B).disableLogs(t)}catch(n){this.getService(l).catch("Error in disableLogs: ",n)}},this.isUserAllowed$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.IS_USER_ALLOWED_TRIGGERED),this.getService(ct).isUserAllowed$()}catch(i){return this.getService(l).catch("Error in isUserAllowed$: ",i),x(!1)}},this.getUser=t=>{try{t?.ha||this.trackEvent(g.Events.Core.GET_USER_TRIGGERED);let i=this.getService(ie).getUser();if(i&&typeof i=="object"){let n=JSON.parse(JSON.stringify(i));return n?.clientOrganizationId&&(n.organizationId=n.clientOrganizationId,delete n.clientOrganizationId),n?.clientGroupId&&(n.groupId=n.clientGroupId,delete n.clientGroupId),delete n.userSnippylyId,n}else return null}catch(i){return this.getService(l).catch("Error in getUser: ",i),null}},this.getCurrentUser=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_CURRENT_USER_TRIGGERED),this.getService(ie).getUser$().pipe(Wn(i=>Ko(i)))}catch(i){return this.getService(l).catch("Error in getCurrentUser: ",i),x(null)}},this.getHeartbeat=(t,i)=>{try{return i?.ha||this.trackEvent(g.Events.Core.GET_HEARTBEAT_TRIGGERED),this.getService(bs).getHeartbeat(t)}catch(n){return this.getService(l).catch("Error in getHeartbeat: ",n),x({data:null})}},this.getUserRole$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_USER_ROLE_TRIGGERED),this.getService(ct).getRole$()}catch(i){return this.getService(l).catch("Error in getUserRole$: ",i),x("")}},this.getUserPermissions=(t,i)=>L(this,null,function*(){try{return i?.ha||this.trackEvent(g.Events.Core.GET_USER_PERMISSIONS_TRIGGERED,{payload:{request:t,source:"external"}}),this.getService(ci).getUserPermissions(t)}catch(n){return this.getService(l).catch("Error in getUserPermissions$: ",n),{}}}),this.getCurrentUserPermissions=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_CURRENT_USER_PERMISSIONS_TRIGGERED),this.getService(ci).getCurrentUserPermissions$()}catch(i){return this.getService(l).catch("Error in getCurrentUserPermissions: ",i),x(null)}},this.getFeaturesAccessLevelIam$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_FEATURES_ACCESS_LEVEL_IAM_TRIGGERED),this.getService(ct).getFeaturesAccessLevel$()}catch(i){return this.getService(l).catch("Error in getFeaturesAccessLevel$: ",i),x(void 0)}},this.isPlanExpired$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.IS_PLAN_EXPIRED_TRIGGERED),this.getService(ie).isPlanExpired$()}catch(i){return this.getService(l).catch("Error in isPlanExpired$: ",i),x(!1)}},this.getCustomerMetadata$=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_CUSTOMER_METADATA_TRIGGERED),this.getService(D).getCustomerMetadata$()}catch(i){return this.getService(l).catch("Error in getCustomerMetadata$: ",i),x(null)}},this.getDocumentMetadata=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_DOCUMENT_METADATA_TRIGGERED),this.getService(D).getDocumentMetadata$()}catch(i){return this.getService(l).catch("Error in getDocumentMetadata: ",i),x(null)}},this.getVeltInitState=t=>{try{return t?.ha,this.getService(Zi).getVeltInitState$()}catch(i){return this.getService(l).catch("Error in getVeltInitState: ",i),x(void 0)}},this.removeVeltContent=(t,i)=>{try{return i?.ha||this.trackEvent(g.Events.Core.REMOVE_VELT_CONTENT_TRIGGERED),this.getService(fe).removeSnippylyContent(t)}catch(n){return this.getService(l).catch("Error in removeVeltContent: ",n),""}},this.injectCustomCss=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.INJECT_CUSTOM_CSS_TRIGGERED),this.getService(l).log("%c[WB] Calling FUNCTION: injectCustomCss","color: green;"),this.getService(fe).setCustomCss(t)}catch(n){this.getService(l).catch("Error in injectCustomCss: ",n)}},this.setLanguage=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_LANGUAGE_TRIGGERED,{payload:{language:t}}),this.getService(Ye).setLanguage(t)}catch(n){this.getService(l).catch("Error in setLanguage: ",n)}},this.setTranslations=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_TRANSLATIONS_TRIGGERED,{payload:{translations:t}}),this.getService(Ye).setTranslations(t)}catch(n){this.getService(l).catch("Error in setTranslations: ",n)}},this.enableAutoTranslation=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_AUTO_TRANSLATION_TRIGGERED),this.getService(Ye).enableAutoTranslation()}catch(i){this.getService(l).catch("Error in enableAutoTranslation: ",i)}},this.disableAutoTranslation=t=>{try{t?.ha||this.trackEvent(g.Events.Core.DISABLE_AUTO_TRANSLATION_TRIGGERED),this.getService(Ye).disableAutoTranslation()}catch(i){this.getService(l).catch("Error in disableAutoTranslation: ",i)}},this.sf=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SF_TRIGGERED,{payload:{value:t}}),t?(document.querySelector(A.TAGS.SNIPPYLY_PLUGIN)||document.querySelector(A.TAGS.SUPERFLOW_TOOLBAR))&&this.getService(B).setSF(t):this.getService(B).setSF(t)}catch(n){this.getService(l).catch("Error in sf: ",n)}},this.st=(t,i)=>{try{i?.ha,this.getService(B).setSdkType(t)}catch(n){this.getService(l).catch("Error in st: ",n)}},this.getService=t=>this.injector.get(t),this.on=(t,i)=>{this.getService(l).log("%c[WB] Calling FUNCTION: on","color: green;");try{return i?.ha,this.getService(ii).onAction(t)}catch(n){return this.getService(l).catch("Error in on: ",n),x(null)}},this.setUiState=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.SET_UI_STATE_TRIGGERED,{payload:{uiState:t}}),this.getService(D).setUIState(t)}catch(n){this.getService(l).catch("Error in setUiState: ",n)}},this.getUiState=t=>{try{return t?.ha||this.trackEvent(g.Events.Core.GET_UI_STATE_TRIGGERED),this.getService(D).getUIState$()}catch(i){return this.getService(l).catch("Error in getUiState: ",i),x({})}},this.enableSafeEval=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_SAFE_EVAL_TRIGGERED),this.getService(B).enableSafeEval()}catch(i){this.getService(l).catch("Error in enableSafeEval: ",i)}},this.disableSafeEval=t=>{try{t?.ha||this.trackEvent(g.Events.Core.DISABLE_SAFE_EVAL_TRIGGERED),this.getService(B).disableSafeEval()}catch(i){this.getService(l).catch("Error in disableSafeEval: ",i)}},this.enableFirestorePersistentCache=t=>{try{t?.ha||this.trackEvent(g.Events.Core.ENABLE_FIRESTORE_PERSISTENT_CACHE_TRIGGERED),this.getService(B).enableFirestorePersistentCache()}catch(i){this.getService(l).catch("Error in enableFirestorePersistentCache: ",i)}},this.disableFirestorePersistentCache=t=>{try{t?.ha||this.trackEvent(g.Events.Core.DISABLE_FIRESTORE_PERSISTENT_CACHE_TRIGGERED),this.getService(B).disableFirestorePersistentCache()}catch(i){this.getService(l).catch("Error in disableFirestorePersistentCache: ",i)}},this.resetVeltButtonState=(t,i)=>{try{i?.ha||this.trackEvent(g.Events.Core.RESET_VELT_BUTTON_STATE_TRIGGERED,{payload:{config:t}}),this.getService(us).resetVeltButtonState(t)}catch(n){this.getService(l).catch("Error in resetVeltButtonState: ",n)}},this.getService(l).log("%c[WB] Creating CLASS: Snippyly","color: blue;")}preloadLazyChunksFromAllowList(e){try{let t=this.getService(T),i=[{feature:C.ARROW,name:"arrow",load:()=>t.ensureArrowChunk()},{feature:C.COMMENT,name:"comment",load:()=>t.ensureCommentChunk()},{feature:C.CURSOR,name:"cursor",load:()=>t.ensureCursorChunk()},{feature:C.HUDDLE,name:"huddle",load:()=>t.ensureHuddleChunk()},{feature:C.NOTIFICATION,name:"notification",load:()=>t.ensureNotificationChunk()},{feature:C.PRESENCE,name:"presence",load:()=>t.ensurePresenceChunk()},{feature:C.REACTION,name:"reaction",load:()=>t.ensureReactionChunk()},{feature:C.RECORDER,name:"recorder",load:()=>t.ensureRecorderChunk()},{feature:C.TAG,name:"tag",load:()=>t.ensureTagChunk()},{feature:C.REWRITER,name:"rewriter",load:()=>t.ensureRewriterChunk()},{feature:C.LIVE_SELECTION,name:"selection",load:()=>t.ensureSelectionChunk()},{feature:C.AREA,name:"area",load:()=>t.ensureAreaChunk()},{feature:C.ACTIVITY,name:"activity-log",load:()=>t.ensureActivityLogChunk()},{feature:C.VIEWS,name:"view",load:()=>t.ensureViewChunk()},{feature:C.USER_INVITE,name:"user-invite",load:()=>t.ensureUserInviteChunk()},{feature:C.USER_REQUEST,name:"user-request",load:()=>t.ensureUserRequestChunk()},{feature:C.VIDEO_PLAYER,name:"video-player",load:()=>t.ensureVideoPlayerChunk()},{feature:C.CRDT,name:"crdt",load:()=>t.ensureCrdtChunk()},{feature:C.LIVE_STATE_SYNC,name:"live-state-sync",load:()=>t.ensureLiveStateSyncChunk()}],n=e===void 0?i:i.filter(s=>e.includes(s.feature));if(!n.length){this.getService(l).log("%c[WB] preloadLazyChunksFromAllowList: no lazy chunks to preload","color: orange;");return}let o=e===void 0?"default-all":`allowList(${n.map(s=>s.name).join(",")})`;this.getService(l).log(`%c[WB] preloadLazyChunksFromAllowList: ${o}`,"color: green;");for(let s of n)s.load().catch(()=>{})}catch(t){this.getService(l).catch("Error in preloadLazyChunksFromAllowList: ",t)}}trackEvent(e,t={},i=!0){try{t||(t={}),t=G(k({},t),{source:"external"}),this.getService(St).trackAuthenticatedEvent(e,t,i)}catch(n){this.getService(l).catch("Error in _trackEvent: ",n);return}}};var Ta=(()=>{let e=class e{constructor(){this.veltElement=!0}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=j({type:e,selectors:[["app-external-styles"]],hostVars:1,hostBindings:function(n,o){n&2&&Ue("data-velt-element",o.veltElement)},standalone:!1,decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors:active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}html{--velt-base-rem-unit: 1}velt-wireframe{display:none!important}body.velt-pin-dragging iframe{pointer-events:none!important}:root{--legacy-velt-neutral-0: #000000;--legacy-velt-neutral-1: #141416;--legacy-velt-neutral-2: #23262F;--legacy-velt-neutral-3: #353945;--legacy-velt-neutral-4: #777E90;--legacy-velt-neutral-5: #B1B5C3;--legacy-velt-neutral-6: #E6E8EC;--legacy-velt-neutral-7: #F4F5F6;--legacy-velt-neutral-8: #FCFCFD;--legacy-velt-neutral-9: #FFFFFF;--legacy-velt-dark-1: #141416;--legacy-velt-dark-2: #222226;--legacy-velt-dark-3: #303034;--legacy-velt-dark-4: #404044;--legacy-velt-dark-5: #59595F;--legacy-velt-dark-6: #80808A;--legacy-velt-dark-7: #91919C;--legacy-velt-dark-8: #E5E5E9;--legacy-velt-primary-color: var(--legacy-velt-dark-1);--legacy-velt-primary-dark-color: var(--legacy-velt-dark-8);--legacy-velt-secondary-color: var(--legacy-velt-neutral-4);--legacy-velt-secondary-dark-color: var(--legacy-velt-dark-7);--legacy-velt-bg-color: var(--legacy-velt-neutral-8);--legacy-velt-bg-dark-color: var(--legacy-velt-dark-1);--legacy-velt-border-color: var(--legacy-velt-neutral-6);--legacy-velt-border-dark-color: var(--legacy-velt-dark-3);--legacy-velt-grey-2-color: #D4D6DF;--legacy-velt-grey-2-dark-color: var(--legacy-velt-dark-4);--legacy-velt-grey-4-color: #989898;--legacy-velt-grey-4-dark-color: var(--legacy-velt-dark-6);--legacy-velt-status-open-color: #625DF5;--legacy-velt-status-in-progress-color: #ECB000;--legacy-velt-status-resolved-color: #00C48C;--legacy-velt-purple: #625DF5;--legacy-velt-orange: #ECB000;--legacy-velt-green: #0DCF82;--legacy-velt-blue: #0d6efd;--legacy-velt-primary-btn-color: var(--legacy-velt-purple);--legacy-velt-hyperlink-color: var(--legacy-velt-purple);--legacy-velt-grey-btn-color: var(--legacy-velt-neutral-5);--legacy-velt-header-btn-color: var(--legacy-velt-neutral-3);--legacy-velt-dropdown-item-color: var(--legacy-velt-neutral-2);--legacy-velt-avatar-size: 2rem;--velt-default-font-family: sans-serif;--Icon-Size-Small: 12px;--Icon-Size-Medium: 16px;--Icon-Size-Large: 24px}:root[data-velt-theme=dark]{--legacy-velt-primary-color: var(--legacy-velt-primary-dark-color);--legacy-velt-secondary-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-bg-color: var(--legacy-velt-bg-dark-color);--legacy-velt-border-color: var(--legacy-velt-border-dark-color);--legacy-velt-grey-2-color: var(--legacy-velt-grey-2-dark-color);--legacy-velt-grey-4-color: var(--legacy-velt-grey-4-dark-color);--legacy-velt-primary-btn-color: var(--legacy-velt-border-dark-color);--legacy-velt-hyperlink-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-grey-btn-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-header-btn-color: var(--legacy-velt-secondary-dark-color);--legacy-velt-dropdown-item-color: var(--legacy-velt-secondary-dark-color)}:root{--legacy-velt-tool-padding: 6px;--legacy-velt-tool-icon-size: 1.5rem;--legacy-velt-tool-icon-color: var(--legacy-velt-neutral-4);--legacy-velt-tool-border-radius: 50px;--legacy-velt-tool-border-color: transparent;--legacy-velt-tool-border: 2px solid var(--legacy-velt-tool-border-color);--legacy-velt-tool-bg-color: transparent;--legacy-velt-tool-focus-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-focus-icon-color: var(--legacy-velt-tool-icon-color);--legacy-velt-tool-focus-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-focus-border-color: var(--legacy-velt-neutral-7);--legacy-velt-tool-focus-border: 2px solid var(--legacy-velt-tool-focus-border-color);--legacy-velt-tool-focus-bg-color: var(--legacy-velt-tool-bg-color);--legacy-velt-tool-hover-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-hover-icon-color: var(--legacy-velt-neutral-3);--legacy-velt-tool-hover-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-hover-border-color: var(--legacy-velt-neutral-7);--legacy-velt-tool-hover-border: 2px solid var(--legacy-velt-tool-hover-border-color);--legacy-velt-tool-hover-bg-color: var(--legacy-velt-neutral-7);--legacy-velt-tool-active-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-active-icon-color: var(--legacy-velt-neutral-9);--legacy-velt-tool-active-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-active-border-color: var(--legacy-velt-purple);--legacy-velt-tool-active-border: 2px solid var(--legacy-velt-tool-active-border-color);--legacy-velt-tool-active-bg-color: var(--legacy-velt-purple)}:root[data-velt-theme=dark],:root:not(data-velt-theme) velt-comment-tool[dark],:root:not(data-velt-theme) velt-sidebar-button[dark],:root:not(data-velt-theme) velt-arrow-tool[dark],:root:not(data-velt-theme) velt-reaction-tool[dark],:root:not(data-velt-theme) velt-huddle-tool[dark],:root:not(data-velt-theme) velt-recorder-tool[dark],:root:not(data-velt-theme) velt-user-invite-tool[dark],:root:not(data-velt-theme) velt-user-request-tool[dark],:root:not(data-velt-theme) velt-notifications-tool[dark],:root:not(data-velt-theme) app-recorder-all-tool-menu[dark],:root:not(data-velt-theme) snippyly-recording-preview-steps-dialog[dark],:root:not(data-velt-theme) snippyly-recorder-control-panel-internal[dark],:root:not(data-velt-theme) snippyly-recorder-player-internal[dark],:root:not(data-velt-theme) snippyly-recorder-control-panel-embed[dark],:root:not(data-velt-theme) snippyly-recorder-player-embed[dark],:root:not(data-velt-theme) velt-recorder-control-panel-embed[dark],:root:not(data-velt-theme) velt-recorder-player-embed[dark],:root:not(data-velt-theme) velt-recorder-player-expanded[dark]:root:not(data-velt-theme) app-transcription-panel[dark]{--legacy-velt-tool-icon-size: 1.5rem;--legacy-velt-tool-icon-color: var(--legacy-velt-neutral-4);--legacy-velt-tool-border-radius: 50px;--legacy-velt-tool-border-color: transparent;--legacy-velt-tool-border: 2px solid var(--legacy-velt-tool-border-color);--legacy-velt-tool-bg-color: transparent;--legacy-velt-tool-focus-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-focus-icon-color: var(--legacy-velt-tool-icon-color);--legacy-velt-tool-focus-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-focus-border-color: var(--legacy-velt-neutral-2);--legacy-velt-tool-focus-border: 2px solid var(--legacy-velt-tool-focus-border-color);--legacy-velt-tool-focus-bg-color: var(--legacy-velt-tool-bg-color);--legacy-velt-tool-hover-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-hover-icon-color: var(--legacy-velt-neutral-5);--legacy-velt-tool-hover-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-hover-border-color: var(--legacy-velt-neutral-1);--legacy-velt-tool-hover-border: 2px solid var(--legacy-velt-tool-hover-border-color);--legacy-velt-tool-hover-bg-color: var(--legacy-velt-neutral-1);--legacy-velt-tool-active-icon-size: var(--legacy-velt-tool-icon-size);--legacy-velt-tool-active-icon-color: var(--legacy-velt-neutral-9);--legacy-velt-tool-active-border-radius: var(--legacy-velt-tool-border-radius);--legacy-velt-tool-active-border-color: var(--legacy-velt-purple);--legacy-velt-tool-active-border: 2px solid var(--legacy-velt-tool-active-border-color);--legacy-velt-tool-active-bg-color: var(--legacy-velt-purple)}snippyly-user-avatar,velt-user-avatar{--legacy-velt-user-avatar-size: var(--legacy-velt-avatar-size);--legacy-velt-user-avatar-initial-font-size: .8}snippyly-follow-overlay,velt-follow-overlay{--legacy-velt-follow-overlay-bg-color: var(--legacy-velt-bg-color);--legacy-velt-follow-overlay-text-color: var(--legacy-velt-primary-color);--legacy-velt-follow-overlay-btn-color: var(--legacy-velt-neutral-6);--legacy-velt-follow-overlay-btn-hover-color: var(--legacy-velt-neutral-5);--legacy-velt-follow-overlay-border-color: var(--legacy-velt-border-color)}snippyly-follow-overlay[dark],velt-follow-overlay[dark]{--legacy-velt-follow-overlay-bg-color: var(--legacy-velt-bg-dark-color);--legacy-velt-follow-overlay-text-color: var(--legacy-velt-primary-dark-color);--legacy-velt-follow-overlay-border-color: var(--legacy-velt-border-dark-color)}snippyly-cursor,velt-cursor{--legacy-velt-cursor-avatar-size: var(--legacy-velt-avatar-size);--legacy-velt-cursor-video-size: 4.2rem}snippyly-reaction-tool,velt-reaction-tool,app-reaction-tool{--legacy-velt-reaction-tool-icon-size: 2rem;--legacy-velt-reaction-tool-border-radius: 50px;--legacy-velt-reaction-tool-icon-color: #8F95B2;--legacy-velt-reaction-tool-hover-bg-color: #EAE8F9;--legacy-velt-reaction-tool-active-fill-color: white;--legacy-velt-reaction-tool-active-bg-color: var(--legacy-velt-purple)}snippyly-reaction-tool[dark],velt-reaction-tool[dark],app-reaction-tool[dark]{--legacy-velt-reaction-tool-icon-size: 2rem;--legacy-velt-reaction-tool-border-radius: 50px;--legacy-velt-reaction-tool-icon-color: #EAE8F9;--legacy-velt-reaction-tool-hover-bg-color: #8F95B2;--legacy-velt-reaction-tool-active-fill-color: white;--legacy-velt-reaction-tool-active-bg-color: var(--legacy-velt-purple)}velt-view-analytics-dialog{--legacy-velt-view-analytics-dialog-bg-color: #FFF;--legacy-velt-view-analytics-dialog-border-radius: 12px;--legacy-velt-view-analytics-dialog-border: 1px solid rgba(0, 0, 0, .08);--legacy-velt-view-analytics-dialog-box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, .12);--legacy-velt-view-analytics-dialog-padding: 8px;--legacy-velt-view-analytics-dialog-total-views-count-color: #111;--legacy-velt-view-analytics-dialog-total-views-text-color: #625DF5;--legacy-velt-view-analytics-dialog-today-views-text-color: #848297;--legacy-velt-view-analytics-dialog-views-container-bg-color: #F4F3FF;--legacy-velt-view-analytics-dialog-user-name-color: #4C5366;--legacy-velt-view-analytics-dialog-user-timestamp-color: #959595;--legacy-velt-view-analytics-dialog-back-btn-color: #8F95B2}velt-view-analytics-dialog[dark]{--legacy-velt-view-analytics-dialog-bg-color: #131229;--legacy-velt-view-analytics-dialog-border-radius: 12px;--legacy-velt-view-analytics-dialog-border: 1px solid rgba(255, 255, 255, .08);--legacy-velt-view-analytics-dialog-box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, .12);--legacy-velt-view-analytics-dialog-padding: 8px;--legacy-velt-view-analytics-dialog-total-views-count-color: #FFF;--legacy-velt-view-analytics-dialog-total-views-text-color: #9491F8;--legacy-velt-view-analytics-dialog-today-views-text-color: #848297;--legacy-velt-view-analytics-dialog-views-container-bg-color: rgba(244, 243, 255, .06);--legacy-velt-view-analytics-dialog-user-name-color: #FFF;--legacy-velt-view-analytics-dialog-user-timestamp-color: rgba(255, 255, 255, .4)}velt-reaction-pin-tooltip-internal{--Surface-Neutral-0: #FFF;--Surface-Neutral-2: #F5F5F5;--Surface-Neutral-3: #F0F0F0;--Text-Neutral-0: #0A0A0A;--Text-Neutral-3: #292929;--Text-Neutral-5: #525252;--Text-Neutral-9: #999;--Text-Brand-Primary: #625DF5}velt-reaction-pin-tooltip-internal[dark]{--Surface-Neutral-0: #0F0F0F;--Surface-Neutral-2: #1F1F1F;--Surface-Neutral-3: #2F2F2F;--Text-Neutral-0: #FFF;--Text-Neutral-3: #E0E0E0;--Text-Neutral-5: #C2C2C2;--Text-Neutral-9: #ADADAD;--Text-Brand-Primary: #9491F8}:root{--velt-border-radius-2xs: calc((.125rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-xs: calc((.25rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-sm: calc((.5rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-md: calc((.75rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-lg: calc((1rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-xl: calc((1.25rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-2xl: calc((1.5rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-3xl: calc((2rem + 0px) * var(--velt-base-rem-unit));--velt-border-radius-full: calc((5rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-2xs: calc((.125rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-xs: calc((.25rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-sm: calc((.5rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-md: calc((.75rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-lg: calc((1rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-xl: calc((1.25rem + 0px) * var(--velt-base-rem-unit));--velt-spacing-2xl: calc((1.5rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-2xs: calc((.625rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-xs: calc((.75rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-sm: calc((.875rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-md: calc((1rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-lg: calc((1.5rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-xl: calc((1.75rem + 0px) * var(--velt-base-rem-unit));--velt-font-size-2xl: calc((2rem + 0px) * var(--velt-base-rem-unit));--velt-light-mode-green: #0DCF82;--velt-light-mode-magenta: #A259FE;--velt-light-mode-amber: #FF7162;--velt-light-mode-purple: #625DF5;--velt-light-mode-cyan: #4BC9F0;--velt-light-mode-orange: #FE965C;--velt-light-mode-black: #080808;--velt-light-mode-white: #FFFFFF;--velt-light-mode-gray: #EBEBEB;--velt-light-mode-error: #FF7162;--velt-light-mode-error-hover: #DE5041;--velt-light-mode-error-foreground: #FFFFFF;--velt-light-mode-error-light: #FFF4F2;--velt-light-mode-error-transparent: rgba(255, 113, 98, .08);--velt-light-mode-warning: #FFCD2E;--velt-light-mode-warning-hover: #C69400;--velt-light-mode-warning-foreground: #474747;--velt-light-mode-warning-light: #FFFBEE;--velt-light-mode-warning-transparent: rgba(255, 205, 46, .08);--velt-light-mode-success: #198F65;--velt-light-mode-success-hover: #006B41;--velt-light-mode-success-foreground: #FFFFFF;--velt-light-mode-success-light: #EDF6F3;--velt-light-mode-success-transparent: rgba(25, 143, 101, .08);--velt-light-mode-accent: #625DF5;--velt-light-mode-accent-text: #625DF5;--velt-light-mode-accent-hover: #534FCF;--velt-light-mode-accent-foreground: #FFFFFF;--velt-light-mode-accent-light: #F2F2FE;--velt-light-mode-accent-transparent: rgba(148, 145, 248, .08);--velt-light-mode-text-0: #0A0A0A;--velt-light-mode-text-1: #141414;--velt-light-mode-text-2: #1F1F1F;--velt-light-mode-text-3: #292929;--velt-light-mode-text-4: #3D3D3D;--velt-light-mode-text-5: #525252;--velt-light-mode-text-6: #666666;--velt-light-mode-text-7: #7A7A7A;--velt-light-mode-text-8: #858585;--velt-light-mode-text-9: #999999;--velt-light-mode-text-10: #B8B8B8;--velt-light-mode-text-11: #A3A3A3;--velt-light-mode-text-12: #8F8F8F;--velt-light-mode-background-0: #FFFFFF;--velt-light-mode-background-1: #FAFAFA;--velt-light-mode-background-2: #F5F5F5;--velt-light-mode-background-3: #F0F0F0;--velt-light-mode-background-4: #EBEBEB;--velt-light-mode-background-5: #E5E5E5;--velt-light-mode-background-6: #E0E0E0;--velt-light-mode-background-7: #DBDBDB;--velt-light-mode-background-8: #D6D6D6;--velt-light-mode-background-9: #D1D1D1;--velt-light-mode-background-10: #CCCCCC;--velt-light-mode-border-0: #FFFFFF;--velt-light-mode-border-1: #FAFAFA;--velt-light-mode-border-2: #F5F5F5;--velt-light-mode-border-3: #F0F0F0;--velt-light-mode-border-4: #EBEBEB;--velt-light-mode-border-5: #E5E5E5;--velt-light-mode-border-6: #E0E0E0;--velt-light-mode-border-7: #DBDBDB;--velt-light-mode-border-8: #D6D6D6;--velt-light-mode-border-9: #D1D1D1;--velt-light-mode-border-10: #CCCCCC;--velt-light-mode-background-transparent: rgba(255, 255, 255, .8);--velt-light-mode-border-transparent: rgba(0, 0, 0, .16);--velt-light-mode-animation-transparent: rgba(255, 255, 255, .2);--velt-dark-mode-green: #0DCF82;--velt-dark-mode-magenta: #A259FE;--velt-dark-mode-amber: #FF7162;--velt-dark-mode-purple: #625DF5;--velt-dark-mode-cyan: #4BC9F0;--velt-dark-mode-orange: #FE965C;--velt-dark-mode-black: #080808;--velt-dark-mode-white: #FFFFFF;--velt-dark-mode-gray: #EBEBEB;--velt-dark-mode-error: #FF7162;--velt-dark-mode-error-hover: #DE5041;--velt-dark-mode-error-foreground: #FFFFFF;--velt-dark-mode-error-light: #FFF4F2;--velt-dark-mode-error-transparent: rgba(255, 113, 98, .08);--velt-dark-mode-warning: #FFCD2E;--velt-dark-mode-warning-hover: #C69400;--velt-dark-mode-warning-foreground: #474747;--velt-dark-mode-warning-light: #FFFBEE;--velt-dark-mode-warning-transparent: rgba(255, 205, 46, .08);--velt-dark-mode-success: #198F65;--velt-dark-mode-success-hover: #006B41;--velt-dark-mode-success-foreground: #FFFFFF;--velt-dark-mode-success-light: #EDF6F3;--velt-dark-mode-success-transparent: rgba(25, 143, 101, .08);--velt-dark-mode-accent: #625DF5;--velt-dark-mode-accent-text: #9491F8;--velt-dark-mode-accent-hover: #534FCF;--velt-dark-mode-accent-foreground: #FFFFFF;--velt-dark-mode-accent-light: #F2F2FE;--velt-dark-mode-accent-transparent: rgba(148, 145, 248, .08);--velt-dark-mode-text-0: #FFFFFF;--velt-dark-mode-text-1: #F5F5F5;--velt-dark-mode-text-2: #EBEBEB;--velt-dark-mode-text-3: #E0E0E0;--velt-dark-mode-text-4: #D6D6D6;--velt-dark-mode-text-5: #C2C2C2;--velt-dark-mode-text-6: #ADADAD;--velt-dark-mode-text-7: #8F8F8F;--velt-dark-mode-text-8: #7A7A7A;--velt-dark-mode-text-9: #666666;--velt-dark-mode-text-10: #525252;--velt-dark-mode-text-11: #474747;--velt-dark-mode-text-12: #3D3D3D;--velt-dark-mode-background-0: #0F0F0F;--velt-dark-mode-background-1: #1A1A1A;--velt-dark-mode-background-2: #1F1F1F;--velt-dark-mode-background-3: #242424;--velt-dark-mode-background-4: #292929;--velt-dark-mode-background-5: #2E2E2E;--velt-dark-mode-background-6: #333333;--velt-dark-mode-background-7: #383838;--velt-dark-mode-background-8: #3D3D3D;--velt-dark-mode-background-9: #424242;--velt-dark-mode-background-10: #474747;--velt-dark-mode-border-0: #0F0F0F;--velt-dark-mode-border-1: #1A1A1A;--velt-dark-mode-border-2: #1F1F1F;--velt-dark-mode-border-3: #242424;--velt-dark-mode-border-4: #292929;--velt-dark-mode-border-5: #2E2E2E;--velt-dark-mode-border-6: #333333;--velt-dark-mode-border-7: #383838;--velt-dark-mode-border-8: #3D3D3D;--velt-dark-mode-border-9: #424242;--velt-dark-mode-border-10: #474747;--velt-dark-mode-background-transparent: rgba(0, 0, 0, .8);--velt-dark-mode-border-transparent: rgba(255, 255, 255, .16);--velt-dark-mode-animation-transparent: rgba(255, 255, 255, .2);--velt-comment-pin-z-index: 2147483557;--velt-arrow-z-index: 2147483557;--velt-recorder-player-z-index: 2147483557;--velt-cursor-z-index: 2147483647;--velt-persistent-comment-frame-z-index: 2147483647;--velt-toast-popup-z-index: 2147483647;--velt-live-state-sync-overlay-z-index: 2147483647;--velt-follow-mode-overlay-z-index: 2147483647;--velt-comments-minimap-z-index: 2147483637;--velt-global-overlay-z-index: 2147483637}*[data-snippyly-element=true],*[data-velt-element=true]{font-family:var(--velt-default-font-family)}.cdk-overlay-container{z-index:var(--velt-global-overlay-z-index)!important}.cdk-overlay-container .velt-overlay-panel.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}.velt-mat-dialog-container mat-dialog-container .mat-mdc-dialog-surface.mdc-dialog__surface{background-color:#fff;padding:24px}.velt-mat-dialog-container mat-dialog-container .mat-mdc-dialog-surface.mdc-dialog__surface .mdc-dialog__title:before{height:unset}.velt-mat-dialog-container mat-dialog-container .mat-mdc-dialog-actions{padding:var(--mat-dialog-actions-padding, 8px)}.velt-overlay-panel{background-color:transparent;border:none;box-shadow:none}.velt-overlay-panel.mat-mdc-tooltip-panel .mat-mdc-tooltip{color:#fff;background-color:#0b0b0b;border:1px solid #eeeeee;border-radius:4px;padding:8px 12px;font-size:14px}.velt-menu.mat-mdc-menu-panel{box-shadow:none}video.flip{transform:rotateY(180deg);-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg)}body[data-velt-huddle-on-cursor-mode] .cdk-overlay-container{z-index:calc(var(--velt-global-overlay-z-index, 2147483637) - 1)!important}body[data-velt-huddle-on-cursor-mode]:not(.show-pin-cursor){cursor:none!important}body[data-velt-huddle-on-cursor-mode]:not(.show-pin-cursor) *{cursor:none!important}body.snippyly-add-comment-mode,body.snippyly-add-comment-mode *{-webkit-user-select:none!important;user-select:none!important}body.snippyly-add-comment-mode [data-velt-iframe-container=true][data-velt-iframe-container-static=true]{position:relative!important}body.snippyly-add-comment-mode [data-velt-iframe-container=true]:before{content:""!important;position:absolute!important;inset:0!important;z-index:1!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] [data-velt-element=true]:not(snippyly-comment-text-portal):not(velt-recorder-control-panel):not([data-velt-screen-recorder-panel=true]){display:none!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] snippyly-text-highlight.snippyly-text-highlight{color:inherit!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight{color:inherit!important;background-color:inherit!important;cursor:inherit!important}body[data-velt-ongoing-recording=screen][data-velt-comment-recording=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight.selected{background-color:inherit!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight snippyly-comment-text-portal,body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight velt-comment-text-portal{font-family:inherit!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight{color:transparent!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight.selected{color:transparent!important}body [data-velt-pdf-viewer=true] snippyly-text-highlight.snippyly-text-highlight .comment-annotation-number{display:none!important}:where([data-velt-pdf-viewer=true]) .textLayer:is(:has([data-snippyly-pin-host],[data-velt-pin-host]),:has(snippyly-comment-pin-portal,snippyly-tag-pin-portal,snippyly-recorder-pin-portal,snippyly-arrow-pin-portal,snippyly-area-pin-portal,velt-comment-pin-portal,velt-tag-pin-portal,velt-recorder-pin-portal,velt-arrow-pin-portal,velt-area-pin-portal)){opacity:1!important;visibility:visible!important}:where([data-velt-pdf-viewer=true]) .textLayer:is(:has([data-snippyly-pin-host],[data-velt-pin-host]),:has(snippyly-comment-pin-portal,snippyly-tag-pin-portal,snippyly-recorder-pin-portal,snippyly-arrow-pin-portal,snippyly-area-pin-portal,velt-comment-pin-portal,velt-tag-pin-portal,velt-recorder-pin-portal,velt-arrow-pin-portal,velt-area-pin-portal)) snippyly-text-highlight.snippyly-text-highlight .comment-text-highlight{opacity:.2!important}[data-snippyly-comment-pin-host][data-snippyly-comment-pin-host-static],[data-snippyly-tag-pin-host][data-snippyly-tag-pin-host-static],[data-snippyly-recorder-pin-host][data-snippyly-recorder-pin-host-static],[data-snippyly-arrow-pin-host][data-snippyly-arrow-pin-host-static],[data-snippyly-area-pin-host][data-snippyly-area-pin-host-static],[data-velt-comment-pin-host][data-velt-comment-pin-host-static],[data-velt-tag-pin-host][data-velt-tag-pin-host-static],[data-velt-recorder-pin-host][data-velt-recorder-pin-host-static],[data-velt-arrow-pin-host][data-velt-arrow-pin-host-static],[data-velt-area-pin-host][data-velt-area-pin-host-static]{position:relative}[data-velt-comment-pin-host][data-velt-comment-pin-active=true],[data-velt-area-pin-host][data-velt-area-pin-active=true]{opacity:1!important;visibility:visible!important}.s-display-none,.velt-display-none{display:none!important}.s-flex,.velt-display-flex{display:flex!important}.velt-items-center{align-items:center!important}.s-background-blur-1{-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}.s-background-blur-2{-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important}.s-background-blur-3{-webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important}.s-background-blur-4{-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important}.s-tooltip{position:relative!important}.s-tooltip .s-tooltiptext{visibility:hidden!important;block-size:auto!important;width:max-content!important;top:120%!important;background-color:var(--legacy-velt-bg-color);border:1px solid var(--legacy-velt-border-color);color:var(--legacy-velt-primary-color)!important;text-align:left!important;padding:.5em .75em!important;border-radius:6px!important;font-style:normal!important;font-weight:400!important;font-size:12px!important;line-height:2em!important;box-shadow:var(--legacy-velt-box-shadow)!important;position:absolute!important;z-index:1!important;opacity:0!important;transition:opacity .5s!important;left:50%!important;transform:translate(-50%)!important}.s-tooltip .s-tooltiptext:after{content:" "!important;position:absolute!important;top:0!important;left:50%!important;width:12px!important;height:12px!important;border-left:1px solid var(--legacy-velt-border-color);border-top:1px solid var(--legacy-velt-border-color);background-color:var(--legacy-velt-bg-color);border-radius:4px!important;transform:translate(-50%,-41%) rotate(45deg)!important;transform-origin:center!important}.s-tooltip .s-tooltiptext:before{content:" ";position:absolute;top:0;left:50%;width:24px;height:24px;transform:translate(-50%,-41%);background:transparent}.s-tooltip .s-tooltiptext.left{top:50%!important;right:120%!important;transform:translateY(-50%)!important}.s-tooltip .s-tooltiptext.left:after{transform:translate(41%,-50%) rotate(45deg)!important;transform-origin:center!important;left:unset!important;right:0!important;top:50%!important}.s-tooltip .s-tooltiptext.left.top{top:100%!important;transform:translateY(-45%)!important}.s-tooltip .s-tooltiptext.left.top:after{transform:translate(41%,66%) rotate(45deg)!important;top:0!important}.s-tooltip:hover .s-tooltiptext{visibility:visible!important;opacity:1!important}.s-tooltip-light .s-tooltiptext{background-color:#fff!important;color:#000!important;box-shadow:0 2px 8px -2px #9f9f9f!important}.s-tooltip-light .s-tooltiptext:after{background-color:#fff!important}.s-tooltip-link{font-style:normal!important;font-weight:400!important;font-size:12px!important;line-height:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;color:#fff!important}.s-cursor-pointer,.velt-cursor-pointer{cursor:pointer!important}.s-shake{animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translateZ(0);backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}app-render-timer-wrapper{width:100%;height:100%}velt-comment-text[comment-available=true]{color:var(--Constant-Warning---Text, #E2A600);background-color:#e2a6001a;border-bottom:1px solid #E2A600}.velt-mat-bottom-sheet-container.snippyly-comment-bottom-sheet-container,.velt-mat-bottom-sheet-container.snippyly-comment-bottom-sheet-container .mat-bottom-sheet-container{padding:0!important}.velt-mat-bottom-sheet-container.snippyly-comment-bottom-sheet-container .velt-comment-dialog{width:100%!important;min-width:100%!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
36
+ `],encapsulation:2,changeDetection:0});let r=e;return r})();function ec(r,e){r&1&&(jt(),$(0,"svg",6),X(1,"path",7),te())}function tc(r,e){r&1&&(jt(),$(0,"svg",6),X(1,"path",8)(2,"path",9),te())}function ic(r,e){if(r&1){let t=st();$(0,"div",2),ge(1,ec,2,0,"svg",3)(2,tc,3,0,"svg",3),je(3),We(4,"translate"),jt(),$(5,"svg",4),Ee("click",function(){let n=nt(t).$implicit,o=q();return ot(o.removeToast(n))}),X(6,"path",5),te()()}if(r&2){let t=e.$implicit;W("@fade",!0),K(),W("ngIf",t.type==="success"),K(),W("ngIf",t.type==="error"),K(),_t(" ",He(4,4,t.message)," ")}}var Ia=(()=>{let e=class e{constructor(i,n,o){this.loggingService=i,this.toastService=n,this.elementRef=o,this.toasts=[],this.subscriptions=[];try{this.subscriptions.push(this.toastService.getToasts$().subscribe(s=>{this.toasts=s}))}catch(s){console.log(s)}}ngOnDestroy(){try{this.subscriptions.forEach(i=>{i.unsubscribe()})}catch{}}ngAfterViewInit(){try{setTimeout(()=>{this.moveToastTagToEnd()},5e3)}catch{}}moveToastTagToEnd(){try{let i=this.elementRef?.nativeElement;document.body.appendChild(i)}catch(i){this.loggingService.catch("Error in ToastPopupComponent moveToastTagToEnd: ",i)}}removeToast(i){this.toastService.removeToast(i)}};e.\u0275fac=function(n){return new(n||e)(R(l),R(Cs),R(ze))},e.\u0275cmp=j({type:e,selectors:[["velt-toast-popup"]],standalone:!1,decls:2,vars:1,consts:[[1,"s-notification-container"],["class","s-notification",4,"ngFor","ngForOf"],[1,"s-notification"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"s-last-item","s-notification-close-btn",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z","fill","#E6E8EC"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM17.7071 9.70711C18.0976 9.31658 18.0976 8.68342 17.7071 8.29289C17.3166 7.90237 16.6834 7.90237 16.2929 8.29289L11 13.5858L8.70711 11.2929C8.31658 10.9024 7.68342 10.9024 7.29289 11.2929C6.90237 11.6834 6.90237 12.3166 7.29289 12.7071L10.2929 15.7071C10.6834 16.0976 11.3166 16.0976 11.7071 15.7071L17.7071 9.70711Z","fill","#0DCF82"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z","fill","#FF7162"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z","fill","#FF7162"]],template:function(n,o){n&1&&($(0,"div",0),ge(1,ic,7,6,"div",1),te()),n&2&&(K(),W("ngForOf",o.toasts))},dependencies:[Xt,$e,De],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}.s-notification-container[_ngcontent-%COMP%]{position:fixed!important;top:5%!important;left:50%!important;transform:translate(-50%)!important;display:flex!important;justify-content:center!important;align-items:center!important;z-index:var(--velt-toast-popup-z-index)!important;gap:calc((.5rem + 0px) * var(--velt-base-rem-unit))!important;flex-direction:column!important}.s-notification[_ngcontent-%COMP%]{display:flex!important;padding:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;gap:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;border-radius:calc((10rem + 0px) * var(--velt-base-rem-unit))!important;background:#23262f!important;color:#e6e8ec!important;width:calc((30rem + 0px) * var(--velt-base-rem-unit))!important;max-width:90vw!important;align-items:center!important}.s-last-item[_ngcontent-%COMP%]{margin-left:auto!important}.s-notification-close-btn[_ngcontent-%COMP%]{cursor:pointer!important}"],data:{animation:[Rr("fade",[hi("false",ye({opacity:0})),hi("true",ye({opacity:1})),ui("false => true",[ye({opacity:0}),di(1e3,ye({opacity:1}))]),ui("true => false",[di(1e3,ye({opacity:0}))])])]},changeDetection:0});let r=e;return r})();function sc(r,e){r&1&&X(0,"app-external-styles")}var sn=(()=>{let e=class e{set signInButton(i){this.translateService.setLanguage(i)}set translations(i){try{let n=i;if(typeof i=="string"&&(n=JSON.parse(i)),!n||typeof n!="object")return;this.translateService.setTranslations(n)}catch(n){this.loggingService.catch("Error in AppComponent set translations: ",n)}}set _autoTranslation(i){let n=i;typeof i=="string"&&(n=JSON.parse(i)),n?this.translateService.enableAutoTranslation():this.translateService.disableAutoTranslation()}onResize(i){this.setSnippylyViewportSize()}constructor(i,n,o,s,a,c,d,h,u,m,v){this.docService=i,this.domService=n,this.loggingService=o,this.viewportRuler=s,this.themeService=a,this.breakpointObserver=c,this.translateService=d,this.veltService=h,this.injector=u,this.configService=m,this.cd=v,this.snippyly=new er(this.injector),this.stylesEnabled=null,this.getSnippyly=new io,this.subscriptions=[],this.veltElement=!0,this.loggingService.log("%c[WB] Creating CLASS: AppComponent","color: blue;");try{this.subscriptions.push(this.docService.getDocumentPaths$().subscribe(()=>{this.domService.removeScrollableElementsIds()},f=>{this.loggingService.catch("Error in AppComponent getDocumentPaths subscription:",f)})),this.subscriptions.push(this.configService.getConfig$().pipe($n(f=>f!=null),Qn(1)).subscribe(f=>{try{this.stylesEnabled=f?.globalStyles!==!1,this.cd.detectChanges()}catch(y){this.loggingService.catch("Error in AppComponent config subscription:",y)}})),this.updateDeviceType(),this.updateDeviceOrientation(),this.setVeltVersion()}catch(f){this.loggingService.catch("Error in AppComponent constructor:",f)}}ngOnInit(){}ngAfterViewInit(){try{this.domService.setDeviceInfo(),this.setSnippylyViewportSize(),this.getSnippyly.emit(this.snippyly),this.setSnippylyRemBaseUnit(),this.subscriptions.push(this.domService.onWindowResize$().subscribe(()=>{this.setSnippylyRemBaseUnit()})),this.themeService.updateListenerOnConfigChange()}catch(i){this.loggingService.catch("Error in App After view init: ",i)}}setVeltVersion(){try{window?.Velt?.version&&localStorage.setItem(A.LOCAL_STORAGE.VELT_VERSION,window.Velt.version)}catch(i){this.loggingService.catch("Error in AppComponent setVeltVersion: ",i)}}updateDeviceType(){try{Object.values(Fo).forEach(n=>{Et.Breakpoints[n]=this.breakpointObserver.isMatched(n),this.subscriptions.push(this.breakpointObserver.observe(n).subscribe(o=>{Et.Breakpoints[n]=o.matches}))})}catch(i){this.loggingService.catch("Error in AppComponent updateDeviceType: ",i)}}updateDeviceOrientation(){try{Object.values($o).forEach(n=>{Et.Orientations[n]=window.matchMedia(n).matches,this.subscriptions.push(this.breakpointObserver.observe(n).subscribe(o=>{Et.Orientations[n]=o.matches}))})}catch(i){this.loggingService.catch("Error in AppComponent updateDeviceOrientation: ",i)}}observeHtmlTagChanges(){}setSnippylyRemBaseUnit(){try{let i=document.documentElement,n=window.getComputedStyle(i),o=16,s=+n.fontSize.replace("px",""),a=s?o/s:1;i.style.setProperty(A.VELT_BASE_REM_UNIT,a+"")}catch(i){this.loggingService.catch("Error in AppComponent setSnippylyRemBaseUnit: ",i)}}setSnippylyViewportSize(){try{setTimeout(()=>{let i=this.viewportRuler.getViewportSize(),n=document.documentElement;n.style.setProperty(A.VELT_VIEWPORT_WIDTH,i.width+"px"),n.style.setProperty(A.VELT_VIEWPORT_HEIGHT,i.height+"px")},100)}catch{}}ngOnDestroy(){try{this.subscriptions.forEach(i=>{i.unsubscribe()}),this.themeService.disablePrefersColorScheme()}catch{}}};e.\u0275fac=function(n){return new(n||e)(R(D),R(fe),R(l),R(ho),R(Ot),R(wo),R(Ye),R(Zi),R(be),R(B),R(Sr))},e.\u0275cmp=j({type:e,selectors:[["app-root"]],hostVars:1,hostBindings:function(n,o){n&1&&Ee("resize",function(a){return o.onResize(a)},to),n&2&&Ue("data-velt-element",o.veltElement)},inputs:{snippyly:"snippyly",signInButton:[0,"language","signInButton"],translations:"translations",_autoTranslation:[0,"autoTranslation","_autoTranslation"]},outputs:{getSnippyly:"getSnippyly"},standalone:!1,decls:3,vars:1,consts:[[4,"ngIf"]],template:function(n,o){n&1&&(ge(0,sc,1,0,"app-external-styles",0),X(1,"velt-toast-popup")(2,"snippyly-live-state-sync-overlay")),n&2&&W("ngIf",o.stylesEnabled===!0)},dependencies:[$e,Ta,Ia],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important} snippyly-highlight-user-text.velt-live-selection-on-text-default{background-color:var(--velt-selection-color, rgba(162, 89, 254, .5333333333))!important} .velt-live-selection-on-element-default{outline:2px solid var(--velt-selection-color, #a259fe)!important} .snippyly-highlight{outline:var(--legacy-velt-comment-pin-highlight, 2px dashed #a259fe)!important} [snippyly-highlight-preview=true]{outline:2px solid green!important} body.snippyly-add-comment-mode.show-pin-cursor:not[data-velt-element], body.snippyly-add-comment-mode.show-pin-cursor[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not[data-velt-element]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0iIzYyNURGNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9InBhdGgtMS1pbnNpZGUtMV8yMDMyXzIzNjgxIiBmaWxsPSJ3aGl0ZSI+CjxwYXRoIGQ9Ik0wLjM1Mjk0MSAxOEMwLjE1ODAxNyAxOCAtNi45MDcxNWUtMDkgMTcuODQyIC0xLjU0Mjc1ZS0wOCAxNy42NDcxTC0zLjkzNDAyZS0wNyA5Qy02LjEwNjczZS0wNyA0LjAyOTQ0IDQuMDI5NDQgLTEuNzYxMzJlLTA3IDkgLTMuOTM0MDJlLTA3Vi0zLjkzNDAyZS0wN0MxMy45NzA2IC02LjEwNjczZS0wNyAxOCA0LjAyOTQ0IDE4IDlWOUMxOCAxMy45NzA2IDEzLjk3MDYgMTggOSAxOEwwLjM1Mjk0MSAxOFoiLz4KPC9tYXNrPgo8cGF0aCBkPSJNMC4zNTI5NDEgMThDMC4xNTgwMTcgMTggLTYuOTA3MTVlLTA5IDE3Ljg0MiAtMS41NDI3NWUtMDggMTcuNjQ3MUwtMy45MzQwMmUtMDcgOUMtNi4xMDY3M2UtMDcgNC4wMjk0NCA0LjAyOTQ0IC0xLjc2MTMyZS0wNyA5IC0zLjkzNDAyZS0wN1YtMy45MzQwMmUtMDdDMTMuOTcwNiAtNi4xMDY3M2UtMDcgMTggNC4wMjk0NCAxOCA5VjlDMTggMTMuOTcwNiAxMy45NzA2IDE4IDkgMThMMC4zNTI5NDEgMThaIiBmaWxsPSIjMTQxNDE2Ii8+CjxwYXRoIGQ9Ik0wLjM1Mjk0MSAxOEMwLjE1ODAxNyAxOCAtNi45MDcxNWUtMDkgMTcuODQyIC0xLjU0Mjc1ZS0wOCAxNy42NDcxTC0zLjkzNDAyZS0wNyA5Qy02LjEwNjczZS0wNyA0LjAyOTQ0IDQuMDI5NDQgLTEuNzYxMzJlLTA3IDkgLTMuOTM0MDJlLTA3Vi0zLjkzNDAyZS0wN0MxMy45NzA2IC02LjEwNjczZS0wNyAxOCA0LjAyOTQ0IDE4IDlWOUMxOCAxMy45NzA2IDEzLjk3MDYgMTggOSAxOEwwLjM1Mjk0MSAxOFoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMjAzMl8yMzY4MSkiLz4KPC9zdmc+Cg==) 0 31,auto} body.snippyly-add-tag-mode.show-pin-cursor:not[data-velt-element], body.snippyly-add-tag-mode.show-pin-cursor[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not[data-velt-element]{cursor:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczpieD0iaHR0cHM6Ly9ib3h5LXN2Zy5jb20iPgogIDxlbGxpcHNlIHN0eWxlPSJzdHJva2U6IHJnYigwLCAwLCAwKTsgZmlsbDogcmdiKDE2MiwgODksIDI1NCk7IHBhaW50LW9yZGVyOiBmaWxsOyBzdHJva2Utd2lkdGg6IDBweDsiIGN4PSIxNiIgY3k9IjE2IiByeD0iMTYiIHJ5PSIxNiIvPgogIDxwYXRoIGQ9Ik0gOS4zMzMgMjIgQyA5LjMzMyAyMiA4IDIyIDggMjAuNjY3IEMgOCAxOS4zMzMgOS4zMzMgMTUuMzMzIDE2IDE1LjMzMyBDIDIyLjY2NyAxNS4zMzMgMjQgMTkuMzMzIDI0IDIwLjY2NyBDIDI0IDIyIDIyLjY2NyAyMiAyMi42NjcgMjIgTCA5LjMzMyAyMiBaIE0gMTYgMTQgQyAxOS4wNzkgMTQgMjEuMDA0IDEwLjY2NyAxOS40NjQgOCBDIDE4Ljc1IDYuNzYyIDE3LjQyOSA2IDE2IDYgQyAxMi45MjEgNiAxMC45OTYgOS4zMzMgMTIuNTM2IDEyIEMgMTMuMjUgMTMuMjM3IDE0LjU3MSAxNCAxNiAxNCBaIiBzdHlsZT0iZmlsbDogcmdiKDI1NSwgMjU1LCAyNTUpOyIgYng6b3JpZ2luPSIwLjUgMC41Ii8+Cjwvc3ZnPg==) 16 16,auto!important} body.snippyly-add-arrow-mode.show-pin-cursor:not[data-velt-element], body.snippyly-add-arrow-mode.show-pin-cursor[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not[data-velt-element]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNiAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44MDU0IDEwLjAyMDdDMTQuNTQxMiA5Ljk5MTMxIDE1LjExMzggOS4zNzA5OCAxNS4wODQzIDguNjM1MThMMTQuODMwNiAyLjI4OTM5QzE0LjgwMjggMS41OTQ4NiAxNC4yNDYxIDEuMDM4MTkgMTMuNTUxNiAxLjAxMDQxTDcuMjA1NzEgMC43NTY1MzdDNi40Njk5MiAwLjcyNzEwMiA1Ljg0OTU4IDEuMjk5NzIgNS44MjAxNSAyLjAzNTUxQzUuNzkwNzEgMi43NzEzIDYuMzYzMzMgMy4zOTE2NCA3LjA5OTEyIDMuNDIxMDdMMTAuNDAyMSAzLjU1MzIxTDEuMjQxNzcgMTIuNzEzNkMwLjcyMTA2NyAxMy4yMzQzIDAuNzIxMDY3IDE0LjA3ODUgMS4yNDE3NyAxNC41OTkyQzEuNzYyNDYgMTUuMTE5OSAyLjYwNjY4IDE1LjExOTkgMy4xMjczOCAxNC41OTkyTDEyLjI4NzcgNS40Mzg4NkwxMi40MTk4IDguNzQxNzVDMTIuNDQ5MiA5LjQ3NzU0IDEzLjA2OTYgMTAuMDUwMiAxMy44MDU0IDEwLjAyMDdaIiBmaWxsPSIjOEY5NUIyIi8+Cjwvc3ZnPgo=) 15 0,auto!important} .selection-element-portal{display:flex!important} .snippyly-user-marker{cursor:default;display:inline;position:relative} .snippyly-user-marker:after{color:#fff;content:attr(data-name);display:none;font-style:normal;font-weight:400;left:0;line-height:1;opacity:0;position:absolute;top:-30px;transition:opacity .2s linear,transform .3s ease-in-out;white-space:nowrap;z-index:99999;padding:4px!important;font-size:calc((.8rem + 0px) * var(--velt-base-rem-unit));border-radius:8px;font-family:var(--velt-default-font-family, unset);transform:translate(-50%)} .snippyly-user-marker:hover:after, .snippyly-user-marker.active:after{animation:all 1s ease-in-out;display:block;opacity:1} .snippyly-user-marker .snippyly-user-marker-line{bottom:0;height:100%;position:absolute;width:0} .snippyly-user-marker .snippyly-user-marker-line .snippyly-user-marker-dot{border-radius:50%;cursor:default;display:block;height:4px;left:50%;position:absolute;top:-3px;transform:translate(-50%,-50%);width:4px} .snippyly-user-marker:after{background-color:var(--velt-selection-marker-color)!important} .snippyly-user-marker .snippyly-user-marker-line, .snippyly-user-marker .snippyly-user-marker-dot{border:1px solid var(--velt-selection-marker-color)!important;background-color:var(--velt-selection-marker-color)!important} .v-device-info-tooltip-container{display:flex;padding:calc((.25rem + 0px) * var(--velt-base-rem-unit)) calc((.5rem + 0px) * var(--velt-base-rem-unit));margin:calc((.5rem + 0px) * var(--velt-base-rem-unit));align-items:flex-start;flex-direction:column;gap:calc((.2rem + 0px) * var(--velt-base-rem-unit));border-radius:calc((.5rem + 0px) * var(--velt-base-rem-unit));background:var(--neutrals-1, #141416);color:var(--neutrals-10, #FFF);font-size:calc((.75rem + 0px) * var(--velt-base-rem-unit));font-style:normal;font-weight:400;line-height:normal} .v-device-info-tooltip-container.dark{background:var(--neutrals-3, #353945);color:var(--neutrals-10, #FFF)} .huddle-all-menu-panel{box-shadow:0 calc((1rem + 0px) * var(--velt-base-rem-unit)) calc((3rem + 0px) * var(--velt-base-rem-unit)) #0000002d!important;background-color:#fff!important;border-radius:8px;color:#000} .huddle-all-menu-panel .mat-mdc-menu-item{background-color:#fff!important;padding:0 calc((1rem + 0px) * var(--velt-base-rem-unit))!important;height:40px!important;min-height:40px!important;width:100%!important;font-size:calc((.9rem + 0px) * var(--velt-base-rem-unit))!important;display:flex!important;gap:8px!important;align-items:center!important;border:0!important;font-weight:unset!important;text-transform:unset!important;font-family:var(--velt-default-font-family, unset)!important} .huddle-all-menu-panel .mat-mdc-menu-item .mat-mdc-menu-item-text{font-size:calc((.9rem + 0px) * var(--velt-base-rem-unit))!important;display:flex!important;gap:8px!important;align-items:center!important;border:0!important;font-weight:unset!important;text-transform:unset!important;font-family:var(--velt-default-font-family, unset)!important} .huddle-all-menu-panel .mat-mdc-menu-item:hover{background-color:#f1f1f1!important} .huddle-all-menu-panel .mat-mdc-menu-item:disabled{color:#c4c4c4!important} .snippyly-huddle-menu-panel-overlay-panel{z-index:2147483617!important} .snippyly-huddle-banner-panel{top:0!important;left:0!important} .snippyly-huddle-banner-panel .huddle-banner{border:1px solid rgba(26,28,30,.1);box-shadow:0 2px 12px #001c3b1f;border-radius:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;position:fixed;background:#fff;z-index:2;top:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;right:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;color:#000} .snippyly-huddle-banner-panel .huddle-banner>div{display:flex} .snippyly-huddle-banner-panel .huddle-banner>div>*{padding:calc((.75rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .title{font-weight:600;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))!important;line-height:calc((1.5rem + 0px) * var(--velt-base-rem-unit))!important;margin:0!important} .snippyly-huddle-banner-panel .huddle-banner>div .subtitle{font-weight:400;font-size:14px!important;line-height:21px!important;margin:0} .snippyly-huddle-banner-panel .huddle-banner>div .action-btn-container{margin:calc((.75rem + 0px) * var(--velt-base-rem-unit)) 0 calc((.25rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .action-btn-container button{cursor:pointer} .snippyly-huddle-banner-panel .huddle-banner>div .join-btn{padding:calc((.5rem + 0px) * var(--velt-base-rem-unit)) calc((.75rem + 0px) * var(--velt-base-rem-unit))!important;background:#625df5;border-radius:90px!important;border:0;margin-right:calc((.5rem + 0px) * var(--velt-base-rem-unit))!important;color:#fff!important;font-weight:700;transition:.2s;font-size:calc((.8rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .join-btn:hover{background:#4742dc} .snippyly-huddle-banner-panel .huddle-banner>div .cancel-btn{color:#777e91;background:transparent;border:0;font-weight:700;font-size:calc((.8rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-huddle-banner-panel .huddle-banner>div .close-btn{cursor:pointer} .velt-recorder-all-tool--menu-panel{overflow:unset!important} .velt-recorder-all-tool--menu-panel .mat-mdc-menu-content{padding:0!important} .v-view-analytics-overlay-panel{z-index:2147483617!important}"],changeDetection:0});let r=e;return r})();var ac=["menuRef"],lc=["menuTrigger"],cc=["*"];function dc(r,e){r&1&&(Ht(0),X(1,"button",5),$t())}var an=(()=>{let e=class e{constructor(i){this.loggingService=i,this.menuItems=[],this.veltElement=!0}ngOnInit(){}ngAfterViewInit(){try{let i=this.menuTrigger?.nativeElement?.querySelector("[menu-items]");if(i){i.style.display="none";for(let n=0;n<i.children.length;n++){let o=i.children[n];this.menuItems.push(o)}setTimeout(()=>{this.addMenuOptions()},100)}}catch(i){this.loggingService.catch("Error in MenuComponent afterViewInit: ",i)}}ngAfterContentInit(){}addMenuOptions(){try{this.menuRef&&this.menuRef._allItems.forEach((i,n)=>{i._getHostElement()?.appendChild(this.menuItems[n])})}catch(i){this.loggingService.catch("Error in MenuComponent addMenuOptions: ",i)}}};e.\u0275fac=function(n){return new(n||e)(R(l))},e.\u0275cmp=j({type:e,selectors:[["snippyly-menu"]],viewQuery:function(n,o){if(n&1&&(Qt(ac,5),Qt(lc,5)),n&2){let s;Yt(s=Kt())&&(o.menuRef=s.first),Yt(s=Kt())&&(o.menuTrigger=s.first)}},hostVars:1,hostBindings:function(n,o){n&2&&Ue("data-velt-element",o.veltElement)},standalone:!1,ngContentSelectors:cc,decls:7,vars:4,consts:[["menuTrigger","","menuTriggerRef","matMenuTrigger"],["menuRef","matMenu"],[3,"matMenuTriggerFor"],[1,"velt-menu","snippyly-menu-panel"],[4,"ngFor","ngForOf"],["mat-menu-item",""]],template:function(n,o){if(n&1&&(Ve(),$(0,"div",2,0),Ge(3),te(),$(4,"mat-menu",3,1),ge(6,dc,2,0,"ng-container",4),te()),n&2){let s=yr(2),a=yr(5);yt("active",s==null?null:s.menuOpen),W("matMenuTriggerFor",a),K(6),W("ngForOf",o.menuItems)}},dependencies:[Xt,Go,Vo,jo],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}[_nghost-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box;-webkit-tap-highlight-color:rgba(255,255,255,0)!important;outline:none!important;margin:0!important;padding:0!important;height:unset;width:unset;text-align:left!important;line-height:1.5!important;color:#000!important;font-size:calc((1rem + 0px) * var(--velt-base-rem-unit))}[_nghost-%COMP%] *[_ngcontent-%COMP%]:empty{display:revert!important} .snippyly-menu-panel{box-shadow:0 calc((1rem + 0px) * var(--velt-base-rem-unit)) calc((3rem + 0px) * var(--velt-base-rem-unit)) #0000002d!important;background-color:#fff!important;border-radius:8px!important} .snippyly-menu-panel button{background-color:#fff;padding:0 calc((1rem + 0px) * var(--velt-base-rem-unit))!important;height:40px!important;width:100%!important;font-size:calc((.9rem + 0px) * var(--velt-base-rem-unit))!important} .snippyly-menu-panel button:hover{background-color:#f1f1f1}"],changeDetection:0});let r=e;return r})();var Ra=(()=>{let e=class e{constructor(i,n){this.injector=i,this.configService=n,this.suppressAll=!1,this.permissionDeniedErrorCount=0;try{this.configService.getDisableLogsConfig$().subscribe(o=>{this.suppressAll=o?.suppressAll??!1}),window.addEventListener("error",o=>{try{o?.filename?.includes("velt.js")&&(this.handleError(o.error),o.preventDefault())}catch{}}),window.addEventListener("unhandledrejection",o=>{try{(o?.reason?.stack||String(o?.reason||"")).includes("velt.js")&&this.suppressAll&&(this.handleError(o.reason),o.preventDefault())}catch{}})}catch{}}handleError(i){try{if(i?.message?.includes("ExpressionChangedAfterItHasBeenCheckedError"))return;let n=i?.message||"",o=i?.code||"",s=!1;if(typeof o=="string"&&o?.toLowerCase()?.includes("permission_denied")?(s=!0,this.permissionDeniedErrorCount++):typeof n=="string"&&n?.toLowerCase()?.includes("permission_denied")&&(s=!0,this.permissionDeniedErrorCount++),s&&this.permissionDeniedErrorCount>2)return;let a=this.injector.get(St);a&&a.trackEvent(g.Events.Core.SDK_UNCAUGHT_ERROR,{message:i?.message?i?.message:i,clientUserId:a?.user?.userId,snippylyUserId:a?.user?.userSnippylyId,source:"sdk"})}catch{}}};e.\u0275fac=function(n){return new(n||e)(U(be),U(B))},e.\u0275prov=pe({token:e,factory:e.\u0275fac});let r=e;return r})();var hc=["*"],ka=(()=>{let e=class e{constructor(i,n,o,s){this.el=i,this.domService=n,this.loggingService=o,this.wireframeService=s;try{this.loggingService.log("%c[WB] Creating CLASS: WireframeComponent","color: blue;")}catch(a){this.loggingService.catch("Error in WireframeComponent constructor: ",a)}}ngAfterContentInit(){try{this.loggingService.log("%c[WB] Calling WireframeComponent FUNCTION: ngAfterContentInit","color: green;");let i=this.el.nativeElement.querySelectorAll(":scope > *"),n=new Map;i.forEach(o=>{if(o.nodeType===1){let s=o;if(s&&s?.tagName?.toLowerCase()?.startsWith("velt-")){let c=s.tagName.toLowerCase();if(c==="velt-comment-dialog-composer-action-button-wireframe"||c==="velt-comment-dialog-composer-format-toolbar-button-wireframe"){let u=s.getAttribute("type");u&&(c+=`--${u}`)}let d=s.getAttribute("variant");d&&(c+=`---${d}`);let h=this.domService.deepCloneElement(s);this.domService.setRandomNumberToElementRecursive(h),n.set(c,h)}}}),this.wireframeService.setWireframeMap(n)}catch(i){this.loggingService.catch("Error in WireframeComponent ngAfterContentInit: ",i)}}};e.\u0275fac=function(n){return new(n||e)(R(ze),R(fe),R(l),R(rs))},e.\u0275cmp=j({type:e,selectors:[["app-wireframe"]],standalone:!1,ngContentSelectors:hc,decls:1,vars:0,template:function(n,o){n&1&&(Ve(),Ge(0))},encapsulation:2,changeDetection:0});let r=e;return r})();var Da=(()=>{let e=class e{set _hotkey(i){try{this.hotkey=i,this.setListData()}catch{}}set _listData(i){try{this.listData=uc(i),this.setListData()}catch{}}constructor(i,n){this.autocompleteService=i,this.loggingService=n,this.hotkey="",this.listData=[];try{this.loggingService.log("%c[WB] Creating COMPONENT AutocompleteComponent","color: blue;")}catch(o){this.loggingService.catch("Error in AutocompleteComponent constructor: ",o)}}setListData(){try{this.loggingService.log("%c[WB] Calling AutocompleteComponent FUNCTION: setListData","color: green;"),mc(this.hotkey,this.listData)&&this.autocompleteService.create({hotkey:this.hotkey,data:this.listData,type:"custom"})}catch(i){this.loggingService.catch("Error in AutocompleteComponent setListData: ",i)}}ngOnDestroy(){try{this.loggingService.log("%c[WB] Calling AutocompleteComponent FUNCTION: OnDestroy","color: green;"),this.hotkey&&this.autocompleteService.remove(this.hotkey)}catch(i){this.loggingService.catch("Error in AutocompleteComponent OnDestroy: ",i)}}};e.\u0275fac=function(n){return new(n||e)(R(Qe),R(l))},e.\u0275cmp=j({type:e,selectors:[["velt-autocomplete-internal"]],inputs:{_hotkey:[0,"hotkey","_hotkey"],_listData:[0,"listData","_listData"]},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let r=e;return r})();function uc(r){return typeof r=="string"?JSON.parse(r):r}function mc(r,e){return!!(r&&e?.length)}var fc=(r,e)=>({componentConfigSignal:r,parentLocalUIState:e}),vc=(r,e)=>({condition:r,data:e}),yc=()=>({"line-height":"20px"});function _c(r,e){if(r&1){let t=st();$(0,"mark",7),Ee("click",function(){nt(t);let n=q(5);return ot(n.onClick())}),je(1),We(2,"translate"),te()}if(r&2){let t=q(4),i=q();yt("velt-autocomplete--contact-chip-current-user",(t==null||t.user==null?null:t.user.userId)&&(t==null||t.contact==null?null:t.contact.userId)===(t==null||t.user==null?null:t.user.userId))("current-user-chip",(t==null||t.user==null?null:t.user.userId)&&(t==null||t.contact==null?null:t.contact.userId)===(t==null||t.user==null?null:t.user.userId)),K(),_t(" ",He(2,5,(t==null||t.contact==null?null:t.contact.name)||(t==null||t.contact==null?null:t.contact.email)||i.email))}}function Cc(r,e){if(r&1){let t=st();$(0,"mark",8),Ee("click",function(){nt(t);let n=q(5);return ot(n.onClick())}),je(1),We(2,"translate"),te()}if(r&2){let t=q(4);K(),_t(" ",He(2,1,(t==null||t.group==null||t.group.group==null||t.group.group.metadata==null?null:t.group.group.metadata.groupName)||(t==null||t.group==null?null:t.group.text)))}}function bc(r,e){if(r&1&&(X(0,"div",10),We(1,"safeSvg")),r&2){let t=q(5);W("innerHtml",He(1,1,t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null?null:t.custom.custom.icon.svg),Zn)}}function Ec(r,e){if(r&1&&X(0,"img",11),r&2){let t=q(5);W("src",t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null?null:t.custom.custom.icon.url,eo)}}function Sc(r,e){if(r&1){let t=st();$(0,"div",9),Ee("click",function(){nt(t);let n=q(5);return ot(n.onClick())}),qe(1,bc,2,3,"div",10),qe(2,Ec,1,1,"img",11),$(3,"span"),je(4),We(5,"translate"),te()()}if(r&2){let t=q(4);K(),Be(!(t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null)&&t.custom.custom.icon.svg?1:-1),K(),Be(!(t==null||t.custom==null||t.custom.custom==null||t.custom.custom.icon==null)&&t.custom.custom.icon.url?2:-1),K(2),_r(He(5,3,t==null||t.custom==null||t.custom.custom==null?null:t.custom.custom.name))}}function Tc(r,e){if(r&1&&qe(0,_c,3,7,"mark",4)(1,Cc,3,3,"mark",5)(2,Sc,6,5,"div",6),r&2){let t=q(4);Be(t.type==="contact"?0:t.type==="group"?1:t.type==="custom"?2:-1)}}function Oc(r,e){if(r&1&&X(0,"velt-autocomplete-chip-tooltip-internal",12),r&2){let t=q(3),i=q();W("componentConfigSignal",i.componentConfigSignal)("shadowDom",!!(t!=null&&t.shadowDom))}}function Ic(r,e){r&1&&($(0,"app-overlay-tooltip"),ge(1,Tc,3,1,"ng-template",null,0,Er)(3,Oc,1,2,"ng-template",null,1,Er),te())}function Ac(r,e){r&1&&X(0,"velt-skeleton-loader-internal",3),r&2&&W("borderRadius","4px")("customStyles",no(2,yc))}function Rc(r,e){if(r&1&&(Ht(0),qe(1,Ic,5,0,"app-overlay-tooltip")(2,Ac,1,3,"velt-skeleton-loader-internal",3),$t()),r&2){let t=q(2);K(),Be(t.type!=="loading"?1:2)}}function kc(r,e){if(r&1&&ge(0,Rc,3,1,"ng-container",2),r&2){let t=q();W("veltIf",br(4,vc,t.conditionSignal(),br(1,fc,t.componentConfigSignal,t.localUIStateSignal)))}}var xa=(()=>{let e=class e extends os{set _custom(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _group(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _contactData(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _encodedContact(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _encodedGroup(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set _encodedCustom(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}set userObject(i){this.resolveUserObjectToContact(i,n=>{this.componentConfigSignal.update(o=>G(k({},o),{type:"contact",contact:n}))})}set userId(i){this.resolveUserIdToContact(i,n=>{this.componentConfigSignal.update(o=>G(k({},o),{type:"contact",contact:n}))})}set _shadowDom(i){try{typeof i=="string"&&(i=JSON.parse(i))}catch{}}constructor(){super(),this.componentId="velt-autocomplete-chip",this.type="contact",this.componentConfigSignal=Jn({type:"contact"}),this.subscriptions=[],this.authService=Fe(ie),this.autocompleteService=Fe(Qe),this.contactService=Fe(J);try{this.loggingService.log("%c[WB] Creating COMPONENT AutocompleteChipComponent","color: blue;"),this.subscriptions.push(this.commentService.getDialogShadowDOM$().subscribe(i=>{this.componentConfigSignal.update(n=>(n=G(k({},n),{shadowDom:i}),n))}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent constructor: ",i)}}ngOnInit(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: ngOnInit","color: green;"),super.ngOnInit(),setTimeout(()=>{this.componentConfigSignal().type==="contact"&&(this.email||this.componentConfigSignal().contactData?.contact)&&(this.getCurrentUser(),this.email?(this.getContacts(),this.getUserByEmail(this.email)):this.componentConfigSignal().contactData?.contact&&this.componentConfigSignal.update(i=>(i=G(k({},i),{contact:i.contactData?.contact}),i))),this.componentConfigSignal().type==="group"&&this.getOrganizationGroups()},0)}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent ngOnInit: ",i)}}ngOnChanges(i){try{i&&setTimeout(()=>{Object.keys(i).forEach(n=>{n==="_custom"?this.componentConfigSignal.update(o=>{let s=i[n].currentValue;if(typeof s=="string")try{s=JSON.parse(s)}catch{if(i?._encodedCustom?.currentValue)try{s=JSON.parse(atob(i?._encodedCustom?.currentValue))}catch{}}return o=G(k({},o),{custom:s}),o}):n==="_group"?this.componentConfigSignal.update(o=>{let s=i[n].currentValue;if(typeof s=="string")try{s=JSON.parse(s)}catch{if(i?._encodedGroup?.currentValue)try{s=JSON.parse(atob(i?._encodedGroup?.currentValue))}catch{}}return o=G(k({},o),{group:s}),o}):n==="_contactData"?this.componentConfigSignal.update(o=>{let s=i[n].currentValue;if(typeof s=="string")try{s=JSON.parse(s)}catch{if(i?._encodedContact?.currentValue)try{s=JSON.parse(atob(i?._encodedContact?.currentValue))}catch{}}return o=G(k({},o),{contactData:s}),o}):n==="_shadowDom"?this.componentConfigSignal.update(o=>(o=k({},o),o.shadowDom=typeof i[n].currentValue=="string"?JSON.parse(i[n].currentValue):i[n].currentValue,o)):this.componentConfigSignal.update(o=>(o=G(k({},o),{[n]:i[n].currentValue}),o))})},0)}catch(n){this.loggingService.catch("Error in AutocompleteChipComponent ngOnChanges: ",n)}}getCurrentUser(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getCurrentUser","color: green;"),this.subscriptions.push(this.authService.getUser$().subscribe(i=>{this.componentConfigSignal.update(n=>(n=G(k({},n),{user:i}),n))}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent getCurrentUser: ",i)}}getContacts(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getContacts","color: green;"),this.subscriptions.push(this.contactService.getUserContacts$().subscribe(i=>{let n=i?.find(o=>o.email===this.email);n&&this.componentConfigSignal.update(o=>(o=G(k({},o),{contact:n}),o))}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent getContacts: ",i)}}getUserByEmail(i){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getUserByEmail","color: green;"),this.subscriptions.push(this.contactService.getUserByEmail$(i).subscribe(n=>{n&&this.componentConfigSignal.update(o=>(o=G(k({},o),{contact:n}),o))}))}catch(n){this.loggingService.catch("Error in AutocompleteChipComponent getUserByEmail: ",n)}}getOrganizationGroups(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: getOrganizationGroups","color: green;"),this.subscriptions.push(this.contactService.getOrganizationGroups$().subscribe(i=>{if(i){let n=i.find(o=>o?.metadata?.groupId===this.componentConfigSignal().group?.groupId);n&&this.componentConfigSignal().group&&this.componentConfigSignal.update(o=>(o=G(k({},o),{group:G(k({},o.group),{group:n})}),o))}}))}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent getOrganizationGroups: ",i)}}onClick(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: onClick","color: green;");let i;this.componentConfigSignal().custom?.custom?i=G(k({},this.componentConfigSignal().custom?.custom),{type:"custom"}):this.componentConfigSignal().contact?(i={id:this.componentConfigSignal().contact?.userId,name:this.componentConfigSignal().contact?.name,description:this.componentConfigSignal().contact?.email,type:"contact"},this.componentConfigSignal().contact?.photoUrl&&(i.icon={url:this.componentConfigSignal().contact?.photoUrl})):this.componentConfigSignal().type==="contact"&&(i={id:void 0,name:void 0,description:this.email,type:"contact"}),i&&this.autocompleteService.setOnAutocompleteChipClick(i)}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent onClick: ",i)}}unsubscribe(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: unsubscribe","color: green;"),this._userIdSub?.unsubscribe(),this.subscriptions.forEach(i=>i?.unsubscribe())}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent unsubscribe: ",i)}}ngOnDestroy(){try{this.loggingService.log("%c[WB] Calling AutocompleteChipComponent FUNCTION: OnDestroy","color: green;"),this.unsubscribe(),super.ngOnDestroy()}catch(i){this.loggingService.catch("Error in AutocompleteChipComponent OnDestroy: ",i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=j({type:e,selectors:[["velt-autocomplete-chip-internal"]],inputs:{type:"type",email:"email",_custom:[0,"custom","_custom"],_group:[0,"group","_group"],_contactData:[0,"contact","_contactData"],_encodedContact:[0,"encodedContact","_encodedContact"],_encodedGroup:[0,"encodedGroup","_encodedGroup"],_encodedCustom:[0,"encodedCustom","_encodedCustom"],userObject:"userObject",userId:"userId",_shadowDom:[0,"shadowDom","_shadowDom"]},standalone:!1,features:[vr,Wt],decls:1,vars:1,consts:[["triggerTemplate",""],["tooltipTemplate",""],[4,"veltIf"],["width","64px",3,"borderRadius","customStyles"],[1,"velt-autocomplete--contact-chip",3,"velt-autocomplete--contact-chip-current-user","current-user-chip"],[1,"velt-autocomplete--group-chip"],[1,"custom-chip"],[1,"velt-autocomplete--contact-chip",3,"click"],[1,"velt-autocomplete--group-chip",3,"click"],[1,"custom-chip",3,"click"],[1,"custom-chip-icon","custom-chip-icon-svg",3,"innerHtml"],[1,"custom-chip-icon","custom-chip-icon-img",3,"src"],[3,"componentConfigSignal","shadowDom"]],template:function(n,o){if(n&1&&qe(0,kc,1,7,"ng-container"),n&2){let s;Be((s=o.componentConfigSignal())?0:-1,s)}},dependencies:[vs,Se,At,It,De,ai],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}body.velt-pin-dragging[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{pointer-events:none!important}[_nghost-%COMP%]{--velt-green: var(--velt-light-mode-green);--velt-magenta: var(--velt-light-mode-magenta);--velt-amber: var(--velt-light-mode-amber);--velt-purple: var(--velt-light-mode-purple);--velt-cyan: var(--velt-light-mode-cyan);--velt-orange: var(--velt-light-mode-orange);--velt-black: var(--velt-light-mode-black);--velt-white: var(--velt-light-mode-white);--velt-gray: var(--velt-light-mode-gray);--velt-error: var(--velt-light-mode-error);--velt-error-hover: var(--velt-light-mode-error-hover);--velt-error-foreground: var(--velt-light-mode-error-foreground);--velt-error-light: var(--velt-light-mode-error-light);--velt-error-transparent: var(--velt-light-mode-error-transparent);--velt-warning: var(--velt-light-mode-warning);--velt-warning-hover: var(--velt-light-mode-warning-hover);--velt-warning-foreground: var(--velt-light-mode-warning-foreground);--velt-warning-light: var(--velt-light-mode-warning-light);--velt-warning-transparent: var(--velt-light-mode-warning-transparent);--velt-agent-accent: #4495ff;--velt-agent-accent-transparent: rgba(68, 149, 255, .2);--velt-success: var(--velt-light-mode-success);--velt-success-hover: var(--velt-light-mode-success-hover);--velt-success-foreground: var(--velt-light-mode-success-foreground);--velt-success-light: var(--velt-light-mode-success-light);--velt-success-transparent: var(--velt-light-mode-success-transparent);--velt-accent: var(--velt-light-mode-accent);--velt-accent-text: var(--velt-light-mode-accent-text);--velt-accent-hover: var(--velt-light-mode-accent-hover);--velt-accent-foreground: var(--velt-light-mode-accent-foreground);--velt-accent-light: var(--velt-light-mode-accent-light);--velt-accent-transparent: var(--velt-light-mode-accent-transparent);--velt-text-0: var(--velt-light-mode-text-0);--velt-text-1: var(--velt-light-mode-text-1);--velt-text-2: var(--velt-light-mode-text-2);--velt-text-3: var(--velt-light-mode-text-3);--velt-text-4: var(--velt-light-mode-text-4);--velt-text-5: var(--velt-light-mode-text-5);--velt-text-6: var(--velt-light-mode-text-6);--velt-text-7: var(--velt-light-mode-text-7);--velt-text-8: var(--velt-light-mode-text-8);--velt-text-9: var(--velt-light-mode-text-9);--velt-text-10: var(--velt-light-mode-text-10);--velt-text-11: var(--velt-light-mode-text-11);--velt-text-12: var(--velt-light-mode-text-12);--velt-background-0: var(--velt-light-mode-background-0);--velt-background-1: var(--velt-light-mode-background-1);--velt-background-2: var(--velt-light-mode-background-2);--velt-background-3: var(--velt-light-mode-background-3);--velt-background-4: var(--velt-light-mode-background-4);--velt-background-5: var(--velt-light-mode-background-5);--velt-background-6: var(--velt-light-mode-background-6);--velt-background-7: var(--velt-light-mode-background-7);--velt-background-8: var(--velt-light-mode-background-8);--velt-background-9: var(--velt-light-mode-background-9);--velt-background-10: var(--velt-light-mode-background-10);--velt-border-0: var(--velt-light-mode-border-0);--velt-border-1: var(--velt-light-mode-border-1);--velt-border-2: var(--velt-light-mode-border-2);--velt-border-3: var(--velt-light-mode-border-3);--velt-border-4: var(--velt-light-mode-border-4);--velt-border-5: var(--velt-light-mode-border-5);--velt-border-6: var(--velt-light-mode-border-6);--velt-border-7: var(--velt-light-mode-border-7);--velt-border-8: var(--velt-light-mode-border-8);--velt-border-9: var(--velt-light-mode-border-9);--velt-border-10: var(--velt-light-mode-border-10);--velt-background-transparent: var(--velt-light-mode-background-transparent);--velt-border-transparent: var(--velt-light-mode-border-transparent);--velt-animation-transparent: var(--velt-light-mode-animation-transparent);display:inline-flex;line-height:32px}[_nghost-%COMP%]:empty{display:none}[dark][_nghost-%COMP%]{--velt-green: var(--velt-dark-mode-green);--velt-magenta: var(--velt-dark-mode-magenta);--velt-amber: var(--velt-dark-mode-amber);--velt-purple: var(--velt-dark-mode-purple);--velt-cyan: var(--velt-dark-mode-cyan);--velt-orange: var(--velt-dark-mode-orange);--velt-black: var(--velt-dark-mode-black);--velt-white: var(--velt-dark-mode-white);--velt-gray: var(--velt-dark-mode-gray);--velt-error: var(--velt-dark-mode-error);--velt-error-hover: var(--velt-dark-mode-error-hover);--velt-error-foreground: var(--velt-dark-mode-error-foreground);--velt-error-light: var(--velt-dark-mode-error-light);--velt-error-transparent: var(--velt-dark-mode-error-transparent);--velt-warning: var(--velt-dark-mode-warning);--velt-warning-hover: var(--velt-dark-mode-warning-hover);--velt-warning-foreground: var(--velt-dark-mode-warning-foreground);--velt-warning-light: var(--velt-dark-mode-warning-light);--velt-warning-transparent: var(--velt-dark-mode-warning-transparent);--velt-agent-accent: #4495ff;--velt-agent-accent-transparent: rgba(68, 149, 255, .2);--velt-success: var(--velt-dark-mode-success);--velt-success-hover: var(--velt-dark-mode-success-hover);--velt-success-foreground: var(--velt-dark-mode-success-foreground);--velt-success-light: var(--velt-dark-mode-success-light);--velt-success-transparent: var(--velt-dark-mode-success-transparent);--velt-accent: var(--velt-dark-mode-accent);--velt-accent-text: var(--velt-dark-mode-accent-text);--velt-accent-hover: var(--velt-dark-mode-accent-hover);--velt-accent-foreground: var(--velt-dark-mode-accent-foreground);--velt-accent-light: var(--velt-dark-mode-accent-light);--velt-accent-transparent: var(--velt-dark-mode-accent-transparent);--velt-text-0: var(--velt-dark-mode-text-0);--velt-text-1: var(--velt-dark-mode-text-1);--velt-text-2: var(--velt-dark-mode-text-2);--velt-text-3: var(--velt-dark-mode-text-3);--velt-text-4: var(--velt-dark-mode-text-4);--velt-text-5: var(--velt-dark-mode-text-5);--velt-text-6: var(--velt-dark-mode-text-6);--velt-text-7: var(--velt-dark-mode-text-7);--velt-text-8: var(--velt-dark-mode-text-8);--velt-text-9: var(--velt-dark-mode-text-9);--velt-text-10: var(--velt-dark-mode-text-10);--velt-text-11: var(--velt-dark-mode-text-11);--velt-text-12: var(--velt-dark-mode-text-12);--velt-background-0: var(--velt-dark-mode-background-0);--velt-background-1: var(--velt-dark-mode-background-1);--velt-background-2: var(--velt-dark-mode-background-2);--velt-background-3: var(--velt-dark-mode-background-3);--velt-background-4: var(--velt-dark-mode-background-4);--velt-background-5: var(--velt-dark-mode-background-5);--velt-background-6: var(--velt-dark-mode-background-6);--velt-background-7: var(--velt-dark-mode-background-7);--velt-background-8: var(--velt-dark-mode-background-8);--velt-background-9: var(--velt-dark-mode-background-9);--velt-background-10: var(--velt-dark-mode-background-10);--velt-border-0: var(--velt-dark-mode-border-0);--velt-border-1: var(--velt-dark-mode-border-1);--velt-border-2: var(--velt-dark-mode-border-2);--velt-border-3: var(--velt-dark-mode-border-3);--velt-border-4: var(--velt-dark-mode-border-4);--velt-border-5: var(--velt-dark-mode-border-5);--velt-border-6: var(--velt-dark-mode-border-6);--velt-border-7: var(--velt-dark-mode-border-7);--velt-border-8: var(--velt-dark-mode-border-8);--velt-border-9: var(--velt-dark-mode-border-9);--velt-border-10: var(--velt-dark-mode-border-10);--velt-background-transparent: var(--velt-dark-mode-background-transparent);--velt-border-transparent: var(--velt-dark-mode-border-transparent);--velt-animation-transparent: var(--velt-dark-mode-animation-transparent)}.custom-chip[_ngcontent-%COMP%]{color:var(--velt-accent-text);background:var(--velt-accent-transparent);border-radius:var(--velt-border-radius-xs);word-break:break-word;padding:var(--velt-spacing-xs);margin:1px;gap:var(--velt-spacing-xs);opacity:0px;font-size:var(--velt-font-size-sm);font-style:normal;font-weight:400;line-height:120%;text-align:left;color:var(--velt-accent);display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.custom-chip[_ngcontent-%COMP%] .custom-chip-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.custom-chip[_ngcontent-%COMP%] .custom-chip-icon.custom-chip-icon-img[_ngcontent-%COMP%]{max-height:12px}"],changeDetection:0});let r=e;return r})();var Dc=["*"],xc=new Set(["autocomplete-id","class","style","id","ng-reflect-autocomplete-id","ng-version","_nghost","_ngcontent"]),Pa=(()=>{let e=class e{constructor(i,n,o,s){this.coreService=i,this.elementRef=n,this.registry=o,this.loggingService=s,this.parentContextData={},this.onParentPayload=a=>{try{!this.autocompleteId&&a.autocompleteId&&(this.autocompleteId=a.autocompleteId),this.parentContextData=a.contextData||{},this.initializeAndBroadcast()}catch(c){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in onParentPayload:",c)}}}ngOnInit(){try{if(this.findAndConnectToParent(),this.parentRegistry){this.parentRegistry.register(this.onParentPayload);let i=this.parentRegistry.getLastPayload?.();i&&this.onParentPayload(i)}this.initializeAndBroadcast()}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in ngOnInit:",i)}}findAndConnectToParent(){try{let n=this.elementRef.nativeElement.parentElement;for(;n;){if(n.tagName?.toLowerCase()==="velt-autocomplete-context-wrapper"){let o=n.__veltContext;if(o?.registry instanceof lt){this.parentWrapper=o.wrapperRef,this.parentRegistry=o.registry;return}let s=window.ng;if(s?.getComponent){let c=s.getComponent(n);if(c?.registry){this.parentWrapper=c,this.parentRegistry=c.registry;return}}let a=n.__ngContext__;if(a&&Array.isArray(a))for(let c=0;c<a.length;c++){let d=a[c];if(d&&typeof d=="object"&&d.registry instanceof lt){this.parentWrapper=d,this.parentRegistry=d.registry;return}}}n=n.parentElement}}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error finding parent wrapper:",i)}}ngOnChanges(i){try{i.autocompleteId&&!i.autocompleteId.firstChange&&this.initializeAndBroadcast()}catch(n){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in ngOnChanges:",n)}}ngOnDestroy(){try{let i=this.autocompleteId&&!this.parentWrapper;if(this.parentRegistry&&this.parentRegistry.unregister(this.onParentPayload),this.elementRef?.nativeElement&&(this.elementRef.nativeElement.__veltContext=void 0),this.parentWrapper=void 0,this.parentRegistry=void 0,i){let n=this.autocompleteId,o=this.registry;setTimeout(()=>{let s=this.coreService.getRegistry(n);(s===o||!s)&&this.coreService.clearContextConfig(n)},0)}}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in ngOnDestroy:",i)}}collectAttributes(){let i={};try{let o=this.elementRef.nativeElement.attributes;for(let s=0;s<o.length;s++){let a=o[s],c=a.name.toLowerCase();xc.has(c)||c.startsWith("_ng")||c.startsWith("ng-")||(i[c]=a.value)}}catch(n){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error collecting attributes:",n)}return i}initializeAndBroadcast(){try{let i=this.autocompleteId||this.parentContextData["autocomplete-id"];if(!i)return;this.autocompleteId&&(this.coreService.getOrCreateContextConfig(this.autocompleteId),this.coreService.setRegistry(this.autocompleteId,this.registry),this.elementRef.nativeElement.setAttribute("autocomplete-id",this.autocompleteId));let n=this.collectAttributes(),o=k(k({},this.parentContextData),n);this.elementRef.nativeElement.__veltContext={registry:this.registry,autocompleteId:i,contextData:o,wrapperRef:this};let s={autocompleteId:i,contextData:o};this.registry.broadcast(s)}catch(i){this.loggingService.catch("[AUTOCOMPLETE CONTEXT WRAPPER] Error in initializeAndBroadcast:",i)}}};e.\u0275fac=function(n){return new(n||e)(R(ns),R(ze),R(lt),R(l))},e.\u0275cmp=j({type:e,selectors:[["velt-autocomplete-context-wrapper"]],inputs:{autocompleteId:"autocompleteId"},standalone:!1,features:[Cr([lt]),Wt],ngContentSelectors:Dc,decls:1,vars:0,template:function(n,o){n&1&&(Ve(),Ge(0))},styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0});let r=e;return r})();var Ma=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=Re({type:r});static \u0275inj=Ae({imports:[bt,zo]})}return r})();var Na=(()=>{let e=class e{constructor(i){this.injector=i,this.customElements=[{name:A.TAGS.SNIPPYLY_ROOT,component:sn},{name:A.TAGS.SNIPPYLY_MENU,component:an}],this.veltCustomElements=[{name:A.TAGS.VELT_ROOT,component:sn},{name:A.TAGS.VELT_MENU,component:an},{name:A.TAGS.VELT_WIREFRAME,component:ka},{name:A.TAGS.VELT_AUTOCOMPLETE,component:Da},{name:A.TAGS.VELT_AUTOCOMPLETE_PANEL,component:gs},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION,component:ds},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_ICON,component:ls},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_NAME,component:cs},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_DESCRIPTION,component:ss},{name:A.TAGS.VELT_AUTOCOMPLETE_OPTION_ERROR_ICON,component:as},{name:A.TAGS.VELT_AUTOCOMPLETE_GROUP_OPTION,component:ps},{name:A.TAGS.VELT_AUTOCOMPLETE_TOOL,component:fs},{name:A.TAGS.VELT_AUTOCOMPLETE_EMPTY,component:Ir},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP,component:xa},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP,component:It},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP_ICON,component:oi},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP_NAME,component:si},{name:A.TAGS.VELT_AUTOCOMPLETE_CHIP_TOOLTIP_DESCRIPTION,component:ni},{name:A.TAGS.VELT_AUTOCOMPLETE_CONTEXT_WRAPPER,component:Pa},{name:A.TAGS.VELT_SKELETON_LOADER,component:At}]}ngDoBootstrap(){this.customElements.forEach(i=>{let n=Or(i.component,{injector:this.injector});customElements.get(i.name)||customElements.define(i.name,n)}),this.veltCustomElements.forEach(i=>{let n=Or(i.component,{injector:this.injector});customElements.get(i.name)||customElements.define(i.name,n)})}};e.\u0275fac=function(n){return new(n||e)(U(be))},e.\u0275mod=Re({type:e}),e.\u0275inj=Ae({providers:[yo(()=>{let i=sessionStorage?.getItem("veltFirebaseLogLevel")||at?.firebaseLogLevel||"silent";return vo(i),Co(at.firebaseConfig)}),Io(()=>Ao()),To(()=>Oo(_o(),{persistence:[So,bo,Eo]})),xo(()=>Po()),Ro(()=>{let i=Do();return at.useEmulators&&ko(i,"localhost",5001),i}),{provide:Xn,useClass:Ra},lo(co()),oo()],imports:[Jt,Ea,Zt,po,go,mo,fo,Wo,Ar,Uo,Bo,qo,Mo,No,Ma,_s,li,At]});let r=e;return r})();ke(Ir,[xe,Se],[]);ke(It,[Ct,ys,xe,Se,oi,si,ni],[]);ke(oi,[Ct,xe,Se,li],[ai]);ke(si,[Ct,xe,Se],[De]);ke(ni,[Ct,xe,Se],[De]);ke(hs,[$e,xe],[]);ke(ms,[$e,xe,Se],[De]);var La=!0,Fa=!0;function gt(r,e,t){let i=r.match(e);return i&&i.length>=t&&parseFloat(i[t],10)}function Ce(r,e,t){if(!r.RTCPeerConnection)return;let i=r.RTCPeerConnection.prototype,n=i.addEventListener;i.addEventListener=function(s,a){if(s!==e)return n.apply(this,arguments);let c=d=>{let h=t(d);h&&(a.handleEvent?a.handleEvent(h):a(h))};return this._eventMap=this._eventMap||{},this._eventMap[e]||(this._eventMap[e]=new Map),this._eventMap[e].set(a,c),n.apply(this,[s,c])};let o=i.removeEventListener;i.removeEventListener=function(s,a){if(s!==e||!this._eventMap||!this._eventMap[e])return o.apply(this,arguments);if(!this._eventMap[e].has(a))return o.apply(this,arguments);let c=this._eventMap[e].get(a);return this._eventMap[e].delete(a),this._eventMap[e].size===0&&delete this._eventMap[e],Object.keys(this._eventMap).length===0&&delete this._eventMap,o.apply(this,[s,c])},Object.defineProperty(i,"on"+e,{get(){return this["_on"+e]},set(s){this["_on"+e]&&(this.removeEventListener(e,this["_on"+e]),delete this["_on"+e]),s&&this.addEventListener(e,this["_on"+e]=s)},enumerable:!0,configurable:!0})}function za(r){return typeof r!="boolean"?new Error("Argument type: "+typeof r+". Please use a boolean."):(La=r,r?"adapter.js logging disabled":"adapter.js logging enabled")}function Ua(r){return typeof r!="boolean"?new Error("Argument type: "+typeof r+". Please use a boolean."):(Fa=!r,"adapter.js deprecation warnings "+(r?"disabled":"enabled"))}function tr(){if(typeof window=="object"){if(La)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function ft(r,e){Fa&&console.warn(r+" is deprecated, please use "+e+" instead.")}function qa(r){let e={browser:null,version:null};if(typeof r>"u"||!r.navigator||!r.navigator.userAgent)return e.browser="Not a browser.",e;let{navigator:t}=r;if(t.mozGetUserMedia)e.browser="firefox",e.version=parseInt(gt(t.userAgent,/Firefox\/(\d+)\./,1));else if(t.webkitGetUserMedia||r.isSecureContext===!1&&r.webkitRTCPeerConnection)e.browser="chrome",e.version=parseInt(gt(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2));else if(r.RTCPeerConnection&&t.userAgent.match(/AppleWebKit\/(\d+)\./))e.browser="safari",e.version=parseInt(gt(t.userAgent,/AppleWebKit\/(\d+)\./,1)),e.supportsUnifiedPlan=r.RTCRtpTransceiver&&"currentDirection"in r.RTCRtpTransceiver.prototype,e._safariVersion=gt(t.userAgent,/Version\/(\d+(\.?\d+))/,1);else return e.browser="Not a supported browser.",e;return e}function wa(r){return Object.prototype.toString.call(r)==="[object Object]"}function cn(r){return wa(r)?Object.keys(r).reduce(function(e,t){let i=wa(r[t]),n=i?cn(r[t]):r[t],o=i&&!Object.keys(n).length;return n===void 0||o?e:Object.assign(e,{[t]:n})},{}):r}function ln(r,e,t){!e||t.has(e.id)||(t.set(e.id,e),Object.keys(e).forEach(i=>{i.endsWith("Id")?ln(r,r.get(e[i]),t):i.endsWith("Ids")&&e[i].forEach(n=>{ln(r,r.get(n),t)})}))}function dn(r,e,t){let i=t?"outbound-rtp":"inbound-rtp",n=new Map;if(e===null)return n;let o=[];return r.forEach(s=>{s.type==="track"&&s.trackIdentifier===e.id&&o.push(s)}),o.forEach(s=>{r.forEach(a=>{a.type===i&&a.trackId===s.id&&ln(r,a,n)})}),n}var nr={};Vt(nr,{fixNegotiationNeeded:()=>vn,shimAddTrackRemoveTrack:()=>fn,shimAddTrackRemoveTrackWithNative:()=>Ga,shimGetDisplayMedia:()=>Va,shimGetSendersWithDtmf:()=>mn,shimGetStats:()=>pn,shimGetUserMedia:()=>ir,shimMediaStream:()=>hn,shimOnTrack:()=>un,shimPeerConnection:()=>rr,shimSenderReceiverGetStats:()=>gn});var Ba=tr;function ir(r,e){let t=r&&r.navigator;if(!t.mediaDevices)return;let i=function(a){if(typeof a!="object"||a.mandatory||a.optional)return a;let c={};return Object.keys(a).forEach(d=>{if(d==="require"||d==="advanced"||d==="mediaSource")return;let h=typeof a[d]=="object"?a[d]:{ideal:a[d]};h.exact!==void 0&&typeof h.exact=="number"&&(h.min=h.max=h.exact);let u=function(m,v){return m?m+v.charAt(0).toUpperCase()+v.slice(1):v==="deviceId"?"sourceId":v};if(h.ideal!==void 0){c.optional=c.optional||[];let m={};typeof h.ideal=="number"?(m[u("min",d)]=h.ideal,c.optional.push(m),m={},m[u("max",d)]=h.ideal,c.optional.push(m)):(m[u("",d)]=h.ideal,c.optional.push(m))}h.exact!==void 0&&typeof h.exact!="number"?(c.mandatory=c.mandatory||{},c.mandatory[u("",d)]=h.exact):["min","max"].forEach(m=>{h[m]!==void 0&&(c.mandatory=c.mandatory||{},c.mandatory[u(m,d)]=h[m])})}),a.advanced&&(c.optional=(c.optional||[]).concat(a.advanced)),c},n=function(a,c){if(e.version>=61)return c(a);if(a=JSON.parse(JSON.stringify(a)),a&&typeof a.audio=="object"){let d=function(h,u,m){u in h&&!(m in h)&&(h[m]=h[u],delete h[u])};a=JSON.parse(JSON.stringify(a)),d(a.audio,"autoGainControl","googAutoGainControl"),d(a.audio,"noiseSuppression","googNoiseSuppression"),a.audio=i(a.audio)}if(a&&typeof a.video=="object"){let d=a.video.facingMode;d=d&&(typeof d=="object"?d:{ideal:d});let h=e.version<66;if(d&&(d.exact==="user"||d.exact==="environment"||d.ideal==="user"||d.ideal==="environment")&&!(t.mediaDevices.getSupportedConstraints&&t.mediaDevices.getSupportedConstraints().facingMode&&!h)){delete a.video.facingMode;let u;if(d.exact==="environment"||d.ideal==="environment"?u=["back","rear"]:(d.exact==="user"||d.ideal==="user")&&(u=["front"]),u)return t.mediaDevices.enumerateDevices().then(m=>{m=m.filter(f=>f.kind==="videoinput");let v=m.find(f=>u.some(y=>f.label.toLowerCase().includes(y)));return!v&&m.length&&u.includes("back")&&(v=m[m.length-1]),v&&(a.video.deviceId=d.exact?{exact:v.deviceId}:{ideal:v.deviceId}),a.video=i(a.video),Ba("chrome: "+JSON.stringify(a)),c(a)})}a.video=i(a.video)}return Ba("chrome: "+JSON.stringify(a)),c(a)},o=function(a){return e.version>=64?a:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[a.name]||a.name,message:a.message,constraint:a.constraint||a.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(a,c,d){n(a,h=>{t.webkitGetUserMedia(h,c,u=>{d&&d(o(u))})})};if(t.getUserMedia=s.bind(t),t.mediaDevices.getUserMedia){let a=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(c){return n(c,d=>a(d).then(h=>{if(d.audio&&!h.getAudioTracks().length||d.video&&!h.getVideoTracks().length)throw h.getTracks().forEach(u=>{u.stop()}),new DOMException("","NotFoundError");return h},h=>Promise.reject(o(h))))}}}function Va(r,e){if(!(r.navigator.mediaDevices&&"getDisplayMedia"in r.navigator.mediaDevices)&&r.navigator.mediaDevices){if(typeof e!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}r.navigator.mediaDevices.getDisplayMedia=function(i){return e(i).then(n=>{let o=i.video&&i.video.width,s=i.video&&i.video.height,a=i.video&&i.video.frameRate;return i.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:n,maxFrameRate:a||3}},o&&(i.video.mandatory.maxWidth=o),s&&(i.video.mandatory.maxHeight=s),r.navigator.mediaDevices.getUserMedia(i)})}}}function hn(r){r.MediaStream=r.MediaStream||r.webkitMediaStream}function un(r){if(typeof r=="object"&&r.RTCPeerConnection&&!("ontrack"in r.RTCPeerConnection.prototype)){Object.defineProperty(r.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 e=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=i=>{i.stream.addEventListener("addtrack",n=>{let o;r.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(a=>a.track&&a.track.id===n.track.id):o={track:n.track};let s=new Event("track");s.track=n.track,s.receiver=o,s.transceiver={receiver:o},s.streams=[i.stream],this.dispatchEvent(s)}),i.stream.getTracks().forEach(n=>{let o;r.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(a=>a.track&&a.track.id===n.id):o={track:n};let s=new Event("track");s.track=n,s.receiver=o,s.transceiver={receiver:o},s.streams=[i.stream],this.dispatchEvent(s)})},this.addEventListener("addstream",this._ontrackpoly)),e.apply(this,arguments)}}else Ce(r,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function mn(r){if(typeof r=="object"&&r.RTCPeerConnection&&!("getSenders"in r.RTCPeerConnection.prototype)&&"createDTMFSender"in r.RTCPeerConnection.prototype){let e=function(n,o){return{track:o,get dtmf(){return this._dtmf===void 0&&(o.kind==="audio"?this._dtmf=n.createDTMFSender(o):this._dtmf=null),this._dtmf},_pc:n}};if(!r.RTCPeerConnection.prototype.getSenders){r.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};let n=r.RTCPeerConnection.prototype.addTrack;r.RTCPeerConnection.prototype.addTrack=function(a,c){let d=n.apply(this,arguments);return d||(d=e(this,a),this._senders.push(d)),d};let o=r.RTCPeerConnection.prototype.removeTrack;r.RTCPeerConnection.prototype.removeTrack=function(a){o.apply(this,arguments);let c=this._senders.indexOf(a);c!==-1&&this._senders.splice(c,1)}}let t=r.RTCPeerConnection.prototype.addStream;r.RTCPeerConnection.prototype.addStream=function(o){this._senders=this._senders||[],t.apply(this,[o]),o.getTracks().forEach(s=>{this._senders.push(e(this,s))})};let i=r.RTCPeerConnection.prototype.removeStream;r.RTCPeerConnection.prototype.removeStream=function(o){this._senders=this._senders||[],i.apply(this,[o]),o.getTracks().forEach(s=>{let a=this._senders.find(c=>c.track===s);a&&this._senders.splice(this._senders.indexOf(a),1)})}}else if(typeof r=="object"&&r.RTCPeerConnection&&"getSenders"in r.RTCPeerConnection.prototype&&"createDTMFSender"in r.RTCPeerConnection.prototype&&r.RTCRtpSender&&!("dtmf"in r.RTCRtpSender.prototype)){let e=r.RTCPeerConnection.prototype.getSenders;r.RTCPeerConnection.prototype.getSenders=function(){let i=e.apply(this,[]);return i.forEach(n=>n._pc=this),i},Object.defineProperty(r.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 pn(r){if(!r.RTCPeerConnection)return;let e=r.RTCPeerConnection.prototype.getStats;r.RTCPeerConnection.prototype.getStats=function(){let[i,n,o]=arguments;if(arguments.length>0&&typeof i=="function")return e.apply(this,arguments);if(e.length===0&&(arguments.length===0||typeof i!="function"))return e.apply(this,[]);let s=function(c){let d={};return c.result().forEach(u=>{let m={id:u.id,timestamp:u.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[u.type]||u.type};u.names().forEach(v=>{m[v]=u.stat(v)}),d[m.id]=m}),d},a=function(c){return new Map(Object.keys(c).map(d=>[d,c[d]]))};if(arguments.length>=2){let c=function(d){n(a(s(d)))};return e.apply(this,[c,i])}return new Promise((c,d)=>{e.apply(this,[function(h){c(a(s(h)))},d])}).then(n,o)}}function gn(r){if(!(typeof r=="object"&&r.RTCPeerConnection&&r.RTCRtpSender&&r.RTCRtpReceiver))return;if(!("getStats"in r.RTCRtpSender.prototype)){let t=r.RTCPeerConnection.prototype.getSenders;t&&(r.RTCPeerConnection.prototype.getSenders=function(){let o=t.apply(this,[]);return o.forEach(s=>s._pc=this),o});let i=r.RTCPeerConnection.prototype.addTrack;i&&(r.RTCPeerConnection.prototype.addTrack=function(){let o=i.apply(this,arguments);return o._pc=this,o}),r.RTCRtpSender.prototype.getStats=function(){let o=this;return this._pc.getStats().then(s=>dn(s,o.track,!0))}}if(!("getStats"in r.RTCRtpReceiver.prototype)){let t=r.RTCPeerConnection.prototype.getReceivers;t&&(r.RTCPeerConnection.prototype.getReceivers=function(){let n=t.apply(this,[]);return n.forEach(o=>o._pc=this),n}),Ce(r,"track",i=>(i.receiver._pc=i.srcElement,i)),r.RTCRtpReceiver.prototype.getStats=function(){let n=this;return this._pc.getStats().then(o=>dn(o,n.track,!1))}}if(!("getStats"in r.RTCRtpSender.prototype&&"getStats"in r.RTCRtpReceiver.prototype))return;let e=r.RTCPeerConnection.prototype.getStats;r.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof r.MediaStreamTrack){let i=arguments[0],n,o,s;return this.getSenders().forEach(a=>{a.track===i&&(n?s=!0:n=a)}),this.getReceivers().forEach(a=>(a.track===i&&(o?s=!0:o=a),a.track===i)),s||n&&o?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):n?n.getStats():o?o.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return e.apply(this,arguments)}}function Ga(r){r.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(s=>this._shimmedLocalStreams[s][0])};let e=r.RTCPeerConnection.prototype.addTrack;r.RTCPeerConnection.prototype.addTrack=function(s,a){if(!a)return e.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let c=e.apply(this,arguments);return this._shimmedLocalStreams[a.id]?this._shimmedLocalStreams[a.id].indexOf(c)===-1&&this._shimmedLocalStreams[a.id].push(c):this._shimmedLocalStreams[a.id]=[a,c],c};let t=r.RTCPeerConnection.prototype.addStream;r.RTCPeerConnection.prototype.addStream=function(s){this._shimmedLocalStreams=this._shimmedLocalStreams||{},s.getTracks().forEach(d=>{if(this.getSenders().find(u=>u.track===d))throw new DOMException("Track already exists.","InvalidAccessError")});let a=this.getSenders();t.apply(this,arguments);let c=this.getSenders().filter(d=>a.indexOf(d)===-1);this._shimmedLocalStreams[s.id]=[s].concat(c)};let i=r.RTCPeerConnection.prototype.removeStream;r.RTCPeerConnection.prototype.removeStream=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[s.id],i.apply(this,arguments)};let n=r.RTCPeerConnection.prototype.removeTrack;r.RTCPeerConnection.prototype.removeTrack=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},s&&Object.keys(this._shimmedLocalStreams).forEach(a=>{let c=this._shimmedLocalStreams[a].indexOf(s);c!==-1&&this._shimmedLocalStreams[a].splice(c,1),this._shimmedLocalStreams[a].length===1&&delete this._shimmedLocalStreams[a]}),n.apply(this,arguments)}}function fn(r,e){if(!r.RTCPeerConnection)return;if(r.RTCPeerConnection.prototype.addTrack&&e.version>=65)return Ga(r);let t=r.RTCPeerConnection.prototype.getLocalStreams;r.RTCPeerConnection.prototype.getLocalStreams=function(){let h=t.apply(this);return this._reverseStreams=this._reverseStreams||{},h.map(u=>this._reverseStreams[u.id])};let i=r.RTCPeerConnection.prototype.addStream;r.RTCPeerConnection.prototype.addStream=function(h){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},h.getTracks().forEach(u=>{if(this.getSenders().find(v=>v.track===u))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[h.id]){let u=new r.MediaStream(h.getTracks());this._streams[h.id]=u,this._reverseStreams[u.id]=h,h=u}i.apply(this,[h])};let n=r.RTCPeerConnection.prototype.removeStream;r.RTCPeerConnection.prototype.removeStream=function(h){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},n.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]},r.RTCPeerConnection.prototype.addTrack=function(h,u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");let m=[].slice.call(arguments,1);if(m.length!==1||!m[0].getTracks().find(y=>y===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(y=>y.track===h))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};let f=this._streams[u.id];if(f)f.addTrack(h),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{let y=new r.MediaStream([h]);this._streams[u.id]=y,this._reverseStreams[y.id]=u,this.addStream(y)}return this.getSenders().find(y=>y.track===h)};function o(d,h){let u=h.sdp;return Object.keys(d._reverseStreams||[]).forEach(m=>{let v=d._reverseStreams[m],f=d._streams[v.id];u=u.replace(new RegExp(f.id,"g"),v.id)}),new RTCSessionDescription({type:h.type,sdp:u})}function s(d,h){let u=h.sdp;return Object.keys(d._reverseStreams||[]).forEach(m=>{let v=d._reverseStreams[m],f=d._streams[v.id];u=u.replace(new RegExp(v.id,"g"),f.id)}),new RTCSessionDescription({type:h.type,sdp:u})}["createOffer","createAnswer"].forEach(function(d){let h=r.RTCPeerConnection.prototype[d],u={[d](){let m=arguments;return arguments.length&&typeof arguments[0]=="function"?h.apply(this,[f=>{let y=o(this,f);m[0].apply(null,[y])},f=>{m[1]&&m[1].apply(null,f)},arguments[2]]):h.apply(this,arguments).then(f=>o(this,f))}};r.RTCPeerConnection.prototype[d]=u[d]});let a=r.RTCPeerConnection.prototype.setLocalDescription;r.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?a.apply(this,arguments):(arguments[0]=s(this,arguments[0]),a.apply(this,arguments))};let c=Object.getOwnPropertyDescriptor(r.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(r.RTCPeerConnection.prototype,"localDescription",{get(){let d=c.get.apply(this);return d.type===""?d:o(this,d)}}),r.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 m;Object.keys(this._streams).forEach(v=>{this._streams[v].getTracks().find(y=>h.track===y)&&(m=this._streams[v])}),m&&(m.getTracks().length===1?this.removeStream(this._reverseStreams[m.id]):m.removeTrack(h.track),this.dispatchEvent(new Event("negotiationneeded")))}}function rr(r,e){!r.RTCPeerConnection&&r.webkitRTCPeerConnection&&(r.RTCPeerConnection=r.webkitRTCPeerConnection),r.RTCPeerConnection&&e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let i=r.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new(t==="addIceCandidate"?r.RTCIceCandidate:r.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};r.RTCPeerConnection.prototype[t]=n[t]})}function vn(r,e){Ce(r,"negotiationneeded",t=>{let i=t.target;if(!((e.version<72||i.getConfiguration&&i.getConfiguration().sdpSemantics==="plan-b")&&i.signalingState!=="stable"))return t})}var ar={};Vt(ar,{shimAddTransceiver:()=>Sn,shimCreateAnswer:()=>In,shimCreateOffer:()=>On,shimGetDisplayMedia:()=>ja,shimGetParameters:()=>Tn,shimGetUserMedia:()=>or,shimOnTrack:()=>yn,shimPeerConnection:()=>sr,shimRTCDataChannel:()=>En,shimReceiverGetStats:()=>Cn,shimRemoveStream:()=>bn,shimSenderGetStats:()=>_n});function or(r,e){let t=r&&r.navigator,i=r&&r.MediaStreamTrack;if(t.getUserMedia=function(n,o,s){ft("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),t.mediaDevices.getUserMedia(n).then(o,s)},!(e.version>55&&"autoGainControl"in t.mediaDevices.getSupportedConstraints())){let n=function(s,a,c){a in s&&!(c in s)&&(s[c]=s[a],delete s[a])},o=t.mediaDevices.getUserMedia.bind(t.mediaDevices);if(t.mediaDevices.getUserMedia=function(s){return typeof s=="object"&&typeof s.audio=="object"&&(s=JSON.parse(JSON.stringify(s)),n(s.audio,"autoGainControl","mozAutoGainControl"),n(s.audio,"noiseSuppression","mozNoiseSuppression")),o(s)},i&&i.prototype.getSettings){let s=i.prototype.getSettings;i.prototype.getSettings=function(){let a=s.apply(this,arguments);return n(a,"mozAutoGainControl","autoGainControl"),n(a,"mozNoiseSuppression","noiseSuppression"),a}}if(i&&i.prototype.applyConstraints){let s=i.prototype.applyConstraints;i.prototype.applyConstraints=function(a){return this.kind==="audio"&&typeof a=="object"&&(a=JSON.parse(JSON.stringify(a)),n(a,"autoGainControl","mozAutoGainControl"),n(a,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[a])}}}}function ja(r,e){r.navigator.mediaDevices&&"getDisplayMedia"in r.navigator.mediaDevices||r.navigator.mediaDevices&&(r.navigator.mediaDevices.getDisplayMedia=function(i){if(!(i&&i.video)){let n=new DOMException("getDisplayMedia without video constraints is undefined");return n.name="NotFoundError",n.code=8,Promise.reject(n)}return i.video===!0?i.video={mediaSource:e}:i.video.mediaSource=e,r.navigator.mediaDevices.getUserMedia(i)})}function yn(r){typeof r=="object"&&r.RTCTrackEvent&&"receiver"in r.RTCTrackEvent.prototype&&!("transceiver"in r.RTCTrackEvent.prototype)&&Object.defineProperty(r.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function sr(r,e){if(typeof r!="object"||!(r.RTCPeerConnection||r.mozRTCPeerConnection))return;!r.RTCPeerConnection&&r.mozRTCPeerConnection&&(r.RTCPeerConnection=r.mozRTCPeerConnection),e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){let o=r.RTCPeerConnection.prototype[n],s={[n](){return arguments[0]=new(n==="addIceCandidate"?r.RTCIceCandidate:r.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};r.RTCPeerConnection.prototype[n]=s[n]});let t={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=r.RTCPeerConnection.prototype.getStats;r.RTCPeerConnection.prototype.getStats=function(){let[o,s,a]=arguments;return i.apply(this,[o||null]).then(c=>{if(e.version<53&&!s)try{c.forEach(d=>{d.type=t[d.type]||d.type})}catch(d){if(d.name!=="TypeError")throw d;c.forEach((h,u)=>{c.set(u,Object.assign({},h,{type:t[h.type]||h.type}))})}return c}).then(s,a)}}function _n(r){if(!(typeof r=="object"&&r.RTCPeerConnection&&r.RTCRtpSender)||r.RTCRtpSender&&"getStats"in r.RTCRtpSender.prototype)return;let e=r.RTCPeerConnection.prototype.getSenders;e&&(r.RTCPeerConnection.prototype.getSenders=function(){let n=e.apply(this,[]);return n.forEach(o=>o._pc=this),n});let t=r.RTCPeerConnection.prototype.addTrack;t&&(r.RTCPeerConnection.prototype.addTrack=function(){let n=t.apply(this,arguments);return n._pc=this,n}),r.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Cn(r){if(!(typeof r=="object"&&r.RTCPeerConnection&&r.RTCRtpSender)||r.RTCRtpSender&&"getStats"in r.RTCRtpReceiver.prototype)return;let e=r.RTCPeerConnection.prototype.getReceivers;e&&(r.RTCPeerConnection.prototype.getReceivers=function(){let i=e.apply(this,[]);return i.forEach(n=>n._pc=this),i}),Ce(r,"track",t=>(t.receiver._pc=t.srcElement,t)),r.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function bn(r){!r.RTCPeerConnection||"removeStream"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.removeStream=function(t){ft("removeStream","removeTrack"),this.getSenders().forEach(i=>{i.track&&t.getTracks().includes(i.track)&&this.removeTrack(i)})})}function En(r){r.DataChannel&&!r.RTCDataChannel&&(r.RTCDataChannel=r.DataChannel)}function Sn(r){if(!(typeof r=="object"&&r.RTCPeerConnection))return;let e=r.RTCPeerConnection.prototype.addTransceiver;e&&(r.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let i=arguments[1]&&arguments[1].sendEncodings;i===void 0&&(i=[]),i=[...i];let n=i.length>0;n&&i.forEach(s=>{if("rid"in s&&!/^[a-z0-9]{0,16}$/i.test(s.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in s&&!(parseFloat(s.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in s&&!(parseFloat(s.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});let o=e.apply(this,arguments);if(n){let{sender:s}=o,a=s.getParameters();(!("encodings"in a)||a.encodings.length===1&&Object.keys(a.encodings[0]).length===0)&&(a.encodings=i,s.sendEncodings=i,this.setParametersPromises.push(s.setParameters(a).then(()=>{delete s.sendEncodings}).catch(()=>{delete s.sendEncodings})))}return o})}function Tn(r){if(!(typeof r=="object"&&r.RTCRtpSender))return;let e=r.RTCRtpSender.prototype.getParameters;e&&(r.RTCRtpSender.prototype.getParameters=function(){let i=e.apply(this,arguments);return"encodings"in i||(i.encodings=[].concat(this.sendEncodings||[{}])),i})}function On(r){if(!(typeof r=="object"&&r.RTCPeerConnection))return;let e=r.RTCPeerConnection.prototype.createOffer;r.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}function In(r){if(!(typeof r=="object"&&r.RTCPeerConnection))return;let e=r.RTCPeerConnection.prototype.createAnswer;r.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}var lr={};Vt(lr,{shimAudioContext:()=>Nn,shimCallbacksAPI:()=>kn,shimConstraints:()=>Wa,shimCreateOfferLegacy:()=>Mn,shimGetUserMedia:()=>Dn,shimLocalStreamsAPI:()=>An,shimRTCIceServerUrls:()=>xn,shimRemoteStreamsAPI:()=>Rn,shimTrackEventTransceiver:()=>Pn});function An(r){if(!(typeof r!="object"||!r.RTCPeerConnection)){if("getLocalStreams"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in r.RTCPeerConnection.prototype)){let e=r.RTCPeerConnection.prototype.addTrack;r.RTCPeerConnection.prototype.addStream=function(i){this._localStreams||(this._localStreams=[]),this._localStreams.includes(i)||this._localStreams.push(i),i.getAudioTracks().forEach(n=>e.call(this,n,i)),i.getVideoTracks().forEach(n=>e.call(this,n,i))},r.RTCPeerConnection.prototype.addTrack=function(i,...n){return n&&n.forEach(o=>{this._localStreams?this._localStreams.includes(o)||this._localStreams.push(o):this._localStreams=[o]}),e.apply(this,arguments)}}"removeStream"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.removeStream=function(t){this._localStreams||(this._localStreams=[]);let i=this._localStreams.indexOf(t);if(i===-1)return;this._localStreams.splice(i,1);let n=t.getTracks();this.getSenders().forEach(o=>{n.includes(o.track)&&this.removeTrack(o)})})}}function Rn(r){if(!(typeof r!="object"||!r.RTCPeerConnection)&&("getRemoteStreams"in r.RTCPeerConnection.prototype||(r.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in r.RTCPeerConnection.prototype))){Object.defineProperty(r.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=i=>{i.streams.forEach(n=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(n))return;this._remoteStreams.push(n);let o=new Event("addstream");o.stream=n,this.dispatchEvent(o)})})}});let e=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(){let i=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(n){n.streams.forEach(o=>{if(i._remoteStreams||(i._remoteStreams=[]),i._remoteStreams.indexOf(o)>=0)return;i._remoteStreams.push(o);let s=new Event("addstream");s.stream=o,i.dispatchEvent(s)})}),e.apply(i,arguments)}}}function kn(r){if(typeof r!="object"||!r.RTCPeerConnection)return;let e=r.RTCPeerConnection.prototype,t=e.createOffer,i=e.createAnswer,n=e.setLocalDescription,o=e.setRemoteDescription,s=e.addIceCandidate;e.createOffer=function(d,h){let u=arguments.length>=2?arguments[2]:arguments[0],m=t.apply(this,[u]);return h?(m.then(d,h),Promise.resolve()):m},e.createAnswer=function(d,h){let u=arguments.length>=2?arguments[2]:arguments[0],m=i.apply(this,[u]);return h?(m.then(d,h),Promise.resolve()):m};let a=function(c,d,h){let u=n.apply(this,[c]);return h?(u.then(d,h),Promise.resolve()):u};e.setLocalDescription=a,a=function(c,d,h){let u=o.apply(this,[c]);return h?(u.then(d,h),Promise.resolve()):u},e.setRemoteDescription=a,a=function(c,d,h){let u=s.apply(this,[c]);return h?(u.then(d,h),Promise.resolve()):u},e.addIceCandidate=a}function Dn(r){let e=r&&r.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){let t=e.mediaDevices,i=t.getUserMedia.bind(t);e.mediaDevices.getUserMedia=n=>i(Wa(n))}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=(function(i,n,o){e.mediaDevices.getUserMedia(i).then(n,o)}).bind(e))}function Wa(r){return r&&r.video!==void 0?Object.assign({},r,{video:cn(r.video)}):r}function xn(r){if(!r.RTCPeerConnection)return;let e=r.RTCPeerConnection;r.RTCPeerConnection=function(i,n){if(i&&i.iceServers){let o=[];for(let s=0;s<i.iceServers.length;s++){let a=i.iceServers[s];a.urls===void 0&&a.url?(ft("RTCIceServer.url","RTCIceServer.urls"),a=JSON.parse(JSON.stringify(a)),a.urls=a.url,delete a.url,o.push(a)):o.push(i.iceServers[s])}i.iceServers=o}return new e(i,n)},r.RTCPeerConnection.prototype=e.prototype,"generateCertificate"in e&&Object.defineProperty(r.RTCPeerConnection,"generateCertificate",{get(){return e.generateCertificate}})}function Pn(r){typeof r=="object"&&r.RTCTrackEvent&&"receiver"in r.RTCTrackEvent.prototype&&!("transceiver"in r.RTCTrackEvent.prototype)&&Object.defineProperty(r.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Mn(r){let e=r.RTCPeerConnection.prototype.createOffer;r.RTCPeerConnection.prototype.createOffer=function(i){if(i){typeof i.offerToReceiveAudio<"u"&&(i.offerToReceiveAudio=!!i.offerToReceiveAudio);let n=this.getTransceivers().find(s=>s.receiver.track.kind==="audio");i.offerToReceiveAudio===!1&&n?n.direction==="sendrecv"?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":n.direction==="recvonly"&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):i.offerToReceiveAudio===!0&&!n&&this.addTransceiver("audio",{direction:"recvonly"}),typeof i.offerToReceiveVideo<"u"&&(i.offerToReceiveVideo=!!i.offerToReceiveVideo);let o=this.getTransceivers().find(s=>s.receiver.track.kind==="video");i.offerToReceiveVideo===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):i.offerToReceiveVideo===!0&&!o&&this.addTransceiver("video",{direction:"recvonly"})}return e.apply(this,arguments)}}function Nn(r){typeof r!="object"||r.AudioContext||(r.AudioContext=r.webkitAudioContext)}var Fn={};Vt(Fn,{removeExtmapAllowMixed:()=>hr,shimAddIceCandidateNullOrEmpty:()=>Ut,shimConnectionState:()=>dr,shimMaxMessageSize:()=>Ft,shimParameterlessSetLocalDescription:()=>qt,shimRTCIceCandidate:()=>Lt,shimRTCIceCandidateRelayProtocol:()=>cr,shimSendThrowTypeError:()=>zt});var vt=Gn(Ln());function Lt(r){if(!r.RTCIceCandidate||r.RTCIceCandidate&&"foundation"in r.RTCIceCandidate.prototype)return;let e=r.RTCIceCandidate;r.RTCIceCandidate=function(i){if(typeof i=="object"&&i.candidate&&i.candidate.indexOf("a=")===0&&(i=JSON.parse(JSON.stringify(i)),i.candidate=i.candidate.substring(2)),i.candidate&&i.candidate.length){let n=new e(i),o=vt.default.parseCandidate(i.candidate);for(let s in o)s in n||Object.defineProperty(n,s,{value:o[s]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new e(i)},r.RTCIceCandidate.prototype=e.prototype,Ce(r,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new r.RTCIceCandidate(t.candidate),writable:"false"}),t))}function cr(r){!r.RTCIceCandidate||r.RTCIceCandidate&&"relayProtocol"in r.RTCIceCandidate.prototype||Ce(r,"icecandidate",e=>{if(e.candidate){let t=vt.default.parseCandidate(e.candidate.candidate);t.type==="relay"&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e})}function Ft(r,e){if(!r.RTCPeerConnection)return;"sctp"in r.RTCPeerConnection.prototype||Object.defineProperty(r.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});let t=function(a){if(!a||!a.sdp)return!1;let c=vt.default.splitSections(a.sdp);return c.shift(),c.some(d=>{let h=vt.default.parseMLine(d);return h&&h.kind==="application"&&h.protocol.indexOf("SCTP")!==-1})},i=function(a){let c=a.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(c===null||c.length<2)return-1;let d=parseInt(c[1],10);return d!==d?-1:d},n=function(a){let c=65536;return e.browser==="firefox"&&(e.version<57?a===-1?c=16384:c=2147483637:e.version<60?c=e.version===57?65535:65536:c=2147483637),c},o=function(a,c){let d=65536;e.browser==="firefox"&&e.version===57&&(d=65535);let h=vt.default.matchPrefix(a.sdp,"a=max-message-size:");return h.length>0?d=parseInt(h[0].substring(19),10):e.browser==="firefox"&&c!==-1&&(d=2147483637),d},s=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,e.browser==="chrome"&&e.version>=76){let{sdpSemantics:c}=this.getConfiguration();c==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(t(arguments[0])){let c=i(arguments[0]),d=n(c),h=o(arguments[0],c),u;d===0&&h===0?u=Number.POSITIVE_INFINITY:d===0||h===0?u=Math.max(d,h):u=Math.min(d,h);let m={};Object.defineProperty(m,"maxMessageSize",{get(){return u}}),this._sctp=m}return s.apply(this,arguments)}}function zt(r){if(!(r.RTCPeerConnection&&"createDataChannel"in r.RTCPeerConnection.prototype))return;function e(i,n){let o=i.send;i.send=function(){let a=arguments[0],c=a.length||a.size||a.byteLength;if(i.readyState==="open"&&n.sctp&&c>n.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+n.sctp.maxMessageSize+" bytes)");return o.apply(i,arguments)}}let t=r.RTCPeerConnection.prototype.createDataChannel;r.RTCPeerConnection.prototype.createDataChannel=function(){let n=t.apply(this,arguments);return e(n,this),n},Ce(r,"datachannel",i=>(e(i.channel,i.target),i))}function dr(r){if(!r.RTCPeerConnection||"connectionState"in r.RTCPeerConnection.prototype)return;let e=r.RTCPeerConnection.prototype;Object.defineProperty(e,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e,"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 i=e[t];e[t]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=n=>{let o=n.target;if(o._lastConnectionState!==o.connectionState){o._lastConnectionState=o.connectionState;let s=new Event("connectionstatechange",n);o.dispatchEvent(s)}return n},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),i.apply(this,arguments)}})}function hr(r,e){if(!r.RTCPeerConnection||e.browser==="chrome"&&e.version>=71||e.browser==="safari"&&e._safariVersion>=13.1)return;let t=r.RTCPeerConnection.prototype.setRemoteDescription;r.RTCPeerConnection.prototype.setRemoteDescription=function(n){if(n&&n.sdp&&n.sdp.indexOf(`
37
37
  a=extmap-allow-mixed`)!==-1){let o=n.sdp.split(`
38
38
  `).filter(s=>s.trim()!=="a=extmap-allow-mixed").join(`
39
- `);r.RTCSessionDescription&&n instanceof r.RTCSessionDescription?arguments[0]=new r.RTCSessionDescription({type:n.type,sdp:o}):n.sdp=o}return t.apply(this,arguments)}}function Bt(r,e){if(!(r.RTCPeerConnection&&r.RTCPeerConnection.prototype))return;let t=r.RTCPeerConnection.prototype.addIceCandidate;!t||t.length===0||(r.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(e.browser==="chrome"&&e.version<78||e.browser==="firefox"&&e.version<68||e.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function Vt(r,e){if(!(r.RTCPeerConnection&&r.RTCPeerConnection.prototype))return;let t=r.RTCPeerConnection.prototype.setLocalDescription;!t||t.length===0||(r.RTCPeerConnection.prototype.setLocalDescription=function(){let n=arguments[0]||{};if(typeof n!="object"||n.type&&n.sdp)return t.apply(this,arguments);if(n={type:n.type,sdp:n.sdp},!n.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":n.type="offer";break;default:n.type="answer";break}return n.sdp||n.type!=="offer"&&n.type!=="answer"?t.apply(this,[n]):(n.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(s=>t.apply(this,[s]))})}var hd=Xn(jn());function hl({window:r}={},e={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let t=ar,i=ol(r),n={browserDetails:i,commonShim:Wn,extractVersion:ft,disableLog:rl,disableWarnings:nl,sdp:hd};switch(i.browser){case"chrome":if(!dr||!cr||!e.shimChrome)return t("Chrome shim is not included in this adapter release."),n;if(i.version===null)return t("Chrome shim can not determine version, not shimming."),n;t("adapter.js shimming chrome."),n.browserShim=dr,Bt(r,i),Vt(r,i),lr(r,i),_n(r,i),cr(r,i),Cn(r,i),Tn(r,i),bn(r,i),En(r,i),Sn(r,i),On(r,i),zt(r,i),gr(r,i),fr(r,i),Ut(r,i),qt(r,i),vr(r,i);break;case"firefox":if(!mr||!ur||!e.shimFirefox)return t("Firefox shim is not included in this adapter release."),n;t("adapter.js shimming firefox."),n.browserShim=mr,Bt(r,i),Vt(r,i),hr(r,i),ur(r,i),In(r,i),kn(r,i),An(r,i),Rn(r,i),Dn(r,i),xn(r,i),Pn(r,i),Mn(r,i),Nn(r,i),zt(r,i),fr(r,i),Ut(r,i),qt(r,i);break;case"safari":if(!pr||!e.shimSafari)return t("Safari shim is not included in this adapter release."),n;t("adapter.js shimming safari."),n.browserShim=pr,Bt(r,i),Vt(r,i),Un(r,i),Bn(r,i),Fn(r,i),wn(r,i),Ln(r,i),qn(r,i),zn(r,i),Vn(r,i),zt(r,i),gr(r,i),Ut(r,i),qt(r,i),vr(r,i);break;default:t("Unsupported browser!");break}return n}var _v=hl({window:typeof window>"u"?void 0:window});St.production&&void 0;vo().bootstrapModule(Za,{ngZone:"noop"}).catch(r=>console.error(r));
39
+ `);r.RTCSessionDescription&&n instanceof r.RTCSessionDescription?arguments[0]=new r.RTCSessionDescription({type:n.type,sdp:o}):n.sdp=o}return t.apply(this,arguments)}}function Ut(r,e){if(!(r.RTCPeerConnection&&r.RTCPeerConnection.prototype))return;let t=r.RTCPeerConnection.prototype.addIceCandidate;!t||t.length===0||(r.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(e.browser==="chrome"&&e.version<78||e.browser==="firefox"&&e.version<68||e.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function qt(r,e){if(!(r.RTCPeerConnection&&r.RTCPeerConnection.prototype))return;let t=r.RTCPeerConnection.prototype.setLocalDescription;!t||t.length===0||(r.RTCPeerConnection.prototype.setLocalDescription=function(){let n=arguments[0]||{};if(typeof n!="object"||n.type&&n.sdp)return t.apply(this,arguments);if(n={type:n.type,sdp:n.sdp},!n.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":n.type="offer";break;default:n.type="answer";break}return n.sdp||n.type!=="offer"&&n.type!=="answer"?t.apply(this,[n]):(n.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(s=>t.apply(this,[s]))})}var Pc=Gn(Ln());function Ha({window:r}={},e={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let t=tr,i=qa(r),n={browserDetails:i,commonShim:Fn,extractVersion:gt,disableLog:za,disableWarnings:Ua,sdp:Pc};switch(i.browser){case"chrome":if(!nr||!rr||!e.shimChrome)return t("Chrome shim is not included in this adapter release."),n;if(i.version===null)return t("Chrome shim can not determine version, not shimming."),n;t("adapter.js shimming chrome."),n.browserShim=nr,Ut(r,i),qt(r,i),ir(r,i),hn(r,i),rr(r,i),un(r,i),fn(r,i),mn(r,i),pn(r,i),gn(r,i),vn(r,i),Lt(r,i),cr(r,i),dr(r,i),Ft(r,i),zt(r,i),hr(r,i);break;case"firefox":if(!ar||!sr||!e.shimFirefox)return t("Firefox shim is not included in this adapter release."),n;t("adapter.js shimming firefox."),n.browserShim=ar,Ut(r,i),qt(r,i),or(r,i),sr(r,i),yn(r,i),bn(r,i),_n(r,i),Cn(r,i),En(r,i),Sn(r,i),Tn(r,i),On(r,i),In(r,i),Lt(r,i),dr(r,i),Ft(r,i),zt(r,i);break;case"safari":if(!lr||!e.shimSafari)return t("Safari shim is not included in this adapter release."),n;t("adapter.js shimming safari."),n.browserShim=lr,Ut(r,i),qt(r,i),xn(r,i),Mn(r,i),kn(r,i),An(r,i),Rn(r,i),Pn(r,i),Dn(r,i),Nn(r,i),Lt(r,i),cr(r,i),Ft(r,i),zt(r,i),hr(r,i);break;default:t("Unsupported browser!");break}return n}var Df=Ha({window:typeof window>"u"?void 0:window});at.production&&void 0;ao().bootstrapModule(Na,{ngZone:"noop"}).catch(r=>console.error(r));
40
40
 
41
41
  let snippyly;
42
+ let snippylyInitInterval;
43
+ let snippylyInitTryCount = 0;
44
+
45
+ var SNIPPYLY_VERSION = '5.0.2-beta.20-test';
42
46
 
43
47
  const log = (...args) => {
44
48
  try {
@@ -54,211 +58,6 @@ const log = (...args) => {
54
58
  * @typedef {import('./snippyly.d.ts')).Snippyly} SnippylyClient
55
59
  */
56
60
 
57
- /**
58
- * Self-hosting (Phase A): stash the customer's `selfHosted` config on the window BEFORE the
59
- * Angular app bootstraps (velt-root creation in onWindowLoad below). The default Firebase
60
- * app initializes during that bootstrap — long before initConfig reaches ConfigService — so
61
- * this stash is the only injection point early enough for `selfHosted.firebaseConfig` to
62
- * apply at bootstrap. Read by `readPreBootstrapSelfHostedConfig()` (endpoints.service.ts).
63
- * No-op when the config has no `selfHosted` block.
64
- *
65
- * ORDERING CONSTRAINT: `init()` must run before anything that creates `velt-root` —
66
- * in particular before a manual `loadVelt()`/`loadSnippyly()` call. Those load helpers
67
- * take no config, so if they bootstrap the app first, there is nothing in the stash and
68
- * the default Firebase app initializes from `environment.firebaseConfig`; a later
69
- * `init()` stashes too late and the injected `firebaseConfig` CANNOT apply (the default
70
- * Firebase app is not safely re-initializable once services hold instances).
71
- * `warnIfFirebaseConfigCannotApply` makes that failure loud instead of silent.
72
- *
73
- * STASH AUTHORITY (race rule): pre-bootstrap, a pending `init()`'s config is
74
- * AUTHORITATIVE — it is the config `initConfig` will apply once the app is up, so the
75
- * bootstrap stash must match it or Firebase and ConfigService would diverge (e.g. point
76
- * at different projects). A loader config may only FILL AN EMPTY stash; it never
77
- * overwrites a pending init()'s stash decision, and a mismatch warns loudly
78
- * (`stashFromLoader` below).
79
- */
80
- const stashPreBootstrapSelfHostedConfig = (config) => {
81
- try {
82
- if (config && config.selfHosted && typeof window !== 'undefined') {
83
- window['__VELT_PRE_BOOTSTRAP_SELF_HOSTED__'] = config.selfHosted;
84
- }
85
- } catch (err) {
86
- console.warn('Snippyly: ', 'Error in stashPreBootstrapSelfHostedConfig: ', err);
87
- }
88
- }
89
-
90
- // Set by init() while the app has not bootstrapped yet: the selfHosted block (possibly
91
- // undefined) that the pending init() will hand to initConfig. See STASH AUTHORITY above.
92
- let hasPendingInit = false;
93
- let pendingInitSelfHosted;
94
-
95
- // Monotonic id for init() attempts. Every attempt owns a PRIVATE polling timer and try
96
- // counter (created inside init() below — never shared module state, so concurrent
97
- // attempts cannot clear each other's timers or inflate each other's retry counts), and
98
- // stash authority belongs to the LATEST attempt only: a stale attempt's terminal paths
99
- // (timeout/failure/success) pass their generation to releasePendingInitStashAuthority,
100
- // which ignores anyone but the current owner. Without this, an older init()'s timeout
101
- // would delete the stash a NEWER init() just wrote — bootstrap would then use the
102
- // default Firebase config while the newer init's initConfig applies its selfHosted
103
- // config (split-brain).
104
- let initGeneration = 0;
105
-
106
- // A failed init() must release stash authority: while the SDK is still unloaded, a stale
107
- // hasPendingInit would make stashFromLoader return early forever, blocking a later
108
- // loadVelt(config)/loadSnippyly(config) from stashing selfHosted until a full page reload.
109
- // Only the CURRENT generation may release — see initGeneration above.
110
- const releasePendingInitStashAuthority = (generation) => {
111
- if (generation !== initGeneration) {
112
- // A newer init() has taken over stash authority (and re-stashed its own config);
113
- // this stale attempt must not clear the newer attempt's state.
114
- return;
115
- }
116
- hasPendingInit = false;
117
- pendingInitSelfHosted = undefined;
118
- try {
119
- // A dead init()'s WINDOW stash must not feed a later bare loadVelt()/loadSnippyly()
120
- // bootstrap either — otherwise Firebase would silently initialize from the failed
121
- // init's selfHosted config. Only clear while the app is still unloaded: once
122
- // bootstrapped, the stash has been consumed (and may legitimately be re-read), and
123
- // clearing it can no longer prevent anything.
124
- //
125
- // `Snippyly.loaded` alone is NOT a safe guard: it flips true only after the app
126
- // publishes `.snippyly` onto <velt-root>, but the Firebase bootstrap factory
127
- // (app.module.ts) reads the stash EARLIER, during Angular bootstrap. If any tick
128
- // already inserted <velt-root>, bootstrap may be in flight right now — deleting
129
- // the stash in that window would make Firebase fall back to the default
130
- // environment config and ignore this init()'s pending selfHosted.firebaseConfig.
131
- // So deletion additionally requires that no <velt-root> exists yet.
132
- const bootstrapMayBeInFlight = typeof document !== 'undefined'
133
- && !!(document.querySelector && document.querySelector('velt-root'));
134
- if (!Snippyly.loaded && !bootstrapMayBeInFlight && typeof window !== 'undefined') {
135
- delete window['__VELT_PRE_BOOTSTRAP_SELF_HOSTED__'];
136
- }
137
- } catch (err) {
138
- console.warn('Snippyly: ', 'Error in releasePendingInitStashAuthority: ', err);
139
- }
140
- }
141
-
142
- /**
143
- * init()'s pre-bootstrap stash write: authoritative. Overwrites (or CLEARS, when this
144
- * init carries no `selfHosted`) whatever an earlier loader call may have stashed, so the
145
- * bootstrap always consumes exactly the config that initConfig will apply. Warns when it
146
- * discards a different earlier stash.
147
- */
148
- const stashFromInit = (config) => {
149
- try {
150
- const incoming = (config && config.selfHosted) || undefined;
151
- if (!Snippyly.loaded) {
152
- hasPendingInit = true;
153
- pendingInitSelfHosted = incoming;
154
- if (typeof window !== 'undefined') {
155
- const existing = window['__VELT_PRE_BOOTSTRAP_SELF_HOSTED__'];
156
- if (existing && JSON.stringify(existing) !== JSON.stringify(incoming)) {
157
- console.warn('Snippyly: ', 'A selfHosted config stashed before init() (e.g. via loadVelt(config)) '
158
- + 'differs from init()\'s config. init()\'s config wins — the earlier one is discarded.');
159
- }
160
- if (!incoming) {
161
- delete window['__VELT_PRE_BOOTSTRAP_SELF_HOSTED__'];
162
- }
163
- }
164
- }
165
- stashPreBootstrapSelfHostedConfig(config);
166
- } catch (err) {
167
- console.warn('Snippyly: ', 'Error in stashFromInit: ', err);
168
- }
169
- }
170
-
171
- /**
172
- * Loader (`loadVelt`/`loadSnippyly`) pre-bootstrap stash write: NON-authoritative. If an
173
- * init() is pending, the loader must not change the effective bootstrap config — the
174
- * loader bootstraps the app RIGHT NOW, while the pending init() will still run
175
- * initConfig with ITS config; letting the loader's stash win would initialize Firebase
176
- * from one config and ConfigService from another. Mismatches warn; matching (or absent)
177
- * configs proceed silently.
178
- */
179
- const stashFromLoader = (config) => {
180
- try {
181
- const incoming = (config && config.selfHosted) || undefined;
182
- if (!Snippyly.loaded && hasPendingInit) {
183
- // Warn ONLY when the loader actually supplied a selfHosted block that differs
184
- // from the pending init()'s. A BARE loader call (no config / no selfHosted) is
185
- // the documented intended flow — init(config) first, then loadVelt() to
186
- // bootstrap immediately — and must stay silent: the init stash is already in
187
- // place and the loader has nothing to contribute.
188
- if (incoming !== undefined && JSON.stringify(incoming) !== JSON.stringify(pendingInitSelfHosted)) {
189
- console.warn('Snippyly: ', 'loadVelt()/loadSnippyly() was called with a selfHosted config while an '
190
- + 'earlier Velt.init() is still initializing with a different config. The init() config wins; '
191
- + 'the loader config is ignored. Pass the same config (or none) to the loader.');
192
- }
193
- return;
194
- }
195
- stashPreBootstrapSelfHostedConfig(config);
196
- } catch (err) {
197
- console.warn('Snippyly: ', 'Error in stashFromLoader: ', err);
198
- }
199
- }
200
-
201
- /**
202
- * Loud diagnostic for the loadVelt()-before-init() ordering violation (see the ordering
203
- * constraint above). Fires only when ALL of:
204
- * - this init() carries `selfHosted.firebaseConfig` (an injected Firebase config), AND
205
- * - the app already bootstrapped (`Snippyly.loaded`), AND
206
- * - the stash the bootstrap consumed (`previousStash`, captured BEFORE this init()
207
- * overwrote it) did not already contain this same `firebaseConfig` — i.e. this is not
208
- * a benign re-init with an identical config (common with framework re-mounts).
209
- *
210
- * Returns true when the warning fired, so the caller can skip the (partially
211
- * overlapping) split-brain warning below and not double-warn for one mistake.
212
- */
213
- const warnIfFirebaseConfigCannotApply = (config, previousStash) => {
214
- try {
215
- const injected = config && config.selfHosted && config.selfHosted.firebaseConfig;
216
- if (!injected || !Snippyly.loaded) {
217
- return false;
218
- }
219
- const alreadyApplied = previousStash
220
- && JSON.stringify(previousStash.firebaseConfig) === JSON.stringify(injected);
221
- if (!alreadyApplied) {
222
- console.warn('Snippyly: ', 'selfHosted.firebaseConfig was provided after the SDK already bootstrapped '
223
- + '(e.g. loadVelt()/loadSnippyly() ran before init()). The injected Firebase config cannot apply '
224
- + 'to this page load — call Velt.init() BEFORE loadVelt()/loadSnippyly(), or remove the manual load call.');
225
- return true;
226
- }
227
- return false;
228
- } catch (err) {
229
- console.warn('Snippyly: ', 'Error in warnIfFirebaseConfigCannotApply: ', err);
230
- return false;
231
- }
232
- }
233
-
234
- /**
235
- * Loud diagnostic for the REVERSE split-brain: the bootstrap consumed a `selfHosted`
236
- * stash (e.g. from `loadVelt(config)`), but this init() carries a DIFFERENT (or no)
237
- * `selfHosted` block. Firebase is already initialized from the bootstrap stash and
238
- * cannot be re-initialized, while `initConfig` will apply init()'s config to
239
- * ConfigService/EndpointsService — so Firebase and endpoint routing would point at
240
- * DIFFERENT backends (e.g. Firebase at customer infra, callables falling back to Velt).
241
- * The bootstrap is irreversible, so this cannot be prevented here — only made loud;
242
- * init() remains authoritative for initConfig, exactly as documented above.
243
- */
244
- const warnIfBootstrapStashDiverges = (config, previousStash) => {
245
- try {
246
- if (!Snippyly.loaded || !previousStash) {
247
- return;
248
- }
249
- const incoming = (config && config.selfHosted) || undefined;
250
- if (JSON.stringify(previousStash) !== JSON.stringify(incoming)) {
251
- console.warn('Snippyly: ', 'The SDK bootstrapped with a selfHosted config (e.g. passed to '
252
- + 'loadVelt()/loadSnippyly()) that differs from the config now passed to init(). Firebase is '
253
- + 'already initialized from the bootstrap config and cannot be re-initialized, but init()\'s '
254
- + 'config is what endpoint routing will use — Firebase and cloud-function endpoints may now '
255
- + 'point at DIFFERENT backends. Pass the SAME config (including selfHosted) to both calls.');
256
- }
257
- } catch (err) {
258
- console.warn('Snippyly: ', 'Error in warnIfBootstrapStashDiverges: ', err);
259
- }
260
- }
261
-
262
61
  /**
263
62
  * @return {SnippylyClient}
264
63
  */
@@ -267,18 +66,7 @@ export const Snippyly = {
267
66
  loaded: false,
268
67
  init: (apiKey, config) => {
269
68
  return new Promise((resolve, reject) => {
270
- // This attempt becomes the LATEST init(): it takes stash authority (its
271
- // stashFromInit below overwrites any earlier stash) and any OLDER pending
272
- // attempt is demoted — the generation guard in
273
- // releasePendingInitStashAuthority makes the older attempt's terminal paths
274
- // inert against this attempt's state.
275
- const generation = ++initGeneration;
276
69
  try {
277
- const previousStash = (typeof window !== 'undefined') ? window['__VELT_PRE_BOOTSTRAP_SELF_HOSTED__'] : undefined;
278
- if (!warnIfFirebaseConfigCannotApply(config, previousStash)) {
279
- warnIfBootstrapStashDiverges(config, previousStash);
280
- }
281
- stashFromInit(config);
282
70
  if (Snippyly.loaded) {
283
71
  log('Snippyly: init - loaded!');
284
72
  Snippyly.initConfig(apiKey, config);
@@ -286,64 +74,38 @@ export const Snippyly = {
286
74
  resolve(Snippyly);
287
75
  } else {
288
76
 
289
- // Try to init snippyly in intervals; once it initializes, the tick
290
- // clears its own timer. Timer handle and try count are PRIVATE to
291
- // this attempt (see initGeneration above).
292
- let tryCount = 0;
293
- const intervalHandle = setInterval(() => {
294
- tryCount++;
295
- if (tryCount > 10) {
77
+ // Try to init snippyly in intervals
78
+ // Once Snippyly is initialized, clear the intervals
79
+ snippylyInitInterval = setInterval(() => {
80
+ snippylyInitTryCount++;
81
+ if (snippylyInitTryCount > 10) {
296
82
  log('Snippyly: init - iniSnippyly did not work in 10 times!');
297
- clearInterval(intervalHandle);
298
- // This init() will never reach initConfig — release stash
299
- // authority so a later manual loader config can apply.
300
- releasePendingInitStashAuthority(generation);
83
+ clearInterval(snippylyInitInterval);
301
84
  reject('Snippyly: init - iniSnippyly did not work in 10 times!');
302
- // MUST stop here: falling through to initSnippyly on this final
303
- // tick could bootstrap the app AFTER the reject — with the stash
304
- // just cleared — so Firebase would initialize from the default
305
- // environment while initConfig applies this init()'s selfHosted
306
- // config (split-brain), and initConfig would run post-rejection.
307
- return;
308
85
  }
309
- initSnippyly(apiKey, config, generation, intervalHandle, tryCount, resolve, reject);
86
+ initSnippyly(apiKey, config, resolve, reject);
310
87
  }, 500);
311
88
  }
312
89
  } catch (err) {
313
90
  console.warn('Snippyly: ', 'Snippyly: init - error!', err);
314
- // This init() failed before reaching initConfig — release stash authority
315
- // so a later loadVelt(config)/loadSnippyly(config) can stash selfHosted.
316
- releasePendingInitStashAuthority(generation);
317
91
  reject(err);
318
92
  }
319
93
  });
320
94
  },
321
- // Optional `config` (same shape as init's): manual loaders bootstrap the app
322
- // immediately, so a self-hosted customer using them MUST pass the config here (or
323
- // call init() first) for `selfHosted.firebaseConfig` to apply — see the ordering
324
- // constraint on stashPreBootstrapSelfHostedConfig.
325
- loadSnippyly: (config) => {
326
- stashFromLoader(config);
327
- onWindowLoad();
328
- },
329
- loadVelt: (config) => {
330
- stashFromLoader(config);
331
- onWindowLoad();
332
- },
95
+ loadSnippyly: () => onWindowLoad(),
96
+ loadVelt: () => onWindowLoad(),
333
97
  };
334
98
 
335
- const initSnippyly = (apiKey, config, generation, intervalHandle, tryCount, resolve, reject) => {
336
- log('Snippyly: init - iniSnippyly Interval count:', tryCount);
99
+ const initSnippyly = (apiKey, config, resolve, reject) => {
100
+ log('Snippyly: init - iniSnippyly Interval count:', snippylyInitTryCount);
337
101
  if (window && document && document.body) {
338
102
  log('Snippyly: init - iniSnippyly Interval found document and window!');
339
103
  onWindowLoad();
340
104
  if (Snippyly.loaded) {
341
- clearInterval(intervalHandle);
105
+ clearInterval(snippylyInitInterval);
342
106
  try {
343
107
  Snippyly.initConfig(apiKey, config);
344
- // The pending init() has been consumed release stash authority.
345
- releasePendingInitStashAuthority(generation);
346
- log('Snippyly: init - initSnippyly - Snippyly loaded in try:', tryCount);
108
+ log('Snippyly: init - initSnippyly - Snippyly loaded in try:', snippylyInitTryCount);
347
109
  // Dispatch onVeltLoad event
348
110
  window.dispatchEvent(new CustomEvent('onVeltLoad', {
349
111
  detail: {
@@ -355,10 +117,6 @@ const initSnippyly = (apiKey, config, generation, intervalHandle, tryCount, reso
355
117
  }
356
118
  } catch (err) {
357
119
  console.warn('Snippyly: ', 'Snippyly: init - initSnippyly - error in initConfig:', err);
358
- // initConfig failed — this init() no longer owns the pending stash.
359
- // (The app is loaded at this point so the loader guard is already inert,
360
- // but the state must not leak into a future teardown/re-init cycle.)
361
- releasePendingInitStashAuthority(generation);
362
120
  if (reject) {
363
121
  reject(err);
364
122
  }