@googleworkspace/meet-addons 0.7.0-641378511 → 0.7.0-642016357
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.
- package/meet.addons.js +75 -75
- package/package.json +1 -1
package/meet.addons.js
CHANGED
|
@@ -6,80 +6,80 @@
|
|
|
6
6
|
var m=this||self,aa=function(a){a:{var b=["CLOSURE_FLAGS"];for(var c=m,d=0;d<b.length;d++)if(c=c[b[d]],c==null){b=null;break a}b=c}a=b&&b[a];return a!=null?a:!1},ba=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},ca="closure_uid_"+(Math.random()*1E9>>>0),da=0,ea=function(a,b,c){return a.call.apply(a.bind,arguments)},fa=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);
|
|
7
7
|
Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},ha=function(a,b,c){ha=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ea:fa;return ha.apply(null,arguments)},ia=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},ja=function(a,b){function c(){}c.prototype=b.prototype;a.U=b.prototype;a.prototype=new c;a.prototype.constructor=
|
|
8
8
|
a;a.Zb=function(d,e,f){for(var g=Array(arguments.length-2),l=2;l<arguments.length;l++)g[l-2]=arguments[l];return b.prototype[e].apply(d,g)}};function ka(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ka);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}ja(ka,Error);ka.prototype.name="CustomError";function la(a){m.setTimeout(()=>{throw a;},0)};var na=aa(610401301),oa=aa(188588736);function pa(){var a=m.navigator;return a&&(a=a.userAgent)?a:""}var qa;const ra=m.navigator;qa=ra?ra.userAgentData||null:null;function sa(a){return na?qa?qa.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function n(a){return pa().indexOf(a)!=-1};function p(){return na?!!qa&&qa.brands.length>0:!1}function ta(){return p()?sa("Chromium"):(n("Chrome")||n("CriOS"))&&!(p()?0:n("Edge"))||n("Silk")};function ua(a,b){b=Array.prototype.indexOf.call(a,b,void 0);let c;(c=b>=0)&&Array.prototype.splice.call(a,b,1);return c};var va=function(a){va[" "](a);return a};va[" "]=function(){};var wa=n("Gecko")&&!(pa().toLowerCase().indexOf("webkit")!=-1&&!n("Edge"))&&!(n("Trident")||n("MSIE"))&&!n("Edge"),xa=pa().toLowerCase().indexOf("webkit")!=-1&&!n("Edge");!n("Android")||ta();ta();var ya=n("Safari")&&!(ta()||(p()?0:n("Coast"))||(p()?0:n("Opera"))||(p()?0:n("Edge"))||(p()?sa("Microsoft Edge"):n("Edg/"))||(p()?sa("Opera"):n("OPR"))||n("Firefox")||n("FxiOS")||n("Silk")||n("Android"))&&!(n("iPhone")&&!n("iPod")&&!n("iPad")||n("iPad")||n("iPod"));var za=null,Aa=wa||xa||!ya&&typeof m.atob=="function",Ca=function(a){if(Aa)return m.atob(a);var b="";Ba(a,function(c){b+=String.fromCharCode(c)});return b},Ba=function(a,b){function c(k){for(;d<a.length;){var q=a.charAt(d++),x=za[q];if(x!=null)return x;if(!/^[\s\xa0]*$/.test(q))throw Error("Unknown base64 encoding at char: "+q);}return k}Da();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),l=c(64);if(l===64&&e===-1)break;b(e<<2|f>>4);g!=64&&(b(f<<4&240|g>>2),l!=64&&b(g<<6&192|l))}},Da=function(){if(!za){za=
|
|
9
|
-
{};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++)for(var d=a.concat(b[c].split("")),e=0;e<d.length;e++){var f=d[e];za[f]===void 0&&(za[f]=e)}}};function Ea(a){let b="",c=0;const d=a.length-10240;for(;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}const Fa=/[-_.]/g,Ga={"-":"+",_:"/",".":"="};function Ha(a){return Ga[a]||""}function Ia(a){return a!=null&&a instanceof Uint8Array}
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
function z(a,b,c,d,e){const f=
|
|
17
|
-
var
|
|
18
|
-
var D=function(a,b,c){b=
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
a.N?a.Hb?a.Z(this,a.N,a.P,void 0!==
|
|
22
|
-
function
|
|
23
|
-
return b};function
|
|
24
|
-
(b===1||b===4&&32&g))){
|
|
25
|
-
c),f=e||Object.isFrozen(a),g;if(g=!f)g=void 0===
|
|
26
|
-
case 11:c=this.La.userInitiatedCollaboration;b=I(b.content,
|
|
27
|
-
c.getFrameType()===2);a=a==null?void 0:
|
|
28
|
-
1)),!1)}}async getCurrentMeetingRecordingStatus(){var a=await
|
|
29
|
-
h:N},
|
|
30
|
-
i:"No further information is available.",h:O}),
|
|
31
|
-
i:"Ensure that the user is the initiator of the current collaboration or that the collaboration has ended before updating the collaborationStartingState.",h:N},
|
|
32
|
-
h:N};function
|
|
33
|
-
function
|
|
34
|
-
i:"No further information is available.",h:O};case 0:return
|
|
35
|
-
function
|
|
9
|
+
{};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++)for(var d=a.concat(b[c].split("")),e=0;e<d.length;e++){var f=d[e];za[f]===void 0&&(za[f]=e)}}};function Ea(a){let b="",c=0;const d=a.length-10240;for(;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}const Fa=/[-_.]/g,Ga={"-":"+",_:"/",".":"="};function Ha(a){return Ga[a]||""}function Ia(a){return a!=null&&a instanceof Uint8Array}var Ja={};let Ka;function La(a){if(a!==Ja)throw Error("illegal external caller");}var Na=function(){return Ka||(Ka=new Ma(null,Ja))},Ma=class{constructor(a,b){La(b);this.va=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};function Oa(){return typeof BigInt==="function"};let r=0,t=0;function Pa(a){const b=a<0;a=Math.abs(a);let c=a>>>0;a=Math.floor((a-c)/4294967296);if(b){const [d,e]=Qa(c,a);a=e;c=d}r=c>>>0;t=a>>>0}function Ra(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Oa()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=Math.floor(a/1E7),a%=1E7),c>=1E7&&(b+=Math.floor(c/1E7),c%=1E7),c=b+Sa(c)+Sa(a));return c}
|
|
10
|
+
function Sa(a){a=String(a);return"0000000".slice(a.length)+a}function Ta(){var a=r,b=t;if(b&2147483648)if(Oa())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=Qa(a,b);a="-"+Ra(c,d)}else a=Ra(a,b);return a}function Qa(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};function Ua(a){return Array.prototype.slice.call(a)};var u=Symbol(),Va=Symbol();function v(a,b,c){return c?a|b:a&~b}var y=(a,b)=>{a[u]=b;return a};function Wa(a,b){y(b,(a|0)&-14591)}function Xa(a,b){y(b,(a|34)&-14557)}function Ya(a){a=a>>14&1023;return a===0?536870912:a};var Za={},$a={};function ab(a){return!(!a||typeof a!=="object"||a.fc!==$a)}function bb(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}let cb;function db(a,b,c){if(a!=null)if(typeof a==="string")a=a?new Ma(a,Ja):Na();else if(a.constructor!==Ma)if(Ia(a))a=a.length?new Ma(c?a:new Uint8Array(a),Ja):Na();else{if(!b)throw Error();a=void 0}return a}
|
|
11
|
+
function eb(a,b,c){if(!Array.isArray(a)||a.length)return!1;const d=a[u]|0;if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;y(a,d|1);return!0}var fb;const gb=[];y(gb,55);fb=Object.freeze(gb);function hb(a){if(a&2)throw Error();}class ib{}class jb{}var kb=Object.freeze(new ib);Object.freeze(new jb);var lb=Object.freeze(new jb);var mb=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let nb;function ob(a){a=Error(a);mb(a,"warning");return a};function pb(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a}const qb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function rb(a){const b=typeof a;return b==="number"?Number.isFinite(a):b!=="string"?!1:qb.test(a)}function sb(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337}
|
|
12
|
+
function tb(a){a=Math.trunc(a);if(!Number.isSafeInteger(a)){Pa(a);var b=r,c=t;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);b=c*4294967296+(b>>>0);a=a?-b:b}return a}
|
|
13
|
+
function ub(a){var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));if(!sb(a)){if(a.length<16)Pa(Number(a));else if(Oa())a=BigInt(a),r=Number(a&BigInt(4294967295))>>>0,t=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");t=r=0;const c=a.length;for(let d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6){const f=Number(a.slice(d,e));t*=1E6;r=r*1E6+f;r>=4294967296&&(t+=Math.trunc(r/4294967296),t>>>=0,r>>>=0)}if(b){const [d,e]=Qa(r,t);r=d;t=e}}a=
|
|
14
|
+
Ta()}return a}function vb(a){if(a!=null&&typeof a!=="string")throw Error();return a}function wb(a,b,c){if(a!=null&&typeof a==="object"&&a.Oa===Za)return a;if(Array.isArray(a)){var d=a[u]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&y(a,e);return new b(a)}};let xb;function yb(a,b){xb=b;a=new a(b);xb=void 0;return a};function zb(a,b){return Ab(b)}function Ab(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(eb(a,void 0,0))return}else{if(Ia(a))return Ea(a);if(a instanceof Ma){const b=a.va;return b==null?"":typeof b==="string"?b:a.va=Ea(b)}}}return a};function Bb(a,b,c){a=Ua(a);var d=a.length;const e=b&256?a[d-1]:void 0;d+=e?-1:0;for(b=b&512?1:0;b<d;b++)a[b]=c(a[b]);if(e){b=a[b]={};for(const f in e)b[f]=c(e[f])}return a}function Cb(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=eb(a,void 0,0)?void 0:e&&(a[u]|0)&2?a:Db(a,b,c,d!==void 0,e);else if(bb(a)){const f={};for(let g in a)f[g]=Cb(a[g],b,c,d,e);a=f}else a=b(a,d);return a}}
|
|
15
|
+
function Db(a,b,c,d,e){const f=d||c?a[u]|0:0;d=d?!!(f&32):void 0;a=Ua(a);for(let g=0;g<a.length;g++)a[g]=Cb(a[g],b,c,d,e);c&&c(f,a);return a}function Eb(a){return a.Oa===Za?a.toJSON():Ab(a)};function Fb(a,b,c=Xa){if(a!=null){if(a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=a[u]|0;d&2||(b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16))),a=b?y(a,(d|34)&-12293):Db(a,Fb,d&4?Xa:c,!0,!0));return a}a.Oa===Za&&(c=a.g,d=c[u],a=d&2?a:yb(a.constructor,Gb(c,d,!0)));return a}}function Gb(a,b,c){const d=c||b&2?Xa:Wa,e=!!(b&32);a=Bb(a,b,f=>Fb(f,e,d));a[u]=a[u]|32|(c?2:0);return a}function Hb(a){const b=a.g,c=b[u];return c&2?yb(a.constructor,Gb(b,c,!1)):a};var Jb=function(a,b){a=a.g;return Ib(a,a[u],b)};function Kb(a,b,c,d){b=d+(+!!(b&512)-1);if(!(b<0||b>=a.length||b>=c))return a[b]}var Ib=function(a,b,c,d){if(c===-1)return null;const e=Ya(b);if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(Kb(a,b,e,c)&&Va!=null){var g;a=(g=nb)!=null?g:nb={};g=a[Va]||0;g>=4||(a[Va]=g+1,g=Error(),mb(g,"incident"),la(g))}return d}return Kb(a,b,e,c)}},Lb=function(a,b,c){const d=a.g;let e=d[u];hb(e);z(d,e,b,c);return a};
|
|
16
|
+
function z(a,b,c,d,e){const f=Ya(b);if(c>=f||e){let g=b;if(b&256)e=a[a.length-1];else{if(d==null)return g;e=a[f+(+!!(b&512)-1)]={};g|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);g!==b&&y(a,g);return g}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b}var A=function(a,b,c,d){return Mb(a,b,Pb(a,d,c))!==void 0};function Qb(a){return!!(2&a)&&!!(4&a)||!!(2048&a)}function Rb(a,b,c,d){const e=a.g;let f=e[u];hb(f);z(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}
|
|
17
|
+
var Pb=function(a,b,c){a=a.g;return Sb(a,a[u],b)===c?c:-1},B=function(a,b){a=a.g;return Sb(a,a[u],b)};function Sb(a,b,c){let d=0;for(let e=0;e<c.length;e++){const f=c[e];Ib(a,b,f)!=null&&(d!==0&&(b=z(a,b,d)),d=f)}return d}function Mb(a,b,c,d){a=a.g;let e=a[u];const f=Ib(a,e,c,d);b=wb(f,b,e);b!==f&&b!=null&&z(a,e,c,b,d);return b}
|
|
18
|
+
var D=function(a,b,c){b=Mb(a,b,c,!1);if(b==null)return b;a=a.g;let d=a[u];if(!(d&2)){const e=Hb(b);e!==b&&(b=e,z(a,d,c,b,!1))}return b},E=function(a,b,c){c==null&&(c=void 0);return Lb(a,b,c)},F=function(a,b,c,d){d==null&&(d=void 0);const e=a.g;let f=e[u];hb(f);(c=Sb(e,f,c))&&c!==b&&d!=null&&(f=z(e,f,c));z(e,f,b,d);return a};function Tb(a,b){a=v(a,2,!!(2&b));a=v(a,32,!0);return a=v(a,2048,!1)}function Ub(a,b,c){32&b&&c||(a=v(a,32,!1));return a}function Vb(a,b){return a!=null?a:b}
|
|
19
|
+
var Wb=function(a){a=Jb(a,1);a=a==null?a:rb(a)?typeof a==="number"?tb(a):ub(a):void 0;return Vb(a,0)},G=function(a,b){a=Jb(a,b);return Vb(a==null||typeof a==="string"?a:void 0,"")},H=function(a,b){a=Jb(a,b);a=a==null?a:Number.isFinite(a)?a|0:void 0;return Vb(a,0)},I=function(a,b,c,d){return D(a,b,Pb(a,d,c))},Xb=function(a,b){if(b!=null){var c=!!c;if(!rb(b))throw ob("int64");typeof b==="string"?b=ub(b):c?(b=Math.trunc(b),Number.isSafeInteger(b)?b=String(b):(c=String(b),sb(c)?b=c:(Pa(b),b=Ta()))):b=
|
|
20
|
+
tb(b)}return Rb(a,1,b,"0")},J=function(a,b,c){return Rb(a,b,vb(c),"")},K=function(a,b,c){if(c!=null){if(!Number.isFinite(c))throw ob("enum");c|=0}return Rb(a,b,c,0)};var Yb=function(a){cb=!0;try{return JSON.stringify(a.toJSON(),zb)}finally{cb=!1}},L=class{constructor(a){a:{a==null&&(a=xb);xb=void 0;if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[u]|0;if(b&2048)throw Error("farr");if(b&64)break a;var c=a;b|=64;var d=c.length;if(d&&(--d,bb(c[d]))){b|=256;c=d-(+!!(b&512)-1);if(c>=1024)throw Error("pvtlmt");b=b&-16760833|(c&1023)<<14}}y(a,b)}this.g=a}toJSON(){return cb?Zb(this,this.g,!1):Zb(this,Db(this.g,Eb,void 0,void 0,!1),!0)}getExtension(a){const b=
|
|
21
|
+
a.N?a.Hb?a.Z(this,a.N,a.P,void 0!==kb?4:2,!0):a.Z(this,a.N,a.P,!0):a.Hb?a.Z(this,a.P,void 0!==kb?4:2,!0):a.Z(this,a.P,a.defaultValue,!0);return a.ec&&b==null?a.defaultValue:b}hasExtension(a){a.N?a=Mb(this,a.N,a.P,!0)!==void 0:(a=a.N?a.Z(this,a.N,a.P,!0):a.Z(this,a.P,null,!0),a=(a===null?void 0:a)!==void 0);return a}clone(){const a=this.g;return yb(this.constructor,Gb(a,a[u],!1))}};L.prototype.Oa=Za;L.prototype.toString=function(){return Zb(this,this.g,!1).toString()};
|
|
22
|
+
function Zb(a,b,c){var d=oa?void 0:a.constructor.Tb;const e=(c?a.g:b)[u];a=b.length;if(!a)return b;let f,g;if(bb(c=b[a-1])){a:{var l=c;let x={},C=!1;for(var k in l){let w=l[k];if(Array.isArray(w)){let ma=w;if(eb(w,d,+k)||ab(w)&&w.size===0)w=null;w!=ma&&(C=!0)}w!=null?x[k]=w:C=!0}if(C){for(var q in x){l=x;break a}l=null}}l!=c&&(f=!0);a--}for(k=+!!(e&512)-1;a>0;a--){q=a-1;c=b[q];q-=k;if(!(c==null||eb(c,d,q)||ab(c)&&c.size===0))break;g=!0}if(!f&&!g)return b;b=Array.prototype.slice.call(b,0,a);l&&b.push(l);
|
|
23
|
+
return b};function $b(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[u]|=32;b=yb(a,b)}return b}};var ac=function(a){return b=>{b=JSON.parse(b);if(!Array.isArray(b)){var c=typeof b;throw Error("Expected jspb data to be an array, got "+(c!="object"?c:b?Array.isArray(b)?"array":c:"null")+": "+b);}b[u]|=34;return new a(b)}}(class extends L{});var bc=class extends L{getSeconds(){return Wb(this)}setSeconds(a){return Xb(this,a)}};var dc=function(a){var b=new cc;return K(b,1,a)},cc=class extends L{getFrameType(){return H(this,1)}};var ec=function(a){a=a.g;var b=a[u],c=b,d=!(2&b),e=cc,f=!!(2&c);b=f?1:2;d&&(d=!f);f=Ib(a,c,1);f=Array.isArray(f)?f:fb;var g=f[u]|0;const l=!!(4&g);if(!l){var k=g;k===0&&(k=Tb(k,c));k=v(k,1,!0);g=f;var q=c;const x=!!(2&k);x&&(q=v(q,2,!0));let C=!x,w=!0,ma=0,Nb=0;for(;ma<g.length;ma++){const Ob=wb(g[ma],e,q);if(Ob instanceof e){if(!x){const ad=!!((Ob.g[u]|0)&2);C&&(C=!ad);w&&(w=ad)}g[Nb++]=Ob}}Nb<ma&&(g.length=Nb);k=v(k,4,!0);k=v(k,16,w);k=v(k,8,C);y(g,k);x&&Object.freeze(g);g=k}if(d&&!(8&g||!f.length&&
|
|
24
|
+
(b===1||b===4&&32&g))){Qb(g)&&(f=Ua(f),g=Tb(g,c),c=z(a,c,1,f));d=f;e=g;for(g=0;g<d.length;g++)k=d[g],q=Hb(k),k!==q&&(d[g]=q);e=v(e,8,!0);e=v(e,16,!d.length);y(d,e);g=e}Qb(g)||(d=g,(e=b===1||b===4&&!!(32&g))?(k=!!(32&g),g=v(g,!f.length||16&g&&(!l||k)?2:2048,!0)):g=Ub(g,c,!1),g!==d&&y(f,g),e&&Object.freeze(f));b===2&&Qb(g)&&(f=Ua(f),g=Tb(g,c),g=Ub(g,c,!1),y(f,g),z(a,c,1,f));return f},gc=function(a){{var b=new fc;const x=b.g;let C=x[u];hb(C);if(a==null)z(x,C,1);else{var c=a[u]|0,d=c,e=!!(2&c)||!!(2048&
|
|
25
|
+
c),f=e||Object.isFrozen(a),g;if(g=!f)g=void 0===lb||!1;var l=!0,k=!0;for(let w=0;w<a.length;w++){var q=a[w];e||(q=!!((q.g[u]|0)&2),l&&(l=!q),k&&(k=q))}e||(c=v(c,5,!0),c=v(c,8,l),c=v(c,16,k));if(g||f&&c!==d)a=Ua(a),d=0,c=Tb(c,C),c=Ub(c,C,!0);c!==d&&y(a,c);z(x,C,1,a)}}return b},fc=class extends L{};fc.Tb=[1];var ic=function(a){var b=new hc;return K(b,1,a)},hc=class extends L{constructor(){super()}};var jc=class extends L{};var lc=class extends L{cb(){return B(this,kc)}},kc=[2,3];var mc=class extends L{};var nc=class extends L{qb(a){return J(this,2,a)}};var oc=class extends L{};var pc=class extends L{};var rc=class extends L{I(){return B(this,qc)}getCollaborationStartingState(){return I(this,fc,2,qc)}setCollaborationStartingState(a){return F(this,2,qc,a)}clearCollaborationStartingState(){return Lb(this,2)}getMeetingInfo(){return I(this,pc,3,qc)}getMeetPlatformInfo(){return I(this,oc,4,qc)}},qc=[2,3,4,5];var sc=class extends L{};var tc=class extends L{},uc=[3];var wc=class extends L{eb(){return B(this,vc)}},vc=[1,4,5,6,7,8,9,10,11,12,13,14,15,16];var xc=class extends L{constructor(){super()}getCollaborationStartingState(){return D(this,fc,1)}setCollaborationStartingState(a){return E(this,1,a)}clearCollaborationStartingState(){return Lb(this,1)}};var yc=class extends L{constructor(){super()}getCollaborationStartingState(){return D(this,fc,1)}setCollaborationStartingState(a){return E(this,1,a)}clearCollaborationStartingState(){return Lb(this,1)}};var zc=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),Ac=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_COLLABORATION"],[3,"JOIN_COLLABORATION"]]),Bc=new Map([[0,"RECORDING_STATUS_UNKNOWN"],[1,"RECORDING_STARTING"],[2,"RECORDING_IN_PROGRESS"],[3,"NOT_RECORDING"]]);function Cc(a){a&&typeof a.Za=="function"&&a.Za()};var M=function(){this.A=this.A;this.J=this.J};M.prototype.A=!1;M.prototype.Za=function(){this.A||(this.A=!0,this.H())};var Dc=function(a,b){a.A?b():(a.J||(a.J=[]),a.J.push(b))};M.prototype.H=function(){if(this.J)for(;this.J.length;)this.J.shift()()};var Ec=function(a){const b=[];var c=b.push;var d=dc(2);d=J(d,2,a.mainStageUrl);d=J(d,3,a.additionalData);c.call(b,d);c=b.push;d=dc(1);d=J(d,2,a.sidePanelUrl);a=J(d,3,a.additionalData);c.call(b,a);return b},Mc=class extends M{constructor(a){super();this.context=a;this.La={};Fc(this.context.j.Pb,b=>{switch(b.content.eb()){case 7:var c=this.La.frameToFrameMessage;b=I(b.content,nc,7,vc);if(c&&b){var d=H(b,1);d=zc.get(d);if(d===void 0)throw Error("Unknown frame type.");c({originator:d,payload:G(b,2)})}break;
|
|
26
|
+
case 11:c=this.La.userInitiatedCollaboration;b=I(b.content,tc,11,vc);c&&(b==null?0:A(b,sc,3,uc))&&c();break;case 16:Gc(this.context.j)}})}async getMeetingInfo(){const a=await Hc(this.context.j,ic(2));return{meetingId:G(a.getMeetingInfo(),1)}}async getFrameOpenReason(){let a;const b=(a=this.context.ya.Db)!=null?a:0;let c;return(c=Ac.get(b))!=null?c:"UNKNOWN"}async getCollaborationStartingState(){var a=(await Hc(this.context.j,ic(1))).getCollaborationStartingState();const b=a==null?void 0:ec(a).find(c=>
|
|
27
|
+
c.getFrameType()===2);a=a==null?void 0:ec(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:G(b,2))||void 0,sidePanelUrl:(a==null?void 0:G(a,2))||void 0,additionalData:(a==null?void 0:G(a,3))||void 0}}async setCollaborationStartingState(a){a=Ec(a);await Ic(this.context.j,(new xc).setCollaborationStartingState(gc(a)))}async clearCollaborationStartingState(){await Jc(this.context.j)}on(a,b){this.La[a]=b}async getMeetPlatformInfo(){const a=await Hc(this.context.j,ic(3));return{isMeetHardware:Vb(pb(Jb(a.getMeetPlatformInfo(),
|
|
28
|
+
1)),!1)}}async getCurrentMeetingRecordingStatus(){var a=await Hc(this.context.j,ic(4));let b;a=(b=H(a,Pb(a,qc,5)))!=null?b:0;let c;return(c=Bc.get(a))!=null?c:"RECORDING_STATUS_UNKNOWN"}async closeAddon(){await Kc(this.context.j)}async startCollaboration(a){const b=new yc;a&&(a=Ec(a),b.setCollaborationStartingState(gc(a)));await Lc(this.context.j,b)}};var Nc=$b(class extends L{getFrameOpenReason(){return H(this,5)}});var N=class extends Error{constructor(a,b){super(`Meet Addon SDK error: ${`${a}${b?` - ${b}`:""}`}`)}},O=class extends Error{constructor(a,b){super(`Meet Addon SDK error: ${`${a}${b?` - ${b}`:""}`}`)}},Oc={message:"An unexpected error has occurred.",i:"No further information is available.",h:O},Pc={message:"An unexpected error has occurred.",i:"No further information is available.",h:N},Qc={message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode.",
|
|
29
|
+
h:N},Rc={message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",i:"Make sure the destination frame has connected before sending messages to it.",h:N},Sc={message:"Origin of the CollaborationStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",i:"Ensure that the CollaborationStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest.",h:N},Tc=a=>({message:`Could not connect to ${a} channel. Unknown error`,
|
|
30
|
+
i:"No further information is available.",h:O}),Uc={message:"clearCollaborationStartingState cannot be called while a collaboration is ongoing.",i:"Ensure that no collaboration is ongoing before calling clearCollaborationStartingState.",h:N},Vc={message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message.",h:N},Wc={message:"Requested method requires EAP enrollment",i:"No further information is available.",h:N},Xc={message:"The collaborationStartingState cannot be updated while the user is not the initiator of the current collaboration.",
|
|
31
|
+
i:"Ensure that the user is the initiator of the current collaboration or that the collaboration has ended before updating the collaborationStartingState.",h:N},Yc={message:"The size of the collaborationStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the collaborationStartingState URL size is less than 512 characters and the data size is less than 4096 characters.",h:N},Zc={message:"The size of the frame to frame message exceeds the limits allowed.",i:"Ensure that the frame to frame message size is less than 1 megabyte.",
|
|
32
|
+
h:N};function $c(a){switch(a){case 0:return Oc;case 1:return Rc;case 2:return Sc;case 3:return Uc;case 4:return Vc;case 5:return Wc;case 6:return Qc;case 7:return Xc;case 8:return Yc;case 9:return Zc;default:return Pc}}
|
|
33
|
+
function bd(a){let b;var c=(b=H(a,1))!=null?b:0;a=cd(a.cb());switch(c){case 1:return{message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,i:"No further information is available.",h:O};case 2:return{message:`Could not connect to ${a}. A conflicting ${a} exists.`,i:"No further information is available.",h:O};case 3:return{message:`Could not connect to ${a} channel. The addon does not have permission to open a ${a}.`,i:"No further information is available.",h:O};case 4:return{message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,
|
|
34
|
+
i:"No further information is available.",h:O};case 0:return Tc(a);case 5:a:switch(a){case "coActivity":c={message:`Could not connect to ${a} channel. The coActivity was not found.`,i:`Consider starting the ${a} only after receiving a callback from the 'userInitiatedCollaboration' callback.`,h:O};break a;default:c={message:`Could not connect to ${a} channel.`,i:"No further information is available.",h:O}}return c;default:return Tc(a)}}
|
|
35
|
+
function cd(a){switch(a){case 2:return"coActivity";case 3:return"guaranteed delivery";case 0:return"unknown";default:return"unknown"}}function dd(a){a=bd(a);return new a.h(a.message,a.i)}function ed(a=""){throw new Pc.h(Pc.message+(a?` ${a}`:""),Pc.i);};class fd{constructor(a,b){this.wb=a[m.Symbol.iterator]();this.Kb=b}[Symbol.iterator](){return this}next(){const a=this.wb.next();return{value:a.done?void 0:this.Kb.call(void 0,a.value),done:a.done}}}var gd=function(a,b){return new fd(a,b)};var hd=function(){};function id(a,b){for(const c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}const jd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function kd(a,b){let c,d;for(let e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(let f=0;f<jd.length;f++)c=jd[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var ld=function(){var a=document;var b="IFRAME";a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};const md=m.URL;function nd(){var a=window.location.href,b;if(b=(new md(a)).searchParams.get("meet_sdk"))b=Nc(Ca(b));else throw new N(`${"Missing required Meet SDK URL parameter"}: ${"meet_sdk"}. In URL ${a}`,"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect).");var c=G(b,1);if(!c)throw new N(`${"Missing required Meet SDK URL parameter"}: ${"meet_addon_frame_type"}. In URL ${a}`,"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect).");
|
|
36
36
|
c=Number(c);if(c!==2&&c!==1)throw new N("The frame type URL parameter is set to an unexpected value.","This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect).");const d=G(b,2);if(!d)throw new N(`${"Missing required Meet SDK URL parameter"}: ${"meet_control_channel_name"}. In URL ${a}`,"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect).");
|
|
37
|
-
const e=G(b,4);if(!e)throw new N(`${"Missing required Meet SDK URL parameter"}: ${"addon_cloud_project_number"}. In URL ${a}`,"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect).");var f;a=(f=b.getFrameOpenReason())!=null?f:0;f=G(b,3)||"https://meet.google.com";return{Db:a,frameType:c,zb:d,cloudProjectNumber:e,lb:f}};var
|
|
38
|
-
e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,l)}}});if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.Ya;c.Ya=null;e()}};return function(e){d.next={Ya:e};d=d.next;b.port2.postMessage(0)}}return function(e){m.setTimeout(e,0)}};class
|
|
39
|
-
var
|
|
40
|
-
R.prototype.cancel=function(a){if(this.s==0){var b=new S(a);
|
|
41
|
-
var
|
|
42
|
-
l);k===void 0&&l instanceof S?g(l):f(k)}catch(q){g(q)}}:g});e.G.K=a;
|
|
43
|
-
var
|
|
44
|
-
(f=!0,c.call(e,k))},l=function(k){f||(f=!0,d.call(e,k))};try{b.call(a,g,l)}catch(k){l(k)}},
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
Ta:d})}catch(f){la(f)}for(const d of a.T)d.resolve(b);a.T.clear();c()})})},
|
|
48
|
-
a)}next(a){return this.promise(!1,a)}promise(a,b){const c=
|
|
49
|
-
for(const a of this.T)a.reject(new S("Signal asynchronously disposed"));this.T.clear()})}};const
|
|
50
|
-
function
|
|
37
|
+
const e=G(b,4);if(!e)throw new N(`${"Missing required Meet SDK URL parameter"}: ${"addon_cloud_project_number"}. In URL ${a}`,"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect).");var f;a=(f=b.getFrameOpenReason())!=null?f:0;f=G(b,3)||"https://meet.google.com";return{Db:a,frameType:c,zb:d,cloudProjectNumber:e,lb:f}};var od=class extends L{constructor(){super()}};var pd=class extends L{constructor(){super()}};var qd=class extends L{constructor(){super()}};var rd=class extends L{constructor(){super()}};var ud=function(){var a=new sd,b=new qd;return F(a,1,td,b)},vd=function(){var a=new sd,b=new rd;return F(a,2,td,b)},sd=class extends L{constructor(){super()}cb(){return B(this,td)}},td=[1,2];var wd=class extends L{constructor(){super()}};var xd=class extends L{constructor(){super()}};var yd=class extends L{constructor(){super()}qb(a){return J(this,2,a)}};var zd=class extends L{constructor(){super()}};var Ad=class extends L{constructor(){super()}};var Q=class extends L{constructor(){super()}eb(){return B(this,P)}},P=[1,2,5,6,7,8,9,10,11,13,14,15];var Bd=class extends L{},Cd=$b(Bd),Dd=[1,2];class Ed{constructor(a,b){this.data=a;this.channel=b}};var Fd=Promise;var Hd=function(a){const b=new MessageChannel;Gd(b.port1,a);return b},Jd=function(a,b){Gd(a,b);return new Id(a)};class Id{constructor(a){this.Rb=a}send(a,b,c=[]){b=Hd(b);this.Rb.postMessage(a,[b.port2].concat(c))}ea(a,b){return new Fd(c=>{this.send(a,c,b)})}}const Gd=function(a,b){b&&(a.onmessage=c=>{var d=c.data;c=Jd(c.ports[0]);b(new Ed(d,c))})};class Kd{constructor(a,b){this.Jb=100;this.Ab=a;this.Ub=b;this.ra=0;this.oa=null}get(){let a;this.ra>0?(this.ra--,a=this.oa,this.oa=a.next,a.next=null):a=this.Ab();return a}put(a){this.Ub(a);this.ra<this.Jb&&(this.ra++,a.next=this.oa,this.oa=a)}};var Ld,Md=function(){var a=m.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!n("Presto")&&(a=function(){var e=ld();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),l=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=ha(function(k){if((l=="*"||k.origin==l)&&k.data==g)this.port1.onmessage()},this);f.addEventListener("message",
|
|
38
|
+
e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,l)}}});if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.Ya;c.Ya=null;e()}};return function(e){d.next={Ya:e};d=d.next;b.port2.postMessage(0)}}return function(e){m.setTimeout(e,0)}};class Nd{constructor(){this.wa=this.V=null}add(a,b){const c=Od.get();c.set(a,b);this.wa?this.wa.next=c:this.V=c;this.wa=c}remove(){let a=null;this.V&&(a=this.V,this.V=this.V.next,this.V||(this.wa=null),a.next=null);return a}}var Od=new Kd(()=>new Pd,a=>a.reset());class Pd{constructor(){this.next=this.scope=this.Da=null}set(a,b){this.Da=a;this.scope=b;this.next=null}reset(){this.next=this.scope=this.Da=null}};let Qd,Rd=!1,Sd=new Nd,Ud=(a,b)=>{Qd||Td();Rd||(Qd(),Rd=!0);Sd.add(a,b)},Td=()=>{if(m.Promise&&m.Promise.resolve){const a=m.Promise.resolve(void 0);Qd=()=>{a.then(Vd)}}else Qd=()=>{var a=Vd;typeof m.setImmediate!=="function"||m.Window&&m.Window.prototype&&m.Window.prototype.setImmediate==m.setImmediate?(Ld||(Ld=Md()),Ld(a)):m.setImmediate(a)}};var Vd=()=>{let a;for(;a=Sd.remove();){try{a.Da.call(a.scope)}catch(b){la(b)}Od.put(a)}Rd=!1};var R=function(a){this.s=0;this.nb=void 0;this.M=this.F=this.K=null;this.la=this.Ca=!1;if(a!=hd)try{var b=this;a.call(void 0,function(c){Wd(b,2,c)},function(c){Wd(b,3,c)})}catch(c){Wd(this,3,c)}},Xd=function(){this.next=this.context=this.S=this.ba=this.G=null;this.X=!1};Xd.prototype.reset=function(){this.context=this.S=this.ba=this.G=null;this.X=!1};
|
|
39
|
+
var Yd=new Kd(function(){return new Xd},function(a){a.reset()}),Zd=function(a,b,c){var d=Yd.get();d.ba=a;d.S=b;d.context=c;return d},ae=function(){var a,b,c=new R(function(d,e){a=d;b=e});return new $d(c,a,b)};R.prototype.then=function(a,b,c){return be(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)};R.prototype.$goog_Thenable=!0;var de=function(a,b){b=Zd(b,b);b.X=!0;ce(a,b)};R.prototype.Vb=function(a,b){return be(this,null,a,b)};R.prototype.catch=R.prototype.Vb;
|
|
40
|
+
R.prototype.cancel=function(a){if(this.s==0){var b=new S(a);Ud(function(){ee(this,b)},this)}};
|
|
41
|
+
var ee=function(a,b){if(a.s==0)if(a.K){var c=a.K;if(c.F){for(var d=0,e=null,f=null,g=c.F;g&&(g.X||(d++,g.G==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.s==0&&d==1?ee(c,b):(f?(d=f,d.next==c.M&&(c.M=d),d.next=d.next.next):fe(c),ge(c,e,3,b)))}a.K=null}else Wd(a,3,b)},ce=function(a,b){a.F||a.s!=2&&a.s!=3||he(a);a.M?a.M.next=b:a.F=b;a.M=b},be=function(a,b,c,d){var e=Zd(null,null,null);e.G=new R(function(f,g){e.ba=b?function(l){try{var k=b.call(d,l);f(k)}catch(q){g(q)}}:f;e.S=c?function(l){try{var k=c.call(d,
|
|
42
|
+
l);k===void 0&&l instanceof S?g(l):f(k)}catch(q){g(q)}}:g});e.G.K=a;ce(a,e);return e.G};R.prototype.Xb=function(a){this.s=0;Wd(this,2,a)};R.prototype.Yb=function(a){this.s=0;Wd(this,3,a)};
|
|
43
|
+
var Wd=function(a,b,c){if(a.s==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.s=1;a:{var d=c,e=a.Xb,f=a.Yb;if(d instanceof R){ce(d,Zd(e||hd,f||null,a));var g=!0}else{if(d)try{var l=!!d.$goog_Thenable}catch(q){l=!1}else l=!1;if(l)d.then(e,f,a),g=!0;else{if(ba(d))try{var k=d.then;if(typeof k==="function"){ie(d,k,e,f,a);g=!0;break a}}catch(q){f.call(a,q);g=!0;break a}g=!1}}}g||(a.nb=c,a.s=b,a.K=null,he(a),b!=3||c instanceof S||je(a,c))}},ie=function(a,b,c,d,e){var f=!1,g=function(k){f||
|
|
44
|
+
(f=!0,c.call(e,k))},l=function(k){f||(f=!0,d.call(e,k))};try{b.call(a,g,l)}catch(k){l(k)}},he=function(a){a.Ca||(a.Ca=!0,Ud(a.Cb,a))},fe=function(a){var b=null;a.F&&(b=a.F,a.F=b.next,b.next=null);a.F||(a.M=null);return b};R.prototype.Cb=function(){for(var a;a=fe(this);)ge(this,a,this.s,this.nb);this.Ca=!1};
|
|
45
|
+
var ge=function(a,b,c,d){if(c==3&&b.S&&!b.X)for(;a&&a.la;a=a.K)a.la=!1;if(b.G)b.G.K=null,ke(b,c,d);else try{b.X?b.ba.call(b.context):ke(b,c,d)}catch(e){le.call(null,e)}Yd.put(b)},ke=function(a,b,c){b==2?a.ba.call(a.context,c):a.S&&a.S.call(a.context,c)},je=function(a,b){a.la=!0;Ud(function(){a.la&&le.call(null,b)})},le=la,S=function(a){ka.call(this,a)};ja(S,ka);S.prototype.name="cancel";var $d=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let me=1,ne=new WeakMap;
|
|
46
|
+
var pe=function(a,b,c){var d=oe;a.tb.has(b);d({signal:b,data:c})},re=class extends M{constructor(){super();this.tb=new Set}signal(){const a=new qe;this.tb.add(a);Dc(this,ia(Cc,a));return a}},oe=function(...a){if(a.length===0)return Promise.resolve();if(a.length===1){const {signal:b,data:c}=a[0];return se(b,c)}return Promise.all(a.map(({signal:b,data:c})=>se(b,c))).then()},se=function(a,b){return new Promise(c=>{te(()=>{a.Xa&&(a.Ib=b,a.ib=!0);for(const {Ta:d,slot:e}of a.o.values())try{e(b,{signal:a,
|
|
47
|
+
Ta:d})}catch(f){la(f)}for(const d of a.T)d.resolve(b);a.T.clear();c()})})},Fc=function(a,b,c){const d=me++;te(()=>{ue(a,d,b,c)});return d},ue=function(a,b,c,d){if(!a.A)if(d){if(!d.A){const e=()=>{te(()=>{a.o.delete(b);const f=ne.get(d);f&&ua(f,e)})};a.o.set(b,{Ta:b,slot:c,Aa:e});ve(d,e)}}else a.o.set(b,{Ta:b,slot:c,Aa:()=>a.o.delete(b)})},qe=class extends M{constructor(){super();this.Xa=!1;this.o=new Map;this.T=new Set;this.ib=!1}detach(a){te(()=>{const b=this.o.get(a);b&&b.Aa()})}value(a){return this.promise(!0,
|
|
48
|
+
a)}next(a){return this.promise(!1,a)}promise(a,b){const c=ae();te(()=>{if(this.A)c.reject(new S("Signal initially disposed"));else if(b&&b.A)c.reject(new S("Owner initially disposed"));else if(a&&this.Xa&&this.ib)c.resolve(this.Ib);else if(this.T.add(c),de(c.promise,()=>{this.T.delete(c)}),b){const d=()=>{c.reject(new S("Owner asynchronously disposed"))};de(c.promise,()=>{const e=ne.get(b);e&&ua(e,d)});ve(b,d)}});return c.promise}H(){super.H();te(()=>{for(const {Aa:a}of this.o.values())a();this.o.clear();
|
|
49
|
+
for(const a of this.T)a.reject(new S("Signal asynchronously disposed"));this.T.clear()})}};const we=[];let xe=!1;function te(a){we.push(a);ye()}async function ye(){if(!xe)try{xe=!0;let a=ze(0);for(;a<we.length;)await Promise.resolve(),a=ze(a)}catch(a){la(a)}finally{we.length=0,xe=!1}}function ze(a){const b=a+100;for(;a<b&&a<we.length;)try{we[a++]()}catch(c){la(c)}return a}
|
|
50
|
+
function ve(a,b){if(a.A)b();else{var c=ne.get(a);if(c)c.push(b);else{const d=[b];ne.set(a,d);Dc(a,()=>{for(const e of[...d])e();ne.delete(a)})}}};function T(a){var b=new Bd;a=F(b,1,Dd,a);return{content:Yb(a)}}const Ae=new re;function Be(a,b){const c=Ae.signal();return{channel:Jd(a,d=>{const e=b(d.data);pe(Ae,c,{content:e,mb:d})}),signal:c}};var Ce=function(a,b){return K(a,1,b)},De=class extends L{};var Ee=class extends L{pb(a){return E(this,1,a)}};var Fe=class extends L{pb(a){return E(this,1,a)}};var He=$b(class extends L{I(){return B(this,Ge)}Ha(){return I(this,Ee,1,Ge)}ua(a){return F(this,1,Ge,a)}}),Ge=[1,2];let Ie;var U=class extends L{getState(){const a=this.g;let b=a[u];const c=Ib(a,b,1),d=db(c,!0,!!(b&34));d!=null&&d!==c&&z(a,b,1,d);return d==null?Na():d}};var V=class extends L{};var Ke=class extends L{Fa(){return I(this,U,2,Je)}sa(a){F(this,2,Je,a)}na(){return A(this,U,2,Je)}Ga(){return I(this,V,3,Je)}ta(a){F(this,3,Je,a)}Ja(){return A(this,V,3,Je)}},Je=[2,3];var Le=$b(class extends L{});var Ne=$b(class extends L{I(){return B(this,Me)}}),Me=[1,2];var Oe=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.ca=!1};Oe.prototype.stopPropagation=function(){this.ca=!0};Oe.prototype.preventDefault=function(){this.defaultPrevented=!0};var Pe=function(){if(!m.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{const c=()=>{};m.addEventListener("test",c,b);m.removeEventListener("test",c,b)}catch(c){}return a}();var Re=function(a,b){Oe.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.Y=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;
|
|
51
51
|
this.currentTarget=b;if(b=a.relatedTarget){if(wa){a:{try{va(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=xa||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=xa||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?
|
|
52
|
-
a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=typeof a.pointerType==="string"?a.pointerType:
|
|
53
|
-
a;a.defaultPrevented&&
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
d,e);else if(a.attachEvent)a.attachEvent(
|
|
57
|
-
0;f<b.length;f++)
|
|
58
|
-
|
|
59
|
-
class
|
|
60
|
-
W.prototype.delete=function(a){return
|
|
61
|
-
h.set=function(a,b){
|
|
62
|
-
h.entries=function(){const a=this;return
|
|
63
|
-
X.prototype.dispatchEvent=function(a){var b,c=this.Qa;if(c)for(b=[];c;c=c.Qa)b.push(c);c=this.ub;var d=a.type||a;if(typeof a==="string")a=new
|
|
64
|
-
X.prototype.H=function(){X.U.H.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.m){for(var d=a.m[c],e=0;e<d.length;e++)++b,
|
|
65
|
-
X.prototype.Ia=function(a,b,c,d){return this.B.Ia(String(a),b,c,d)};X.prototype.hasListener=function(a,b){return this.B.hasListener(a!==void 0?String(a):void 0,b)};var
|
|
66
|
-
h.start=function(){this.enabled=!0;this.u||(this.u=this.fa.setTimeout(this.Wa,this.qa),this.kb=Date.now())};h.stop=function(){this.enabled=!1;this.u&&(this.fa.clearTimeout(this.u),this.u=null)};h.H=function(){
|
|
67
|
-
var
|
|
68
|
-
b){var c=Y,d=new Q;b=F(d,14,P,b);await c(a,T(b))},
|
|
69
|
-
` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=I(c,
|
|
70
|
-
|
|
71
|
-
class
|
|
72
|
-
function
|
|
73
|
-
a.lb;const c=a.zb;let d;
|
|
74
|
-
d=await
|
|
75
|
-
|
|
76
|
-
b=a.send;var c=new
|
|
77
|
-
function
|
|
78
|
-
const
|
|
79
|
-
function
|
|
80
|
-
class
|
|
81
|
-
this.C=null;this.Na=0;d&&
|
|
82
|
-
context:{R:2}}})}notifyPlayoutRate(a){
|
|
83
|
-
function
|
|
84
|
-
async function
|
|
85
|
-
for(var
|
|
52
|
+
a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=typeof a.pointerType==="string"?a.pointerType:Qe[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.Y=
|
|
53
|
+
a;a.defaultPrevented&&Re.U.preventDefault.call(this)}};ja(Re,Oe);var Qe={2:"touch",3:"pen",4:"mouse"};Re.prototype.stopPropagation=function(){Re.U.stopPropagation.call(this);this.Y.stopPropagation?this.Y.stopPropagation():this.Y.cancelBubble=!0};Re.prototype.preventDefault=function(){Re.U.preventDefault.call(this);var a=this.Y;a.preventDefault?a.preventDefault():a.returnValue=!1};var Se="closure_listenable_"+(Math.random()*1E6|0);var Te=0;var Ue=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ma=e;this.key=++Te;this.da=this.ia=!1},Ve=function(a){a.da=!0;a.listener=null;a.proxy=null;a.src=null;a.ma=null};var We=function(a){this.src=a;this.m={};this.ga=0};We.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.m[f];a||(a=this.m[f]=[],this.ga++);var g=Xe(a,b,d,e);g>-1?(b=a[g],c||(b.ia=!1)):(b=new Ue(b,this.src,f,!!d,e),b.ia=c,a.push(b));return b};We.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.m))return!1;var e=this.m[a];b=Xe(e,b,c,d);return b>-1?(Ve(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.m[a],this.ga--),!0):!1};
|
|
54
|
+
var Ye=function(a,b){var c=b.type;c in a.m&&ua(a.m[c],b)&&(Ve(b),a.m[c].length==0&&(delete a.m[c],a.ga--))};We.prototype.Ia=function(a,b,c,d){a=this.m[a.toString()];var e=-1;a&&(e=Xe(a,b,c,d));return e>-1?a[e]:null};We.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return id(this.m,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};
|
|
55
|
+
var Xe=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.da&&f.listener==b&&f.capture==!!c&&f.ma==d)return e}return-1};var Ze="closure_lm_"+(Math.random()*1E6|0),$e={},af=0,cf=function(a,b,c,d,e){if(d&&d.once)bf(a,b,c,d,e);else if(Array.isArray(b))for(var f=0;f<b.length;f++)cf(a,b[f],c,d,e);else c=df(c),a&&a[Se]?ef(a,b,c,ba(d)?!!d.capture:!!d,e):ff(a,b,c,!1,d,e)},ff=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=ba(e)?!!e.capture:!!e,l=gf(a);l||(a[Ze]=l=new We(a));c=l.add(b,c,d,g,f);if(!c.proxy){d=hf();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Pe||(e=g),e===void 0&&(e=!1),a.addEventListener(b.toString(),
|
|
56
|
+
d,e);else if(a.attachEvent)a.attachEvent(jf(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");af++}},hf=function(){const a=kf,b=function(c){return a.call(b.src,b.listener,c)};return b},bf=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)bf(a,b[f],c,d,e);else c=df(c),a&&a[Se]?a.B.add(String(b),c,!0,ba(d)?!!d.capture:!!d,e):ff(a,b,c,!0,d,e)},lf=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
|
|
57
|
+
0;f<b.length;f++)lf(a,b[f],c,d,e);else d=ba(d)?!!d.capture:!!d,c=df(c),a&&a[Se]?a.B.remove(String(b),c,d,e):a&&(a=gf(a))&&(b=a.Ia(b,c,d,e))&&mf(b)},mf=function(a){if(typeof a!=="number"&&a&&!a.da){var b=a.src;if(b&&b[Se])Ye(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(jf(c),d):b.addListener&&b.removeListener&&b.removeListener(d);af--;(c=gf(b))?(Ye(c,a),c.ga==0&&(c.src=null,b[Ze]=null)):Ve(a)}}},jf=function(a){return a in
|
|
58
|
+
$e?$e[a]:$e[a]="on"+a},kf=function(a,b){if(a.da)a=!0;else{b=new Re(b,this);var c=a.listener,d=a.ma||a.src;a.ia&&mf(a);a=c.call(d,b)}return a},gf=function(a){a=a[Ze];return a instanceof We?a:null},nf="__closure_events_fn_"+(Math.random()*1E9>>>0),df=function(a){if(typeof a==="function")return a;a[nf]||(a[nf]=function(b){return a.handleEvent(b)});return a[nf]};var of=function(){};of.prototype.next=function(){return pf};var pf={done:!0,value:void 0};of.prototype.L=function(){return this};var tf=function(a){if(a instanceof qf||a instanceof rf||a instanceof sf)return a;if(typeof a.next=="function")return new qf(()=>a);if(typeof a[Symbol.iterator]=="function")return new qf(()=>a[Symbol.iterator]());if(typeof a.L=="function")return new qf(()=>a.L());throw Error("Not an iterator or iterable.");};class qf{constructor(a){this.Ea=a}L(){return new rf(this.Ea())}[Symbol.iterator](){return new sf(this.Ea())}Ua(){return new sf(this.Ea())}}
|
|
59
|
+
class rf extends of{constructor(a){super();this.aa=a}next(){return this.aa.next()}[Symbol.iterator](){return new sf(this.aa)}Ua(){return new sf(this.aa)}}class sf extends qf{constructor(a){super(()=>a);this.aa=a}next(){return this.aa.next()}};var W=function(a,b){this.D={};this.l=[];this.ha=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)},vf=function(a){uf(a);return a.l.concat()};W.prototype.has=function(a){return wf(this.D,a)};W.prototype.clear=function(){this.D={};this.ha=this.size=this.l.length=0};W.prototype.remove=function(a){return this.delete(a)};
|
|
60
|
+
W.prototype.delete=function(a){return wf(this.D,a)?(delete this.D[a],--this.size,this.ha++,this.l.length>2*this.size&&uf(this),!0):!1};var uf=function(a){if(a.size!=a.l.length){for(var b=0,c=0;b<a.l.length;){var d=a.l[b];wf(a.D,d)&&(a.l[c++]=d);b++}a.l.length=c}if(a.size!=a.l.length){var e={};for(c=b=0;b<a.l.length;)d=a.l[b],wf(e,d)||(a.l[c++]=d,e[d]=1),b++;a.l.length=c}};h=W.prototype;h.get=function(a,b){return wf(this.D,a)?this.D[a]:b};
|
|
61
|
+
h.set=function(a,b){wf(this.D,a)||(this.size+=1,this.l.push(a),this.ha++);this.D[a]=b};h.addAll=function(a){if(a instanceof W)for(var b=vf(a),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};h.forEach=function(a,b){for(var c=vf(this),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new W(this)};h.keys=function(){return tf(this.L(!0)).Ua()};h.values=function(){return tf(this.L(!1)).Ua()};
|
|
62
|
+
h.entries=function(){const a=this;return gd(this.keys(),function(b){return[b,a.get(b)]})};h.L=function(a){uf(this);var b=0,c=this.ha,d=this,e=new of;e.next=function(){if(c!=d.ha)throw Error("The map has changed since the iterator was created");if(b>=d.l.length)return pf;var f=d.l[b++];return{value:a?f:d.D[f],done:!1}};return e};var wf=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var X=function(){M.call(this);this.B=new We(this);this.ub=this;this.Qa=null};ja(X,M);X.prototype[Se]=!0;X.prototype.addEventListener=function(a,b,c,d){cf(this,a,b,c,d)};X.prototype.removeEventListener=function(a,b,c,d){lf(this,a,b,c,d)};
|
|
63
|
+
X.prototype.dispatchEvent=function(a){var b,c=this.Qa;if(c)for(b=[];c;c=c.Qa)b.push(c);c=this.ub;var d=a.type||a;if(typeof a==="string")a=new Oe(a,c);else if(a instanceof Oe)a.target=a.target||c;else{var e=a;a=new Oe(d,c);kd(a,e)}e=!0;if(b)for(var f=b.length-1;!a.ca&&f>=0;f--){var g=a.currentTarget=b[f];e=xf(g,d,!0,a)&&e}a.ca||(g=a.currentTarget=c,e=xf(g,d,!0,a)&&e,a.ca||(e=xf(g,d,!1,a)&&e));if(b)for(f=0;!a.ca&&f<b.length;f++)g=a.currentTarget=b[f],e=xf(g,d,!1,a)&&e;return e};
|
|
64
|
+
X.prototype.H=function(){X.U.H.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.m){for(var d=a.m[c],e=0;e<d.length;e++)++b,Ve(d[e]);delete a.m[c];a.ga--}}this.Qa=null};var ef=function(a,b,c,d,e){a.B.add(String(b),c,!1,d,e)},xf=function(a,b,c,d){b=a.B.m[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.da&&g.capture==c){var l=g.listener,k=g.ma||g.src;g.ia&&Ye(a.B,g);e=l.call(k,d)!==!1&&e}}return e&&!d.defaultPrevented};
|
|
65
|
+
X.prototype.Ia=function(a,b,c,d){return this.B.Ia(String(a),b,c,d)};X.prototype.hasListener=function(a,b){return this.B.hasListener(a!==void 0?String(a):void 0,b)};var yf=function(a,b){X.call(this);this.qa=a||1;this.fa=b||m;this.Wa=ha(this.Wb,this);this.kb=Date.now()};ja(yf,X);h=yf.prototype;h.enabled=!1;h.u=null;h.setInterval=function(a){this.qa=a;this.u&&this.enabled?(this.stop(),this.start()):this.u&&this.stop()};h.Wb=function(){if(this.enabled){var a=Date.now()-this.kb;a>0&&a<this.qa*.8?this.u=this.fa.setTimeout(this.Wa,this.qa-a):(this.u&&(this.fa.clearTimeout(this.u),this.u=null),this.Ba(),this.enabled&&(this.stop(),this.start()))}};h.Ba=function(){this.dispatchEvent("tick")};
|
|
66
|
+
h.start=function(){this.enabled=!0;this.u||(this.u=this.fa.setTimeout(this.Wa,this.qa),this.kb=Date.now())};h.stop=function(){this.enabled=!1;this.u&&(this.fa.clearTimeout(this.u),this.u=null)};h.H=function(){yf.U.H.call(this);this.stop();delete this.fa};var zf=function(a,b,c){yf.call(this,b,c)},Af;ja(zf,yf);zf.prototype.Ba=function(){zf.U.Ba.call(this)};var Bf=function(a){Af||(Af=new W);const b=new zf("heartbeat interval",1E3),c=Object.prototype.hasOwnProperty.call(b,ca)&&b[ca]||(b[ca]=++da);Af.set(c,b);cf(b,"tick",a,!1);b.start()};var Cf=({destination:a,origin:b,hc:c,vb:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=Hd(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return Jd(f.port1,e)};function Df(a,b){const c=new re,d=c.signal();a=Cf({destination:window.parent,origin:b,vb:a,onMessage:e=>{const f=Cd(e.data.content);B(f,Dd)===2&&pe(c,d,{content:I(f,wc,2,Dd),mb:e,messagePort:e.data.messagePort})}});return new Ef(d,a)}
|
|
67
|
+
var Gc=async function(a){a=a.channel;var b=a.ea;var c=new Q;var d=new zd;c=F(c,13,P,d);await b.call(a,T(c))},Hc=async function(a,b){var c=Y,d=new Q;b=F(d,9,P,b);a=await c(a,T(b));let e;return(e=I(Cd(a.data.content),wc,2,Dd))==null?void 0:I(e,rc,9,vc)},Ic=async function(a,b){var c=Y,d=new Q;b=F(d,8,P,b);await c(a,T(b))},Jc=async function(a){var b=Y;var c=new Q;var d=new od;c=F(c,10,P,d);await b(a,T(c))},Kc=async function(a){var b=Y;var c=new Q;var d=new pd;c=F(c,11,P,d);await b(a,T(c))},Lc=async function(a,
|
|
68
|
+
b){var c=Y,d=new Q;b=F(d,14,P,b);await c(a,T(b))},Ff=async function(a){Bf(async()=>{await Gc(a)})},Y=async function(a,b){(a=await a.channel.ea(b))||ed("Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||ed("Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||ed("Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Cd(b)}catch(d){ed("The ControlMessage can't be deserialized."+
|
|
69
|
+
` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=I(c,wc,2,Dd))||ed("MeetToAddonMessage field on ControlMessage is falsy."+` ${JSON.stringify(b)}`);b=b==null?void 0:I(b,mc,10,vc);if((b==null?void 0:H(b,1))!==void 0)throw a=H(b,1),a=$c(a),new a.h(a.message,a.i);return a},Gf=async function(a,b,c){var d=Y,e=new Q;b=F(e,1,P,b);d=await d(a,T(b));a=d.data.messagePort;var f;(d=(f=I(Cd(d.data.content),wc,2,Dd))==null?void 0:I(f,lc,1,vc))!=null?f=d:(f=new lc,f=K(f,1,0));return{channel:a?Be(a,c):void 0,response:f}},
|
|
70
|
+
Hf=async function(a){const b=ud(),{channel:c,response:d}=await Gf(a,b,e=>Ne(e));if(!c)throw dd(d);return c},If=async function(a){const b=vd(),{channel:c,response:d}=await Gf(a,b,e=>He(e));if(!c)throw dd(d);return{channel:c,response:d}},Jf=async function(a){var b=Y;var c=new Q;var d=new Ad;c=F(c,5,P,d);await b(a,T(c))},Kf=async function(a){var b=Y;var c=new Q;var d=new xd;c=F(c,6,P,d);await b(a,T(c))},Lf=async function(a,b,c){var d=Y,e=new Q,f=new yd;b=K(f,1,b).qb(c);e=F(e,7,P,b);await d(a,T(e))};
|
|
71
|
+
class Ef extends M{constructor(a,b){super();this.Pb=a;this.channel=b;a=Ie||(Ie=ac("[0,7,0]"));a=Hb(a);a=Lb(a,4,vb("642016357"));b=a.g;var c=b[u];b=c&2?a:yb(a.constructor,Gb(b,c,!0));a=new Q;c=new wd;b=E(c,2,b);a=F(a,2,P,b);this.channel.send(T(a));Ff(this)}};let Mf;
|
|
72
|
+
function Nf(a){var b=a.cloudProjectNumber;a=nd();if(a.cloudProjectNumber!==b)throw new N("Cloud Project Number provided by meet does not match the one passed in by the SDK. Ensure that the correct Cloud Project Number is passed to the SDK as a string.","This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect) and ensure that the correct Cloud Project Number was passed into the SDK as a string.");b=
|
|
73
|
+
a.lb;const c=a.zb;let d;Mf=(d=Mf)!=null?d:Df(c,b);return new Of(a)}var Of=class{constructor(a){var b=Mf;this.ya=a;this.j=b}delete(){throw Error("Not implemented.");}};var Pf=class extends L{constructor(){super()}};var Qf=class extends L{constructor(){super()}};var Sf=class extends L{constructor(){super()}I(){return B(this,Rf)}Ha(){return I(this,Ee,1,Rf)}ua(a){return F(this,1,Rf,a)}},Rf=[1,2,3];var Vf=async function(a,b){switch(b.I()){case 1:var c=Tf;b=b.Ha();await c(a,b);break;case 2:return c=Uf,b=I(b,Fe,2,Ge),await c(a,b)}},Xf=function(a){a.Ka=setTimeout(async()=>{await Wf(a)},3E3)},Tf=async function(a,b){a.Ka&&(clearTimeout(a.Ka),Xf(a));let c;((c=D(b,De,1))==null?void 0:H(c,1))!==H(a.za,1)?(a.Pa++,await Yf(a)):a.Pa=0},Uf=async function(a,b){var c=new Qf;b=D(b,De,1);if(!b)return c=new Sf,a=new Qf,a=K(a,1,4),F(c,2,Rf,a);var d;const e=(d=Bc.get(H(b,1)))!=null?d:"RECORDING_STATUS_UNKNOWN";
|
|
74
|
+
d=await Zf(a,e);K(c,1,d);d===2&&Ce(a.za,H(b,1));a=new Sf;return F(a,2,Rf,c)},Yf=async function(a){if(a.Pa>3)try{await a.O.onRecordingStatusChanged({recordingStatus:"RECORDING_STATUS_UNKNOWN"})}catch(b){}},Zf=async function(a,b){const c=new Promise((d,e)=>{setTimeout(()=>{e(new $f)},5E3)});try{return await Promise.race([c,(async()=>a.O.onRecordingStatusChanged({recordingStatus:b}))()])?2:3}catch(d){return d instanceof $f?5:4}},Wf=async function(a){try{await a.O.onRecordingStatusChanged({recordingStatus:"RECORDING_STATUS_UNKNOWN"})}catch(b){}},
|
|
75
|
+
ag=class extends M{constructor(a,b){super();this.gb=a;this.O=b;this.pa=new yf(1E3);this.Pa=0;a=this.gb.response;this.ka=this.gb.channel;this.Eb=Fc(this.ka.signal,async e=>{var f=await Vf(this,e.content);f&&(e=e.mb,f=Yb(f),e.channel.send(f,void 0,void 0))},this);let c,d;a=(d=(c=I(a,jc,3,kc))==null?void 0:H(c,1))!=null?d:0;this.za=Ce(new De,a);Dc(this,ia(Cc,this.pa));ef(this.pa,"tick",()=>{this.ka.channel.send(Yb((new Sf).ua((new Ee).pb(this.za))))});this.pa.start();Xf(this)}disconnect(){var a=this.ka.channel,
|
|
76
|
+
b=a.send;var c=new Sf;var d=new Pf;c=F(c,3,Rf,d);b.call(a,Yb(c));this.pa.stop();clearTimeout(this.Ka);this.ka.signal.detach(this.Eb)}},$f=class extends Error{constructor(){super("Timed out waiting for guaranteed delivery delegate method to return")}};async function bg(a,b){a=await If(a.j);return new ag(a,b)};var dg=class extends L{Sa(a){return Xb(this,a)}Fa(){return I(this,U,2,cg)}sa(a){F(this,2,cg,a)}na(){return A(this,U,2,cg)}Ga(){return I(this,V,3,cg)}ta(a){F(this,3,cg,a)}Ja(){return A(this,V,3,cg)}},cg=[2,3];var eg=class extends L{constructor(){super()}};var fg=class extends L{constructor(){super()}};var gg=class extends L{constructor(){super()}Ra(a){return Lb(this,4,vb(a))}};var ig=class extends L{constructor(){super()}Sa(a){return Xb(this,a)}Fa(){return I(this,U,2,hg)}sa(a){F(this,2,hg,a)}na(){return A(this,U,2,hg)}Ga(){return I(this,V,3,hg)}ta(a){F(this,3,hg,a)}Ja(){return A(this,V,3,hg)}},hg=[2,3],jg=[5,6];var kg=class extends L{constructor(){super()}Ra(a){return J(this,1,a)}};var mg=class extends L{constructor(){super()}I(){return B(this,lg)}Ha(){return I(this,dg,1,lg)}ua(a){return F(this,1,lg,a)}},lg=[1,2,3];function ng(a){var b=new og;let c=0,d;return(...e)=>{if(pg(b)){qg(b);var f=!0}else f=!1;f?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let g;(g=d)==null||g()},rg(b))))}};var rg=function(a){const b=a.ab;let c;a=Date.now()-((c=a.Ma[a.index])!=null?c:0);return a>=b?0:b-a},pg=function(a){const b=a.ab;let c;return Date.now()-((c=a.Ma[a.index])!=null?c:0)>=b},qg=function(a){a.Ma[a.index]=Date.now();a.index=(a.index+1)%a.Lb},og=class{constructor(){this.Lb=1;this.ab=500;this.Ma=[];this.index=0}};var sg=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var tg=class{constructor(a){this.config=a}start(){this.jb!=null||(this.jb=setInterval(()=>{this.config.Ob()},this.config.Gb));return this}shutdown(){clearInterval(this.jb)}};function ug(){const a=new Map,b={set(c,d){a.set(c,d);return b},xa:()=>a};return b};function vg(a){if(a.na()){var b=a.Fa().getState();a=Uint8Array;La(Ja);var c=b.va;if(c!=null&&!Ia(c))if(typeof c==="string"){Fa.test(c)&&(c=c.replace(Fa,Ha));c=atob(c);const d=new Uint8Array(c.length);for(let e=0;e<c.length;e++)d[e]=c.charCodeAt(e);c=d}else c=null;b=c==null?c:b.va=c;return{bytes:new a(b||0)}}}function wg(a,b){a.sa(xg(b));return a}function yg(a,b){a.sa(xg(b));return a}function xg(a){var b=new U;return Rb(b,1,db(a.bytes,!1,!1),Na())}
|
|
77
|
+
function zg(a){if(a.Ja()){a=a.Ga();var b,c,d=G(a,1),e=(c=(b=D(a,bc,2))==null?void 0:Wb(b))!=null?c:0;c=a.g;let f=c[u];const g=Ib(c,f,4);b=g==null||typeof g==="number"?g:g==="NaN"||g==="Infinity"||g==="-Infinity"?Number(g):void 0;b!=null&&b!==g&&z(c,f,4,b);return{mediaId:d,mediaPlayoutPosition:e,mediaPlayoutRate:Vb(b,0),playbackState:Ag.get(H(a,3))}}}function Bg(a,b){a.ta(Cg(b));return a}function Dg(a,b){a.ta(Cg(b));return a}
|
|
78
|
+
const Ag=ug().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").xa(),Eg=ug().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).xa();function Cg(a){var b=new V;b=J(b,1,a.mediaId);var c=a.mediaPlayoutRate;if(c!=null&&typeof c!=="number")throw Error(`Value of float/double field must be a number, found ${typeof c}: ${c}`);b=Rb(b,4,c,0);c=(new bc).setSeconds(a.mediaPlayoutPosition);b=E(b,2,c);a=Eg.get(a.playbackState);return K(b,3,a)}
|
|
79
|
+
function Fg({activityTitle:a}){return(new gg).Ra(a)}function Gg(a,b){var c=new fg;b=K(c,1,b.R);F(a,6,jg,b);return a}function Hg(a){var b=new eg;F(a,5,jg,b);return a};const Ig=ug().set("co-doing",1).set("co-watching",2).xa();async function Jg(a,b,c){var d=b.ea,e=new mg;var f=(new kg).Ra(a.activityTitle);var g=Ig.get(a.Va);f=K(f,2,g);e=F(e,3,lg,f);d=await d.call(b,e,Le);let l;if((l=Vb(pb(Jb(d,1)),!1))!=null&&l)return new Kg(a,b,c,D(d,Ke,2));throw new sg;}var Lg=function(a,b){const c=a.config.fb(b);c&&!a.config.bb(a.C,c)&&(a.C=c,a.Na=Wb(b),a.Bb(a.C))},Mg=function(a,b){const {state:c,Mb:d,context:e}=b(a.C);a.C=c;a.notify(a.C,e,d)};
|
|
80
|
+
class Kg{constructor(a,b,c,d){this.O=a;this.ja=b;this.config=c;this.Bb=ng(e=>void this.O.hb(e));Ng(this.ja,e=>{const f=e.I();switch(f){case 1:Lg(this,I(e,Ke,1,Me));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.Fb=(new tg({Gb:1E3,Ob:()=>{var e;let f;const g=(f=(e=this.O).Sb)==null?void 0:f.call(e);this.C!==null&&(this.C={...this.C,...g},e=(new mg).ua(this.config.rb((new dg).Sa(this.Na),this.C)),this.ja.send(e))}})).start();
|
|
81
|
+
this.C=null;this.Na=0;d&&Lg(this,d)}disconnect(){this.ja.shutdown();this.Fb.shutdown()}notify(a,b,c){var d=c?Fg(c):void 0;c=this.config;var e=c.sb,f=(new ig).Sa(this.Na);d=E(f,4,d);a=e.call(c,d,a);a=this.config.ob(a,b);b=this.ja;c=b.send;e=new mg;a=F(e,2,lg,a);c.call(b,a)}};var Og=class{constructor(a){this.v=a}broadcastStateUpdate(a){Mg(this.v,()=>({state:a,context:{}}))}disconnect(){this.v.disconnect()}};function Pg(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Qg=class{constructor(a){this.v=a}notifySwitchedToMedia(a,b,c){Mg(this.v,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},Mb:{activityTitle:a},context:{R:1}}))}notifyPauseState(a,b){Mg(this.v,c=>{if(c==null)throw Error("Invalid before coWatchingState");return{state:{...c,playbackState:a?"PAUSE":"PLAY",mediaPlayoutPosition:b},context:{R:3}}})}notifySeekToTimestamp(a){Mg(this.v,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
|
|
82
|
+
context:{R:2}}})}notifyPlayoutRate(a){Mg(this.v,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutRate:a},context:{R:4}}})}notifyBuffering(a){Mg(this.v,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a,playbackState:"BUFFERING"},context:{R:3}}})}notifyReady(a){Mg(this.v,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},context:{R:3}}})}disconnect(){this.v.disconnect()}};
|
|
83
|
+
function Rg(a,b){if(a==null||b==null)return!1;const c=a.playbackState==="PLAY"?3*Math.max(a.mediaPlayoutRate,1):0,d=Math.abs(a.mediaPlayoutPosition-b.mediaPlayoutPosition);return a.mediaId===b.mediaId&&a.mediaPlayoutRate===b.mediaPlayoutRate&&d<=c&&a.playbackState===b.playbackState};var Ng=function(a,b){const c=Fc(a.signal,d=>{b(d)});a.o.push(c)},Sg=class{constructor(a,b){this.channel=a;this.signal=b;this.o=[]}send(a){this.channel.send(Yb(a))}async ea(a,b){a=await this.channel.ea(Yb(a));return b(a.data)}shutdown(){this.o.forEach(a=>{this.signal.detach(a)})}};function Tg(a,b){var c=Ug;const d=a.signal(),e=a.signal();Fc(b,f=>{const g=c(f)?d:e;pe(a,g,f)},a);return{Qb:d,Nb:e}}function Vg(a,b,c,d=e=>e){Fc(c,e=>{pe(a,b,d(e))},a)};async function Wg(a,b){if(b)return a=await Jg({activityTitle:b.activityTitle,Va:"co-watching",Sb:()=>b.onCoWatchingStateQuery(),hb:c=>{b.onCoWatchingStateChanged(c)}},a,{sb:Bg,rb:Dg,ob:Gg,fb:zg,bb:Rg}),new Qg(a)}async function Xg(a,b){if(b)return a=await Jg({activityTitle:b.activityTitle,Va:"co-doing",hb:c=>{b.onCoDoingStateChanged(c)}},a,{sb:wg,rb:yg,ob:Hg,fb:vg,bb:Pg}),new Og(a)}
|
|
84
|
+
async function Yg(a){const b=new re,c=b.signal();a=await a;Vg(b,c,a.signal,f=>f.content);const {Qb:d,Nb:e}=Tg(b,c);return{xb:new Sg(a.channel,d),yb:new Sg(a.channel,e)}}function Ug(a){a:switch(a.I()){case 1:a=I(a,Ke,1,Me);break a;default:throw Error("CA Message arrived with no known content message set");}return a.na()};async function Zg(a,b){({xb:a}=await Yg(Hf(a.j)));b=await Xg(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function $g(a,b){({yb:a}=await Yg(Hf(a.j)));b=await Wg(a,b);if(!b)throw Error("Failed to create co-watching session");return b};function ah(a){if(a.ya.frameType!==2)throw new N("This method can only be invoked if the addon is running in the main stage.","Use getFrameType to check whether the addon is running in the main stage before invoking this method.");return Promise.resolve(new bh(a))}var bh=class extends Mc{async notifySidePanel(a){await Lf(this.context.j,1,a)}async unloadSidePanel(){await Jf(this.context.j)}async loadSidePanel(){await Kf(this.context.j)}};function ch(a){if(a.ya.frameType!==1)throw new N("This method can only be invoked if the addon is running in the side panel.","Use getFrameType to check whether the addon is running in the side panel before invoking this method.");return Promise.resolve(new dh(a))}var dh=class extends Mc{async notifyMainStage(a){await Lf(this.context.j,2,a)}};class eh{constructor(a){this.W=Nf(a)}async createMainStageClient(){return await ah(this.W)}async createSidePanelClient(){return await ch(this.W)}async createCoWatchingClient(a){return await $g(this.W,a)}async createCoDoingClient(a){return await Zg(this.W,a)}async createGuaranteedDeliveryClient(a){return await bg(this.W,a)}}let fh=null;var gh=class{};var hh={addon:{bc:Nf,getFrameType:function(){a:{var a=nd().frameType;switch(a){case 2:a="MAIN_STAGE";break a;case 1:a="SIDE_PANEL";break a;default:throw Error(`Unknown frame type: ${a}`);}}return a},cc:ah,dc:ch,ac:function(a){a=Hf(a.j);Yg(a);return new gh},createAddonSession:async function(a){if(fh&&nd().lb!=="integration.test.google.com")throw Error("AddonSession already created");return fh=new eh(a)}}},ih=["meet"],Z=m;ih[0]in Z||typeof Z.execScript=="undefined"||Z.execScript("var "+ih[0]);
|
|
85
|
+
for(var jh;ih.length&&(jh=ih.shift());)ih.length||hh===void 0?Z=Z[jh]&&Z[jh]!==Object.prototype[jh]?Z[jh]:Z[jh]={}:Z[jh]=hh;}).call(this);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleworkspace/meet-addons",
|
|
3
3
|
"description": "The Google Meet Add-ons SDK lets you embed your app into Google Meet as an add-on where users can discover, share, and collaborate in the app without leaving Meet",
|
|
4
|
-
"version": "0.7.0-
|
|
4
|
+
"version": "0.7.0-642016357",
|
|
5
5
|
"repository": "googleworkspace/meet",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://developers.google.com/meet/add-ons/guides/overview",
|