1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19172],{19172:(t,e,n)=>{n.d(e,{meet:()=>i});let r="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};(function(){let t,e,n,r,i,a,o,s,l,c;var u,f,h,d,g,y,p=Object.defineProperty,m=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);!function(t,e){if(e)t:{var n=m;t=t.split(".");for(var r=0;r<t.length-1;r++){var i=t[r];if(!(i in n))break t;n=n[i]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&p(n,t,{configurable:!0,writable:!0,value:e})}}("Symbol.dispose",function(t){return t||Symbol("Symbol.dispose")});var w=this||self;function v(t,e){function n(){}n.prototype=e.prototype,t.qa=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.oa=function(t,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return e.prototype[n].apply(t,i)}}function b(t,e){if(Error.captureStackTrace)Error.captureStackTrace(this,b);else{let t=Error().stack;t&&(this.stack=t)}t&&(this.message=String(t)),void 0!==e&&(this.cause=e)}function S(t){w.setTimeout(()=>{throw t},0)}v(b,Error),b.prototype.name="CustomError";t:{for(var x=["CLOSURE_FLAGS"],A=w,T=0;T<x.length;T++)if(null==(A=A[x[T]])){h=null;break t}h=A}var E=h&&h[0x2461fc15];f=null!=E&&E;let N=w.navigator;function P(t){return!!f&&!!d&&d.brands.some(({brand:e})=>e&&-1!=e.indexOf(t))}function I(t){var e;return(e=w.navigator)&&(e=e.userAgent)||(e=""),-1!=e.indexOf(t)}function j(){return!!f&&!!d&&d.brands.length>0}function U(){return j()?P("Chromium"):(I("Chrome")||I("CriOS"))&&!(j()?0:I("Edge"))||I("Silk")}function M(t,e){(e=Array.prototype.indexOf.call(t,e,void 0))>=0&&Array.prototype.splice.call(t,e,1)}function C(t){let e="",n=0,r=t.length-10240;for(;n<r;)e+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));return btoa(e+=String.fromCharCode.apply(null,n?t.subarray(n):t))}d=N&&N.userAgentData||null,I("Android")&&U(),U(),I("Safari")&&(U()||(j()?0:I("Coast"))||(j()?0:I("Opera"))||(j()?0:I("Edge"))||(j()?P("Microsoft Edge"):I("Edg/"))||j()&&P("Opera"));let _=/[-_.]/g,k={"-":"+",_:"/",".":"="};function O(t){return k[t]||""}function R(t){return null!=t&&t instanceof Uint8Array}var D={};function L(){return t||(t=new F(null,D))}var F=class{constructor(t,e){if($(e),this.g=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};function $(t){if(t!==D)throw Error("illegal external caller")}function B(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}function z(){let t=Error();B(t,"incident"),S(t)}function W(t){return B(t=Error(t),"warning"),t}function J(){return"function"==typeof BigInt}function G(t){return Array.prototype.slice.call(t)}function K(t,e){return e&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol()}var Y=K("jas",!0);K();var V=K(),H=K();function q(t,e){e[Y]=(0|t)&-30975}function X(t,e){e[Y]=(34|t)&-30941}K(),K();var Z={},Q={};function tt(t){return!(!t||"object"!=typeof t||t.g!==Q)}function te(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}function tn(t,e){if(null!=t){if("string"==typeof t)t=t?new F(t,D):L();else if(t.constructor!==F)if(R(t))t=t.length?new F(new Uint8Array(t),D):L();else{if(!e)throw Error();t=void 0}}return t}function tr(t){return!!Array.isArray(t)&&!t.length&&!!((0|t[Y])&1)}let ti=[];function ta(t){if(2&t)throw Error()}ti[Y]=55,g=Object.freeze(ti);var to=Object.freeze({});function ts(t){return t.pa=!0,t}var tl=ts(t=>"number"==typeof t),tc=ts(t=>"string"==typeof t),tu=ts(t=>"boolean"==typeof t),tf="function"==typeof w.BigInt&&"bigint"==typeof w.BigInt(0),th=ts(t=>tf?t>=tg&&t<=tp:"-"===t[0]?tm(t,td):tm(t,ty));let td=Number.MIN_SAFE_INTEGER.toString(),tg=tf?BigInt(Number.MIN_SAFE_INTEGER):void 0,ty=Number.MAX_SAFE_INTEGER.toString(),tp=tf?BigInt(Number.MAX_SAFE_INTEGER):void 0;function tm(t,e){if(t.length>e.length)return!1;if(t.length<e.length||t===e)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r>i)return!1;if(r<i)return!0}}let tw=0,tv=0;function tb(t){let e=t>>>0;tw=e,tv=(t-e)/0x100000000>>>0}function tS(t){if(t<0){tb(-t);let[e,n]=tT(tw,tv);tw=e>>>0,tv=n>>>0}else tb(t)}function tx(t,e){if(t>>>=0,(e>>>=0)<=2097151)var n=""+(0x100000000*e+t);else J()?n=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(n=(t>>>24|e<<8)&0xffffff,t=(0xffffff&t)+6777216*n+6710656*(e=e>>16&65535),n+=8147497*e,e*=2,t>=1e7&&(n+=t/1e7>>>0,t%=1e7),n>=1e7&&(e+=n/1e7>>>0,n%=1e7),n=e+tA(n)+tA(t));return n}function tA(t){return t=String(t),"0000000".slice(t.length)+t}function tT(t,e){return e=~e,t?t=~t+1:e+=1,[t,e]}function tE(t){return null==t||"boolean"==typeof t?t:"number"==typeof t?!!t:void 0}let tN=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function tP(t){let e=typeof t;switch(e){case"bigint":return!0;case"number":return Number.isFinite(t)}
1return"string"===e&&tN.test(t)}function tI(t){if(null!=t){if(!Number.isFinite(t))throw W("enum");t|=0}return t}function tj(t){if(null!=t){if("string"==typeof t){if(!t)return;t*=1}"number"==typeof t&&Number.isFinite(t)}}function tU(t){if(null!=t)t:{if(!tP(t))throw W("int64");switch(typeof t){case"string":t=tC(t);break t;case"bigint":var e=t=BigInt.asIntN(64,t);if(tc(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(tl(e)&&!Number.isSafeInteger(e))throw Error(String(e));t=tf?BigInt(t):tu(t)?t?"1":"0":tc(t)?t.trim()||"0":String(t);break t;default:t=tM(t)}}return t}function tM(t){if(!Number.isSafeInteger(t=Math.trunc(t))){tS(t);var e=tw,n=tv;(t=0x80000000&n)&&(n=~n>>>0,0==(e=~e+1>>>0)&&(n=n+1>>>0));let r=0x100000000*n+(e>>>0);t="number"==typeof(e=Number.isSafeInteger(r)?r:tx(e,n))?t?-e:e:t?"-"+e:e}return t}function tC(t){var e=Math.trunc(Number(t));if(Number.isSafeInteger(e))return String(e);if(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),!("-"===t[0]?t.length<20||20===t.length&&Number(t.substring(0,7))>-922337:t.length<19||19===t.length&&922337>Number(t.substring(0,6)))){if(t.length<16)tS(Number(t));else if(J())tw=Number((t=BigInt(t))&BigInt(0xffffffff))>>>0,tv=Number(t>>BigInt(32)&BigInt(0xffffffff));else{e=+("-"===t[0]),tv=tw=0;let n=t.length;for(let r=e,i=(n-e)%6+e;i<=n;r=i,i+=6){let e=Number(t.slice(r,i));tv*=1e6,(tw=1e6*tw+e)>=0x100000000&&(tv+=Math.trunc(tw/0x100000000),tv>>>=0,tw>>>=0)}if(e){let[t,e]=tT(tw,tv);tw=t,tv=e}}if(t=tw,0x80000000&(e=tv))if(J())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{let[n,r]=tT(t,e);t="-"+tx(n,r)}else t=tx(t,e)}return t}function t_(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function tk(t,e,n){if(null!=t&&"object"==typeof t&&t.H===Z)return t;if(Array.isArray(t)){var r=0|t[Y],i=r;return 0===i&&(i|=32&n),(i|=2&n)!==r&&(t[Y]=i),new e(t)}}function tO(t){let e;return null==(e=a)?void 0:e.get(t)}function tR(t){try{return -1!==t.toString().indexOf("[native code]")?t:null}catch{return null}}function tD(t,e){return tL(e)}function tL(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"bigint":return th(t)?Number(t):String(t);case"boolean":return+!!t;case"object":if(t)if(Array.isArray(t)){if(tr(t))return}else{if(R(t))return C(t);if(t instanceof F){let e=t.g;return null==e?"":"string"==typeof e?e:t.g=C(e)}}}return t}function tF(t,e,n,r,i){let a=r||n?0|t[Y]:0;r=r?!!(32&a):void 0,t=G(t);for(let a=0;a<t.length;a++)t[a]=function t(e,n,r,i,a){if(null!=e){if(Array.isArray(e))e=tr(e)?void 0:a&&(0|e[Y])&2?e:tF(e,n,r,void 0!==i,a);else if(te(e)){let o={};for(let s in e)o[s]=t(e[s],n,r,i,a);e=o}else e=n(e,i);return e}}(t[a],e,n,r,i);return n&&n(a,t),t}function t$(t){return t.H===Z?t.toJSON():tL(t)}function tB(t,e,n){let r=n||2&e?X:q,i=!!(32&e);return(t=function(t,e,n){var r=(t=G(t)).length;let i=256&e?t[r-1]:void 0;for(r+=i?-1:0,e=512&e?1:0;e<r;e++)t[e]=n(t[e]);if(i)for(let r in e=t[e]={},i)e[r]=n(i[r]);return t}(t,e,t=>(function t(e,n,r=X){if(null!=e){if(e instanceof Uint8Array)return n?e:new Uint8Array(e);if(Array.isArray(e)){var i=0|e[Y];return 2&i?e:(n&&(n=0===i||!!(32&i)&&!(64&i||!(16&i))),n?(e[Y]=(34|i)&-12293,e):tF(e,t,4&i?X:r,!0,!0))}return e.H===Z&&(e=2&(i=(r=e.m)[Y])?e:new e.constructor(tB(r,i,!0))),e}})(t,i,r)))[Y]=32|t[Y]|2*!!n,t}function tz(t){let e=t.m,n=e[Y];return 2&n?new t.constructor(tB(e,n,!1)):t}function tW(t,e){return tG(t=t.m,t[Y],e)}function tJ(t,e,n,r){if(!((e=r+(!!(512&e)-1))<0||e>=t.length||e>=n))return t[e]}function tG(t,n,r,i){if(-1===r)return null;let a=n>>15&1023||0x20000000;if(r>=a){if(256&n)return t[t.length-1][r]}else{var o,s=t.length;return i&&256&n&&null!=(i=t[s-1][r])?(tJ(t,n,a,r)&&null!=V&&((o=(t=null!=(o=e)?o:e={})[V]||0)>=4||(t[V]=o+1,z())),i):tJ(t,n,a,r)}}function tK(t,e,n){let r=t.m,i=r[Y];return ta(i),tY(r,i,e,n),t}function tY(t,e,n,r){let i=e>>15&1023||0x20000000;if(n>=i){let a,o=e;if(256&e)a=t[t.length-1];else{if(null==r)return o;a=t[i+(!!(512&e)-1)]={},o|=256}return a[n]=r,n<i&&(t[n+(!!(512&e)-1)]=void 0),o!==e&&(t[Y]=o),o}return t[n+(!!(512&e)-1)]=r,256&e&&n in(t=t[t.length-1])&&delete t[n],e}function tV(t,e,n,r){return n=tX(t,r)===n?n:-1,void 0!==t0(t,e,n)}function tH(t){return!!(2&t)&&!!(4&t)||!!(2048&t)}function tq(t,e,n,r){let i=t.m,a=i[Y];return ta(a),tY(i,a,e,("0"===r?0===Number(n):n===r)?void 0:n),t}function tX(t,e){return tQ(tZ(t=t.m),t,t[Y],e)}function tZ(t){let e;return null!=(e=t[H])?e:t[H]=new Map}function tQ(t,e,n,r){let i=t.get(r);if(null!=i)return i;i=0;for(let t=0;t<r.length;t++){let a=r[t];null!=tG(e,n,a)&&(0!==i&&(n=tY(e,n,i)),i=a)}return t.set(r,i),i}function t0(t,e,n,r){let i=(t=t.m)[Y];return(e=tk(r=tG(t,i,n,r),e,i))!==r&&null!=e&&tY(t,i,n,e),e}function t1(t,e,n){if(null==(e=t0(t,e,n,!1)))return e;let r=(t=t.m)[Y];
1if(!(2&r)){let i=tz(e);i!==e&&tY(t,r,n,e=i)}return e}function t2(t,e,n){return null==n&&(n=void 0),tK(t,e,n)}function t3(t,e,n,r){null==r&&(r=void 0);t:{let o=t.m;var i=o[Y];if(ta(i),null==r){var a=tZ(o);if(tQ(a,o,i,n)===e)a.set(n,0);else break t}else{let t=tZ(a=o),r=tQ(t,a,i,n);r!==e&&(r&&(i=tY(a,i,r)),t.set(n,e))}tY(o,i,e,r)}return t}function t4(t,e){let n=t.m,r=n[Y];if(ta(r),null==e)return tY(n,r,1),t;var i,a=e;i=a=0|(e=(null==(i=o)?void 0:i.get(a))||a)[Y];let s=tH(a),l=s||Object.isFrozen(e),c=!0,u=!0;for(let t=0;t<e.length;t++){var f=e[t];s||(f=!!((0|f.m[Y])&2),c&&(c=!f),u&&(u=f))}return s||(a=c?13:5,a=u?16|a:-17&a),l&&a===i||(e=G(e),i=0,a=t5(a=t6(a,r),r,!0)),a!==i&&(e[Y]=a),tY(n,r,1,e),t}function t6(t,e){return -2049&(t=(2&e?2|t:-3&t)|32)}function t5(t,e,n){return 32&e&&n||(t&=-33),t}function t9(t,e){return null!=t?t:e}function t7(t){return null!=(t=tW(t,1))&&(t="bigint"==typeof t?th(t)||th(t=BigInt.asIntN(64,t))?Number(t):String(t):tP(t)?"number"==typeof t?tM(t):tC(t):void 0),t9(t,0)}function t8(t,e){return t9(null==(t=tW(t,e))||"string"==typeof t?t:void 0,"")}function et(t,e){return t9(t=null==(t=tW(t,e))?t:Number.isFinite(t)?0|t:void 0,0)}function ee(t,e,n,r){return n=tX(t,r)===n?n:-1,t1(t,e,n)}function en(t){try{return n=!0,JSON.stringify(ei(t),tD)}finally{n=!1}}var er=class{constructor(t){t:{var e=null!=e?e:0;if(null==t){var n=96;t=[]}else{if(!Array.isArray(t))throw Error("narr");if(2048&(n=0|t[Y]))throw Error("farr");if(64&n)break t;1===e||2===e||(n|=64);var r=(e=t).length;if(r&&te(e[--r])){if(n|=256,(e=r-(!!(512&n)-1))>=1024)throw Error("pvtlmt");n=-0x1ff8001&n|(1023&e)<<15}}t[Y]=n}this.m=t}toJSON(){return ei(this)}};function ei(t){t=t.m,t=n?t:tF(t,t$,void 0,void 0,!1);{var e=!n;let u=t.length;if(u){var r=t[u-1],i=te(r);i?u--:r=void 0;var a=t;if(i){e:{var o,s=r,l=!1;if(s){for(let t in s)if(isNaN(+t)){let e;(null!=(e=o)?e:o={})[t]=s[t]}else if(Array.isArray(i=s[t])&&(tr(i)||tt(i)&&0===i.size)&&(i=null),null==i&&(l=!0),null!=i){let e;(null!=(e=o)?e:o={})[t]=i}}if(l||(o=s),o)for(let t in o){l=o;break e}l=null}s=null==l?null!=r:l!==r}for(;u>0&&(null==(o=a[u-1])||tr(o)||tt(o)&&0===o.size);u--)var c=!0;(a!==t||s||c)&&(e?(c||s||l)&&(a.length=u):a=Array.prototype.slice.call(a,0,u),l&&a.push(l)),c=a}else c=t}return c}function ea(t){return e=>{if(null==e||""==e)e=new t;else{if(!Array.isArray(e=JSON.parse(e)))throw Error("dnarr");e[Y]|=32,e=new t(e)}return e}}er.prototype.H=Z,er.prototype.toString=function(){try{return n=!0,ei(this).toString()}finally{n=!1}};var eo=(u=class extends er{},t=>{if(!Array.isArray(t=JSON.parse(t))){var e=typeof t;throw Error("Expected jspb data to be an array, got "+("object"!=e?e:t?Array.isArray(t)?"array":e:"null")+": "+t)}return t[Y]|=34,new u(t)}),es=class extends er{};function el(t){return ec(t,t.index)>=t.g&&(t.h[t.index]=Date.now(),t.index=(t.index+1)%1,!0)}function ec(t,e){let n;return Date.now()-(null!=(n=t.h[e])?n:-1*t.g)}var eu=class{constructor(t){this.g=t,this.h=[],this.index=0}},ef=class extends er{},eh=[2,3],ed=class extends er{},eg=class extends Error{constructor({errorType:t,message:e,i:n}){super(`Meet Add-on SDK error: ${e}${n?` - ${n}`:""}`),this.errorType=t}},ey={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},ep={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",i:"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)."},em={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",i:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},ew={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",i:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},ev={errorType:"NotSupportedInStandalone",message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},eb={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastru
1cture does not modify URL parameters (e.g. as part of a redirect)."},eS={errorType:"InvalidCloudProjectNumber",message:"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.",i:"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."},ex={errorType:"DestinationNotReady",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."},eA={errorType:"InvalidActivityStartingState",message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",i:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},eT={errorType:"ActivityStartingStateMissingAttributes",message:"The supplied ActivityStartingState object does not contain any recognized attributes.",i:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},eE={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",i:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},eN={errorType:"AddonStartingStateMissingAttributes",message:"The supplied AddonStartingState object does not contain any recognized attributes.",i:"Ensure that the AddonStartingState object contains at least one of the following attributes: sidePanelUrl, additionalData."},eP={errorType:"AddonStartingStateUnrecognizedAttributes",message:"The supplied AddonStartingState object contains attributes that are not recognized.",i:"Ensure that the AddonStartingState object has only the following attributes: sidePanelUrl, additionalData."},eI=t=>({errorType:"ArgumentNullError",message:`The argument supplied for '${t}' was 'null' but a value was expected.`,i:"Ensure you are passing a value of the expected type for the argument."}),ej=(t,e,n)=>({errorType:"ArgumentTypeError",message:`The type '${e}' of argument supplied for '${t}' did not match the expected type '${n}'.`,i:"Ensure the type of the argument provided matches the expected type."}),eU={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},eM={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},eC={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},e_={errorType:"RequiresEapEnrollment",message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},ek={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",i:"Ensure that the user is the initiator of the current activity or that the activity has ended."},eO={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},eR={errorType:"SizeLimitExceededFrameToFrameMessage",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,000,000 characters."},eD={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},eL={errorType:"UserCancelled",message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},eF={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},e$={errorType:"InvalidAddonStartingState",message:"Origin of the AddonStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",i:"Ensure that the AddonStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},eB={errorType:"SizeLimitExceededAddonStartingState",message:"The size of the AddonStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the AddonStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},ez={errorType:"MeetingPolicyPreventsStartingActivity",message:"A meeting policy (such as using host control settings) prevents the user from starting the activity.",i:"Have a meeting host or administrator modify the necessary settings to allow the current user to start the activity."};function eW({errorType:t,message:e,i:n},r=""){throw new eg({errorType:t,message:r?`${e} ${r}`:e,i:n})}function eJ(t,e){eW({...ep,message:`${ep.message}: ${t}. In URL ${e}`})}function eG(t){return tq(new eV,1,tI(t),0)}function eK(t,e){return tq(t,2,t_(e),"")}function eY(t,e){return tq(t,3,t_(e),"")}var eV=class extends er{getFrameType(){return et(this,1)}};function eH(t){let e;var n,r,i,u,f=void 0===to?2:4,h=t.m[Y],d=h,y=!(2&h),p=eV;t=t.m,f=(h=!!(2&d))?1:f,y&&(y=!h);var m=0|(h=Array.isArray(h=tG(t,d,1))?h:g)[Y],w=!!(4&m);if(!w){var v=m;0===v&&(v=t6(v,d)),m=h;var b=d;let t=!!(2&(v|=1));t&&(b|=2);let e=!t,n=!0,r=0,i=0;for(;r<m.length;r++){let a=tk(m[r],p,b);
1if(a instanceof p){if(!t){let t=!!((0|a.m[Y])&2);e&&(e=!t),n&&(n=t)}m[i++]=a}}i<r&&(m.length=i),v|=4,v=n?16|v:-17&v,v=e?8|v:-9&v,m[Y]=v,t&&Object.freeze(m),m=v}if(y&&!(8&m||!h.length&&(1===f||4===f&&32&m))){for(tH(m)&&(h=G(h),m=t6(m,d),d=tY(t,d,1,h)),y=h,p=m,m=0;m<y.length;m++)b=tz(v=y[m]),v!==b&&(y[m]=b);p|=8,p=y.length?-17&p:16|p,m=y[Y]=p}if(1===f||4===f&&32&m){if(!tH(m)){d=m;var S=!!(32&m);(m|=!h.length||16&m&&(!w||S)?2:2048)!==d&&(h[Y]=m),Object.freeze(h)}}else{w=5===f&&(!!(32&m)||tH(m)||!!tO(h)),(2===f||w)&&tH(m)&&(h=G(h),m=t5(m=t6(m,d),d,!1),h[Y]=m,d=tY(t,d,1,h)),tH(m)||(t=m,(m=t5(m,d,!1))!==t&&(h[Y]=m)),w?(i=h,void 0===s&&(s="function"==typeof Proxy?tR(Proxy):null),(u=!s)||(void 0===l&&(l="function"==typeof WeakMap?tR(WeakMap):null),u=!l),e=u?i:(u=tO(i))?u:Math.random()>.01?i:(function(t){if(void 0===c){let t=new s([],{});c=1===Array.prototype.concat.call([],t).length}c&&"function"==typeof Symbol&&Symbol.isConcatSpreadable&&(t[Symbol.isConcatSpreadable]=!0)}(i),u=new s(i,{set:(t,e,n)=>(z(),t[e]=n,!0)}),n=i,r=u,(a||(a=new l)).set(n,r),(o||(o=new l)).set(r,n),u)):2===f&&(null==(S=a)||S.delete(h))}return e||h}var eq=class extends er{},eX=class extends er{};function eZ(t){return tq(new eQ,1,tI(t),0)}var eQ=class extends er{},e0=class extends er{},e1=class extends er{},e2=class extends er{},e3=class extends er{getMeetingInfo(){return ee(this,e2,3,e4)}getMeetPlatformInfo(){return ee(this,e1,4,e4)}},e4=[2,3,4,5],e6=class extends er{},e5=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17],e9=class extends er{},e7=class extends er{},e8=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),nt=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function ne(t){t&&"function"==typeof t.dispose&&t.dispose()}function nn(){this.s=this.s,this.g=this.g}function nr(t,e){t.s?e():(t.g||(t.g=[]),t.g.push(e))}function ni({J:t,R:e}){if(null===t)throw new eg(eI("activityStartingState"));if(e||void 0!==t){if("object"!=typeof t)throw new eg(ej("activityStartingState",typeof t,`object${e?"":" | undefined"}`));if(void 0!==t.mainStageUrl&&"string"!=typeof t.mainStageUrl)throw new eg(ej("mainStageUrl",typeof t.mainStageUrl,"string | undefined"));if(void 0!==t.sidePanelUrl&&"string"!=typeof t.sidePanelUrl)throw new eg(ej("sidePanelUrl",typeof t.sidePanelUrl,"string | undefined"));if(void 0!==t.additionalData&&"string"!=typeof t.additionalData)throw new eg(ej("additionalData",typeof t.additionalData,"string | undefined"));if(Object.keys(t).length!==+!!t.mainStageUrl+ +!!t.sidePanelUrl+ +!!t.additionalData)throw new eg(eE);if(0===Object.keys(t).length)throw new eg(eT)}}function na(t){let e=[];return e.push(eY(eK(eG(2),t.mainStageUrl),t.additionalData)),e.push(eY(eK(eG(1),t.sidePanelUrl),t.additionalData)),e}nn.prototype.s=!1,nn.prototype.dispose=function(){this.s||(this.s=!0,this.G())},nn.prototype[Symbol.dispose]=function(){this.dispose()},nn.prototype.G=function(){if(this.g)for(;this.g.length;)this.g.shift()()};var no=class extends nn{constructor(t){super(),this.context=t,this.h={},n7(this.context.g.U,t=>{if(7===tX(t.content,e5)){let n=this.h.frameToFrameMessage;if(t=ee(t.content,e0,7,e5),n&&t){var e=et(t,1);if(void 0===(e=e8.get(e)))throw Error("Unknown frame type.");n({originator:e,payload:t8(t,2)})}}})}async getMeetingInfo(){let t=await ry(this.context.g,eZ(2));return{meetingId:t8(t.getMeetingInfo(),1),meetingCode:t8(t.getMeetingInfo(),2)}}async getFrameOpenReason(){let t,e,n=null!=(t=this.context.h.ca)?t:0;return null!=(e=nt.get(n))?e:"UNKNOWN"}async getActivityStartingState(){var t=ee(await ry(this.context.g,eZ(1)),eq,2,e4);let e=null==t?void 0:eH(t).find(t=>2===t.getFrameType());return t=null==t?void 0:eH(t).find(t=>1===t.getFrameType()),{mainStageUrl:(null==e?void 0:t8(e,2))||void 0,sidePanelUrl:(null==t?void 0:t8(t,2))||void 0,additionalData:(null==t?void 0:t8(t,3))||void 0}}async setActivityStartingState(t){ni({J:t,R:!0});var e,n=na(t);t=rp;var r=this.context.g,i=new e9;e=n,i=t2(i,1,n=t4(new eq,e)),await t(r,i)}on(t,e){this.h[t]=e}async getMeetPlatformInfo(){return{isMeetHardware:t9(tE(tW((await ry(this.context.g,eZ(3))).getMeetPlatformInfo(),1)),!1)}}async closeAddon(){await rm(this.context.g)}async startActivity(t){var e;ni({J:t,R:!1});let n=new e7;
1t&&(e=t=na(t),t2(n,1,t=t4(new eq,e))),await rw(this.context.g,n)}async endActivity(t){var e=this.context.g;t=tq(new eX,1,tI(999*("aab61ee0-51b4-475d-aa4d-849f2498640d"===t)),0),await rv(e,t)}},ns=ea(class extends er{getFrameOpenReason(){return et(this,5)}});function nl(){var t,e=window.location.href,n=window.location.href,r=new URL(n).searchParams.get("meet_sdk");if(r?n=ns(atob(r)):(eJ("meet_sdk",n),n=void 0),(r=t8(n,1))||eJ("meet_addon_frame_type",e),2!==(r=Number(r))&&1!==r)throw new eg(eb);let i=t8(n,2);i||eJ("meet_control_channel_name",e);let a=t8(n,4);return a||eJ("addon_cloud_project_number",e),{ca:e=null!=(t=n.getFrameOpenReason())?t:0,frameType:r,ba:i,cloudProjectNumber:a,S:t=t8(n,3)||"https://meet.google.com"}}var nc=class extends er{},nu=class extends er{},nf=class extends er{},nh=[1,2],nd=class extends er{},ng=class extends er{},ny=class extends er{},np=class extends er{},nm=class extends er{},nw=class extends er{setAddonStartingState(t){return t2(this,1,t)}},nv=class extends er{},nb=class extends er{},nS=[1,2,5,6,7,8,9,10,11,13,14,15,16],nx=class extends er{},nA=ea(nx),nT=[1,2];class nE{constructor(t,e){this.data=t,this.channel=e}}var nN=Promise;function nP(t){let e=new MessageChannel;return nU(e.port1,t),e}function nI(t,e){return nU(t,e),new nj(t)}class nj{constructor(t){this.g=t}send(t,e,n=[]){e=nP(e),this.g.postMessage(t,[e.port2].concat(n))}C(t,e){return new nN(n=>{this.send(t,n,e)})}}function nU(t,e){e&&(t.onmessage=t=>{e(new nE(t.data,t=nI(t.ports[0])))})}var nM="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?t=>t&&AsyncContext.Snapshot.wrap(t):t=>t;function nC(t,e){t.l(e),t.h<100&&(t.h++,e.next=t.g,t.g=e)}class n_{constructor(t,e){this.j=t,this.l=e,this.h=0,this.g=null}get(){let t;return this.h>0?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.j(),t}}class nk{constructor(){this.h=this.g=null}add(t,e){let n=nO.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n}}var nO=new n_(()=>new nR,t=>t.reset());class nR{constructor(){this.next=this.g=this.h=null}set(t,e){this.h=t,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}let nD,nL=!1,nF=new nk,n$=(t,e)=>{nD||nB(),nL||(nD(),nL=!0),nF.add(t,e)},nB=()=>{let t=Promise.resolve(void 0);nD=()=>{t.then(nz)}};function nz(){let t,e;for(;e=null,nF.g&&(e=nF.g,nF.g=nF.g.next,nF.g||(nF.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(t){S(t)}nC(nO,t)}nL=!1}function nW(){}function nJ(t){if(this.g=0,this.T=void 0,this.l=this.h=this.j=null,this.v=this.B=!1,t!=nW)try{let e=this;t.call(void 0,function(t){nq(e,2,t)},function(t){nq(e,3,t)})}catch(t){nq(this,3,t)}}function nG(){this.next=this.context=this.h=this.l=this.g=null,this.j=!1}nG.prototype.reset=function(){this.context=this.h=this.l=this.g=null,this.j=!1};var nK=new n_(function(){return new nG},function(t){t.reset()});function nY(t,e,n){let r=nK.get();return r.l=t,r.h=e,r.context=n,r}function nV(t,e){(e=nY(e=nM(e),e)).j=!0,nH(t,e)}function nH(t,e){t.h||2!=t.g&&3!=t.g||nX(t),t.l?t.l.next=e:t.h=e,t.l=e}function nq(t,e,n){if(0==t.g){t===n&&(e=3,n=TypeError("Promise cannot resolve to itself")),t.g=1;t:{var r,i,a=n,o=t.ma,s=t.na;if(a instanceof nJ){nH(a,nY(o||nW,s||null,t));var l=!0}else{if(a)try{var c=!!a.$goog_Thenable}catch(t){c=!1}else c=!1;if(c)a.then(o,s,t),l=!0;else{if("object"==(c=typeof a)&&null!=a||"function"==c)try{let e=a.then;if("function"==typeof e){(function(t,e,n,r,i){function a(t){o||(o=!0,r.call(i,t))}let o=!1;try{e.call(t,function(t){o||(o=!0,n.call(i,t))},a)}catch(t){a(t)}})(a,e,o,s,t),l=!0;break t}}catch(e){s.call(t,e),l=!0;break t}l=!1}}}l||(t.T=n,t.g=e,t.j=null,nX(t),3!=e||n instanceof n2||(r=t,i=n,r.v=!0,n$(function(){r.v&&n1.call(null,i)})))}}function nX(t){t.B||(t.B=!0,n$(t.la,t))}function nZ(t){let e=null;return t.h&&(e=t.h,t.h=e.next,e.next=null),t.h||(t.l=null),e}function nQ(t,e,n,r){if(3==n&&e.h&&!e.j)for(;t&&t.v;t=t.j)t.v=!1;if(e.g)e.g.j=null,n0(e,n,r);else try{e.j?e.l.call(e.context):n0(e,n,r)}catch(t){n1.call(null,t)}nC(nK,e)}function n0(t,e,n){2==e?t.l.call(t.context,n):t.h&&t.h.call(t.context,n)}nJ.prototype.then=function(t,e,n){return function(t,e,n,r){let i=nY(null,null,null);return i.g=new nJ(function(t,a){i.l=e?function(n){try{let i=e.call(r,n);t(i)}catch(t){a(t)}}:t,i.h=n?function(e){try{let i=n.call(r,e);void 0===i&&e instanceof n2?a(e):t(i)}catch(t){a(t)}}:a}),i.g.j=t,nH(t,i),i.g}(this,nM("function"==typeof t?t:null),nM("function"==typeof e?e:null),n)}
1,nJ.prototype.$goog_Thenable=!0,nJ.prototype.cancel=function(t){if(0==this.g){let e=new n2(t);n$(function(){!function t(e,n){if(0==e.g)if(e.j){var r=e.j;if(r.h){var i=0,a=null,o=null;for(let t=r.h;t&&(t.j||(i++,t.g==e&&(a=t),!(a&&i>1)));t=t.next)a||(o=t);a&&(0==r.g&&1==i?t(r,n):(o?((i=o).next==r.l&&(r.l=i),i.next=i.next.next):nZ(r),nQ(r,a,3,n)))}e.j=null}else nq(e,3,n)}(this,e)},this)}},nJ.prototype.ma=function(t){this.g=0,nq(this,2,t)},nJ.prototype.na=function(t){this.g=0,nq(this,3,t)},nJ.prototype.la=function(){let t;for(;t=nZ(this);)nQ(this,t,this.g,this.T);this.B=!1};var n1=S;function n2(t){b.call(this,t)}function n3(t,e,n){this.promise=t,this.resolve=e,this.reject=n}v(n2,b),n2.prototype.name="cancel";let n4=1,n6=new WeakMap;function n5(t,e,n){t.h.has(e),function(t,e){new Promise(n=>{rn(()=>{for(let{I:n,slot:r}of(t.L&&(t.ea=e,t.P=!0),t.o.values()))try{r(e,{signal:t,I:n})}catch(t){S(t)}for(let n of t.A)n.resolve(e);t.A.clear(),n()})})}(e,n)}var n9=class extends nn{constructor(){super(),this.h=new Set}signal(){let t=new n8;return this.h.add(t),nr(this,function(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}(ne,t)),t}};function n7(t,e,n){let r=n4++;return rn(()=>{var i=t,a=r,o=e,s=n;if(!i.s)if(s){if(!s.s){let t=()=>{rn(()=>{i.o.delete(a);let e=n6.get(s);e&&M(e,t)})};i.o.set(a,{I:a,slot:o,F:t}),ra(s,t)}}else i.o.set(a,{I:a,slot:o,F:()=>i.o.delete(a)})}),r}var n8=class extends nn{constructor(){super(),this.L=!1,this.o=new Map,this.A=new Set,this.P=!1}detach(t){rn(()=>{let e=this.o.get(t);e&&e.F()})}value(t){return this.promise(!0,t)}next(t){return this.promise(!1,t)}promise(t,e){let n,r,i=new n3(new nJ(function(t,e){n=t,r=e}),n,r);return rn(()=>{if(this.s)i.reject(new n2("Signal initially disposed"));else if(e&&e.s)i.reject(new n2("Owner initially disposed"));else if(t&&this.L&&this.P)i.resolve(this.ea);else if(this.A.add(i),nV(i.promise,()=>{this.A.delete(i)}),e){let t=()=>{i.reject(new n2("Owner asynchronously disposed"))};nV(i.promise,()=>{let n=n6.get(e);n&&M(n,t)}),ra(e,t)}}),i.promise}G(){super.G(),rn(()=>{for(let{F:t}of this.o.values())t();for(let t of(this.o.clear(),this.A))t.reject(new n2("Signal asynchronously disposed"));this.A.clear()})}};let rt=[],re=!1;function rn(t){rt.push(t),rr()}async function rr(){if(!re)try{re=!0;let t=ri(0);for(;t<rt.length;)await Promise.resolve(),t=ri(t)}catch(t){S(t)}finally{rt.length=0,re=!1}}function ri(t){let e=t+100;for(;t<e&&t<rt.length;)try{rt[t++]()}catch(t){S(t)}return t}function ra(t,e){if(t.s)e();else{var n=n6.get(t);if(n)n.push(e);else{let n=[e];n6.set(t,n),nr(t,()=>{for(let t of[...n])t();n6.delete(t)})}}}function ro(t){return{content:en(t=t3(new nx,1,nT,t))}}let rs=new n9;var rl=class extends er{},rc=class extends er{},ru=class extends er{h(){return ee(this,rl,2,rf)}g(){return tV(this,rl,2,rf)}j(){return ee(this,rc,3,rf)}l(){return tV(this,rc,3,rf)}},rf=[2,3],rh=ea(class extends er{}),rd=ea(class extends er{}),rg=[1,2];async function ry(t,e){let n;return e=t3(new nb,9,nS,e),null==(n=ee(nA((t=await rS(t,ro(e))).data.content),e6,2,nT))?void 0:ee(n,e3,9,e5)}async function rp(t,e){e=t3(new nb,8,nS,e),await rS(t,ro(e))}async function rm(t){var e=new nb;e=t3(e,11,nS,new nc),await rS(t,ro(e))}async function rw(t,e){e=t3(new nb,14,nS,e),await rS(t,ro(e))}async function rv(t,e){e=t3(new nb,15,nS,e),await rS(t,ro(e))}async function rb(t){await t.h()}async function rS(t,e){let n;(t=await t.channel.C(e))||eW(ey,`Falsy response received from the message channel. ${JSON.stringify(t)}`),(e=t.data)||eW(ey,`Data field in the response from the message channel is falsy. ${JSON.stringify(e)}`),(e=e.content)||eW(ey,`Content field in the response from the message channel is falsy. ${JSON.stringify(e)}`);try{n=nA(e)}catch(t){eW(ey,`The ControlMessage can't be deserialized. ${JSON.stringify(e)}. ${JSON.stringify(t)}`)}if((e=ee(n,e6,2,nT))||eW(ey,`MeetToAddonMessage field on ControlMessage is falsy. ${JSON.stringify(e)}`),(null==(e=null==e?void 0:ee(e,ed,10,e5))?void 0:et(e,1))!==void 0)throw new eg(function(t){switch(t){case 0:default:return ey;case 1:return ex;case 2:return eA;case 3:return eU;case 4:return eM;case 5:return e_;case 6:return ev;case 7:return ek;case 8:return eO;case 9:return eR;case 10:return eL;case 11:return eF;case 12:return e$;case 13:return eB;case 14:return eC;case 15:return ez}}
1(et(e,1)));return t}async function rx(t,e,n){var r,i=rS;return e=t3(new nb,1,nS,e),t=(i=await i(t,ro(e))).data.messagePort,r=null!=(i=null==(r=ee(nA(i.data.content),e6,2,nT))?void 0:ee(r,ef,1,e5))?i:tq(r=new ef,1,tI(0),0),{channel:t?function(t,e){let n=rs.signal();return{channel:nI(t,t=>{n5(rs,n,{content:e(t.data),ka:t})}),signal:n}}(t,n):void 0,response:r}}async function rA(t){let e=t3(new nf,1,nh,new nu),{channel:n,response:r}=await rx(t,e,t=>rd(t));if(!n)throw new eg(function(t){let e;var n=null!=(e=et(t,1))?e:0;switch(t=function(t){switch(t){case 2:return"co";case 3:return"gd";default:return"unknown"}}(tX(t,eh)),n){case 1:return{errorType:"InternalError",message:`Could not connect to ${t} channel. Meet did not respond with a MessagePort.`,i:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${t}. A conflicting ${t} exists.`,i:"No further information is available."};case 3:return{errorType:"InternalError",message:`Could not connect to ${t} channel. The addon does not have permission to open a ${t}.`,i:"This method might require EAP enrollment."};case 4:return{errorType:"InternalError",message:`Could not connect to ${t} channel. The addon is not authorized for this ${t}.`,i:"No further information is available."};case 0:default:let r;return r=t,{errorType:"InternalError",message:`Could not connect to ${r} channel. Unknown error`,i:"No further information is available."};case 5:return n="co"===t?{errorType:"InternalError",message:`Could not connect to ${t} channel. The coActivity was not found.`,i:`Consider starting the ${t} only after after the startActivity promise returns.`}:{errorType:"InternalError",message:`Could not connect to ${t} channel.`,i:"No further information is available."}}}(r));return n}async function rT(t){var e=new nb;e=t3(e,5,nS,new nv),await rS(t,ro(e))}async function rE(t){var e=new nb;e=t3(e,6,nS,new ng),await rS(t,ro(e))}async function rN(t,e,n){var r=new nb;e=tq(new ny,1,tI(e),0),r=t3(r,7,nS,n=tq(e,2,t_(n),"")),await rS(t,ro(r))}async function rP(t,e){e=t3(new nb,16,nS,e),await rS(t,ro(e))}class rI extends nn{constructor(t,e,n){var i;super(),this.U=t,this.channel=e,this.h=function(t){var e=new eu(100),n=Promise.resolve();return(...r)=>el(e)?t(...r):n}(async()=>{var t=this.channel,e=t.C,n=new nb;n=t3(n,13,nS,new np),await e.call(t,ro(n))}),t8(t=function(){var t=r||(r=eo("[1,2,0]"));let e=(t=tK(t=tz(t),4,t_("dev-706864954"))).m,n=e[Y];return 2&n?t:new t.constructor(tB(e,n,!0))}(),4),tj(tW(t,1)),tj(tW(t,2)),tj(tW(t,3)),n=t3(new nb,2,nS,(i=t,tq(t2(new nd,2,i),3,t_(n),""))),this.channel.send(ro(n)),n7(this.U,async t=>{16===tX(t.content,e5)&&await rb(this)})}}var rj=class{constructor(t){var e=i;this.h=t,this.g=e}delete(){throw Error("Not implemented.")}},rU=class extends er{h(){return ee(this,rl,2,rM)}g(){return tV(this,rl,2,rM)}j(){return ee(this,rc,3,rM)}l(){return tV(this,rc,3,rM)}},rM=[2,3],rC=class extends er{},r_=class extends er{},rk=class extends er{},rO=class extends er{h(){return ee(this,rl,2,rR)}g(){return tV(this,rl,2,rR)}j(){return ee(this,rc,3,rR)}l(){return tV(this,rc,3,rR)}},rR=[2,3],rD=[5,6],rL=class extends er{},rF=class extends er{},r$=[1,2,3],rB=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}},rz=class{constructor(t){this.config=t}start(){return null!=this.g||(this.g=setInterval(()=>{this.config.ha()},this.config.da)),this}shutdown(){clearInterval(this.g)}};function rW(){let t=new Map,e={set:(n,r)=>(t.set(n,r),e),D:()=>t};return e}function rJ(t){if(t.g()){var e=(t=t.h().m)[Y],n=tG(t,e,1),r=tn(n,!0);if(null!=r&&r!==n&&tY(t,e,1,r),e=null==(t=r)?L():t,t=Uint8Array,$(D),null!=(n=e.g)&&!R(n))if("string"==typeof n){_.test(n)&&(n=n.replace(_,O)),r=new Uint8Array((n=atob(n)).length);for(let t=0;t<n.length;t++)r[t]=n.charCodeAt(t);n=r}else n=null;return{bytes:new t((e=null==n?n:e.g=n)||0)}}}function rG(t,e){return t3(t,2,rR,e=rY(e)),t}function rK(t,e){return t3(t,2,rM,e=rY(e)),t}function rY(t){return tq(new rl,1,tn(t.bytes,!1),L())}function rV(t){if(t.l()){var e,n,r=t8(t=t.j(),1),i=null!=(n=null==(e=t1(t,es,2))?void 0:t7(e))?n:0;let a=(n=t.m)[Y],o=tG(n,a,4);return null!=(e=null==o||"number"==typeof o?o:"NaN"===o||"Infinity"===o||"-Infinity"===o?Number(o):void 0)&&e!==o&&tY(n,a,4,e),{mediaId:r,mediaPlayoutPosition:i,mediaPlayoutRate:t9(e,0),playbackState:rX.get(et(t,3))}}}function rH(t,e){return t3(t,3,rR,e=rQ(e)),t}function rq(t,e){return t3(t,3,rM,e=rQ(e)),t}let rX=rW().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").D(),rZ=rW().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).D();function rQ(t){var e=new rc;e=tq(e,1,t_(t.mediaId),"");var n=t.mediaPlayoutRate;if(null!=n&&"number"!=typeof n)throw Error(`Value of float/double field must be a number, found ${typeof n}: ${n}`);return e=t2(e=tq(e,4,n,0),2,n=tq(n=new es,1,tU(t.mediaPlayoutPosition),"0")),tq(e,3,tI(t=rZ.get(t.playbackState)),0)}
1function r0(t,e){return t3(t,6,rD,e=tq(new r_,1,tI(e.u),0)),t}function r1(t){return t3(t,5,rD,new rC),t}let r2=rW().set("co-doing",1).set("co-watching",2).D();async function r3(t,e,n){let r;var i=e.C,a=new rF,o=new rL;if(o=tq(o,1,t_(t.activityTitle),""),a=t3(a,3,r$,o=tq(o,2,tI(r2.get(t.K)),0)),null!=(r=t9(tE(tW(i=await i.call(e,a,rh),1)),!1))&&r)return new r5(t,e,n,t1(i,ru,2));throw new rB}function r4(t,e){let n=t.config.N(e);n&&!t.config.M(t.g,n)&&(t.g=n,t.j=t7(e),t.v(t.g))}function r6(t,e){let{state:n,fa:r,context:i}=e(t.g);t.g=n,t.notify(t.g,i,r)}class r5{constructor(t,e,n,r){this.l=t,this.h=e,this.config=n,this.v=function(t){var e=new eu(500);let n=0,r;return(...i)=>{el(e)?t(...i):(r=()=>void t(...i),n||(n=setTimeout(()=>{n=0,null==r||r()},function(t){let e=t.g;return(t=ec(t,t.index))>=e?0:e-t}(e))))}}(t=>void this.l.O(t)),function(t,e){let n=n7(t.signal,t=>{e(t)});t.o.push(n)}(this.h,t=>{let e=tX(t,rg);switch(e){case 1:r4(this,ee(t,ru,1,rg));break;case 2:case 0:console.warn(`IllegalMessage: ${e} - Unhandled message - Please raise a bug with the MeetJS team`)}}),this.B=new rz({da:1e3,ha:()=>{var t,e,n=null==(e=(t=this.l).ja)?void 0:e.call(t);if(null!==this.g){this.g={...this.g,...n},t=new rF,n=(e=this.config).W;var r=new rU;r=tq(r,1,tU(this.j),"0"),t=t3(t,1,r$,e=n.call(e,r,this.g)),this.h.send(t)}}}).start(),this.g=null,this.j=0,r&&r4(this,r)}disconnect(){this.h.shutdown(),this.B.shutdown()}notify(t,e,n){var r=n?function({activityTitle:t}){return tK(new rk,4,t_(t))}(n):void 0,i=(n=this.config).X,a=new rO;r=t2(a=tq(a,1,tU(this.j),"0"),4,r),t=i.call(n,r,t),t=this.config.V(t,e),n=(e=this.h).send,t=t3(i=new rF,2,r$,t),n.call(e,t)}}var r9=class{constructor(t){this.g=t}broadcastStateUpdate(t){r6(this.g,()=>({state:t,context:{}}))}disconnect(){this.g.disconnect()}};function r7(t,e){return null!=t&&null!=e&&t.bytes.length===e.bytes.length&&t.bytes.every((t,n)=>t===e.bytes[n])}var r8=class{constructor(t){this.g=t}notifySwitchedToMedia(t,e,n){r6(this.g,()=>({state:{mediaId:e,mediaPlayoutRate:1,mediaPlayoutPosition:n,playbackState:"PLAY"},fa:{activityTitle:t},context:{u:1}}))}notifyPauseState(t,e){r6(this.g,n=>{if(null==n)throw Error("Invalid before coWatchingState");return{state:{...n,playbackState:t?"PAUSE":"PLAY",mediaPlayoutPosition:e},context:{u:3}}})}notifySeekToTimestamp(t){r6(this.g,e=>{if(null==e)throw Error("Invalid before coWatchingState");return{state:{...e,mediaPlayoutPosition:t},context:{u:2}}})}notifyPlayoutRate(t){r6(this.g,e=>{if(null==e)throw Error("Invalid before coWatchingState");return{state:{...e,mediaPlayoutRate:t},context:{u:4}}})}notifyBuffering(t){r6(this.g,e=>{if(null==e)throw Error("Invalid before coWatchingState");return{state:{...e,mediaPlayoutPosition:t,playbackState:"BUFFERING"},context:{u:3}}})}notifyReady(t){r6(this.g,e=>{if(null==e)throw Error("Invalid before coWatchingState");return{state:{...e,mediaPlayoutPosition:t},context:{u:3}}})}disconnect(){this.g.disconnect()}};function it(t,e){if(null==t||null==e)return!1;let n="PLAY"===t.playbackState?3*Math.max(t.mediaPlayoutRate,1):0,r=Math.abs(t.mediaPlayoutPosition-e.mediaPlayoutPosition);return t.mediaId===e.mediaId&&t.mediaPlayoutRate===e.mediaPlayoutRate&&r<=n&&t.playbackState===e.playbackState}var ie=class{constructor(t,e){this.channel=t,this.signal=e,this.o=[]}send(t){this.channel.send(en(t))}async C(t,e){return e((t=await this.channel.C(en(t))).data)}shutdown(){this.o.forEach(t=>{this.signal.detach(t)})}};async function ir(t,e){if(e)return new r8(t=await r3({activityTitle:e.activityTitle,K:"co-watching",ja:()=>e.onCoWatchingStateQuery(),O:t=>{e.onCoWatchingStateChanged(t)}},t,{X:rH,W:rq,V:r0,N:rV,M:it}))}async function ii(t,e){if(e)return new r9(t=await r3({activityTitle:e.activityTitle,K:"co-doing",O:t=>{e.onCoDoingStateChanged(t)}},t,{X:rG,W:rK,V:r1,N:rJ,M:r7}))}async function ia(t){let e=new n9,n=e.signal();!function(t,e,n,r=t=>t){n7(n,n=>{n5(t,e,r(n))},t)}(e,n,(t=await t).signal,t=>t.content);let{ia:r,ga:i}=function(t,e){let n=t.signal(),r=t.signal();return n7(e,e=>{n5(t,function(t){if(1===tX(t,rg))t=ee(t,ru,1,rg);else throw Error("CA Message arrived with no known content message set");return t.g()}(e)?n:r,e)},t),{ia:n,ga:r}}(e,n);return{Z:new ie(t.channel,r),aa:new ie(t.channel,i)}}async function io(t,e){if({Z:t}=await ia(rA(t.g)),!(e=await ii(t,e)))throw Error("Failed to create co-doing session");return e}async function is(t,e){if({aa:t}=await ia(rA(t.g)),!(e=await ir(t,e)))throw Error("Failed to create co-watching session");return e}var il=class extends no{async notifySidePanel(t){await rN(this.context.g,1,t)}
1async unloadSidePanel(){await rT(this.context.g)}async loadSidePanel(){await rE(this.context.g)}},ic=class extends no{async setAddonStartingState(t){if(null===t)throw new eg(eI("addonStartingState"));if("object"!=typeof t)throw new eg(ej("addonStartingState",typeof t,"object | undefined"));if(void 0!==t.sidePanelUrl&&"string"!=typeof t.sidePanelUrl)throw new eg(ej("sidePanelUrl",typeof t.sidePanelUrl,"string | undefined"));if(void 0!==t.additionalData&&"string"!=typeof t.additionalData)throw new eg(ej("additionalData",typeof t.additionalData,"string | undefined"));if(Object.keys(t).length!==+!!t.sidePanelUrl+ +!!t.additionalData)throw new eg(eP);if(0===Object.keys(t).length)throw new eg(eN);var e=[];e.push(eY(eK(eG(1),t.sidePanelUrl),t.additionalData)),t=this.context.g;var n=new nw,r=n.setAddonStartingState;e=t4(new nm,e),await rP(t,r.call(n,e))}},iu=class extends no{async notifyMainStage(t){await rN(this.context.g,2,t)}},ih=class{constructor(t){let e;t=t.cloudProjectNumber;let n=nl();if(n.cloudProjectNumber!==t)throw new eg(eS);let r=n.S,a=n.ba;i=null!=(e=i)?e:function(t,e,n){let r=new n9,i=r.signal();return t=(({destination:t,origin:e,ra:n,Y:r="ZNWN1d",onMessage:i})=>{if("*"===e)throw Error("Sending to wildcard origin not allowed.");let a=nP(i);return t.postMessage(n?{n:r,t:n}:r,e,[a.port2]),nI(a.port1,i)})({destination:window.parent,origin:e,Y:t,onMessage:t=>{let e=nA(t.data.content);2===tX(e,nT)&&n5(r,i,{content:ee(e,e6,2,nT),ka:t,messagePort:t.data.messagePort})}}),new rI(i,t,n)}(a,r,t),this.g=new rj(n)}async createMainStageClient(){var t=this.g;if(2!==t.h.frameType)throw new eg(em);return await Promise.resolve(new il(t))}async createSidePanelClient(){var t=this.g;if(1!==t.h.frameType)throw new eg(ew);return await Promise.resolve(new iu(t))}async createCoWatchingClient(t){return await is(this.g,t)}async createCoDoingClient(t){return await io(this.g,t)}async createRoomsStandaloneClient(){var t=this.g;if(2!==t.h.frameType)throw new eg(em);return await Promise.resolve(new ic(t))}};let id=null;var ig={addon:{getFrameType:function(){t:{var t=nl().frameType;switch(t){case 2:t="MAIN_STAGE";break t;case 1:t="SIDE_PANEL";break t;default:throw Error(`Unknown frame type: ${t}`)}}return t},createAddonSession:async function(t){if(null===t)throw new eg(eI("config"));if("object"!=typeof t)throw new eg(ej("config",typeof t,"object"));if("string"!=typeof t.cloudProjectNumber)throw new eg(ej("cloudProjectNumber",typeof t.cloudProjectNumber,"string"));if(id&&"integration.test.google.com"!==nl().S)throw new eg(eD);return id=new ih(t)}}},iy=["meet"],ip=w;for((iy[0]in ip)||void 0===ip.execScript||ip.execScript("var "+iy[0]);iy.length&&(y=iy.shift());)iy.length||void 0===ig?ip=ip[y]&&ip[y]!==Object.prototype[y]?ip[y]:ip[y]={}:ip[y]=ig}).apply(r);let i=r.meet}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.