@microsoft/teams-js 2.8.1-beta.0 → 2.9.0-beta.0

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.
@@ -1,2 +1,2 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("microsoftTeams",[],n):"object"==typeof exports?exports.microsoftTeams=n():e.microsoftTeams=n()}(self,(function(){return(()=>{var e={881:e=>{var n=1e3,t=60*n,o=60*t,i=24*o;function r(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var a=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function a(e){var r=Math.abs(e);return r>=i?Math.round(e/i)+"d":r>=o?Math.round(e/o)+"h":r>=t?Math.round(e/t)+"m":r>=n?Math.round(e/n)+"s":e+"ms"}function s(e){var r=Math.abs(e);return r>=i?l(e,r,i,"day"):r>=o?l(e,r,o,"hour"):r>=t?l(e,r,t,"minute"):r>=n?l(e,r,n,"second"):e+" ms"}function l(e,n,t,o){var i=n>=1.5*t;return Math.round(e/t)+" "+o+(i?"s":"")}e.exports=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return r(e);if("number"===t&&isFinite(e))return n.long?s(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},130:(e,n,t)=>{n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let o=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=t(123)(n);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},123:(e,n,t)=>{e.exports=function(e){function n(e){let t,i,r,a=null;function s(...e){if(!s.enabled)return;const o=s,i=Number(new Date),r=i-(t||i);o.diff=r,o.prev=t,o.curr=i,t=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if("%%"===t)return"%";a++;const r=n.formatters[i];if("function"==typeof r){const n=e[a];t=r.call(o,n),e.splice(a,1),a--}return t})),n.formatArgs.call(o,e);(o.log||n.log).apply(o,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=o,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==n.namespaces&&(i=n.namespaces,r=n.enabled(e)),r),set:e=>{a=e}}),"function"==typeof n.init&&n.init(s),s}function o(e,t){const o=n(this.namespace+(void 0===t?":":t)+e);return o.log=this.log,o}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(i),...n.skips.map(i).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),i=o.length;for(t=0;t<i;t++)o[t]&&("-"===(e=o[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.slice(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,o;for(t=0,o=n.skips.length;t<o;t++)if(n.skips[t].test(e))return!1;for(t=0,o=n.names.length;t<o;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=t(881),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}},22:(e,n,t)=>{var o=t(481),i=t(426),r=i;r.v1=o,r.v4=i,e.exports=r},725:e=>{for(var n=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var o=t||0,i=n;return[i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]]].join("")}},157:e=>{var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t}}else{var o=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),o[n]=e>>>((3&n)<<3)&255;return o}}},481:(e,n,t)=>{var o,i,r=t(157),a=t(725),s=0,l=0;e.exports=function(e,n,t){var c=n&&t||0,u=n||[],d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==f){var p=r();null==d&&(d=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=i=16383&(p[6]<<8|p[7]))}var g=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,h=g-s+(m-l)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||g>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=g,l=m,i=f;var w=(1e4*(268435455&(g+=122192928e5))+m)%4294967296;u[c++]=w>>>24&255,u[c++]=w>>>16&255,u[c++]=w>>>8&255,u[c++]=255&w;var C=g/4294967296*1e4&268435455;u[c++]=C>>>8&255,u[c++]=255&C,u[c++]=C>>>24&15|16,u[c++]=C>>>16&255,u[c++]=f>>>8|128,u[c++]=255&f;for(var v=0;v<6;++v)u[c+v]=d[v];return n||a(u)}},426:(e,n,t)=>{var o=t(157),i=t(725);e.exports=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var s=0;s<16;++s)n[r+s]=a[s];return n||i(a)}}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}(()=>{t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}})(),(()=>{t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};return(()=>{"use strict";t.r(o),t.d(o,{ActionObjectType:()=>m,ChannelType:()=>I,ChildAppWindow:()=>Yn,ContainerState:()=>Gt,DialogDimension:()=>E,ErrorCode:()=>w,FileOpenPreference:()=>g,FrameContexts:()=>S,HostClientType:()=>v,HostName:()=>y,LiveShareHost:()=>eo,NotificationTypes:()=>un,ParentAppWindow:()=>et,SecondaryM365ContentIdName:()=>h,TaskModuleDimension:()=>F,TeamType:()=>b,UserMeetingRole:()=>jt,UserSettingTypes:()=>fn,UserTeamRole:()=>T,ViewerActionTypes:()=>dn,app:()=>le,appEntity:()=>Xt,appInitialization:()=>pt,appInstallDialog:()=>kn,authentication:()=>ie,barCode:()=>Ln,calendar:()=>ot,call:()=>ft,chat:()=>Un,conversations:()=>pn,dialog:()=>re,enablePrintCapability:()=>yt,executeDeepLink:()=>Ut,files:()=>Kt,geoLocation:()=>Hn,getAdaptiveCardSchemaVersion:()=>Xn,getContext:()=>bt,getMruTabInstances:()=>Nt,getTabInstances:()=>Dt,initialize:()=>vt,initializeWithFrameContext:()=>Wt,location:()=>$n,logs:()=>cn,mail:()=>it,media:()=>Nn,meeting:()=>nt,meetingRoom:()=>Zt,menus:()=>ae,monetization:()=>tt,navigateBack:()=>Bt,navigateCrossDomain:()=>_t,navigateToTab:()=>Vt,notifications:()=>Jt,openFilePreview:()=>Fn,pages:()=>ce,people:()=>rt,print:()=>St,profile:()=>at,registerAppButtonClickHandler:()=>Pt,registerAppButtonHoverEnterHandler:()=>It,registerAppButtonHoverLeaveHandler:()=>Ft,registerBackButtonHandler:()=>kt,registerBeforeUnloadHandler:()=>Rt,registerChangeSettingsHandler:()=>Mt,registerCustomHandler:()=>Pn,registerFocusEnterHandler:()=>Ot,registerFullScreenHandler:()=>Et,registerOnLoadHandler:()=>At,registerOnThemeChangeHandler:()=>Tt,registerUserSettingsChangeHandler:()=>In,remoteCamera:()=>Qt,returnFocus:()=>xt,search:()=>lt,sendCustomEvent:()=>En,sendCustomMessage:()=>Tn,setFrameContext:()=>Ht,settings:()=>gt,shareDeepLink:()=>Lt,sharing:()=>ct,stageView:()=>ut,tasks:()=>zt,teams:()=>$t,teamsCore:()=>se,uploadCustomApp:()=>bn,version:()=>ue,video:()=>st,videoEx:()=>Yt,webStorage:()=>dt});var e="2.0.1",n="2.0.3",i="1.9.0",r="1.8.0",a=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","msft.spoppe.com","*.sharepoint.com","*.sharepoint-df.com","*.sharepointonline.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.live.com","outlook-sdf.live.com","*.teams.microsoft.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com"],s=/^https:\/\//,l="https",c="teams.microsoft.com",u="The library has not yet been initialized",d=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}(),f=(0,t(130).debug)("teamsJs");function p(e){return f.extend(e)}var g,m,h,w,C,v,y,S,b,T,E,P=t(22);!function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(g||(g={})),function(e){e.M365Content="m365content"}(m||(m={})),function(e){e.DriveId="driveId",e.GroupId="groupId",e.SiteId="siteId",e.UserId="userId"}(h||(h={})),function(e){e[e.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",e[e.INTERNAL_ERROR=500]="INTERNAL_ERROR",e[e.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",e[e.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",e[e.NETWORK_ERROR=2e3]="NETWORK_ERROR",e[e.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",e[e.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",e[e.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",e[e.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",e[e.THROTTLE=7e3]="THROTTLE",e[e.USER_ABORT=8e3]="USER_ABORT",e[e.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",e[e.OLD_PLATFORM=9e3]="OLD_PLATFORM",e[e.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",e[e.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(w||(w={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(C||(C={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(v||(v={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.teams="Teams"}(y||(y={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(S||(S={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(b||(b={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(T||(T={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(E||(E={}));var I,F=E;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(I||(I={}));var k={errorCode:w.NOT_SUPPORTED_ON_PLATFORM},A=1,R=5;function O(e,n){if("*."===e.substring(0,2)){var t=e.substring(1);if(n.length>t.length&&n.split(".").length===t.split(".").length&&n.substring(n.length-t.length)===t)return!0}else if(e===n)return!0;return!1}function M(e){if("https:"!==e.protocol)return!1;var n=e.host;if(a.some((function(e){return O(e,n)})))return!0;for(var t=0,o=d.additionalValidOrigins;t<o.length;t++){var i=o[t];if(O("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function D(e){return function(n,t){if(!n)throw new Error(e||t)}}function N(e,n){if("string"!=typeof e||"string"!=typeof n)return NaN;var t=e.split("."),o=n.split(".");function i(e){return/^\d+$/.test(e)}if(!t.every(i)||!o.every(i))return NaN;for(;t.length<o.length;)t.push("0");for(;o.length<t.length;)o.push("0");for(var r=0;r<t.length;++r)if(Number(t[r])!=Number(o[r]))return Number(t[r])>Number(o[r])?1:-1;return 0}function L(){return P.v4()}function U(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&U(e[n])})),Object.freeze(e)}function H(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(void 0,e)})).catch((function(e){n&&n(e)})),i}function W(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(){n&&n(null)})).catch((function(e){n&&n(e)})),i}function x(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(null,e)})).catch((function(e){n&&n(e,null)})),i}function V(e,n,t){return new Promise((function(o,i){var r=setTimeout(i,n,t);e().then((function(e){clearTimeout(r),o(e)})).catch((function(e){clearTimeout(r),i(e)}))}))}function _(e){var n=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId)+"/"+encodeURIComponent(e.pageId));return e.webUrl&&n.searchParams.append("webUrl",e.webUrl),(e.channelId||e.subPageId)&&n.searchParams.append("context",JSON.stringify({channelId:e.channelId,subEntityId:e.subPageId})),n.toString()}function B(e){return!(N("".concat(e.majorVersion,".").concat(e.minorVersion),"".concat(A,".").concat(R))>=0)}var z=function(){return z=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},z.apply(this,arguments)},j=p("runtime");function G(e){return 2===e.apiVersion}var q={apiVersion:-1,supports:{}};function K(e){if(G(e))return!0;throw-1===e.apiVersion?new Error("The runtime has not yet been initialized"):new Error("The runtime version is not supported")}var Z=q,J={appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{url:{bot:{}},update:{}},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},sharing:{},stageView:{},teams:{fullTrust:{}},teamsCore:{},video:{}},Q=[v.desktop,v.web,v.android,v.ios,v.rigel,v.surfaceHub,v.teamsRoomsWindows,v.teamsRoomsAndroid,v.teamsPhones,v.teamsDisplays];function X(e){var n=e;if(n.apiVersion<2&&$.forEach((function(e){n.apiVersion===e.versionToUpgradeFrom&&(n=e.upgradeToNextVersion(n))})),G(n))return n;throw new Error("Received a runtime that could not be upgraded to the latest version")}var $=[{versionToUpgradeFrom:1,upgradeToNextVersion:function(e){var n;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:e.isLegacyTeams,supports:z(z({},e.supports),{dialog:e.supports.dialog?{card:void 0,url:e.supports.dialog,update:null===(n=e.supports.dialog)||void 0===n?void 0:n.update}:void 0})}}}],Y={"1.9.0":[{capability:{location:{}},hostClientTypes:Q}],"2.0.0":[{capability:{people:{}},hostClientTypes:Q}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[v.android,v.desktop,v.ios,v.teamsRoomsAndroid,v.teamsPhones,v.teamsDisplays,v.web]},{capability:{webStorage:{}},hostClientTypes:[v.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[v.android,v.desktop,v.ios]}]},ee=j.extend("generateBackCompatRuntimeConfig");function ne(e){ee("generating back compat runtime config for %s",e);var n=z({},J);ee("Supported capabilities in config before updating based on highestSupportedVersion: %o",n),Object.keys(Y).forEach((function(t){N(e,t)>=0&&Y[t].forEach((function(e){e.hostClientTypes.includes(d.hostClientType)&&(n=z(z({},n),e.capability))}))}));var t={apiVersion:2,isLegacyTeams:!0,supports:n};return ee("Runtime config after updating based on highestSupportedVersion: %o",t),t}var te=j.extend("applyRuntimeConfig");function oe(e){"string"==typeof e.apiVersion&&(te("Trying to apply runtime with string apiVersion, processing as v1: %o",e),e=z(z({},e),{apiVersion:1})),te("Fast-forwarding runtime %o",e);var n=X(e);te("Applying runtime %o",n),Z=U(n)}var ie,re,ae,se,le,ce,ue="2.8.1-beta.0",de=p("internal"),fe=de.extend("ensureInitializeCalled"),pe=de.extend("ensureInitialized");function ge(){if(!d.initializeCalled)throw fe(u),new Error(u)}function me(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if(!d.initializeCompleted)throw pe("%s. initializeCalled: %s",u,d.initializeCalled.toString()),new Error(u);if(n&&n.length>0){for(var o=!1,i=0;i<n.length;i++)if(n[i]===d.frameContext){o=!0;break}if(!o)throw new Error("This call is only allowed in following contexts: ".concat(JSON.stringify(n),". ")+'Current context: "'.concat(d.frameContext,'".'))}return K(e)}function he(n){void 0===n&&(n=e);var t=N(d.clientSupportedSDKVersion,n);return!isNaN(t)&&t>=0}function we(){return d.hostClientType==v.android||d.hostClientType==v.ios}function Ce(n){if(void 0===n&&(n=e),!we())throw{errorCode:w.NOT_SUPPORTED_ON_PLATFORM};if(!he(n))throw{errorCode:w.OLD_PLATFORM}}function ve(e){var n=d.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&s.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),d.additionalValidOrigins=n}function ye(e){return{actionInfo:e.actionInfo,app:{locale:e.locale,sessionId:e.appSessionId?e.appSessionId:"",theme:e.theme?e.theme:"default",iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:y.teams,clientType:e.hostClientType?e.hostClientType:v.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:d.frameContext,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,sourceOrigin:e.sourceOrigin},user:{id:e.userObjectId,displayName:e.userDisplayName,isCallingAllowed:e.isCallingAllowed,isPSTNCallingAllowed:e.isPSTNCallingAllowed,licenseType:e.userLicenseType,loginHint:e.loginHint,userPrincipalName:e.userPrincipalName,tenant:e.tid?{id:e.tid,teamsSku:e.tenantSKU}:void 0},channel:e.channelId?{id:e.channelId,displayName:e.channelName,relativeUrl:e.channelRelativeUrl,membershipType:e.channelType,defaultOneNoteSectionId:e.defaultOneNoteSectionId,ownerGroupId:e.hostTeamGroupId,ownerTenantId:e.hostTeamTenantId}:void 0,chat:e.chatId?{id:e.chatId}:void 0,meeting:e.meetingId?{id:e.meetingId}:void 0,sharepoint:e.sharepoint,team:e.teamId?{internalId:e.teamId,displayName:e.teamName,type:e.teamType,groupId:e.groupId,templateId:e.teamTemplateId,isArchived:e.isTeamArchived,userRole:e.userTeamRole}:void 0,sharePointSite:e.teamSiteUrl||e.teamSiteDomain||e.teamSitePath||e.mySitePath||e.mySiteDomain?{teamSiteUrl:e.teamSiteUrl,teamSiteDomain:e.teamSiteDomain,teamSitePath:e.teamSitePath,teamSiteId:e.teamSiteId,mySitePath:e.mySitePath,mySiteDomain:e.mySiteDomain}:void 0}}function Se(){return"undefined"==typeof window}!function(e){var n,t,o;function i(e){return new Promise((function(t,o){if(d.hostClientType===v.desktop||d.hostClientType===v.android||d.hostClientType===v.ios||d.hostClientType===v.rigel||d.hostClientType===v.teamsRoomsWindows||d.hostClientType===v.teamsRoomsAndroid||d.hostClientType===v.teamsPhones||d.hostClientType===v.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(Ze("authentication.authenticate",[i.href,e.width,e.height,e.isExternal]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else n={success:t,fail:o},l(e)}))}function r(e){return new Promise((function(n){n(Ze("authentication.getAuthToken",[null==e?void 0:e.resources,null==e?void 0:e.claims,null==e?void 0:e.silent]))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function a(){return new Promise((function(e){e(Ze("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function s(){c();try{Ve.childWindow&&Ve.childWindow.close()}finally{Ve.childWindow=null,Ve.childOrigin=null}}function l(e){s();var n=e.width||600,t=e.height||400;n=Math.min(n,Ve.currentWindow.outerWidth-400),t=Math.min(t,Ve.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url.replace("{oauthRedirectMethod}","web");var i=void 0!==Ve.currentWindow.screenLeft?Ve.currentWindow.screenLeft:Ve.currentWindow.screenX,r=void 0!==Ve.currentWindow.screenTop?Ve.currentWindow.screenTop:Ve.currentWindow.screenY;i+=Ve.currentWindow.outerWidth/2-n/2,r+=Ve.currentWindow.outerHeight/2-t/2,Ve.childWindow=Ve.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),Ve.childWindow?u():p("FailedToOpenWindow")}function c(){t&&(clearInterval(t),t=0),Ae("initialize"),Ae("navigateCrossDomain")}function u(){c(),t=Ve.currentWindow.setInterval((function(){if(!Ve.childWindow||Ve.childWindow.closed)p("CancelledByUser");else{var e=Ve.childOrigin;try{Ve.childOrigin="*",Cn("ping")}finally{Ve.childOrigin=e}}}),100),ke("initialize",(function(){return[S.authentication,d.hostClientType]})),ke("navigateCrossDomain",(function(){return!1}))}function f(e){try{n&&n.success(e)}finally{n=null,s()}}function p(e){try{n&&n.fail(new Error(e))}finally{n=null,s()}}function g(e,n,t){if(e){var o=document.createElement("a");o.href=decodeURIComponent(e),o.host&&o.host!==window.location.host&&"outlook.office.com"===o.host&&o.search.indexOf("client_type=Win32_Outlook")>-1&&(n&&"result"===n&&(t&&(o.href=m(o.href,"result",t)),Ve.currentWindow.location.assign(m(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=m(o.href,"reason",t)),Ve.currentWindow.location.assign(m(o.href,"authFailure",""))))}}function m(e,n,t){var o=e.indexOf("#"),i=-1===o?"#":e.substr(o);return i=i+"&"+n+(""!==t?"="+t:""),(e=-1===o?e:e.substr(0,o))+i}e.initialize=function(){ke("authentication.authenticate.success",f,!1),ke("authentication.authenticate.failure",p,!1)},e.registerAuthenticationHandlers=function(e){o=e},e.authenticate=function(e){var n=void 0!==e,t=n?e:o;if(!t)throw new Error("No parameters are provided for authentication");return me(Z,S.content,S.sidePanel,S.settings,S.remove,S.task,S.stage,S.meetingStage),i(t).then((function(e){try{return t&&t.successCallback?(t.successCallback(e),""):e}finally{n||(o=null)}})).catch((function(e){try{if(t&&t.failureCallback)return t.failureCallback(e.message),"";throw e}finally{n||(o=null)}}))},e.getAuthToken=function(e){return ge(),r(e).then((function(n){return e&&e.successCallback?(e.successCallback(n),""):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),"";throw n}))},e.getUser=function(e){return ge(),a().then((function(n){return e&&e.successCallback?(e.successCallback(n),null):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),null;throw n}))},e.notifySuccess=function(e,n){g(n,"result",e),me(Z,S.authentication),Qe("authentication.authenticate.success",[e]),hn(Ve.parentWindow,(function(){return setTimeout((function(){return Ve.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){g(n,"reason",e),me(Z,S.authentication),Qe("authentication.authenticate.failure",[e]),hn(Ve.parentWindow,(function(){return setTimeout((function(){return Ve.currentWindow.close()}),200)}))},function(e){e.Public="public",e.EUDB="eudb",e.Other="other"}(e.DataResidency||(e.DataResidency={}))}(ie||(ie={})),function(e){var n=[];function t(e){d.frameContext&&(d.frameContext===S.task?n.push(e):Ae("messageForChild"))}e.initialize=function(){ke("messageForChild",t,!1)},function(e){function t(){return me(Z)&&void 0!==(Z.supports.dialog&&Z.supports.dialog.url)}function o(e){return{url:e.url,height:e.size?e.size.height:E.Small,width:e.size?e.size.width:E.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function i(e){var n=o(e);return n.completionBotId=e.completionBotId,n}e.open=function(e,n,i){if(me(Z,S.content,S.sidePanel,S.meetingStage),!t())throw k;i&&ke("messageForParent",i),Qe("tasks.startTask",[o(e)],(function(e,t){null==n||n({err:e,result:t}),Ae("messageForParent")}))},e.submit=function(e,n){if(me(Z,S.content,S.task),!t())throw k;Qe("tasks.completeTask",[e,n?Array.isArray(n)?n:[n]:[]])},e.sendMessageToParentFromDialog=function(e){if(me(Z,S.task),!t())throw k;Qe("messageForParent",[e])},e.sendMessageToDialog=function(e){if(me(Z,S.content,S.sidePanel,S.meetingStage),!t())throw k;Qe("messageForChild",[e])},e.registerOnMessageFromParent=function(e){if(me(Z,S.task),!t())throw k;for(Ae("messageForChild"),ke("messageForChild",e),n.reverse();n.length>0;){e(n.pop())}},e.isSupported=t,function(e){function n(){return me(Z)&&void 0!==(Z.supports.dialog&&Z.supports.dialog.url&&Z.supports.dialog.url.bot)}e.open=function(e,t,o){if(me(Z,S.content,S.sidePanel,S.meetingStage),!n())throw k;o&&ke("messageForParent",o),Qe("tasks.startTask",[i(e)],(function(e,n){null==t||t({err:e,result:n}),Ae("messageForParent")}))},e.isSupported=n}(e.bot||(e.bot={})),e.getDialogInfoFromUrlDialogInfo=o,e.getDialogInfoFromBotUrlDialogInfo=i}(e.url||(e.url={})),e.isSupported=function(){return!(!me(Z)||!Z.supports.dialog)},function(e){function n(){return!(!me(Z)||!Z.supports.dialog)&&!!Z.supports.dialog.update}e.resize=function(e){if(me(Z,S.content,S.sidePanel,S.task,S.meetingStage),!n())throw k;Qe("tasks.updateTask",[e])},e.isSupported=n}(e.update||(e.update={})),function(e){function n(){var e=Z.hostVersionsInfo&&Z.hostVersionsInfo.adaptiveCardSchemaVersion&&!B(Z.hostVersionsInfo.adaptiveCardSchemaVersion);return me(Z)&&void 0!==(e&&Z.supports.dialog&&Z.supports.dialog.card)}function t(e){return{card:e.card,height:e.size?e.size.height:E.Small,width:e.size?e.size.width:E.Small,title:e.title}}function o(e){var n=t(e);return n.completionBotId=e.completionBotId,n}e.open=function(e,o){if(me(Z,S.content,S.sidePanel,S.meetingStage),!n())throw k;Qe("tasks.startTask",[t(e)],(function(e,n){null==o||o({err:e,result:n})}))},e.isSupported=n,function(e){function n(){var e=Z.hostVersionsInfo&&Z.hostVersionsInfo.adaptiveCardSchemaVersion&&!B(Z.hostVersionsInfo.adaptiveCardSchemaVersion);return me(Z)&&void 0!==(e&&Z.supports.dialog&&Z.supports.dialog.card&&Z.supports.dialog.card.bot)}e.open=function(e,t){if(me(Z,S.content,S.sidePanel,S.meetingStage),!n())throw k;Qe("tasks.startTask",[o(e)],(function(e,n){null==t||t({err:e,result:n})}))},e.isSupported=n}(e.bot||(e.bot={})),e.getDialogInfoFromAdaptiveCardDialogInfo=t,e.getDialogInfoFromBotAdaptiveCardDialogInfo=o,e.getAdaptiveCardDialogInfoFromTaskInfo=function(e){return{card:e.card,size:{height:e.height?e.height:E.Small,width:e.width?e.width:E.Small},title:e.title}},e.getBotAdaptiveCardDialogInfoFromTaskInfo=function(e){return{card:e.card,size:{height:e.height?e.height:E.Small,width:e.width?e.width:E.Small},title:e.title,completionBotId:e.completionBotId}}}(e.adaptiveCard||(e.adaptiveCard={}))}(re||(re={})),function(e){!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(e.DisplayMode||(e.DisplayMode={}));var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(me(Z),Qe("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(me(Z),Qe("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(me(Z),Qe("handleActionMenuItemPress",[e]))}function l(){return!(!me(Z)||!Z.supports.menus)}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){ke("navBarMenuItemPress",a,!1),ke("actionMenuItemPress",s,!1),ke("setModuleView",r,!1)},e.setUpViews=function(e,n){if(me(Z),!l())throw k;o=n,Qe("setUpViews",[e])},e.setNavBarMenu=function(e,t){if(me(Z),!l())throw k;n=t,Qe("setNavBarMenu",[e])},e.showActionMenu=function(e,n){if(me(Z),!l())throw k;t=n,Qe("showActionMenu",[e])},e.isSupported=l}(ae||(ae={})),function(e){function n(){if("undefined"==typeof window)throw new Error("window object undefined at print call");window.print()}function t(e,n){e&&me(Z),e&&n&&n(),Ne(e)}function o(e,n){e&&me(Z),e&&n&&n(),Ue(e)}function i(){return!(!me(Z)||!Z.supports.teamsCore)}e.enablePrintCapability=function(){if(!d.printCapabilityEnabled){if(me(Z),!i())throw k;d.printCapabilityEnabled=!0,document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(n(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())}))}},e.print=n,e.registerOnLoadHandler=function(e){t(e,(function(){if(e&&!i())throw k}))},e.registerOnLoadHandlerHelper=t,e.registerBeforeUnloadHandler=function(e){o(e,(function(){if(e&&!i())throw k}))},e.registerBeforeUnloadHandlerHelper=o,e.isSupported=i}(se||(se={})),function(n){var t=p("app");n.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(n.FailedReason||(n.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(n.ExpectedFailureReason||(n.ExpectedFailureReason={})),n.isInitialized=function(){return d.initializeCompleted},n.getFrameContext=function(){return d.frameContext};n.initialize=function(e){return Se()?(t.extend("initialize")("window object undefined at initialization"),Promise.resolve()):V((function(){return i(e)}),5e3,new Error("SDK initialization timed out."))};var o=t.extend("initializeHelper");function i(n){return new Promise((function(t){d.initializeCalled||(d.initializeCalled=!0,Pe(),d.initializePromise=Be(n).then((function(n){var t=n.context,i=n.clientType,r=n.runtimeConfig,a=n.clientSupportedSDKVersion,s=void 0===a?e:a;d.frameContext=t,d.hostClientType=i,d.clientSupportedSDKVersion=s;try{o("Parsing %s",r);var l=JSON.parse(r);if(o("Checking if %o is a valid runtime object",null!=l?l:"null"),!l||!l.apiVersion)throw new Error("Received runtime config is invalid");r&&oe(l)}catch(n){if(!(n instanceof SyntaxError))throw n;try{o("Attempting to parse %s as an SDK version",r),isNaN(N(r,e))||(d.clientSupportedSDKVersion=r);l=JSON.parse(s);if(o("givenRuntimeConfig parsed to %o",null!=l?l:"null"),!l)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");oe(l)}catch(e){if(!(e instanceof SyntaxError))throw e;oe(ne(d.clientSupportedSDKVersion))}}d.initializeCompleted=!0})),ie.initialize(),ae.initialize(),ce.config.initialize(),re.initialize()),Array.isArray(n)&&ve(n),t(d.initializePromise)}))}function r(e){e&&ge(),Me(e)}n._initialize=function(e){Ve.currentWindow=e},n._uninitialize=function(){d.initializeCalled&&(d.frameContext&&(r(null),ce.backStack.registerBackButtonHandler(null),ce.registerFullScreenHandler(null),se.registerBeforeUnloadHandler(null),se.registerOnLoadHandler(null),cn.registerGetLogHandler(null)),d.frameContext===S.settings&&ce.config.registerOnSaveHandler(null),d.frameContext===S.remove&&ce.config.registerOnRemoveHandler(null),d.initializeCalled=!1,d.initializeCompleted=!1,d.initializePromise=null,d.additionalValidOrigins=[],d.frameContext=null,d.hostClientType=null,d.isFramelessWindow=!1,ze())},n.getContext=function(){return new Promise((function(e){ge(),e(je("getContext"))})).then((function(e){return ye(e)}))},n.notifyAppLoaded=function(){ge(),Qe(n.Messages.AppLoaded,[ue])},n.notifySuccess=function(){ge(),Qe(n.Messages.Success,[ue])},n.notifyFailure=function(e){ge(),Qe(n.Messages.Failure,[e.reason,e.message])},n.notifyExpectedFailure=function(e){ge(),Qe(n.Messages.ExpectedFailure,[e.reason,e.message])},n.registerOnThemeChangeHandler=r,n.openLink=function(e){return new Promise((function(n){me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),n(Ge("executeDeepLink",e))}))}}(le||(le={})),function(e){function n(e){if(me(Z,S.content),!t())throw k;Qe("setFrameContext",[e])}function t(){return!(!me(Z)||!Z.supports.pages)}e.returnFocus=function(e){if(me(Z),!t())throw k;Qe("returnFocus",[e])},e.registerFocusEnterHandler=function(e){Oe("focusEnter",e,[],(function(){if(!t())throw k}))},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){le.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){if(me(Z,S.content,S.settings,S.remove,S.sidePanel),!t())throw k;e(je("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){if(me(Z,S.content,S.sidePanel,S.settings,S.remove,S.task,S.stage,S.meetingStage),!t())throw k;n(qe("navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",e))}))},e.navigateToApp=function(e){return new Promise((function(n){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!t())throw k;Z.isLegacyTeams?n(Ge("executeDeepLink",_(e))):n(Ge("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){if(me(Z,S.content,S.sidePanel,S.meetingStage),!t())throw k;Qe("shareDeepLink",[e.subPageId,e.subPageLabel,e.subPageWebUrl])},e.registerFullScreenHandler=function(e){Oe("fullScreenChange",e,[],(function(){if(e&&!t())throw k}))},e.isSupported=t,function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.tabs}e.navigateToTab=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(qe("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(je("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(je("getMruTabInstances",e))}))},e.isSupported=n}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e,t){e&&me(Z,S.settings),t&&t(),n=e,e&&Qe("registerHandler",["save"])}function i(e,n){e&&me(Z,S.remove,S.settings),n&&n(),t=e,e&&Qe("registerHandler",["remove"])}function r(e){var t=new a(e);n?n(t):Ve.childWindow?Cn("settings.save",[e]):t.notifySuccess()}e.initialize=function(){ke("settings.save",r,!1),ke("settings.remove",s,!1)},e.setValidityState=function(e){if(me(Z,S.settings,S.remove),!c())throw k;Qe("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){if(me(Z,S.content,S.settings,S.sidePanel),!c())throw k;n(Ge("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){o(e,(function(){if(e&&!c())throw k}))},e.registerOnSaveHandlerHelper=o,e.registerOnRemoveHandler=function(e){i(e,(function(){if(e&&!c())throw k}))},e.registerOnRemoveHandlerHelper=i,e.registerChangeConfigHandler=function(e){Oe("changeSettings",e,[S.content],(function(){if(!c())throw k}))};var a=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Qe("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Qe("settings.save.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},e}();function s(){var e=new l;t?t(e):Ve.childWindow?Cn("settings.remove",[]):e.notifySuccess()}var l=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Qe("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Qe("settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},e}();function c(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.config}e.isSupported=c}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){if(me(Z),!r())throw k;e(qe("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(e,t){e&&me(Z),t&&t(),n=e,e&&Qe("registerHandler",["backButton"])}function i(){n&&n()||(Ve.childWindow?Cn("backButtonPress",[]):t())}function r(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.backStack}e._initialize=function(){ke("backButtonPress",i,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){o(e,(function(){if(e&&!r())throw k}))},e.registerBackButtonHandlerHelper=o,e.isSupported=r}(e.backStack||(e.backStack={})),function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.fullTrust}e.enterFullscreen=function(){if(me(Z,S.content),!n())throw k;Qe("enterFullscreen",[])},e.exitFullscreen=function(){if(me(Z,S.content),!n())throw k;Qe("exitFullscreen",[])},e.isSupported=n}(e.fullTrust||(e.fullTrust={})),function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.appButton}e.onClick=function(e){Oe("appButtonClick",e,[S.content],(function(){if(!n())throw k}))},e.onHoverEnter=function(e){Oe("appButtonHoverEnter",e,[S.content],(function(){if(!n())throw k}))},e.onHoverLeave=function(e){Oe("appButtonHoverLeave",e,[S.content],(function(){if(!n())throw k}))},e.isSupported=n}(e.appButton||(e.appButton={})),function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.currentApp}e.navigateTo=function(e){return new Promise((function(t){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!n())throw k;t(Ke("pages.currentApp.navigateTo",e))}))},e.navigateToDefaultPage=function(){return new Promise((function(e){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!n())throw k;e(Ke("pages.currentApp.navigateToDefaultPage"))}))},e.isSupported=n}(e.currentApp||(e.currentApp={}))}(ce||(ce={}));var be=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},Te=p("handlers"),Ee=function(){function e(){}return e.handlers={},e}();function Pe(){Ee.handlers.themeChange=De,Ee.handlers.load=Le,Ee.handlers.beforeUnload=He,ce.backStack._initialize()}var Ie=Te.extend("callHandler");function Fe(e,n){var t=Ee.handlers[e];return t?(Ie("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):Ve.childWindow?(Cn(e,[n]),[!1,void 0]):(Ie("Handler for action message %s not found.",e),[!1,void 0])}function ke(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(Ee.handlers[e]=n,t&&Qe("registerHandler",be([e],o,!0))):delete Ee.handlers[e]}function Ae(e){delete Ee.handlers[e]}function Re(e){return null!=Ee.handlers[e]}function Oe(e,n,t,o){n&&me.apply(void 0,be([Z],t,!1)),o&&o(),ke(e,n)}function Me(e){Ee.themeChangeHandler=e,e&&Qe("registerHandler",["themeChange"])}function De(e){Ee.themeChangeHandler&&Ee.themeChangeHandler(e),Ve.childWindow&&Cn("themeChange",[e])}function Ne(e){Ee.loadHandler=e,e&&Qe("registerHandler",["load"])}function Le(e){Ee.loadHandler&&Ee.loadHandler(e),Ve.childWindow&&Cn("load",[e])}function Ue(e){Ee.beforeUnloadHandler=e,e&&Qe("registerHandler",["beforeUnload"])}function He(){var e=function(){Qe("readyToUnload",[])};Ee.beforeUnloadHandler&&Ee.beforeUnloadHandler(e)||(Ve.childWindow?Cn("beforeUnload"):e())}var We=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},xe=p("communication"),Ve=function(){return function(){}}(),_e=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Be(e){if(_e.messageListener=function(e){return Ye(e)},Ve.currentWindow=Ve.currentWindow||window,Ve.parentWindow=Ve.currentWindow.parent!==Ve.currentWindow.self?Ve.currentWindow.parent:Ve.currentWindow.opener,(Ve.parentWindow||e)&&Ve.currentWindow.addEventListener("message",_e.messageListener,!1),!Ve.parentWindow){var n=Ve.currentWindow;if(!n.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));d.isFramelessWindow=!0,n.onNativeMessage=on}try{return Ve.parentOrigin="*",Ze("initialize",[ue,2]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{Ve.parentOrigin=null}}function ze(){Ve.currentWindow&&Ve.currentWindow.removeEventListener("message",_e.messageListener,!1),Ve.currentWindow=null,Ve.parentWindow=null,Ve.parentOrigin=null,Ve.childWindow=null,Ve.childOrigin=null,_e.parentMessageQueue=[],_e.childMessageQueue=[],_e.nextMessageId=0,_e.callbacks={},_e.promiseCallbacks={}}function je(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ze(e,n).then((function(e){return e[0]}))}function Ge(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ze(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function qe(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Ze(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function Ke(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ze(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Ze(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(Je($e(e,n).id))}))}function Je(e){return new Promise((function(n){_e.promiseCallbacks[e]=n}))}function Qe(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=$e(e,o);t&&(_e.callbacks[i.id]=t)}var Xe=xe.extend("sendMessageToParentHelper");function $e(e,n){var t=Xe,o=Ve.parentWindow,i=vn(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),d.isFramelessWindow)Ve.currentWindow&&Ve.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),Ve.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=ln(o);o&&r?(t("Sending message %i to parent via postMessage",i.id),o.postMessage(i,r)):(t("Adding message %i to parent message queue",i.id),sn(o).push(i))}return i}function Ye(e){if(e&&e.data&&"object"==typeof e.data){var n=e.source||e.originalEvent&&e.originalEvent.source,t=e.origin||e.originalEvent&&e.originalEvent.origin;en(n,t)&&(nn(n,t),n===Ve.parentWindow?on(e):n===Ve.childWindow&&an(e))}}function en(e,n){return(!Ve.currentWindow||e!==Ve.currentWindow)&&(!!(Ve.currentWindow&&Ve.currentWindow.location&&n&&n===Ve.currentWindow.location.origin)||M(new URL(n)))}function nn(e,n){d.isFramelessWindow||Ve.parentWindow&&!Ve.parentWindow.closed&&e!==Ve.parentWindow?Ve.childWindow&&!Ve.childWindow.closed&&e!==Ve.childWindow||(Ve.childWindow=e,Ve.childOrigin=n):(Ve.parentWindow=e,Ve.parentOrigin=n),Ve.parentWindow&&Ve.parentWindow.closed&&(Ve.parentWindow=null,Ve.parentOrigin=null),Ve.childWindow&&Ve.childWindow.closed&&(Ve.childWindow=null,Ve.childOrigin=null),mn(Ve.parentWindow),mn(Ve.childWindow)}var tn=xe.extend("handleParentMessage");function on(e){var n=tn;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=_e.callbacks[t.id];n("Received a response from parent for message %i",t.id),o&&(n("Invoking the registered callback for message %i with arguments %o",t.id,t.args),o.apply(null,We(We([],t.args,!0),[t.isPartialResponse],!1)),rn(e)||(n("Removing registered callback for message %i",t.id),delete _e.callbacks[t.id]));var i=_e.promiseCallbacks[t.id];i&&(n("Invoking the registered promise callback for message %i with arguments %o",t.id,t.args),i(t.args),n("Removing registered promise callback for message %i",t.id),delete _e.promiseCallbacks[t.id])}else if("func"in e.data&&"string"==typeof e.data.func){n("Received an action message %s from parent",(t=e.data).func),Fe(t.func,t.args)}else n("Received an unknown message: %O",e)}function rn(e){return!0===e.data.isPartialResponse}function an(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=Fe(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?wn(n.id,Array.isArray(i)?i:[i]):Qe(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(Ve.childWindow){var o=e.pop();wn(n.id,e,o)}}))}}function sn(e){return e===Ve.parentWindow?_e.parentMessageQueue:e===Ve.childWindow?_e.childMessageQueue:[]}function ln(e){return e===Ve.parentWindow?Ve.parentOrigin:e===Ve.childWindow?Ve.childOrigin:null}var cn,un,dn,fn,pn,gn=xe.extend("flushMessageQueue");function mn(e){for(var n=ln(e),t=sn(e),o=e==Ve.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();gn("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function hn(e,n){var t=Ve.currentWindow.setInterval((function(){0===sn(e).length&&(clearInterval(t),n())}),100)}function wn(e,n,t){var o=Ve.childWindow,i=yn(e,n,t),r=ln(o);o&&r&&o.postMessage(i,r)}function Cn(e,n){var t=Ve.childWindow,o=Sn(e,n),i=ln(t);t&&i?t.postMessage(o,i):sn(t).push(o)}function vn(e,n){return{id:_e.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function yn(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function Sn(e,n){return{func:e,args:n||[]}}function bn(e,n){me(Z),Qe("uploadCustomApp",[e],n||D())}function Tn(e,n,t){me(Z),Qe(e,n,t)}function En(e,n){if(me(Z),!Ve.childWindow)throw new Error("The child window has not yet been initialized or is not present");Cn(e,n)}function Pn(e,n){var t=this;me(Z),ke(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function In(e,n){me(Z),ke("userSettingsChange",n,!0,[e])}function Fn(e){me(Z,S.content,S.task),Qe("openFilePreview",[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId,e.viewerAction,e.fileOpenPreference,e.conversationId])}!function(e){function n(){return!(!me(Z)||!Z.supports.logs)}e.registerGetLogHandler=function(e){if(e&&me(Z),e&&!n())throw k;e?ke("log.request",(function(){Qe("log.receive",[e()])})):Ae("log.request")},e.isSupported=n}(cn||(cn={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(un||(un={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(dn||(dn={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(fn||(fn={})),function(e){function n(){return!(!me(Z)||!Z.supports.conversations)}e.openConversation=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw k;var o=Ge("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&ke("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&ke("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),t(o)}))},e.closeConversation=function(){if(me(Z,S.content),!n())throw k;Qe("conversations.closeConversation"),Ae("startConversation"),Ae("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){if(me(Z),!n())throw k;e(je("getChatMembers"))}))},e.isSupported=n}(pn||(pn={}));var kn,An="users";function Rn(e,n,t){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");var o="".concat(An,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),i=void 0===n?"":"&".concat("topicName","=").concat(encodeURIComponent(n)),r=void 0===t?"":"&".concat("message","=").concat(encodeURIComponent(t));return"".concat(l,"://").concat(c).concat("/l/chat/0/0","?").concat(o).concat(i).concat(r)}function On(e,n,t){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");var o="".concat(An,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),i=void 0===n?"":"&".concat("withVideo","=").concat(encodeURIComponent(n)),r=void 0===t?"":"&".concat("source","=").concat(encodeURIComponent(t));return"".concat(l,"://").concat(c).concat("/l/call/0/0","?").concat(o).concat(i).concat(r)}function Mn(e,n,t,o,i){var r=void 0===e?"":"".concat("attendees","=")+e.map((function(e){return encodeURIComponent(e)})).join(","),a=void 0===n?"":"&".concat("startTime","=").concat(encodeURIComponent(n)),s=void 0===t?"":"&".concat("endTime","=").concat(encodeURIComponent(t)),u=void 0===o?"":"&".concat("subject","=").concat(encodeURIComponent(o)),d=void 0===i?"":"&".concat("content","=").concat(encodeURIComponent(i));return"".concat(l,"://").concat(c).concat("/l/meeting/new","?").concat(r).concat(a).concat(s).concat(u).concat(d)}function Dn(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return"".concat(l,"://").concat(c).concat("/l/app/").concat(encodeURIComponent(e))}!function(e){function n(){return!(!me(Z)||!Z.supports.appInstallDialog)}e.openAppInstallDialog=function(e){return new Promise((function(t){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!n())throw new Error("Not supported");Z.isLegacyTeams?t(Ge("executeDeepLink",Dn(e.appId))):(Qe("appInstallDialog.openAppInstallDialog",[e]),t())}))},e.isSupported=n}(kn||(kn={}));var Nn,Ln,Un,Hn,Wn=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},e(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();function xn(e,n){if(null==e||null==n||e.length<=0)return null;var t,o=1;return e.sort((function(e,n){return e.sequence>n.sequence?1:-1})),e.forEach((function(e){e.sequence==o&&(t=t?new Blob([t,e.file],{type:n}):new Blob([e.file],{type:n}),o++)})),t}function Vn(e,n){if(null==e||null==n)return null;for(var t=atob(e.chunk),o=new Array(t.length),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);var r=new Uint8Array(o),a=new Blob([r],{type:n});return{sequence:e.chunkSequence,file:a}}function _n(e){Gn(e)?Ce("2.0.2"):qn(e)?Ce(n):jn(e)&&Ce("2.0.4")}function Bn(e){return!(e.mediaType!=Nn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function zn(e){return!(null==e||e.maxMediaCount>10)}function jn(e){var n;return!((null==e?void 0:e.mediaType)!=Nn.MediaType.Image||!(null===(n=null==e?void 0:e.imageProps)||void 0===n?void 0:n.imageOutputFormats))}function Gn(e){return!(!e||e.mediaType!=Nn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function qn(e){return!(!e||e.mediaType!=Nn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function Kn(e,n,t){return null!=e&&null!=n&&n==Nn.FileFormat.ID&&null!=t}function Zn(e){return!(null==e||e.length<=0||e.length>10)}function Jn(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function Qn(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}function Xn(){return Z.hostVersionsInfo?Z.hostVersionsInfo.adaptiveCardSchemaVersion:void 0}!function(e){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var t=function(){return function(){}}();e.File=t,e.captureImage=function(e){if(!e)throw new Error("[captureImage] Callback cannot be null");me(Z,S.content,S.task),d.isFramelessWindow?he("1.7.0")?Qe("captureImage",e):e({errorCode:w.OLD_PLATFORM},void 0):e({errorCode:w.NOT_SUPPORTED_ON_PLATFORM},void 0)};var o=function(e){function n(n){void 0===n&&(n=null);var t=e.call(this)||this;return n&&(t.content=n.content,t.format=n.format,t.mimeType=n.mimeType,t.name=n.name,t.preview=n.preview,t.size=n.size),t}return Wn(n,e),n.prototype.getMedia=function(e){if(!e)throw new Error("[get Media] Callback cannot be null");(me(Z,S.content,S.task),he(r))?Kn(this.mimeType,this.format,this.content)?he("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e):e({errorCode:w.INVALID_ARGUMENTS},null):e({errorCode:w.OLD_PLATFORM},null)},n.prototype.getMediaViaCallback=function(e){var n={mediaMimeType:this.mimeType,assembleAttachment:[]};Qe("getMedia",[this.content],(function(t){if(e)if(t&&t.error)e(t.error,null);else if(t&&t.mediaChunk)if(t.mediaChunk.chunkSequence<=0){var o=xn(n.assembleAttachment,n.mediaMimeType);e(t.error,o)}else{var i=Vn(t.mediaChunk,n.mediaMimeType);n.assembleAttachment.push(i)}else e({errorCode:w.INTERNAL_ERROR,message:"data received is null"},null)}))},n.prototype.getMediaViaHandler=function(e){var n=L(),t={mediaMimeType:this.mimeType,assembleAttachment:[]},o=[n,this.content];this.content&&e&&Qe("getMedia",o),ke("getMedia"+n,(function(o){if(e){var i=JSON.parse(o);if(i.error)e(i.error,null),Ae("getMedia"+n);else if(i.mediaChunk)if(i.mediaChunk.chunkSequence<=0){var r=xn(t.assembleAttachment,t.mediaMimeType);e(i.error,r),Ae("getMedia"+n)}else{var a=Vn(i.mediaChunk,t.mediaMimeType);t.assembleAttachment.push(a)}else e({errorCode:w.INTERNAL_ERROR,message:"data received is null"},null),Ae("getMedia"+n)}}))},n}(t);e.Media=o;var i,a,s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Wn(n,e),n.prototype.getMediaType=function(){return a.Video},n.prototype.notifyEventToApp=function(e){if(this.controllerCallback)switch(e){case i.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}},n}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,t){me(Z,S.content,S.task);try{Ce(n)}catch(e){return void(t&&t(e))}Qe("media.controller",[{mediaType:this.getMediaType(),mediaControllerEvent:e}],(function(e){t&&t(e)}))},e.prototype.stop=function(e){this.notifyEventToHost(i.StopRecording,e)},e}());e.VideoController=s,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(i=e.MediaControllerEvent||(e.MediaControllerEvent={})),function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(e.CameraStartMode||(e.CameraStartMode={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(e.Source||(e.Source={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(a=e.MediaType||(e.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(e.ImageUriType||(e.ImageUriType={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(e.ImageOutputFormats||(e.ImageOutputFormats={})),e.selectMedia=function(e,n){if(!n)throw new Error("[select Media] Callback cannot be null");if(me(Z,S.content,S.task),he(r)){try{_n(e)}catch(e){return void n(e,null)}if(zn(e)){Qe("selectMedia",[e],(function(t,i,r){if(r)Bn(e)&&e.videoProps.videoController.notifyEventToApp(r);else if(i){for(var a=[],s=0,l=i;s<l.length;s++){var c=l[s];a.push(new o(c))}n(t,a)}else n(t,null)}))}else{var t={errorCode:w.INVALID_ARGUMENTS};n(t,null)}}else{var i={errorCode:w.OLD_PLATFORM};n(i,null)}},e.viewImages=function(e,n){if(!n)throw new Error("[view images] Callback cannot be null");me(Z,S.content,S.task),he(r)?Zn(e)?Qe("viewImages",[e],n):n({errorCode:w.INVALID_ARGUMENTS}):n({errorCode:w.OLD_PLATFORM})},e.scanBarCode=function(e,n){if(!e)throw new Error("[media.scanBarCode] Callback cannot be null");me(Z,S.content,S.task),d.hostClientType!==v.desktop&&d.hostClientType!==v.web&&d.hostClientType!==v.rigel&&d.hostClientType!==v.teamsRoomsWindows&&d.hostClientType!==v.teamsRoomsAndroid&&d.hostClientType!==v.teamsPhones&&d.hostClientType!==v.teamsDisplays?he("1.9.0")?Jn(n)?Qe("media.scanBarCode",[n],e):e({errorCode:w.INVALID_ARGUMENTS},null):e({errorCode:w.OLD_PLATFORM},null):e({errorCode:w.NOT_SUPPORTED_ON_PLATFORM},null)}}(Nn||(Nn={})),function(e){function n(){return!!(me(Z)&&Z.supports.barCode&&Z.supports.permissions)}e.scanBarCode=function(e){return new Promise((function(t){if(me(Z,S.content,S.task),!n())throw k;if(!Jn(e))throw{errorCode:w.INVALID_ARGUMENTS};t(Ke("media.scanBarCode",e))}))},e.hasPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.Media;return new Promise((function(n){n(Ke("permissions.has",e))}))},e.requestPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.Media;return new Promise((function(n){n(Ke("permissions.request",e))}))},e.isSupported=n}(Ln||(Ln={})),function(e){function n(e){return new Promise((function(n){if(me(Z,S.content,S.task),!t())throw k;Z.isLegacyTeams?n(Ge("executeDeepLink",Rn([e.user],void 0,e.message))):n(Ge("chat.openChat",{members:e.user,message:e.message}))}))}function t(){return!(!me(Z)||!Z.supports.chat)}e.openChat=n,e.openGroupChat=function(e){return new Promise((function(o){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length){n({user:e.users[0],message:e.message})}else{if(me(Z,S.content,S.task),!t())throw k;if(Z.isLegacyTeams)o(Ge("executeDeepLink",Rn(e.users,e.topic,e.message)));else o(Ge("chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}}))},e.isSupported=t}(Un||(Un={})),function(e){function n(){return!!(me(Z)&&Z.supports.geoLocation&&Z.supports.permissions)}e.getCurrentLocation=function(){if(me(Z,S.content,S.task),!n())throw k;return Ke("location.getLocation",{allowChooseLocation:!1,showMap:!1})},e.hasPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.GeoLocation;return new Promise((function(n){n(Ke("permissions.has",e))}))},e.requestPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.GeoLocation;return new Promise((function(n){n(Ke("permissions.request",e))}))},e.isSupported=n,function(e){function n(){return!!(me(Z)&&Z.supports.geoLocation&&Z.supports.geoLocation.map&&Z.supports.permissions)}e.chooseLocation=function(){if(me(Z,S.content,S.task),!n())throw k;return Ke("location.getLocation",{allowChooseLocation:!0,showMap:!0})},e.showLocation=function(e){if(me(Z,S.content,S.task),!n())throw k;if(!e)throw{errorCode:w.INVALID_ARGUMENTS};return Ke("location.showLocation",e)},e.isSupported=n}(e.map||(e.map={}))}(Hn||(Hn={}));var $n,Yn=function(){function e(){}return e.prototype.postMessage=function(e,n){me(Z),Qe("messageForChild",[e],n||D())},e.prototype.addEventListener=function(e,n){me(Z),"message"===e&&ke("messageForParent",n)},e}(),et=function(){function e(){}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(e,n){me(Z,S.task),Qe("messageForParent",[e],n||D())},e.prototype.addEventListener=function(e,n){me(Z,S.task),"message"===e&&ke("messageForChild",n)},e}();!function(e){function n(){return!(!me(Z)||!Z.supports.location)}e.getLocation=function(e,t){if(!t)throw new Error("[location.getLocation] Callback cannot be null");if(me(Z,S.content,S.task),!he(i))throw{errorCode:w.OLD_PLATFORM};if(!e)throw{errorCode:w.INVALID_ARGUMENTS};if(!n())throw k;Qe("location.getLocation",[e],t)},e.showLocation=function(e,t){if(!t)throw new Error("[location.showLocation] Callback cannot be null");if(me(Z,S.content,S.task),!he(i))throw{errorCode:w.OLD_PLATFORM};if(!e)throw{errorCode:w.INVALID_ARGUMENTS};if(!n())throw k;Qe("location.showLocation",[e],t)},e.isSupported=n}($n||($n={}));var nt,tt,ot,it,rt,at,st,lt,ct,ut,dt,ft,pt,gt,mt=function(e,n,t,o){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){e.done?t(e.value):i(e.value).then(a,s)}l((o=o.apply(e,n||[])).next())}))},ht=function(e,n){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(n){return l([e,n])}}function l(r){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e],o=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function wt(e){return e?e.modality&&"string"!=typeof e.modality?[!1,"modality must be a string"]:e.targetElementBoundingRect&&"object"==typeof e.targetElementBoundingRect?e.triggerType&&"string"==typeof e.triggerType?Ct(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function Ct(e){return e?e.displayName&&"string"!=typeof e.displayName?[!1,"displayName must be a string"]:e.identifiers&&"object"==typeof e.identifiers?e.identifiers.AadObjectId||e.identifiers.Smtp||e.identifiers.Upn?e.identifiers.AadObjectId&&"string"!=typeof e.identifiers.AadObjectId?[!1,"AadObjectId identifier must be a string"]:e.identifiers.Smtp&&"string"!=typeof e.identifiers.Smtp?[!1,"Smtp identifier must be a string"]:e.identifiers.Upn&&"string"!=typeof e.identifiers.Upn?[!1,"Upn identifier must be a string"]:[!0,void 0]:[!1,"at least one valid identifier must be provided"]:[!1,"persona identifiers object must be provided"]:[!1,"persona object must be provided"]}function vt(e,n){le.initialize(n).then((function(){e&&e()}))}function yt(){se.enablePrintCapability()}function St(){se.print()}function bt(e){ge(),Qe("getContext",(function(n){n.frameContext||(n.frameContext=d.frameContext),e(n)}))}function Tt(e){le.registerOnThemeChangeHandler(e)}function Et(e){Oe("fullScreenChange",e,[])}function Pt(e){Oe("appButtonClick",e,[S.content])}function It(e){Oe("appButtonHoverEnter",e,[S.content])}function Ft(e){Oe("appButtonHoverLeave",e,[S.content])}function kt(e){ce.backStack.registerBackButtonHandlerHelper(e)}function At(e){se.registerOnLoadHandlerHelper(e)}function Rt(e){se.registerBeforeUnloadHandlerHelper(e)}function Ot(e){Oe("focusEnter",e,[])}function Mt(e){Oe("changeSettings",e,[S.content])}function Dt(e,n){me(Z),ce.tabs.getTabInstances(n).then((function(n){e(n)}))}function Nt(e,n){me(Z),ce.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function Lt(e){ce.shareDeepLink({subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function Ut(e,n){me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),n=n||D(),le.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Ht(e){ce.setCurrentFrame(e)}function Wt(e,n,t){ce.initializeWithFrameContext(e,n,t)}function xt(e){ce.returnFocus(e)}function Vt(e,n){me(Z),n=n||D(),ce.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function _t(e,n){me(Z,S.content,S.sidePanel,S.settings,S.remove,S.task,S.stage,S.meetingStage),n=n||D(),ce.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Bt(e){me(Z),e=e||D(),ce.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(e){var n;function t(e,t){var o=this;Qe("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(r,a){if(r&&null!=a)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(r)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(r.errorCode," ").concat(r.message));if("boolean"!=typeof a)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");ke("meeting.micStateChanged",(function(t){return mt(o,void 0,void 0,(function(){var o,r;return ht(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.micMuteStateChangedCallback(t)];case 1:return o=a.sent(),r=o.isMicMuted===t.isMicMuted,i(o,r?n.HostInitiated:n.AppDeclinedToChange),[3,3];case 2:return a.sent(),i(t,n.AppFailedToChange),[3,3];case 3:return[2]}}))}))})),t(a)}))}function o(e,n){Qe("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(e,t){if(e&&null!=t)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(e.errorCode," ").concat(e.message));if("boolean"!=typeof t)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");Re("meeting.micStateChanged")&&Ae("meeting.micStateChanged"),n(t)}))}function i(e,n){me(Z,S.sidePanel,S.meetingStage),Qe("meeting.updateMicState",[e,n])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(n||(n={})),function(e){e.like="like",e.heart="heart",e.laugh="laugh",e.surprised="surprised",e.applause="applause"}(e.MeetingReactionType||(e.MeetingReactionType={})),function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(e.CallType||(e.CallType={})),e.getIncomingClientAudioState=function(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("getIncomingClientAudioState",e)},e.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("toggleIncomingClientAudio",e)},e.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage,S.settings,S.content),Qe("meeting.getMeetingDetails",e)},e.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.getAuthenticationTokenForAnonymousUser",e)},e.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");me(Z,S.sidePanel),Qe("meeting.getLiveStreamState",e)},e.requestStartLiveStreaming=function(e,n,t){if(!e)throw new Error("[request start live streaming] Callback cannot be null");me(Z,S.sidePanel),Qe("meeting.requestStartLiveStreaming",[n,t],e)},e.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");me(Z,S.sidePanel),Qe("meeting.requestStopLiveStreaming",e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");me(Z,S.sidePanel),ke("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){if(!e)throw new Error("[share app content to stage] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.shareAppContentToStage",[n],e)},e.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.getAppContentStageSharingCapabilities",e)},e.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.stopSharingAppContentToStage",e)},e.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.getAppContentStageSharingState",e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");me(Z,S.sidePanel,S.meetingStage),ke("meeting.speakingStateChanged",e)},e.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");me(Z,S.sidePanel,S.meetingStage),ke("meeting.raiseHandStateChanged",e)},e.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");me(Z,S.sidePanel,S.meetingStage),ke("meeting.meetingReactionReceived",e)},function(e){e.setOptions=function(e){me(Z,S.sidePanel),e.contentUrl&&new URL(e.contentUrl),Qe("meeting.appShareButton.setOptions",[e])}}(e.appShareButton||(e.appShareButton={})),e.requestAppAudioHandling=function(e,n){if(!n)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!e.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");me(Z,S.sidePanel,S.meetingStage),e.isAppHandlingAudio?t(e,n):o(e,n)},e.updateMicState=function(e){i(e,n.AppInitiated)}}(nt||(nt={})),function(e){function n(){return!(!me(Z)||!Z.supports.monetization)}e.openPurchaseExperience=function(e,t){var o,i;return"function"==typeof e?(o=e,i=t):i=e,me(Z,S.content),x((function(){return new Promise((function(e){if(!n())throw k;e(Ke("monetization.openPurchaseExperience",i))}))}),o)},e.isSupported=n}(tt||(tt={})),function(e){function n(){return!(!me(Z)||!Z.supports.calendar)}e.openCalendarItem=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");t(Ge("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");Z.isLegacyTeams?t(Ge("executeDeepLink",Mn(e.attendees,e.startTime,e.endTime,e.subject,e.content))):t(Ge("calendar.composeMeeting",e))}))},e.isSupported=n}(ot||(ot={})),function(e){function n(){return!(!me(Z)||!Z.supports.mail)}e.openMailItem=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");t(Ge("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");t(Ge("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(it||(it={})),function(e){function n(e){return new Promise((function(n){if(!he("2.0.0"))throw{errorCode:w.OLD_PLATFORM};if(!Qn(e))throw{errorCode:w.INVALID_ARGUMENTS};if(!t())throw k;n(Ke("people.selectPeople",e))}))}function t(){return!(!me(Z)||!Z.supports.people)}e.selectPeople=function(e,t){var o,i,r;return me(Z,S.content,S.task,S.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,H(n,i,r)},e.isSupported=t}(rt||(rt={})),function(e){e.showProfile=function(e){return me(Z,S.content),new Promise((function(n){var t=wt(e),o=t[0],i=t[1];if(!o)throw{errorCode:w.INVALID_ARGUMENTS,message:i};n(Ke("profile.showProfile",{modality:e.modality,persona:e.persona,triggerType:e.triggerType,targetRectangle:{x:e.targetElementBoundingRect.x,y:e.targetElementBoundingRect.y,width:e.targetElementBoundingRect.width,height:e.targetElementBoundingRect.height}}))}))},e.isSupported=function(){return!(!me(Z)||!Z.supports.profile)}}(at||(at={})),function(e){function n(e){Qe("video.videoFrameProcessed",[e])}function t(e){Qe("video.notifyError",[e])}function o(){return!(!me(Z)||!Z.supports.video)}!function(e){e[e.NV12=0]="NV12"}(e.VideoFrameFormat||(e.VideoFrameFormat={})),function(e){e[e.EffectChanged=0]="EffectChanged",e[e.EffectDisabled=1]="EffectDisabled"}(e.EffectChangeType||(e.EffectChangeType={})),e.registerForVideoFrame=function(e,i){if(me(Z,S.sidePanel),!o())throw k;ke("video.newVideoFrame",(function(o){if(o){var i=o.timestamp;e(o,(function(){n(i)}),t)}}),!1),Qe("video.registerForVideoFrame",[i])},e.notifySelectedVideoEffectChanged=function(e,n){if(me(Z,S.sidePanel),!o())throw k;Qe("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){if(me(Z,S.sidePanel),!o())throw k;ke("video.effectParameterChange",e,!1),Qe("video.registerForVideoEffect")},e.isSupported=o}(st||(st={})),function(e){var n="search.queryChange",t="search.queryClose",o="search.queryExecute";function i(){return!(!me(Z)||!Z.supports.search)}e.registerHandlers=function(e,r,a){if(me(Z,S.content),!i())throw k;ke(t,e),ke(o,r),a&&ke(n,a)},e.unregisterHandlers=function(){if(me(Z,S.content),!i())throw k;Qe("search.unregister"),Ae(n),Ae(t),Ae(o)},e.isSupported=i}(lt||(lt={})),function(e){function n(n){return new Promise((function(t){if(!r())throw k;t(Ke(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:w.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:w.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:w.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:w.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:w.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}function r(){return!(!me(Z)||!Z.supports.sharing)}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,r){try{t(e),o(e),i(e)}catch(e){return W((function(){return Promise.reject(e)}),r)}return me(Z,S.content,S.sidePanel,S.task,S.stage,S.meetingStage),W(n,r,e)},e.isSupported=r}(ct||(ct={})),function(e){function n(){return!(!me(Z)||!Z.supports.stageView)}e.open=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw k;if(!e)throw new Error("[stageView.open] Stage view params cannot be null");t(Ke("stageView.open",e))}))},e.isSupported=n}(ut||(ut={})),function(e){function n(){return!(!me(Z)||!Z.supports.webStorage)}e.isWebStorageClearedOnUserLogOut=function(){return me(Z),n()},e.isSupported=n}(dt||(dt={})),function(e){var n;function t(){return!(!me(Z)||!Z.supports.call)}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(n=e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(o){var i;if(me(Z,S.content,S.task),!t())throw k;if(!Z.isLegacyTeams)return Qe("call.startCall",[e],o);o(Ke("executeDeepLink",On(e.targets,null===(i=e.requestedModalities)||void 0===i?void 0:i.includes(n.Video),e.source)))}))},e.isSupported=t}(ft||(ft={})),function(e){e.Messages=le.Messages,e.FailedReason=le.FailedReason,e.ExpectedFailureReason=le.ExpectedFailureReason,e.notifyAppLoaded=function(){le.notifyAppLoaded()},e.notifySuccess=function(){le.notifySuccess()},e.notifyFailure=function(e){le.notifyFailure(e)},e.notifyExpectedFailure=function(e){le.notifyExpectedFailure(e)}}(pt||(pt={})),function(e){e.setValidityState=function(e){ce.config.setValidityState(e)},e.getSettings=function(e){me(Z,S.content,S.settings,S.remove,S.sidePanel),ce.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){me(Z,S.content,S.settings,S.sidePanel),n=n||D(),ce.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){ce.config.registerOnSaveHandlerHelper(e)},e.registerOnRemoveHandler=function(e){ce.config.registerOnRemoveHandlerHelper(e)}}(gt||(gt={}));var zt,jt,Gt,qt=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)n.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]])}return t};!function(e){function n(e){return{url:e.url,size:{height:e.height?e.height:F.Small,width:e.width?e.width:F.Small},title:e.title,fallbackUrl:e.fallbackUrl}}function t(e){return{url:e.url,size:{height:e.height?e.height:F.Small,width:e.width?e.width:F.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function o(e){return e.height=e.height?e.height:F.Small,e.width=e.width?e.width:F.Small,e}e.startTask=function(e,o){var i=o?function(e){return o(e.err,e.result)}:void 0;return void 0===e.card&&void 0===e.url||e.card?(me(Z,S.content,S.sidePanel,S.meetingStage),Qe("tasks.startTask",[e],o)):void 0!==e.completionBotId?re.url.bot.open(t(e),i):re.url.open(n(e),i),new Yn},e.updateTask=function(e){(e=o(e)).width,e.height;var n=qt(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a TaskInfo argument containing only width and height");re.update.resize(e)},e.submitTask=function(e,n){re.url.submit(e,n)},e.getDefaultSizeIfNotProvided=o}(zt||(zt={})),function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(jt||(jt={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(Gt||(Gt={}));var Kt,Zt,Jt,Qt,Xt,$t,Yt,eo=function(){function e(){}return e.prototype.getFluidTenantInfo=function(){return new Promise((function(e){me(Z,S.meetingStage,S.sidePanel),e(Ke("interactive.getFluidTenantInfo"))}))},e.prototype.getFluidToken=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.getFluidToken",e))}))},e.prototype.getFluidContainerId=function(){return new Promise((function(e){me(Z,S.meetingStage,S.sidePanel),e(Ke("interactive.getFluidContainerId"))}))},e.prototype.setFluidContainerId=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.setFluidContainerId",e))}))},e.prototype.getNtpTime=function(){return new Promise((function(e){me(Z,S.meetingStage,S.sidePanel),e(Ke("interactive.getNtpTime"))}))},e.prototype.registerClientId=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.registerClientId",e))}))},e.prototype.getClientRoles=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.getClientRoles",e))}))},e.create=function(){return me(Z,S.meetingStage,S.sidePanel),new e},e}();!function(e){function n(e,n){return{errorCode:e,message:n}}!function(e){e.Dropbox="DROPBOX",e.Box="BOX",e.Sharefile="SHAREFILE",e.GoogleDrive="GOOGLEDRIVE",e.Egnyte="EGNYTE",e.SharePoint="SharePoint"}(e.CloudStorageProvider||(e.CloudStorageProvider={})),function(e){e[e.Sharepoint=0]="Sharepoint",e[e.WopiIntegration=1]="WopiIntegration",e[e.Google=2]="Google",e[e.OneDrive=3]="OneDrive",e[e.Recent=4]="Recent",e[e.Aggregate=5]="Aggregate",e[e.FileSystem=6]="FileSystem",e[e.Search=7]="Search",e[e.AllFiles=8]="AllFiles",e[e.SharedWithMe=9]="SharedWithMe"}(e.CloudStorageProviderType||(e.CloudStorageProviderType={})),function(e){e.ClassMaterials="classMaterials"}(e.SpecialDocumentLibraryType||(e.SpecialDocumentLibraryType={})),function(e){e.Readonly="readonly"}(e.DocumentLibraryAccessType||(e.DocumentLibraryAccessType={})),function(e){e.Downloaded="Downloaded",e.Downloading="Downloading",e.Failed="Failed"}(e.FileDownloadStatus||(e.FileDownloadStatus={})),function(e){e.Download="DOWNLOAD",e.Upload="UPLOAD",e.Delete="DELETE"}(e.CloudStorageProviderFileAction||(e.CloudStorageProviderFileAction={})),e.getCloudStorageFolders=function(e,n){if(me(Z,S.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!n)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");Qe("files.getCloudStorageFolders",[e],n)},e.addCloudStorageFolder=function(e,n){if(me(Z,S.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");Qe("files.addCloudStorageFolder",[e],n)},e.deleteCloudStorageFolder=function(e,n,t){if(me(Z,S.content),!e)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!t)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");Qe("files.deleteCloudStorageFolder",[e,n],t)},e.getCloudStorageFolderContents=function(e,n,t){if(me(Z,S.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!t)throw new Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");Qe("files.getCloudStorageFolderContents",[e,n],t)},e.openCloudStorageFile=function(e,n,t){if(me(Z,S.content),!e||!n)throw new Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(e.isSubdirectory)throw new Error("[files.openCloudStorageFile] provided file is a subDirectory");Qe("files.openCloudStorageFile",[e,n,t])},e.getExternalProviders=function(e,n){if(void 0===e&&(e=!1),me(Z,S.content),!n)throw new Error("[files.getExternalProviders] Callback cannot be null");Qe("files.getExternalProviders",[e],n)},e.copyMoveFiles=function(e,n,t,o,i,r){if(void 0===i&&(i=!1),me(Z,S.content),!e||0===e.length)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!n)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!t)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!o)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!r)throw new Error("[files.copyMoveFiles] callback cannot be null");Qe("files.copyMoveFiles",[e,n,t,o,i],r)},e.getFileDownloads=function(e){if(me(Z,S.content),!e)throw new Error("[files.getFileDownloads] Callback cannot be null");Qe("files.getFileDownloads",[],e)},e.openDownloadFolder=function(e,n){if(void 0===e&&(e=void 0),me(Z,S.content),!n)throw new Error("[files.openDownloadFolder] Callback cannot be null");Qe("files.openDownloadFolder",[e],n)},e.addCloudStorageProvider=function(e){if(me(Z,S.content),!e)throw n(w.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");Qe("files.addCloudStorageProvider",[],e)},e.removeCloudStorageProvider=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw n(w.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");Qe("files.removeCloudStorageProvider",[e],t)},e.addCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(w.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");Qe("files.addCloudStorageProviderFile",[e],t)},e.renameCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(w.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");Qe("files.renameCloudStorageProviderFile",[e],t)},e.deleteCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(w.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");Qe("files.deleteCloudStorageProviderFile",[e],t)},e.downloadCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(w.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");Qe("files.downloadCloudStorageProviderFile",[e],t)},e.uploadCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(w.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw n(w.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");Qe("files.uploadCloudStorageProviderFile",[e],t)},e.registerCloudStorageProviderListChangeHandler=function(e){if(me(Z),!e)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");ke("files.cloudStorageProviderListChange",e)},e.registerCloudStorageProviderContentChangeHandler=function(e){if(me(Z),!e)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");ke("files.cloudStorageProviderContentChange",e)}}(Kt||(Kt={})),function(e){function n(){return!(!me(Z)||!Z.supports.meetingRoom)}e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){if(me(Z),!n())throw k;e(Ke("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(t){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(me(Z),!n())throw k;t(Ke("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(me(Z),!n())throw k;ke("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){me(Z),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(me(Z),!n())throw k;ke("meetingRoom.meetingRoomStatesUpdate",(function(n){me(Z),e(n)}))},e.isSupported=n}(Zt||(Zt={})),function(e){function n(){return!(!me(Z)||!Z.supports.notifications)}e.showNotification=function(e){if(me(Z,S.content),!n())throw k;Qe("notifications.showNotification",[e])},e.isSupported=n}(Jt||(Jt={})),function(e){function n(){return!(!me(Z)||!Z.supports.remoteCamera)}!function(e){e.Reset="Reset",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut",e.PanLeft="PanLeft",e.PanRight="PanRight",e.TiltUp="TiltUp",e.TiltDown="TiltDown"}(e.ControlCommand||(e.ControlCommand={})),function(e){e[e.CommandResetError=0]="CommandResetError",e[e.CommandZoomInError=1]="CommandZoomInError",e[e.CommandZoomOutError=2]="CommandZoomOutError",e[e.CommandPanLeftError=3]="CommandPanLeftError",e[e.CommandPanRightError=4]="CommandPanRightError",e[e.CommandTiltUpError=5]="CommandTiltUpError",e[e.CommandTiltDownError=6]="CommandTiltDownError",e[e.SendDataError=7]="SendDataError"}(e.ErrorReason||(e.ErrorReason={})),function(e){e[e.None=0]="None",e[e.ControlDenied=1]="ControlDenied",e[e.ControlNoResponse=2]="ControlNoResponse",e[e.ControlBusy=3]="ControlBusy",e[e.AckTimeout=4]="AckTimeout",e[e.ControlTerminated=5]="ControlTerminated",e[e.ControllerTerminated=6]="ControllerTerminated",e[e.DataChannelError=7]="DataChannelError",e[e.ControllerCancelled=8]="ControllerCancelled",e[e.ControlDisabled=9]="ControlDisabled",e[e.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController"}(e.SessionTerminatedReason||(e.SessionTerminatedReason={})),e.getCapableParticipants=function(e){if(!e)throw new Error("[remoteCamera.getCapableParticipants] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,t){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!t)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.requestControl",[e],t)},e.sendControlCommand=function(e,t){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!t)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.sendControlCommand",[e],t)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.sessionStatusChange",e)},e.isSupported=n}(Qt||(Qt={})),function(e){function n(){return!(!me(Z)||!Z.supports.appEntity)}e.selectAppEntity=function(e,t,o,i){if(me(Z,S.content),!n())throw k;if(!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!i)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");Qe("appEntity.selectAppEntity",[e,t,o],i)},e.isSupported=n}(Xt||(Xt={})),function(e){function n(){return!(!me(Z)||!Z.supports.teams)}!function(e){e[e.Regular=0]="Regular",e[e.Private=1]="Private",e[e.Shared=2]="Shared"}(e.ChannelType||(e.ChannelType={})),e.getTeamChannels=function(e,t){if(me(Z,S.content),!n())throw k;if(!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!t)throw new Error("[teams.getTeamChannels] Callback cannot be null");Qe("teams.getTeamChannels",[e],t)},e.refreshSiteUrl=function(e,t){if(me(Z),!n())throw k;if(!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!t)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");Qe("teams.refreshSiteUrl",[e],t)},e.isSupported=n,function(e){function n(){return!(!me(Z)||!Z.supports.teams)&&!!Z.supports.teams.fullTrust}!function(e){function n(){return!(!me(Z)||!Z.supports.teams)&&(!!Z.supports.teams.fullTrust&&!!Z.supports.teams.fullTrust.joinedTeams)}e.getUserJoinedTeams=function(e){return new Promise((function(t){if(me(Z),!n())throw k;if((d.hostClientType===v.android||d.hostClientType===v.teamsRoomsAndroid||d.hostClientType===v.teamsPhones||d.hostClientType===v.teamsDisplays)&&!he("2.0.1")){var o={errorCode:w.OLD_PLATFORM};throw new Error(JSON.stringify(o))}t(je("getUserJoinedTeams",e))}))},e.isSupported=n}(e.joinedTeams||(e.joinedTeams={})),e.getConfigSetting=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(je("getConfigSetting",e))}))},e.isSupported=n}(e.fullTrust||(e.fullTrust={}))}($t||($t={})),function(e){var n;function t(){return me(Z),st.isSupported()}function o(e){Qe("video.videoFrameProcessed",[e])}function i(e,t){void 0===t&&(t=n.Warn),Qe("video.notifyError",[e,t])}!function(e){e.Fatal="fatal",e.Warn="warn"}(n=e.ErrorLevel||(e.ErrorLevel={})),e.registerForVideoFrame=function(e,n){if(me(Z,S.sidePanel),!t())throw k;ke("video.newVideoFrame",(function(n){if(n){var t=n.timestamp;e(n,(function(){o(t)}),i)}}),!1),Qe("video.registerForVideoFrame",[n])},e.notifySelectedVideoEffectChanged=function(e,n,o){if(me(Z,S.sidePanel),!t())throw k;Qe("video.videoEffectChanged",[e,n,o])},e.registerForVideoEffect=function(e){if(me(Z,S.sidePanel),!t())throw k;ke("video.effectParameterChange",e,!1),Qe("video.registerForVideoEffect")},e.updatePersonalizedEffects=function(e){if(me(Z,S.sidePanel),!st.isSupported())throw k;Qe("video.personalizedEffectsChanged",[e])},e.isSupported=t,e.notifyFatalError=function(e){if(me(Z),!st.isSupported())throw k;i(e,n.Fatal)}}(Yt||(Yt={}))})(),o})()}));
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("microsoftTeams",[],n):"object"==typeof exports?exports.microsoftTeams=n():e.microsoftTeams=n()}(self,(function(){return(()=>{var e={881:e=>{var n=1e3,t=60*n,o=60*t,i=24*o;function r(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var a=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function a(e){var r=Math.abs(e);return r>=i?Math.round(e/i)+"d":r>=o?Math.round(e/o)+"h":r>=t?Math.round(e/t)+"m":r>=n?Math.round(e/n)+"s":e+"ms"}function s(e){var r=Math.abs(e);return r>=i?l(e,r,i,"day"):r>=o?l(e,r,o,"hour"):r>=t?l(e,r,t,"minute"):r>=n?l(e,r,n,"second"):e+" ms"}function l(e,n,t,o){var i=n>=1.5*t;return Math.round(e/t)+" "+o+(i?"s":"")}e.exports=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return r(e);if("number"===t&&isFinite(e))return n.long?s(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},130:(e,n,t)=>{n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let o=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=t(123)(n);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},123:(e,n,t)=>{e.exports=function(e){function n(e){let t,i,r,a=null;function s(...e){if(!s.enabled)return;const o=s,i=Number(new Date),r=i-(t||i);o.diff=r,o.prev=t,o.curr=i,t=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if("%%"===t)return"%";a++;const r=n.formatters[i];if("function"==typeof r){const n=e[a];t=r.call(o,n),e.splice(a,1),a--}return t})),n.formatArgs.call(o,e);(o.log||n.log).apply(o,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=o,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==n.namespaces&&(i=n.namespaces,r=n.enabled(e)),r),set:e=>{a=e}}),"function"==typeof n.init&&n.init(s),s}function o(e,t){const o=n(this.namespace+(void 0===t?":":t)+e);return o.log=this.log,o}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(i),...n.skips.map(i).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),i=o.length;for(t=0;t<i;t++)o[t]&&("-"===(e=o[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.slice(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,o;for(t=0,o=n.skips.length;t<o;t++)if(n.skips[t].test(e))return!1;for(t=0,o=n.names.length;t<o;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=t(881),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}},22:(e,n,t)=>{var o=t(481),i=t(426),r=i;r.v1=o,r.v4=i,e.exports=r},725:e=>{for(var n=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var o=t||0,i=n;return[i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]]].join("")}},157:e=>{var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t}}else{var o=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),o[n]=e>>>((3&n)<<3)&255;return o}}},481:(e,n,t)=>{var o,i,r=t(157),a=t(725),s=0,l=0;e.exports=function(e,n,t){var c=n&&t||0,u=n||[],d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==f){var p=r();null==d&&(d=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=i=16383&(p[6]<<8|p[7]))}var g=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,h=g-s+(m-l)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||g>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=g,l=m,i=f;var w=(1e4*(268435455&(g+=122192928e5))+m)%4294967296;u[c++]=w>>>24&255,u[c++]=w>>>16&255,u[c++]=w>>>8&255,u[c++]=255&w;var C=g/4294967296*1e4&268435455;u[c++]=C>>>8&255,u[c++]=255&C,u[c++]=C>>>24&15|16,u[c++]=C>>>16&255,u[c++]=f>>>8|128,u[c++]=255&f;for(var v=0;v<6;++v)u[c+v]=d[v];return n||a(u)}},426:(e,n,t)=>{var o=t(157),i=t(725);e.exports=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var s=0;s<16;++s)n[r+s]=a[s];return n||i(a)}}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}(()=>{t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}})(),(()=>{t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};return(()=>{"use strict";t.r(o),t.d(o,{ActionObjectType:()=>m,ChannelType:()=>P,ChildAppWindow:()=>Yn,ContainerState:()=>Gt,DialogDimension:()=>E,ErrorCode:()=>w,FileOpenPreference:()=>g,FrameContexts:()=>S,HostClientType:()=>v,HostName:()=>y,LiveShareHost:()=>eo,NotificationTypes:()=>un,ParentAppWindow:()=>et,SecondaryM365ContentIdName:()=>h,TaskModuleDimension:()=>F,TeamType:()=>b,UserMeetingRole:()=>jt,UserSettingTypes:()=>fn,UserTeamRole:()=>T,ViewerActionTypes:()=>dn,app:()=>le,appEntity:()=>Xt,appInitialization:()=>pt,appInstallDialog:()=>kn,authentication:()=>ie,barCode:()=>Ln,calendar:()=>ot,call:()=>ft,chat:()=>Un,conversations:()=>pn,dialog:()=>re,enablePrintCapability:()=>yt,executeDeepLink:()=>Ut,files:()=>Kt,geoLocation:()=>Hn,getAdaptiveCardSchemaVersion:()=>Xn,getContext:()=>bt,getMruTabInstances:()=>Nt,getTabInstances:()=>Dt,initialize:()=>vt,initializeWithFrameContext:()=>Wt,location:()=>$n,logs:()=>cn,mail:()=>it,media:()=>Nn,meeting:()=>nt,meetingRoom:()=>Zt,menus:()=>ae,monetization:()=>tt,navigateBack:()=>Bt,navigateCrossDomain:()=>_t,navigateToTab:()=>Vt,notifications:()=>Jt,openFilePreview:()=>Fn,pages:()=>ce,people:()=>rt,print:()=>St,profile:()=>at,registerAppButtonClickHandler:()=>It,registerAppButtonHoverEnterHandler:()=>Pt,registerAppButtonHoverLeaveHandler:()=>Ft,registerBackButtonHandler:()=>kt,registerBeforeUnloadHandler:()=>Rt,registerChangeSettingsHandler:()=>Mt,registerCustomHandler:()=>In,registerFocusEnterHandler:()=>Ot,registerFullScreenHandler:()=>Et,registerOnLoadHandler:()=>At,registerOnThemeChangeHandler:()=>Tt,registerUserSettingsChangeHandler:()=>Pn,remoteCamera:()=>Qt,returnFocus:()=>xt,search:()=>lt,sendCustomEvent:()=>En,sendCustomMessage:()=>Tn,setFrameContext:()=>Ht,settings:()=>gt,shareDeepLink:()=>Lt,sharing:()=>ct,stageView:()=>ut,tasks:()=>zt,teams:()=>$t,teamsCore:()=>se,uploadCustomApp:()=>bn,version:()=>ue,video:()=>st,videoEx:()=>Yt,webStorage:()=>dt});var e="2.0.1",n="2.0.3",i="1.9.0",r="1.8.0",a=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","msft.spoppe.com","*.sharepoint.com","*.sharepoint-df.com","*.sharepointonline.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.live.com","outlook-sdf.live.com","*.teams.microsoft.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com"],s=/^https:\/\//,l="https",c="teams.microsoft.com",u="The library has not yet been initialized",d=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}(),f=(0,t(130).debug)("teamsJs");function p(e){return f.extend(e)}var g,m,h,w,C,v,y,S,b,T,E,I=t(22);!function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(g||(g={})),function(e){e.M365Content="m365content"}(m||(m={})),function(e){e.DriveId="driveId",e.GroupId="groupId",e.SiteId="siteId",e.UserId="userId"}(h||(h={})),function(e){e[e.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",e[e.INTERNAL_ERROR=500]="INTERNAL_ERROR",e[e.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",e[e.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",e[e.NETWORK_ERROR=2e3]="NETWORK_ERROR",e[e.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",e[e.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",e[e.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",e[e.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",e[e.THROTTLE=7e3]="THROTTLE",e[e.USER_ABORT=8e3]="USER_ABORT",e[e.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",e[e.OLD_PLATFORM=9e3]="OLD_PLATFORM",e[e.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",e[e.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(w||(w={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(C||(C={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(v||(v={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.teams="Teams"}(y||(y={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(S||(S={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(b||(b={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(T||(T={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(E||(E={}));var P,F=E;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(P||(P={}));var k={errorCode:w.NOT_SUPPORTED_ON_PLATFORM},A=1,R=5;function O(e,n){if("*."===e.substring(0,2)){var t=e.substring(1);if(n.length>t.length&&n.split(".").length===t.split(".").length&&n.substring(n.length-t.length)===t)return!0}else if(e===n)return!0;return!1}function M(e){if("https:"!==e.protocol)return!1;var n=e.host;if(a.some((function(e){return O(e,n)})))return!0;for(var t=0,o=d.additionalValidOrigins;t<o.length;t++){var i=o[t];if(O("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function D(e){return function(n,t){if(!n)throw new Error(e||t)}}function N(e,n){if("string"!=typeof e||"string"!=typeof n)return NaN;var t=e.split("."),o=n.split(".");function i(e){return/^\d+$/.test(e)}if(!t.every(i)||!o.every(i))return NaN;for(;t.length<o.length;)t.push("0");for(;o.length<t.length;)o.push("0");for(var r=0;r<t.length;++r)if(Number(t[r])!=Number(o[r]))return Number(t[r])>Number(o[r])?1:-1;return 0}function L(){return I.v4()}function U(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&U(e[n])})),Object.freeze(e)}function H(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(void 0,e)})).catch((function(e){n&&n(e)})),i}function W(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(){n&&n(null)})).catch((function(e){n&&n(e)})),i}function x(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(null,e)})).catch((function(e){n&&n(e,null)})),i}function V(e,n,t){return new Promise((function(o,i){var r=setTimeout(i,n,t);e().then((function(e){clearTimeout(r),o(e)})).catch((function(e){clearTimeout(r),i(e)}))}))}function _(e){var n=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId)+"/"+encodeURIComponent(e.pageId));return e.webUrl&&n.searchParams.append("webUrl",e.webUrl),(e.channelId||e.subPageId)&&n.searchParams.append("context",JSON.stringify({channelId:e.channelId,subEntityId:e.subPageId})),n.toString()}function B(e){return!(N("".concat(e.majorVersion,".").concat(e.minorVersion),"".concat(A,".").concat(R))>=0)}var z=function(){return z=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},z.apply(this,arguments)},j=p("runtime");function G(e){return 2===e.apiVersion}var q={apiVersion:-1,supports:{}};function K(e){if(G(e))return!0;throw-1===e.apiVersion?new Error("The runtime has not yet been initialized"):new Error("The runtime version is not supported")}var Z=q,J={appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{url:{bot:{}},update:{}},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},sharing:{},stageView:{},teams:{fullTrust:{}},teamsCore:{},video:{}},Q=[v.desktop,v.web,v.android,v.ios,v.rigel,v.surfaceHub,v.teamsRoomsWindows,v.teamsRoomsAndroid,v.teamsPhones,v.teamsDisplays];function X(e){var n=e;if(n.apiVersion<2&&$.forEach((function(e){n.apiVersion===e.versionToUpgradeFrom&&(n=e.upgradeToNextVersion(n))})),G(n))return n;throw new Error("Received a runtime that could not be upgraded to the latest version")}var $=[{versionToUpgradeFrom:1,upgradeToNextVersion:function(e){var n;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:e.isLegacyTeams,supports:z(z({},e.supports),{dialog:e.supports.dialog?{card:void 0,url:e.supports.dialog,update:null===(n=e.supports.dialog)||void 0===n?void 0:n.update}:void 0})}}}],Y={"1.9.0":[{capability:{location:{}},hostClientTypes:Q}],"2.0.0":[{capability:{people:{}},hostClientTypes:Q}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[v.android,v.desktop,v.ios,v.teamsRoomsAndroid,v.teamsPhones,v.teamsDisplays,v.web]},{capability:{webStorage:{}},hostClientTypes:[v.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[v.android,v.desktop,v.ios]}]},ee=j.extend("generateBackCompatRuntimeConfig");function ne(e){ee("generating back compat runtime config for %s",e);var n=z({},J);ee("Supported capabilities in config before updating based on highestSupportedVersion: %o",n),Object.keys(Y).forEach((function(t){N(e,t)>=0&&Y[t].forEach((function(e){e.hostClientTypes.includes(d.hostClientType)&&(n=z(z({},n),e.capability))}))}));var t={apiVersion:2,isLegacyTeams:!0,supports:n};return ee("Runtime config after updating based on highestSupportedVersion: %o",t),t}var te=j.extend("applyRuntimeConfig");function oe(e){"string"==typeof e.apiVersion&&(te("Trying to apply runtime with string apiVersion, processing as v1: %o",e),e=z(z({},e),{apiVersion:1})),te("Fast-forwarding runtime %o",e);var n=X(e);te("Applying runtime %o",n),Z=U(n)}var ie,re,ae,se,le,ce,ue="2.9.0-beta.0",de=p("internal"),fe=de.extend("ensureInitializeCalled"),pe=de.extend("ensureInitialized");function ge(){if(!d.initializeCalled)throw fe(u),new Error(u)}function me(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if(!d.initializeCompleted)throw pe("%s. initializeCalled: %s",u,d.initializeCalled.toString()),new Error(u);if(n&&n.length>0){for(var o=!1,i=0;i<n.length;i++)if(n[i]===d.frameContext){o=!0;break}if(!o)throw new Error("This call is only allowed in following contexts: ".concat(JSON.stringify(n),". ")+'Current context: "'.concat(d.frameContext,'".'))}return K(e)}function he(n){void 0===n&&(n=e);var t=N(d.clientSupportedSDKVersion,n);return!isNaN(t)&&t>=0}function we(){return d.hostClientType==v.android||d.hostClientType==v.ios}function Ce(n){if(void 0===n&&(n=e),!we())throw{errorCode:w.NOT_SUPPORTED_ON_PLATFORM};if(!he(n))throw{errorCode:w.OLD_PLATFORM}}function ve(e){var n=d.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&s.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),d.additionalValidOrigins=n}function ye(e){return{actionInfo:e.actionInfo,app:{locale:e.locale,sessionId:e.appSessionId?e.appSessionId:"",theme:e.theme?e.theme:"default",iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:y.teams,clientType:e.hostClientType?e.hostClientType:v.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:d.frameContext,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,sourceOrigin:e.sourceOrigin},user:{id:e.userObjectId,displayName:e.userDisplayName,isCallingAllowed:e.isCallingAllowed,isPSTNCallingAllowed:e.isPSTNCallingAllowed,licenseType:e.userLicenseType,loginHint:e.loginHint,userPrincipalName:e.userPrincipalName,tenant:e.tid?{id:e.tid,teamsSku:e.tenantSKU}:void 0},channel:e.channelId?{id:e.channelId,displayName:e.channelName,relativeUrl:e.channelRelativeUrl,membershipType:e.channelType,defaultOneNoteSectionId:e.defaultOneNoteSectionId,ownerGroupId:e.hostTeamGroupId,ownerTenantId:e.hostTeamTenantId}:void 0,chat:e.chatId?{id:e.chatId}:void 0,meeting:e.meetingId?{id:e.meetingId}:void 0,sharepoint:e.sharepoint,team:e.teamId?{internalId:e.teamId,displayName:e.teamName,type:e.teamType,groupId:e.groupId,templateId:e.teamTemplateId,isArchived:e.isTeamArchived,userRole:e.userTeamRole}:void 0,sharePointSite:e.teamSiteUrl||e.teamSiteDomain||e.teamSitePath||e.mySitePath||e.mySiteDomain?{teamSiteUrl:e.teamSiteUrl,teamSiteDomain:e.teamSiteDomain,teamSitePath:e.teamSitePath,teamSiteId:e.teamSiteId,mySitePath:e.mySitePath,mySiteDomain:e.mySiteDomain}:void 0}}function Se(){return"undefined"==typeof window}!function(e){var n,t,o;function i(e){return new Promise((function(t,o){if(d.hostClientType===v.desktop||d.hostClientType===v.android||d.hostClientType===v.ios||d.hostClientType===v.rigel||d.hostClientType===v.teamsRoomsWindows||d.hostClientType===v.teamsRoomsAndroid||d.hostClientType===v.teamsPhones||d.hostClientType===v.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(Ze("authentication.authenticate",[i.href,e.width,e.height,e.isExternal]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else n={success:t,fail:o},l(e)}))}function r(e){return new Promise((function(n){n(Ze("authentication.getAuthToken",[null==e?void 0:e.resources,null==e?void 0:e.claims,null==e?void 0:e.silent]))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function a(){return new Promise((function(e){e(Ze("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function s(){c();try{Ve.childWindow&&Ve.childWindow.close()}finally{Ve.childWindow=null,Ve.childOrigin=null}}function l(e){s();var n=e.width||600,t=e.height||400;n=Math.min(n,Ve.currentWindow.outerWidth-400),t=Math.min(t,Ve.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url.replace("{oauthRedirectMethod}","web");var i=void 0!==Ve.currentWindow.screenLeft?Ve.currentWindow.screenLeft:Ve.currentWindow.screenX,r=void 0!==Ve.currentWindow.screenTop?Ve.currentWindow.screenTop:Ve.currentWindow.screenY;i+=Ve.currentWindow.outerWidth/2-n/2,r+=Ve.currentWindow.outerHeight/2-t/2,Ve.childWindow=Ve.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),Ve.childWindow?u():p("FailedToOpenWindow")}function c(){t&&(clearInterval(t),t=0),Ae("initialize"),Ae("navigateCrossDomain")}function u(){c(),t=Ve.currentWindow.setInterval((function(){if(!Ve.childWindow||Ve.childWindow.closed)p("CancelledByUser");else{var e=Ve.childOrigin;try{Ve.childOrigin="*",Cn("ping")}finally{Ve.childOrigin=e}}}),100),ke("initialize",(function(){return[S.authentication,d.hostClientType]})),ke("navigateCrossDomain",(function(){return!1}))}function f(e){try{n&&n.success(e)}finally{n=null,s()}}function p(e){try{n&&n.fail(new Error(e))}finally{n=null,s()}}function g(e,n,t){if(e){var o=document.createElement("a");o.href=decodeURIComponent(e),o.host&&o.host!==window.location.host&&"outlook.office.com"===o.host&&o.search.indexOf("client_type=Win32_Outlook")>-1&&(n&&"result"===n&&(t&&(o.href=m(o.href,"result",t)),Ve.currentWindow.location.assign(m(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=m(o.href,"reason",t)),Ve.currentWindow.location.assign(m(o.href,"authFailure",""))))}}function m(e,n,t){var o=e.indexOf("#"),i=-1===o?"#":e.substr(o);return i=i+"&"+n+(""!==t?"="+t:""),(e=-1===o?e:e.substr(0,o))+i}e.initialize=function(){ke("authentication.authenticate.success",f,!1),ke("authentication.authenticate.failure",p,!1)},e.registerAuthenticationHandlers=function(e){o=e},e.authenticate=function(e){var n=void 0!==e,t=n?e:o;if(!t)throw new Error("No parameters are provided for authentication");return me(Z,S.content,S.sidePanel,S.settings,S.remove,S.task,S.stage,S.meetingStage),i(t).then((function(e){try{return t&&t.successCallback?(t.successCallback(e),""):e}finally{n||(o=null)}})).catch((function(e){try{if(t&&t.failureCallback)return t.failureCallback(e.message),"";throw e}finally{n||(o=null)}}))},e.getAuthToken=function(e){return ge(),r(e).then((function(n){return e&&e.successCallback?(e.successCallback(n),""):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),"";throw n}))},e.getUser=function(e){return ge(),a().then((function(n){return e&&e.successCallback?(e.successCallback(n),null):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),null;throw n}))},e.notifySuccess=function(e,n){g(n,"result",e),me(Z,S.authentication),Qe("authentication.authenticate.success",[e]),hn(Ve.parentWindow,(function(){return setTimeout((function(){return Ve.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){g(n,"reason",e),me(Z,S.authentication),Qe("authentication.authenticate.failure",[e]),hn(Ve.parentWindow,(function(){return setTimeout((function(){return Ve.currentWindow.close()}),200)}))},function(e){e.Public="public",e.EUDB="eudb",e.Other="other"}(e.DataResidency||(e.DataResidency={}))}(ie||(ie={})),function(e){var n=[];function t(e){d.frameContext&&(d.frameContext===S.task?n.push(e):Ae("messageForChild"))}e.initialize=function(){ke("messageForChild",t,!1)},function(e){function t(){return me(Z)&&void 0!==(Z.supports.dialog&&Z.supports.dialog.url)}function o(e){return{url:e.url,height:e.size?e.size.height:E.Small,width:e.size?e.size.width:E.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function i(e){var n=o(e);return n.completionBotId=e.completionBotId,n}e.open=function(e,n,i){if(me(Z,S.content,S.sidePanel,S.meetingStage),!t())throw k;i&&ke("messageForParent",i),Qe("tasks.startTask",[o(e)],(function(e,t){null==n||n({err:e,result:t}),Ae("messageForParent")}))},e.submit=function(e,n){if(me(Z,S.content,S.task),!t())throw k;Qe("tasks.completeTask",[e,n?Array.isArray(n)?n:[n]:[]])},e.sendMessageToParentFromDialog=function(e){if(me(Z,S.task),!t())throw k;Qe("messageForParent",[e])},e.sendMessageToDialog=function(e){if(me(Z,S.content,S.sidePanel,S.meetingStage),!t())throw k;Qe("messageForChild",[e])},e.registerOnMessageFromParent=function(e){if(me(Z,S.task),!t())throw k;for(Ae("messageForChild"),ke("messageForChild",e),n.reverse();n.length>0;){e(n.pop())}},e.isSupported=t,function(e){function n(){return me(Z)&&void 0!==(Z.supports.dialog&&Z.supports.dialog.url&&Z.supports.dialog.url.bot)}e.open=function(e,t,o){if(me(Z,S.content,S.sidePanel,S.meetingStage),!n())throw k;o&&ke("messageForParent",o),Qe("tasks.startTask",[i(e)],(function(e,n){null==t||t({err:e,result:n}),Ae("messageForParent")}))},e.isSupported=n}(e.bot||(e.bot={})),e.getDialogInfoFromUrlDialogInfo=o,e.getDialogInfoFromBotUrlDialogInfo=i}(e.url||(e.url={})),e.isSupported=function(){return!(!me(Z)||!Z.supports.dialog)},function(e){function n(){return!(!me(Z)||!Z.supports.dialog)&&!!Z.supports.dialog.update}e.resize=function(e){if(me(Z,S.content,S.sidePanel,S.task,S.meetingStage),!n())throw k;Qe("tasks.updateTask",[e])},e.isSupported=n}(e.update||(e.update={})),function(e){function n(){var e=Z.hostVersionsInfo&&Z.hostVersionsInfo.adaptiveCardSchemaVersion&&!B(Z.hostVersionsInfo.adaptiveCardSchemaVersion);return me(Z)&&void 0!==(e&&Z.supports.dialog&&Z.supports.dialog.card)}function t(e){return{card:e.card,height:e.size?e.size.height:E.Small,width:e.size?e.size.width:E.Small,title:e.title}}function o(e){var n=t(e);return n.completionBotId=e.completionBotId,n}e.open=function(e,o){if(me(Z,S.content,S.sidePanel,S.meetingStage),!n())throw k;Qe("tasks.startTask",[t(e)],(function(e,n){null==o||o({err:e,result:n})}))},e.isSupported=n,function(e){function n(){var e=Z.hostVersionsInfo&&Z.hostVersionsInfo.adaptiveCardSchemaVersion&&!B(Z.hostVersionsInfo.adaptiveCardSchemaVersion);return me(Z)&&void 0!==(e&&Z.supports.dialog&&Z.supports.dialog.card&&Z.supports.dialog.card.bot)}e.open=function(e,t){if(me(Z,S.content,S.sidePanel,S.meetingStage),!n())throw k;Qe("tasks.startTask",[o(e)],(function(e,n){null==t||t({err:e,result:n})}))},e.isSupported=n}(e.bot||(e.bot={})),e.getDialogInfoFromAdaptiveCardDialogInfo=t,e.getDialogInfoFromBotAdaptiveCardDialogInfo=o,e.getAdaptiveCardDialogInfoFromTaskInfo=function(e){return{card:e.card,size:{height:e.height?e.height:E.Small,width:e.width?e.width:E.Small},title:e.title}},e.getBotAdaptiveCardDialogInfoFromTaskInfo=function(e){return{card:e.card,size:{height:e.height?e.height:E.Small,width:e.width?e.width:E.Small},title:e.title,completionBotId:e.completionBotId}}}(e.adaptiveCard||(e.adaptiveCard={}))}(re||(re={})),function(e){!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(e.DisplayMode||(e.DisplayMode={}));var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(me(Z),Qe("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(me(Z),Qe("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(me(Z),Qe("handleActionMenuItemPress",[e]))}function l(){return!(!me(Z)||!Z.supports.menus)}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){ke("navBarMenuItemPress",a,!1),ke("actionMenuItemPress",s,!1),ke("setModuleView",r,!1)},e.setUpViews=function(e,n){if(me(Z),!l())throw k;o=n,Qe("setUpViews",[e])},e.setNavBarMenu=function(e,t){if(me(Z),!l())throw k;n=t,Qe("setNavBarMenu",[e])},e.showActionMenu=function(e,n){if(me(Z),!l())throw k;t=n,Qe("showActionMenu",[e])},e.isSupported=l}(ae||(ae={})),function(e){function n(){if("undefined"==typeof window)throw new Error("window object undefined at print call");window.print()}function t(e,n){e&&me(Z),e&&n&&n(),Ne(e)}function o(e,n){e&&me(Z),e&&n&&n(),Ue(e)}function i(){return!(!me(Z)||!Z.supports.teamsCore)}e.enablePrintCapability=function(){if(!d.printCapabilityEnabled){if(me(Z),!i())throw k;d.printCapabilityEnabled=!0,document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(n(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())}))}},e.print=n,e.registerOnLoadHandler=function(e){t(e,(function(){if(e&&!i())throw k}))},e.registerOnLoadHandlerHelper=t,e.registerBeforeUnloadHandler=function(e){o(e,(function(){if(e&&!i())throw k}))},e.registerBeforeUnloadHandlerHelper=o,e.isSupported=i}(se||(se={})),function(n){var t=p("app");n.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(n.FailedReason||(n.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(n.ExpectedFailureReason||(n.ExpectedFailureReason={})),n.isInitialized=function(){return d.initializeCompleted},n.getFrameContext=function(){return d.frameContext};n.initialize=function(e){return Se()?(t.extend("initialize")("window object undefined at initialization"),Promise.resolve()):V((function(){return i(e)}),5e3,new Error("SDK initialization timed out."))};var o=t.extend("initializeHelper");function i(n){return new Promise((function(t){d.initializeCalled||(d.initializeCalled=!0,Ie(),d.initializePromise=Be(n).then((function(n){var t=n.context,i=n.clientType,r=n.runtimeConfig,a=n.clientSupportedSDKVersion,s=void 0===a?e:a;d.frameContext=t,d.hostClientType=i,d.clientSupportedSDKVersion=s;try{o("Parsing %s",r);var l=JSON.parse(r);if(o("Checking if %o is a valid runtime object",null!=l?l:"null"),!l||!l.apiVersion)throw new Error("Received runtime config is invalid");r&&oe(l)}catch(n){if(!(n instanceof SyntaxError))throw n;try{o("Attempting to parse %s as an SDK version",r),isNaN(N(r,e))||(d.clientSupportedSDKVersion=r);l=JSON.parse(s);if(o("givenRuntimeConfig parsed to %o",null!=l?l:"null"),!l)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");oe(l)}catch(e){if(!(e instanceof SyntaxError))throw e;oe(ne(d.clientSupportedSDKVersion))}}d.initializeCompleted=!0})),ie.initialize(),ae.initialize(),ce.config.initialize(),re.initialize()),Array.isArray(n)&&ve(n),t(d.initializePromise)}))}function r(e){e&&ge(),Me(e)}n._initialize=function(e){Ve.currentWindow=e},n._uninitialize=function(){d.initializeCalled&&(d.frameContext&&(r(null),ce.backStack.registerBackButtonHandler(null),ce.registerFullScreenHandler(null),se.registerBeforeUnloadHandler(null),se.registerOnLoadHandler(null),cn.registerGetLogHandler(null)),d.frameContext===S.settings&&ce.config.registerOnSaveHandler(null),d.frameContext===S.remove&&ce.config.registerOnRemoveHandler(null),d.initializeCalled=!1,d.initializeCompleted=!1,d.initializePromise=null,d.additionalValidOrigins=[],d.frameContext=null,d.hostClientType=null,d.isFramelessWindow=!1,ze())},n.getContext=function(){return new Promise((function(e){ge(),e(je("getContext"))})).then((function(e){return ye(e)}))},n.notifyAppLoaded=function(){ge(),Qe(n.Messages.AppLoaded,[ue])},n.notifySuccess=function(){ge(),Qe(n.Messages.Success,[ue])},n.notifyFailure=function(e){ge(),Qe(n.Messages.Failure,[e.reason,e.message])},n.notifyExpectedFailure=function(e){ge(),Qe(n.Messages.ExpectedFailure,[e.reason,e.message])},n.registerOnThemeChangeHandler=r,n.openLink=function(e){return new Promise((function(n){me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),n(Ge("executeDeepLink",e))}))}}(le||(le={})),function(e){function n(e){if(me(Z,S.content),!t())throw k;Qe("setFrameContext",[e])}function t(){return!(!me(Z)||!Z.supports.pages)}e.returnFocus=function(e){if(me(Z),!t())throw k;Qe("returnFocus",[e])},e.registerFocusEnterHandler=function(e){Oe("focusEnter",e,[],(function(){if(!t())throw k}))},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){le.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){if(me(Z,S.content,S.settings,S.remove,S.sidePanel),!t())throw k;e(je("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){if(me(Z,S.content,S.sidePanel,S.settings,S.remove,S.task,S.stage,S.meetingStage),!t())throw k;n(qe("navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",e))}))},e.navigateToApp=function(e){return new Promise((function(n){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!t())throw k;Z.isLegacyTeams?n(Ge("executeDeepLink",_(e))):n(Ge("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){if(me(Z,S.content,S.sidePanel,S.meetingStage),!t())throw k;Qe("shareDeepLink",[e.subPageId,e.subPageLabel,e.subPageWebUrl])},e.registerFullScreenHandler=function(e){Oe("fullScreenChange",e,[],(function(){if(e&&!t())throw k}))},e.isSupported=t,function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.tabs}e.navigateToTab=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(qe("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(je("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(je("getMruTabInstances",e))}))},e.isSupported=n}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e,t){e&&me(Z,S.settings),t&&t(),n=e,e&&Qe("registerHandler",["save"])}function i(e,n){e&&me(Z,S.remove,S.settings),n&&n(),t=e,e&&Qe("registerHandler",["remove"])}function r(e){var t=new a(e);n?n(t):Ve.childWindow?Cn("settings.save",[e]):t.notifySuccess()}e.initialize=function(){ke("settings.save",r,!1),ke("settings.remove",s,!1)},e.setValidityState=function(e){if(me(Z,S.settings,S.remove),!c())throw k;Qe("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){if(me(Z,S.content,S.settings,S.sidePanel),!c())throw k;n(Ge("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){o(e,(function(){if(e&&!c())throw k}))},e.registerOnSaveHandlerHelper=o,e.registerOnRemoveHandler=function(e){i(e,(function(){if(e&&!c())throw k}))},e.registerOnRemoveHandlerHelper=i,e.registerChangeConfigHandler=function(e){Oe("changeSettings",e,[S.content],(function(){if(!c())throw k}))};var a=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Qe("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Qe("settings.save.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},e}();function s(){var e=new l;t?t(e):Ve.childWindow?Cn("settings.remove",[]):e.notifySuccess()}var l=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Qe("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Qe("settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},e}();function c(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.config}e.isSupported=c}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){if(me(Z),!r())throw k;e(qe("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(e,t){e&&me(Z),t&&t(),n=e,e&&Qe("registerHandler",["backButton"])}function i(){n&&n()||(Ve.childWindow?Cn("backButtonPress",[]):t())}function r(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.backStack}e._initialize=function(){ke("backButtonPress",i,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){o(e,(function(){if(e&&!r())throw k}))},e.registerBackButtonHandlerHelper=o,e.isSupported=r}(e.backStack||(e.backStack={})),function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.fullTrust}e.enterFullscreen=function(){if(me(Z,S.content),!n())throw k;Qe("enterFullscreen",[])},e.exitFullscreen=function(){if(me(Z,S.content),!n())throw k;Qe("exitFullscreen",[])},e.isSupported=n}(e.fullTrust||(e.fullTrust={})),function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.appButton}e.onClick=function(e){Oe("appButtonClick",e,[S.content],(function(){if(!n())throw k}))},e.onHoverEnter=function(e){Oe("appButtonHoverEnter",e,[S.content],(function(){if(!n())throw k}))},e.onHoverLeave=function(e){Oe("appButtonHoverLeave",e,[S.content],(function(){if(!n())throw k}))},e.isSupported=n}(e.appButton||(e.appButton={})),function(e){function n(){return!(!me(Z)||!Z.supports.pages)&&!!Z.supports.pages.currentApp}e.navigateTo=function(e){return new Promise((function(t){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!n())throw k;t(Ke("pages.currentApp.navigateTo",e))}))},e.navigateToDefaultPage=function(){return new Promise((function(e){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!n())throw k;e(Ke("pages.currentApp.navigateToDefaultPage"))}))},e.isSupported=n}(e.currentApp||(e.currentApp={}))}(ce||(ce={}));var be=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},Te=p("handlers"),Ee=function(){function e(){}return e.handlers={},e}();function Ie(){Ee.handlers.themeChange=De,Ee.handlers.load=Le,Ee.handlers.beforeUnload=He,ce.backStack._initialize()}var Pe=Te.extend("callHandler");function Fe(e,n){var t=Ee.handlers[e];return t?(Pe("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):Ve.childWindow?(Cn(e,[n]),[!1,void 0]):(Pe("Handler for action message %s not found.",e),[!1,void 0])}function ke(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(Ee.handlers[e]=n,t&&Qe("registerHandler",be([e],o,!0))):delete Ee.handlers[e]}function Ae(e){delete Ee.handlers[e]}function Re(e){return null!=Ee.handlers[e]}function Oe(e,n,t,o){n&&me.apply(void 0,be([Z],t,!1)),o&&o(),ke(e,n)}function Me(e){Ee.themeChangeHandler=e,e&&Qe("registerHandler",["themeChange"])}function De(e){Ee.themeChangeHandler&&Ee.themeChangeHandler(e),Ve.childWindow&&Cn("themeChange",[e])}function Ne(e){Ee.loadHandler=e,e&&Qe("registerHandler",["load"])}function Le(e){Ee.loadHandler&&Ee.loadHandler(e),Ve.childWindow&&Cn("load",[e])}function Ue(e){Ee.beforeUnloadHandler=e,e&&Qe("registerHandler",["beforeUnload"])}function He(){var e=function(){Qe("readyToUnload",[])};Ee.beforeUnloadHandler&&Ee.beforeUnloadHandler(e)||(Ve.childWindow?Cn("beforeUnload"):e())}var We=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},xe=p("communication"),Ve=function(){return function(){}}(),_e=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Be(e){if(_e.messageListener=function(e){return Ye(e)},Ve.currentWindow=Ve.currentWindow||window,Ve.parentWindow=Ve.currentWindow.parent!==Ve.currentWindow.self?Ve.currentWindow.parent:Ve.currentWindow.opener,(Ve.parentWindow||e)&&Ve.currentWindow.addEventListener("message",_e.messageListener,!1),!Ve.parentWindow){var n=Ve.currentWindow;if(!n.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));d.isFramelessWindow=!0,n.onNativeMessage=on}try{return Ve.parentOrigin="*",Ze("initialize",[ue,2]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{Ve.parentOrigin=null}}function ze(){Ve.currentWindow&&Ve.currentWindow.removeEventListener("message",_e.messageListener,!1),Ve.currentWindow=null,Ve.parentWindow=null,Ve.parentOrigin=null,Ve.childWindow=null,Ve.childOrigin=null,_e.parentMessageQueue=[],_e.childMessageQueue=[],_e.nextMessageId=0,_e.callbacks={},_e.promiseCallbacks={}}function je(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ze(e,n).then((function(e){return e[0]}))}function Ge(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ze(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function qe(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Ze(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function Ke(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ze(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Ze(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(Je($e(e,n).id))}))}function Je(e){return new Promise((function(n){_e.promiseCallbacks[e]=n}))}function Qe(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=$e(e,o);t&&(_e.callbacks[i.id]=t)}var Xe=xe.extend("sendMessageToParentHelper");function $e(e,n){var t=Xe,o=Ve.parentWindow,i=vn(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),d.isFramelessWindow)Ve.currentWindow&&Ve.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),Ve.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=ln(o);o&&r?(t("Sending message %i to parent via postMessage",i.id),o.postMessage(i,r)):(t("Adding message %i to parent message queue",i.id),sn(o).push(i))}return i}function Ye(e){if(e&&e.data&&"object"==typeof e.data){var n=e.source||e.originalEvent&&e.originalEvent.source,t=e.origin||e.originalEvent&&e.originalEvent.origin;en(n,t)&&(nn(n,t),n===Ve.parentWindow?on(e):n===Ve.childWindow&&an(e))}}function en(e,n){return(!Ve.currentWindow||e!==Ve.currentWindow)&&(!!(Ve.currentWindow&&Ve.currentWindow.location&&n&&n===Ve.currentWindow.location.origin)||M(new URL(n)))}function nn(e,n){d.isFramelessWindow||Ve.parentWindow&&!Ve.parentWindow.closed&&e!==Ve.parentWindow?Ve.childWindow&&!Ve.childWindow.closed&&e!==Ve.childWindow||(Ve.childWindow=e,Ve.childOrigin=n):(Ve.parentWindow=e,Ve.parentOrigin=n),Ve.parentWindow&&Ve.parentWindow.closed&&(Ve.parentWindow=null,Ve.parentOrigin=null),Ve.childWindow&&Ve.childWindow.closed&&(Ve.childWindow=null,Ve.childOrigin=null),mn(Ve.parentWindow),mn(Ve.childWindow)}var tn=xe.extend("handleParentMessage");function on(e){var n=tn;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=_e.callbacks[t.id];n("Received a response from parent for message %i",t.id),o&&(n("Invoking the registered callback for message %i with arguments %o",t.id,t.args),o.apply(null,We(We([],t.args,!0),[t.isPartialResponse],!1)),rn(e)||(n("Removing registered callback for message %i",t.id),delete _e.callbacks[t.id]));var i=_e.promiseCallbacks[t.id];i&&(n("Invoking the registered promise callback for message %i with arguments %o",t.id,t.args),i(t.args),n("Removing registered promise callback for message %i",t.id),delete _e.promiseCallbacks[t.id])}else if("func"in e.data&&"string"==typeof e.data.func){n("Received an action message %s from parent",(t=e.data).func),Fe(t.func,t.args)}else n("Received an unknown message: %O",e)}function rn(e){return!0===e.data.isPartialResponse}function an(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=Fe(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?wn(n.id,Array.isArray(i)?i:[i]):Qe(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(Ve.childWindow){var o=e.pop();wn(n.id,e,o)}}))}}function sn(e){return e===Ve.parentWindow?_e.parentMessageQueue:e===Ve.childWindow?_e.childMessageQueue:[]}function ln(e){return e===Ve.parentWindow?Ve.parentOrigin:e===Ve.childWindow?Ve.childOrigin:null}var cn,un,dn,fn,pn,gn=xe.extend("flushMessageQueue");function mn(e){for(var n=ln(e),t=sn(e),o=e==Ve.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();gn("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function hn(e,n){var t=Ve.currentWindow.setInterval((function(){0===sn(e).length&&(clearInterval(t),n())}),100)}function wn(e,n,t){var o=Ve.childWindow,i=yn(e,n,t),r=ln(o);o&&r&&o.postMessage(i,r)}function Cn(e,n){var t=Ve.childWindow,o=Sn(e,n),i=ln(t);t&&i?t.postMessage(o,i):sn(t).push(o)}function vn(e,n){return{id:_e.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function yn(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function Sn(e,n){return{func:e,args:n||[]}}function bn(e,n){me(Z),Qe("uploadCustomApp",[e],n||D())}function Tn(e,n,t){me(Z),Qe(e,n,t)}function En(e,n){if(me(Z),!Ve.childWindow)throw new Error("The child window has not yet been initialized or is not present");Cn(e,n)}function In(e,n){var t=this;me(Z),ke(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function Pn(e,n){me(Z),ke("userSettingsChange",n,!0,[e])}function Fn(e){me(Z,S.content,S.task),Qe("openFilePreview",[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId,e.viewerAction,e.fileOpenPreference,e.conversationId])}!function(e){function n(){return!(!me(Z)||!Z.supports.logs)}e.registerGetLogHandler=function(e){if(e&&me(Z),e&&!n())throw k;e?ke("log.request",(function(){Qe("log.receive",[e()])})):Ae("log.request")},e.isSupported=n}(cn||(cn={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(un||(un={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(dn||(dn={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(fn||(fn={})),function(e){function n(){return!(!me(Z)||!Z.supports.conversations)}e.openConversation=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw k;var o=Ge("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&ke("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&ke("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),t(o)}))},e.closeConversation=function(){if(me(Z,S.content),!n())throw k;Qe("conversations.closeConversation"),Ae("startConversation"),Ae("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){if(me(Z),!n())throw k;e(je("getChatMembers"))}))},e.isSupported=n}(pn||(pn={}));var kn,An="users";function Rn(e,n,t){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");var o="".concat(An,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),i=void 0===n?"":"&".concat("topicName","=").concat(encodeURIComponent(n)),r=void 0===t?"":"&".concat("message","=").concat(encodeURIComponent(t));return"".concat(l,"://").concat(c).concat("/l/chat/0/0","?").concat(o).concat(i).concat(r)}function On(e,n,t){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");var o="".concat(An,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),i=void 0===n?"":"&".concat("withVideo","=").concat(encodeURIComponent(n)),r=void 0===t?"":"&".concat("source","=").concat(encodeURIComponent(t));return"".concat(l,"://").concat(c).concat("/l/call/0/0","?").concat(o).concat(i).concat(r)}function Mn(e,n,t,o,i){var r=void 0===e?"":"".concat("attendees","=")+e.map((function(e){return encodeURIComponent(e)})).join(","),a=void 0===n?"":"&".concat("startTime","=").concat(encodeURIComponent(n)),s=void 0===t?"":"&".concat("endTime","=").concat(encodeURIComponent(t)),u=void 0===o?"":"&".concat("subject","=").concat(encodeURIComponent(o)),d=void 0===i?"":"&".concat("content","=").concat(encodeURIComponent(i));return"".concat(l,"://").concat(c).concat("/l/meeting/new","?").concat(r).concat(a).concat(s).concat(u).concat(d)}function Dn(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return"".concat(l,"://").concat(c).concat("/l/app/").concat(encodeURIComponent(e))}!function(e){function n(){return!(!me(Z)||!Z.supports.appInstallDialog)}e.openAppInstallDialog=function(e){return new Promise((function(t){if(me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),!n())throw new Error("Not supported");Z.isLegacyTeams?t(Ge("executeDeepLink",Dn(e.appId))):(Qe("appInstallDialog.openAppInstallDialog",[e]),t())}))},e.isSupported=n}(kn||(kn={}));var Nn,Ln,Un,Hn,Wn=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},e(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();function xn(e,n){if(null==e||null==n||e.length<=0)return null;var t,o=1;return e.sort((function(e,n){return e.sequence>n.sequence?1:-1})),e.forEach((function(e){e.sequence==o&&(t=t?new Blob([t,e.file],{type:n}):new Blob([e.file],{type:n}),o++)})),t}function Vn(e,n){if(null==e||null==n)return null;for(var t=atob(e.chunk),o=new Array(t.length),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);var r=new Uint8Array(o),a=new Blob([r],{type:n});return{sequence:e.chunkSequence,file:a}}function _n(e){Gn(e)?Ce("2.0.2"):qn(e)?Ce(n):jn(e)&&Ce("2.0.4")}function Bn(e){return!(e.mediaType!=Nn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function zn(e){return!(null==e||e.maxMediaCount>10)}function jn(e){var n;return!((null==e?void 0:e.mediaType)!=Nn.MediaType.Image||!(null===(n=null==e?void 0:e.imageProps)||void 0===n?void 0:n.imageOutputFormats))}function Gn(e){return!(!e||e.mediaType!=Nn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function qn(e){return!(!e||e.mediaType!=Nn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function Kn(e,n,t){return null!=e&&null!=n&&n==Nn.FileFormat.ID&&null!=t}function Zn(e){return!(null==e||e.length<=0||e.length>10)}function Jn(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function Qn(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}function Xn(){return Z.hostVersionsInfo?Z.hostVersionsInfo.adaptiveCardSchemaVersion:void 0}!function(e){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var t=function(){return function(){}}();e.File=t,e.captureImage=function(e){if(!e)throw new Error("[captureImage] Callback cannot be null");me(Z,S.content,S.task),d.isFramelessWindow?he("1.7.0")?Qe("captureImage",e):e({errorCode:w.OLD_PLATFORM},void 0):e({errorCode:w.NOT_SUPPORTED_ON_PLATFORM},void 0)};var o=function(e){function n(n){void 0===n&&(n=null);var t=e.call(this)||this;return n&&(t.content=n.content,t.format=n.format,t.mimeType=n.mimeType,t.name=n.name,t.preview=n.preview,t.size=n.size),t}return Wn(n,e),n.prototype.getMedia=function(e){if(!e)throw new Error("[get Media] Callback cannot be null");(me(Z,S.content,S.task),he(r))?Kn(this.mimeType,this.format,this.content)?he("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e):e({errorCode:w.INVALID_ARGUMENTS},null):e({errorCode:w.OLD_PLATFORM},null)},n.prototype.getMediaViaCallback=function(e){var n={mediaMimeType:this.mimeType,assembleAttachment:[]};Qe("getMedia",[this.content],(function(t){if(e)if(t&&t.error)e(t.error,null);else if(t&&t.mediaChunk)if(t.mediaChunk.chunkSequence<=0){var o=xn(n.assembleAttachment,n.mediaMimeType);e(t.error,o)}else{var i=Vn(t.mediaChunk,n.mediaMimeType);n.assembleAttachment.push(i)}else e({errorCode:w.INTERNAL_ERROR,message:"data received is null"},null)}))},n.prototype.getMediaViaHandler=function(e){var n=L(),t={mediaMimeType:this.mimeType,assembleAttachment:[]},o=[n,this.content];this.content&&e&&Qe("getMedia",o),ke("getMedia"+n,(function(o){if(e){var i=JSON.parse(o);if(i.error)e(i.error,null),Ae("getMedia"+n);else if(i.mediaChunk)if(i.mediaChunk.chunkSequence<=0){var r=xn(t.assembleAttachment,t.mediaMimeType);e(i.error,r),Ae("getMedia"+n)}else{var a=Vn(i.mediaChunk,t.mediaMimeType);t.assembleAttachment.push(a)}else e({errorCode:w.INTERNAL_ERROR,message:"data received is null"},null),Ae("getMedia"+n)}}))},n}(t);e.Media=o;var i,a,s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Wn(n,e),n.prototype.getMediaType=function(){return a.Video},n.prototype.notifyEventToApp=function(e){if(this.controllerCallback)switch(e){case i.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}},n}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,t){me(Z,S.content,S.task);try{Ce(n)}catch(e){return void(t&&t(e))}Qe("media.controller",[{mediaType:this.getMediaType(),mediaControllerEvent:e}],(function(e){t&&t(e)}))},e.prototype.stop=function(e){this.notifyEventToHost(i.StopRecording,e)},e}());e.VideoController=s,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(i=e.MediaControllerEvent||(e.MediaControllerEvent={})),function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(e.CameraStartMode||(e.CameraStartMode={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(e.Source||(e.Source={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(a=e.MediaType||(e.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(e.ImageUriType||(e.ImageUriType={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(e.ImageOutputFormats||(e.ImageOutputFormats={})),e.selectMedia=function(e,n){if(!n)throw new Error("[select Media] Callback cannot be null");if(me(Z,S.content,S.task),he(r)){try{_n(e)}catch(e){return void n(e,null)}if(zn(e)){Qe("selectMedia",[e],(function(t,i,r){if(r)Bn(e)&&e.videoProps.videoController.notifyEventToApp(r);else if(i){for(var a=[],s=0,l=i;s<l.length;s++){var c=l[s];a.push(new o(c))}n(t,a)}else n(t,null)}))}else{var t={errorCode:w.INVALID_ARGUMENTS};n(t,null)}}else{var i={errorCode:w.OLD_PLATFORM};n(i,null)}},e.viewImages=function(e,n){if(!n)throw new Error("[view images] Callback cannot be null");me(Z,S.content,S.task),he(r)?Zn(e)?Qe("viewImages",[e],n):n({errorCode:w.INVALID_ARGUMENTS}):n({errorCode:w.OLD_PLATFORM})},e.scanBarCode=function(e,n){if(!e)throw new Error("[media.scanBarCode] Callback cannot be null");me(Z,S.content,S.task),d.hostClientType!==v.desktop&&d.hostClientType!==v.web&&d.hostClientType!==v.rigel&&d.hostClientType!==v.teamsRoomsWindows&&d.hostClientType!==v.teamsRoomsAndroid&&d.hostClientType!==v.teamsPhones&&d.hostClientType!==v.teamsDisplays?he("1.9.0")?Jn(n)?Qe("media.scanBarCode",[n],e):e({errorCode:w.INVALID_ARGUMENTS},null):e({errorCode:w.OLD_PLATFORM},null):e({errorCode:w.NOT_SUPPORTED_ON_PLATFORM},null)}}(Nn||(Nn={})),function(e){function n(){return!!(me(Z)&&Z.supports.barCode&&Z.supports.permissions)}e.scanBarCode=function(e){return new Promise((function(t){if(me(Z,S.content,S.task),!n())throw k;if(!Jn(e))throw{errorCode:w.INVALID_ARGUMENTS};t(Ke("media.scanBarCode",e))}))},e.hasPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.Media;return new Promise((function(n){n(Ke("permissions.has",e))}))},e.requestPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.Media;return new Promise((function(n){n(Ke("permissions.request",e))}))},e.isSupported=n}(Ln||(Ln={})),function(e){function n(e){return new Promise((function(n){if(me(Z,S.content,S.task),!t())throw k;Z.isLegacyTeams?n(Ge("executeDeepLink",Rn([e.user],void 0,e.message))):n(Ge("chat.openChat",{members:e.user,message:e.message}))}))}function t(){return!(!me(Z)||!Z.supports.chat)}e.openChat=n,e.openGroupChat=function(e){return new Promise((function(o){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length){n({user:e.users[0],message:e.message})}else{if(me(Z,S.content,S.task),!t())throw k;if(Z.isLegacyTeams)o(Ge("executeDeepLink",Rn(e.users,e.topic,e.message)));else o(Ge("chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}}))},e.isSupported=t}(Un||(Un={})),function(e){function n(){return!!(me(Z)&&Z.supports.geoLocation&&Z.supports.permissions)}e.getCurrentLocation=function(){if(me(Z,S.content,S.task),!n())throw k;return Ke("location.getLocation",{allowChooseLocation:!1,showMap:!1})},e.hasPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.GeoLocation;return new Promise((function(n){n(Ke("permissions.has",e))}))},e.requestPermission=function(){if(me(Z,S.content,S.task),!n())throw k;var e=C.GeoLocation;return new Promise((function(n){n(Ke("permissions.request",e))}))},e.isSupported=n,function(e){function n(){return!!(me(Z)&&Z.supports.geoLocation&&Z.supports.geoLocation.map&&Z.supports.permissions)}e.chooseLocation=function(){if(me(Z,S.content,S.task),!n())throw k;return Ke("location.getLocation",{allowChooseLocation:!0,showMap:!0})},e.showLocation=function(e){if(me(Z,S.content,S.task),!n())throw k;if(!e)throw{errorCode:w.INVALID_ARGUMENTS};return Ke("location.showLocation",e)},e.isSupported=n}(e.map||(e.map={}))}(Hn||(Hn={}));var $n,Yn=function(){function e(){}return e.prototype.postMessage=function(e,n){me(Z),Qe("messageForChild",[e],n||D())},e.prototype.addEventListener=function(e,n){me(Z),"message"===e&&ke("messageForParent",n)},e}(),et=function(){function e(){}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(e,n){me(Z,S.task),Qe("messageForParent",[e],n||D())},e.prototype.addEventListener=function(e,n){me(Z,S.task),"message"===e&&ke("messageForChild",n)},e}();!function(e){function n(){return!(!me(Z)||!Z.supports.location)}e.getLocation=function(e,t){if(!t)throw new Error("[location.getLocation] Callback cannot be null");if(me(Z,S.content,S.task),!he(i))throw{errorCode:w.OLD_PLATFORM};if(!e)throw{errorCode:w.INVALID_ARGUMENTS};if(!n())throw k;Qe("location.getLocation",[e],t)},e.showLocation=function(e,t){if(!t)throw new Error("[location.showLocation] Callback cannot be null");if(me(Z,S.content,S.task),!he(i))throw{errorCode:w.OLD_PLATFORM};if(!e)throw{errorCode:w.INVALID_ARGUMENTS};if(!n())throw k;Qe("location.showLocation",[e],t)},e.isSupported=n}($n||($n={}));var nt,tt,ot,it,rt,at,st,lt,ct,ut,dt,ft,pt,gt,mt=function(e,n,t,o){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){e.done?t(e.value):i(e.value).then(a,s)}l((o=o.apply(e,n||[])).next())}))},ht=function(e,n){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(n){return l([e,n])}}function l(r){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e],o=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function wt(e){return e?e.modality&&"string"!=typeof e.modality?[!1,"modality must be a string"]:e.targetElementBoundingRect&&"object"==typeof e.targetElementBoundingRect?e.triggerType&&"string"==typeof e.triggerType?Ct(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function Ct(e){return e?e.displayName&&"string"!=typeof e.displayName?[!1,"displayName must be a string"]:e.identifiers&&"object"==typeof e.identifiers?e.identifiers.AadObjectId||e.identifiers.Smtp||e.identifiers.Upn?e.identifiers.AadObjectId&&"string"!=typeof e.identifiers.AadObjectId?[!1,"AadObjectId identifier must be a string"]:e.identifiers.Smtp&&"string"!=typeof e.identifiers.Smtp?[!1,"Smtp identifier must be a string"]:e.identifiers.Upn&&"string"!=typeof e.identifiers.Upn?[!1,"Upn identifier must be a string"]:[!0,void 0]:[!1,"at least one valid identifier must be provided"]:[!1,"persona identifiers object must be provided"]:[!1,"persona object must be provided"]}function vt(e,n){le.initialize(n).then((function(){e&&e()}))}function yt(){se.enablePrintCapability()}function St(){se.print()}function bt(e){ge(),Qe("getContext",(function(n){n.frameContext||(n.frameContext=d.frameContext),e(n)}))}function Tt(e){le.registerOnThemeChangeHandler(e)}function Et(e){Oe("fullScreenChange",e,[])}function It(e){Oe("appButtonClick",e,[S.content])}function Pt(e){Oe("appButtonHoverEnter",e,[S.content])}function Ft(e){Oe("appButtonHoverLeave",e,[S.content])}function kt(e){ce.backStack.registerBackButtonHandlerHelper(e)}function At(e){se.registerOnLoadHandlerHelper(e)}function Rt(e){se.registerBeforeUnloadHandlerHelper(e)}function Ot(e){Oe("focusEnter",e,[])}function Mt(e){Oe("changeSettings",e,[S.content])}function Dt(e,n){me(Z),ce.tabs.getTabInstances(n).then((function(n){e(n)}))}function Nt(e,n){me(Z),ce.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function Lt(e){ce.shareDeepLink({subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function Ut(e,n){me(Z,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),n=n||D(),le.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Ht(e){ce.setCurrentFrame(e)}function Wt(e,n,t){ce.initializeWithFrameContext(e,n,t)}function xt(e){ce.returnFocus(e)}function Vt(e,n){me(Z),n=n||D(),ce.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function _t(e,n){me(Z,S.content,S.sidePanel,S.settings,S.remove,S.task,S.stage,S.meetingStage),n=n||D(),ce.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Bt(e){me(Z),e=e||D(),ce.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(e){var n;function t(e,t){var o=this;Qe("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(r,a){if(r&&null!=a)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(r)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(r.errorCode," ").concat(r.message));if("boolean"!=typeof a)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");ke("meeting.micStateChanged",(function(t){return mt(o,void 0,void 0,(function(){var o,r;return ht(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.micMuteStateChangedCallback(t)];case 1:return o=a.sent(),r=o.isMicMuted===t.isMicMuted,i(o,r?n.HostInitiated:n.AppDeclinedToChange),[3,3];case 2:return a.sent(),i(t,n.AppFailedToChange),[3,3];case 3:return[2]}}))}))})),t(a)}))}function o(e,n){Qe("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(e,t){if(e&&null!=t)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(e.errorCode," ").concat(e.message));if("boolean"!=typeof t)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");Re("meeting.micStateChanged")&&Ae("meeting.micStateChanged"),n(t)}))}function i(e,n){me(Z,S.sidePanel,S.meetingStage),Qe("meeting.updateMicState",[e,n])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(n||(n={})),function(e){e.like="like",e.heart="heart",e.laugh="laugh",e.surprised="surprised",e.applause="applause"}(e.MeetingReactionType||(e.MeetingReactionType={})),function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(e.CallType||(e.CallType={})),e.getIncomingClientAudioState=function(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("getIncomingClientAudioState",e)},e.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("toggleIncomingClientAudio",e)},e.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage,S.settings,S.content),Qe("meeting.getMeetingDetails",e)},e.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.getAuthenticationTokenForAnonymousUser",e)},e.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");me(Z,S.sidePanel),Qe("meeting.getLiveStreamState",e)},e.requestStartLiveStreaming=function(e,n,t){if(!e)throw new Error("[request start live streaming] Callback cannot be null");me(Z,S.sidePanel),Qe("meeting.requestStartLiveStreaming",[n,t],e)},e.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");me(Z,S.sidePanel),Qe("meeting.requestStopLiveStreaming",e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");me(Z,S.sidePanel),ke("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){if(!e)throw new Error("[share app content to stage] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.shareAppContentToStage",[n],e)},e.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.getAppContentStageSharingCapabilities",e)},e.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.stopSharingAppContentToStage",e)},e.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");me(Z,S.sidePanel,S.meetingStage),Qe("meeting.getAppContentStageSharingState",e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");me(Z,S.sidePanel,S.meetingStage),ke("meeting.speakingStateChanged",e)},e.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");me(Z,S.sidePanel,S.meetingStage),ke("meeting.raiseHandStateChanged",e)},e.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");me(Z,S.sidePanel,S.meetingStage),ke("meeting.meetingReactionReceived",e)},function(e){e.setOptions=function(e){me(Z,S.sidePanel),e.contentUrl&&new URL(e.contentUrl),Qe("meeting.appShareButton.setOptions",[e])}}(e.appShareButton||(e.appShareButton={})),e.requestAppAudioHandling=function(e,n){if(!n)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!e.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");me(Z,S.sidePanel,S.meetingStage),e.isAppHandlingAudio?t(e,n):o(e,n)},e.updateMicState=function(e){i(e,n.AppInitiated)}}(nt||(nt={})),function(e){function n(){return!(!me(Z)||!Z.supports.monetization)}e.openPurchaseExperience=function(e,t){var o,i;return"function"==typeof e?(o=e,i=t):i=e,me(Z,S.content),x((function(){return new Promise((function(e){if(!n())throw k;e(Ke("monetization.openPurchaseExperience",i))}))}),o)},e.isSupported=n}(tt||(tt={})),function(e){function n(){return!(!me(Z)||!Z.supports.calendar)}e.openCalendarItem=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");t(Ge("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");Z.isLegacyTeams?t(Ge("executeDeepLink",Mn(e.attendees,e.startTime,e.endTime,e.subject,e.content))):t(Ge("calendar.composeMeeting",e))}))},e.isSupported=n}(ot||(ot={})),function(e){function n(){return!(!me(Z)||!Z.supports.mail)}e.openMailItem=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");t(Ge("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw new Error("Not supported");t(Ge("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(it||(it={})),function(e){function n(e){return new Promise((function(n){if(!he("2.0.0"))throw{errorCode:w.OLD_PLATFORM};if(!Qn(e))throw{errorCode:w.INVALID_ARGUMENTS};if(!t())throw k;n(Ke("people.selectPeople",e))}))}function t(){return!(!me(Z)||!Z.supports.people)}e.selectPeople=function(e,t){var o,i,r;return me(Z,S.content,S.task,S.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,H(n,i,r)},e.isSupported=t}(rt||(rt={})),function(e){e.showProfile=function(e){return me(Z,S.content),new Promise((function(n){var t=wt(e),o=t[0],i=t[1];if(!o)throw{errorCode:w.INVALID_ARGUMENTS,message:i};n(Ke("profile.showProfile",{modality:e.modality,persona:e.persona,triggerType:e.triggerType,targetRectangle:{x:e.targetElementBoundingRect.x,y:e.targetElementBoundingRect.y,width:e.targetElementBoundingRect.width,height:e.targetElementBoundingRect.height}}))}))},e.isSupported=function(){return!(!me(Z)||!Z.supports.profile)}}(at||(at={})),function(e){var n;function t(e){Qe("video.videoFrameProcessed",[e])}function o(e){Qe("video.notifyError",[e])}function i(){return!(!me(Z)||!Z.supports.video)}!function(e){e[e.NV12=0]="NV12"}(e.VideoFrameFormat||(e.VideoFrameFormat={})),function(e){e[e.EffectChanged=0]="EffectChanged",e[e.EffectDisabled=1]="EffectDisabled"}(e.EffectChangeType||(e.EffectChangeType={})),function(e){e.InvalidEffectId="InvalidEffectId",e.InitializationFailure="InitializationFailure"}(n=e.EffectFailureReason||(e.EffectFailureReason={})),e.registerForVideoFrame=function(e,n){if(me(Z,S.sidePanel),!i())throw k;ke("video.newVideoFrame",(function(n){if(n){var i=n.timestamp;e(n,(function(){t(i)}),o)}}),!1),Qe("video.registerForVideoFrame",[n])},e.notifySelectedVideoEffectChanged=function(e,n){if(me(Z,S.sidePanel),!i())throw k;Qe("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){if(me(Z,S.sidePanel),!i())throw k;ke("video.effectParameterChange",(function(t){e(t).then((function(){Qe("video.videoEffectReadiness",[!0,t])})).catch((function(e){var o=e in n?e:n.InitializationFailure;Qe("video.videoEffectReadiness",[!1,t,o])}))}),!1),Qe("video.registerForVideoEffect")},e.isSupported=i}(st||(st={})),function(e){var n="search.queryChange",t="search.queryClose",o="search.queryExecute";function i(){return!(!me(Z)||!Z.supports.search)}e.registerHandlers=function(e,r,a){if(me(Z,S.content),!i())throw k;ke(t,e),ke(o,r),a&&ke(n,a)},e.unregisterHandlers=function(){if(me(Z,S.content),!i())throw k;Qe("search.unregister"),Ae(n),Ae(t),Ae(o)},e.isSupported=i}(lt||(lt={})),function(e){function n(n){return new Promise((function(t){if(!r())throw k;t(Ke(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:w.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:w.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:w.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:w.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:w.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}function r(){return!(!me(Z)||!Z.supports.sharing)}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,r){try{t(e),o(e),i(e)}catch(e){return W((function(){return Promise.reject(e)}),r)}return me(Z,S.content,S.sidePanel,S.task,S.stage,S.meetingStage),W(n,r,e)},e.isSupported=r}(ct||(ct={})),function(e){function n(){return!(!me(Z)||!Z.supports.stageView)}e.open=function(e){return new Promise((function(t){if(me(Z,S.content),!n())throw k;if(!e)throw new Error("[stageView.open] Stage view params cannot be null");t(Ke("stageView.open",e))}))},e.isSupported=n}(ut||(ut={})),function(e){function n(){return!(!me(Z)||!Z.supports.webStorage)}e.isWebStorageClearedOnUserLogOut=function(){return me(Z),n()},e.isSupported=n}(dt||(dt={})),function(e){var n;function t(){return!(!me(Z)||!Z.supports.call)}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(n=e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(o){var i;if(me(Z,S.content,S.task),!t())throw k;if(!Z.isLegacyTeams)return Qe("call.startCall",[e],o);o(Ke("executeDeepLink",On(e.targets,null===(i=e.requestedModalities)||void 0===i?void 0:i.includes(n.Video),e.source)))}))},e.isSupported=t}(ft||(ft={})),function(e){e.Messages=le.Messages,e.FailedReason=le.FailedReason,e.ExpectedFailureReason=le.ExpectedFailureReason,e.notifyAppLoaded=function(){le.notifyAppLoaded()},e.notifySuccess=function(){le.notifySuccess()},e.notifyFailure=function(e){le.notifyFailure(e)},e.notifyExpectedFailure=function(e){le.notifyExpectedFailure(e)}}(pt||(pt={})),function(e){e.setValidityState=function(e){ce.config.setValidityState(e)},e.getSettings=function(e){me(Z,S.content,S.settings,S.remove,S.sidePanel),ce.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){me(Z,S.content,S.settings,S.sidePanel),n=n||D(),ce.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){ce.config.registerOnSaveHandlerHelper(e)},e.registerOnRemoveHandler=function(e){ce.config.registerOnRemoveHandlerHelper(e)}}(gt||(gt={}));var zt,jt,Gt,qt=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)n.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]])}return t};!function(e){function n(e){return{url:e.url,size:{height:e.height?e.height:F.Small,width:e.width?e.width:F.Small},title:e.title,fallbackUrl:e.fallbackUrl}}function t(e){return{url:e.url,size:{height:e.height?e.height:F.Small,width:e.width?e.width:F.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function o(e){return e.height=e.height?e.height:F.Small,e.width=e.width?e.width:F.Small,e}e.startTask=function(e,o){var i=o?function(e){return o(e.err,e.result)}:void 0;return void 0===e.card&&void 0===e.url||e.card?(me(Z,S.content,S.sidePanel,S.meetingStage),Qe("tasks.startTask",[e],o)):void 0!==e.completionBotId?re.url.bot.open(t(e),i):re.url.open(n(e),i),new Yn},e.updateTask=function(e){(e=o(e)).width,e.height;var n=qt(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a TaskInfo argument containing only width and height");re.update.resize(e)},e.submitTask=function(e,n){re.url.submit(e,n)},e.getDefaultSizeIfNotProvided=o}(zt||(zt={})),function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(jt||(jt={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(Gt||(Gt={}));var Kt,Zt,Jt,Qt,Xt,$t,Yt,eo=function(){function e(){}return e.prototype.getFluidTenantInfo=function(){return new Promise((function(e){me(Z,S.meetingStage,S.sidePanel),e(Ke("interactive.getFluidTenantInfo"))}))},e.prototype.getFluidToken=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.getFluidToken",e))}))},e.prototype.getFluidContainerId=function(){return new Promise((function(e){me(Z,S.meetingStage,S.sidePanel),e(Ke("interactive.getFluidContainerId"))}))},e.prototype.setFluidContainerId=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.setFluidContainerId",e))}))},e.prototype.getNtpTime=function(){return new Promise((function(e){me(Z,S.meetingStage,S.sidePanel),e(Ke("interactive.getNtpTime"))}))},e.prototype.registerClientId=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.registerClientId",e))}))},e.prototype.getClientRoles=function(e){return new Promise((function(n){me(Z,S.meetingStage,S.sidePanel),n(Ke("interactive.getClientRoles",e))}))},e.create=function(){return me(Z,S.meetingStage,S.sidePanel),new e},e}();!function(e){function n(e,n){return{errorCode:e,message:n}}!function(e){e.Dropbox="DROPBOX",e.Box="BOX",e.Sharefile="SHAREFILE",e.GoogleDrive="GOOGLEDRIVE",e.Egnyte="EGNYTE",e.SharePoint="SharePoint"}(e.CloudStorageProvider||(e.CloudStorageProvider={})),function(e){e[e.Sharepoint=0]="Sharepoint",e[e.WopiIntegration=1]="WopiIntegration",e[e.Google=2]="Google",e[e.OneDrive=3]="OneDrive",e[e.Recent=4]="Recent",e[e.Aggregate=5]="Aggregate",e[e.FileSystem=6]="FileSystem",e[e.Search=7]="Search",e[e.AllFiles=8]="AllFiles",e[e.SharedWithMe=9]="SharedWithMe"}(e.CloudStorageProviderType||(e.CloudStorageProviderType={})),function(e){e.ClassMaterials="classMaterials"}(e.SpecialDocumentLibraryType||(e.SpecialDocumentLibraryType={})),function(e){e.Readonly="readonly"}(e.DocumentLibraryAccessType||(e.DocumentLibraryAccessType={})),function(e){e.Downloaded="Downloaded",e.Downloading="Downloading",e.Failed="Failed"}(e.FileDownloadStatus||(e.FileDownloadStatus={})),function(e){e.Download="DOWNLOAD",e.Upload="UPLOAD",e.Delete="DELETE"}(e.CloudStorageProviderFileAction||(e.CloudStorageProviderFileAction={})),e.getCloudStorageFolders=function(e,n){if(me(Z,S.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!n)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");Qe("files.getCloudStorageFolders",[e],n)},e.addCloudStorageFolder=function(e,n){if(me(Z,S.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");Qe("files.addCloudStorageFolder",[e],n)},e.deleteCloudStorageFolder=function(e,n,t){if(me(Z,S.content),!e)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!t)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");Qe("files.deleteCloudStorageFolder",[e,n],t)},e.getCloudStorageFolderContents=function(e,n,t){if(me(Z,S.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!t)throw new Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");Qe("files.getCloudStorageFolderContents",[e,n],t)},e.openCloudStorageFile=function(e,n,t){if(me(Z,S.content),!e||!n)throw new Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(e.isSubdirectory)throw new Error("[files.openCloudStorageFile] provided file is a subDirectory");Qe("files.openCloudStorageFile",[e,n,t])},e.getExternalProviders=function(e,n){if(void 0===e&&(e=!1),me(Z,S.content),!n)throw new Error("[files.getExternalProviders] Callback cannot be null");Qe("files.getExternalProviders",[e],n)},e.copyMoveFiles=function(e,n,t,o,i,r){if(void 0===i&&(i=!1),me(Z,S.content),!e||0===e.length)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!n)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!t)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!o)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!r)throw new Error("[files.copyMoveFiles] callback cannot be null");Qe("files.copyMoveFiles",[e,n,t,o,i],r)},e.getFileDownloads=function(e){if(me(Z,S.content),!e)throw new Error("[files.getFileDownloads] Callback cannot be null");Qe("files.getFileDownloads",[],e)},e.openDownloadFolder=function(e,n){if(void 0===e&&(e=void 0),me(Z,S.content),!n)throw new Error("[files.openDownloadFolder] Callback cannot be null");Qe("files.openDownloadFolder",[e],n)},e.addCloudStorageProvider=function(e){if(me(Z,S.content),!e)throw n(w.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");Qe("files.addCloudStorageProvider",[],e)},e.removeCloudStorageProvider=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw n(w.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");Qe("files.removeCloudStorageProvider",[e],t)},e.addCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(w.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");Qe("files.addCloudStorageProviderFile",[e],t)},e.renameCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(w.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");Qe("files.renameCloudStorageProviderFile",[e],t)},e.deleteCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(w.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");Qe("files.deleteCloudStorageProviderFile",[e],t)},e.downloadCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(w.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");Qe("files.downloadCloudStorageProviderFile",[e],t)},e.uploadCloudStorageProviderFile=function(e,t){if(me(Z,S.content),!t)throw n(w.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(w.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw n(w.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");Qe("files.uploadCloudStorageProviderFile",[e],t)},e.registerCloudStorageProviderListChangeHandler=function(e){if(me(Z),!e)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");ke("files.cloudStorageProviderListChange",e)},e.registerCloudStorageProviderContentChangeHandler=function(e){if(me(Z),!e)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");ke("files.cloudStorageProviderContentChange",e)}}(Kt||(Kt={})),function(e){function n(){return!(!me(Z)||!Z.supports.meetingRoom)}e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){if(me(Z),!n())throw k;e(Ke("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(t){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(me(Z),!n())throw k;t(Ke("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(me(Z),!n())throw k;ke("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){me(Z),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(me(Z),!n())throw k;ke("meetingRoom.meetingRoomStatesUpdate",(function(n){me(Z),e(n)}))},e.isSupported=n}(Zt||(Zt={})),function(e){function n(){return!(!me(Z)||!Z.supports.notifications)}e.showNotification=function(e){if(me(Z,S.content),!n())throw k;Qe("notifications.showNotification",[e])},e.isSupported=n}(Jt||(Jt={})),function(e){function n(){return!(!me(Z)||!Z.supports.remoteCamera)}!function(e){e.Reset="Reset",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut",e.PanLeft="PanLeft",e.PanRight="PanRight",e.TiltUp="TiltUp",e.TiltDown="TiltDown"}(e.ControlCommand||(e.ControlCommand={})),function(e){e[e.CommandResetError=0]="CommandResetError",e[e.CommandZoomInError=1]="CommandZoomInError",e[e.CommandZoomOutError=2]="CommandZoomOutError",e[e.CommandPanLeftError=3]="CommandPanLeftError",e[e.CommandPanRightError=4]="CommandPanRightError",e[e.CommandTiltUpError=5]="CommandTiltUpError",e[e.CommandTiltDownError=6]="CommandTiltDownError",e[e.SendDataError=7]="SendDataError"}(e.ErrorReason||(e.ErrorReason={})),function(e){e[e.None=0]="None",e[e.ControlDenied=1]="ControlDenied",e[e.ControlNoResponse=2]="ControlNoResponse",e[e.ControlBusy=3]="ControlBusy",e[e.AckTimeout=4]="AckTimeout",e[e.ControlTerminated=5]="ControlTerminated",e[e.ControllerTerminated=6]="ControllerTerminated",e[e.DataChannelError=7]="DataChannelError",e[e.ControllerCancelled=8]="ControllerCancelled",e[e.ControlDisabled=9]="ControlDisabled",e[e.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController"}(e.SessionTerminatedReason||(e.SessionTerminatedReason={})),e.getCapableParticipants=function(e){if(!e)throw new Error("[remoteCamera.getCapableParticipants] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,t){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!t)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.requestControl",[e],t)},e.sendControlCommand=function(e,t){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!t)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.sendControlCommand",[e],t)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(me(Z,S.sidePanel),!n())throw k;Qe("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(me(Z,S.sidePanel),!n())throw k;ke("remoteCamera.sessionStatusChange",e)},e.isSupported=n}(Qt||(Qt={})),function(e){function n(){return!(!me(Z)||!Z.supports.appEntity)}e.selectAppEntity=function(e,t,o,i){if(me(Z,S.content),!n())throw k;if(!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!i)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");Qe("appEntity.selectAppEntity",[e,t,o],i)},e.isSupported=n}(Xt||(Xt={})),function(e){function n(){return!(!me(Z)||!Z.supports.teams)}!function(e){e[e.Regular=0]="Regular",e[e.Private=1]="Private",e[e.Shared=2]="Shared"}(e.ChannelType||(e.ChannelType={})),e.getTeamChannels=function(e,t){if(me(Z,S.content),!n())throw k;if(!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!t)throw new Error("[teams.getTeamChannels] Callback cannot be null");Qe("teams.getTeamChannels",[e],t)},e.refreshSiteUrl=function(e,t){if(me(Z),!n())throw k;if(!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!t)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");Qe("teams.refreshSiteUrl",[e],t)},e.isSupported=n,function(e){function n(){return!(!me(Z)||!Z.supports.teams)&&!!Z.supports.teams.fullTrust}!function(e){function n(){return!(!me(Z)||!Z.supports.teams)&&(!!Z.supports.teams.fullTrust&&!!Z.supports.teams.fullTrust.joinedTeams)}e.getUserJoinedTeams=function(e){return new Promise((function(t){if(me(Z),!n())throw k;if((d.hostClientType===v.android||d.hostClientType===v.teamsRoomsAndroid||d.hostClientType===v.teamsPhones||d.hostClientType===v.teamsDisplays)&&!he("2.0.1")){var o={errorCode:w.OLD_PLATFORM};throw new Error(JSON.stringify(o))}t(je("getUserJoinedTeams",e))}))},e.isSupported=n}(e.joinedTeams||(e.joinedTeams={})),e.getConfigSetting=function(e){return new Promise((function(t){if(me(Z),!n())throw k;t(je("getConfigSetting",e))}))},e.isSupported=n}(e.fullTrust||(e.fullTrust={}))}($t||($t={})),function(e){var n;function t(){return me(Z),st.isSupported()}function o(e){Qe("video.videoFrameProcessed",[e])}function i(e,t){void 0===t&&(t=n.Warn),Qe("video.notifyError",[e,t])}!function(e){e.Fatal="fatal",e.Warn="warn"}(n=e.ErrorLevel||(e.ErrorLevel={})),e.registerForVideoFrame=function(e,n){if(me(Z,S.sidePanel),!t())throw k;ke("video.newVideoFrame",(function(n){if(n){var t=n.timestamp;e(n,(function(){o(t)}),i)}}),!1),Qe("video.registerForVideoFrame",[n])},e.notifySelectedVideoEffectChanged=function(e,n,o){if(me(Z,S.sidePanel),!t())throw k;Qe("video.videoEffectChanged",[e,n,o])},e.registerForVideoEffect=function(e){if(me(Z,S.sidePanel),!t())throw k;ke("video.effectParameterChange",e,!1),Qe("video.registerForVideoEffect")},e.updatePersonalizedEffects=function(e){if(me(Z,S.sidePanel),!st.isSupported())throw k;Qe("video.personalizedEffectsChanged",[e])},e.isSupported=t,e.notifyFatalError=function(e){if(me(Z),!st.isSupported())throw k;i(e,n.Fatal)}}(Yt||(Yt={}))})(),o})()}));
2
2
  //# sourceMappingURL=MicrosoftTeams.min.js.map