@microsoft/teams-js 2.0.0-beta.4-dev.27 → 2.0.0-beta.5-dev.2

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={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,u=0;e.exports=function(e,n,t){var c=n&&t||0,l=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 m=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,h=m-s+(g-u)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||m>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,u=g,i=f;var C=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;l[c++]=C>>>24&255,l[c++]=C>>>16&255,l[c++]=C>>>8&255,l[c++]=255&C;var v=m/4294967296*1e4&268435455;l[c++]=v>>>8&255,l[c++]=255&v,l[c++]=v>>>24&15|16,l[c++]=v>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var w=0;w<6;++w)l[c+w]=d[w];return n||a(l)}},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)}},227:(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(447)(n);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},447:(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.substr(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(824),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}},824: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?u(e,r,i,"day"):r>=o?u(e,r,o,"hour"):r>=t?u(e,r,t,"minute"):r>=n?u(e,r,n,"second"):e+" ms"}function u(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))}}},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,{ChannelType:()=>h,ChildAppWindow:()=>an,DialogDimension:()=>s,ErrorCode:()=>v,FileOpenPreference:()=>C,FrameContexts:()=>i,HostClientType:()=>e,HostName:()=>n,NotificationTypes:()=>ze,ParentAppWindow:()=>sn,TaskModuleDimension:()=>w,TeamType:()=>r,UserSettingTypes:()=>Ge,UserTeamRole:()=>a,ViewerActionTypes:()=>je,app:()=>q,appEntity:()=>dt,appInitialization:()=>Mn,appInstallDialog:()=>Ze,authentication:()=>y,calendar:()=>Pn,call:()=>kn,chat:()=>tn,conversations:()=>qe,dialog:()=>on,enablePrintCapability:()=>Ln,executeDeepLink:()=>Xn,files:()=>at,getContext:()=>Wn,getMruTabInstances:()=>Kn,getTabInstances:()=>Jn,initialize:()=>Dn,initializeWithFrameContext:()=>Yn,legacy:()=>st,location:()=>Sn,logs:()=>Be,mail:()=>In,media:()=>yn,meeting:()=>Tn,meetingRoom:()=>ut,menus:()=>j,monetization:()=>bn,navigateBack:()=>it,navigateCrossDomain:()=>ot,navigateToTab:()=>tt,notifications:()=>ct,pages:()=>Z,people:()=>En,print:()=>Un,registerAppButtonClickHandler:()=>_n,registerAppButtonHoverEnterHandler:()=>Vn,registerAppButtonHoverLeaveHandler:()=>Bn,registerBackButtonHandler:()=>zn,registerBeforeUnloadHandler:()=>Gn,registerCustomHandler:()=>B,registerEnterSettingsHandler:()=>Zn,registerFocusEnterHandler:()=>qn,registerFullScreenHandler:()=>xn,registerOnLoadHandler:()=>jn,registerOnThemeChangeHandler:()=>Hn,registerUserSettingsChangeHandler:()=>z,remoteCamera:()=>lt,returnFocus:()=>nt,sendCustomEvent:()=>V,sendCustomMessage:()=>_,setFrameContext:()=>$n,settings:()=>An,shareDeepLink:()=>Qn,sharing:()=>On,stageView:()=>Rn,tasks:()=>rt,teams:()=>ft,teamsCore:()=>G,uploadCustomApp:()=>x,video:()=>Fn});var e,n,i,r,a,s,u="2.0.0-beta.4-dev.27",c="2.0.1",l="2.0.3",d="1.9.0",f="1.8.0",p=["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","*.teams.microsoft.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.office.com"],m=/^https:\/\//,g=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}();!function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(e||(e={})),function(e){e.office="Office",e.outlook="Outlook",e.orange="Orange",e.teams="Teams"}(n||(n={})),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"}(i||(i={})),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"}(r||(r={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(a||(a={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(s||(s={}));var h,C,v,w=s;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(h||(h={})),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(C||(C={})),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"}(v||(v={}));var y,S=t(22);function T(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 b(e){if("https:"!==e.protocol)return!1;var n=e.host;if(p.some((function(e){return T(e,n)})))return!0;for(var t=0,o=g.additionalValidOrigins;t<o.length;t++){var i=o[t];if(T("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function P(e){return function(n,t){if(!n)throw new Error(e||t)}}function I(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 E(){return S.v4()}function F(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&F(e[n])})),Object.freeze(e)}function O(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 R(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(void 0,!0)})).catch((function(e){n&&n(e,!1)})),i}function k(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 M(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 A(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 N(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 D(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!g.initializeCalled)throw new Error("The library has not yet been initialized");if(g.frameContext&&e&&e.length>0){for(var t=!1,o=0;o<e.length;o++)if(e[o]===g.frameContext){t=!0;break}if(!t)throw new Error("This call is only allowed in following contexts: "+JSON.stringify(e)+'. Current context: "'+g.frameContext+'".')}}function L(e){void 0===e&&(e=c);var n=I(g.clientSupportedSDKVersion,e);return!isNaN(n)&&n>=0}function U(){return g.hostClientType==e.android||g.hostClientType==e.ios}function W(e){if(void 0===e&&(e=c),!U())throw{errorCode:v.NOT_SUPPORTED_ON_PLATFORM};if(!L(e))throw{errorCode:v.OLD_PLATFORM}}function H(e){var n=g.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&m.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),g.additionalValidOrigins=n}function x(e,n){D(),ke("uploadCustomApp",[e],n||P())}function _(e,n,t){D(),ke(e,n,t)}function V(e,n){if(D(),!ye.childWindow)throw new Error("The child window has not yet been initialized or is not present");$e(e,n)}function B(e,n){var t=this;D(),le(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function z(e,n){D(),le("userSettingsChange",n,!0,[e])}!function(n){var t,o,r;function a(n){return new Promise((function(o,i){if(g.hostClientType===e.desktop||g.hostClientType===e.android||g.hostClientType===e.ios||g.hostClientType===e.rigel||g.hostClientType===e.teamsRoomsWindows||g.hostClientType===e.teamsRoomsAndroid||g.hostClientType===e.teamsPhones||g.hostClientType===e.teamsDisplays){var r=document.createElement("a");r.href=n.url,o(Oe("authentication.authenticate",[r.href,n.width,n.height,n.isExternal]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else t={success:o,fail:i},l(n)}))}function s(e){return new Promise((function(n){n(Oe("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 u(){return new Promise((function(e){e(Oe("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function c(){d();try{ye.childWindow&&ye.childWindow.close()}finally{ye.childWindow=null,ye.childOrigin=null}}function l(e){c();var n=e.width||600,t=e.height||400;n=Math.min(n,ye.currentWindow.outerWidth-400),t=Math.min(t,ye.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url.replace("{oauthRedirectMethod}","web");var i=void 0!==ye.currentWindow.screenLeft?ye.currentWindow.screenLeft:ye.currentWindow.screenX,r=void 0!==ye.currentWindow.screenTop?ye.currentWindow.screenTop:ye.currentWindow.screenY;i+=ye.currentWindow.outerWidth/2-n/2,r+=ye.currentWindow.outerHeight/2-t/2,ye.childWindow=ye.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),ye.childWindow?f():m("FailedToOpenWindow")}function d(){o&&(clearInterval(o),o=0),de("initialize"),de("navigateCrossDomain")}function f(){d(),o=ye.currentWindow.setInterval((function(){if(!ye.childWindow||ye.childWindow.closed)m("CancelledByUser");else{var e=ye.childOrigin;try{ye.childOrigin="*",$e("ping")}finally{ye.childOrigin=e}}}),100),le("initialize",(function(){return[i.authentication,g.hostClientType]})),le("navigateCrossDomain",(function(){return!1}))}function p(e){try{t&&t.success(e)}finally{t=null,c()}}function m(e){try{t&&t.fail(new Error(e))}finally{t=null,c()}}function h(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=C(o.href,"result",t)),ye.currentWindow.location.assign(C(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=C(o.href,"reason",t)),ye.currentWindow.location.assign(C(o.href,"authFailure",""))))}}function C(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}n.initialize=function(){le("authentication.authenticate.success",p,!1),le("authentication.authenticate.failure",m,!1)},n.registerAuthenticationHandlers=function(e){r=e},n.authenticate=function(e){var n=void 0!==e,t=n?e:r;if(!t)throw new Error("No parameters are provided for authentication");return D(i.content,i.sidePanel,i.settings,i.remove,i.task,i.stage,i.meetingStage),a(t).then((function(e){try{return t&&t.successCallback?(t.successCallback(e),""):e}finally{n||(r=null)}})).catch((function(e){try{if(t&&t.failureCallback)return t.failureCallback(e.message),"";throw e}finally{n||(r=null)}}))},n.getAuthToken=function(e){return D(),s(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}))},n.getUser=function(e){return D(),u().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}))},n.notifySuccess=function(e,n){h(n,"result",e),D(i.authentication),ke("authentication.authenticate.success",[e]),Qe(ye.parentWindow,(function(){return setTimeout((function(){return ye.currentWindow.close()}),200)}))},n.notifyFailure=function(e,n){h(n,"reason",e),D(i.authentication),ke("authentication.authenticate.failure",[e]),Qe(ye.parentWindow,(function(){return setTimeout((function(){return ye.currentWindow.close()}),200)}))}}(y||(y={}));var j,G,q,Z,J=function(){return J=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},J.apply(this,arguments)},K={apiVersion:1,supports:{appInstallDialog:void 0,calendar:void 0,call:void 0,chat:void 0,conversations:void 0,dialog:{bot:void 0,update:void 0},location:void 0,logs:void 0,mail:void 0,media:void 0,meeting:void 0,meetingRoom:void 0,menus:void 0,monetization:void 0,notifications:void 0,pages:{appButton:void 0,tabs:void 0,config:void 0,backStack:void 0,fullTrust:void 0},people:void 0,remoteCamera:void 0,sharing:void 0,teams:{fullTrust:{joinedTeams:void 0}},teamsCore:void 0,video:void 0}},Q={appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{bot:{},update:{}},files:{},logs:{},media:{},meeting:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},sharing:{},teams:{fullTrust:{}},teamsCore:{},video:{}},X=[e.desktop,e.web,e.android,e.ios,e.rigel,e.surfaceHub,e.teamsRoomsWindows,e.teamsRoomsAndroid,e.teamsPhones,e.teamsDisplays],$={"1.9.0":[{capability:{location:{}},hostClientTypes:X}],"2.0.0":[{capability:{people:{}},hostClientTypes:X}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[e.android,e.teamsRoomsAndroid,e.teamsPhones,e.teamsDisplays]}]};function Y(e){var n=J({},Q);return Object.keys($).forEach((function(t){I(e,t)>=0&&$[t].forEach((function(e){e.hostClientTypes.includes(g.hostClientType)&&(n=J(J({},n),e.capability))}))})),{apiVersion:1,isLegacyTeams:!0,supports:n}}function ee(e){K=F(e)}function ne(t){return{app:{locale:t.locale,sessionId:t.appSessionId?t.appSessionId:"",theme:t.theme?t.theme:"default",iconPositionVertical:t.appIconPosition,osLocaleInfo:t.osLocaleInfo,parentMessageId:t.parentMessageId,userClickTime:t.userClickTime,userFileOpenPreference:t.userFileOpenPreference,host:{name:t.hostName?t.hostName:n.teams,clientType:t.hostClientType?t.hostClientType:e.web,sessionId:t.sessionId?t.sessionId:"",ringId:t.ringId},appLaunchId:t.appLaunchId},page:{id:t.entityId,frameContext:t.frameContext?t.frameContext:g.frameContext,subPageId:t.subEntityId,isFullScreen:t.isFullScreen,isMultiWindow:t.isMultiWindow,sourceOrigin:t.sourceOrigin},user:{id:t.userObjectId,displayName:t.userDisplayName,isCallingAllowed:t.isCallingAllowed,isPSTNCallingAllowed:t.isPSTNCallingAllowed,licenseType:t.userLicenseType,loginHint:t.loginHint,userPrincipalName:t.userPrincipalName,tenant:t.tid?{id:t.tid,teamsSku:t.tenantSKU}:void 0},channel:t.channelId?{id:t.channelId,displayName:t.channelName,relativeUrl:t.channelRelativeUrl,membershipType:t.channelType,defaultOneNoteSectionId:t.defaultOneNoteSectionId,ownerGroupId:t.hostTeamGroupId,ownerTenantId:t.hostTeamTenantId}:void 0,chat:t.chatId?{id:t.chatId}:void 0,meeting:t.meetingId?{id:t.meetingId}:void 0,sharepoint:t.sharepoint,team:t.teamId?{internalId:t.teamId,displayName:t.teamName,type:t.teamType,groupId:t.groupId,templateId:t.teamTemplateId,isArchived:t.isTeamArchived,userRole:t.userTeamRole}:void 0,sharePointSite:t.teamSiteUrl||t.teamSiteDomain||t.teamSitePath||t.mySitePath||t.mySiteDomain?{teamSiteUrl:t.teamSiteUrl,teamSiteDomain:t.teamSiteDomain,teamSitePath:t.teamSitePath,teamSiteId:t.teamSiteId,mySitePath:t.mySitePath,mySiteDomain:t.mySiteDomain}:void 0}}!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)||(D(),ke("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(D(),ke("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(D(),ke("handleActionMenuItemPress",[e]))}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){le("navBarMenuItemPress",a,!1),le("actionMenuItemPress",s,!1),le("setModuleView",r,!1)},e.setUpViews=function(e,n){D(),o=n,ke("setUpViews",[e])},e.setNavBarMenu=function(e,t){D(),n=t,ke("setNavBarMenu",[e])},e.showActionMenu=function(e,n){D(),t=n,ke("showActionMenu",[e])},e.isSupported=function(){return!!K.supports.menus}}(j||(j={})),function(e){function n(){window.print()}e.enablePrintCapability=function(){g.printCapabilityEnabled||(g.printCapabilityEnabled=!0,D(),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){D(),me(e)},e.registerBeforeUnloadHandler=function(e){D(),he(e)},e.isSupported=function(){return!!K.supports.teamsCore}}(G||(G={})),function(e){e.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(e.FailedReason||(e.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(e.ExpectedFailureReason||(e.ExpectedFailureReason={})),e.isInitialized=function(){return g.initializeCalled},e.getFrameContext=function(){return g.frameContext};function n(e){return new Promise((function(n){g.initializeCalled||(g.initializeCalled=!0,se(),g.initializePromise=Te(e).then((function(e){var n=e.context,t=e.clientType,o=e.runtimeConfig,i=e.clientSupportedSDKVersion,r=void 0===i?c:i;g.frameContext=n,g.hostClientType=t,g.clientSupportedSDKVersion=r;try{if(!(a=JSON.parse(o))||!a.apiVersion)throw new Error("Received runtime config is invalid");o&&ee(a)}catch(e){if(!(e instanceof SyntaxError))throw e;try{isNaN(I(o,c))||(g.clientSupportedSDKVersion=o);var a=JSON.parse(r);r&&ee(a)}catch(e){if(!(e instanceof SyntaxError))throw e;ee(Y(g.clientSupportedSDKVersion))}}g.initializeCompleted=!0})),y.initialize(),j.initialize(),Z.config.initialize()),Array.isArray(e)&&H(e),n(g.initializePromise)}))}function t(e){D(),fe(e)}e.initialize=function(e){return A((function(){return n(e)}),5e3,new Error("SDK initialization timed out."))},e._initialize=function(e){ye.currentWindow=e},e._uninitialize=function(){g.initializeCalled&&(g.frameContext&&(t(null),Z.backStack.registerBackButtonHandler(null),Z.registerFullScreenHandler(null),G.registerBeforeUnloadHandler(null),G.registerOnLoadHandler(null),Be.registerGetLogHandler(null)),g.frameContext===i.settings&&Z.config.registerOnSaveHandler(null),g.frameContext===i.remove&&Z.config.registerOnRemoveHandler(null),g.initializeCalled=!1,g.initializeCompleted=!1,g.initializePromise=null,g.additionalValidOrigins=[],g.frameContext=null,g.hostClientType=null,g.isFramelessWindow=!1,be())},e.getContext=function(){return new Promise((function(e){D(),e(Pe("getContext"))})).then((function(e){return ne(e)}))},e.notifyAppLoaded=function(){D(),ke(e.Messages.AppLoaded,[u])},e.notifySuccess=function(){D(),ke(e.Messages.Success,[u])},e.notifyFailure=function(n){D(),ke(e.Messages.Failure,[n.reason,n.message])},e.notifyExpectedFailure=function(n){D(),ke(e.Messages.ExpectedFailure,[n.reason,n.message])},e.registerOnThemeChangeHandler=t,e.openLink=function(e){return new Promise((function(n){D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),n(Ie("executeDeepLink",e))}))}}(q||(q={})),function(e){function n(e){D(i.content),ke("setFrameContext",[e])}e.returnFocus=function(e){D(i.content),ke("returnFocus",[e])},e.registerFocusEnterHandler=function(e){D(),le("focusEnter",e)},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){q.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){D(i.content,i.settings,i.remove,i.sidePanel),e(Pe("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){D(i.content,i.sidePanel,i.settings,i.remove,i.task,i.stage,i.meetingStage);n(Ee("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){D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),K.isLegacyTeams?n(Ie("executeDeepLink",N(e))):n(Ie("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){D(i.content,i.sidePanel,i.meetingStage),ke("shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},e.registerFullScreenHandler=function(e){D(),le("fullScreenChange",e)},e.isSupported=function(){return!!K.supports.pages},function(e){e.navigateToTab=function(e){return new Promise((function(n){D();n(Ee("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){D(),n(Pe("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){D(),n(Pe("getMruTabInstances",e))}))},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.tabs}}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e){var t=new r(e);n?n(t):t.notifySuccess()}e.initialize=function(){le("settings.save",o,!1),le("settings.remove",a,!1)},e.setValidityState=function(e){D(i.settings,i.remove),ke("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){D(i.content,i.settings,i.sidePanel),n(Ie("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){D(i.settings),n=e,e&&ke("registerHandler",["save"])},e.registerOnRemoveHandler=function(e){D(i.remove,i.settings),t=e,e&&ke("registerHandler",["remove"])},e.registerChangeConfigHandler=function(e){D(i.content),le("changeSettings",e)};var r=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),ke("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),ke("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 a(){var e=new s;t?t(e):e.notifySuccess()}var s=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),ke("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),ke("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}();e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.config}}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){D();e(Ee("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(){n&&n()||t()}e._initialize=function(){le("backButtonPress",o,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){n=e,e&&ke("registerHandler",["backButton"])},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.backStack}}(e.backStack||(e.backStack={})),function(e){e.enterFullscreen=function(){D(i.content),ke("enterFullscreen",[])},e.exitFullscreen=function(){D(i.content),ke("exitFullscreen",[])},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.fullTrust}}(e.fullTrust||(e.fullTrust={})),function(e){e.onClick=function(e){D(i.content),le("appButtonClick",e)},e.onHoverEnter=function(e){D(i.content),le("appButtonHoverEnter",e)},e.onHoverLeave=function(e){D(i.content),le("appButtonHoverLeave",e)},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.appButton}}(e.appButton||(e.appButton={}))}(Z||(Z={}));var te=(0,t(227).debug)("teamsJs");function oe(e){return te.extend(e)}var ie=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))},re=oe("handlers"),ae=function(){function e(){}return e.handlers={},e}();function se(){ae.handlers.themeChange=pe,ae.handlers.load=ge,ae.handlers.beforeUnload=Ce,Z.backStack._initialize()}var ue=re.extend("callHandler");function ce(e,n){var t=ae.handlers[e];return t?(ue("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):(ue("Handler for action message %s not found.",e),[!1,void 0])}function le(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(ae.handlers[e]=n,t&&ke("registerHandler",ie([e],o,!0))):delete ae.handlers[e]}function de(e){delete ae.handlers[e]}function fe(e){ae.themeChangeHandler=e,e&&ke("registerHandler",["themeChange"])}function pe(e){ae.themeChangeHandler&&ae.themeChangeHandler(e),ye.childWindow&&$e("themeChange",[e])}function me(e){ae.loadHandler=e,e&&ke("registerHandler",["load"])}function ge(e){ae.loadHandler&&ae.loadHandler(e),ye.childWindow&&$e("load",[e])}function he(e){ae.beforeUnloadHandler=e,e&&ke("registerHandler",["beforeUnload"])}function Ce(){var e=function(){ke("readyToUnload",[])};ae.beforeUnloadHandler&&ae.beforeUnloadHandler(e)||e()}var ve=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))},we=oe("communication"),ye=function(){return function(){}}(),Se=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Te(e){if(Se.messageListener=function(e){return Ne(e)},ye.currentWindow=ye.currentWindow||window,ye.parentWindow=ye.currentWindow.parent!==ye.currentWindow.self?ye.currentWindow.parent:ye.currentWindow.opener,(ye.parentWindow||e)&&ye.currentWindow.addEventListener("message",Se.messageListener,!1),!ye.parentWindow){var n=ye.currentWindow;if(!n.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));g.isFramelessWindow=!0,n.onNativeMessage=We}try{return ye.parentOrigin="*",Oe("initialize",[u]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{ye.parentOrigin=null}}function be(){ye.currentWindow.removeEventListener("message",Se.messageListener,!1),ye.parentWindow=null,ye.parentOrigin=null,ye.childWindow=null,ye.childOrigin=null,Se.parentMessageQueue=[],Se.childMessageQueue=[],Se.nextMessageId=0,Se.callbacks={}}function Pe(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Oe(e,n).then((function(e){return e[0]}))}function Ie(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Oe(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function Ee(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Oe(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function Fe(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Oe(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Oe(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(Re(Ae(e,n).id))}))}function Re(e){return new Promise((function(n){Se.promiseCallbacks[e]=n}))}function ke(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=Ae(e,o);t&&(Se.callbacks[i.id]=t)}var Me=we.extend("sendMessageToParentHelper");function Ae(e,n){var t=Me,o=ye.parentWindow,i=Ye(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),g.isFramelessWindow)ye.currentWindow&&ye.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),ye.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=Ve(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),_e(o).push(i))}return i}function Ne(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;De(n,t)&&(Le(n,t),n===ye.parentWindow?We(e):n===ye.childWindow&&xe(e))}}function De(e,n){return(!ye.currentWindow||e!==ye.currentWindow)&&(!!(ye.currentWindow&&ye.currentWindow.location&&n&&n===ye.currentWindow.location.origin)||b(new URL(n)))}function Le(e,n){g.isFramelessWindow||ye.parentWindow&&!ye.parentWindow.closed&&e!==ye.parentWindow?ye.childWindow&&!ye.childWindow.closed&&e!==ye.childWindow||(ye.childWindow=e,ye.childOrigin=n):(ye.parentWindow=e,ye.parentOrigin=n),ye.parentWindow&&ye.parentWindow.closed&&(ye.parentWindow=null,ye.parentOrigin=null),ye.childWindow&&ye.childWindow.closed&&(ye.childWindow=null,ye.childOrigin=null),Ke(ye.parentWindow),Ke(ye.childWindow)}var Ue=we.extend("handleParentMessage");function We(e){var n=Ue;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=Se.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,ve(ve([],t.args,!0),[t.isPartialResponse],!1)),He(e)||(n("Removing registered callback for message %i",t.id),delete Se.callbacks[t.id]));var i=Se.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 Se.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),ce(t.func,t.args)}else n("Received an unknown message: %O",e)}function He(e){return!0===e.data.isPartialResponse}function xe(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=ce(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?Xe(n.id,Array.isArray(i)?i:[i]):ke(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(ye.childWindow){var o=e.pop();Xe(n.id,e,o)}}))}}function _e(e){return e===ye.parentWindow?Se.parentMessageQueue:e===ye.childWindow?Se.childMessageQueue:[]}function Ve(e){return e===ye.parentWindow?ye.parentOrigin:e===ye.childWindow?ye.childOrigin:null}var Be,ze,je,Ge,qe,Ze,Je=we.extend("flushMessageQueue");function Ke(e){for(var n=Ve(e),t=_e(e),o=e==ye.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();Je("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function Qe(e,n){var t=ye.currentWindow.setInterval((function(){0===_e(e).length&&(clearInterval(t),n())}),100)}function Xe(e,n,t){var o=ye.childWindow,i=en(e,n,t),r=Ve(o);o&&r&&o.postMessage(i,r)}function $e(e,n){var t=ye.childWindow,o=nn(e,n),i=Ve(t);t&&i?t.postMessage(o,i):_e(t).push(o)}function Ye(e,n){return{id:Se.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function en(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function nn(e,n){return{func:e,args:n||[]}}!function(e){e.registerGetLogHandler=function(e){D(),e?le("log.request",(function(){ke("log.receive",[e()])})):de("log.request")},e.isSupported=function(){return!!K.supports.logs}}(Be||(Be={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(ze||(ze={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(je||(je={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Ge||(Ge={})),function(e){e.openConversation=function(e){return new Promise((function(n){D(i.content);var t=Ie("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&le("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&le("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),n(t)}))},e.closeConversation=function(){D(i.content),ke("conversations.closeConversation"),de("startConversation"),de("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){D(),e(Pe("getChatMembers"))}))},e.isSupported=function(){return!!K.supports.conversations}}(qe||(qe={})),function(e){function n(){return!!K.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),!n())throw new Error("Not supported");ke("appInstallDialog.openAppInstallDialog",[e]),t()}))},e.isSupported=n}(Ze||(Ze={}));var tn,on;function rn(e,n,t){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");return"https://teams.microsoft.com/l/chat/0/0?"+("users="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&topic="+encodeURIComponent(n))+(void 0===t?"":"&message="+encodeURIComponent(t))}!function(e){function n(e){return new Promise((function(n){(D(i.content),K.isLegacyTeams)?n(Ie("executeDeepLink",rn([e.user],void 0,e.message))):n(Ie("chat.openChat",{members:e.user,message:e.message}))}))}e.openChat=n,e.openGroupChat=function(e){return new Promise((function(t){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");1===e.users.length?n({user:e.users[0],message:e.message}):(D(i.content),K.isLegacyTeams?t(Ie("executeDeepLink",rn(e.users,e.topic,e.message))):t(Ie("chat.openChat",{members:e.users,message:e.message,topic:e.topic})))}))},e.isSupported=function(){return!!K.supports.chat}}(tn||(tn={})),function(e){e.open=function(e,n,t){return D(i.content,i.sidePanel,i.meetingStage),t&&le("messageForParent",t),ke("tasks.startTask",[e],(function(e,t){n({err:e,result:t}),de("messageForParent")})),function(e){ke("messageForChild",[e])}},e.submit=function(e,n){D(i.content,i.sidePanel,i.task,i.meetingStage),ke("tasks.completeTask",[e,Array.isArray(n)?n:[n]])},e.sendMessageToParentFromDialog=function(e){D(i.task),ke("messageForParent",[e])},e.registerOnMessageFromParent=function(e){D(i.task),le("messageForChild",e)},e.isSupported=function(){return!!K.supports.dialog},function(e){e.resize=function(e){D(i.content,i.sidePanel,i.task,i.meetingStage),ke("tasks.updateTask",[e])},e.isSupported=function(){return!!K.supports.dialog&&!!K.supports.dialog.update}}(e.update||(e.update={})),function(e){e.open=function(e,n,t){return D(i.content,i.sidePanel,i.meetingStage),t&&le("messageForParent",t),ke("tasks.startTask",[e],(function(e,t){n({err:e,result:t}),de("messageForParent")})),function(e){ke("messageForChild",[e])}},e.isSupported=function(){return!!K.supports.dialog&&!!K.supports.dialog.bot}}(e.bot||(e.bot={}))}(on||(on={}));var an=function(){function e(){}return e.prototype.postMessage=function(e,n){D(),ke("messageForChild",[e],n||P())},e.prototype.addEventListener=function(e,n){D(),"message"===e&&le("messageForParent",n)},e}(),sn=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){D(i.task),ke("messageForParent",[e],n||P())},e.prototype.addEventListener=function(e,n){D(i.task),"message"===e&&le("messageForChild",n)},e}();function un(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 cn(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 ln(e){mn(e)?W("2.0.2"):gn(e)?W(l):pn(e)&&W("2.0.4")}function dn(e){return!(e.mediaType!=yn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function fn(e){return!(null==e||e.maxMediaCount>10)}function pn(e){var n;return!((null==e?void 0:e.mediaType)!=yn.MediaType.Image||!(null===(n=null==e?void 0:e.imageProps)||void 0===n?void 0:n.imageOutputFormats))}function mn(e){return!(!e||e.mediaType!=yn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function gn(e){return!(!e||e.mediaType!=yn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function hn(e,n,t){return null!=e&&null!=n&&n==yn.FileFormat.ID&&null!=t}function Cn(e){return!(null==e||e.length<=0||e.length>10)}function vn(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function wn(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}var yn,Sn,Tn,bn,Pn,In,En,Fn,On,Rn,kn,Mn,An,Nn=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 Dn(e,n){q.initialize(n).then((function(){e&&e()}))}function Ln(){G.enablePrintCapability()}function Un(){G.print()}function Wn(e){D(),q.getContext().then((function(n){e&&e(et(n))}))}function Hn(e){q.registerOnThemeChangeHandler(e)}function xn(e){Z.registerFullScreenHandler(e)}function _n(e){Z.appButton.onClick(e)}function Vn(e){Z.appButton.onHoverEnter(e)}function Bn(e){Z.appButton.onHoverLeave(e)}function zn(e){Z.backStack.registerBackButtonHandler(e)}function jn(e){G.registerOnLoadHandler(e)}function Gn(e){G.registerBeforeUnloadHandler(e)}function qn(e){Z.registerFocusEnterHandler(e)}function Zn(e){Z.config.registerChangeConfigHandler(e)}function Jn(e,n){D(),Z.tabs.getTabInstances(n).then((function(n){e(n)}))}function Kn(e,n){D(),Z.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function Qn(e){Z.shareDeepLink(e)}function Xn(e,n){D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),n=n||P(),q.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function $n(e){Z.setCurrentFrame(e)}function Yn(e,n,t){Z.initializeWithFrameContext(e,n,t)}function et(e){return{locale:e.app.locale,appSessionId:e.app.sessionId,theme:e.app.theme,appIconPosition:e.app.iconPositionVertical,osLocaleInfo:e.app.osLocaleInfo,parentMessageId:e.app.parentMessageId,userClickTime:e.app.userClickTime,userFileOpenPreference:e.app.userFileOpenPreference,appLaunchId:e.app.appLaunchId,hostClientType:e.app.host.clientType,sessionId:e.app.host.sessionId,ringId:e.app.host.ringId,entityId:e.page.id,frameContext:e.page.frameContext,subEntityId:e.page.subPageId,isFullScreen:e.page.isFullScreen,isMultiWindow:e.page.isMultiWindow,sourceOrigin:e.page.sourceOrigin,userObjectId:void 0!==e.user?e.user.id:void 0,isCallingAllowed:void 0!==e.user?e.user.isCallingAllowed:void 0,isPSTNCallingAllowed:void 0!==e.user?e.user.isPSTNCallingAllowed:void 0,userLicenseType:void 0!==e.user?e.user.licenseType:void 0,loginHint:void 0!==e.user?e.user.loginHint:void 0,userPrincipalName:void 0!==e.user?e.user.userPrincipalName:void 0,tid:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.id:void 0,tenantSKU:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.teamsSku:void 0,channelId:void 0!==e.channel?e.channel.id:void 0,channelName:void 0!==e.channel?e.channel.displayName:void 0,channelRelativeUrl:void 0!==e.channel?e.channel.relativeUrl:void 0,channelType:void 0!==e.channel?e.channel.membershipType:void 0,defaultOneNoteSectionId:void 0!==e.channel?e.channel.defaultOneNoteSectionId:void 0,hostTeamGroupId:void 0!==e.channel?e.channel.ownerGroupId:void 0,hostTeamTenantId:void 0!==e.channel?e.channel.ownerTenantId:void 0,chatId:void 0!==e.chat?e.chat.id:void 0,meetingId:void 0!==e.meeting?e.meeting.id:void 0,sharepoint:e.sharepoint,teamId:void 0!==e.team?e.team.internalId:void 0,teamName:void 0!==e.team?e.team.displayName:void 0,teamType:void 0!==e.team?e.team.type:void 0,groupId:void 0!==e.team?e.team.groupId:void 0,teamTemplateId:void 0!==e.team?e.team.templateId:void 0,isTeamArchived:void 0!==e.team?e.team.isArchived:void 0,userTeamRole:void 0!==e.team?e.team.userRole:void 0,teamSiteUrl:void 0!==e.sharePointSite?e.sharePointSite.teamSiteUrl:void 0,teamSiteDomain:void 0!==e.sharePointSite?e.sharePointSite.teamSiteDomain:void 0,teamSitePath:void 0!==e.sharePointSite?e.sharePointSite.teamSitePath:void 0,teamSiteId:void 0!==e.sharePointSite?e.sharePointSite.teamSiteId:void 0,mySitePath:void 0!==e.sharePointSite?e.sharePointSite.mySitePath:void 0,mySiteDomain:void 0!==e.sharePointSite?e.sharePointSite.mySiteDomain:void 0}}function nt(e){Z.returnFocus(e)}function tt(e,n){D(),n=n||P(),Z.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function ot(e,n){D(i.content,i.sidePanel,i.settings,i.remove,i.task,i.stage,i.meetingStage),n=n||P(),Z.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function it(e){D(),e=e||P(),Z.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(n){!function(e){e.Base64="base64",e.ID="id"}(n.FileFormat||(n.FileFormat={}));var t=function(){return function(){}}();n.File=t,n.captureImage=function(e){return D(i.content,i.task),O((function(){return new Promise((function(e){if(!g.isFramelessWindow)throw{errorCode:v.NOT_SUPPORTED_ON_PLATFORM};if(!L("1.7.0"))throw{errorCode:v.OLD_PLATFORM};e(Fe("captureImage"))}))}),e)};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 Nn(n,e),n.prototype.getMedia=function(e){var n=this;D(i.content,i.task);return O((function(){return new Promise((function(e){if(!L(f))throw{errorCode:v.OLD_PLATFORM};if(!hn(n.mimeType,n.format,n.content))throw{errorCode:v.INVALID_ARGUMENTS};L("2.0.0")?e(n.getMediaViaCallback()):e(n.getMediaViaHandler())}))}),e)},n.prototype.getMediaViaCallback=function(){var e=this;return new Promise((function(n,t){var o={mediaMimeType:e.mimeType,assembleAttachment:[]};ke("getMedia",[e.content],(function(e){if(e&&e.error)t(e.error);else if(e&&e.mediaChunk)if(e.mediaChunk.chunkSequence<=0){var i=un(o.assembleAttachment,o.mediaMimeType);n(i)}else{var r=cn(e.mediaChunk,o.mediaMimeType);o.assembleAttachment.push(r)}else t({errorCode:v.INTERNAL_ERROR,message:"data received is null"})}))}))},n.prototype.getMediaViaHandler=function(){var e=this;return new Promise((function(n,t){var o=E(),i={mediaMimeType:e.mimeType,assembleAttachment:[]},r=[o,e.content];e.content&&ke("getMedia",r),le("getMedia"+o,(function(e){try{var r=JSON.parse(e);if(r.error)t(r.error),de("getMedia"+o);else if(r&&r.mediaChunk)if(r.mediaChunk.chunkSequence<=0){var a=un(i.assembleAttachment,i.mediaMimeType);n(a),de("getMedia"+o)}else{var s=cn(r.mediaChunk,i.mediaMimeType);i.assembleAttachment.push(s)}else t({errorCode:v.INTERNAL_ERROR,message:"data received is null"}),de("getMedia"+o)}catch(n){t({errorCode:v.INTERNAL_ERROR,message:"Error parsing the response: "+e})}}))}))},n}(t);n.Media=o;var r,a,s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Nn(n,e),n.prototype.getMediaType=function(){return a.Video},n.prototype.notifyEventToApp=function(e){switch(e){case r.StartRecording:this.controllerCallback.onRecordingStarted();break;case r.StopRecording:this.controllerCallback.onRecordingStopped&&this.controllerCallback.onRecordingStopped()}},n}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,n){D(i.content,i.task);try{W(l)}catch(e){return k((function(){return Promise.reject(e)}),n)}var t={mediaType:this.getMediaType(),mediaControllerEvent:e};return k((function(){return new Promise((function(e){return e(Fe("media.controller",[t]))}))}),n)},e.prototype.stop=function(e){return Promise.resolve(this.notifyEventToHost(r.StopRecording,e))},e}());n.VideoController=s,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(r=n.MediaControllerEvent||(n.MediaControllerEvent={})),function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(n.CameraStartMode||(n.CameraStartMode={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(n.Source||(n.Source={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(a=n.MediaType||(n.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(n.ImageUriType||(n.ImageUriType={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(n.ImageOutputFormats||(n.ImageOutputFormats={})),n.selectMedia=function(e,n){return D(i.content,i.task),O((function(){return new Promise((function(n){if(!L(f))throw{errorCode:v.OLD_PLATFORM};if(ln(e),!fn(e))throw{errorCode:v.INVALID_ARGUMENTS};n(Oe("selectMedia",[e]))})).then((function(n){var t=n[0],i=n[1],r=n[2];if(r)return dn(e)&&e.videoProps.videoController.notifyEventToApp(r),[];if(!i)throw t;for(var a=[],s=0,u=i;s<u.length;s++){var c=u[s];a.push(new o(c))}return a}))}),n)},n.viewImages=function(e,n){return D(i.content,i.task),k((function(){return new Promise((function(n){if(!L(f))throw{errorCode:v.OLD_PLATFORM};if(!Cn(e))throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("viewImages",e))}))}),n)},n.scanBarCode=function(n,t){var o,r;return void 0===n?r=t:"object"==typeof n?r=n:(o=n,r=t),D(i.content,i.task),O((function(){return new Promise((function(n){if(g.hostClientType===e.desktop||g.hostClientType===e.web||g.hostClientType===e.rigel||g.hostClientType===e.teamsRoomsWindows||g.hostClientType===e.teamsRoomsAndroid||g.hostClientType===e.teamsPhones||g.hostClientType===e.teamsDisplays)throw{errorCode:v.NOT_SUPPORTED_ON_PLATFORM};if(!L("1.9.0"))throw{errorCode:v.OLD_PLATFORM};if(!vn(r))throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("media.scanBarCode",r))}))}),o)},n.isSupported=function(){return!!K.supports.media}}(yn||(yn={})),function(e){function n(e){return new Promise((function(n){if(!L(d))throw{errorCode:v.OLD_PLATFORM};if(!e)throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("location.getLocation",e))}))}function t(e){return new Promise((function(n){if(!L(d))throw{errorCode:v.OLD_PLATFORM};if(!e)throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("location.showLocation",e))}))}e.getLocation=function(e,t){return D(i.content,i.task),O(n,t,e)},e.showLocation=function(e,n){return D(i.content,i.task),R(t,n,e)},e.showLocationHelper=t,e.isSupported=function(){return!!K.supports.location}}(Sn||(Sn={})),function(e){function n(){return new Promise((function(e){e(Fe("getIncomingClientAudioState"))}))}function t(){return new Promise((function(e){e(Fe("toggleIncomingClientAudio"))}))}function o(){return new Promise((function(e){e(Fe("meeting.getMeetingDetails"))}))}function r(){return new Promise((function(e){e(Fe("meeting.getAuthenticationTokenForAnonymousUser"))}))}function a(){return new Promise((function(e){e(Fe("meeting.getLiveStreamState"))}))}function s(e,n){return new Promise((function(t){t(Fe("meeting.requestStartLiveStreaming",e,n))}))}function u(){return new Promise((function(e){e(Fe("meeting.requestStopLiveStreaming"))}))}function c(e){return new Promise((function(n){n(Fe("meeting.shareAppContentToStage",e))}))}function l(){return new Promise((function(e){e(Fe("meeting.getAppContentStageSharingCapabilities"))}))}function d(){return new Promise((function(e){e(Fe("meeting.stopSharingAppContentToStage"))}))}function f(){return new Promise((function(e){e(Fe("meeting.getAppContentStageSharingState"))}))}!function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),e.getIncomingClientAudioState=function(e){return D(i.sidePanel,i.meetingStage),M(n,e)},e.toggleIncomingClientAudio=function(e){return D(i.sidePanel,i.meetingStage),M(t,e)},e.getMeetingDetails=function(e){return D(i.sidePanel,i.meetingStage,i.settings,i.content),M(o,e)},e.getAuthenticationTokenForAnonymousUser=function(e){return D(i.sidePanel,i.meetingStage),M(r,e)},e.isSupported=function(){return!!K.supports.meeting},e.getLiveStreamState=function(e){return D(),M(a,e)},e.requestStartLiveStreaming=function(e,n,t){var o,r,a,u,c;return D(i.sidePanel),"function"==typeof e?(c=(o=[e,n,t])[0],a=o[1],u=o[2]):"string"==typeof e&&(a=(r=[e,n])[0],u=r[1]),k(s,c,a,u)},e.requestStopLiveStreaming=function(e){return D(i.sidePanel),k(u,e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");D(i.sidePanel),le("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){var t,o,r;return D(i.sidePanel,i.meetingStage),"function"==typeof e?(r=(t=[e,n])[0],o=t[1]):o=e,M(c,r,o)},e.getAppContentStageSharingCapabilities=function(e){return D(i.sidePanel,i.meetingStage),M(l,e)},e.stopSharingAppContentToStage=function(e){return D(i.sidePanel,i.meetingStage),M(d,e)},e.getAppContentStageSharingState=function(e){return D(i.sidePanel,i.meetingStage),M(f,e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");D(i.sidePanel,i.meetingStage),le("meeting.speakingStateChanged",e)}}(Tn||(Tn={})),function(e){e.openPurchaseExperience=function(e,n){var t,o;return"function"==typeof e?(t=e,o=n):o=e,D(i.content),M((function(){return new Promise((function(e){e(Fe("monetization.openPurchaseExperience",o))}))}),t)},e.isSupported=function(){return!!K.supports.monetization}}(bn||(bn={})),function(e){function n(){return!!K.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");t(Ie("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");t(Ie("calendar.composeMeeting",e))}))},e.isSupported=n}(Pn||(Pn={})),function(e){function n(){return!!K.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");t(Ie("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");t(Ie("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(In||(In={})),function(e){function n(e){return new Promise((function(n){if(!L("2.0.0"))throw{errorCode:v.OLD_PLATFORM};if(!wn(e))throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("people.selectPeople",e))}))}e.selectPeople=function(e,t){var o,r,a;return D(i.content,i.task,i.settings),"function"==typeof e?(r=(o=[e,t])[0],a=o[1]):a=e,O(n,r,a)},e.isSupported=function(){return!!K.supports.people}}(En||(En={})),function(e){function n(){ke("video.videoFrameProcessed")}function t(e){ke("video.notifyError",[e])}!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,o){D(i.sidePanel),le("video.newVideoFrame",(function(o){void 0!==o&&e(o,n,t)})),ke("video.registerForVideoFrame",[o])},e.notifySelectedVideoEffectChanged=function(e,n){D(i.sidePanel),ke("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){D(i.sidePanel),le("video.effectParameterChange",e)},e.isSupported=function(){return!!K.supports.video}}(Fn||(Fn={})),function(e){function n(n){return new Promise((function(t){t(Fe(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:v.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:v.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:v.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function r(e){if("URL"!==e.content[0].type)throw{errorCode:v.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:v.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,a){try{t(e),o(e),r(e)}catch(e){return k((function(){return Promise.reject(e)}),a)}return D(i.content,i.sidePanel,i.task,i.stage,i.meetingStage),k(n,a,e)},e.isSupported=function(){return!!K.supports.sharing}}(On||(On={})),function(e){e.open=function(e,n){if(D(i.content),!e)throw new Error("[stageView.open] Stage view params cannot be null");return O((function(){return new Promise((function(n){return n(Fe("stageView.open",e))}))}),n)}}(Rn||(Rn={})),function(e){function n(){return!!K.supports.call}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");return ke("call.startCall",[e],t)}))},e.isSupported=n}(kn||(kn={})),function(e){e.Messages=q.Messages,e.FailedReason=q.FailedReason,e.ExpectedFailureReason=q.ExpectedFailureReason,e.notifyAppLoaded=function(){q.notifyAppLoaded()},e.notifySuccess=function(){q.notifySuccess()},e.notifyFailure=function(e){q.notifyFailure(e)},e.notifyExpectedFailure=function(e){q.notifyExpectedFailure(e)}}(Mn||(Mn={})),function(e){e.setValidityState=function(e){Z.config.setValidityState(e)},e.getSettings=function(e){D(i.content,i.settings,i.remove,i.sidePanel),Z.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){D(i.content,i.settings,i.sidePanel),n=n||P(),Z.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){Z.config.registerOnSaveHandler(e)},e.registerOnRemoveHandler=function(e){Z.config.registerOnRemoveHandler(e)}}(An||(An={}));var rt,at,st,ut,ct,lt,dt,ft,pt=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,width:e.width},title:e.title,fallbackUrl:e.fallbackUrl}}function t(e){return{url:e.url,size:{height:e.height,width:e.width},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function o(e){return e.height=e.height?e.height:w.Small,e.width=e.width?e.width:w.Small,e}e.startTask=function(e,r){return void 0!==(e=o(e)).card||void 0===e.url?(D(i.content,i.sidePanel,i.meetingStage),ke("tasks.startTask",[e],r)):void 0!==e.completionBotId?on.bot.open(t(e),(function(e){return r(e.err,e.result)})):on.open(n(e),(function(e){return r(e.err,e.result)})),new an},e.updateTask=function(e){(e=o(e)).width,e.height;var n=pt(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a TaskInfo argument containing only width and height");on.update.resize(e)},e.submitTask=function(e,n){on.submit(e,n)},e.getUrlDialogInfoFromTaskInfo=n,e.getBotUrlDialogInfoFromTaskInfo=t,e.getDefaultSizeIfNotProvided=o}(rt||(rt={})),function(e){!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={})),e.getCloudStorageFolders=function(e){return new Promise((function(n){if(D(i.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");n(Fe("files.getCloudStorageFolders",e))}))},e.addCloudStorageFolder=function(e){return new Promise((function(n){if(D(i.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");n(Oe("files.addCloudStorageFolder",[e]))})).then((function(e){var n=e[0],t=e[1],o=e[2];if(n)throw n;return[t,o]}))},e.deleteCloudStorageFolder=function(e,n){return new Promise((function(t){if(D(i.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");t(Fe("files.deleteCloudStorageFolder",e,n))}))},e.getCloudStorageFolderContents=function(e,n){return new Promise((function(t){if(D(i.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");t(Fe("files.getCloudStorageFolderContents",e,n))}))},e.openCloudStorageFile=function(e,n,t){if(D(i.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");ke("files.openCloudStorageFile",[e,n,t])},e.openFilePreview=function(e){D(i.content),ke("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])},e.getExternalProviders=function(e){return void 0===e&&(e=!1),new Promise((function(n){D(i.content),n(Fe("files.getExternalProviders",e))}))},e.copyMoveFiles=function(e,n,t,o,r){return void 0===r&&(r=!1),new Promise((function(a){if(D(i.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");a(Fe("files.copyMoveFiles",e,n,t,o,r))}))},e.isSupported=function(){return!!K.supports.files},e.getFileDownloads=function(e){return D(i.content),O((function(){return new Promise((function(e){return e(Fe("files.getFileDownloads",[]))}))}),e)},e.openDownloadFolder=function(e,n){if(void 0===e&&(e=void 0),D(i.content),!n)throw new Error("[files.openDownloadFolder] Callback cannot be null");ke("files.openDownloadFolder",[e],n)}}(at||(at={})),function(n){!function(n){!function(n){n.getUserJoinedTeams=function(n){return new Promise((function(t){if(D(),(g.hostClientType===e.android||g.hostClientType===e.teamsRoomsAndroid||g.hostClientType===e.teamsPhones||g.hostClientType===e.teamsDisplays)&&!L("2.0.1")){var o={errorCode:v.OLD_PLATFORM};throw new Error(JSON.stringify(o))}t(Pe("getUserJoinedTeams",n))}))},n.isSupported=function(){return!!K.supports.teams&&(!!K.supports.teams.fullTrust&&!!K.supports.teams.fullTrust.joinedTeams)}}(n.joinedTeams||(n.joinedTeams={})),n.getConfigSetting=function(e){return new Promise((function(n){D(),n(Pe("getConfigSetting",e))}))},n.isSupported=function(){return!!K.supports.teams&&!!K.supports.teams.fullTrust}}(n.fullTrust||(n.fullTrust={}))}(st||(st={})),function(e){e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){D(),e(Fe("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(n){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");D(),n(Fe("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");D(),le("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){D(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");D(),le("meetingRoom.meetingRoomStatesUpdate",(function(n){D(),e(n)}))},e.isSupported=function(){return!!K.supports.meetingRoom}}(ut||(ut={})),function(e){e.showNotification=function(e){D(i.content),ke("notifications.showNotification",[e])},e.isSupported=function(){return!!K.supports.notifications}}(ct||(ct={})),function(e){!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");D(i.sidePanel),ke("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,n){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!n)throw new Error("[remoteCamera.requestControl] Callback cannot be null");D(i.sidePanel),ke("remoteCamera.requestControl",[e],n)},e.sendControlCommand=function(e,n){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!n)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");D(i.sidePanel),ke("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");D(i.sidePanel),ke("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.sessionStatusChange",e)},e.isSupported=function(){return!!K.supports.remoteCamera}}(lt||(lt={})),function(e){e.selectAppEntity=function(e,n,t,o){if(D(i.content),!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!o)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");ke("appEntity.selectAppEntity",[e,n,t],o)},e.isSupported=function(){return!!K.supports.appEntity}}(dt||(dt={})),function(e){!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,n){if(D(i.content),!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");ke("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(D(),!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");ke("teams.refreshSiteUrl",[e],n)},e.isSupported=function(){return!!K.supports.teams}}(ft||(ft={}))})(),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={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,u=0;e.exports=function(e,n,t){var c=n&&t||0,l=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 m=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,h=m-s+(g-u)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||m>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,u=g,i=f;var C=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;l[c++]=C>>>24&255,l[c++]=C>>>16&255,l[c++]=C>>>8&255,l[c++]=255&C;var v=m/4294967296*1e4&268435455;l[c++]=v>>>8&255,l[c++]=255&v,l[c++]=v>>>24&15|16,l[c++]=v>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var w=0;w<6;++w)l[c+w]=d[w];return n||a(l)}},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)}},227:(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(447)(n);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},447:(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.substr(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(824),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}},824: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?u(e,r,i,"day"):r>=o?u(e,r,o,"hour"):r>=t?u(e,r,t,"minute"):r>=n?u(e,r,n,"second"):e+" ms"}function u(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))}}},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,{ChannelType:()=>h,ChildAppWindow:()=>an,DialogDimension:()=>s,ErrorCode:()=>v,FileOpenPreference:()=>C,FrameContexts:()=>i,HostClientType:()=>e,HostName:()=>n,NotificationTypes:()=>ze,ParentAppWindow:()=>sn,TaskModuleDimension:()=>w,TeamType:()=>r,UserSettingTypes:()=>Ge,UserTeamRole:()=>a,ViewerActionTypes:()=>je,app:()=>q,appEntity:()=>dt,appInitialization:()=>Mn,appInstallDialog:()=>Ze,authentication:()=>y,calendar:()=>Pn,call:()=>kn,chat:()=>tn,conversations:()=>qe,dialog:()=>on,enablePrintCapability:()=>Ln,executeDeepLink:()=>Xn,files:()=>at,getContext:()=>Wn,getMruTabInstances:()=>Kn,getTabInstances:()=>Jn,initialize:()=>Dn,initializeWithFrameContext:()=>Yn,legacy:()=>st,location:()=>Sn,logs:()=>Be,mail:()=>In,media:()=>yn,meeting:()=>Tn,meetingRoom:()=>ut,menus:()=>j,monetization:()=>bn,navigateBack:()=>it,navigateCrossDomain:()=>ot,navigateToTab:()=>tt,notifications:()=>ct,pages:()=>Z,people:()=>En,print:()=>Un,registerAppButtonClickHandler:()=>_n,registerAppButtonHoverEnterHandler:()=>Vn,registerAppButtonHoverLeaveHandler:()=>Bn,registerBackButtonHandler:()=>zn,registerBeforeUnloadHandler:()=>Gn,registerCustomHandler:()=>B,registerEnterSettingsHandler:()=>Zn,registerFocusEnterHandler:()=>qn,registerFullScreenHandler:()=>xn,registerOnLoadHandler:()=>jn,registerOnThemeChangeHandler:()=>Hn,registerUserSettingsChangeHandler:()=>z,remoteCamera:()=>lt,returnFocus:()=>nt,sendCustomEvent:()=>V,sendCustomMessage:()=>_,setFrameContext:()=>$n,settings:()=>An,shareDeepLink:()=>Qn,sharing:()=>On,stageView:()=>Rn,tasks:()=>rt,teams:()=>ft,teamsCore:()=>G,uploadCustomApp:()=>x,video:()=>Fn});var e,n,i,r,a,s,u="2.0.0-beta.5-dev.2",c="2.0.1",l="2.0.3",d="1.9.0",f="1.8.0",p=["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","*.teams.microsoft.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.office.com"],m=/^https:\/\//,g=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}();!function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(e||(e={})),function(e){e.office="Office",e.outlook="Outlook",e.orange="Orange",e.teams="Teams"}(n||(n={})),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"}(i||(i={})),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"}(r||(r={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(a||(a={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(s||(s={}));var h,C,v,w=s;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(h||(h={})),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(C||(C={})),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"}(v||(v={}));var y,S=t(22);function T(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 b(e){if("https:"!==e.protocol)return!1;var n=e.host;if(p.some((function(e){return T(e,n)})))return!0;for(var t=0,o=g.additionalValidOrigins;t<o.length;t++){var i=o[t];if(T("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function P(e){return function(n,t){if(!n)throw new Error(e||t)}}function I(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 E(){return S.v4()}function F(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&F(e[n])})),Object.freeze(e)}function O(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 R(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(void 0,!0)})).catch((function(e){n&&n(e,!1)})),i}function k(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 M(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 A(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 N(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 D(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!g.initializeCalled)throw new Error("The library has not yet been initialized");if(g.frameContext&&e&&e.length>0){for(var t=!1,o=0;o<e.length;o++)if(e[o]===g.frameContext){t=!0;break}if(!t)throw new Error("This call is only allowed in following contexts: "+JSON.stringify(e)+'. Current context: "'+g.frameContext+'".')}}function L(e){void 0===e&&(e=c);var n=I(g.clientSupportedSDKVersion,e);return!isNaN(n)&&n>=0}function U(){return g.hostClientType==e.android||g.hostClientType==e.ios}function W(e){if(void 0===e&&(e=c),!U())throw{errorCode:v.NOT_SUPPORTED_ON_PLATFORM};if(!L(e))throw{errorCode:v.OLD_PLATFORM}}function H(e){var n=g.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&m.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),g.additionalValidOrigins=n}function x(e,n){D(),ke("uploadCustomApp",[e],n||P())}function _(e,n,t){D(),ke(e,n,t)}function V(e,n){if(D(),!ye.childWindow)throw new Error("The child window has not yet been initialized or is not present");$e(e,n)}function B(e,n){var t=this;D(),le(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function z(e,n){D(),le("userSettingsChange",n,!0,[e])}!function(n){var t,o,r;function a(n){return new Promise((function(o,i){if(g.hostClientType===e.desktop||g.hostClientType===e.android||g.hostClientType===e.ios||g.hostClientType===e.rigel||g.hostClientType===e.teamsRoomsWindows||g.hostClientType===e.teamsRoomsAndroid||g.hostClientType===e.teamsPhones||g.hostClientType===e.teamsDisplays){var r=document.createElement("a");r.href=n.url,o(Oe("authentication.authenticate",[r.href,n.width,n.height,n.isExternal]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else t={success:o,fail:i},l(n)}))}function s(e){return new Promise((function(n){n(Oe("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 u(){return new Promise((function(e){e(Oe("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function c(){d();try{ye.childWindow&&ye.childWindow.close()}finally{ye.childWindow=null,ye.childOrigin=null}}function l(e){c();var n=e.width||600,t=e.height||400;n=Math.min(n,ye.currentWindow.outerWidth-400),t=Math.min(t,ye.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url.replace("{oauthRedirectMethod}","web");var i=void 0!==ye.currentWindow.screenLeft?ye.currentWindow.screenLeft:ye.currentWindow.screenX,r=void 0!==ye.currentWindow.screenTop?ye.currentWindow.screenTop:ye.currentWindow.screenY;i+=ye.currentWindow.outerWidth/2-n/2,r+=ye.currentWindow.outerHeight/2-t/2,ye.childWindow=ye.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),ye.childWindow?f():m("FailedToOpenWindow")}function d(){o&&(clearInterval(o),o=0),de("initialize"),de("navigateCrossDomain")}function f(){d(),o=ye.currentWindow.setInterval((function(){if(!ye.childWindow||ye.childWindow.closed)m("CancelledByUser");else{var e=ye.childOrigin;try{ye.childOrigin="*",$e("ping")}finally{ye.childOrigin=e}}}),100),le("initialize",(function(){return[i.authentication,g.hostClientType]})),le("navigateCrossDomain",(function(){return!1}))}function p(e){try{t&&t.success(e)}finally{t=null,c()}}function m(e){try{t&&t.fail(new Error(e))}finally{t=null,c()}}function h(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=C(o.href,"result",t)),ye.currentWindow.location.assign(C(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=C(o.href,"reason",t)),ye.currentWindow.location.assign(C(o.href,"authFailure",""))))}}function C(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}n.initialize=function(){le("authentication.authenticate.success",p,!1),le("authentication.authenticate.failure",m,!1)},n.registerAuthenticationHandlers=function(e){r=e},n.authenticate=function(e){var n=void 0!==e,t=n?e:r;if(!t)throw new Error("No parameters are provided for authentication");return D(i.content,i.sidePanel,i.settings,i.remove,i.task,i.stage,i.meetingStage),a(t).then((function(e){try{return t&&t.successCallback?(t.successCallback(e),""):e}finally{n||(r=null)}})).catch((function(e){try{if(t&&t.failureCallback)return t.failureCallback(e.message),"";throw e}finally{n||(r=null)}}))},n.getAuthToken=function(e){return D(),s(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}))},n.getUser=function(e){return D(),u().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}))},n.notifySuccess=function(e,n){h(n,"result",e),D(i.authentication),ke("authentication.authenticate.success",[e]),Qe(ye.parentWindow,(function(){return setTimeout((function(){return ye.currentWindow.close()}),200)}))},n.notifyFailure=function(e,n){h(n,"reason",e),D(i.authentication),ke("authentication.authenticate.failure",[e]),Qe(ye.parentWindow,(function(){return setTimeout((function(){return ye.currentWindow.close()}),200)}))}}(y||(y={}));var j,G,q,Z,J=function(){return J=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},J.apply(this,arguments)},K={apiVersion:1,supports:{appInstallDialog:void 0,calendar:void 0,call:void 0,chat:void 0,conversations:void 0,dialog:{bot:void 0,update:void 0},location:void 0,logs:void 0,mail:void 0,media:void 0,meeting:void 0,meetingRoom:void 0,menus:void 0,monetization:void 0,notifications:void 0,pages:{appButton:void 0,tabs:void 0,config:void 0,backStack:void 0,fullTrust:void 0},people:void 0,remoteCamera:void 0,sharing:void 0,teams:{fullTrust:{joinedTeams:void 0}},teamsCore:void 0,video:void 0}},Q={appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{bot:{},update:{}},files:{},logs:{},media:{},meeting:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},sharing:{},teams:{fullTrust:{}},teamsCore:{},video:{}},X=[e.desktop,e.web,e.android,e.ios,e.rigel,e.surfaceHub,e.teamsRoomsWindows,e.teamsRoomsAndroid,e.teamsPhones,e.teamsDisplays],$={"1.9.0":[{capability:{location:{}},hostClientTypes:X}],"2.0.0":[{capability:{people:{}},hostClientTypes:X}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[e.android,e.teamsRoomsAndroid,e.teamsPhones,e.teamsDisplays]}]};function Y(e){var n=J({},Q);return Object.keys($).forEach((function(t){I(e,t)>=0&&$[t].forEach((function(e){e.hostClientTypes.includes(g.hostClientType)&&(n=J(J({},n),e.capability))}))})),{apiVersion:1,isLegacyTeams:!0,supports:n}}function ee(e){K=F(e)}function ne(t){return{app:{locale:t.locale,sessionId:t.appSessionId?t.appSessionId:"",theme:t.theme?t.theme:"default",iconPositionVertical:t.appIconPosition,osLocaleInfo:t.osLocaleInfo,parentMessageId:t.parentMessageId,userClickTime:t.userClickTime,userFileOpenPreference:t.userFileOpenPreference,host:{name:t.hostName?t.hostName:n.teams,clientType:t.hostClientType?t.hostClientType:e.web,sessionId:t.sessionId?t.sessionId:"",ringId:t.ringId},appLaunchId:t.appLaunchId},page:{id:t.entityId,frameContext:t.frameContext?t.frameContext:g.frameContext,subPageId:t.subEntityId,isFullScreen:t.isFullScreen,isMultiWindow:t.isMultiWindow,sourceOrigin:t.sourceOrigin},user:{id:t.userObjectId,displayName:t.userDisplayName,isCallingAllowed:t.isCallingAllowed,isPSTNCallingAllowed:t.isPSTNCallingAllowed,licenseType:t.userLicenseType,loginHint:t.loginHint,userPrincipalName:t.userPrincipalName,tenant:t.tid?{id:t.tid,teamsSku:t.tenantSKU}:void 0},channel:t.channelId?{id:t.channelId,displayName:t.channelName,relativeUrl:t.channelRelativeUrl,membershipType:t.channelType,defaultOneNoteSectionId:t.defaultOneNoteSectionId,ownerGroupId:t.hostTeamGroupId,ownerTenantId:t.hostTeamTenantId}:void 0,chat:t.chatId?{id:t.chatId}:void 0,meeting:t.meetingId?{id:t.meetingId}:void 0,sharepoint:t.sharepoint,team:t.teamId?{internalId:t.teamId,displayName:t.teamName,type:t.teamType,groupId:t.groupId,templateId:t.teamTemplateId,isArchived:t.isTeamArchived,userRole:t.userTeamRole}:void 0,sharePointSite:t.teamSiteUrl||t.teamSiteDomain||t.teamSitePath||t.mySitePath||t.mySiteDomain?{teamSiteUrl:t.teamSiteUrl,teamSiteDomain:t.teamSiteDomain,teamSitePath:t.teamSitePath,teamSiteId:t.teamSiteId,mySitePath:t.mySitePath,mySiteDomain:t.mySiteDomain}:void 0}}!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)||(D(),ke("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(D(),ke("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(D(),ke("handleActionMenuItemPress",[e]))}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){le("navBarMenuItemPress",a,!1),le("actionMenuItemPress",s,!1),le("setModuleView",r,!1)},e.setUpViews=function(e,n){D(),o=n,ke("setUpViews",[e])},e.setNavBarMenu=function(e,t){D(),n=t,ke("setNavBarMenu",[e])},e.showActionMenu=function(e,n){D(),t=n,ke("showActionMenu",[e])},e.isSupported=function(){return!!K.supports.menus}}(j||(j={})),function(e){function n(){window.print()}e.enablePrintCapability=function(){g.printCapabilityEnabled||(g.printCapabilityEnabled=!0,D(),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){D(),me(e)},e.registerBeforeUnloadHandler=function(e){D(),he(e)},e.isSupported=function(){return!!K.supports.teamsCore}}(G||(G={})),function(e){e.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(e.FailedReason||(e.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(e.ExpectedFailureReason||(e.ExpectedFailureReason={})),e.isInitialized=function(){return g.initializeCalled},e.getFrameContext=function(){return g.frameContext};function n(e){return new Promise((function(n){g.initializeCalled||(g.initializeCalled=!0,se(),g.initializePromise=Te(e).then((function(e){var n=e.context,t=e.clientType,o=e.runtimeConfig,i=e.clientSupportedSDKVersion,r=void 0===i?c:i;g.frameContext=n,g.hostClientType=t,g.clientSupportedSDKVersion=r;try{if(!(a=JSON.parse(o))||!a.apiVersion)throw new Error("Received runtime config is invalid");o&&ee(a)}catch(e){if(!(e instanceof SyntaxError))throw e;try{isNaN(I(o,c))||(g.clientSupportedSDKVersion=o);var a=JSON.parse(r);r&&ee(a)}catch(e){if(!(e instanceof SyntaxError))throw e;ee(Y(g.clientSupportedSDKVersion))}}g.initializeCompleted=!0})),y.initialize(),j.initialize(),Z.config.initialize()),Array.isArray(e)&&H(e),n(g.initializePromise)}))}function t(e){D(),fe(e)}e.initialize=function(e){return A((function(){return n(e)}),5e3,new Error("SDK initialization timed out."))},e._initialize=function(e){ye.currentWindow=e},e._uninitialize=function(){g.initializeCalled&&(g.frameContext&&(t(null),Z.backStack.registerBackButtonHandler(null),Z.registerFullScreenHandler(null),G.registerBeforeUnloadHandler(null),G.registerOnLoadHandler(null),Be.registerGetLogHandler(null)),g.frameContext===i.settings&&Z.config.registerOnSaveHandler(null),g.frameContext===i.remove&&Z.config.registerOnRemoveHandler(null),g.initializeCalled=!1,g.initializeCompleted=!1,g.initializePromise=null,g.additionalValidOrigins=[],g.frameContext=null,g.hostClientType=null,g.isFramelessWindow=!1,be())},e.getContext=function(){return new Promise((function(e){D(),e(Pe("getContext"))})).then((function(e){return ne(e)}))},e.notifyAppLoaded=function(){D(),ke(e.Messages.AppLoaded,[u])},e.notifySuccess=function(){D(),ke(e.Messages.Success,[u])},e.notifyFailure=function(n){D(),ke(e.Messages.Failure,[n.reason,n.message])},e.notifyExpectedFailure=function(n){D(),ke(e.Messages.ExpectedFailure,[n.reason,n.message])},e.registerOnThemeChangeHandler=t,e.openLink=function(e){return new Promise((function(n){D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),n(Ie("executeDeepLink",e))}))}}(q||(q={})),function(e){function n(e){D(i.content),ke("setFrameContext",[e])}e.returnFocus=function(e){D(i.content),ke("returnFocus",[e])},e.registerFocusEnterHandler=function(e){D(),le("focusEnter",e)},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){q.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){D(i.content,i.settings,i.remove,i.sidePanel),e(Pe("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){D(i.content,i.sidePanel,i.settings,i.remove,i.task,i.stage,i.meetingStage);n(Ee("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){D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),K.isLegacyTeams?n(Ie("executeDeepLink",N(e))):n(Ie("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){D(i.content,i.sidePanel,i.meetingStage),ke("shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},e.registerFullScreenHandler=function(e){D(),le("fullScreenChange",e)},e.isSupported=function(){return!!K.supports.pages},function(e){e.navigateToTab=function(e){return new Promise((function(n){D();n(Ee("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){D(),n(Pe("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){D(),n(Pe("getMruTabInstances",e))}))},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.tabs}}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e){var t=new r(e);n?n(t):t.notifySuccess()}e.initialize=function(){le("settings.save",o,!1),le("settings.remove",a,!1)},e.setValidityState=function(e){D(i.settings,i.remove),ke("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){D(i.content,i.settings,i.sidePanel),n(Ie("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){D(i.settings),n=e,e&&ke("registerHandler",["save"])},e.registerOnRemoveHandler=function(e){D(i.remove,i.settings),t=e,e&&ke("registerHandler",["remove"])},e.registerChangeConfigHandler=function(e){D(i.content),le("changeSettings",e)};var r=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),ke("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),ke("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 a(){var e=new s;t?t(e):e.notifySuccess()}var s=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),ke("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),ke("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}();e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.config}}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){D();e(Ee("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(){n&&n()||t()}e._initialize=function(){le("backButtonPress",o,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){n=e,e&&ke("registerHandler",["backButton"])},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.backStack}}(e.backStack||(e.backStack={})),function(e){e.enterFullscreen=function(){D(i.content),ke("enterFullscreen",[])},e.exitFullscreen=function(){D(i.content),ke("exitFullscreen",[])},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.fullTrust}}(e.fullTrust||(e.fullTrust={})),function(e){e.onClick=function(e){D(i.content),le("appButtonClick",e)},e.onHoverEnter=function(e){D(i.content),le("appButtonHoverEnter",e)},e.onHoverLeave=function(e){D(i.content),le("appButtonHoverLeave",e)},e.isSupported=function(){return!!K.supports.pages&&!!K.supports.pages.appButton}}(e.appButton||(e.appButton={}))}(Z||(Z={}));var te=(0,t(227).debug)("teamsJs");function oe(e){return te.extend(e)}var ie=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))},re=oe("handlers"),ae=function(){function e(){}return e.handlers={},e}();function se(){ae.handlers.themeChange=pe,ae.handlers.load=ge,ae.handlers.beforeUnload=Ce,Z.backStack._initialize()}var ue=re.extend("callHandler");function ce(e,n){var t=ae.handlers[e];return t?(ue("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):(ue("Handler for action message %s not found.",e),[!1,void 0])}function le(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(ae.handlers[e]=n,t&&ke("registerHandler",ie([e],o,!0))):delete ae.handlers[e]}function de(e){delete ae.handlers[e]}function fe(e){ae.themeChangeHandler=e,e&&ke("registerHandler",["themeChange"])}function pe(e){ae.themeChangeHandler&&ae.themeChangeHandler(e),ye.childWindow&&$e("themeChange",[e])}function me(e){ae.loadHandler=e,e&&ke("registerHandler",["load"])}function ge(e){ae.loadHandler&&ae.loadHandler(e),ye.childWindow&&$e("load",[e])}function he(e){ae.beforeUnloadHandler=e,e&&ke("registerHandler",["beforeUnload"])}function Ce(){var e=function(){ke("readyToUnload",[])};ae.beforeUnloadHandler&&ae.beforeUnloadHandler(e)||e()}var ve=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))},we=oe("communication"),ye=function(){return function(){}}(),Se=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Te(e){if(Se.messageListener=function(e){return Ne(e)},ye.currentWindow=ye.currentWindow||window,ye.parentWindow=ye.currentWindow.parent!==ye.currentWindow.self?ye.currentWindow.parent:ye.currentWindow.opener,(ye.parentWindow||e)&&ye.currentWindow.addEventListener("message",Se.messageListener,!1),!ye.parentWindow){var n=ye.currentWindow;if(!n.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));g.isFramelessWindow=!0,n.onNativeMessage=We}try{return ye.parentOrigin="*",Oe("initialize",[u]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{ye.parentOrigin=null}}function be(){ye.currentWindow.removeEventListener("message",Se.messageListener,!1),ye.parentWindow=null,ye.parentOrigin=null,ye.childWindow=null,ye.childOrigin=null,Se.parentMessageQueue=[],Se.childMessageQueue=[],Se.nextMessageId=0,Se.callbacks={}}function Pe(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Oe(e,n).then((function(e){return e[0]}))}function Ie(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Oe(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function Ee(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Oe(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function Fe(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Oe(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Oe(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(Re(Ae(e,n).id))}))}function Re(e){return new Promise((function(n){Se.promiseCallbacks[e]=n}))}function ke(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=Ae(e,o);t&&(Se.callbacks[i.id]=t)}var Me=we.extend("sendMessageToParentHelper");function Ae(e,n){var t=Me,o=ye.parentWindow,i=Ye(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),g.isFramelessWindow)ye.currentWindow&&ye.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),ye.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=Ve(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),_e(o).push(i))}return i}function Ne(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;De(n,t)&&(Le(n,t),n===ye.parentWindow?We(e):n===ye.childWindow&&xe(e))}}function De(e,n){return(!ye.currentWindow||e!==ye.currentWindow)&&(!!(ye.currentWindow&&ye.currentWindow.location&&n&&n===ye.currentWindow.location.origin)||b(new URL(n)))}function Le(e,n){g.isFramelessWindow||ye.parentWindow&&!ye.parentWindow.closed&&e!==ye.parentWindow?ye.childWindow&&!ye.childWindow.closed&&e!==ye.childWindow||(ye.childWindow=e,ye.childOrigin=n):(ye.parentWindow=e,ye.parentOrigin=n),ye.parentWindow&&ye.parentWindow.closed&&(ye.parentWindow=null,ye.parentOrigin=null),ye.childWindow&&ye.childWindow.closed&&(ye.childWindow=null,ye.childOrigin=null),Ke(ye.parentWindow),Ke(ye.childWindow)}var Ue=we.extend("handleParentMessage");function We(e){var n=Ue;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=Se.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,ve(ve([],t.args,!0),[t.isPartialResponse],!1)),He(e)||(n("Removing registered callback for message %i",t.id),delete Se.callbacks[t.id]));var i=Se.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 Se.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),ce(t.func,t.args)}else n("Received an unknown message: %O",e)}function He(e){return!0===e.data.isPartialResponse}function xe(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=ce(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?Xe(n.id,Array.isArray(i)?i:[i]):ke(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(ye.childWindow){var o=e.pop();Xe(n.id,e,o)}}))}}function _e(e){return e===ye.parentWindow?Se.parentMessageQueue:e===ye.childWindow?Se.childMessageQueue:[]}function Ve(e){return e===ye.parentWindow?ye.parentOrigin:e===ye.childWindow?ye.childOrigin:null}var Be,ze,je,Ge,qe,Ze,Je=we.extend("flushMessageQueue");function Ke(e){for(var n=Ve(e),t=_e(e),o=e==ye.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();Je("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function Qe(e,n){var t=ye.currentWindow.setInterval((function(){0===_e(e).length&&(clearInterval(t),n())}),100)}function Xe(e,n,t){var o=ye.childWindow,i=en(e,n,t),r=Ve(o);o&&r&&o.postMessage(i,r)}function $e(e,n){var t=ye.childWindow,o=nn(e,n),i=Ve(t);t&&i?t.postMessage(o,i):_e(t).push(o)}function Ye(e,n){return{id:Se.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function en(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function nn(e,n){return{func:e,args:n||[]}}!function(e){e.registerGetLogHandler=function(e){D(),e?le("log.request",(function(){ke("log.receive",[e()])})):de("log.request")},e.isSupported=function(){return!!K.supports.logs}}(Be||(Be={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(ze||(ze={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(je||(je={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Ge||(Ge={})),function(e){e.openConversation=function(e){return new Promise((function(n){D(i.content);var t=Ie("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&le("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&le("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),n(t)}))},e.closeConversation=function(){D(i.content),ke("conversations.closeConversation"),de("startConversation"),de("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){D(),e(Pe("getChatMembers"))}))},e.isSupported=function(){return!!K.supports.conversations}}(qe||(qe={})),function(e){function n(){return!!K.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),!n())throw new Error("Not supported");ke("appInstallDialog.openAppInstallDialog",[e]),t()}))},e.isSupported=n}(Ze||(Ze={}));var tn,on;function rn(e,n,t){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");return"https://teams.microsoft.com/l/chat/0/0?"+("users="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&topic="+encodeURIComponent(n))+(void 0===t?"":"&message="+encodeURIComponent(t))}!function(e){function n(e){return new Promise((function(n){(D(i.content),K.isLegacyTeams)?n(Ie("executeDeepLink",rn([e.user],void 0,e.message))):n(Ie("chat.openChat",{members:e.user,message:e.message}))}))}e.openChat=n,e.openGroupChat=function(e){return new Promise((function(t){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");1===e.users.length?n({user:e.users[0],message:e.message}):(D(i.content),K.isLegacyTeams?t(Ie("executeDeepLink",rn(e.users,e.topic,e.message))):t(Ie("chat.openChat",{members:e.users,message:e.message,topic:e.topic})))}))},e.isSupported=function(){return!!K.supports.chat}}(tn||(tn={})),function(e){e.open=function(e,n,t){return D(i.content,i.sidePanel,i.meetingStage),t&&le("messageForParent",t),ke("tasks.startTask",[e],(function(e,t){n({err:e,result:t}),de("messageForParent")})),function(e){ke("messageForChild",[e])}},e.submit=function(e,n){D(i.content,i.sidePanel,i.task,i.meetingStage),ke("tasks.completeTask",[e,Array.isArray(n)?n:[n]])},e.sendMessageToParentFromDialog=function(e){D(i.task),ke("messageForParent",[e])},e.registerOnMessageFromParent=function(e){D(i.task),le("messageForChild",e)},e.isSupported=function(){return!!K.supports.dialog},function(e){e.resize=function(e){D(i.content,i.sidePanel,i.task,i.meetingStage),ke("tasks.updateTask",[e])},e.isSupported=function(){return!!K.supports.dialog&&!!K.supports.dialog.update}}(e.update||(e.update={})),function(e){e.open=function(e,n,t){return D(i.content,i.sidePanel,i.meetingStage),t&&le("messageForParent",t),ke("tasks.startTask",[e],(function(e,t){n({err:e,result:t}),de("messageForParent")})),function(e){ke("messageForChild",[e])}},e.isSupported=function(){return!!K.supports.dialog&&!!K.supports.dialog.bot}}(e.bot||(e.bot={}))}(on||(on={}));var an=function(){function e(){}return e.prototype.postMessage=function(e,n){D(),ke("messageForChild",[e],n||P())},e.prototype.addEventListener=function(e,n){D(),"message"===e&&le("messageForParent",n)},e}(),sn=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){D(i.task),ke("messageForParent",[e],n||P())},e.prototype.addEventListener=function(e,n){D(i.task),"message"===e&&le("messageForChild",n)},e}();function un(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 cn(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 ln(e){mn(e)?W("2.0.2"):gn(e)?W(l):pn(e)&&W("2.0.4")}function dn(e){return!(e.mediaType!=yn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function fn(e){return!(null==e||e.maxMediaCount>10)}function pn(e){var n;return!((null==e?void 0:e.mediaType)!=yn.MediaType.Image||!(null===(n=null==e?void 0:e.imageProps)||void 0===n?void 0:n.imageOutputFormats))}function mn(e){return!(!e||e.mediaType!=yn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function gn(e){return!(!e||e.mediaType!=yn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function hn(e,n,t){return null!=e&&null!=n&&n==yn.FileFormat.ID&&null!=t}function Cn(e){return!(null==e||e.length<=0||e.length>10)}function vn(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function wn(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}var yn,Sn,Tn,bn,Pn,In,En,Fn,On,Rn,kn,Mn,An,Nn=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 Dn(e,n){q.initialize(n).then((function(){e&&e()}))}function Ln(){G.enablePrintCapability()}function Un(){G.print()}function Wn(e){D(),q.getContext().then((function(n){e&&e(et(n))}))}function Hn(e){q.registerOnThemeChangeHandler(e)}function xn(e){Z.registerFullScreenHandler(e)}function _n(e){Z.appButton.onClick(e)}function Vn(e){Z.appButton.onHoverEnter(e)}function Bn(e){Z.appButton.onHoverLeave(e)}function zn(e){Z.backStack.registerBackButtonHandler(e)}function jn(e){G.registerOnLoadHandler(e)}function Gn(e){G.registerBeforeUnloadHandler(e)}function qn(e){Z.registerFocusEnterHandler(e)}function Zn(e){Z.config.registerChangeConfigHandler(e)}function Jn(e,n){D(),Z.tabs.getTabInstances(n).then((function(n){e(n)}))}function Kn(e,n){D(),Z.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function Qn(e){Z.shareDeepLink(e)}function Xn(e,n){D(i.content,i.sidePanel,i.settings,i.task,i.stage,i.meetingStage),n=n||P(),q.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function $n(e){Z.setCurrentFrame(e)}function Yn(e,n,t){Z.initializeWithFrameContext(e,n,t)}function et(e){return{locale:e.app.locale,appSessionId:e.app.sessionId,theme:e.app.theme,appIconPosition:e.app.iconPositionVertical,osLocaleInfo:e.app.osLocaleInfo,parentMessageId:e.app.parentMessageId,userClickTime:e.app.userClickTime,userFileOpenPreference:e.app.userFileOpenPreference,appLaunchId:e.app.appLaunchId,hostClientType:e.app.host.clientType,sessionId:e.app.host.sessionId,ringId:e.app.host.ringId,entityId:e.page.id,frameContext:e.page.frameContext,subEntityId:e.page.subPageId,isFullScreen:e.page.isFullScreen,isMultiWindow:e.page.isMultiWindow,sourceOrigin:e.page.sourceOrigin,userObjectId:void 0!==e.user?e.user.id:void 0,isCallingAllowed:void 0!==e.user?e.user.isCallingAllowed:void 0,isPSTNCallingAllowed:void 0!==e.user?e.user.isPSTNCallingAllowed:void 0,userLicenseType:void 0!==e.user?e.user.licenseType:void 0,loginHint:void 0!==e.user?e.user.loginHint:void 0,userPrincipalName:void 0!==e.user?e.user.userPrincipalName:void 0,tid:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.id:void 0,tenantSKU:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.teamsSku:void 0,channelId:void 0!==e.channel?e.channel.id:void 0,channelName:void 0!==e.channel?e.channel.displayName:void 0,channelRelativeUrl:void 0!==e.channel?e.channel.relativeUrl:void 0,channelType:void 0!==e.channel?e.channel.membershipType:void 0,defaultOneNoteSectionId:void 0!==e.channel?e.channel.defaultOneNoteSectionId:void 0,hostTeamGroupId:void 0!==e.channel?e.channel.ownerGroupId:void 0,hostTeamTenantId:void 0!==e.channel?e.channel.ownerTenantId:void 0,chatId:void 0!==e.chat?e.chat.id:void 0,meetingId:void 0!==e.meeting?e.meeting.id:void 0,sharepoint:e.sharepoint,teamId:void 0!==e.team?e.team.internalId:void 0,teamName:void 0!==e.team?e.team.displayName:void 0,teamType:void 0!==e.team?e.team.type:void 0,groupId:void 0!==e.team?e.team.groupId:void 0,teamTemplateId:void 0!==e.team?e.team.templateId:void 0,isTeamArchived:void 0!==e.team?e.team.isArchived:void 0,userTeamRole:void 0!==e.team?e.team.userRole:void 0,teamSiteUrl:void 0!==e.sharePointSite?e.sharePointSite.teamSiteUrl:void 0,teamSiteDomain:void 0!==e.sharePointSite?e.sharePointSite.teamSiteDomain:void 0,teamSitePath:void 0!==e.sharePointSite?e.sharePointSite.teamSitePath:void 0,teamSiteId:void 0!==e.sharePointSite?e.sharePointSite.teamSiteId:void 0,mySitePath:void 0!==e.sharePointSite?e.sharePointSite.mySitePath:void 0,mySiteDomain:void 0!==e.sharePointSite?e.sharePointSite.mySiteDomain:void 0}}function nt(e){Z.returnFocus(e)}function tt(e,n){D(),n=n||P(),Z.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function ot(e,n){D(i.content,i.sidePanel,i.settings,i.remove,i.task,i.stage,i.meetingStage),n=n||P(),Z.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function it(e){D(),e=e||P(),Z.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(n){!function(e){e.Base64="base64",e.ID="id"}(n.FileFormat||(n.FileFormat={}));var t=function(){return function(){}}();n.File=t,n.captureImage=function(e){return D(i.content,i.task),O((function(){return new Promise((function(e){if(!g.isFramelessWindow)throw{errorCode:v.NOT_SUPPORTED_ON_PLATFORM};if(!L("1.7.0"))throw{errorCode:v.OLD_PLATFORM};e(Fe("captureImage"))}))}),e)};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 Nn(n,e),n.prototype.getMedia=function(e){var n=this;D(i.content,i.task);return O((function(){return new Promise((function(e){if(!L(f))throw{errorCode:v.OLD_PLATFORM};if(!hn(n.mimeType,n.format,n.content))throw{errorCode:v.INVALID_ARGUMENTS};L("2.0.0")?e(n.getMediaViaCallback()):e(n.getMediaViaHandler())}))}),e)},n.prototype.getMediaViaCallback=function(){var e=this;return new Promise((function(n,t){var o={mediaMimeType:e.mimeType,assembleAttachment:[]};ke("getMedia",[e.content],(function(e){if(e&&e.error)t(e.error);else if(e&&e.mediaChunk)if(e.mediaChunk.chunkSequence<=0){var i=un(o.assembleAttachment,o.mediaMimeType);n(i)}else{var r=cn(e.mediaChunk,o.mediaMimeType);o.assembleAttachment.push(r)}else t({errorCode:v.INTERNAL_ERROR,message:"data received is null"})}))}))},n.prototype.getMediaViaHandler=function(){var e=this;return new Promise((function(n,t){var o=E(),i={mediaMimeType:e.mimeType,assembleAttachment:[]},r=[o,e.content];e.content&&ke("getMedia",r),le("getMedia"+o,(function(e){try{var r=JSON.parse(e);if(r.error)t(r.error),de("getMedia"+o);else if(r&&r.mediaChunk)if(r.mediaChunk.chunkSequence<=0){var a=un(i.assembleAttachment,i.mediaMimeType);n(a),de("getMedia"+o)}else{var s=cn(r.mediaChunk,i.mediaMimeType);i.assembleAttachment.push(s)}else t({errorCode:v.INTERNAL_ERROR,message:"data received is null"}),de("getMedia"+o)}catch(n){t({errorCode:v.INTERNAL_ERROR,message:"Error parsing the response: "+e})}}))}))},n}(t);n.Media=o;var r,a,s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Nn(n,e),n.prototype.getMediaType=function(){return a.Video},n.prototype.notifyEventToApp=function(e){switch(e){case r.StartRecording:this.controllerCallback.onRecordingStarted();break;case r.StopRecording:this.controllerCallback.onRecordingStopped&&this.controllerCallback.onRecordingStopped()}},n}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,n){D(i.content,i.task);try{W(l)}catch(e){return k((function(){return Promise.reject(e)}),n)}var t={mediaType:this.getMediaType(),mediaControllerEvent:e};return k((function(){return new Promise((function(e){return e(Fe("media.controller",[t]))}))}),n)},e.prototype.stop=function(e){return Promise.resolve(this.notifyEventToHost(r.StopRecording,e))},e}());n.VideoController=s,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(r=n.MediaControllerEvent||(n.MediaControllerEvent={})),function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(n.CameraStartMode||(n.CameraStartMode={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(n.Source||(n.Source={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(a=n.MediaType||(n.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(n.ImageUriType||(n.ImageUriType={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(n.ImageOutputFormats||(n.ImageOutputFormats={})),n.selectMedia=function(e,n){return D(i.content,i.task),O((function(){return new Promise((function(n){if(!L(f))throw{errorCode:v.OLD_PLATFORM};if(ln(e),!fn(e))throw{errorCode:v.INVALID_ARGUMENTS};n(Oe("selectMedia",[e]))})).then((function(n){var t=n[0],i=n[1],r=n[2];if(r)return dn(e)&&e.videoProps.videoController.notifyEventToApp(r),[];if(!i)throw t;for(var a=[],s=0,u=i;s<u.length;s++){var c=u[s];a.push(new o(c))}return a}))}),n)},n.viewImages=function(e,n){return D(i.content,i.task),k((function(){return new Promise((function(n){if(!L(f))throw{errorCode:v.OLD_PLATFORM};if(!Cn(e))throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("viewImages",e))}))}),n)},n.scanBarCode=function(n,t){var o,r;return void 0===n?r=t:"object"==typeof n?r=n:(o=n,r=t),D(i.content,i.task),O((function(){return new Promise((function(n){if(g.hostClientType===e.desktop||g.hostClientType===e.web||g.hostClientType===e.rigel||g.hostClientType===e.teamsRoomsWindows||g.hostClientType===e.teamsRoomsAndroid||g.hostClientType===e.teamsPhones||g.hostClientType===e.teamsDisplays)throw{errorCode:v.NOT_SUPPORTED_ON_PLATFORM};if(!L("1.9.0"))throw{errorCode:v.OLD_PLATFORM};if(!vn(r))throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("media.scanBarCode",r))}))}),o)},n.isSupported=function(){return!!K.supports.media}}(yn||(yn={})),function(e){function n(e){return new Promise((function(n){if(!L(d))throw{errorCode:v.OLD_PLATFORM};if(!e)throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("location.getLocation",e))}))}function t(e){return new Promise((function(n){if(!L(d))throw{errorCode:v.OLD_PLATFORM};if(!e)throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("location.showLocation",e))}))}e.getLocation=function(e,t){return D(i.content,i.task),O(n,t,e)},e.showLocation=function(e,n){return D(i.content,i.task),R(t,n,e)},e.showLocationHelper=t,e.isSupported=function(){return!!K.supports.location}}(Sn||(Sn={})),function(e){function n(){return new Promise((function(e){e(Fe("getIncomingClientAudioState"))}))}function t(){return new Promise((function(e){e(Fe("toggleIncomingClientAudio"))}))}function o(){return new Promise((function(e){e(Fe("meeting.getMeetingDetails"))}))}function r(){return new Promise((function(e){e(Fe("meeting.getAuthenticationTokenForAnonymousUser"))}))}function a(){return new Promise((function(e){e(Fe("meeting.getLiveStreamState"))}))}function s(e,n){return new Promise((function(t){t(Fe("meeting.requestStartLiveStreaming",e,n))}))}function u(){return new Promise((function(e){e(Fe("meeting.requestStopLiveStreaming"))}))}function c(e){return new Promise((function(n){n(Fe("meeting.shareAppContentToStage",e))}))}function l(){return new Promise((function(e){e(Fe("meeting.getAppContentStageSharingCapabilities"))}))}function d(){return new Promise((function(e){e(Fe("meeting.stopSharingAppContentToStage"))}))}function f(){return new Promise((function(e){e(Fe("meeting.getAppContentStageSharingState"))}))}!function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),e.getIncomingClientAudioState=function(e){return D(i.sidePanel,i.meetingStage),M(n,e)},e.toggleIncomingClientAudio=function(e){return D(i.sidePanel,i.meetingStage),M(t,e)},e.getMeetingDetails=function(e){return D(i.sidePanel,i.meetingStage,i.settings,i.content),M(o,e)},e.getAuthenticationTokenForAnonymousUser=function(e){return D(i.sidePanel,i.meetingStage),M(r,e)},e.isSupported=function(){return!!K.supports.meeting},e.getLiveStreamState=function(e){return D(),M(a,e)},e.requestStartLiveStreaming=function(e,n,t){var o,r,a,u,c;return D(i.sidePanel),"function"==typeof e?(c=(o=[e,n,t])[0],a=o[1],u=o[2]):"string"==typeof e&&(a=(r=[e,n])[0],u=r[1]),k(s,c,a,u)},e.requestStopLiveStreaming=function(e){return D(i.sidePanel),k(u,e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");D(i.sidePanel),le("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){var t,o,r;return D(i.sidePanel,i.meetingStage),"function"==typeof e?(r=(t=[e,n])[0],o=t[1]):o=e,M(c,r,o)},e.getAppContentStageSharingCapabilities=function(e){return D(i.sidePanel,i.meetingStage),M(l,e)},e.stopSharingAppContentToStage=function(e){return D(i.sidePanel,i.meetingStage),M(d,e)},e.getAppContentStageSharingState=function(e){return D(i.sidePanel,i.meetingStage),M(f,e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");D(i.sidePanel,i.meetingStage),le("meeting.speakingStateChanged",e)}}(Tn||(Tn={})),function(e){e.openPurchaseExperience=function(e,n){var t,o;return"function"==typeof e?(t=e,o=n):o=e,D(i.content),M((function(){return new Promise((function(e){e(Fe("monetization.openPurchaseExperience",o))}))}),t)},e.isSupported=function(){return!!K.supports.monetization}}(bn||(bn={})),function(e){function n(){return!!K.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");t(Ie("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");t(Ie("calendar.composeMeeting",e))}))},e.isSupported=n}(Pn||(Pn={})),function(e){function n(){return!!K.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");t(Ie("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");t(Ie("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(In||(In={})),function(e){function n(e){return new Promise((function(n){if(!L("2.0.0"))throw{errorCode:v.OLD_PLATFORM};if(!wn(e))throw{errorCode:v.INVALID_ARGUMENTS};n(Fe("people.selectPeople",e))}))}e.selectPeople=function(e,t){var o,r,a;return D(i.content,i.task,i.settings),"function"==typeof e?(r=(o=[e,t])[0],a=o[1]):a=e,O(n,r,a)},e.isSupported=function(){return!!K.supports.people}}(En||(En={})),function(e){function n(){ke("video.videoFrameProcessed")}function t(e){ke("video.notifyError",[e])}!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,o){D(i.sidePanel),le("video.newVideoFrame",(function(o){void 0!==o&&e(o,n,t)})),ke("video.registerForVideoFrame",[o])},e.notifySelectedVideoEffectChanged=function(e,n){D(i.sidePanel),ke("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){D(i.sidePanel),le("video.effectParameterChange",e)},e.isSupported=function(){return!!K.supports.video}}(Fn||(Fn={})),function(e){function n(n){return new Promise((function(t){t(Fe(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:v.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:v.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:v.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function r(e){if("URL"!==e.content[0].type)throw{errorCode:v.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:v.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,a){try{t(e),o(e),r(e)}catch(e){return k((function(){return Promise.reject(e)}),a)}return D(i.content,i.sidePanel,i.task,i.stage,i.meetingStage),k(n,a,e)},e.isSupported=function(){return!!K.supports.sharing}}(On||(On={})),function(e){e.open=function(e,n){if(D(i.content),!e)throw new Error("[stageView.open] Stage view params cannot be null");return O((function(){return new Promise((function(n){return n(Fe("stageView.open",e))}))}),n)}}(Rn||(Rn={})),function(e){function n(){return!!K.supports.call}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(t){if(D(i.content),!n())throw new Error("Not supported");return ke("call.startCall",[e],t)}))},e.isSupported=n}(kn||(kn={})),function(e){e.Messages=q.Messages,e.FailedReason=q.FailedReason,e.ExpectedFailureReason=q.ExpectedFailureReason,e.notifyAppLoaded=function(){q.notifyAppLoaded()},e.notifySuccess=function(){q.notifySuccess()},e.notifyFailure=function(e){q.notifyFailure(e)},e.notifyExpectedFailure=function(e){q.notifyExpectedFailure(e)}}(Mn||(Mn={})),function(e){e.setValidityState=function(e){Z.config.setValidityState(e)},e.getSettings=function(e){D(i.content,i.settings,i.remove,i.sidePanel),Z.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){D(i.content,i.settings,i.sidePanel),n=n||P(),Z.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){Z.config.registerOnSaveHandler(e)},e.registerOnRemoveHandler=function(e){Z.config.registerOnRemoveHandler(e)}}(An||(An={}));var rt,at,st,ut,ct,lt,dt,ft,pt=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,width:e.width},title:e.title,fallbackUrl:e.fallbackUrl}}function t(e){return{url:e.url,size:{height:e.height,width:e.width},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function o(e){return e.height=e.height?e.height:w.Small,e.width=e.width?e.width:w.Small,e}e.startTask=function(e,r){return void 0!==(e=o(e)).card||void 0===e.url?(D(i.content,i.sidePanel,i.meetingStage),ke("tasks.startTask",[e],r)):void 0!==e.completionBotId?on.bot.open(t(e),(function(e){return r(e.err,e.result)})):on.open(n(e),(function(e){return r(e.err,e.result)})),new an},e.updateTask=function(e){(e=o(e)).width,e.height;var n=pt(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a TaskInfo argument containing only width and height");on.update.resize(e)},e.submitTask=function(e,n){on.submit(e,n)},e.getUrlDialogInfoFromTaskInfo=n,e.getBotUrlDialogInfoFromTaskInfo=t,e.getDefaultSizeIfNotProvided=o}(rt||(rt={})),function(e){!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={})),e.getCloudStorageFolders=function(e){return new Promise((function(n){if(D(i.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");n(Fe("files.getCloudStorageFolders",e))}))},e.addCloudStorageFolder=function(e){return new Promise((function(n){if(D(i.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");n(Oe("files.addCloudStorageFolder",[e]))})).then((function(e){var n=e[0],t=e[1],o=e[2];if(n)throw n;return[t,o]}))},e.deleteCloudStorageFolder=function(e,n){return new Promise((function(t){if(D(i.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");t(Fe("files.deleteCloudStorageFolder",e,n))}))},e.getCloudStorageFolderContents=function(e,n){return new Promise((function(t){if(D(i.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");t(Fe("files.getCloudStorageFolderContents",e,n))}))},e.openCloudStorageFile=function(e,n,t){if(D(i.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");ke("files.openCloudStorageFile",[e,n,t])},e.openFilePreview=function(e){D(i.content),ke("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])},e.getExternalProviders=function(e){return void 0===e&&(e=!1),new Promise((function(n){D(i.content),n(Fe("files.getExternalProviders",e))}))},e.copyMoveFiles=function(e,n,t,o,r){return void 0===r&&(r=!1),new Promise((function(a){if(D(i.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");a(Fe("files.copyMoveFiles",e,n,t,o,r))}))},e.isSupported=function(){return!!K.supports.files},e.getFileDownloads=function(e){return D(i.content),O((function(){return new Promise((function(e){return e(Fe("files.getFileDownloads",[]))}))}),e)},e.openDownloadFolder=function(e,n){if(void 0===e&&(e=void 0),D(i.content),!n)throw new Error("[files.openDownloadFolder] Callback cannot be null");ke("files.openDownloadFolder",[e],n)}}(at||(at={})),function(n){!function(n){!function(n){n.getUserJoinedTeams=function(n){return new Promise((function(t){if(D(),(g.hostClientType===e.android||g.hostClientType===e.teamsRoomsAndroid||g.hostClientType===e.teamsPhones||g.hostClientType===e.teamsDisplays)&&!L("2.0.1")){var o={errorCode:v.OLD_PLATFORM};throw new Error(JSON.stringify(o))}t(Pe("getUserJoinedTeams",n))}))},n.isSupported=function(){return!!K.supports.teams&&(!!K.supports.teams.fullTrust&&!!K.supports.teams.fullTrust.joinedTeams)}}(n.joinedTeams||(n.joinedTeams={})),n.getConfigSetting=function(e){return new Promise((function(n){D(),n(Pe("getConfigSetting",e))}))},n.isSupported=function(){return!!K.supports.teams&&!!K.supports.teams.fullTrust}}(n.fullTrust||(n.fullTrust={}))}(st||(st={})),function(e){e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){D(),e(Fe("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(n){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");D(),n(Fe("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");D(),le("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){D(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");D(),le("meetingRoom.meetingRoomStatesUpdate",(function(n){D(),e(n)}))},e.isSupported=function(){return!!K.supports.meetingRoom}}(ut||(ut={})),function(e){e.showNotification=function(e){D(i.content),ke("notifications.showNotification",[e])},e.isSupported=function(){return!!K.supports.notifications}}(ct||(ct={})),function(e){!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");D(i.sidePanel),ke("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,n){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!n)throw new Error("[remoteCamera.requestControl] Callback cannot be null");D(i.sidePanel),ke("remoteCamera.requestControl",[e],n)},e.sendControlCommand=function(e,n){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!n)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");D(i.sidePanel),ke("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");D(i.sidePanel),ke("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");D(i.sidePanel),le("remoteCamera.sessionStatusChange",e)},e.isSupported=function(){return!!K.supports.remoteCamera}}(lt||(lt={})),function(e){e.selectAppEntity=function(e,n,t,o){if(D(i.content),!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!o)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");ke("appEntity.selectAppEntity",[e,n,t],o)},e.isSupported=function(){return!!K.supports.appEntity}}(dt||(dt={})),function(e){!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,n){if(D(i.content),!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");ke("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(D(),!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");ke("teams.refreshSiteUrl",[e],n)},e.isSupported=function(){return!!K.supports.teams}}(ft||(ft={}))})(),o})()}));
2
2
  //# sourceMappingURL=MicrosoftTeams.min.js.map