text: /*
  	Copyright (c) Microsoft Corporation.  All rights reserved.
  */
  
  /*
  	Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
  */
  
  /*
  * @overview es6-promise - a tiny implementation of Promises/A+.
  * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
  * @license   Licensed under MIT license
  *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
  * @version   2.3.0
  */
  
  
  // Sources:
  // osfweb: 16.0\11619.10000
  // runtime: 16.0.11826.30006
  // core: 16.0\11901.10000
  // host: excel 16.0.11826.30006
  
  var __extends=this&&this.__extends||function(b,a){for(var c in a)if(a.hasOwnProperty(c))b[c]=a[c];function d(){this.constructor=b}b.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)},OfficeExt;(function(b){var a=function(){function a(){}a.prototype.isMsAjaxLoaded=function(){if(typeof Sys!=="undefined"&&typeof Type!=="undefined"&&Sys.StringBuilder&&typeof Sys.StringBuilder==="function"&&Type.registerNamespace&&typeof Type.registerNamespace==="function"&&Type.registerClass&&typeof Type.registerClass==="function"&&typeof Function._validateParams==="function"&&Sys.Serialization&&Sys.Serialization.JavaScriptSerializer&&typeof Sys.Serialization.JavaScriptSerializer.serialize==="function")return true;else return false};a.prototype.loadMsAjaxFull=function(b){var a=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OSF.OUtil.loadScript(a,b)};Object.defineProperty(a.prototype,"msAjaxError",{"get":function(){if(this._msAjaxError==null&&this.isMsAjaxLoaded())this._msAjaxError=Error;return this._msAjaxError},"set":function(a){this._msAjaxError=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"msAjaxString",{"get":function(){if(this._msAjaxString==null&&this.isMsAjaxLoaded())this._msAjaxString=String;return this._msAjaxString},"set":function(a){this._msAjaxString=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"msAjaxDebug",{"get":function(){if(this._msAjaxDebug==null&&this.isMsAjaxLoaded())this._msAjaxDebug=Sys.Debug;return this._msAjaxDebug},"set":function(a){this._msAjaxDebug=a},enumerable:true,configurable:true});return a}();b.MicrosoftAjaxFactory=a})(OfficeExt||(OfficeExt={}));var OsfMsAjaxFactory=new OfficeExt.MicrosoftAjaxFactory,OSF=OSF||{},OfficeExt;(function(b){var a=function(){function a(a){this._internalStorage=a}a.prototype.getItem=function(a){try{return this._internalStorage&&this._internalStorage.getItem(a)}catch(b){return null}};a.prototype.setItem=function(b,a){try{this._internalStorage&&this._internalStorage.setItem(b,a)}catch(c){}};a.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(a){}};a.prototype.removeItem=function(a){try{this._internalStorage&&this._internalStorage.removeItem(a)}catch(b){}};a.prototype.getKeysWithPrefix=function(d){var b=[];try{for(var e=this._internalStorage&&this._internalStorage.length||0,a=0;a<e;a++){var c=this._internalStorage.key(a);c.indexOf(d)===0&&b.push(c)}}catch(f){}return b};return a}();b.SafeStorage=a})(OfficeExt||(OfficeExt={}));OSF.XdmFieldName={ConversationUrl:"ConversationUrl",AppId:"AppId"};OSF.WindowNameItemKeys={BaseFrameName:"baseFrameName",HostInfo:"hostInfo",XdmInfo:"xdmInfo",SerializerVersion:"serializerVersion",AppContext:"appContext"};OSF.OUtil=function(){var h=-1,m="&_xdm_Info=",k="&_serializer_version=",l="_xdm_",p="_serializer_version=",d="#",j="&",a="class",g={},o=3e4,c=null,f=null,b=+new Date;function n(){var a=2147483647*Math.random();a^=b^(new Date).getMilliseconds()<<Math.floor(Math.random()*(31-10));return a.toString(16)}function e(){if(!c){try{var a=window.sessionStorage}catch(b){a=null}c=new OfficeExt.SafeStorage(a)}return c}function i(e){for(var c=[],b=[],f=e.length,a,d=0;d<f;d++){a=e[d];if(a.tabIndex)if(a.tabIndex>0)b.push(a);else a.tabIndex===0&&c.push(a);else c.push(a)}b=b.sort(function(d,c){var a=d.tabIndex-c.tabIndex;if(a===0)a=b.indexOf(d)-b.indexOf(c);return a});return[].concat(b,c)}return{set_entropy:function(a){if(typeof a=="string")for(var c=0;c<a.length;c+=4){for(var e=0,d=0;d<4&&c+d<a.length;d++)e=(e<<8)+a.charCodeAt(c+d);b^=e}else if(typeof a=="number")b^=a;else b^=2147483647*Math.random();b&=2147483647},extend:function(b,a){var c=function(){};c.prototype=a.prototype;b.prototype=new c;b.prototype.constructor=b;b.uber=a.prototype;if(a.prototype.constructor===Object.prototype.constructor)a.prototype.constructor=a},setNamespace:function(b,a){if(a&&b&&!a[b])a[b]={}},unsetNamespace:function(b,a){if(a&&b&&a[b])delete a[b]},serializeSettings:function(b){var d={};for(var c in b){var a=b[c];try{if(JSON)a=JSON.stringify(a,function(a,b){return OSF.OUtil.isDate(this[a])?OSF.DDA.SettingsManager.DateJSONPrefix+this[a].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:b});else a=Sys.Serialization.JavaScriptSerializer.serialize(a);d[c]=a}catch(e){}}return d},deserializeSettings:function(b){var d={};b=b||{};for(var c in b){var a=b[c];try{if(JSON)a=JSON.parse(a,function(c,a){var b;if(typeof a==="string"&&a&&a.length>6&&a.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&a.slice(-1)===OSF.DDA.SettingsManager.DataJSONSuffix){b=new Date(parseInt(a.slice(5,-1)));if(b)return b}return a});else a=Sys.Serialization.JavaScriptSerializer.deserialize(a,true);d[c]=a}catch(e){}}return d},loadScript:function(c,d,e){if(c&&d){var i=window.document,a=g[c];if(!a){var b=i.createElement("script");b.type="text/javascript";a={loaded:false,pendingCallbacks:[d],timer:null};g[c]=a;var f=function(){if(a.timer!=null){clearTimeout(a.timer);delete a.timer}a.loaded=true;for(var c=a.pendingCallbacks.length,b=0;b<c;b++){var d=a.pendingCallbacks.shift();d()}},h=function(){delete g[c];if(a.timer!=null){clearTimeout(a.timer);delete a.timer}for(var d=a.pendingCallbacks.length,b=0;b<d;b++){var e=a.pendingCallbacks.shift();e()}};if(b.readyState)b.onreadystatechange=function(){if(b.readyState=="loaded"||b.readyState=="complete"){b.onreadystatechange=null;f()}};else b.onload=f;b.onerror=h;e=e||o;a.timer=setTimeout(h,e);b.setAttribute("crossOrigin","anonymous");b.src=c;i.getElementsByTagName("head")[0].appendChild(b)}else if(a.loaded)d();else a.pendingCallbacks.push(d)}},loadCSS:function(c){if(c){var b=window.document,a=b.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=c;b.getElementsByTagName("head")[0].appendChild(a)}},parseEnum:function(b,c){var a=c[b.trim()];if(typeof a=="undefined"){OsfMsAjaxFactory.msAjaxDebug.trace("invalid enumeration string:"+b);throw OsfMsAjaxFactory.msAjaxError.argument("str");}return a},delayExecutionAndCache:function(){var a={calc:arguments[0]};return function(){if(a.calc){a.val=a.calc.apply(this,arguments);delete a.calc}return a.val}},getUniqueId:function(){h=h+1;return h.toString()},formatString:function(){var a=arguments,b=a[0];return b.replace(/{(\d+)}/gm,function(d,b){var c=parseInt(b,10)+1;return a[c]===undefined?"{"+b+"}":a[c]})},generateConversationId:function(){return[n(),n(),(+new Date).toString()].join("_")},getFrameName:function(a){return l+a+this.generateConversationId()},addXdmInfoAsHash:function(b,a){return OSF.OUtil.addInfoAsHash(b,m,a,false)},addSerializerVersionAsHash:function(b,a){return OSF.OUtil.addInfoAsHash(b,k,a,true)},addInfoAsHash:function(b,g,c,i){b=b.trim()||"";var f=b.split(d),h=f.shift(),e=f.join(d),a;if(i)a=[g,encodeURIComponent(c),e].join("");else a=[e,g,c].join("");return[h,d,a].join("")},parseHostInfoFromWindowName:function(a,b){return OSF.OUtil.parseInfoFromWindowName(a,b,OSF.WindowNameItemKeys.HostInfo)},parseXdmInfo:function(b){var a=OSF.OUtil.parseXdmInfoWithGivenFragment(b,window.location.hash);if(!a)a=OSF.OUtil.parseXdmInfoFromWindowName(b,window.name);return a},parseXdmInfoFromWindowName:function(a,b){return OSF.OUtil.parseInfoFromWindowName(a,b,OSF.WindowNameItemKeys.XdmInfo)},parseXdmInfoWithGivenFragment:function(a,b){return OSF.OUtil.parseInfoWithGivenFragment(m,l,false,a,b)},parseSerializerVersion:function(b){var a=OSF.OUtil.parseSerializerVersionWithGivenFragment(b,window.location.hash);if(isNaN(a))a=OSF.OUtil.parseSerializerVersionFromWindowName(b,window.name);return a},parseSerializerVersionFromWindowName:function(a,b){return parseInt(OSF.OUtil.parseInfoFromWindowName(a,b,OSF.WindowNameItemKeys.SerializerVersion))},parseSerializerVersionWithGivenFragment:function(a,b){return parseInt(OSF.OUtil.parseInfoWithGivenFragment(k,p,true,a,b))},parseInfoFromWindowName:function(g,h,f){try{var a=JSON.parse(h),b=a!=null?a[f]:null,c=e();if(!g&&c&&a!=null){var d=a[OSF.WindowNameItemKeys.BaseFrameName]+f;if(b)c.setItem(d,b);else b=c.getItem(d)}return b}catch(i){return null}},parseInfoWithGivenFragment:function(m,i,k,h,l){var d=l.split(m),a=d.length>1?d[d.length-1]:null;if(k&&a!=null){if(a.indexOf(j)>=0)a=a.split(j)[0];a=decodeURIComponent(a)}var b=e();if(!h&&b){var c=window.name.indexOf(i);if(c>-1){var f=window.name.indexOf(";",c);if(f==-1)f=window.name.length;var g=window.name.substring(c,f);if(a)b.setItem(g,a);else a=b.getItem(g)}}return a},getConversationId:function(){var b=window.location.search,a=null;if(b){var c=b.indexOf("&");a=c>0?b.substring(1,c):b.substr(1);if(a&&a.charAt(a.length-1)==="="){a=a.substring(0,a.length-1);if(a)a=decodeURIComponent(a)}}return a},getInfoItems:function(b){var a=b.split("$");if(typeof a[1]=="undefined")a=b.split("|");if(typeof a[1]=="undefined")a=b.split("%7C");return a},getXdmFieldValue:function(e,d){var b="",c=OSF.OUtil.parseXdmInfo(d);if(c){var a=OSF.OUtil.getInfoItems(c);if(a!=undefined&&a.length>=3)switch(e){case OSF.XdmFieldName.ConversationUrl:b=a[2];break;case OSF.XdmFieldName.AppId:b=a[1];break}}return b},validateParamObject:function(d,c,e){var a=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:false},{name:"expectedProperties",type:Object,mayBeNull:false},{name:"callback",type:Function,mayBeNull:true}]);if(a)throw a;for(var b in c){a=Function._validateParameter(d[b],c[b],b);if(a)throw a;}},writeProfilerMark:function(a){if(window.msWriteProfilerMark){window.msWriteProfilerMark(a);OsfMsAjaxFactory.msAjaxDebug.trace(a)}},outputDebug:function(a){typeof OsfMsAjaxFactory!=="undefined"&&OsfMsAjaxFactory.msAjaxDebug&&OsfMsAjaxFactory.msAjaxDebug.trace&&OsfMsAjaxFactory.msAjaxDebug.trace(a)},defineNondefaultProperty:function(d,e,a,b){a=a||{};for(var f in b){var c=b[f];if(a[c]==undefined)a[c]=true}Object.defineProperty(d,e,a);return d},defineNondefaultProperties:function(c,a,d){a=a||{};for(var b in a)OSF.OUtil.defineNondefaultProperty(c,b,a[b],d);return c},defineEnumerableProperty:function(c,b,a){return OSF.OUtil.defineNondefaultProperty(c,b,a,["enumerable"])},defineEnumerableProperties:function(b,a){return OSF.OUtil.defineNondefaultProperties(b,a,["enumerable"])},defineMutableProperty:function(c,b,a){return OSF.OUtil.defineNondefaultProperty(c,b,a,["writable","enumerable","configurable"])},defineMutableProperties:function(b,a){return OSF.OUtil.defineNondefaultProperties(b,a,["writable","enumerable","configurable"])},finalizeProperties:function(c,b){b=b||{};for(var e=Object.getOwnPropertyNames(c),g=e.length,d=0;d<g;d++){var f=e[d],a=Object.getOwnPropertyDescriptor(c,f);if(!a.get&&!a.set)a.writable=b.writable||false;a.configurable=b.configurable||false;a.enumerable=b.enumerable||true;Object.defineProperty(c,f,a)}return c},mapList:function(a,c){var b=[];if(a)for(var d in a)b.push(c(a[d]));return b},listContainsKey:function(b,c){for(var a in b)if(c==a)return true;return false},listContainsValue:function(a,b){for(var c in a)if(b==a[c])return true;return false},augmentList:function(a,b){var d=a.push?function(c,b){a.push(b)}:function(c,b){a[c]=b};for(var c in b)d(c,b[c])},redefineList:function(a,b){for(var d in a)delete a[d];for(var c in b)a[c]=b[c]},isArray:function(a){return Object.prototype.toString.apply(a)==="[object Array]"},isFunction:function(a){return Object.prototype.toString.apply(a)==="[object Function]"},isDate:function(a){return Object.prototype.toString.apply(a)==="[object Date]"},addEventListener:function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&a.attachEvent)a.attachEvent("on"+b,c);else a["on"+b]=c},removeEventListener:function(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&a.detachEvent)a.detachEvent("on"+b,c);else a["on"+b]=null},getCookieValue:function(b){var a=RegExp(b+"[^;]+").exec(document.cookie);return a.toString().replace(/^[^=]+./,"")},xhrGet:function(d,c,b){var a;try{a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState==4)if(a.status==200)c(a.responseText);else b(a.status)};a.open("GET",d,true);a.send()}catch(e){b(e)}},xhrGetFull:function(f,d,e,b){var a,c=d;try{a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState==4)if(a.status==200)e(a,c);else b(a.status)};a.open("GET",f,true);a.send()}catch(g){b(g)}},encodeBase64:function(c){if(!c)return c;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=[],b=[],h=0,j,g,i,d,e,f,a,m=c.length;do{j=c.charCodeAt(h++);g=c.charCodeAt(h++);i=c.charCodeAt(h++);a=0;d=j&255;e=j>>8;f=g&255;b[a++]=d>>2;b[a++]=(d&3)<<4|e>>4;b[a++]=(e&15)<<2|f>>6;b[a++]=f&63;if(!isNaN(g)){d=g>>8;e=i&255;f=i>>8;b[a++]=d>>2;b[a++]=(d&3)<<4|e>>4;b[a++]=(e&15)<<2|f>>6;b[a++]=f&63}if(isNaN(g))b[a-1]=64;else if(isNaN(i)){b[a-2]=64;b[a-1]=64}for(var k=0;k<a;k++)l.push(n.charAt(b[k]))}while(h<m);return l.join("")},getSessionStorage:function(){return e()},getLocalStorage:function(){if(!f){try{var a=window.localStorage}catch(b){a=null}f=new OfficeExt.SafeStorage(a)}return f},convertIntToCssHexColor:function(b){var a="#"+(Number(b)+16777216).toString(16).slice(-6);return a},attachClickHandler:function(a,b){a.onclick=function(a){b()};a.ontouchend=function(a){b();a.preventDefault()}},getQueryStringParamValue:function(a,c){var d=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:false},{name:"paramName",type:String,mayBeNull:false}]);if(d){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null.");return""}var b=new RegExp("[\\?&]"+c+"=([^&#]*)","i");if(!b.test(a)){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found.");return""}return b.exec(a)[1]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?true:false},isChrome:function(){return window.navigator.userAgent.indexOf("Chrome")>0&&!OSF.OUtil.isEdge()},isEdge:function(){return window.navigator.userAgent.indexOf("Edge")>0},isIE:function(){return window.navigator.userAgent.indexOf("Trident")>0},isFirefox:function(){return window.navigator.userAgent.indexOf("Firefox")>0},shallowCopy:function(a){if(a==null)return null;else if(!(a instanceof Object))return a;else if(Array.isArray(a)){for(var d=[],c=0;c<a.length;c++)d.push(a[c]);return d}else{var e=a.constructor();for(var b in a)if(a.hasOwnProperty(b))e[b]=a[b];return e}},createObject:function(a){var c=null;if(a){c={};for(var d=a.length,b=0;b<d;b++)c[a[b].name]=a[b].value}return c},addClass:function(b,c){if(!OSF.OUtil.hasClass(b,c)){var d=b.getAttribute(a);if(d)b.setAttribute(a,d+" "+c);else b.setAttribute(a,c)}},removeClass:function(c,d){if(OSF.OUtil.hasClass(c,d)){var b=c.getAttribute(a),e=new RegExp("(\\s|^)"+d+"(\\s|$)");b=b.replace(e,"");c.setAttribute(a,b)}},hasClass:function(d,c){var b=d.getAttribute(a);return b&&b.match(new RegExp("(\\s|^)"+c+"(\\s|$)"))},focusToFirstTabbable:function(a,e){var c,d=false,b,f=function(a){d=true},g=function(c,a,b){if(a<0||a>c)return-1;else if(a===0&&b)return-1;else if(a===c-1&&!b)return-1;if(b)return a-1;else return a+1};a=i(a);c=e?a.length-1:0;if(a.length===0)return null;while(!d&&c>=0&&c<a.length){b=a[c];window.focus();b.addEventListener("focus",f);b.focus();b.removeEventListener("focus",f);c=g(a.length,c,e);if(!d&&b===document.activeElement)d=true}if(d)return b;else return null},focusToNextTabbable:function(b,k,h){var f,a,d=false,c,g=function(a){d=true},j=function(b,c){for(var a=0;a<b.length;a++)if(b[a]===c)return a;return-1},e=function(c,a,b){if(a<0||a>c)return-1;else if(a===0&&b)return-1;else if(a===c-1&&!b)return-1;if(b)return a-1;else return a+1};b=i(b);f=j(b,k);a=e(b.length,f,h);if(a<0)return null;while(!d&&a>=0&&a<b.length){c=b[a];c.addEventListener("focus",g);c.focus();c.removeEventListener("focus",g);a=e(b.length,a,h);if(!d&&c===document.activeElement)d=true}if(d)return c;else return null}}}();OSF.OUtil.Guid=function(){var a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return{generateNewGuid:function(){for(var c="",d=+new Date,b=0;b<32&&d>0;b++){if(b==8||b==12||b==16||b==20)c+="-";c+=a[d%16];d=Math.floor(d/16)}for(;b<32;b++){if(b==8||b==12||b==16||b==20)c+="-";c+=a[Math.floor(Math.random()*16)]}return c}}}();window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);OSF.MessageIDs={FetchBundleUrl:0,LoadReactBundle:1,LoadBundleSuccess:2,LoadBundleError:3};OSF.AppName={Unsupported:0,Excel:1,Word:2,PowerPoint:4,Outlook:8,ExcelWebApp:16,WordWebApp:32,OutlookWebApp:64,Project:128,AccessWebApp:256,PowerpointWebApp:512,ExcelIOS:1024,Sway:2048,WordIOS:4096,PowerPointIOS:8192,Access:16384,Lync:32768,OutlookIOS:65536,OneNoteWebApp:131072,OneNote:262144,ExcelWinRT:524288,WordWinRT:1048576,PowerpointWinRT:2097152,OutlookAndroid:4194304,OneNoteWinRT:8388608,ExcelAndroid:8388609,VisioWebApp:8388610,OneNoteIOS:8388611,WordAndroid:8388613,PowerpointAndroid:8388614,Visio:8388615,OneNoteAndroid:4194305};OSF.InternalPerfMarker={DataCoercionBegin:"Agave.HostCall.CoerceDataStart",DataCoercionEnd:"Agave.HostCall.CoerceDataEnd"};OSF.HostCallPerfMarker={IssueCall:"Agave.HostCall.IssueCall",ReceiveResponse:"Agave.HostCall.ReceiveResponse",RuntimeExceptionRaised:"Agave.HostCall.RuntimeExecptionRaised"};OSF.AgaveHostAction={Select:0,UnSelect:1,CancelDialog:2,InsertAgave:3,CtrlF6In:4,CtrlF6Exit:5,CtrlF6ExitShift:6,SelectWithError:7,NotifyHostError:8,RefreshAddinCommands:9,PageIsReady:10,TabIn:11,TabInShift:12,TabExit:13,TabExitShift:14,EscExit:15,F2Exit:16,ExitNoFocusable:17,ExitNoFocusableShift:18,MouseEnter:19,MouseLeave:20,UpdateTargetUrl:21,InstallCustomFunctions:22,SendTelemetryEvent:23,UninstallCustomFunctions:24};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.DialogMessageType={DialogMessageReceived:0,DialogParentMessageReceived:1,DialogClosed:12006};OSF.OfficeAppContext=function(y,u,p,n,r,v,q,t,x,i,w,k,j,m,g,f,e,d,h,b,c,s,o,a,l){this._id=y;this._appName=u;this._appVersion=p;this._appUILocale=n;this._dataLocale=r;this._docUrl=v;this._clientMode=q;this._settings=t;this._reason=x;this._osfControlType=i;this._eToken=w;this._correlationId=k;this._appInstanceId=j;this._touchEnabled=m;this._commerceAllowed=g;this._appMinorVersion=f;this._requirementMatrix=e;this._hostCustomMessage=d;this._hostFullVersion=h;this._isDialog=false;this._clientWindowHeight=b;this._clientWindowWidth=c;this._addinName=s;this._appDomains=o;this._dialogRequirementMatrix=a;this._featureGates=l;this.get_id=function(){return this._id};this.get_appName=function(){return this._appName};this.get_appVersion=function(){return this._appVersion};this.get_appUILocale=function(){return this._appUILocale};this.get_dataLocale=function(){return this._dataLocale};this.get_docUrl=function(){return this._docUrl};this.get_clientMode=function(){return this._clientMode};this.get_bindings=function(){return this._bindings};this.get_settings=function(){return this._settings};this.get_reason=function(){return this._reason};this.get_osfControlType=function(){return this._osfControlType};this.get_eToken=function(){return this._eToken};this.get_correlationId=function(){return this._correlationId};this.get_appInstanceId=function(){return this._appInstanceId};this.get_touchEnabled=function(){return this._touchEnabled};this.get_commerceAllowed=function(){return this._commerceAllowed};this.get_appMinorVersion=function(){return this._appMinorVersion};this.get_requirementMatrix=function(){return this._requirementMatrix};this.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix};this.get_hostCustomMessage=function(){return this._hostCustomMessage};this.get_hostFullVersion=function(){return this._hostFullVersion};this.get_isDialog=function(){return this._isDialog};this.get_clientWindowHeight=function(){return this._clientWindowHeight};this.get_clientWindowWidth=function(){return this._clientWindowWidth};this.get_addinName=function(){return this._addinName};this.get_appDomains=function(){return this._appDomains};this.get_featureGates=function(){return this._featureGates}};OSF.OsfControlType={DocumentLevel:0,ContainerLevel:1};OSF.ClientMode={ReadOnly:0,ReadWrite:1};OSF.OUtil.setNamespace("Microsoft",window);OSF.OUtil.setNamespace("Office",Microsoft);OSF.OUtil.setNamespace("Client",Microsoft.Office);OSF.OUtil.setNamespace("WebExtension",Microsoft.Office);Microsoft.Office.WebExtension.InitializationReason={Inserted:"inserted",DocumentOpened:"documentOpened"};Microsoft.Office.WebExtension.ValueFormat={Unformatted:"unformatted",Formatted:"formatted"};Microsoft.Office.WebExtension.FilterType={All:"all"};Microsoft.Office.WebExtension.Parameters={BindingType:"bindingType",CoercionType:"coercionType",ValueFormat:"valueFormat",FilterType:"filterType",Columns:"columns",SampleData:"sampleData",GoToType:"goToType",SelectionMode:"selectionMode",Id:"id",PromptText:"promptText",ItemName:"itemName",FailOnCollision:"failOnCollision",StartRow:"startRow",StartColumn:"startColumn",RowCount:"rowCount",ColumnCount:"columnCount",Callback:"callback",AsyncContext:"asyncContext",Data:"data",Rows:"rows",OverwriteIfStale:"overwriteIfStale",FileType:"fileType",EventType:"eventType",Handler:"handler",SliceSize:"sliceSize",SliceIndex:"sliceIndex",ActiveView:"activeView",Status:"status",PlatformType:"platformType",HostType:"hostType",ForceConsent:"forceConsent",ForceAddAccount:"forceAddAccount",AuthChallenge:"authChallenge",Reserved:"reserved",Tcid:"tcid",Xml:"xml",Namespace:"namespace",Prefix:"prefix",XPath:"xPath",Text:"text",ImageLeft:"imageLeft",ImageTop:"imageTop",ImageWidth:"imageWidth",ImageHeight:"imageHeight",TaskId:"taskId",FieldId:"fieldId",FieldValue:"fieldValue",ServerUrl:"serverUrl",ListName:"listName",ResourceId:"resourceId",ViewType:"viewType",ViewName:"viewName",GetRawValue:"getRawValue",CellFormat:"cellFormat",TableOptions:"tableOptions",TaskIndex:"taskIndex",ResourceIndex:"resourceIndex",CustomFieldId:"customFieldId",Url:"url",MessageHandler:"messageHandler",Width:"width",Height:"height",RequireHTTPs:"requireHTTPS",MessageToParent:"messageToParent",DisplayInIframe:"displayInIframe",MessageContent:"messageContent",HideTitle:"hideTitle",UseDeviceIndependentPixels:"useDeviceIndependentPixels",PromptBeforeOpen:"promptBeforeOpen",EnforceAppDomain:"enforceAppDomain",AppCommandInvocationCompletedData:"appCommandInvocationCompletedData",Base64:"base64",FormId:"formId"};OSF.OUtil.setNamespace("DDA",OSF);OSF.DDA.DocumentMode={ReadOnly:1,ReadWrite:0};OSF.DDA.PropertyDescriptors={AsyncResultStatus:"AsyncResultStatus"};OSF.DDA.EventDescriptors={};OSF.DDA.ListDescriptors={};OSF.DDA.UI={};OSF.DDA.getXdmEventName=function(b,a){if(a==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||a==Microsoft.Office.WebExtension.EventType.BindingDataChanged||a==Microsoft.Office.WebExtension.EventType.DataNodeDeleted||a==Microsoft.Office.WebExtension.EventType.DataNodeInserted||a==Microsoft.Office.WebExtension.EventType.DataNodeReplaced)return b+"_"+a;else return a};OSF.DDA.MethodDispId={dispidMethodMin:64,dispidGetSelectedDataMethod:64,dispidSetSelectedDataMethod:65,dispidAddBindingFromSelectionMethod:66,dispidAddBindingFromPromptMethod:67,dispidGetBindingMethod:68,dispidReleaseBindingMethod:69,dispidGetBindingDataMethod:70,dispidSetBindingDataMethod:71,dispidAddRowsMethod:72,dispidClearAllRowsMethod:73,dispidGetAllBindingsMethod:74,dispidLoadSettingsMethod:75,dispidSaveSettingsMethod:76,dispidGetDocumentCopyMethod:77,dispidAddBindingFromNamedItemMethod:78,dispidAddColumnsMethod:79,dispidGetDocumentCopyChunkMethod:80,dispidReleaseDocumentCopyMethod:81,dispidNavigateToMethod:82,dispidGetActiveViewMethod:83,dispidGetDocumentThemeMethod:84,dispidGetOfficeThemeMethod:85,dispidGetFilePropertiesMethod:86,dispidClearFormatsMethod:87,dispidSetTableOptionsMethod:88,dispidSetFormatsMethod:89,dispidExecuteRichApiRequestMethod:93,dispidAppCommandInvocationCompletedMethod:94,dispidCloseContainerMethod:97,dispidGetAccessTokenMethod:98,dispidGetAuthContextMethod:99,dispidOpenBrowserWindow:102,dispidCreateDocumentMethod:105,dispidInsertFormMethod:106,dispidDisplayRibbonCalloutAsyncMethod:109,dispidGetSelectedTaskMethod:110,dispidGetSelectedResourceMethod:111,dispidGetTaskMethod:112,dispidGetResourceFieldMethod:113,dispidGetWSSUrlMethod:114,dispidGetTaskFieldMethod:115,dispidGetProjectFieldMethod:116,dispidGetSelectedViewMethod:117,dispidGetTaskByIndexMethod:118,dispidGetResourceByIndexMethod:119,dispidSetTaskFieldMethod:120,dispidSetResourceFieldMethod:121,dispidGetMaxTaskIndexMethod:122,dispidGetMaxResourceIndexMethod:123,dispidCreateTaskMethod:124,dispidAddDataPartMethod:128,dispidGetDataPartByIdMethod:129,dispidGetDataPartsByNamespaceMethod:130,dispidGetDataPartXmlMethod:131,dispidGetDataPartNodesMethod:132,dispidDeleteDataPartMethod:133,dispidGetDataNodeValueMethod:134,dispidGetDataNodeXmlMethod:135,dispidGetDataNodesMethod:136,dispidSetDataNodeValueMethod:137,dispidSetDataNodeXmlMethod:138,dispidAddDataNamespaceMethod:139,dispidGetDataUriByPrefixMethod:140,dispidGetDataPrefixByUriMethod:141,dispidGetDataNodeTextMethod:142,dispidSetDataNodeTextMethod:143,dispidMessageParentMethod:144,dispidSendMessageMethod:145,dispidExecuteFeature:146,dispidQueryFeature:147,dispidMethodMax:147};OSF.DDA.EventDispId={dispidEventMin:0,dispidInitializeEvent:0,dispidSettingsChangedEvent:1,dispidDocumentSelectionChangedEvent:2,dispidBindingSelectionChangedEvent:3,dispidBindingDataChangedEvent:4,dispidDocumentOpenEvent:5,dispidDocumentCloseEvent:6,dispidActiveViewChangedEvent:7,dispidDocumentThemeChangedEvent:8,dispidOfficeThemeChangedEvent:9,dispidDialogMessageReceivedEvent:10,dispidDialogNotificationShownInAddinEvent:11,dispidDialogParentMessageReceivedEvent:12,dispidObjectDeletedEvent:13,dispidObjectSelectionChangedEvent:14,dispidObjectDataChangedEvent:15,dispidContentControlAddedEvent:16,dispidActivationStatusChangedEvent:32,dispidRichApiMessageEvent:33,dispidAppCommandInvokedEvent:39,dispidOlkItemSelectedChangedEvent:46,dispidOlkRecipientsChangedEvent:47,dispidOlkAppointmentTimeChangedEvent:48,dispidOlkRecurrenceChangedEvent:49,dispidOlkAttachmentsChangedEvent:50,dispidOlkEnhancedLocationsChangedEvent:51,dispidOlkInfobarClickedEvent:52,dispidTaskSelectionChangedEvent:56,dispidResourceSelectionChangedEvent:57,dispidViewSelectionChangedEvent:58,dispidDataNodeAddedEvent:60,dispidDataNodeReplacedEvent:61,dispidDataNodeDeletedEvent:62,dispidEventMax:63};OSF.DDA.ErrorCodeManager=function(){var a={};return{getErrorArgs:function(c){var b=a[c];if(!b)b=a[this.errorCodes.ooeInternalError];else{if(!b.name)b.name=a[this.errorCodes.ooeInternalError].name;if(!b.message)b.message=a[this.errorCodes.ooeInternalError].message}return b},addErrorMessage:function(c,b){a[c]=b},errorCodes:{ooeSuccess:0,ooeChunkResult:1,ooeCoercionTypeNotSupported:1e3,ooeGetSelectionNotMatchDataType:1001,ooeCoercionTypeNotMatchBinding:1002,ooeInvalidGetRowColumnCounts:1003,ooeSelectionNotSupportCoercionType:1004,ooeInvalidGetStartRowColumn:1005,ooeNonUniformPartialGetNotSupported:1006,ooeGetDataIsTooLarge:1008,ooeFileTypeNotSupported:1009,ooeGetDataParametersConflict:1010,ooeInvalidGetColumns:1011,ooeInvalidGetRows:1012,ooeInvalidReadForBlankRow:1013,ooeUnsupportedDataObject:2e3,ooeCannotWriteToSelection:2001,ooeDataNotMatchSelection:2002,ooeOverwriteWorksheetData:2003,ooeDataNotMatchBindingSize:2004,ooeInvalidSetStartRowColumn:2005,ooeInvalidDataFormat:2006,ooeDataNotMatchCoercionType:2007,ooeDataNotMatchBindingType:2008,ooeSetDataIsTooLarge:2009,ooeNonUniformPartialSetNotSupported:2010,ooeInvalidSetColumns:2011,ooeInvalidSetRows:2012,ooeSetDataParametersConflict:2013,ooeCellDataAmountBeyondLimits:2014,ooeSelectionCannotBound:3e3,ooeBindingNotExist:3002,ooeBindingToMultipleSelection:3003,ooeInvalidSelectionForBindingType:3004,ooeOperationNotSupportedOnThisBindingType:3005,ooeNamedItemNotFound:3006,ooeMultipleNamedItemFound:3007,ooeInvalidNamedItemForBindingType:3008,ooeUnknownBindingType:3009,ooeOperationNotSupportedOnMatrixData:3010,ooeInvalidColumnsForBinding:3011,ooeSettingNameNotExist:4e3,ooeSettingsCannotSave:4001,ooeSettingsAreStale:4002,ooeOperationNotSupported:5e3,ooeInternalError:5001,ooeDocumentReadOnly:5002,ooeEventHandlerNotExist:5003,ooeInvalidApiCallInContext:5004,ooeShuttingDown:5005,ooeUnsupportedEnumeration:5007,ooeIndexOutOfRange:5008,ooeBrowserAPINotSupported:5009,ooeInvalidParam:5010,ooeRequestTimeout:5011,ooeInvalidOrTimedOutSession:5012,ooeInvalidApiArguments:5013,ooeOperationCancelled:5014,ooeWorkbookHidden:5015,ooeTooManyIncompleteRequests:5100,ooeRequestTokenUnavailable:5101,ooeActivityLimitReached:5102,ooeCustomXmlNodeNotFound:6e3,ooeCustomXmlError:6100,ooeCustomXmlExceedQuota:6101,ooeCustomXmlOutOfDate:6102,ooeNoCapability:7e3,ooeCannotNavTo:7001,ooeSpecifiedIdNotExist:7002,ooeNavOutOfBound:7004,ooeElementMissing:8e3,ooeProtectedError:8001,ooeInvalidCellsValue:8010,ooeInvalidTableOptionValue:8011,ooeInvalidFormatValue:8012,ooeRowIndexOutOfRange:8020,ooeColIndexOutOfRange:8021,ooeFormatValueOutOfRange:8022,ooeCellFormatAmountBeyondLimits:8023,ooeMemoryFileLimit:11e3,ooeNetworkProblemRetrieveFile:11001,ooeInvalidSliceSize:11002,ooeInvalidCallback:11101,ooeInvalidWidth:12e3,ooeInvalidHeight:12001,ooeNavigationError:12002,ooeInvalidScheme:12003,ooeAppDomains:12004,ooeRequireHTTPS:12005,ooeWebDialogClosed:12006,ooeDialogAlreadyOpened:12007,ooeEndUserAllow:12008,ooeEndUserIgnore:12009,ooeNotUILessDialog:12010,ooeCrossZone:12011,ooeNotSSOAgave:13e3,ooeSSOUserNotSignedIn:13001,ooeSSOUserAborted:13002,ooeSSOUnsupportedUserIdentity:13003,ooeSSOInvalidResourceUrl:13004,ooeSSOInvalidGrant:13005,ooeSSOClientError:13006,ooeSSOServerError:13007,ooeAddinIsAlreadyRequestingToken:13008,ooeSSOUserConsentNotSupportedByCurrentAddinCategory:13009,ooeSSOConnectionLost:13010,ooeResourceNotAllowed:13011,ooeSSOUnsupportedPlatform:13012,ooeAccessDenied:13990,ooeGeneralException:13991},initializeErrorMessages:function(b){a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported]={name:b.L_InvalidCoercion,message:b.L_CoercionTypeNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType]={name:b.L_DataReadError,message:b.L_GetSelectionNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding]={name:b.L_InvalidCoercion,message:b.L_CoercionTypeNotMatchBinding};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts]={name:b.L_DataReadError,message:b.L_InvalidGetRowColumnCounts};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType]={name:b.L_DataReadError,message:b.L_SelectionNotSupportCoercionType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn]={name:b.L_DataReadError,message:b.L_InvalidGetStartRowColumn};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported]={name:b.L_DataReadError,message:b.L_NonUniformPartialGetNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge]={name:b.L_DataReadError,message:b.L_GetDataIsTooLarge};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported]={name:b.L_DataReadError,message:b.L_FileTypeNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict]={name:b.L_DataReadError,message:b.L_GetDataParametersConflict};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns]={name:b.L_DataReadError,message:b.L_InvalidGetColumns};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows]={name:b.L_DataReadError,message:b.L_InvalidGetRows};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow]={name:b.L_DataReadError,message:b.L_InvalidReadForBlankRow};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject]={name:b.L_DataWriteError,message:b.L_UnsupportedDataObject};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection]={name:b.L_DataWriteError,message:b.L_CannotWriteToSelection};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection]={name:b.L_DataWriteError,message:b.L_DataNotMatchSelection};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData]={name:b.L_DataWriteError,message:b.L_OverwriteWorksheetData};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize]={name:b.L_DataWriteError,message:b.L_DataNotMatchBindingSize};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn]={name:b.L_DataWriteError,message:b.L_InvalidSetStartRowColumn};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat]={name:b.L_InvalidFormat,message:b.L_InvalidDataFormat};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType]={name:b.L_InvalidDataObject,message:b.L_DataNotMatchCoercionType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType]={name:b.L_InvalidDataObject,message:b.L_DataNotMatchBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge]={name:b.L_DataWriteError,message:b.L_SetDataIsTooLarge};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported]={name:b.L_DataWriteError,message:b.L_NonUniformPartialSetNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns]={name:b.L_DataWriteError,message:b.L_InvalidSetColumns};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows]={name:b.L_DataWriteError,message:b.L_InvalidSetRows};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict]={name:b.L_DataWriteError,message:b.L_SetDataParametersConflict};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound]={name:b.L_BindingCreationError,message:b.L_SelectionCannotBound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist]={name:b.L_InvalidBindingError,message:b.L_BindingNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection]={name:b.L_BindingCreationError,message:b.L_BindingToMultipleSelection};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType]={name:b.L_BindingCreationError,message:b.L_InvalidSelectionForBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType]={name:b.L_InvalidBindingOperation,message:b.L_OperationNotSupportedOnThisBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound]={name:b.L_BindingCreationError,message:b.L_NamedItemNotFound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound]={name:b.L_BindingCreationError,message:b.L_MultipleNamedItemFound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType]={name:b.L_BindingCreationError,message:b.L_InvalidNamedItemForBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType]={name:b.L_InvalidBinding,message:b.L_UnknownBindingType};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData]={name:b.L_InvalidBindingOperation,message:b.L_OperationNotSupportedOnMatrixData};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding]={name:b.L_InvalidBinding,message:b.L_InvalidColumnsForBinding};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist]={name:b.L_ReadSettingsError,message:b.L_SettingNameNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave]={name:b.L_SaveSettingsError,message:b.L_SettingsCannotSave};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale]={name:b.L_SettingsStaleError,message:b.L_SettingsAreStale};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported]={name:b.L_HostError,message:b.L_OperationNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError]={name:b.L_InternalError,message:b.L_InternalErrorDescription};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly]={name:b.L_PermissionDenied,message:b.L_DocumentReadOnly};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist]={name:b.L_EventRegistrationError,message:b.L_EventHandlerNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext]={name:b.L_InvalidAPICall,message:b.L_InvalidApiCallInContext};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown]={name:b.L_ShuttingDown,message:b.L_ShuttingDown};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration]={name:b.L_UnsupportedEnumeration,message:b.L_UnsupportedEnumerationMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange]={name:b.L_IndexOutOfRange,message:b.L_IndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported]={name:b.L_APINotSupported,message:b.L_BrowserAPINotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout]={name:b.L_APICallFailed,message:b.L_RequestTimeout};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidOrTimedOutSession]={name:b.L_InvalidOrTimedOutSession,message:b.L_InvalidOrTimedOutSessionMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests]={name:b.L_APICallFailed,message:b.L_TooManyIncompleteRequests};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable]={name:b.L_APICallFailed,message:b.L_RequestTokenUnavailable};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeActivityLimitReached]={name:b.L_APICallFailed,message:b.L_ActivityLimitReached};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiArguments]={name:b.L_APICallFailed,message:b.L_InvalidApiArgumentsMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeWorkbookHidden]={name:b.L_APICallFailed,message:b.L_WorkbookHiddenMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound]={name:b.L_InvalidNode,message:b.L_CustomXmlNodeNotFound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError]={name:b.L_CustomXmlError,message:b.L_CustomXmlError};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlExceedQuota]={name:b.L_CustomXmlExceedQuotaName,message:b.L_CustomXmlExceedQuotaMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate]={name:b.L_CustomXmlOutOfDateName,message:b.L_CustomXmlOutOfDateMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability]={name:b.L_PermissionDenied,message:b.L_NoCapability};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo]={name:b.L_CannotNavigateTo,message:b.L_CannotNavigateTo};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist]={name:b.L_SpecifiedIdNotExist,message:b.L_SpecifiedIdNotExist};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound]={name:b.L_NavOutOfBound,message:b.L_NavOutOfBound};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits]={name:b.L_DataWriteReminder,message:b.L_CellDataAmountBeyondLimits};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing]={name:b.L_MissingParameter,message:b.L_ElementMissing};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError]={name:b.L_PermissionDenied,message:b.L_NoCapability};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue]={name:b.L_InvalidValue,message:b.L_InvalidCellsValue};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue]={name:b.L_InvalidValue,message:b.L_InvalidTableOptionValue};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue]={name:b.L_InvalidValue,message:b.L_InvalidFormatValue};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange]={name:b.L_OutOfRange,message:b.L_RowIndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange]={name:b.L_OutOfRange,message:b.L_ColIndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange]={name:b.L_OutOfRange,message:b.L_FormatValueOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits]={name:b.L_FormattingReminder,message:b.L_CellFormatAmountBeyondLimits};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit]={name:b.L_MemoryLimit,message:b.L_CloseFileBeforeRetrieve};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile]={name:b.L_NetworkProblem,message:b.L_NetworkProblemRetrieveFile};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize]={name:b.L_InvalidValue,message:b.L_SliceSizeNotSupported};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened]={name:b.L_DisplayDialogError,message:b.L_DialogAlreadyOpened};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidWidth]={name:b.L_IndexOutOfRange,message:b.L_IndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidHeight]={name:b.L_IndexOutOfRange,message:b.L_IndexOutOfRange};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavigationError]={name:b.L_DisplayDialogError,message:b.L_NetworkProblem};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidScheme]={name:b.L_DialogNavigateError,message:b.L_DialogInvalidScheme};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeAppDomains]={name:b.L_DisplayDialogError,message:b.L_DialogAddressNotTrusted};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequireHTTPS]={name:b.L_DisplayDialogError,message:b.L_DialogRequireHTTPS};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeEndUserIgnore]={name:b.L_DisplayDialogError,message:b.L_UserClickIgnore};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeCrossZone]={name:b.L_DisplayDialogError,message:b.L_NewWindowCrossZoneErrorString};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeNotSSOAgave]={name:b.L_APINotSupported,message:b.L_InvalidSSOAddinMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserNotSignedIn]={name:b.L_UserNotSignedIn,message:b.L_UserNotSignedIn};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserAborted]={name:b.L_UserAborted,message:b.L_UserAbortedMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedUserIdentity]={name:b.L_UnsupportedUserIdentity,message:b.L_UnsupportedUserIdentityMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidResourceUrl]={name:b.L_InvalidResourceUrl,message:b.L_InvalidResourceUrlMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidGrant]={name:b.L_InvalidGrant,message:b.L_InvalidGrantMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOClientError]={name:b.L_SSOClientError,message:b.L_SSOClientErrorMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOServerError]={name:b.L_SSOServerError,message:b.L_SSOServerErrorMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeAddinIsAlreadyRequestingToken]={name:b.L_AddinIsAlreadyRequestingToken,message:b.L_AddinIsAlreadyRequestingTokenMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserConsentNotSupportedByCurrentAddinCategory]={name:b.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:b.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOConnectionLost]={name:b.L_SSOConnectionLostError,message:b.L_SSOConnectionLostErrorMessage};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedPlatform]={name:b.L_SSOConnectionLostError,message:b.L_SSOUnsupportedPlatform};a[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationCancelled]={name:b.L_OperationCancelledError,message:b.L_OperationCancelledErrorMessage}}}}();var OfficeExt;(function(a){var b;(function(a){var y=function(){function a(){}return a}();a.RequirementVersion=y;var c=function(){function a(a){this.isSetSupported=function(d,b){if(d==undefined)return false;if(b==undefined)b=0;var f=this._setMap,e=f._sets;if(e.hasOwnProperty(d.toLowerCase())){var g=e[d.toLowerCase()];try{var a=this._getVersion(g);b=b+"";var c=this._getVersion(b);if(a.major>0&&a.major>c.major)return true;if(a.minor>0&&a.minor>0&&a.major==c.major&&a.minor>=c.minor)return true}catch(h){return false}}return false};this._getVersion=function(a){a=a+"";var b=a.split("."),c=0,d=0;if(b.length<2&&isNaN(Number(a)))throw"version format incorrect";else{c=Number(b[0]);if(b.length>=2)d=Number(b[1]);if(isNaN(c)||isNaN(d))throw"version format incorrect";}var e={minor:d,major:c};return e};this._setMap=a;this.isSetSupported=this.isSetSupported.bind(this)}return a}();a.RequirementMatrix=c;var b=function(){function a(a){this._addSetMap=function(a){for(var b in a)this._sets[b]=a[b]};this._sets=a}return a}();a.DefaultSetRequirement=b;var w=function(b){__extends(a,b);function a(){b.call(this,{dialogapi:1.1})}return a}(b);a.DefaultDialogSetRequirement=w;var e=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,documentevents:1.1,excelapi:1.1,matrixbindings:1.1,matrixcoercion:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1})}return a}(b);a.ExcelClientDefaultSetRequirement=e;var j=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({imagecoercion:1.1})}return a}(e);a.ExcelClientV1DefaultSetRequirement=j;var k=function(b){__extends(a,b);function a(){b.call(this,{mailbox:1.3})}return a}(b);a.OutlookClientDefaultSetRequirement=k;var g=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,compressedfile:1.1,customxmlparts:1.1,documentevents:1.1,file:1.1,htmlcoercion:1.1,matrixbindings:1.1,matrixcoercion:1.1,ooxmlcoercion:1.1,pdffile:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1,textfile:1.1,wordapi:1.1})}return a}(b);a.WordClientDefaultSetRequirement=g;var o=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2,imagecoercion:1.1})}return a}(g);a.WordClientV1DefaultSetRequirement=o;var d=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,compressedfile:1.1,documentevents:1.1,file:1.1,pdffile:1.1,selection:1.1,settings:1.1,textcoercion:1.1})}return a}(b);a.PowerpointClientDefaultSetRequirement=d;var i=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({imagecoercion:1.1})}return a}(d);a.PowerpointClientV1DefaultSetRequirement=i;var n=function(b){__extends(a,b);function a(){b.call(this,{selection:1.1,textcoercion:1.1})}return a}(b);a.ProjectClientDefaultSetRequirement=n;var t=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,documentevents:1.1,matrixbindings:1.1,matrixcoercion:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1,file:1.1})}return a}(b);a.ExcelWebDefaultSetRequirement=t;var v=function(b){__extends(a,b);function a(){b.call(this,{compressedfile:1.1,documentevents:1.1,file:1.1,imagecoercion:1.1,matrixcoercion:1.1,ooxmlcoercion:1.1,pdffile:1.1,selection:1.1,settings:1.1,tablecoercion:1.1,textcoercion:1.1,textfile:1.1})}return a}(b);a.WordWebDefaultSetRequirement=v;var m=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,settings:1.1})}return a}(b);a.PowerpointWebDefaultSetRequirement=m;var f=function(b){__extends(a,b);function a(){b.call(this,{mailbox:1.3})}return a}(b);a.OutlookWebDefaultSetRequirement=f;var u=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,documentevents:1.1,selection:1.1,settings:1.1,textcoercion:1.1})}return a}(b);a.SwayWebDefaultSetRequirement=u;var q=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,partialtablebindings:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1})}return a}(b);a.AccessWebDefaultSetRequirement=q;var s=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,documentevents:1.1,matrixbindings:1.1,matrixcoercion:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1})}return a}(b);a.ExcelIOSDefaultSetRequirement=s;var h=function(b){__extends(a,b);function a(){b.call(this,{bindingevents:1.1,compressedfile:1.1,customxmlparts:1.1,documentevents:1.1,file:1.1,htmlcoercion:1.1,matrixbindings:1.1,matrixcoercion:1.1,ooxmlcoercion:1.1,pdffile:1.1,selection:1.1,settings:1.1,tablebindings:1.1,tablecoercion:1.1,textbindings:1.1,textcoercion:1.1,textfile:1.1})}return a}(b);a.WordIOSDefaultSetRequirement=h;var r=function(b){__extends(a,b);function a(){b.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2})}return a}(h);a.WordIOSV1DefaultSetRequirement=r;var l=function(b){__extends(a,b);function a(){b.call(this,{activeview:1.1,compressedfile:1.1,documentevents:1.1,file:1.1,pdffile:1.1,selection:1.1,settings:1.1,textcoercion:1.1})}return a}(b);a.PowerpointIOSDefaultSetRequirement=l;var p=function(b){__extends(a,b);function a(){b.call(this,{mailbox:1.1})}return a}(b);a.OutlookIOSDefaultSetRequirement=p;var x=function(){function a(){}a.initializeOsfDda=function(){OSF.OUtil.setNamespace("Requirement",OSF.DDA)};a.getDefaultRequirementMatrix=function(e){this.initializeDefaultSetMatrix();var d=undefined,f=e.get_requirementMatrix();if(f!=undefined&&f.length>0&&typeof JSON!=="undefined"){var h=JSON.parse(e.get_requirementMatrix().toLowerCase());d=new c(new b(h))}else{var g=a.getClientFullVersionString(e);if(a.DefaultSetArrayMatrix!=undefined&&a.DefaultSetArrayMatrix[g]!=undefined)d=new c(a.DefaultSetArrayMatrix[g]);else d=new c(new b({}))}return d};a.getDefaultDialogRequirementMatrix=function(e){var a=undefined,d=e.get_dialogRequirementMatrix();if(d!=undefined&&d.length>0&&typeof JSON!=="undefined"){var f=JSON.parse(e.get_requirementMatrix().toLowerCase());a=new c(new b(f))}else a=new c(new w);return a};a.getClientFullVersionString=function(a){var d=a.get_appMinorVersion(),e="",b="",c=a.get_appName(),f=c==1024||c==4096||c==8192||c==65536;if(f&&a.get_appVersion()==1)if(c==4096&&d>=15)b="16.00.01";else b="16.00";else if(a.get_appName()==64)b=a.get_appVersion();else{if(d<10)e="0"+d;else e=""+d;b=a.get_appVersion()+"."+e}return a.get_appName()+"-"+b};a.initializeDefaultSetMatrix=function(){a.DefaultSetArrayMatrix[a.Excel_RCLIENT_1600]=new e;a.DefaultSetArrayMatrix[a.Word_RCLIENT_1600]=new g;a.DefaultSetArrayMatrix[a.PowerPoint_RCLIENT_1600]=new d;a.DefaultSetArrayMatrix[a.Excel_RCLIENT_1601]=new j;a.DefaultSetArrayMatrix[a.Word_RCLIENT_1601]=new o;a.DefaultSetArrayMatrix[a.PowerPoint_RCLIENT_1601]=new i;a.DefaultSetArrayMatrix[a.Outlook_RCLIENT_1600]=new k;a.DefaultSetArrayMatrix[a.Excel_WAC_1600]=new t;a.DefaultSetArrayMatrix[a.Word_WAC_1600]=new v;a.DefaultSetArrayMatrix[a.Outlook_WAC_1600]=new f;a.DefaultSetArrayMatrix[a.Outlook_WAC_1601]=new f;a.DefaultSetArrayMatrix[a.Project_RCLIENT_1600]=new n;a.DefaultSetArrayMatrix[a.Access_WAC_1600]=new q;a.DefaultSetArrayMatrix[a.PowerPoint_WAC_1600]=new m;a.DefaultSetArrayMatrix[a.Excel_IOS_1600]=new s;a.DefaultSetArrayMatrix[a.SWAY_WAC_1600]=new u;a.DefaultSetArrayMatrix[a.Word_IOS_1600]=new h;a.DefaultSetArrayMatrix[a.Word_IOS_16001]=new r;a.DefaultSetArrayMatrix[a.PowerPoint_IOS_1600]=new l;a.DefaultSetArrayMatrix[a.Outlook_IOS_1600]=new p};a.Excel_RCLIENT_1600="1-16.00";a.Excel_RCLIENT_1601="1-16.01";a.Word_RCLIENT_1600="2-16.00";a.Word_RCLIENT_1601="2-16.01";a.PowerPoint_RCLIENT_1600="4-16.00";a.PowerPoint_RCLIENT_1601="4-16.01";a.Outlook_RCLIENT_1600="8-16.00";a.Excel_WAC_1600="16-16.00";a.Word_WAC_1600="32-16.00";a.Outlook_WAC_1600="64-16.00";a.Outlook_WAC_1601="64-16.01";a.Project_RCLIENT_1600="128-16.00";a.Access_WAC_1600="256-16.00";a.PowerPoint_WAC_1600="512-16.00";a.Excel_IOS_1600="1024-16.00";a.SWAY_WAC_1600="2048-16.00";a.Word_IOS_1600="4096-16.00";a.Word_IOS_16001="4096-16.00.01";a.PowerPoint_IOS_1600="8192-16.00";a.Outlook_IOS_1600="65536-16.00";a.DefaultSetArrayMatrix={};return a}();a.RequirementsMatrixFactory=x})(b=a.Requirement||(a.Requirement={}))})(OfficeExt||(OfficeExt={}));OfficeExt.Requirement.RequirementsMatrixFactory.initializeOsfDda();Microsoft.Office.WebExtension.ApplicationMode={WebEditor:"webEditor",WebViewer:"webViewer",Client:"client"};Microsoft.Office.WebExtension.DocumentMode={ReadOnly:"readOnly",ReadWrite:"readWrite"};OSF.NamespaceManager=function(){var b,a=false;return{enableShortcut:function(){if(!a){if(window.Office)b=window.Office;else OSF.OUtil.setNamespace("Office",window);window.Office=Microsoft.Office.WebExtension;a=true}},disableShortcut:function(){if(a){if(b)window.Office=b;else OSF.OUtil.unsetNamespace("Office",window);a=false}}}}();OSF.NamespaceManager.enableShortcut();Microsoft.Office.WebExtension.useShortNamespace=function(a){if(a)OSF.NamespaceManager.enableShortcut();else OSF.NamespaceManager.disableShortcut()};Microsoft.Office.WebExtension.select=function(a,b){var c;if(a&&typeof a=="string"){var d=a.indexOf("#");if(d!=-1){var h=a.substring(0,d),g=a.substring(d+1);switch(h){case"binding":case"bindings":if(g)c=new OSF.DDA.BindingPromise(g);break}}}if(!c){if(b){var e=typeof b;if(e=="function"){var f={};f[Microsoft.Office.WebExtension.Parameters.Callback]=b;OSF.DDA.issueAsyncResult(f,OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext,OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext))}else throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,e);}}else{c.onFail=b;return c}};OSF.DDA.Context=function(a,e,f,b,c){OSF.OUtil.defineEnumerableProperties(this,{contentLanguage:{value:a.get_dataLocale()},displayLanguage:{value:a.get_appUILocale()},touchEnabled:{value:a.get_touchEnabled()},commerceAllowed:{value:a.get_commerceAllowed()},host:{value:OfficeExt.HostName.Host.getInstance().getHost()},platform:{value:OfficeExt.HostName.Host.getInstance().getPlatform()},isDialog:{value:OSF._OfficeAppFactory.getHostInfo().isDialog},diagnostics:{value:OfficeExt.HostName.Host.getInstance().getDiagnostics(a.get_hostFullVersion())}});f&&OSF.OUtil.defineEnumerableProperty(this,"license",{value:f});a.ui&&OSF.OUtil.defineEnumerableProperty(this,"ui",{value:a.ui});a.auth&&OSF.OUtil.defineEnumerableProperty(this,"auth",{value:a.auth});a.webAuth&&OSF.OUtil.defineEnumerableProperty(this,"webAuth",{value:a.webAuth});a.application&&OSF.OUtil.defineEnumerableProperty(this,"application",{value:a.application});if(a.get_isDialog()){var d=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(a);OSF.OUtil.defineEnumerableProperty(this,"requirements",{value:d})}else{e&&OSF.OUtil.defineEnumerableProperty(this,"document",{value:e});if(b){var g=b.displayName||"appOM";delete b.displayName;OSF.OUtil.defineEnumerableProperty(this,g,{value:b})}c&&OSF.OUtil.defineEnumerableProperty(this,"officeTheme",{"get":function(){return c()}});var d=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(a);OSF.OUtil.defineEnumerableProperty(this,"requirements",{value:d})}};OSF.DDA.OutlookContext=function(c,a,d,e,b){OSF.DDA.OutlookContext.uber.constructor.call(this,c,null,d,e,b);a&&OSF.OUtil.defineEnumerableProperty(this,"roamingSettings",{value:a})};OSF.OUtil.extend(OSF.DDA.OutlookContext,OSF.DDA.Context);OSF.DDA.OutlookAppOm=function(a,c,b){};OSF.DDA.Application=function(a){};OSF.DDA.Document=function(b,c){var a;switch(b.get_clientMode()){case OSF.ClientMode.ReadOnly:a=Microsoft.Office.WebExtension.DocumentMode.ReadOnly;break;case OSF.ClientMode.ReadWrite:a=Microsoft.Office.WebExtension.DocumentMode.ReadWrite;break}c&&OSF.OUtil.defineEnumerableProperty(this,"settings",{value:c});OSF.OUtil.defineMutableProperties(this,{mode:{value:a},url:{value:b.get_docUrl()}})};OSF.DDA.JsomDocument=function(c,a,d){OSF.DDA.JsomDocument.uber.constructor.call(this,c,d);a&&OSF.OUtil.defineEnumerableProperty(this,"bindings",{"get":function(){return a}});var b=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[b.GetSelectedDataAsync,b.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(this,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged]))};OSF.OUtil.extend(OSF.DDA.JsomDocument,OSF.DDA.Document);OSF.OUtil.defineEnumerableProperty(Microsoft.Office.WebExtension,"context",{"get":function(){var a;if(OSF&&OSF._OfficeAppFactory)a=OSF._OfficeAppFactory.getContext();return a}});OSF.DDA.License=function(a){OSF.OUtil.defineEnumerableProperty(this,"value",{value:a})};OSF.DDA.ApiMethodCall=function(b,e,d,f,g){var c=b.length,a=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,g)});this.verifyArguments=function(d,f){for(var e in d){var b=d[e],c=f[e];if(b["enum"])switch(typeof c){case"string":if(OSF.OUtil.listContainsValue(b["enum"],c))break;case"undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;default:throw a();}if(b.types)if(!OSF.OUtil.listContainsValue(b.types,typeof c))throw a();}};this.extractRequiredArguments=function(g,l,j){if(g.length<c)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(var e=[],d=0;d<c;d++)e.push(g[d]);this.verifyArguments(b,e);var i={};for(d=0;d<c;d++){var f=b[d],h=e[d];if(f.verify){var k=f.verify(h,l,j);if(!k)throw a();}i[f.name]=h}return i},this.fillOptions=function(a,f,h,g){a=a||{};for(var d in e)if(!OSF.OUtil.listContainsKey(a,d)){var c=undefined,b=e[d];if(b.calculate&&f)c=b.calculate(f,h,g);if(!c&&b.defaultValue!==undefined)c=b.defaultValue;a[d]=c}return a};this.constructCallArgs=function(c,e,g,b){var a={};for(var i in c)a[i]=c[i];for(var h in e)a[h]=e[h];for(var j in d)a[j]=d[j](g,b);if(f)a=f(a,g,b);return a}};OSF.OUtil.setNamespace("AsyncResultEnum",OSF.DDA);OSF.DDA.AsyncResultEnum.Properties={Context:"Context",Value:"Value",Status:"Status",Error:"Error"};Microsoft.Office.WebExtension.AsyncResultStatus={Succeeded:"succeeded",Failed:"failed"};OSF.DDA.AsyncResultEnum.ErrorCode={Success:0,Failed:1};OSF.DDA.AsyncResultEnum.ErrorProperties={Name:"Name",Message:"Message",Code:"Code"};OSF.DDA.AsyncMethodNames={};OSF.DDA.AsyncMethodNames.addNames=function(b){for(var a in b){var c={};OSF.OUtil.defineEnumerableProperties(c,{id:{value:a},displayName:{value:b[a]}});OSF.DDA.AsyncMethodNames[a]=c}};OSF.DDA.AsyncMethodCall=function(c,d,h,e,f,i,j){var b=c.length,a=new OSF.DDA.ApiMethodCall(c,d,h,i,j);function g(g,i,k,j){if(g.length>b+2)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var c,e,h=g.length-1;h>=b;h--){var f=g[h];switch(typeof f){case"object":if(c)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else c=f;break;case"function":if(e)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else e=f;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);break}}c=a.fillOptions(c,i,k,j);if(e)if(c[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else c[Microsoft.Office.WebExtension.Parameters.Callback]=e;a.verifyArguments(d,c);return c}this.verifyAndExtractCall=function(e,c,b){var d=a.extractRequiredArguments(e,c,b),h=g(e,d,c,b),f=a.constructCallArgs(d,h,c,b);return f};this.processResponse=function(c,b,g,d){var a;if(c==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(e)a=e(b,g,d);else a=b;else if(f)a=f(c,b);else a=OSF.DDA.ErrorCodeManager.getErrorArgs(c);return a};this.getCallArgs=function(f){for(var a,c,e=f.length-1;e>=b;e--){var d=f[e];switch(typeof d){case"object":a=d;break;case"function":c=d;break}}a=a||{};if(c)a[Microsoft.Office.WebExtension.Parameters.Callback]=c;return a}};OSF.DDA.AsyncMethodCallFactory=function(){return{manufacture:function(a){var c=a.supportedOptions?OSF.OUtil.createObject(a.supportedOptions):[],b=a.privateStateCallbacks?OSF.OUtil.createObject(a.privateStateCallbacks):[];return new OSF.DDA.AsyncMethodCall(a.requiredArguments||[],c,b,a.onSucceeded,a.onFailed,a.checkCallArgs,a.method.displayName)}}}();OSF.DDA.AsyncMethodCalls={};OSF.DDA.AsyncMethodCalls.define=function(a){OSF.DDA.AsyncMethodCalls[a.method.id]=OSF.DDA.AsyncMethodCallFactory.manufacture(a)};OSF.DDA.Error=function(c,a,b){OSF.OUtil.defineEnumerableProperties(this,{name:{value:c},message:{value:a},code:{value:b}})};OSF.DDA.AsyncResult=function(b,a){OSF.OUtil.defineEnumerableProperties(this,{value:{value:b[OSF.DDA.AsyncResultEnum.Properties.Value]},status:{value:a?Microsoft.Office.WebExtension.AsyncResultStatus.Failed:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded}});b[OSF.DDA.AsyncResultEnum.Properties.Context]&&OSF.OUtil.defineEnumerableProperty(this,"asyncContext",{value:b[OSF.DDA.AsyncResultEnum.Properties.Context]});a&&OSF.OUtil.defineEnumerableProperty(this,"error",{value:new OSF.DDA.Error(a[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],a[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],a[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])})};OSF.DDA.issueAsyncResult=function(d,f,a){var e=d[Microsoft.Office.WebExtension.Parameters.Callback];if(e){var c={};c[OSF.DDA.AsyncResultEnum.Properties.Context]=d[Microsoft.Office.WebExtension.Parameters.AsyncContext];var b;if(f==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)c[OSF.DDA.AsyncResultEnum.Properties.Value]=a;else{b={};a=a||OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);b[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=f||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=a.name||a;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=a.message||a}e(new OSF.DDA.AsyncResult(c,b))}};OSF.DDA.SyncMethodNames={};OSF.DDA.SyncMethodNames.addNames=function(b){for(var a in b){var c={};OSF.OUtil.defineEnumerableProperties(c,{id:{value:a},displayName:{value:b[a]}});OSF.DDA.SyncMethodNames[a]=c}};OSF.DDA.SyncMethodCall=function(b,c,f,g,h){var d=b.length,a=new OSF.DDA.ApiMethodCall(b,c,f,g,h);function e(e,h,j,i){if(e.length>d+1)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var b,k,f=e.length-1;f>=d;f--){var g=e[f];switch(typeof g){case"object":if(b)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else b=g;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);break}}b=a.fillOptions(b,h,j,i);a.verifyArguments(c,b);return b}this.verifyAndExtractCall=function(f,c,b){var d=a.extractRequiredArguments(f,c,b),h=e(f,d,c,b),g=a.constructCallArgs(d,h,c,b);return g}};OSF.DDA.SyncMethodCallFactory=function(){return{manufacture:function(a){var b=a.supportedOptions?OSF.OUtil.createObject(a.supportedOptions):[];return new OSF.DDA.SyncMethodCall(a.requiredArguments||[],b,a.privateStateCallbacks,a.checkCallArgs,a.method.displayName)}}}();OSF.DDA.SyncMethodCalls={};OSF.DDA.SyncMethodCalls.define=function(a){OSF.DDA.SyncMethodCalls[a.method.id]=OSF.DDA.SyncMethodCallFactory.manufacture(a)};OSF.DDA.ListType=function(){var a={};return{setListType:function(c,b){a[c]=b},isListType:function(b){return OSF.OUtil.listContainsKey(a,b)},getDescriptor:function(b){return a[b]}}}();OSF.DDA.HostParameterMap=function(a,b){var h="toHost",d="fromHost",j="sourceData",f="self",c={};c[Microsoft.Office.WebExtension.Parameters.Data]={toHost:function(a){if(a!=null&&a.rows!==undefined){var b={};b[OSF.DDA.TableDataProperties.TableRows]=a.rows;b[OSF.DDA.TableDataProperties.TableHeaders]=a.headers;a=b}return a},fromHost:function(a){return a}};c[Microsoft.Office.WebExtension.Parameters.SampleData]=c[Microsoft.Office.WebExtension.Parameters.Data];function e(j,i){var m=j?{}:undefined;for(var h in j){var g=j[h],f;if(OSF.DDA.ListType.isListType(h)){f=[];for(var n in g)f.push(e(g[n],i))}else if(OSF.OUtil.listContainsKey(c,h))f=c[h][i](g);else if(i==d&&a.preserveNesting(h))f=e(g,i);else{var k=b[h];if(k){var l=k[i];if(l){f=l[g];if(f===undefined)f=g}}else f=g}m[h]=f}return m}function i(k,j){var e;for(var c in j){var d;if(a.isComplexType(c))d=i(k,b[c][h]);else d=k[c];if(d!=undefined){if(!e)e={};var g=j[c];if(g==f)g=c;e[g]=a.pack(c,d)}}return e}function g(k,n,h){if(!h)h={};for(var c in n){var l=n[c],e;if(l==f)e=k;else if(l==j){h[c]=k.toArray();continue}else e=k[l];if(e===null||e===undefined)h[c]=undefined;else{e=a.unpack(c,e);var i;if(a.isComplexType(c)){i=b[c][d];if(a.preserveNesting(c))h[c]=g(e,i);else g(e,i,h)}else if(OSF.DDA.ListType.isListType(c)){i={};var p=OSF.DDA.ListType.getDescriptor(c);i[p]=f;var m=new Array(e.length);for(var o in e)m[o]=g(e[o],i);h[c]=m}else h[c]=e}}return h}function k(k,f,a){var d=b[k][a],c;if(a=="toHost"){var j=e(f,a);c=i(j,d)}else if(a=="fromHost"){var h=g(f,d);c=e(h,a)}return c}if(!b)b={};this.addMapping=function(l,i){var a,e;if(i.map){a=i.map;e={};for(var j in a){var k=a[j];if(k==f)k=j;e[k]=j}}else{a=i.toHost;e=i.fromHost}var c=b[l];if(c){var g=c[h];for(var n in g)a[n]=g[n];g=c[d];for(var m in g)e[m]=g[m]}else c=b[l]={};c[h]=a;c[d]=e};this.toHost=function(b,a){return k(b,a,h)};this.fromHost=function(a,b){return k(a,b,d)};this.self=f;this.sourceData=j;this.addComplexType=function(b){a.addComplexType(b)};this.getDynamicType=function(b){return a.getDynamicType(b)};this.setDynamicType=function(c,b){a.setDynamicType(c,b)};this.dynamicTypes=c;this.doMapValues=function(a,b){return e(a,b)}};OSF.DDA.SpecialProcessor=function(b,a){this.addComplexType=function(a){b.push(a)};this.getDynamicType=function(b){return a[b]};this.setDynamicType=function(c,b){a[c]=b};this.isComplexType=function(a){return OSF.OUtil.listContainsValue(b,a)};this.isDynamicType=function(b){return OSF.OUtil.listContainsKey(a,b)};this.preserveNesting=function(b){var a=[];OSF.DDA.PropertyDescriptors&&a.push(OSF.DDA.PropertyDescriptors.Subset);if(OSF.DDA.DataNodeEventProperties)a=a.concat([OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode]);return OSF.OUtil.listContainsValue(a,b)};this.pack=function(c,d){var b;if(this.isDynamicType(c))b=a[c].toHost(d);else b=d;return b};this.unpack=function(c,d){var b;if(this.isDynamicType(c))b=a[c].fromHost(d);else b=d;return b}};OSF.DDA.getDecoratedParameterMap=function(d,c){var a=new OSF.DDA.HostParameterMap(d),f=a.self;function b(a){var c=null;if(a){c={};for(var d=a.length,b=0;b<d;b++)c[a[b].name]=a[b].value}return c}a.define=function(c){var d={},e=b(c.toHost);if(c.invertible)d.map=e;else if(c.canonical)d.toHost=d.fromHost=e;else{d.toHost=e;d.fromHost=b(c.fromHost)}a.addMapping(c.type,d);c.isComplexType&&a.addComplexType(c.type)};for(var e in c)a.define(c[e]);return a};OSF.OUtil.setNamespace("DispIdHost",OSF.DDA);OSF.DDA.DispIdHost.Methods={InvokeMethod:"invokeMethod",AddEventHandler:"addEventHandler",RemoveEventHandler:"removeEventHandler",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Delegates={ExecuteAsync:"executeAsync",RegisterEventAsync:"registerEventAsync",UnregisterEventAsync:"unregisterEventAsync",ParameterMap:"parameterMap",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Facade=function(d,e){var b={},c=OSF.DDA.AsyncMethodNames,a=OSF.DDA.MethodDispId,k={GoToByIdAsync:a.dispidNavigateToMethod,GetSelectedDataAsync:a.dispidGetSelectedDataMethod,SetSelectedDataAsync:a.dispidSetSelectedDataMethod,GetDocumentCopyChunkAsync:a.dispidGetDocumentCopyChunkMethod,ReleaseDocumentCopyAsync:a.dispidReleaseDocumentCopyMethod,GetDocumentCopyAsync:a.dispidGetDocumentCopyMethod,AddFromSelectionAsync:a.dispidAddBindingFromSelectionMethod,AddFromPromptAsync:a.dispidAddBindingFromPromptMethod,AddFromNamedItemAsync:a.dispidAddBindingFromNamedItemMethod,GetAllAsync:a.dispidGetAllBindingsMethod,GetByIdAsync:a.dispidGetBindingMethod,ReleaseByIdAsync:a.dispidReleaseBindingMethod,GetDataAsync:a.dispidGetBindingDataMethod,SetDataAsync:a.dispidSetBindingDataMethod,AddRowsAsync:a.dispidAddRowsMethod,AddColumnsAsync:a.dispidAddColumnsMethod,DeleteAllDataValuesAsync:a.dispidClearAllRowsMethod,RefreshAsync:a.dispidLoadSettingsMethod,SaveAsync:a.dispidSaveSettingsMethod,GetActiveViewAsync:a.dispidGetActiveViewMethod,GetFilePropertiesAsync:a.dispidGetFilePropertiesMethod,GetOfficeThemeAsync:a.dispidGetOfficeThemeMethod,GetDocumentThemeAsync:a.dispidGetDocumentThemeMethod,ClearFormatsAsync:a.dispidClearFormatsMethod,SetTableOptionsAsync:a.dispidSetTableOptionsMethod,SetFormatsAsync:a.dispidSetFormatsMethod,GetAccessTokenAsync:a.dispidGetAccessTokenMethod,GetAuthContextAsync:a.dispidGetAuthContextMethod,ExecuteRichApiRequestAsync:a.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:a.dispidAppCommandInvocationCompletedMethod,CloseContainerAsync:a.dispidCloseContainerMethod,OpenBrowserWindow:a.dispidOpenBrowserWindow,CreateDocumentAsync:a.dispidCreateDocumentMethod,InsertFormAsync:a.dispidInsertFormMethod,ExecuteFeature:a.dispidExecuteFeature,QueryFeature:a.dispidQueryFeature,AddDataPartAsync:a.dispidAddDataPartMethod,GetDataPartByIdAsync:a.dispidGetDataPartByIdMethod,GetDataPartsByNameSpaceAsync:a.dispidGetDataPartsByNamespaceMethod,GetPartXmlAsync:a.dispidGetDataPartXmlMethod,GetPartNodesAsync:a.dispidGetDataPartNodesMethod,DeleteDataPartAsync:a.dispidDeleteDataPartMethod,GetNodeValueAsync:a.dispidGetDataNodeValueMethod,GetNodeXmlAsync:a.dispidGetDataNodeXmlMethod,GetRelativeNodesAsync:a.dispidGetDataNodesMethod,SetNodeValueAsync:a.dispidSetDataNodeValueMethod,SetNodeXmlAsync:a.dispidSetDataNodeXmlMethod,AddDataPartNamespaceAsync:a.dispidAddDataNamespaceMethod,GetDataPartNamespaceAsync:a.dispidGetDataUriByPrefixMethod,GetDataPartPrefixAsync:a.dispidGetDataPrefixByUriMethod,GetNodeTextAsync:a.dispidGetDataNodeTextMethod,SetNodeTextAsync:a.dispidSetDataNodeTextMethod,GetSelectedTask:a.dispidGetSelectedTaskMethod,GetTask:a.dispidGetTaskMethod,GetWSSUrl:a.dispidGetWSSUrlMethod,GetTaskField:a.dispidGetTaskFieldMethod,GetSelectedResource:a.dispidGetSelectedResourceMethod,GetResourceField:a.dispidGetResourceFieldMethod,GetProjectField:a.dispidGetProjectFieldMethod,GetSelectedView:a.dispidGetSelectedViewMethod,GetTaskByIndex:a.dispidGetTaskByIndexMethod,GetResourceByIndex:a.dispidGetResourceByIndexMethod,SetTaskField:a.dispidSetTaskFieldMethod,SetResourceField:a.dispidSetResourceFieldMethod,GetMaxTaskIndex:a.dispidGetMaxTaskIndexMethod,GetMaxResourceIndex:a.dispidGetMaxResourceIndexMethod,CreateTask:a.dispidCreateTaskMethod};for(var f in k)if(c[f])b[c[f].id]=k[f];c=OSF.DDA.SyncMethodNames;a=OSF.DDA.MethodDispId;var j={MessageParent:a.dispidMessageParentMethod,SendMessage:a.dispidSendMessageMethod};for(var f in j)if(c[f])b[c[f].id]=j[f];c=Microsoft.Office.WebExtension.EventType;a=OSF.DDA.EventDispId;var l={SettingsChanged:a.dispidSettingsChangedEvent,DocumentSelectionChanged:a.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:a.dispidBindingSelectionChangedEvent,BindingDataChanged:a.dispidBindingDataChangedEvent,ActiveViewChanged:a.dispidActiveViewChangedEvent,OfficeThemeChanged:a.dispidOfficeThemeChangedEvent,DocumentThemeChanged:a.dispidDocumentThemeChangedEvent,AppCommandInvoked:a.dispidAppCommandInvokedEvent,DialogMessageReceived:a.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:a.dispidDialogParentMessageReceivedEvent,ObjectDeleted:a.dispidObjectDeletedEvent,ObjectSelectionChanged:a.dispidObjectSelectionChangedEvent,ObjectDataChanged:a.dispidObjectDataChangedEvent,ContentControlAdded:a.dispidContentControlAddedEvent,RichApiMessage:a.dispidRichApiMessageEvent,ItemChanged:a.dispidOlkItemSelectedChangedEvent,RecipientsChanged:a.dispidOlkRecipientsChangedEvent,AppointmentTimeChanged:a.dispidOlkAppointmentTimeChangedEvent,RecurrenceChanged:a.dispidOlkRecurrenceChangedEvent,AttachmentsChanged:a.dispidOlkAttachmentsChangedEvent,EnhancedLocationsChanged:a.dispidOlkEnhancedLocationsChangedEvent,InfobarClicked:a.dispidOlkInfobarClickedEvent,TaskSelectionChanged:a.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:a.dispidResourceSelectionChangedEvent,ViewSelectionChanged:a.dispidViewSelectionChangedEvent,DataNodeInserted:a.dispidDataNodeAddedEvent,DataNodeReplaced:a.dispidDataNodeReplacedEvent,DataNodeDeleted:a.dispidDataNodeDeletedEvent};for(var h in l)if(c[h])b[c[h]]=l[h];function i(a){return a==OSF.DDA.EventDispId.dispidObjectDeletedEvent||a==OSF.DDA.EventDispId.dispidObjectSelectionChangedEvent||a==OSF.DDA.EventDispId.dispidObjectDataChangedEvent||a==OSF.DDA.EventDispId.dispidContentControlAddedEvent}function g(a,c,d,b){if(typeof a=="number"){if(!b)b=c.getCallArgs(d);OSF.DDA.issueAsyncResult(b,a,OSF.DDA.ErrorCodeManager.getErrorArgs(a))}else throw a;}this[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(r,l,m,o){var a;try{var i=r.id,k=OSF.DDA.AsyncMethodCalls[i];a=k.verifyAndExtractCall(l,m,o);var j=b[i],q=d(i),c=null;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api"))window.Excel._RedirectV1APIs=true;if(window.Excel&&window.Excel._RedirectV1APIs&&(c=window.Excel._V1APIMap[i])){var f=OSF.OUtil.shallowCopy(a);delete f[Microsoft.Office.WebExtension.Parameters.AsyncContext];if(c.preprocess)f=c.preprocess(f);var n=new window.Excel.RequestContext,s=c.call(n,f);n.sync().then(function(){var b=s.value,d=b.status;delete b.status;delete b["@odata.type"];if(c.postprocess)b=c.postprocess(b,f);if(d!=0)b=OSF.DDA.ErrorCodeManager.getErrorArgs(d);OSF.DDA.issueAsyncResult(a,d,b)})["catch"](function(b){OSF.DDA.issueAsyncResult(a,OSF.DDA.ErrorCodeManager.errorCodes.ooeFailure,null)})}else{var h;if(e.toHost)h=e.toHost(j,a);else h=a;var p=+new Date;q[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:j,hostCallArgs:h,onCalling:function(){},onReceiving:function(){},onComplete:function(c,d){var b;if(c==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(e.fromHost)b=e.fromHost(j,d);else b=d;else b=d;var f=k.processResponse(c,b,m,a);OSF.DDA.issueAsyncResult(a,c,f);if(OSF.AppTelemetry&&!(OSF.ConstantNames&&OSF.ConstantNames.IsCustomFunctionsRuntime))OSF.AppTelemetry.onMethodDone(j,h,Math.abs(+new Date-p),c)}})}}catch(t){g(t,k,l,a)}};this[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(o,c,m,q){var f,a,l,h=false;function k(b){if(b==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){var e=!h?c.addEventHandler(a,l):c.addObjectEventHandler(a,f[Microsoft.Office.WebExtension.Parameters.Id],l);if(!e)b=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed}var d;if(b!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)d=OSF.DDA.ErrorCodeManager.getErrorArgs(b);OSF.DDA.issueAsyncResult(f,b,d)}try{var p=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id];f=p.verifyAndExtractCall(o,m,c);a=f[Microsoft.Office.WebExtension.Parameters.EventType];l=f[Microsoft.Office.WebExtension.Parameters.Handler];if(q){k(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess);return}var n=b[a];h=i(n);var j=h?f[Microsoft.Office.WebExtension.Parameters.Id]:m.id||"",s=h?c.getObjectEventHandlerCount(a,j):c.getEventHandlerCount(a);if(s==0){var r=d(a)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];r({eventType:a,dispId:n,targetId:j,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:k,onEvent:function(d){var b=e.fromHost(n,d);if(!h)c.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(a,m,b));else c.fireObjectEvent(j,OSF.DDA.OMFactory.manufactureEventArgs(a,j,b))}})}else k(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(t){g(t,p,o,f)}};this[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(n,c,p){var e,a,k,f=false;function m(a){var b;if(a!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)b=OSF.DDA.ErrorCodeManager.getErrorArgs(a);OSF.DDA.issueAsyncResult(e,a,b)}try{var o=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];e=o.verifyAndExtractCall(n,p,c);a=e[Microsoft.Office.WebExtension.Parameters.EventType];k=e[Microsoft.Office.WebExtension.Parameters.Handler];var q=b[a];f=i(q);var j=f?e[Microsoft.Office.WebExtension.Parameters.Id]:p.id||"",l,h;if(k===null){h=f?c.clearObjectEventHandlers(a,j):c.clearEventHandlers(a);l=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}else{h=f?c.removeObjectEventHandler(a,j,k):c.removeEventHandler(a,k);l=h?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist}var s=f?c.getObjectEventHandlerCount(a,j):c.getEventHandlerCount(a);if(h&&s==0){var r=d(a)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];r({eventType:a,dispId:q,targetId:j,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:m})}else m(l)}catch(t){g(t,o,n,e)}};this[OSF.DDA.DispIdHost.Methods.OpenDialog]=function(n,a,m){var h,l,c=Microsoft.Office.WebExtension.EventType.DialogMessageReceived,f=Microsoft.Office.WebExtension.EventType.DialogEventReceived;function i(b){var e;if(b!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)e=OSF.DDA.ErrorCodeManager.getErrorArgs(b);else{var d={};d[Microsoft.Office.WebExtension.Parameters.Id]=l;d[Microsoft.Office.WebExtension.Parameters.Data]=a;var e=j.processResponse(b,d,m,h);OSF.DialogShownStatus.hasDialogShown=true;a.clearEventHandlers(c);a.clearEventHandlers(f)}OSF.DDA.issueAsyncResult(h,b,e)}try{(c==undefined||f==undefined)&&i(OSF.DDA.ErrorCodeManager.ooeOperationNotSupported);if(OSF.DDA.AsyncMethodNames.DisplayDialogAsync==null){i(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);return}var j=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.DisplayDialogAsync.id];h=j.verifyAndExtractCall(n,m,a);var o=b[c],k=d(c),p=k[OSF.DDA.DispIdHost.Delegates.OpenDialog]!=undefined?k[OSF.DDA.DispIdHost.Delegates.OpenDialog]:k[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];l=JSON.stringify(h);if(!OSF.DialogShownStatus.hasDialogShown){a.clearQueuedEvent(c);a.clearQueuedEvent(f);a.clearQueuedEvent(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived)}p({eventType:c,dispId:o,targetId:l,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:i,onEvent:function(i){var h=e.fromHost(o,i),g=OSF.DDA.OMFactory.manufactureEventArgs(c,m,h);if(g.type==f){var d=OSF.DDA.ErrorCodeManager.getErrorArgs(g.error),b={};b[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=status||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=d.name||d;b[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=d.message||d;g.error=new OSF.DDA.Error(b[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],b[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],b[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])}a.fireOrQueueEvent(g);if(h[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogClosed){a.clearEventHandlers(c);a.clearEventHandlers(f);a.clearEventHandlers(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived);OSF.DialogShownStatus.hasDialogShown=false}}})}catch(q){g(q,j,n,h)}};this[OSF.DDA.DispIdHost.Methods.CloseDialog]=function(h,m,e,o){var k,a,i,f=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess;function l(a){f=a;OSF.DialogShownStatus.hasDialogShown=false}try{var j=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.CloseAsync.id];k=j.verifyAndExtractCall(h,o,e);a=Microsoft.Office.WebExtension.EventType.DialogMessageReceived;i=Microsoft.Office.WebExtension.EventType.DialogEventReceived;e.clearEventHandlers(a);e.clearEventHandlers(i);var p=b[a],c=d(a),n=c[OSF.DDA.DispIdHost.Delegates.CloseDialog]!=undefined?c[OSF.DDA.DispIdHost.Delegates.CloseDialog]:c[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];n({eventType:a,dispId:p,targetId:m,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:l})}catch(q){g(q,j,h,k)}if(f!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)throw OSF.OUtil.formatString(Strings.OfficeOM.L_FunctionCallFailed,OSF.DDA.AsyncMethodNames.CloseAsync.displayName,f);};this[OSF.DDA.DispIdHost.Methods.MessageParent]=function(a,i){var e={},c=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.MessageParent.id],f=c.verifyAndExtractCall(a,i,e),g=d(OSF.DDA.SyncMethodNames.MessageParent.id),h=g[OSF.DDA.DispIdHost.Delegates.MessageParent],j=b[OSF.DDA.SyncMethodNames.MessageParent.id];return h({dispId:j,hostCallArgs:f,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})};this[OSF.DDA.DispIdHost.Methods.SendMessage]=function(a,k,i){var e={},c=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.SendMessage.id],f=c.verifyAndExtractCall(a,i,e),g=d(OSF.DDA.SyncMethodNames.SendMessage.id),h=g[OSF.DDA.DispIdHost.Delegates.SendMessage],j=b[OSF.DDA.SyncMethodNames.SendMessage.id];return h({dispId:j,hostCallArgs:f,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})}};OSF.DDA.DispIdHost.addAsyncMethods=function(a,b,e){for(var f in b){var c=b[f],d=c.displayName;!a[d]&&OSF.OUtil.defineEnumerableProperty(a,d,{value:function(b){return function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.InvokeMethod];c(b,arguments,a,e)}}(c)})}};OSF.DDA.DispIdHost.addEventSupport=function(a,b,e){var d=OSF.DDA.AsyncMethodNames.AddHandlerAsync.displayName,c=OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.displayName;!a[d]&&OSF.OUtil.defineEnumerableProperty(a,d,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.AddEventHandler];c(arguments,b,a,e)}});!a[c]&&OSF.OUtil.defineEnumerableProperty(a,c,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];c(arguments,b,a)}})};var OfficeExt;(function(c){var f=function(){function a(){}a.isInstanceOfType=function(c,b){if(typeof b==="undefined"||b===null)return false;if(b instanceof c)return true;var a=b.constructor;if(!a||typeof a!=="function"||!a.__typeName||a.__typeName==="Object")a=Object;return!!(a===c)||a.__typeName&&c.__typeName&&a.__typeName===c.__typeName};return a}();c.MsAjaxTypeHelper=f;var d=function(){function a(){}a.create=function(c,b){var a=new Error(c);a.message=c;if(b)for(var d in b)a[d]=b[d];a.popStackFrame();return a};a.parameterCount=function(b){var d="Sys.ParameterCountException: "+(b?b:"Parameter count mismatch."),c=a.create(d,{name:"Sys.ParameterCountException"});c.popStackFrame();return c};a.argument=function(c,e){var d="Sys.ArgumentException: "+(e?e:"Value does not fall within the expected range.");if(c)d+="\n"+b.format("Parameter name: {0}",c);var f=a.create(d,{name:"Sys.ArgumentException",paramName:c});f.popStackFrame();return f};a.argumentNull=function(c,e){var d="Sys.ArgumentNullException: "+(e?e:"Value cannot be null.");if(c)d+="\n"+b.format("Parameter name: {0}",c);var f=a.create(d,{name:"Sys.ArgumentNullException",paramName:c});f.popStackFrame();return f};a.argumentOutOfRange=function(e,c,f){var d="Sys.ArgumentOutOfRangeException: "+(f?f:"Specified argument was out of the range of valid values.");if(e)d+="\n"+b.format("Parameter name: {0}",e);if(typeof c!=="undefined"&&c!==null)d+="\n"+b.format("Actual value was {0}.",c);var g=a.create(d,{name:"Sys.ArgumentOutOfRangeException",paramName:e,actualValue:c});g.popStackFrame();return g};a.argumentType=function(f,e,d,g){var c="Sys.ArgumentTypeException: ";if(g)c+=g;else if(e&&d)c+=b.format("Object of type '{0}' cannot be converted to type '{1}'.",e.getName?e.getName():e,d.getName?d.getName():d);else c+="Object cannot be converted to the required type.";if(f)c+="\n"+b.format("Parameter name: {0}",f);var h=a.create(c,{name:"Sys.ArgumentTypeException",paramName:f,actualType:e,expectedType:d});h.popStackFrame();return h};a.argumentUndefined=function(c,e){var d="Sys.ArgumentUndefinedException: "+(e?e:"Value cannot be undefined.");if(c)d+="\n"+b.format("Parameter name: {0}",c);var f=a.create(d,{name:"Sys.ArgumentUndefinedException",paramName:c});f.popStackFrame();return f};a.invalidOperation=function(b){var d="Sys.InvalidOperationException: "+(b?b:"Operation is not valid due to the current state of the object."),c=a.create(d,{name:"Sys.InvalidOperationException"});c.popStackFrame();return c};return a}();c.MsAjaxError=d;var b=function(){function a(){}a.format=function(c){for(var b=[],a=1;a<arguments.length;a++)b[a-1]=arguments[a];var d=c;return d.replace(/{(\d+)}/gm,function(d,a){var c=parseInt(a,10);return b[c]===undefined?"{"+a+"}":b[c]})};a.startsWith=function(b,a){return b.substr(0,a.length)===a};return a}();c.MsAjaxString=b;var e=function(){function a(){}a.trace=function(a){typeof Debug!=="undefined"&&Debug.writeln;window.console&&window.console.log&&window.console.log(a);window.opera&&window.opera.postError&&window.opera.postError(a);window.debugService&&window.debugService.trace&&window.debugService.trace(a);var b=document.getElementById("TraceConsole");if(b&&b.tagName.toUpperCase()==="TEXTAREA")b.innerHTML+=a+"\n"};return a}();c.MsAjaxDebug=e;if(!OsfMsAjaxFactory.isMsAjaxLoaded()){var a=function(a,c,b){if(a.__typeName===undefined||a.__typeName===null)a.__typeName=c;if(a.__class===undefined||a.__class===null)a.__class=b};a(Function,"Function",true);a(Error,"Error",true);a(Object,"Object",true);a(String,"String",true);a(Boolean,"Boolean",true);a(Date,"Date",true);a(Number,"Number",true);a(RegExp,"RegExp",true);a(Array,"Array",true);if(!Function.createCallback)Function.createCallback=function(b,a){var c=Function._validateParams(arguments,[{name:"method",type:Function},{name:"context",mayBeNull:true}]);if(c)throw c;return function(){var e=arguments.length;if(e>0){for(var d=[],c=0;c<e;c++)d[c]=arguments[c];d[e]=a;return b.apply(this,d)}return b.call(this,a)}};if(!Function.createDelegate)Function.createDelegate=function(b,c){var a=Function._validateParams(arguments,[{name:"instance",mayBeNull:true},{name:"method",type:Function}]);if(a)throw a;return function(){return c.apply(b,arguments)}};if(!Function._validateParams)Function._validateParams=function(g,e,c){var a,d=e.length;c=c||typeof c==="undefined";a=Function._validateParameterCount(g,e,c);if(a){a.popStackFrame();return a}for(var b=0,i=g.length;b<i;b++){var f=e[Math.min(b,d-1)],h=f.name;if(f.parameterArray)h+="["+(b-d+1)+"]";else if(!c&&b>=d)break;a=Function._validateParameter(g[b],f,h);if(a){a.popStackFrame();return a}}return null};if(!Function._validateParameterCount)Function._validateParameterCount=function(k,e,j){var a,c,b=e.length,f=k.length;if(f<b){var g=b;for(a=0;a<b;a++){var h=e[a];if(h.optional||h.parameterArray)g--}if(f<g)c=true}else if(j&&f>b){c=true;for(a=0;a<b;a++)if(e[a].parameterArray){c=false;break}}if(c){var i=d.parameterCount();i.popStackFrame();return i}return null};if(!Function._validateParameter)Function._validateParameter=function(c,a,h){var b,g=a.type,l=!!a.integer,k=!!a.domElement,m=!!a.mayBeNull;b=Function._validateParameterType(c,g,l,k,m,h);if(b){b.popStackFrame();return b}var e=a.elementType,f=!!a.elementMayBeNull;if(g===Array&&typeof c!=="undefined"&&c!==null&&(e||!f))for(var j=!!a.elementInteger,i=!!a.elementDomElement,d=0;d<c.length;d++){var n=c[d];b=Function._validateParameterType(n,e,j,i,f,h+"["+d+"]");if(b){b.popStackFrame();return b}}return null};if(!Function._validateParameterType)Function._validateParameterType=function(b,d,h,g,f,e){var a,i;if(typeof b==="undefined")if(f)return null;else{a=c.MsAjaxError.argumentUndefined(e);a.popStackFrame();return a}if(b===null)if(f)return null;else{a=c.MsAjaxError.argumentNull(e);a.popStackFrame();return a}if(d&&!c.MsAjaxTypeHelper.isInstanceOfType(d,b)){a=c.MsAjaxError.argumentType(e,typeof b,d);a.popStackFrame();return a}return null};if(!window.Type)window.Type=Function;if(!Type.registerNamespace)Type.registerNamespace=function(d){for(var c=d.split("."),b=window,a=0;a<c.length;a++){b[c[a]]=b[c[a]]||{};b=b[c[a]]}};if(!Type.prototype.registerClass)Type.prototype.registerClass=function(a){a={}};typeof Sys==="undefined"&&Type.registerNamespace("Sys");if(!Error.prototype.popStackFrame)Error.prototype.popStackFrame=function(){if(arguments.length!==0)throw d.parameterCount();if(typeof this.stack==="undefined"||this.stack===null||typeof this.fileName==="undefined"||this.fileName===null||typeof this.lineNumber==="undefined"||this.lineNumber===null)return;var a=this.stack.split("\n"),c=a[0],f=this.fileName+":"+this.lineNumber;while(typeof c!=="undefined"&&c!==null&&c.indexOf(f)===-1){a.shift();c=a[0]}var e=a[1];if(typeof e==="undefined"||e===null)return;var b=e.match(/@(.*):(\d+)$/);if(typeof b==="undefined"||b===null)return;this.fileName=b[1];this.lineNumber=parseInt(b[2]);a.shift();this.stack=a.join("\n")};OsfMsAjaxFactory.msAjaxError=d;OsfMsAjaxFactory.msAjaxString=b;OsfMsAjaxFactory.msAjaxDebug=e}})(OfficeExt||(OfficeExt={}));OSF.OUtil.setNamespace("SafeArray",OSF.DDA);OSF.DDA.SafeArray.Response={Status:0,Payload:1};OSF.DDA.SafeArray.UniqueArguments={Offset:"offset",Run:"run",BindingSpecificData:"bindingSpecificData",MergedCellGuid:"{66e7831f-81b2-42e2-823c-89e872d541b3}"};OSF.OUtil.setNamespace("Delegate",OSF.DDA.SafeArray);OSF.DDA.SafeArray.Delegate._onException=function(d,c){var a,b=d.number;if(b)switch(b){case-2146828218:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2147467259:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened;break;case-2146828283:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2147209089:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2147208704:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests;break;case-2146827850:default:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;break}if(c.onComplete)c.onComplete(a||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod=function(c,d){var a,b=c.number;if(b)switch(b){case-2146828218:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2146827850:default:a=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;break}return a||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError};OSF.DDA.SafeArray.Delegate.SpecialProcessor=function(){function a(a){var b;try{var h=a.ubound(1),d=a.ubound(2);a=a.toArray();if(h==1&&d==1)b=[a];else{b=[];for(var f=0;f<h;f++){for(var c=[],e=0;e<d;e++){var g=a[f*d+e];g!=OSF.DDA.SafeArray.UniqueArguments.MergedCellGuid&&c.push(g)}c.length>0&&b.push(c)}}}catch(i){}return b}var c=[],b={};b[Microsoft.Office.WebExtension.Parameters.Data]=function(){var c=0,b=1;return{toHost:function(a){if(OSF.DDA.TableDataProperties&&typeof a!="string"&&a[OSF.DDA.TableDataProperties.TableRows]!==undefined){var d=[];d[c]=a[OSF.DDA.TableDataProperties.TableRows];d[b]=a[OSF.DDA.TableDataProperties.TableHeaders];a=d}return a},fromHost:function(f){var e;if(f.toArray){var g=f.dimensions();if(g===2)e=a(f);else{var d=f.toArray();if(d.length===2&&(d[0]!=null&&d[0].toArray||d[1]!=null&&d[1].toArray)){e={};e[OSF.DDA.TableDataProperties.TableRows]=a(d[c]);e[OSF.DDA.TableDataProperties.TableHeaders]=a(d[b])}else e=d}}else e=f;return e}}}();OSF.DDA.SafeArray.Delegate.SpecialProcessor.uber.constructor.call(this,c,b);this.unpack=function(c,a){var d;if(this.isComplexType(c)||OSF.DDA.ListType.isListType(c)){var e=(a||typeof a==="unknown")&&a.toArray;d=e?a.toArray():a||{}}else if(this.isDynamicType(c))d=b[c].fromHost(a);else d=a;return d}};OSF.OUtil.extend(OSF.DDA.SafeArray.Delegate.SpecialProcessor,OSF.DDA.SpecialProcessor);OSF.DDA.SafeArray.Delegate.ParameterMap=OSF.DDA.getDecoratedParameterMap(new OSF.DDA.SafeArray.Delegate.SpecialProcessor,[{type:Microsoft.Office.WebExtension.Parameters.ValueFormat,toHost:[{name:Microsoft.Office.WebExtension.ValueFormat.Unformatted,value:0},{name:Microsoft.Office.WebExtension.ValueFormat.Formatted,value:1}]},{type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:Microsoft.Office.WebExtension.FilterType.All,value:0}]}]);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.AsyncResultStatus,fromHost:[{name:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded,value:0},{name:Microsoft.Office.WebExtension.AsyncResultStatus.Failed,value:1}]});OSF.DDA.SafeArray.Delegate.executeAsync=function(a){function c(a){var b=a;if(OSF.OUtil.isArray(a))for(var f=b.length,d=0;d<f;d++)b[d]=c(b[d]);else if(OSF.OUtil.isDate(a))b=a.getVarDate();else if(typeof a==="object"&&!OSF.OUtil.isArray(a)){b=[];for(var e in a)if(!OSF.OUtil.isFunction(a[e]))b[e]=c(a[e])}return b}function b(a){var e=a;if(a!=null&&a.toArray){var d=a.toArray();e=new Array(d.length);for(var c=0;c<d.length;c++)e[c]=b(d[c])}return e}try{a.onCalling&&a.onCalling();OSF.ClientHostController.execute(a.dispId,c(a.hostCallArgs),function(h,i){var d=h.toArray(),e=d[OSF.DDA.SafeArray.Response.Status];if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeChunkResult){var c=d[OSF.DDA.SafeArray.Response.Payload];c=b(c);if(c!=null){if(!a._chunkResultData)a._chunkResultData=[];a._chunkResultData[c[0]]=c[1]}return false}a.onReceiving&&a.onReceiving();if(a.onComplete){var c;if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){if(d.length>2){c=[];for(var f=1;f<d.length;f++)c[f-1]=d[f]}else c=d[OSF.DDA.SafeArray.Response.Payload];if(a._chunkResultData){c=b(c);if(c!=null){var g=c[c.length-1];if(a._chunkResultData.length==g)c[c.length-1]=a._chunkResultData;else e=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}}}else c=d[OSF.DDA.SafeArray.Response.Payload];a.onComplete(e,c)}return true})}catch(d){OSF.DDA.SafeArray.Delegate._onException(d,a)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(c,a){var b=+new Date;return function(d){a.onReceiving&&a.onReceiving();var e=d.toArray?d.toArray()[OSF.DDA.SafeArray.Response.Status]:d;if(a.onComplete)a.onComplete(e);if(OSF.AppTelemetry)OSF.AppTelemetry.onRegisterDone(c,a.dispId,Math.abs(+new Date-b),e)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(a){a.onCalling&&a.onCalling();var b=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(true,a);try{OSF.ClientHostController.registerEvent(a.dispId,a.targetId,function(c,b){if(a.onEvent)a.onEvent(b);if(OSF.AppTelemetry)OSF.AppTelemetry.onEventDone(a.dispId)},b)}catch(c){OSF.DDA.SafeArray.Delegate._onException(c,a)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(a){a.onCalling&&a.onCalling();var b=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(false,a);try{OSF.ClientHostController.unregisterEvent(a.dispId,a.targetId,b)}catch(c){OSF.DDA.SafeArray.Delegate._onException(c,a)}};OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};OSF.InitializationHelper=function(c,a,e,d,b){this._hostInfo=c;this._webAppState=a;this._context=e;this._settings=d;this._hostFacade=b;this._initializeSettings=this.initializeSettings};OSF.InitializationHelper.prototype.deserializeSettings=function(b,f){var d,c=OSF.OUtil.getSessionStorage();if(c){var a=c.getItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey());if(a)b=JSON.parse(a);else{a=JSON.stringify(b);c.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),a)}}var e=OSF.DDA.SettingsManager.deserializeSettings(b);if(f)d=new OSF.DDA.RefreshableSettings(e);else d=new OSF.DDA.Settings(e);return d};OSF.InitializationHelper.prototype.saveAndSetDialogInfo=function(a){};OSF.InitializationHelper.prototype.setAgaveHostCommunication=function(){};OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(a){this.prepareApiSurface(a);Microsoft.Office.WebExtension.initialize(this.getInitializationReason(a))};OSF.InitializationHelper.prototype.prepareApiSurface=function(a){var e=new OSF.DDA.License(a.get_eToken()),d=OSF.DDA.OfficeTheme&&OSF.DDA.OfficeTheme.getOfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null;if(a.get_isDialog()){if(OSF.DDA.UI.ChildUI)a.ui=new OSF.DDA.UI.ChildUI}else if(OSF.DDA.UI.ParentUI){a.ui=new OSF.DDA.UI.ParentUI;OfficeExt.Container&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.CloseContainerAsync])}OSF.DDA.OpenBrowser&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.OpenBrowserWindow]);OSF.DDA.ExecuteFeature&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.ExecuteFeature]);OSF.DDA.QueryFeature&&OSF.DDA.DispIdHost.addAsyncMethods(a.ui,[OSF.DDA.AsyncMethodNames.QueryFeature]);if(OSF.DDA.Auth){a.auth=new OSF.DDA.Auth;OSF.DDA.DispIdHost.addAsyncMethods(a.auth,[OSF.DDA.AsyncMethodNames.GetAccessTokenAsync])}OSF._OfficeAppFactory.setContext(new OSF.DDA.Context(a,a.doc,e,null,d));var b,c;b=OSF.DDA.DispIdHost.getClientDelegateMethods;c=OSF.DDA.SafeArray.Delegate.ParameterMap;OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(b,c))};OSF.InitializationHelper.prototype.getInitializationReason=function(a){return OSF.DDA.RichInitializationReason[a.get_reason()]};OSF.DDA.DispIdHost.getClientDelegateMethods=function(b){var a={};a[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync;a[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync;a[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync;a[OSF.DDA.DispIdHost.Delegates.OpenDialog]=OSF.DDA.SafeArray.Delegate.openDialog;a[OSF.DDA.DispIdHost.Delegates.CloseDialog]=OSF.DDA.SafeArray.Delegate.closeDialog;a[OSF.DDA.DispIdHost.Delegates.MessageParent]=OSF.DDA.SafeArray.Delegate.messageParent;a[OSF.DDA.DispIdHost.Delegates.SendMessage]=OSF.DDA.SafeArray.Delegate.sendMessage;if(OSF.DDA.AsyncMethodNames.RefreshAsync&&b==OSF.DDA.AsyncMethodNames.RefreshAsync.id){var d=function(c,b,a){return OSF.DDA.ClientSettingsManager.read(b,a)};a[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(d)}if(OSF.DDA.AsyncMethodNames.SaveAsync&&b==OSF.DDA.AsyncMethodNames.SaveAsync.id){var c=function(a,c,b){return OSF.DDA.ClientSettingsManager.write(a[OSF.DDA.SettingsManager.SerializedSettings],a[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],c,b)};a[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(c)}return a};var OSF=OSF||{},OSFWebView;(function(b){var a=function(){function a(a){this.data=a;this.safeArrayFlag=this.isSafeArray(a)}a.prototype.dimensions=function(){var a=0;if(this.safeArrayFlag)a=this.data[0][0];else if(this.isArray())a=2;return a};a.prototype.getItem=function(){var b=[],a=null;if(this.safeArrayFlag)b=this.toArray();else b=this.data;a=b;for(var c=0;c<arguments.length;c++)a=a[arguments[c]];return a};a.prototype.lbound=function(a){return 0};a.prototype.ubound=function(a){var b=0;if(this.safeArrayFlag)b=this.data[0][a];else if(this.isArray())if(a==1)return this.data.length;else if(a==2)if(OSF.OUtil.isArray(this.data[0]))return this.data[0].length;else if(this.data[0]!=null)return 1;return b};a.prototype.toArray=function(){if(this.isArray()==false)return this.data;for(var c=[],e=this.safeArrayFlag?1:0,d=e;d<this.data.length;d++){var b=this.data[d];if(this.isSafeArray(b))c.push(new a(b));else c.push(b)}return c};a.prototype.isArray=function(){return OSF.OUtil.isArray(this.data)};a.prototype.isSafeArray=function(c){var e=false;if(OSF.OUtil.isArray(c)&&OSF.OUtil.isArray(c[0])){var b=c[0],g=b[0];if(b.length!=g+1)return false;for(var a=1,d=1;d<b.length;d++){var f=b[d];if(isFinite(f)==false)return false;a=a*f}a++;e=a==c.length}return e};return a}();b.WebViewSafeArray=a})(OSFWebView||(OSFWebView={}));var OSFWebView;(function(a){var b;(function(b){var a=null;function g(b,c){a.agaveHostCallback(b,c)}b.agaveHostCallback=g;function d(b,c){a.agaveHostEventCallback(b,c)}b.agaveHostEventCallback=d;function f(d,b,e){if(a==null)a=new c(d,b,e);return a}b.GetScriptMessenger=f;var e=function(){function a(c,a,b){this.id=c;this.targetId=a;this.handler=b}return a}(),c=function(){function a(b,c,d){this.callingIndex=0;this.callbackList={};this.eventHandlerList={};this.asyncMethodCallbackFunctionName=b;this.eventCallbackFunctionName=c;this.poster=d;this.conversationId=a.getCurrentTimeMS().toString()}a.prototype.invokeMethod=function(b,d,e,c){var a={};this.postMessage(a,b,d,e,c)};a.prototype.registerEvent=function(f,i,b,a,j,g){var d={eventCallbackFunction:this.eventCallbackFunctionName},h={id:b,targetId:a},c=this.postMessage(d,f,i,h,g);this.eventHandlerList[c]=new e(b,a,j)};a.prototype.unregisterEvent=function(e,h,d,c,f){var g={id:d,targetId:c};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var b=this.eventHandlerList[a];if(b.id==d&&b.targetId==c)delete this.eventHandlerList[a]}this.invokeMethod(e,h,g,f)};a.prototype.agaveHostCallback=function(c,d){var a=this.callbackList[c];if(a){var b=a(d);if(b===undefined||b===true)delete this.callbackList[c]}};a.prototype.agaveHostEventCallback=function(b,c){var a=this.eventHandlerList[b];a&&a.handler(c)};a.prototype.postMessage=function(a,c,e,f,d){var b=this.generateCorrelationId();this.callbackList[b]=d;a.methodId=e;a.params=f;a.callbackId=b;a.callbackFunction=this.asyncMethodCallbackFunctionName;this.poster.postMessage(c,JSON.stringify(a));return b};a.prototype.generateCorrelationId=function(){++this.callingIndex;return this.conversationId+this.callingIndex};a.getCurrentTimeMS=function(){return+new Date};a.MESSAGE_TIME_DELTA=10;return a}();b.Messenger=c})(b=a.ScriptMessaging||(a.ScriptMessaging={}))})(OSFWebView||(OSFWebView={}));OSF.ScriptMessaging=OSFWebView.ScriptMessaging;var OSFWebView;(function(a){a.MessageHandlerName="Agave";a.PopupMessageHandlerName="WefPopupHandler";(function(a){a[a.Settings=0]="Settings";a[a.SolutionReferenceId=1]="SolutionReferenceId";a[a.AppType=2]="AppType";a[a.MajorVersion=3]="MajorVersion";a[a.MinorVersion=4]="MinorVersion";a[a.RevisionVersion=5]="RevisionVersion";a[a.APIVersionSequence=6]="APIVersionSequence";a[a.AppCapabilities=7]="AppCapabilities";a[a.APPUILocale=8]="APPUILocale";a[a.AppDataLocale=9]="AppDataLocale";a[a.BindingCount=10]="BindingCount";a[a.DocumentUrl=11]="DocumentUrl";a[a.ActivationMode=12]="ActivationMode";a[a.ControlIntegrationLevel=13]="ControlIntegrationLevel";a[a.SolutionToken=14]="SolutionToken";a[a.APISetVersion=15]="APISetVersion";a[a.CorrelationId=16]="CorrelationId";a[a.InstanceId=17]="InstanceId";a[a.TouchEnabled=18]="TouchEnabled";a[a.CommerceAllowed=19]="CommerceAllowed";a[a.RequirementMatrix=20]="RequirementMatrix"})(a.AppContextProperties||(a.AppContextProperties={}));var c=a.AppContextProperties;(function(a){a[a.Execute=1]="Execute";a[a.RegisterEvent=2]="RegisterEvent";a[a.UnregisterEvent=3]="UnregisterEvent";a[a.WriteSettings=4]="WriteSettings";a[a.GetContext=5]="GetContext";a[a.OnKeydown=6]="OnKeydown";a[a.AddinInitialized=7]="AddinInitialized";a[a.OpenWindow=8]="OpenWindow";a[a.MessageParent=9]="MessageParent";a[a.SendMessage=10]="SendMessage"})(a.MethodId||(a.MethodId={}));var d=a.MethodId,b=function(){function b(a){this.hostScriptProxy=a}b.prototype.execute=function(g,f,c){var b=f;if(b==null)b=[];var e={id:g,apiArgs:b},d=function(b){var d=b;if(OSF.OUtil.isArray(b)&&b.length>=2){var e=b[0];d=b[1]}if(c)return c(new a.WebViewSafeArray(d))};this.hostScriptProxy.invokeMethod(OSF.WebView.MessageHandlerName,OSF.WebView.MethodId.Execute,e,d)};b.prototype.registerEvent=function(g,f,c,b){var d=function(b){var d=b,e=0;if(OSF.OUtil.isArray(b)&&b.length>=2){e=b[0];d=b[1]}c&&c(e,new a.WebViewSafeArray(d))},e=function(c){if(b)return b(new a.WebViewSafeArray(c))};this.hostScriptProxy.registerEvent(OSF.WebView.MessageHandlerName,OSF.WebView.MethodId.RegisterEvent,g,f,d,e)};b.prototype.unregisterEvent=function(e,d,c){var b=function(b){return c(new a.WebViewSafeArray(b))};this.hostScriptProxy.unregisterEvent(OSF.WebView.MessageHandlerName,OSF.WebView.MethodId.UnregisterEvent,e,d,b)};b.prototype.messageParent=function(c){var b=c[Microsoft.Office.WebExtension.Parameters.MessageToParent],a={dialogMessage:{messageType:OSF.DialogMessageType.DialogMessageReceived,messageContent:b}};window.opener.postMessage(JSON.stringify(a),window.location.origin)};b.prototype.openDialog=function(i,n,h,m){var l="action=displayDialog",a=JSON.parse(n),d=a.url;if(!d)return;var e="#",c=d.split(e),f="?";if(d.indexOf("?")>-1)f="&";var r=screen.width*a.width/100,p=screen.height*a.height/100,q="width="+r+", height="+p;c[0]=c[0].concat(f).concat(l);var o=c.join(e);b.popup=window.open(o,"",q);function k(a){if(a.source==b.popup)try{var c=JSON.parse(a.data);c.dialogMessage&&h(i,[OSF.DialogMessageType.DialogMessageReceived,c.dialogMessage.messageContent])}catch(d){OsfMsAjaxFactory.msAjaxDebug.trace("messages received cannot be handled. Message:"+a.data)}}window.addEventListener("message",k);var g;function j(){try{if(b.popup==null||b.popup.closed){window.clearInterval(g);h(i,[OSF.DialogMessageType.DialogClosed])}}catch(a){OsfMsAjaxFactory.msAjaxDebug.trace("Error happened when popup window closed.")}}g=window.setInterval(j,1e3);m(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)};b.prototype.closeDialog=function(d,c,a){if(b.popup){b.popup.close();b.popup=null;a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}else a(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};b.prototype.sendMessage=function(b){var a=b[Microsoft.Office.WebExtension.Parameters.MessageContent];if(!isNaN(parseFloat(a))&&isFinite(a))a=a.toString();this.hostScriptProxy.invokeMethod(OSF.WebView.MessageHandlerName,OSF.WebView.MethodId.SendMessage,a,null)};return b}();a.WebViewHostController=b})(OSFWebView||(OSFWebView={}));var CrossIFrameCommon;(function(a){(function(a){a[a.MethodCallback=0]="MethodCallback";a[a.EventCallback=1]="EventCallback"})(a.CallbackType||(a.CallbackType={}));var c=a.CallbackType,b=function(){function a(a,b,c){this.callbackType=a;this.callbackId=b;this.params=c}return a}();a.CallbackData=b})(CrossIFrameCommon||(CrossIFrameCommon={}));var Android;(function(a){var b=function(){function a(){}a.getInstance=function(){if(a.uniqueInstance==null)a.uniqueInstance=new a;return a.uniqueInstance};a.prototype.postMessage=function(b,a){agaveHost.postMessage(a)};a.prototype.ReceiveMessage=function(a){switch(a.callbackType){case CrossIFrameCommon.CallbackType.MethodCallback:OSFWebView.ScriptMessaging.agaveHostCallback(a.callbackId,a.params);break;case CrossIFrameCommon.CallbackType.EventCallback:OSFWebView.ScriptMessaging.agaveHostEventCallback(a.callbackId,a.params);break;default:break}};return a}();a.Poster=b})(Android||(Android={}));function agaveHostCallback(b,d){var c=new CrossIFrameCommon.CallbackData(CrossIFrameCommon.CallbackType.MethodCallback,b,d),a=Android.Poster.getInstance();a.ReceiveMessage(c)}function agaveHostEventCallback(b,d){var c=new CrossIFrameCommon.CallbackData(CrossIFrameCommon.CallbackType.EventCallback,b,d),a=Android.Poster.getInstance();a.ReceiveMessage(c)}OSF.DDA.ClientSettingsManager={getSettingsExecuteMethod:function(a){return function(b){var e,d,c=function(c,a){b.onReceiving&&b.onReceiving();if(b.onComplete)b.onComplete(c,a)};try{a(b.hostCallArgs,b.onCalling,c)}catch(f){e=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;d={name:Strings.OfficeOM.L_InternalError,message:f};c(e,d)}}},read:function(b,a){var f=[],e=[];b&&b();var c=OSF._OfficeAppFactory.getInitializationHelper(),d=function(b){a&&a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,b.get_settings())};c.getAppContext(null,d)},write:function(b,i,d,c){var a={},f=[],e=[];for(var g in b){f.push(g);e.push(b[g])}a.keys=f;a.values=e;d&&d();var h=function(a){c&&c(a[0],null)};OSF.ScriptMessaging.GetScriptMessenger().invokeMethod(OSF.WebView.MessageHandlerName,OSF.WebView.MethodId.WriteSettings,a,h)}};OSF.InitializationHelper.prototype.initializeSettings=function(c,b){var a=c.get_settings(),d=this.deserializeSettings(a,b);return d};OSF.InitializationHelper.prototype.getAppContext=function(d,c){var b=function(b){var f,a=OSF.WebView.AppContextProperties,g=b[a.AppType],i=false;for(var u in OSF.AppName)if(OSF.AppName[u]==g){i=true;break}if(!i)throw"Unsupported client type "+g;for(var j=b[a.Settings],h={},k=j[0],z=j[1],e=0;e<k.length;e++)h[k[e]]=z[e];var A=b[a.SolutionReferenceId],w=b[a.MajorVersion],s=b[a.AppCapabilities],v=b[a.APPUILocale],t=b[a.AppDataLocale],x=b[a.DocumentUrl],y=b[a.ActivationMode],n=b[a.ControlIntegrationLevel],d=b[a.SolutionToken];d=d?d.toString():"";var p=b[a.CorrelationId],o=b[a.InstanceId],r=b[a.TouchEnabled],m=b[a.CommerceAllowed],q=b[a.MinorVersion],l=b[a.RequirementMatrix];f=new OSF.OfficeAppContext(A,g,w,v,t,x,s,h,y,n,d,p,o,r,m,q,l);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(f);c(f)},a;if(this._hostInfo.isDialog)a=OSF.WebView.PopupMessageHandlerName;else a=OSF.WebView.MessageHandlerName;OSF.ScriptMessaging.GetScriptMessenger().invokeMethod(a,OSF.WebView.MethodId.GetContext,[],b)};OSF.WebView=OSFWebView;OSF.ClientHostController=new OSFWebView.WebViewHostController(OSF.ScriptMessaging.GetScriptMessenger("agaveHostCallback","agaveHostEventCallback",Android.Poster.getInstance()));var OSFLog;(function(b){var a=function(){function a(a){this._table=a;this._fields={}}Object.defineProperty(a.prototype,"Fields",{"get":function(){return this._fields},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Table",{"get":function(){return this._table},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){};a.prototype.SetSerializedField=function(b,a){if(typeof a!=="undefined"&&a!==null)this._serializedFields[b]=a.toString()};a.prototype.SerializeRow=function(){this._serializedFields={};this.SetSerializedField("Table",this._table);this.SerializeFields();return JSON.stringify(this._serializedFields)};return a}();b.BaseUsageData=a;var d=function(b){__extends(a,b);function a(){b.call(this,"AppActivated")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppId",{"get":function(){return this.Fields.AppId},"set":function(a){this.Fields.AppId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppInstanceId",{"get":function(){return this.Fields.AppInstanceId},"set":function(a){this.Fields.AppInstanceId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppURL",{"get":function(){return this.Fields.AppURL},"set":function(a){this.Fields.AppURL=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AssetId",{"get":function(){return this.Fields.AssetId},"set":function(a){this.Fields.AssetId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Browser",{"get":function(){return this.Fields.Browser},"set":function(a){this.Fields.Browser=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"UserId",{"get":function(){return this.Fields.UserId},"set":function(a){this.Fields.UserId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Host",{"get":function(){return this.Fields.Host},"set":function(a){this.Fields.Host=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"HostVersion",{"get":function(){return this.Fields.HostVersion},"set":function(a){this.Fields.HostVersion=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ClientId",{"get":function(){return this.Fields.ClientId},"set":function(a){this.Fields.ClientId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeWidth",{"get":function(){return this.Fields.AppSizeWidth},"set":function(a){this.Fields.AppSizeWidth=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeHeight",{"get":function(){return this.Fields.AppSizeHeight},"set":function(a){this.Fields.AppSizeHeight=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Message",{"get":function(){return this.Fields.Message},"set":function(a){this.Fields.Message=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"DocUrl",{"get":function(){return this.Fields.DocUrl},"set":function(a){this.Fields.DocUrl=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"OfficeJSVersion",{"get":function(){return this.Fields.OfficeJSVersion},"set":function(a){this.Fields.OfficeJSVersion=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"HostJSVersion",{"get":function(){return this.Fields.HostJSVersion},"set":function(a){this.Fields.HostJSVersion=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"WacHostEnvironment",{"get":function(){return this.Fields.WacHostEnvironment},"set":function(a){this.Fields.WacHostEnvironment=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"IsFromWacAutomation",{"get":function(){return this.Fields.IsFromWacAutomation},"set":function(a){this.Fields.IsFromWacAutomation=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("AppId",this.AppId);this.SetSerializedField("AppInstanceId",this.AppInstanceId);this.SetSerializedField("AppURL",this.AppURL);this.SetSerializedField("AssetId",this.AssetId);this.SetSerializedField("Browser",this.Browser);this.SetSerializedField("UserId",this.UserId);this.SetSerializedField("Host",this.Host);this.SetSerializedField("HostVersion",this.HostVersion);this.SetSerializedField("ClientId",this.ClientId);this.SetSerializedField("AppSizeWidth",this.AppSizeWidth);this.SetSerializedField("AppSizeHeight",this.AppSizeHeight);this.SetSerializedField("Message",this.Message);this.SetSerializedField("DocUrl",this.DocUrl);this.SetSerializedField("OfficeJSVersion",this.OfficeJSVersion);this.SetSerializedField("HostJSVersion",this.HostJSVersion);this.SetSerializedField("WacHostEnvironment",this.WacHostEnvironment);this.SetSerializedField("IsFromWacAutomation",this.IsFromWacAutomation)};return a}(a);b.AppActivatedUsageData=d;var e=function(b){__extends(a,b);function a(){b.call(this,"ScriptLoad")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ScriptId",{"get":function(){return this.Fields.ScriptId},"set":function(a){this.Fields.ScriptId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"StartTime",{"get":function(){return this.Fields.StartTime},"set":function(a){this.Fields.StartTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ResponseTime",{"get":function(){return this.Fields.ResponseTime},"set":function(a){this.Fields.ResponseTime=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("ScriptId",this.ScriptId);this.SetSerializedField("StartTime",this.StartTime);this.SetSerializedField("ResponseTime",this.ResponseTime)};return a}(a);b.ScriptLoadUsageData=e;var f=function(b){__extends(a,b);function a(){b.call(this,"AppClosed")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"FocusTime",{"get":function(){return this.Fields.FocusTime},"set":function(a){this.Fields.FocusTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeFinalWidth",{"get":function(){return this.Fields.AppSizeFinalWidth},"set":function(a){this.Fields.AppSizeFinalWidth=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"AppSizeFinalHeight",{"get":function(){return this.Fields.AppSizeFinalHeight},"set":function(a){this.Fields.AppSizeFinalHeight=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"OpenTime",{"get":function(){return this.Fields.OpenTime},"set":function(a){this.Fields.OpenTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"CloseMethod",{"get":function(){return this.Fields.CloseMethod},"set":function(a){this.Fields.CloseMethod=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("FocusTime",this.FocusTime);this.SetSerializedField("AppSizeFinalWidth",this.AppSizeFinalWidth);this.SetSerializedField("AppSizeFinalHeight",this.AppSizeFinalHeight);this.SetSerializedField("OpenTime",this.OpenTime);this.SetSerializedField("CloseMethod",this.CloseMethod)};return a}(a);b.AppClosedUsageData=f;var g=function(b){__extends(a,b);function a(){b.call(this,"APIUsage")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"APIType",{"get":function(){return this.Fields.APIType},"set":function(a){this.Fields.APIType=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"APIID",{"get":function(){return this.Fields.APIID},"set":function(a){this.Fields.APIID=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Parameters",{"get":function(){return this.Fields.Parameters},"set":function(a){this.Fields.Parameters=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ResponseTime",{"get":function(){return this.Fields.ResponseTime},"set":function(a){this.Fields.ResponseTime=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"ErrorType",{"get":function(){return this.Fields.ErrorType},"set":function(a){this.Fields.ErrorType=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("APIType",this.APIType);this.SetSerializedField("APIID",this.APIID);this.SetSerializedField("Parameters",this.Parameters);this.SetSerializedField("ResponseTime",this.ResponseTime);this.SetSerializedField("ErrorType",this.ErrorType)};return a}(a);b.APIUsageUsageData=g;var c=function(b){__extends(a,b);function a(){b.call(this,"AppInitialization")}Object.defineProperty(a.prototype,"CorrelationId",{"get":function(){return this.Fields.CorrelationId},"set":function(a){this.Fields.CorrelationId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SessionId",{"get":function(){return this.Fields.SessionId},"set":function(a){this.Fields.SessionId=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"SuccessCode",{"get":function(){return this.Fields.SuccessCode},"set":function(a){this.Fields.SuccessCode=a},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"Message",{"get":function(){return this.Fields.Message},"set":function(a){this.Fields.Message=a},enumerable:true,configurable:true});a.prototype.SerializeFields=function(){this.SetSerializedField("CorrelationId",this.CorrelationId);this.SetSerializedField("SessionId",this.SessionId);this.SetSerializedField("SuccessCode",this.SuccessCode);this.SetSerializedField("Message",this.Message)};return a}(a);b.AppInitializationUsageData=c})(OSFLog||(OSFLog={}));var Logger;(function(a){"use strict";(function(a){a[a.info=0]="info";a[a.warning=1]="warning";a[a.error=2]="error"})(a.TraceLevel||(a.TraceLevel={}));var f=a.TraceLevel;(function(a){a[a.none=0]="none";a[a.flush=1]="flush"})(a.SendFlag||(a.SendFlag={}));var g=a.SendFlag;function b(){}a.allowUploadingData=b;function e(a,b,c){}a.sendLog=e;function c(){try{return new d}catch(a){return null}}var d=function(){function a(){}a.prototype.writeLog=function(a){};a.prototype.loadProxyFrame=function(){};return a}();if(!OSF.Logger)OSF.Logger=a;a.ulsEndpoint=c()})(Logger||(Logger={}));var OSFAriaLogger;(function(k){var d={name:"AppActivated",enabled:true,basic:true,critical:true,points:[{name:"Browser",type:"string"},{name:"Message",type:"string"},{name:"AppURL",type:"string"},{name:"Host",type:"string"},{name:"AppSizeWidth",type:"int64"},{name:"AppSizeHeight",type:"int64"},{name:"IsFromWacAutomation",type:"string"}]},e={name:"ScriptLoad",enabled:true,basic:false,critical:false,points:[{name:"ScriptId",type:"string"},{name:"StartTime",type:"double"},{name:"ResponseTime",type:"double"}]},i={name:"APIUsage",enabled:false,basic:false,critical:false,points:[{name:"APIType",type:"string"},{name:"APIID",type:"int64"},{name:"Parameters",type:"string"},{name:"ResponseTime",type:"int64"},{name:"ErrorType",type:"int64"}]},c={name:"AppInitialization",enabled:true,basic:false,critical:false,points:[{name:"SuccessCode",type:"int64"},{name:"Message",type:"string"}]},f={name:"AppClosed",enabled:true,basic:false,critical:false,points:[{name:"FocusTime",type:"int64"},{name:"AppSizeFinalWidth",type:"int64"},{name:"AppSizeFinalHeight",type:"int64"},{name:"OpenTime",type:"int64"}]},b=[d,e,i,c,f];function j(a,c){var d=c.rename===undefined?c.name:c.rename,e=c.type,b=undefined;switch(e){case"string":b=oteljs.makeStringDataField(d,a);break;case"double":if(typeof a==="string")a=parseFloat(a);b=oteljs.makeDoubleDataField(d,a);break;case"int64":if(typeof a==="string")a=parseInt(a);b=oteljs.makeInt64DataField(d,a);break;case"boolean":if(typeof a==="string")a=a==="true";b=oteljs.makeBooleanDataField(d,a);break}return b}function a(d){for(var a=0;a<b.length;a++){var c=b[a];if(c.name===d)return c}return undefined}function l(c){var b=a(c);if(b===undefined)return false;return b.enabled}function g(f,m){var b=a(f);if(b===undefined)return undefined;for(var e=[],d=0,k=b.points;d<k.length;d++){var h=k[d],o=h.name,i=m[o];if(i===undefined)continue;var g=j(i,h);g!==undefined&&e.push(g)}var c={dataCategories:oteljs.DataCategories.ProductServiceUsage};if(b.critical)c.samplingPolicy=oteljs.SamplingPolicy.CriticalBusinessImpact;if(b.basic)c.diagnosticLevel=oteljs.DiagnosticLevel.BasicEvent;var l="Office.Extensibility.OfficeJs."+f+"X",n={eventName:l,dataFields:e,eventFlags:c};return n}function h(a,b){if(l(a))if(typeof OTel!=="undefined")OTel.OTelLogger.onTelemetryLoaded(function(){var c=g(a,b);if(c===undefined)return;Microsoft.Office.WebExtension.sendTelemetryEvent(c)})}var m=function(){function a(){}a.prototype.getAriaCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+"ariatelemetry/aria-web-telemetry.js"};a.getInstance=function(){if(a.AriaLoggerObj===undefined)a.AriaLoggerObj=new a;return a.AriaLoggerObj};a.prototype.isIUsageData=function(a){return a.Fields!==undefined};a.prototype.shouldSendDirectToAria=function(){var d,b;if(OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getHostInfo)d=OSF._OfficeAppFactory.getHostInfo().hostPlatform;if(!d)return false;else if(d.toLowerCase()!=="win32")return true;if(window.external&&typeof window.external.GetContext!=="undefined"&&typeof window.external.GetContext().GetHostFullVersion!=="undefined")b=window.external.GetContext().GetHostFullVersion();var c=10,f=16,g=0,e=11601;if(b){var a=b.split(".");if(a.length<3)return false;else if(parseInt(a[0],c)>=f&&parseInt(a[1],c)>=g&&parseInt(a[2],c)>=e)return false;else return true}return false};a.prototype.isDirectToAriaEnabled=function(){if(this.EnableDirectToAria===undefined||this.EnableDirectToAria===null)this.EnableDirectToAria=this.shouldSendDirectToAria();return this.EnableDirectToAria};a.prototype.sendTelemetry=function(c,b){var e=1e3,d=a.EnableSendingTelemetryWithLegacyAria&&this.isDirectToAriaEnabled();d&&OSF.OUtil.loadScript(this.getAriaCDNLocation(),function(){try{if(!this.ALogger){var e="db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439";this.ALogger=AWTLogManager.initialize(e)}var a=new AWTEventProperties;a.setName("Office.Extensibility.OfficeJS."+c);for(var d in b)d.toLowerCase()!=="table"&&a.setProperty(d,b[d]);var f=new Date;a.setProperty("Date",f.toISOString());this.ALogger.logEvent(a)}catch(g){}},e);a.EnableSendingTelemetryWithOTel&&h(c,b)};a.prototype.logData=function(a){if(this.isIUsageData(a))this.sendTelemetry(a.Table,a.Fields);else this.sendTelemetry(a.Table,a)};a.EnableSendingTelemetryWithOTel=true;a.EnableSendingTelemetryWithLegacyAria=false;return a}();k.AriaLogger=m})(OSFAriaLogger||(OSFAriaLogger={}));var OSFAppTelemetry;(function(b){"use strict";var a,d=OSF.OUtil.Guid.generateNewGuid(),g="",n=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i");b.enableTelemetry=true;var j=function(){function a(){}return a}();b.AppInfo=j;var e=function(){function a(b,a){this.name=b;this.handler=a}return a}(),i=function(){function a(){this.clientIDKey="Office API client";this.logIdSetKey="Office App Log Id Set"}a.prototype.getClientId=function(){var a=this.getValue(this.clientIDKey);if(!a||a.length<=0||a.length>40){a=OSF.OUtil.Guid.generateNewGuid();this.setValue(this.clientIDKey,a)}return a};a.prototype.saveLog=function(b,c){var a=this.getValue(this.logIdSetKey);a=(a&&a.length>0?a+";":"")+b;this.setValue(this.logIdSetKey,a);this.setValue(b,c)};a.prototype.enumerateLog=function(b,d){var c=this.getValue(this.logIdSetKey);if(c){var e=c.split(";");for(var g in e){var a=e[g],f=this.getValue(a);if(f){b&&b(a,f);d&&this.remove(a)}}d&&this.remove(this.logIdSetKey)}};a.prototype.getValue=function(c){var a=OSF.OUtil.getLocalStorage(),b="";if(a)b=a.getItem(c);return b};a.prototype.setValue=function(c,b){var a=OSF.OUtil.getLocalStorage();a&&a.setItem(c,b)};a.prototype.remove=function(b){var a=OSF.OUtil.getLocalStorage();if(a)try{a.removeItem(b)}catch(c){}};return a}(),f=function(){function a(){}a.prototype.LogData=function(a){if(!b.enableTelemetry)return;try{OSFAriaLogger.AriaLogger.getInstance().logData(a)}catch(c){}};a.prototype.LogRawData=function(a){if(!b.enableTelemetry)return;try{OSFAriaLogger.AriaLogger.getInstance().logData(JSON.parse(a))}catch(c){}};return a}();function c(a){if(a)a=a.replace(/[{}]/g,"").toLowerCase();return a||""}var x=function(){function a(){}a.hashString=function(c){var a=0;if(c.length===0)return a;for(var b=0;b<c.length;b++){var d=c.charCodeAt(b);a=(a<<5)-a+d;a|=0}return a};a.stringToHash=function(d){var c=a.hashString(d),b=c.toString();if(c<0)b="1"+b.substring(1);else b="0"+b;return b};a.startsWith=function(b,a){return b.indexOf(a)==-0};a.isFileUrl=function(b){return a.startsWith(b.toLowerCase(),"file:")};a.removeHttpPrefix=function(c){var b="";if(a.startsWith(c.toLowerCase(),a.httpsPrefix))b=a.httpsPrefix;else if(a.startsWith(c.toLowerCase(),a.httpPrefix))b=a.httpPrefix;var d=c.slice(b.length);return d};a.getUrlDomain=function(c){var b=a.removeHttpPrefix(c);b=b.split("/")[0];b=b.split(":")[0];return b};a.isIp4Address=function(b){var a=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;return a.test(b)};a.filter=function(d){if(a.isFileUrl(d)){var c=a.stringToHash(d);return"file://"+c}var b=a.getUrlDomain(d);if(a.isIp4Address(b)){var c=a.stringToHash(d);if(a.startsWith(b,"10."))return"IP10Range_"+c;else if(a.startsWith(b,"192."))return"IP192Range_"+c;else if(a.startsWith(b,"127."))return"IP127Range_"+c;return"IPOther_"+c}return b};a.httpPrefix="http://";a.httpsPrefix="https://";return a}();function v(f){if(!b.enableTelemetry)return;if(a)return;a=new j;if(f.get_hostFullVersion())a.hostVersion=f.get_hostFullVersion();else a.hostVersion=f.get_appVersion();a.appId=f.get_id();a.host=f.get_appName();a.browser=window.navigator.userAgent;a.correlationId=c(f.get_correlationId());a.clientId=(new i).getClientId();a.appInstanceId=f.get_appInstanceId();if(a.appInstanceId)a.appInstanceId=a.appInstanceId.replace(/[{}]/g,"").toLowerCase();a.message=f.get_hostCustomMessage();a.officeJSVersion=OSF.ConstantNames.FileVersion;a.hostJSVersion="16.0.11826.30006";if(f._wacHostEnvironment)a.wacHostEnvironment=f._wacHostEnvironment;if(f._isFromWacAutomation!==undefined&&f._isFromWacAutomation!==null)a.isFromWacAutomation=f._isFromWacAutomation.toString().toLowerCase();var h=f.get_docUrl();a.docUrl=n.test(h)?h:"";var g=location.href;if(g)g=g.split("?")[0].split("#")[0];a.appURL=x.filter(g);(function(g,a){var c,f,b;a.assetId="";a.userId="";try{c=decodeURIComponent(g);f=new DOMParser;b=f.parseFromString(c,"text/xml");var d=b.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),e=b.getElementsByTagName("t")[0].attributes.getNamedItem("oid");if(d&&d.nodeValue)a.userId=d.nodeValue;else if(e&&e.nodeValue)a.userId=e.nodeValue;a.assetId=b.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}catch(h){}finally{c=null;b=null;f=null}})(f.get_eToken(),a);a.sessionId=d;a.name=f.get_addinName();typeof OTel!=="undefined"&&OTel.OTelLogger.initialize(a);(function(){var j=new Date,c=null,g=0,i=false,d=function(){if(document.hasFocus()){if(c==null)c=new Date}else if(c){g+=Math.abs(+new Date-c.getTime());c=null}},a=[];a.push(new e("focus",d));a.push(new e("blur",d));a.push(new e("focusout",d));a.push(new e("focusin",d));var h=function(){for(var d=0;d<a.length;d++)OSF.OUtil.removeEventListener(window,a[d].name,a[d].handler);a.length=0;if(!i){if(document.hasFocus()&&c){g+=Math.abs(+new Date-c.getTime());c=null}b.onAppClosed(Math.abs(+new Date-j.getTime()),g);i=true}};a.push(new e("beforeunload",h));a.push(new e("unload",h));for(var f=0;f<a.length;f++)OSF.OUtil.addEventListener(window,a[f].name,a[f].handler);d()})();b.onAppActivated()}b.initialize=v;function o(){if(!a)return;(new i).enumerateLog(function(b,a){return(new f).LogRawData(a)},true);var b=new OSFLog.AppActivatedUsageData;b.SessionId=d;b.AppId=a.appId;b.AssetId=a.assetId;b.AppURL=a.appURL;b.UserId="";b.ClientId=a.clientId;b.Browser=a.browser;b.Host=a.host;b.HostVersion=a.hostVersion;b.CorrelationId=c(a.correlationId);b.AppSizeWidth=window.innerWidth;b.AppSizeHeight=window.innerHeight;b.AppInstanceId=a.appInstanceId;b.Message=a.message;b.DocUrl=a.docUrl;b.OfficeJSVersion=a.officeJSVersion;b.HostJSVersion=a.hostJSVersion;if(a.wacHostEnvironment)b.WacHostEnvironment=a.wacHostEnvironment;if(a.isFromWacAutomation!==undefined&&a.isFromWacAutomation!==null)b.IsFromWacAutomation=a.isFromWacAutomation;(new f).LogData(b)}b.onAppActivated=o;function s(h,g,e,b){var a=new OSFLog.ScriptLoadUsageData;a.CorrelationId=c(b);a.SessionId=d;a.ScriptId=h;a.StartTime=g;a.ResponseTime=e;(new f).LogData(a)}b.onScriptDone=s;function w(j,k,h,e,i){if(!a)return;var b=new OSFLog.APIUsageUsageData;b.CorrelationId=c(g);b.SessionId=d;b.APIType=j;b.APIID=k;b.Parameters=h;b.ResponseTime=e;b.ErrorType=i;(new f).LogData(b)}b.onCallDone=w;function r(f,b,d,e){var a=null;if(b)if(typeof b=="number")a=String(b);else if(typeof b==="object")for(var c in b){if(a!==null)a+=",";else a="";if(typeof b[c]=="number")a+=String(b[c])}else a="";OSF.AppTelemetry.onCallDone("method",f,a,d,e)}b.onMethodDone=r;function p(b,a){OSF.AppTelemetry.onCallDone("property",-1,b,a)}b.onPropertyDone=p;function u(b,a){OSF.AppTelemetry.onCallDone("event",b,null,0,a)}b.onEventDone=u;function q(c,d,a,b){OSF.AppTelemetry.onCallDone(c?"registerevent":"unregisterevent",d,null,a,b)}b.onRegisterDone=q;function t(f,e){if(!a)return;var b=new OSFLog.AppClosedUsageData;b.CorrelationId=c(g);b.SessionId=d;b.FocusTime=e;b.OpenTime=f;b.AppSizeFinalWidth=window.innerWidth;b.AppSizeFinalHeight=window.innerHeight;(new i).saveLog(d,b.SerializeRow())}b.onAppClosed=t;function k(a){g=c(a)}b.setOsfControlAppCorrelationId=k;function h(b,e){var a=new OSFLog.AppInitializationUsageData;a.CorrelationId=c(g);a.SessionId=d;a.SuccessCode=b?1:0;a.Message=e;(new f).LogData(a)}b.doAppInitializationLogging=h;function l(a){h(false,a)}b.logAppCommonMessage=l;function m(a){h(true,a)}b.logAppException=m;OSF.AppTelemetry=b})(OSFAppTelemetry||(OSFAppTelemetry={}));Microsoft.Office.WebExtension.EventType={};OSF.EventDispatch=function(b){this._eventHandlers={};this._objectEventHandlers={};this._queuedEventsArgs={};if(b!=null)for(var c=0;c<b.length;c++){var a=b[c],d=a=="objectDeleted"||a=="objectSelectionChanged"||a=="objectDataChanged"||a=="contentControlAdded";if(!d)this._eventHandlers[a]=[];else this._objectEventHandlers[a]={};this._queuedEventsArgs[a]=[]}};OSF.EventDispatch.prototype={getSupportedEvents:function(){var a=[];for(var b in this._eventHandlers)a.push(b);for(var b in this._objectEventHandlers)a.push(b);return a},supportsEvent:function(b){for(var a in this._eventHandlers)if(b==a)return true;for(var a in this._objectEventHandlers)if(b==a)return true;return false},hasEventHandler:function(c,d){var a=this._eventHandlers[c];if(a&&a.length>0)for(var b=0;b<a.length;b++)if(a[b]===d)return true;return false},hasObjectEventHandler:function(d,e,f){var c=this._objectEventHandlers[d];if(c!=null)for(var a=c[e],b=0;a!=null&&b<a.length;b++)if(a[b]===f)return true;return false},addEventHandler:function(b,a){if(typeof a!="function")return false;var c=this._eventHandlers[b];if(c&&!this.hasEventHandler(b,a)){c.push(a);return true}else return false},addObjectEventHandler:function(d,b,c){if(typeof c!="function")return false;var a=this._objectEventHandlers[d];if(a&&!this.hasObjectEventHandler(d,b,c)){if(a[b]==null)a[b]=[];a[b].push(c);return true}return false},addEventHandlerAndFireQueuedEvent:function(a,e){var d=this._eventHandlers[a],c=d.length==0,b=this.addEventHandler(a,e);c&&b&&this.fireQueuedEvent(a);return b},removeEventHandler:function(c,d){var a=this._eventHandlers[c];if(a&&a.length>0)for(var b=0;b<a.length;b++)if(a[b]===d){a.splice(b,1);return true}return false},removeObjectEventHandler:function(d,e,f){var c=this._objectEventHandlers[d];if(c!=null)for(var a=c[e],b=0;a!=null&&b<a.length;b++)if(a[b]===f){a.splice(b,1);return true}return false},clearEventHandlers:function(a){if(typeof this._eventHandlers[a]!="undefined"&&this._eventHandlers[a].length>0){this._eventHandlers[a]=[];return true}return false},clearObjectEventHandlers:function(a,b){if(this._objectEventHandlers[a]!=null&&this._objectEventHandlers[a][b]!=null){this._objectEventHandlers[a][b]=[];return true}return false},getEventHandlerCount:function(a){return this._eventHandlers[a]!=undefined?this._eventHandlers[a].length:-1},getObjectEventHandlerCount:function(a,b){if(this._objectEventHandlers[a]==null||this._objectEventHandlers[a][b]==null)return 0;return this._objectEventHandlers[a][b].length},fireEvent:function(a){if(a.type==undefined)return false;var b=a.type;if(b&&this._eventHandlers[b]){for(var d=this._eventHandlers[b],c=0;c<d.length;c++)d[c](a);return true}else return false},fireObjectEvent:function(f,a){if(a.type==undefined)return false;var b=a.type;if(b&&this._objectEventHandlers[b]){var e=this._objectEventHandlers[b],c=e[f];if(c!=null){for(var d=0;d<c.length;d++)c[d](a);return true}}return false},fireOrQueueEvent:function(b){var a=b.type;if(a&&this._eventHandlers[a]){var c=this._eventHandlers[a],d=this._queuedEventsArgs[a];if(c.length==0)d.push(b);else this.fireEvent(b);return true}else return false},fireQueuedEvent:function(a){if(a&&this._eventHandlers[a]){var b=this._eventHandlers[a],c=this._queuedEventsArgs[a];if(b.length>0){var d=b[0];while(c.length>0){var e=c.shift();d(e)}return true}}return false},clearQueuedEvent:function(a){if(a&&this._eventHandlers[a]){var b=this._queuedEventsArgs[a];if(b)this._queuedEventsArgs[a]=[]}}};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureEventArgs=function(c,d,b){var a;switch(c){case Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged:a=new OSF.DDA.DocumentSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.BindingSelectionChanged:a=new OSF.DDA.BindingSelectionChangedEventArgs(this.manufactureBinding(b,d.document),b[OSF.DDA.PropertyDescriptors.Subset]);break;case Microsoft.Office.WebExtension.EventType.BindingDataChanged:a=new OSF.DDA.BindingDataChangedEventArgs(this.manufactureBinding(b,d.document));break;case Microsoft.Office.WebExtension.EventType.SettingsChanged:a=new OSF.DDA.SettingsChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.ActiveViewChanged:a=new OSF.DDA.ActiveViewChangedEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.OfficeThemeChanged:a=new OSF.DDA.Theming.OfficeThemeChangedEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.DocumentThemeChanged:a=new OSF.DDA.Theming.DocumentThemeChangedEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.AppCommandInvoked:a=OSF.DDA.AppCommand.AppCommandInvokedEventArgs.create(b);break;case Microsoft.Office.WebExtension.EventType.ObjectDeleted:case Microsoft.Office.WebExtension.EventType.ObjectSelectionChanged:case Microsoft.Office.WebExtension.EventType.ObjectDataChanged:case Microsoft.Office.WebExtension.EventType.ContentControlAdded:a=new OSF.DDA.ObjectEventArgs(c,b[Microsoft.Office.WebExtension.Parameters.Id]);break;case Microsoft.Office.WebExtension.EventType.RichApiMessage:a=new OSF.DDA.RichApiMessageEventArgs(c,b);break;case Microsoft.Office.WebExtension.EventType.DataNodeInserted:a=new OSF.DDA.NodeInsertedEventArgs(this.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.NewNode]),b[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeReplaced:a=new OSF.DDA.NodeReplacedEventArgs(this.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.OldNode]),this.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.NewNode]),b[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeDeleted:a=new OSF.DDA.NodeDeletedEventArgs(this.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.OldNode]),this.manufactureDataNode(b[OSF.DDA.DataNodeEventProperties.NextSiblingNode]),b[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.TaskSelectionChanged:a=new OSF.DDA.TaskSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.ResourceSelectionChanged:a=new OSF.DDA.ResourceSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.ViewSelectionChanged:a=new OSF.DDA.ViewSelectionChangedEventArgs(d);break;case Microsoft.Office.WebExtension.EventType.DialogMessageReceived:a=new OSF.DDA.DialogEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived:a=new OSF.DDA.DialogParentEventArgs(b);break;case Microsoft.Office.WebExtension.EventType.ItemChanged:if(OSF._OfficeAppFactory.getHostInfo().hostType=="outlook"){a=new OSF.DDA.OlkItemSelectedChangedEventArgs(b);d.initialize(a.initialData);(OSF._OfficeAppFactory.getHostInfo().hostPlatform=="win32"||OSF._OfficeAppFactory.getHostInfo().hostPlatform=="mac")&&d.setCurrentItemNumber(a.itemNumber.itemNumber)}else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.RecipientsChanged:if(OSF._OfficeAppFactory.getHostInfo().hostType=="outlook")a=new OSF.DDA.OlkRecipientsChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.AppointmentTimeChanged:if(OSF._OfficeAppFactory.getHostInfo().hostType=="outlook")a=new OSF.DDA.OlkAppointmentTimeChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.RecurrenceChanged:if(OSF._OfficeAppFactory.getHostInfo().hostType=="outlook")a=new OSF.DDA.OlkRecurrenceChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.AttachmentsChanged:if(OSF._OfficeAppFactory.getHostInfo().hostType=="outlook")a=new OSF.DDA.OlkAttachmentsChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.EnhancedLocationsChanged:if(OSF._OfficeAppFactory.getHostInfo().hostType=="outlook")a=new OSF.DDA.OlkEnhancedLocationsChangedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;case Microsoft.Office.WebExtension.EventType.InfobarClicked:if(OSF._OfficeAppFactory.getHostInfo().hostType=="outlook")a=new OSF.DDA.OlkInfobarClickedEventArgs(b);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,c));}return a};OSF.DDA.AsyncMethodNames.addNames({AddHandlerAsync:"addHandlerAsync",RemoveHandlerAsync:"removeHandlerAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(b,c,a){return a.supportsEvent(b)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.RemoveHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(b,c,a){return a.supportsEvent(b)}}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]});OSF.DialogShownStatus={hasDialogShown:false,isWindowDialog:false};OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{DialogMessageReceivedEvent:"DialogMessageReceivedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{DialogMessageReceived:"dialogMessageReceived",DialogEventReceived:"dialogEventReceived"});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{MessageType:"messageType",MessageContent:"messageContent"});OSF.DDA.DialogEventType={};OSF.OUtil.augmentList(OSF.DDA.DialogEventType,{DialogClosed:"dialogClosed",NavigationFailed:"naviationFailed"});OSF.DDA.AsyncMethodNames.addNames({DisplayDialogAsync:"displayDialogAsync",CloseAsync:"close"});OSF.DDA.SyncMethodNames.addNames({MessageParent:"messageParent",AddMessageHandler:"addEventHandler",SendMessage:"sendMessage"});OSF.DDA.UI.ParentUI=function(){var a;if(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived!=null)a=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived,Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived]);else a=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived]);var c=OSF.DDA.AsyncMethodNames.DisplayDialogAsync.displayName,b=this;!b[c]&&OSF.OUtil.defineEnumerableProperty(b,c,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.OpenDialog];c(arguments,a,b)}});OSF.OUtil.finalizeProperties(this)};OSF.DDA.UI.ChildUI=function(d){var b=OSF.DDA.SyncMethodNames.MessageParent.displayName,a=this;!a[b]&&OSF.OUtil.defineEnumerableProperty(a,b,{value:function(){var b=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.MessageParent];return b(arguments,a)}});var c=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;!a[c]&&typeof OSF.DialogParentMessageEventDispatch!="undefined"&&OSF.DDA.DispIdHost.addEventSupport(a,OSF.DialogParentMessageEventDispatch,d);OSF.OUtil.finalizeProperties(this)};OSF.DialogHandler=function(){};OSF.DDA.DialogEventArgs=function(a){if(a[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogMessageReceived)OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogMessageReceived},message:{value:a[OSF.DDA.PropertyDescriptors.MessageContent]}});else OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogEventReceived},error:{value:a[OSF.DDA.PropertyDescriptors.MessageType]}})};OSF.DDA.DialogParentEventArgs=function(a){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived},message:{value:a[OSF.DDA.PropertyDescriptors.MessageContent]}})};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.DisplayDialogAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Url,types:["string"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Width,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.Height,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.RequireHTTPs,value:{types:["boolean"],defaultValue:true}},{name:Microsoft.Office.WebExtension.Parameters.DisplayInIframe,value:{types:["boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.HideTitle,value:{types:["boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.PromptBeforeOpen,value:{types:["boolean"],defaultValue:true}},{name:Microsoft.Office.WebExtension.Parameters.EnforceAppDomain,value:{types:["boolean"],defaultValue:false}}],privateStateCallbacks:[],onSucceeded:function(c,i,h){var g=c[Microsoft.Office.WebExtension.Parameters.Id],b=c[Microsoft.Office.WebExtension.Parameters.Data],a=new OSF.DialogHandler,d=OSF.DDA.AsyncMethodNames.CloseAsync.displayName;OSF.OUtil.defineEnumerableProperty(a,d,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.CloseDialog];c(arguments,g,b,a)}});var f=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;OSF.OUtil.defineEnumerableProperty(a,f,{value:function(){var d=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.AddMessageHandler.id],c=d.verifyAndExtractCall(arguments,a,b),e=c[Microsoft.Office.WebExtension.Parameters.EventType],f=c[Microsoft.Office.WebExtension.Parameters.Handler];return b.addEventHandlerAndFireQueuedEvent(e,f)}});var e=OSF.DDA.SyncMethodNames.SendMessage.displayName;OSF.OUtil.defineEnumerableProperty(a,e,{value:function(){var c=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.SendMessage];return c(arguments,b,a)}});return a},checkCallArgs:function(a,c,b){if(a[Microsoft.Office.WebExtension.Parameters.Width]<=0)a[Microsoft.Office.WebExtension.Parameters.Width]=1;if(!a[Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels]&&a[Microsoft.Office.WebExtension.Parameters.Width]>100)a[Microsoft.Office.WebExtension.Parameters.Width]=99;if(a[Microsoft.Office.WebExtension.Parameters.Height]<=0)a[Microsoft.Office.WebExtension.Parameters.Height]=1;if(!a[Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels]&&a[Microsoft.Office.WebExtension.Parameters.Height]>100)a[Microsoft.Office.WebExtension.Parameters.Height]=99;if(!a[Microsoft.Office.WebExtension.Parameters.RequireHTTPs])a[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]=true;return a}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.MessageParent,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.AddMessageHandler,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(b,c,a){return a.supportsEvent(b)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.SendMessage,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageContent,types:["string"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.openDialog=function(a){try{a.onCalling&&a.onCalling();var b=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(true,a);OSF.ClientHostController.openDialog(a.dispId,a.targetId,function(c,b){if(a.onEvent)a.onEvent(b);if(OSF.AppTelemetry)OSF.AppTelemetry.onEventDone(a.dispId)},b)}catch(c){OSF.DDA.SafeArray.Delegate._onException(c,a)}};OSF.DDA.SafeArray.Delegate.closeDialog=function(a){a.onCalling&&a.onCalling();var b=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(false,a);try{OSF.ClientHostController.closeDialog(a.dispId,a.targetId,b)}catch(c){OSF.DDA.SafeArray.Delegate._onException(c,a)}};OSF.DDA.SafeArray.Delegate.messageParent=function(a){try{a.onCalling&&a.onCalling();var c=+new Date,b=OSF.ClientHostController.messageParent(a.hostCallArgs);a.onReceiving&&a.onReceiving();if(OSF.AppTelemetry)OSF.AppTelemetry.onMethodDone(a.dispId,a.hostCallArgs,Math.abs(+new Date-c),b);return b}catch(d){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(d)}};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.MessageType,value:0},{name:OSF.DDA.PropertyDescriptors.MessageContent,value:1}],isComplexType:true});OSF.DDA.SafeArray.Delegate.sendMessage=function(a){try{a.onCalling&&a.onCalling();var c=+new Date,b=OSF.ClientHostController.sendMessage(a.hostCallArgs);a.onReceiving&&a.onReceiving();return b}catch(d){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(d)}};Microsoft.Office.WebExtension.TableData=function(b,a){function c(a){if(a==null||a==undefined)return null;try{for(var b=OSF.DDA.DataCoercion.findArrayDimensionality(a,2);b<2;b++)a=[a];return a}catch(c){}}OSF.OUtil.defineEnumerableProperties(this,{headers:{"get":function(){return a},"set":function(b){a=c(b)}},rows:{"get":function(){return b},"set":function(a){b=a==null||OSF.OUtil.isArray(a)&&a.length==0?[]:c(a)}}});this.headers=a;this.rows=b};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureTableData=function(a){return new Microsoft.Office.WebExtension.TableData(a[OSF.DDA.TableDataProperties.TableRows],a[OSF.DDA.TableDataProperties.TableHeaders])};Microsoft.Office.WebExtension.CoercionType={Text:"text",Matrix:"matrix",Table:"table"};OSF.DDA.DataCoercion=function(){return{findArrayDimensionality:function(c){if(OSF.OUtil.isArray(c)){for(var b=0,a=0;a<c.length;a++)b=Math.max(b,OSF.DDA.DataCoercion.findArrayDimensionality(c[a]));return b+1}else return 0},getCoercionDefaultForBinding:function(a){switch(a){case Microsoft.Office.WebExtension.BindingType.Matrix:return Microsoft.Office.WebExtension.CoercionType.Matrix;case Microsoft.Office.WebExtension.BindingType.Table:return Microsoft.Office.WebExtension.CoercionType.Table;case Microsoft.Office.WebExtension.BindingType.Text:default:return Microsoft.Office.WebExtension.CoercionType.Text}},getBindingDefaultForCoercion:function(a){switch(a){case Microsoft.Office.WebExtension.CoercionType.Matrix:return Microsoft.Office.WebExtension.BindingType.Matrix;case Microsoft.Office.WebExtension.CoercionType.Table:return Microsoft.Office.WebExtension.BindingType.Table;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:return Microsoft.Office.WebExtension.BindingType.Text}},determineCoercionType:function(a){if(a==null||a==undefined)return null;var b=null,c=typeof a;if(a.rows!==undefined)b=Microsoft.Office.WebExtension.CoercionType.Table;else if(OSF.OUtil.isArray(a))b=Microsoft.Office.WebExtension.CoercionType.Matrix;else if(c=="string"||c=="number"||c=="boolean"||OSF.OUtil.isDate(a))b=Microsoft.Office.WebExtension.CoercionType.Text;else throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject;return b},coerceData:function(b,c,a){a=a||OSF.DDA.DataCoercion.determineCoercionType(b);if(a&&a!=c){OSF.OUtil.writeProfilerMark(OSF.InternalPerfMarker.DataCoercionBegin);b=OSF.DDA.DataCoercion._coerceDataFromTable(c,OSF.DDA.DataCoercion._coerceDataToTable(b,a));OSF.OUtil.writeProfilerMark(OSF.InternalPerfMarker.DataCoercionEnd)}return b},_matrixToText:function(a){if(a.length==1&&a[0].length==1)return""+a[0][0];for(var b="",c=0;c<a.length;c++)b+=a[c].join("\t")+"\n";return b.substring(0,b.length-1)},_textToMatrix:function(c){for(var a=c.split("\n"),b=0;b<a.length;b++)a[b]=a[b].split("\t");return a},_tableToText:function(b){var a="";if(b.headers!=null)a=OSF.DDA.DataCoercion._matrixToText([b.headers])+"\n";var c=OSF.DDA.DataCoercion._matrixToText(b.rows);if(c=="")a=a.substring(0,a.length-1);return a+c},_tableToMatrix:function(a){var b=a.rows;a.headers!=null&&b.unshift(a.headers);return b},_coerceDataFromTable:function(c,b){var a;switch(c){case Microsoft.Office.WebExtension.CoercionType.Table:a=b;break;case Microsoft.Office.WebExtension.CoercionType.Matrix:a=OSF.DDA.DataCoercion._tableToMatrix(b);break;case Microsoft.Office.WebExtension.CoercionType.SlideRange:a=null;if(OSF.DDA.OMFactory.manufactureSlideRange)a=OSF.DDA.OMFactory.manufactureSlideRange(OSF.DDA.DataCoercion._tableToText(b));if(a==null)a=OSF.DDA.DataCoercion._tableToText(b);break;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:a=OSF.DDA.DataCoercion._tableToText(b);break}return a},_coerceDataToTable:function(b,c){if(c==undefined)c=OSF.DDA.DataCoercion.determineCoercionType(b);var a;switch(c){case Microsoft.Office.WebExtension.CoercionType.Table:a=b;break;case Microsoft.Office.WebExtension.CoercionType.Matrix:a=new Microsoft.Office.WebExtension.TableData(b);break;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:a=new Microsoft.Office.WebExtension.TableData(OSF.DDA.DataCoercion._textToMatrix(b));break}return a}}}();OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.CoercionType,toHost:[{name:Microsoft.Office.WebExtension.CoercionType.Text,value:0},{name:Microsoft.Office.WebExtension.CoercionType.Matrix,value:1},{name:Microsoft.Office.WebExtension.CoercionType.Table,value:2}]});OSF.DDA.AsyncMethodNames.addNames({GetSelectedDataAsync:"getSelectedDataAsync",SetSelectedDataAsync:"setSelectedDataAsync"});(function(){function a(b,d,c){var a=b[Microsoft.Office.WebExtension.Parameters.Data];if(OSF.DDA.TableDataProperties&&a&&(a[OSF.DDA.TableDataProperties.TableRows]!=undefined||a[OSF.DDA.TableDataProperties.TableHeaders]!=undefined))a=OSF.DDA.OMFactory.manufactureTableData(a);a=OSF.DDA.DataCoercion.coerceData(a,c[Microsoft.Office.WebExtension.Parameters.CoercionType]);return a==undefined?null:a}OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,"enum":Microsoft.Office.WebExtension.CoercionType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:{"enum":Microsoft.Office.WebExtension.ValueFormat,defaultValue:Microsoft.Office.WebExtension.ValueFormat.Unformatted}},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:{"enum":Microsoft.Office.WebExtension.FilterType,defaultValue:Microsoft.Office.WebExtension.FilterType.All}}],privateStateCallbacks:[],onSucceeded:a});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(a){return OSF.DDA.DataCoercion.determineCoercionType(a[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.ImageLeft,value:{types:["number","boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.ImageTop,value:{types:["number","boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:{types:["number","boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:{types:["number","boolean"],defaultValue:false}}],privateStateCallbacks:[]})})();OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetSelectedDataMethod,fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:0},{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:1},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:2}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetSelectedDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1},{name:Microsoft.Office.WebExtension.Parameters.ImageLeft,value:2},{name:Microsoft.Office.WebExtension.Parameters.ImageTop,value:3},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:4},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:5}]});OSF.DDA.SettingsManager={SerializedSettings:"serializedSettings",RefreshingSettings:"refreshingSettings",DateJSONPrefix:"Date(",DataJSONSuffix:")",serializeSettings:function(a){return OSF.OUtil.serializeSettings(a)},deserializeSettings:function(a){return OSF.OUtil.deserializeSettings(a)}};OSF.DDA.Settings=function(a){a=a||{};var b=function(d){var b=OSF.OUtil.getSessionStorage();if(b){var a=OSF.DDA.SettingsManager.serializeSettings(d),c=JSON?JSON.stringify(a):Sys.Serialization.JavaScriptSerializer.serialize(a);b.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),c)}};OSF.OUtil.defineEnumerableProperties(this,{"get":{value:function(d){var c=Function._validateParams(arguments,[{name:"name",type:String,mayBeNull:false}]);if(c)throw c;var b=a[d];return typeof b==="undefined"?null:b}},"set":{value:function(e,d){var c=Function._validateParams(arguments,[{name:"name",type:String,mayBeNull:false},{name:"value",mayBeNull:true}]);if(c)throw c;a[e]=d;b(a)}},remove:{value:function(d){var c=Function._validateParams(arguments,[{name:"name",type:String,mayBeNull:false}]);if(c)throw c;delete a[d];b(a)}}});OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.SaveAsync],a)};OSF.DDA.RefreshableSettings=function(a){OSF.DDA.RefreshableSettings.uber.constructor.call(this,a);OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.RefreshAsync],a);OSF.DDA.DispIdHost.addEventSupport(this,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.SettingsChanged]))};OSF.OUtil.extend(OSF.DDA.RefreshableSettings,OSF.DDA.Settings);OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{SettingsChanged:"settingsChanged"});OSF.DDA.SettingsChangedEventArgs=function(a){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.SettingsChanged},settings:{value:a}})};OSF.DDA.AsyncMethodNames.addNames({RefreshAsync:"refreshAsync",SaveAsync:"saveAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.RefreshAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:OSF.DDA.SettingsManager.RefreshingSettings,value:function(b,a){return a}}],onSucceeded:function(d,a,e){var f=d[OSF.DDA.SettingsManager.SerializedSettings],c=OSF.DDA.SettingsManager.deserializeSettings(f),g=e[OSF.DDA.SettingsManager.RefreshingSettings];for(var b in g)a.remove(b);for(var b in c)a.set(b,c[b]);return a}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SaveAsync,requiredArguments:[],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale,value:{types:["boolean"],defaultValue:true}}],privateStateCallbacks:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:function(b,a){return OSF.DDA.SettingsManager.serializeSettings(a)}}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidLoadSettingsMethod,fromHost:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSaveSettingsMethod,toHost:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:OSF.DDA.SettingsManager.SerializedSettings},{name:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale,value:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidSettingsChangedEvent});Microsoft.Office.WebExtension.BindingType={Table:"table",Text:"text",Matrix:"matrix"};OSF.DDA.BindingProperties={Id:"BindingId",Type:Microsoft.Office.WebExtension.Parameters.BindingType};OSF.OUtil.augmentList(OSF.DDA.ListDescriptors,{BindingList:"BindingList"});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{Subset:"subset",BindingProperties:"BindingProperties"});OSF.DDA.ListType.setListType(OSF.DDA.ListDescriptors.BindingList,OSF.DDA.PropertyDescriptors.BindingProperties);OSF.DDA.BindingPromise=function(b,a){this._id=b;OSF.OUtil.defineEnumerableProperty(this,"onFail",{"get":function(){return a},"set":function(c){var b=typeof c;if(b!="undefined"&&b!="function")throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,b);a=c}})};OSF.DDA.BindingPromise.prototype={_fetch:function(a){if(this.binding)a&&a(this.binding);else if(!this._binding){var b=this;Microsoft.Office.WebExtension.context.document.bindings.getByIdAsync(this._id,function(c){if(c.status==Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded){OSF.OUtil.defineEnumerableProperty(b,"binding",{value:c.value});a&&a(b.binding)}else if(b.onFail)b.onFail(c)})}return this},getDataAsync:function(){var a=arguments;this._fetch(function(b){b.getDataAsync.apply(b,a)});return this},setDataAsync:function(){var a=arguments;this._fetch(function(b){b.setDataAsync.apply(b,a)});return this},addHandlerAsync:function(){var a=arguments;this._fetch(function(b){b.addHandlerAsync.apply(b,a)});return this},removeHandlerAsync:function(){var a=arguments;this._fetch(function(b){b.removeHandlerAsync.apply(b,a)});return this}};OSF.DDA.BindingFacade=function(b){this._eventDispatches=[];OSF.OUtil.defineEnumerableProperty(this,"document",{value:b});var a=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[a.AddFromSelectionAsync,a.AddFromNamedItemAsync,a.GetAllAsync,a.GetByIdAsync,a.ReleaseByIdAsync])};OSF.DDA.UnknownBinding=function(b,a){OSF.OUtil.defineEnumerableProperties(this,{document:{value:a},id:{value:b}})};OSF.DDA.Binding=function(a,c){OSF.OUtil.defineEnumerableProperties(this,{document:{value:c},id:{value:a}});var d=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[d.GetDataAsync,d.SetDataAsync]);var e=Microsoft.Office.WebExtension.EventType,b=c.bindings._eventDispatches;if(!b[a])b[a]=new OSF.EventDispatch([e.BindingSelectionChanged,e.BindingDataChanged]);var f=b[a];OSF.DDA.DispIdHost.addEventSupport(this,f)};OSF.DDA.generateBindingId=function(){return"UnnamedBinding_"+OSF.OUtil.getUniqueId()+"_"+ +new Date};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureBinding=function(a,c){var d=a[OSF.DDA.BindingProperties.Id],g=a[OSF.DDA.BindingProperties.RowCount],f=a[OSF.DDA.BindingProperties.ColumnCount],h=a[OSF.DDA.BindingProperties.HasHeaders],b;switch(a[OSF.DDA.BindingProperties.Type]){case Microsoft.Office.WebExtension.BindingType.Text:b=new OSF.DDA.TextBinding(d,c);break;case Microsoft.Office.WebExtension.BindingType.Matrix:b=new OSF.DDA.MatrixBinding(d,c,g,f);break;case Microsoft.Office.WebExtension.BindingType.Table:var i=function(){return OSF.DDA.ExcelDocument&&Microsoft.Office.WebExtension.context.document&&Microsoft.Office.WebExtension.context.document instanceof OSF.DDA.ExcelDocument},e;if(i()&&OSF.DDA.ExcelTableBinding)e=OSF.DDA.ExcelTableBinding;else e=OSF.DDA.TableBinding;b=new e(d,c,g,f,h);break;default:b=new OSF.DDA.UnknownBinding(d,c)}return b};OSF.DDA.AsyncMethodNames.addNames({AddFromSelectionAsync:"addFromSelectionAsync",AddFromNamedItemAsync:"addFromNamedItemAsync",GetAllAsync:"getAllAsync",GetByIdAsync:"getByIdAsync",ReleaseByIdAsync:"releaseByIdAsync",GetDataAsync:"getDataAsync",SetDataAsync:"setDataAsync"});(function(){function a(a){return OSF.DDA.OMFactory.manufactureBinding(a,Microsoft.Office.WebExtension.context.document)}function b(a){return a.id}function c(b,d,c){var a=b[Microsoft.Office.WebExtension.Parameters.Data];if(OSF.DDA.TableDataProperties&&a&&(a[OSF.DDA.TableDataProperties.TableRows]!=undefined||a[OSF.DDA.TableDataProperties.TableHeaders]!=undefined))a=OSF.DDA.OMFactory.manufactureTableData(a);a=OSF.DDA.DataCoercion.coerceData(a,c[Microsoft.Office.WebExtension.Parameters.CoercionType]);return a==undefined?null:a}OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddFromSelectionAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.BindingType,"enum":Microsoft.Office.WebExtension.BindingType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:{types:["string"],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:a});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddFromNamedItemAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.ItemName,types:["string"]},{name:Microsoft.Office.WebExtension.Parameters.BindingType,"enum":Microsoft.Office.WebExtension.BindingType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:{types:["string"],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.FailOnCollision,value:function(){return true}}],onSucceeded:a});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetAllAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(b){return OSF.OUtil.mapList(b[OSF.DDA.ListDescriptors.BindingList],a)}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:a});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ReleaseByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(d,b,a){var c=a[Microsoft.Office.WebExtension.Parameters.Id];delete b._eventDispatches[c]}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetDataAsync,requiredArguments:[],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(b,a){return OSF.DDA.DataCoercion.getCoercionDefaultForBinding(a.type)}}},{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:{"enum":Microsoft.Office.WebExtension.ValueFormat,defaultValue:Microsoft.Office.WebExtension.ValueFormat.Unformatted}},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:{"enum":Microsoft.Office.WebExtension.FilterType,defaultValue:Microsoft.Office.WebExtension.FilterType.All}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:["object","string"],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:["object"],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:["number"],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:["number"],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.RowCount,value:{types:["number"],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.ColumnCount,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(a,b,c){if(a[Microsoft.Office.WebExtension.Parameters.StartRow]==0&&a[Microsoft.Office.WebExtension.Parameters.StartColumn]==0&&a[Microsoft.Office.WebExtension.Parameters.RowCount]==0&&a[Microsoft.Office.WebExtension.Parameters.ColumnCount]==0){delete a[Microsoft.Office.WebExtension.Parameters.StartRow];delete a[Microsoft.Office.WebExtension.Parameters.StartColumn];delete a[Microsoft.Office.WebExtension.Parameters.RowCount];delete a[Microsoft.Office.WebExtension.Parameters.ColumnCount]}if(a[Microsoft.Office.WebExtension.Parameters.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(b.type)&&(a[Microsoft.Office.WebExtension.Parameters.StartRow]||a[Microsoft.Office.WebExtension.Parameters.StartColumn]||a[Microsoft.Office.WebExtension.Parameters.RowCount]||a[Microsoft.Office.WebExtension.Parameters.ColumnCount]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return a},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:b}],onSucceeded:c});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(a){return OSF.DDA.DataCoercion.determineCoercionType(a[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:["object","string"],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:["object"],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:["number"],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(a,b,c){if(a[Microsoft.Office.WebExtension.Parameters.StartRow]==0&&a[Microsoft.Office.WebExtension.Parameters.StartColumn]==0){delete a[Microsoft.Office.WebExtension.Parameters.StartRow];delete a[Microsoft.Office.WebExtension.Parameters.StartColumn]}if(a[Microsoft.Office.WebExtension.Parameters.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(b.type)&&(a[Microsoft.Office.WebExtension.Parameters.StartRow]||a[Microsoft.Office.WebExtension.Parameters.StartColumn]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return a},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:b}]})})();OSF.OUtil.augmentList(OSF.DDA.BindingProperties,{RowCount:"BindingRowCount",ColumnCount:"BindingColumnCount",HasHeaders:"HasHeaders"});OSF.DDA.MatrixBinding=function(d,c,b,a){OSF.DDA.MatrixBinding.uber.constructor.call(this,d,c);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.BindingType.Matrix},rowCount:{value:b?b:0},columnCount:{value:a?a:0}})};OSF.OUtil.extend(OSF.DDA.MatrixBinding,OSF.DDA.Binding);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.BindingProperties,fromHost:[{name:OSF.DDA.BindingProperties.Id,value:0},{name:OSF.DDA.BindingProperties.Type,value:1},{name:OSF.DDA.SafeArray.UniqueArguments.BindingSpecificData,value:2}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.BindingType,toHost:[{name:Microsoft.Office.WebExtension.BindingType.Text,value:0},{name:Microsoft.Office.WebExtension.BindingType.Matrix,value:1},{name:Microsoft.Office.WebExtension.BindingType.Table,value:2}],invertible:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddBindingFromSelectionMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.BindingType,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddBindingFromNamedItemMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.ItemName,value:0},{name:Microsoft.Office.WebExtension.Parameters.Id,value:1},{name:Microsoft.Office.WebExtension.Parameters.BindingType,value:2},{name:Microsoft.Office.WebExtension.Parameters.FailOnCollision,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidReleaseBindingMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetBindingMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetAllBindingsMethod,fromHost:[{name:OSF.DDA.ListDescriptors.BindingList,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetBindingDataMethod,fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:1},{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:2},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:3},{name:OSF.DDA.PropertyDescriptors.Subset,value:4}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetBindingDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:1},{name:Microsoft.Office.WebExtension.Parameters.Data,value:2},{name:OSF.DDA.SafeArray.UniqueArguments.Offset,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.SafeArray.UniqueArguments.BindingSpecificData,fromHost:[{name:OSF.DDA.BindingProperties.RowCount,value:0},{name:OSF.DDA.BindingProperties.ColumnCount,value:1},{name:OSF.DDA.BindingProperties.HasHeaders,value:2}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.Subset,toHost:[{name:OSF.DDA.SafeArray.UniqueArguments.Offset,value:0},{name:OSF.DDA.SafeArray.UniqueArguments.Run,value:1}],canonical:true,isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.SafeArray.UniqueArguments.Offset,toHost:[{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:0},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:1}],canonical:true,isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.SafeArray.UniqueArguments.Run,toHost:[{name:Microsoft.Office.WebExtension.Parameters.RowCount,value:0},{name:Microsoft.Office.WebExtension.Parameters.ColumnCount,value:1}],canonical:true,isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddRowsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddColumnsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidClearAllRowsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{TableDataProperties:"TableDataProperties"});OSF.OUtil.augmentList(OSF.DDA.BindingProperties,{RowCount:"BindingRowCount",ColumnCount:"BindingColumnCount",HasHeaders:"HasHeaders"});OSF.DDA.TableDataProperties={TableRows:"TableRows",TableHeaders:"TableHeaders"};OSF.DDA.TableBinding=function(f,e,d,c,b){OSF.DDA.TableBinding.uber.constructor.call(this,f,e);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.BindingType.Table},rowCount:{value:d?d:0},columnCount:{value:c?c:0},hasHeaders:{value:b?b:false}});var a=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[a.AddRowsAsync,a.AddColumnsAsync,a.DeleteAllDataValuesAsync])};OSF.OUtil.extend(OSF.DDA.TableBinding,OSF.DDA.Binding);OSF.DDA.AsyncMethodNames.addNames({AddRowsAsync:"addRowsAsync",AddColumnsAsync:"addColumnsAsync",DeleteAllDataValuesAsync:"deleteAllDataValuesAsync"});(function(){function a(a){return a.id}OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddRowsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:a}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddColumnsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:a}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:a}]})})();OSF.DDA.TextBinding=function(b,a){OSF.DDA.TextBinding.uber.constructor.call(this,b,a);OSF.OUtil.defineEnumerableProperty(this,"type",{value:Microsoft.Office.WebExtension.BindingType.Text})};OSF.OUtil.extend(OSF.DDA.TextBinding,OSF.DDA.Binding);OSF.DDA.AsyncMethodNames.addNames({AddFromPromptAsync:"addFromPromptAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddFromPromptAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.BindingType,"enum":Microsoft.Office.WebExtension.BindingType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:{types:["string"],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.PromptText,value:{types:["string"],calculate:function(){return Strings.OfficeOM.L_AddBindingFromPromptDefaultText}}},{name:Microsoft.Office.WebExtension.Parameters.SampleData,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:function(a){return OSF.DDA.OMFactory.manufactureBinding(a,Microsoft.Office.WebExtension.context.document)}});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddBindingFromPromptMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.BindingType,value:1},{name:Microsoft.Office.WebExtension.Parameters.PromptText,value:2}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{DocumentSelectionChanged:"documentSelectionChanged"});OSF.DDA.DocumentSelectionChangedEventArgs=function(a){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged},document:{value:a}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ObjectDeleted:"objectDeleted"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ObjectSelectionChanged:"objectSelectionChanged"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ObjectDataChanged:"objectDataChanged"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ContentControlAdded:"contentControlAdded"});OSF.DDA.ObjectEventArgs=function(a,b){OSF.OUtil.defineEnumerableProperties(this,{type:{value:a},object:{value:b}})};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDocumentSelectionChangedEvent});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidObjectDeletedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidObjectSelectionChangedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidObjectDataChangedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidContentControlAddedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{BindingSelectionChanged:"bindingSelectionChanged",BindingDataChanged:"bindingDataChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{BindingSelectionChangedEvent:"BindingSelectionChangedEvent"});OSF.DDA.BindingSelectionChangedEventArgs=function(c,a){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.BindingSelectionChanged},binding:{value:c}});for(var b in a)OSF.OUtil.defineEnumerableProperty(this,b,{value:a[b]})};OSF.DDA.BindingDataChangedEventArgs=function(a){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.BindingDataChanged},binding:{value:a}})};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:0},{name:OSF.DDA.PropertyDescriptors.Subset,value:1}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.BindingSelectionChangedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.FilterType,{OnlyVisible:"onlyVisible"});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:Microsoft.Office.WebExtension.FilterType.OnlyVisible,value:1}]});Microsoft.Office.WebExtension.GoToType={Binding:"binding",NamedItem:"namedItem",Slide:"slide",Index:"index"};Microsoft.Office.WebExtension.SelectionMode={Default:"default",Selected:"selected",None:"none"};Microsoft.Office.WebExtension.Index={First:"first",Last:"last",Next:"next",Previous:"previous"};OSF.DDA.AsyncMethodNames.addNames({GoToByIdAsync:"goToByIdAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GoToByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:["string","number"]},{name:Microsoft.Office.WebExtension.Parameters.GoToType,"enum":Microsoft.Office.WebExtension.GoToType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.SelectionMode,value:{"enum":Microsoft.Office.WebExtension.SelectionMode,defaultValue:Microsoft.Office.WebExtension.SelectionMode.Default}}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.GoToType,toHost:[{name:Microsoft.Office.WebExtension.GoToType.Binding,value:0},{name:Microsoft.Office.WebExtension.GoToType.NamedItem,value:1},{name:Microsoft.Office.WebExtension.GoToType.Slide,value:2},{name:Microsoft.Office.WebExtension.GoToType.Index,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.SelectionMode,toHost:[{name:Microsoft.Office.WebExtension.SelectionMode.Default,value:0},{name:Microsoft.Office.WebExtension.SelectionMode.Selected,value:1},{name:Microsoft.Office.WebExtension.SelectionMode.None,value:2}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidNavigateToMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.GoToType,value:1},{name:Microsoft.Office.WebExtension.Parameters.SelectionMode,value:2}]});OSF.DDA.AsyncMethodNames.addNames({ExecuteRichApiRequestAsync:"executeRichApiRequestAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ExecuteRichApiRequestAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["object"]}],supportedOptions:[]});OSF.OUtil.setNamespace("RichApi",OSF.DDA);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidExecuteRichApiRequestMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.FilePropertiesDescriptor={Url:"Url"};OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{FilePropertiesDescriptor:"FilePropertiesDescriptor"});Microsoft.Office.WebExtension.FileProperties=function(a){OSF.OUtil.defineEnumerableProperties(this,{url:{value:a[OSF.DDA.FilePropertiesDescriptor.Url]}})};OSF.DDA.AsyncMethodNames.addNames({GetFilePropertiesAsync:"getFilePropertiesAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetFilePropertiesAsync,fromHost:[{name:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,value:0}],requiredArguments:[],supportedOptions:[],onSucceeded:function(a,c,b){return new Microsoft.Office.WebExtension.FileProperties(a)}});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:OSF.DDA.FilePropertiesDescriptor.Url,value:0}],isComplexType:true});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetFilePropertiesMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.ExcelTableBinding=function(f,b,e,d,c){var a=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[a.ClearFormatsAsync,a.SetTableOptionsAsync,a.SetFormatsAsync]);OSF.DDA.ExcelTableBinding.uber.constructor.call(this,f,b,e,d,c);OSF.OUtil.finalizeProperties(this)};OSF.OUtil.extend(OSF.DDA.ExcelTableBinding,OSF.DDA.TableBinding);(function(){OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(a){return OSF.DDA.DataCoercion.determineCoercionType(a[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:["object"],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:["object"],defaultValue:[]}}],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(a){return OSF.DDA.DataCoercion.determineCoercionType(a[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:["object","string"],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:["object"],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:["number"],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:["number"],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:["object"],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:["object"],defaultValue:[]}}],checkCallArgs:function(a,c,d){var b=Microsoft.Office.WebExtension.Parameters;if(a[b.StartRow]==0&&a[b.StartColumn]==0&&OSF.OUtil.isArray(a[b.CellFormat])&&a[b.CellFormat].length===0&&OSF.OUtil.isArray(a[b.TableOptions])&&a[b.TableOptions].length===0){delete a[b.StartRow];delete a[b.StartColumn];delete a[b.CellFormat];delete a[b.TableOptions]}if(a[b.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(c.type)&&(a[b.StartRow]&&a[b.StartRow]!=0||a[b.StartColumn]&&a[b.StartColumn]!=0||a[b.CellFormat]||a[b.TableOptions]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return a},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:function(a){return a.id}}]});OSF.DDA.BindingPromise.prototype.setTableOptionsAsync=function(){var a=arguments;this._fetch(function(b){b.setTableOptionsAsync.apply(b,a)});return this},OSF.DDA.BindingPromise.prototype.setFormatsAsync=function(){var a=arguments;this._fetch(function(b){b.setFormatsAsync.apply(b,a)});return this},OSF.DDA.BindingPromise.prototype.clearFormatsAsync=function(){var a=arguments;this._fetch(function(b){b.clearFormatsAsync.apply(b,a)});return this}})();(function(){function a(a){return a.id}OSF.DDA.AsyncMethodNames.addNames({ClearFormatsAsync:"clearFormatsAsync",SetTableOptionsAsync:"setTableOptionsAsync",SetFormatsAsync:"setFormatsAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ClearFormatsAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:a}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetTableOptionsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.TableOptions,defaultValue:[]}],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:a}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetFormatsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.CellFormat,defaultValue:[]}],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:a}]})})();Microsoft.Office.WebExtension.Table={All:0,Data:1,Headers:2};(function(){OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidClearFormatsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetTableOptionsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetFormatsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetSelectedDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:2},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetBindingDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:1},{name:Microsoft.Office.WebExtension.Parameters.Data,value:2},{name:OSF.DDA.SafeArray.UniqueArguments.Offset,value:3},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:4},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:5}]});var e={headerRow:0,bandedRows:1,firstColumn:2,lastColumn:3,bandedColumns:4,filterButton:5,style:6,totalRow:7},f={row:0,column:1},b={alignHorizontal:{text:"alignHorizontal",type:1},alignVertical:{text:"alignVertical",type:2},backgroundColor:{text:"backgroundColor",type:101},borderStyle:{text:"borderStyle",type:201},borderColor:{text:"borderColor",type:202},borderTopStyle:{text:"borderTopStyle",type:203},borderTopColor:{text:"borderTopColor",type:204},borderBottomStyle:{text:"borderBottomStyle",type:205},borderBottomColor:{text:"borderBottomColor",type:206},borderLeftStyle:{text:"borderLeftStyle",type:207},borderLeftColor:{text:"borderLeftColor",type:208},borderRightStyle:{text:"borderRightStyle",type:209},borderRightColor:{text:"borderRightColor",type:210},borderOutlineStyle:{text:"borderOutlineStyle",type:211},borderOutlineColor:{text:"borderOutlineColor",type:212},borderInlineStyle:{text:"borderInlineStyle",type:213},borderInlineColor:{text:"borderInlineColor",type:214},fontFamily:{text:"fontFamily",type:301},fontStyle:{text:"fontStyle",type:302},fontSize:{text:"fontSize",type:303},fontUnderlineStyle:{text:"fontUnderlineStyle",type:304},fontColor:{text:"fontColor",type:305},fontDirection:{text:"fontDirection",type:306},fontStrikethrough:{text:"fontStrikethrough",type:307},fontSuperscript:{text:"fontSuperscript",type:308},fontSubscript:{text:"fontSubscript",type:309},fontNormal:{text:"fontNormal",type:310},indentLeft:{text:"indentLeft",type:401},indentRight:{text:"indentRight",type:402},numberFormat:{text:"numberFormat",type:501},width:{text:"width",type:701},height:{text:"height",type:702},wrapping:{text:"wrapping",type:703}},d=[{name:"none",value:0},{name:"thin",value:1},{name:"medium",value:2},{name:"dashed",value:3},{name:"dotted",value:4},{name:"thick",value:5},{name:"double",value:6},{name:"hair",value:7},{name:"medium dashed",value:8},{name:"dash dot",value:9},{name:"medium dash dot",value:10},{name:"dash dot dot",value:11},{name:"medium dash dot dot",value:12},{name:"slant dash dot",value:13}],c=[{name:"none",value:0},{name:"black",value:1},{name:"blue",value:2},{name:"gray",value:3},{name:"green",value:4},{name:"orange",value:5},{name:"pink",value:6},{name:"purple",value:7},{name:"red",value:8},{name:"teal",value:9},{name:"turquoise",value:10},{name:"violet",value:11},{name:"white",value:12},{name:"yellow",value:13},{name:"automatic",value:14}],a=OSF.DDA.SafeArray.Delegate.ParameterMap;a.define({type:b.alignHorizontal.text,toHost:[{name:"general",value:0},{name:"left",value:1},{name:"center",value:2},{name:"right",value:3},{name:"fill",value:4},{name:"justify",value:5},{name:"center across selection",value:6},{name:"distributed",value:7}]});a.define({type:b.alignVertical.text,toHost:[{name:"top",value:0},{name:"center",value:1},{name:"bottom",value:2},{name:"justify",value:3},{name:"distributed",value:4}]});a.define({type:b.backgroundColor.text,toHost:c});a.define({type:b.borderStyle.text,toHost:d});a.define({type:b.borderColor.text,toHost:c});a.define({type:b.borderTopStyle.text,toHost:d});a.define({type:b.borderTopColor.text,toHost:c});a.define({type:b.borderBottomStyle.text,toHost:d});a.define({type:b.borderBottomColor.text,toHost:c});a.define({type:b.borderLeftStyle.text,toHost:d});a.define({type:b.borderLeftColor.text,toHost:c});a.define({type:b.borderRightStyle.text,toHost:d});a.define({type:b.borderRightColor.text,toHost:c});a.define({type:b.borderOutlineStyle.text,toHost:d});a.define({type:b.borderOutlineColor.text,toHost:c});a.define({type:b.borderInlineStyle.text,toHost:d});a.define({type:b.borderInlineColor.text,toHost:c});a.define({type:b.fontStyle.text,toHost:[{name:"regular",value:0},{name:"italic",value:1},{name:"bold",value:2},{name:"bold italic",value:3}]});a.define({type:b.fontUnderlineStyle.text,toHost:[{name:"none",value:0},{name:"single",value:1},{name:"double",value:2},{name:"single accounting",value:3},{name:"double accounting",value:4}]});a.define({type:b.fontColor.text,toHost:c});a.define({type:b.fontDirection.text,toHost:[{name:"context",value:0},{name:"left-to-right",value:1},{name:"right-to-left",value:2}]});a.define({type:b.width.text,toHost:[{name:"auto fit",value:-1}]});a.define({type:b.height.text,toHost:[{name:"auto fit",value:-1}]});a.define({type:Microsoft.Office.WebExtension.Parameters.TableOptions,toHost:[{name:"headerRow",value:0},{name:"bandedRows",value:1},{name:"firstColumn",value:2},{name:"lastColumn",value:3},{name:"bandedColumns",value:4},{name:"filterButton",value:5},{name:"style",value:6},{name:"totalRow",value:7}]});a.dynamicTypes[Microsoft.Office.WebExtension.Parameters.CellFormat]={toHost:function(b){for(var c in b)if(b[c].format)b[c].format=a.doMapValues(b[c].format,"toHost");return b},fromHost:function(a){return a}};a.setDynamicType(Microsoft.Office.WebExtension.Parameters.CellFormat,{toHost:function(j){var d="cells",k="format",q=0,p=1,o=[];for(var n in j){var a=j[n],h=[];if(typeof a[d]!=="undefined"){var e=a[d],c;if(typeof a[d]==="object"){c=[];for(var i in e)if(typeof f[i]!=="undefined")c[f[i]]=e[i]}else c=e;h[q]=c}if(a[k]){var m=a[k],l=[];for(var g in m)typeof b[g]!=="undefined"&&l.push([b[g].type,m[g]]);h[p]=l}o[n]=h}return o},fromHost:function(a){return a}});a.setDynamicType(Microsoft.Office.WebExtension.Parameters.TableOptions,{toHost:function(b){var c=[];for(var a in b)if(typeof e[a]!=="undefined")c[e[a]]=b[a];return c},fromHost:function(a){return a}})})();OSF.OUtil.augmentList(Microsoft.Office.WebExtension.CoercionType,{Image:"image"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.CoercionType,{XmlSvg:"xmlSvg"});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.CoercionType,toHost:[{name:Microsoft.Office.WebExtension.CoercionType.Image,value:8},{name:Microsoft.Office.WebExtension.CoercionType.XmlSvg,value:9}]});OSF.DDA.ExcelDocument=function(b,c){var a=new OSF.DDA.BindingFacade(this);OSF.DDA.DispIdHost.addAsyncMethods(a,[OSF.DDA.AsyncMethodNames.AddFromPromptAsync]);OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.GoToByIdAsync]);OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.GetFilePropertiesAsync]);OSF.DDA.ExcelDocument.uber.constructor.call(this,b,a,c);OSF.OUtil.finalizeProperties(this)};OSF.OUtil.extend(OSF.DDA.ExcelDocument,OSF.DDA.JsomDocument);OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(a,b,c){OSF.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM);a.doc=new OSF.DDA.ExcelDocument(a,this._initializeSettings(a,false));OSF.DDA.DispIdHost.addAsyncMethods(OSF.DDA.RichApi,[OSF.DDA.AsyncMethodNames.ExecuteRichApiRequestAsync]);b()};(function(){OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(a){return OSF.DDA.DataCoercion.determineCoercionType(a[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:["number","object"],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:["number","object"],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:{types:["number","boolean"],defaultValue:false}},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:{types:["number","boolean"],defaultValue:false}}],privateStateCallbacks:[]})})();var __extends=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(c,a){for(var b in a)if(a.hasOwnProperty(b))c[b]=a[b]};return a(c,b)};return function(c,b){a(c,b);function d(){this.constructor=c}c.prototype=b===null?Object.create(b):(d.prototype=b.prototype,new d)}}(),OfficeExtension;(function(a){var b;(function(a){a.OfficeRequire=function(){return null}()})(b=a._Internal||(a._Internal={}));(function(a){var b;(function(b){function c(){return function(){"use strict";function N(a){return typeof a==="function"||typeof a==="object"&&a!==null}function u(a){return typeof a==="function"}function Q(a){return typeof a==="object"&&a!==null}var v;if(!Array.isArray)v=function(a){return Object.prototype.toString.call(a)==="[object Array]"};else v=Array.isArray;var A=v,n=0,lb={}.toString,gb,s,h=function(a,b){m[n]=a;m[n+1]=b;n+=2;if(n===2)if(s)s(l);else o()};function Z(a){s=a}function ib(a){h=a}var U=typeof window!=="undefined"?window:undefined,z=U||{},w=z.MutationObserver||z.WebKitMutationObserver,jb=typeof process!=="undefined"&&{}.toString.call(process)==="[object process]",hb=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function bb(){var b=process.nextTick,a=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);if(Array.isArray(a)&&a[1]==="0"&&a[2]==="10")b=window.setImmediate;return function(){b(l)}}function kb(){return function(){gb(l)}}function I(){var a=0,c=new w(l),b=document.createTextNode("");c.observe(b,{characterData:true});return function(){b.data=a=++a%2}}function L(){var a=new MessageChannel;a.port1.onmessage=l;return function(){a.port2.postMessage(0)}}function V(){return function(){setTimeout(l,1)}}var m=new Array(1e3);function l(){for(var a=0;a<n;a+=2){var b=m[a],c=m[a+1];b(c);m[a]=undefined;m[a+1]=undefined}n=0}var o;if(jb)o=bb();else if(w)o=I();else if(hb)o=L();else o=V();function k(){}var g=void 0,i=1,f=2,p=new y;function G(){return new TypeError("You cannot resolve a promise with itself")}function H(){return new TypeError("A promises callback cannot return that same promise.")}function X(a){try{return a.then}catch(b){p.error=b;return p}}function Y(d,c,a,b){try{d.call(c,a,b)}catch(e){return e}}function B(c,a,e){h(function(f){var c=false,g=Y(e,a,function(b){if(c)return;c=true;if(a!==b)j(f,b);else d(f,b)},function(a){if(c)return;c=true;b(f,a)},"Settle: "+(f._label||" unknown promise"));if(!c&&g){c=true;b(f,g)}},c)}function D(c,a){if(a._state===i)d(c,a._result);else if(a._state===f)b(c,a._result);else q(a,undefined,function(a){j(c,a)},function(a){b(c,a)})}function C(c,a){if(a.constructor===c.constructor)D(c,a);else{var e=X(a);if(e===p)b(c,p.error);else if(e===undefined)d(c,a);else if(u(e))B(c,a,e);else d(c,a)}}function j(a,c){if(a===c)b(a,G());else if(N(c))C(a,c);else d(a,c)}function F(a){a._onerror&&a._onerror(a._result);t(a)}function d(a,b){if(a._state!==g)return;a._result=b;a._state=i;a._subscribers.length!==0&&h(t,a)}function b(a,b){if(a._state!==g)return;a._state=f;a._result=b;h(F,a)}function q(c,g,d,e){var a=c._subscribers,b=a.length;c._onerror=null;a[b]=g;a[b+i]=d;a[b+f]=e;b===0&&c._state&&h(t,c)}function t(b){var a=b._subscribers,f=b._state;if(a.length===0)return;for(var e,d,g=b._result,c=0;c<a.length;c+=3){e=a[c];d=a[c+f];if(e)x(f,e,d,g);else d(g)}b._subscribers.length=0}function y(){this.error=null}var r=new y;function T(a,b){try{return a(b)}catch(c){r.error=c;return r}}function x(l,c,k,m){var h=u(k),a,o,e,n;if(h){a=T(k,m);if(a===r){n=true;o=a.error;a=null}else e=true;if(c===a){b(c,H());return}}else{a=m;e=true}if(c._state===g)if(h&&e)j(c,a);else if(n)b(c,o);else if(l===i)d(c,a);else l===f&&b(c,a)}function E(a,c){try{c(function(b){j(a,b)},function(c){b(a,c)})}catch(d){b(a,d)}}function e(e,c){var a=this;a._instanceConstructor=e;a.promise=new e(k);if(a._validateInput(c)){a._input=c;a.length=c.length;a._remaining=c.length;a._init();if(a.length===0)d(a.promise,a._result);else{a.length=a.length||0;a._enumerate();a._remaining===0&&d(a.promise,a._result)}}else b(a.promise,a._validationError())}e.prototype._validateInput=function(a){return A(a)};e.prototype._validationError=function(){return new a.Error("Array Methods must be provided an Array")};e.prototype._init=function(){this._result=new Array(this.length)};var W=e;e.prototype._enumerate=function(){for(var a=this,d=a.length,c=a.promise,e=a._input,b=0;c._state===g&&b<d;b++)a._eachEntry(e[b],b)};e.prototype._eachEntry=function(a,c){var b=this,d=b._instanceConstructor;if(Q(a))if(a.constructor===d&&a._state!==g){a._onerror=null;b._settledAt(a._state,c,a._result)}else b._willSettleAt(d.resolve(a),c);else{b._remaining--;b._result[c]=a}};e.prototype._settledAt=function(h,i,e){var a=this,c=a.promise;if(c._state===g){a._remaining--;if(h===f)b(c,e);else a._result[i]=e}a._remaining===0&&d(c,a._result)};e.prototype._willSettleAt=function(c,b){var a=this;q(c,undefined,function(c){a._settledAt(i,b,c)},function(c){a._settledAt(f,b,c)})};function fb(a){return new W(this,a).promise}var S=fb;function ab(c){var e=this,a=new e(k);if(!A(c)){b(a,new TypeError("You must pass an array to race."));return a}var i=c.length;function f(b){j(a,b)}function h(c){b(a,c)}for(var d=0;a._state===g&&d<i;d++)q(e.resolve(c[d]),undefined,f,h);return a}var R=ab;function K(a){var b=this;if(a&&typeof a==="object"&&a.constructor===b)return a;var c=new b(k);j(c,a);return c}var J=K;function P(d){var c=this,a=new c(k);b(a,d);return a}var M=P,db=0;function O(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function cb(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}var eb=c;function c(a){this._id=db++;this._state=undefined;this._result=undefined;this._subscribers=[];if(k!==a){!u(a)&&O();!(this instanceof c)&&cb();E(this,a)}}c.all=S;c.race=R;c.resolve=J;c.reject=M;c._setScheduler=Z;c._setAsap=ib;c._asap=h;c.prototype={constructor:c,then:function(d,e){var b=this,a=b._state;if(a===i&&!d||a===f&&!e)return this;var c=new this.constructor(k),j=b._result;if(a){var g=arguments[a-1];h(function(){x(a,c,g,j)})}else q(b,c,d,e);return c},"catch":function(a){return this.then(null,a)}};return eb}.call(this)}b.Init=c})(b=a.PromiseImpl||(a.PromiseImpl={}))})(b=a._Internal||(a._Internal={}));(function(a){function c(){var a=window.navigator.userAgent,b=a.indexOf("Edge/");if(b>=0){a=a.substring(b+5,a.length);if(a<"14.14393")return true;else return false}return false}function b(){if(typeof window==="undefined"&&typeof Promise==="function")return Promise;if(typeof window!=="undefined"&&window.Promise)if(c())return a.PromiseImpl.Init();else return window.Promise;else return a.PromiseImpl.Init()}a.OfficePromise=b()})(b=a._Internal||(a._Internal={}));var c=b.OfficePromise;a.Promise=c})(OfficeExtension||(OfficeExtension={}));var OfficeExtension;(function(c){var s=function(){function b(){}b.prototype._resolveRequestUrlAndHeaderInfo=function(){return a._createPromiseFromResult(null)};b.prototype._createRequestExecutorOrNull=function(){return null};Object.defineProperty(b.prototype,"eventRegistration",{"get":function(){return null},enumerable:true,configurable:true});return b}();c.SessionBase=s;var D=function(){function b(){}b.setCustomSendRequestFunc=function(a){b.s_customSendRequestFunc=a};b.xhrSendRequestFunc=function(b){return a.createPromise(function(g,h){var c=new XMLHttpRequest;c.open(b.method,b.url);c.onload=function(){var b={statusCode:c.status,headers:a._parseHttpResponseHeaders(c.getAllResponseHeaders()),body:c.responseText};g(b)};c.onerror=function(){h(new d.RuntimeError({code:f.connectionFailure,message:a._getResourceString(i.connectionFailureWithStatus,c.statusText)}))};if(b.headers)for(var e in b.headers)c.setRequestHeader(e,b.headers[e]);c.send(a._getRequestBodyText(b))})};b.sendRequest=function(c){b.validateAndNormalizeRequest(c);var a=b.s_customSendRequestFunc;if(!a)a=b.xhrSendRequestFunc;return a(c)};b.setCustomSendLocalDocumentRequestFunc=function(a){b.s_customSendLocalDocumentRequestFunc=a};b.sendLocalDocumentRequest=function(a){b.validateAndNormalizeRequest(a);var c;c=b.s_customSendLocalDocumentRequestFunc||b.officeJsSendLocalDocumentRequestFunc;return c(a)};b.officeJsSendLocalDocumentRequestFunc=function(b){b=a._validateLocalDocumentRequest(b);var c=a._buildRequestMessageSafeArray(b);return a.createPromise(function(b,d){OSF.DDA.RichApi.executeRichApiRequestAsync(c,function(c){var d;if(c.status=="succeeded")d={statusCode:k.getResponseStatusCode(c),headers:k.getResponseHeaders(c),body:k.getResponseBody(c)};else d=k.buildHttpResponseFromOfficeJsError(c.error.code,c.error.message);a.log("Response:");a.log(JSON.stringify(d));b(d)})})};b.validateAndNormalizeRequest=function(b){if(a.isNullOrUndefined(b))throw d.RuntimeError._createInvalidArgError({argumentName:"request"});if(a.isNullOrEmptyString(b.method))b.method="GET";b.method=b.method.toUpperCase()};b.logRequest=function(c){if(a._logEnabled){a.log("---HTTP Request---");a.log(c.method+" "+c.url);if(c.headers)for(var d in c.headers)a.log(d+": "+c.headers[d]);b._logBodyEnabled&&a.log(a._getRequestBodyText(c))}};b.logResponse=function(c){if(a._logEnabled){a.log("---HTTP Response---");a.log(""+c.statusCode);if(c.headers)for(var d in c.headers)a.log(d+": "+c.headers[d]);b._logBodyEnabled&&a.log(c.body)}};b._logBodyEnabled=false;return b}();c.HttpUtility=D;var v=function(){function b(a){var b=this;this.m_bridge=a;this.m_promiseResolver={};this.m_handlers=[];this.m_bridge.onMessageFromHost=function(f){var e=JSON.parse(f);if(e.type==3){var c=e.message;if(c&&c.entries)for(var d=0;d<c.entries.length;d++){var a=c.entries[d];if(Array.isArray(a)){var g={messageCategory:a[0],messageType:a[1],targetId:a[2],message:a[3],id:a[4]};c.entries[d]=g}}}b.dispatchMessage(e)}}b.init=function(d){if(typeof d!=="object"||!d)return;var c=new b(d);b.s_instance=c;D.setCustomSendLocalDocumentRequestFunc(function(d){d=a._validateLocalDocumentRequest(d);var e=0;if(!a.isReadonlyRestRequest(d.method))e=1;var g=d.url.indexOf("?");if(g>=0){var i=d.url.substr(g+1),f=a._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);if(f.flags>=0)e=f.flags}var h={id:b.nextId(),type:1,flags:e,message:d};return c.sendMessageToHostAndExpectResponse(h).then(function(a){var b=a.message;return b})});for(var e=0;e<b.s_onInitedHandlers.length;e++)b.s_onInitedHandlers[e](c)};Object.defineProperty(b,"instance",{"get":function(){return b.s_instance},enumerable:true,configurable:true});b.prototype.sendMessageToHost=function(a){this.m_bridge.sendMessageToHost(JSON.stringify(a))};b.prototype.sendMessageToHostAndExpectResponse=function(b){var c=this,d=a.createPromise(function(a,d){c.m_promiseResolver[b.id]=a});this.m_bridge.sendMessageToHost(JSON.stringify(b));return d};b.prototype.addHostMessageHandler=function(a){this.m_handlers.push(a)};b.prototype.removeHostMessageHandler=function(b){var a=this.m_handlers.indexOf(b);a>=0&&this.m_handlers.splice(a,1)};b.onInited=function(a){b.s_onInitedHandlers.push(a);b.s_instance&&a(b.s_instance)};b.prototype.dispatchMessage=function(a){if(typeof a.id==="number"){var c=this.m_promiseResolver[a.id];if(c){c(a);delete this.m_promiseResolver[a.id];return}}for(var b=0;b<this.m_handlers.length;b++)this.m_handlers[b](a)};b.nextId=function(){return b.s_nextId++};b.s_onInitedHandlers=[];b.s_nextId=1;return b}();c.HostBridge=v;typeof _richApiNativeBridge==="object"&&_richApiNativeBridge&&v.init(_richApiNativeBridge);var d;(function(b){var c=function(d){__extends(c,d);function c(a){var b=d.call(this,typeof a==="string"?a:a.message)||this;Object.setPrototypeOf(b,c.prototype);b.name="RichApi.Error";if(typeof a==="string")b.message=a;else{b.code=a.code;b.message=a.message;b.traceMessages=a.traceMessages||[];b.innerError=a.innerError||null;b.debugInfo=b._createDebugInfo(a.debugInfo||{})}return b}c.prototype.toString=function(){return this.code+": "+this.message};c.prototype._createDebugInfo=function(c){var a={code:this.code,message:this.message};a.toString=function(){return JSON.stringify(this)};for(var d in c)a[d]=c[d];if(this.innerError)if(this.innerError instanceof b.RuntimeError)a.innerError=this.innerError.debugInfo;else a.innerError=this.innerError;return a};c._createInvalidArgError=function(c){return new b.RuntimeError({code:f.invalidArgument,message:a.isNullOrEmptyString(c.argumentName)?a._getResourceString(i.invalidArgumentGeneric):a._getResourceString(i.invalidArgument,c.argumentName),debugInfo:c.errorLocation?{errorLocation:c.errorLocation}:{},innerError:c.innerError})};return c}(Error);b.RuntimeError=c})(d=c._Internal||(c._Internal={}));c.Error=d.RuntimeError;var f=function(){function a(){}a.apiNotFound="ApiNotFound";a.accessDenied="AccessDenied";a.generalException="GeneralException";a.activityLimitReached="ActivityLimitReached";a.invalidArgument="InvalidArgument";a.connectionFailure="ConnectionFailure";a.timeout="Timeout";a.invalidOrTimedOutSession="InvalidOrTimedOutSession";a.invalidObjectPath="InvalidObjectPath";a.invalidRequestContext="InvalidRequestContext";a.valueNotLoaded="ValueNotLoaded";return a}();c.CoreErrorCodes=f;var i=function(){function a(){}a.apiNotFoundDetails="ApiNotFoundDetails";a.connectionFailureWithStatus="ConnectionFailureWithStatus";a.connectionFailureWithDetails="ConnectionFailureWithDetails";a.invalidArgument="InvalidArgument";a.invalidArgumentGeneric="InvalidArgumentGeneric";a.timeout="Timeout";a.invalidOrTimedOutSessionMessage="InvalidOrTimedOutSessionMessage";a.invalidObjectPath="InvalidObjectPath";a.invalidRequestContext="InvalidRequestContext";a.valueNotLoaded="ValueNotLoaded";return a}();c.CoreResourceStrings=i;var l=function(){function a(){}a.flags="flags";a.sourceLibHeader="SdkVersion";a.processQuery="ProcessQuery";a.localDocument="http://document.localhost/";a.localDocumentApiPrefix="http://document.localhost/_api/";a.customData="customdata";return a}();c.CoreConstants=l;var k=function(){function b(){}b.buildMessageArrayForIRequestExecutor=function(i,h,g,e){var c=JSON.stringify(g.Body);a.log("Request:");a.log(c);var d={};d[l.sourceLibHeader]=e;var f=b.buildRequestMessageSafeArray(i,h,"POST",l.processQuery,d,c);return f};b.buildResponseOnSuccess=function(c,b){var a={ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};a.Body=JSON.parse(c);a.Headers=b;return a};b.buildResponseOnError=function(d,e){var c={ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};c.ErrorCode=f.generalException;c.ErrorMessage=e;if(d==b.OfficeJsErrorCode_ooeNoCapability)c.ErrorCode=f.accessDenied;else if(d==b.OfficeJsErrorCode_ooeActivityLimitReached)c.ErrorCode=f.activityLimitReached;else if(d==b.OfficeJsErrorCode_ooeInvalidOrTimedOutSession){c.ErrorCode=f.invalidOrTimedOutSession;c.ErrorMessage=a._getResourceString(i.invalidOrTimedOutSessionMessage)}return c};b.buildHttpResponseFromOfficeJsError=function(d,e){var c=500,a={};a.error={};a.error.code=f.generalException;a.error.message=e;if(d===b.OfficeJsErrorCode_ooeNoCapability){c=403;a.error.code=f.accessDenied}else if(d===b.OfficeJsErrorCode_ooeActivityLimitReached){c=429;a.error.code=f.activityLimitReached}return{statusCode:c,headers:{},body:JSON.stringify(a)}};b.buildRequestMessageSafeArray=function(g,f,j,l,b,k){var a=[];if(b)for(var c in b){a.push(c);a.push(b[c])}var e=0,i="",h="",d="";return[g,j,l,a,k,e,f,i,h,d]};b.getResponseBody=function(a){return b.getResponseBodyFromSafeArray(a.value.data)};b.getResponseHeaders=function(a){return b.getResponseHeadersFromSafeArray(a.value.data)};b.getResponseBodyFromSafeArray=function(b){var a=b[2];if(typeof a==="string")return a;var c=a;return c.join("")};b.getResponseHeadersFromSafeArray=function(d){var a=d[1];if(!a)return null;for(var c={},b=0;b<a.length-1;b+=2)c[a[b]]=a[b+1];return c};b.getResponseStatusCode=function(a){return b.getResponseStatusCodeFromSafeArray(a.value.data)};b.getResponseStatusCodeFromSafeArray=function(a){return a[0]};b.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012;b.OfficeJsErrorCode_ooeActivityLimitReached=5102;b.OfficeJsErrorCode_ooeNoCapability=7e3;return b}();c.RichApiMessageUtility=k;(function(a){function b(){if(typeof Promise!=="undefined")return Promise;if(typeof Office!=="undefined")if(Office.Promise)return Office.Promise;if(typeof OfficeExtension!=="undefined")if(OfficeExtension.Promise)return OfficeExtension.Promise;throw new a.Error("No Promise implementation found");}a.getPromiseType=b})(d=c._Internal||(c._Internal={}));var a=function(){function a(){}a.log=function(b){a._logEnabled&&typeof console!=="undefined"&&console.log&&console.log(b)};a.checkArgumentNull=function(b,c){if(a.isNullOrUndefined(b))throw d.RuntimeError._createInvalidArgError({argumentName:c});};a.isNullOrUndefined=function(a){if(a===null)return true;if(typeof a==="undefined")return true;return false};a.isUndefined=function(a){if(typeof a==="undefined")return true;return false};a.isNullOrEmptyString=function(a){if(a===null)return true;if(typeof a==="undefined")return true;if(a.length==0)return true;return false};a.isPlainJsonObject=function(c){if(a.isNullOrUndefined(c))return false;if(typeof c!=="object")return false;if(Object.prototype.toString.apply(c)!=="[object Object]")return false;var b=c;do b=Object.getPrototypeOf(b);while(b!==null&&Object.getPrototypeOf(b)!==null);return Object.getPrototypeOf(c)===b};a.trim=function(a){return a.replace(new RegExp("^\\s+|\\s+$","g"),"")};a.caseInsensitiveCompareString=function(c,b){if(a.isNullOrUndefined(c))return a.isNullOrUndefined(b);else if(a.isNullOrUndefined(b))return false;else return c.toUpperCase()==b.toUpperCase()};a.isReadonlyRestRequest=function(b){return a.caseInsensitiveCompareString(b,"GET")};a._getResourceString=function(d,c){var b;if(typeof window!=="undefined"&&window.Strings&&window.Strings.OfficeOM){var f="L_"+d,e=window.Strings.OfficeOM[f];if(e)b=e}if(!b)b=a.s_resourceStringValues[d];if(!b)b=d;if(!a.isNullOrUndefined(c))if(Array.isArray(c)){var g=c;b=a._formatString(b,g)}else b=b.replace("{0}",c);return b};a._formatString=function(b,a){return b.replace(/\{\d\}/g,function(c){var b=parseInt(c.substr(1,c.length-2));if(b<a.length)return a[b];else throw d.RuntimeError._createInvalidArgError({argumentName:"format"});})};Object.defineProperty(a,"Promise",{"get":function(){return d.getPromiseType()},enumerable:true,configurable:true});a.createPromise=function(b){var c=new a.Promise(b);return c};a._createPromiseFromResult=function(b){return a.createPromise(function(a,c){a(b)})};a._createPromiseFromException=function(b){return a.createPromise(function(c,a){a(b)})};a._createTimeoutPromise=function(b){return a.createPromise(function(a,c){setTimeout(function(){a(null)},b)})};a._createInvalidArgError=function(a){return d.RuntimeError._createInvalidArgError(a)};a._isLocalDocumentUrl=function(b){return a._getLocalDocumentUrlPrefixLength(b)>0};a._getLocalDocumentUrlPrefixLength=function(d){for(var b=["http://document.localhost","https://document.localhost","//document.localhost"],c=d.toLowerCase().trim(),a=0;a<b.length;a++)if(c===b[a])return b[a].length;else if(c.substr(0,b[a].length+1)===b[a]+"/")return b[a].length+1;return 0};a._validateLocalDocumentRequest=function(b){var f=a._getLocalDocumentUrlPrefixLength(b.url);if(f<=0)throw d.RuntimeError._createInvalidArgError({argumentName:"request"});var c=b.url.substr(f),e=c.toLowerCase();if(e==="_api")c="";else if(e.substr(0,"_api/".length)==="_api/")c=c.substr("_api/".length);return{method:b.method,url:c,headers:b.headers,body:b.body}};a._parseRequestFlagsAndCustomDataFromQueryStringIfAny=function(f){for(var c={flags:-1,customData:""},e=f.split("&"),d=0;d<e.length;d++){var a=e[d].split("=");if(a[0].toLowerCase()===l.flags){var b=parseInt(a[1]);b=b&511;c.flags=b}else if(a[0].toLowerCase()===l.customData)c.customData=decodeURIComponent(a[1])}return c};a._getRequestBodyText=function(a){var b="";if(typeof a.body==="string")b=a.body;else if(a.body&&typeof a.body==="object")b=JSON.stringify(a.body);return b};a._parseResponseBody=function(b){if(typeof b.body==="string"){var c=a.trim(b.body);return JSON.parse(c)}else return b.body};a._buildRequestMessageSafeArray=function(b){var d=0;if(!a.isReadonlyRestRequest(b.method))d=1;var e="";if(b.url.substr(0,l.processQuery.length).toLowerCase()===l.processQuery.toLowerCase()){var f=b.url.indexOf("?");if(f>0){var g=b.url.substr(f+1),c=a._parseRequestFlagsAndCustomDataFromQueryStringIfAny(g);if(c.flags>=0)d=c.flags;e=c.customData}}return k.buildRequestMessageSafeArray(e,d,b.method,b.url,b.headers,a._getRequestBodyText(b))};a._parseHttpResponseHeaders=function(g){var h={};if(!a.isNullOrEmptyString(g))for(var j=new RegExp("\x0d?\x0a"),i=g.split(j),f=0;f<i.length;f++){var b=i[f];if(b!=null){var c=b.indexOf(":");if(c>0){var e=b.substr(0,c),d=b.substr(c+1);e=a.trim(e);d=a.trim(d);h[e.toUpperCase()]=d}}}return h};a._parseErrorResponse=function(c){var b=null;if(a.isPlainJsonObject(c.body))b=c.body;else if(!a.isNullOrEmptyString(c.body)){var g=a.trim(c.body);try{b=JSON.parse(g)}catch(h){a.log("Error when parse "+g)}}var e,d;if(!a.isNullOrUndefined(b)&&typeof b==="object"&&b.error){d=b.error.code;e=a._getResourceString(i.connectionFailureWithDetails,[c.statusCode.toString(),b.error.code,b.error.message])}else e=a._getResourceString(i.connectionFailureWithStatus,c.statusCode.toString());if(a.isNullOrEmptyString(d))d=f.connectionFailure;return{errorCode:d,errorMessage:e}};a._copyHeaders=function(a,b){if(a&&b)for(var c in a)b[c]=a[c]};a.addResourceStringValues=function(b){for(var c in b)a.s_resourceStringValues[c]=b[c]};a._logEnabled=false;a.s_resourceStringValues={ApiNotFoundDetails:"The method or property {0} is part of the {1} requirement set, which is not available in your version of {2}.",ConnectionFailureWithStatus:"The request failed with status code of {0}.",ConnectionFailureWithDetails:"The request failed with status code of {0}, error code {1} and the following error message: {2}",InvalidArgument:"The argument '{0}' doesn't work for this situation, is missing, or isn't in the right format.",InvalidObjectPath:'The object path \'{0}\' isn\'t working for what you\'re trying to do. If you\'re using the object across multiple "context.sync" calls and outside the sequential execution of a ".run" batch, please use the "context.trackedObjects.add()" and "context.trackedObjects.remove()" methods to manage the object\'s lifetime.',InvalidRequestContext:"Cannot use the object across different request contexts.",Timeout:"The operation has timed out.",ValueNotLoaded:'The value of the result object has not been loaded yet. Before reading the value property, call "context.sync()" on the associated request context.'};return a}();c.CoreUtility=a;c._internalConfig={showDisposeInfoInDebugInfo:false,showInternalApiInDebugInfo:false,enableEarlyDispose:true,alwaysPolyfillClientObjectUpdateMethod:false,alwaysPolyfillClientObjectRetrieveMethod:false,enableConcurrentFlag:true,enableUndoableFlag:true};c.config={extendedErrorLogging:false};var t=function(){function a(){}a.createSetPropertyAction=function(f,a,g,i,h){e.validateObjectPath(a);var d={Id:f._nextId(),ActionType:4,Name:g,ObjectPathId:a._objectPath.objectPathInfo.Id,ArgumentInfo:{}},j=[i],c=e.setMethodArguments(f,d.ArgumentInfo,j);e.validateReferencedObjectPaths(c);var b=new n(d,0,h);b.referencedObjectPath=a._objectPath;b.referencedArgumentObjectPaths=c;return a._addAction(b)};a.createQueryAction=function(g,a,d,c){e.validateObjectPath(a);var f={Id:g._nextId(),ActionType:2,Name:"",ObjectPathId:a._objectPath.objectPathInfo.Id,QueryInfo:d},b=new n(f,1,4);b.referencedObjectPath=a._objectPath;return a._addAction(b,c)};a.createQueryAsJsonAction=function(g,a,d,c){e.validateObjectPath(a);var f={Id:g._nextId(),ActionType:7,Name:"",ObjectPathId:a._objectPath.objectPathInfo.Id,QueryInfo:d},b=new n(f,1,4);b.referencedObjectPath=a._objectPath;return a._addAction(b,c)};a.createUpdateAction=function(f,a,c){e.validateObjectPath(a);var d={Id:f._nextId(),ActionType:9,Name:"",ObjectPathId:a._objectPath.objectPathInfo.Id,ObjectState:c},b=new n(d,0,0);b.referencedObjectPath=a._objectPath;return a._addAction(b)};return a}();c.CommonActionFactory=t;var y=function(){function b(a,b){this.m_contextBase=a;this.m_objectPath=b}Object.defineProperty(b.prototype,"_objectPath",{"get":function(){return this.m_objectPath},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_context",{"get":function(){return this.m_contextBase},enumerable:true,configurable:true});b.prototype._addAction=function(c,b){var d=this;if(b===void 0)b=null;return a.createPromise(function(a,e){d._context._addServiceApiAction(c,b,a,e)})};b.prototype._retrieve=function(f,b){var a=c._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;if(!a)a=!e.isSetSupported("RichApiRuntime","1.1");var d=B._parseQueryOption(f);if(a)return t.createQueryAction(this._context,this,d,b);return t.createQueryAsJsonAction(this._context,this,d,b)};b.prototype._recursivelyUpdate=function(p){var n=c._internalConfig.alwaysPolyfillClientObjectUpdateMethod;if(!n)n=!e.isSetSupported("RichApiRuntime","1.2");try{var g=this[j.scalarPropertyNames];if(!g)g=[];var k=this[j.scalarPropertyUpdateable];if(!k){k=[];for(var h=0;h<g.length;h++)k.push(false)}var l=this[j.navigationPropertyNames];if(!l)l=[];var o={},m={},q=0;for(var b in p){var s=g.indexOf(b);if(s>=0){if(!k[s])throw new d.RuntimeError({code:f.invalidArgument,message:a._getResourceString(w.attemptingToSetReadOnlyProperty,b),debugInfo:{errorLocation:b}});o[b]=p[b];++q}else if(l.indexOf(b)>=0)m[b]=p[b];else throw new d.RuntimeError({code:f.invalidArgument,message:a._getResourceString(w.propertyDoesNotExist,b),debugInfo:{errorLocation:b}});}if(q>0)if(n)for(var h=0;h<g.length;h++){var b=g[h],r=o[b];!e.isUndefined(r)&&t.createSetPropertyAction(this._context,this,b,r)}else t.createUpdateAction(this._context,this,o);for(var b in m){var u=this[b],v=m[b];u._recursivelyUpdate(v)}}catch(x){throw new d.RuntimeError({code:f.invalidArgument,message:a._getResourceString(i.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:x});}};return b}();c.ClientObjectBase=y;var n=function(){function a(b,a,c){this.m_actionInfo=b;this.m_operationType=a;this.m_flags=c}Object.defineProperty(a.prototype,"actionInfo",{"get":function(){return this.m_actionInfo},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"operationType",{"get":function(){return this.m_operationType},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"flags",{"get":function(){return this.m_flags},enumerable:true,configurable:true});return a}();c.Action=n;var m=function(){function b(c,b,e,a,d,f){this.m_objectPathInfo=c;this.m_parentObjectPath=b;this.m_isCollection=e;this.m_isInvalidAfterRequest=a;this.m_isValid=true;this.m_operationType=d;this.m_flags=f}Object.defineProperty(b.prototype,"objectPathInfo",{"get":function(){return this.m_objectPathInfo},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"operationType",{"get":function(){return this.m_operationType},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"flags",{"get":function(){return this.m_flags},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"isCollection",{"get":function(){return this.m_isCollection},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"isInvalidAfterRequest",{"get":function(){return this.m_isInvalidAfterRequest},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"parentObjectPath",{"get":function(){return this.m_parentObjectPath},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"argumentObjectPaths",{"get":function(){return this.m_argumentObjectPaths},"set":function(a){this.m_argumentObjectPaths=a},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"isValid",{"get":function(){return this.m_isValid},"set":function(a){this.m_isValid=a;if(!a&&this.m_objectPathInfo.ObjectPathType===6&&this.m_savedObjectPathInfo){b.copyObjectPathInfo(this.m_savedObjectPathInfo.pathInfo,this.m_objectPathInfo);this.m_parentObjectPath=this.m_savedObjectPathInfo.parent;this.m_isValid=true;this.m_savedObjectPathInfo=null}},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"originalObjectPathInfo",{"get":function(){return this.m_originalObjectPathInfo},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"getByIdMethodName",{"get":function(){return this.m_getByIdMethodName},"set":function(a){this.m_getByIdMethodName=a},enumerable:true,configurable:true});b.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData();this.m_objectPathInfo.ObjectPathType=7;this.m_objectPathInfo.Name="";this.m_parentObjectPath=null};b.prototype.saveOriginalObjectPathInfo=function(){if(c.config.extendedErrorLogging&&!this.m_originalObjectPathInfo){this.m_originalObjectPathInfo={};b.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo)}};b.prototype.updateUsingObjectData=function(i,c){var m=i[j.referenceId];if(!a.isNullOrEmptyString(m)){if(!this.m_savedObjectPathInfo&&!this.isInvalidAfterRequest&&b.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)){var n={};b.copyObjectPathInfo(this.m_objectPathInfo,n);this.m_savedObjectPathInfo={pathInfo:n,parent:this.m_parentObjectPath}}this.saveOriginalObjectPathInfo();this.resetForUpdateUsingObjectData();this.m_objectPathInfo.ObjectPathType=6;this.m_objectPathInfo.Name=m;delete this.m_objectPathInfo.ParentObjectPathId;this.m_parentObjectPath=null;return}if(c){var l=c[j.collectionPropertyPath];if(!a.isNullOrEmptyString(l)&&c.context){var d=e.tryGetObjectIdFromLoadOrRetrieveResult(i);if(!a.isNullOrUndefined(d)){for(var g=l.split("."),h=c.context[g[0]],k=1;k<g.length;k++)h=h[g[k]];this.saveOriginalObjectPathInfo();this.resetForUpdateUsingObjectData();this.m_parentObjectPath=h._objectPath;this.m_objectPathInfo.ParentObjectPathId=this.m_parentObjectPath.objectPathInfo.Id;this.m_objectPathInfo.ObjectPathType=5;this.m_objectPathInfo.Name="";this.m_objectPathInfo.ArgumentInfo.Arguments=[d];return}}}var o=this.parentObjectPath&&this.parentObjectPath.isCollection,f=this.getByIdMethodName;if(o||!a.isNullOrEmptyString(f)){var d=e.tryGetObjectIdFromLoadOrRetrieveResult(i);if(!a.isNullOrUndefined(d)){this.saveOriginalObjectPathInfo();this.resetForUpdateUsingObjectData();if(!a.isNullOrEmptyString(f)){this.m_objectPathInfo.ObjectPathType=3;this.m_objectPathInfo.Name=f;this.m_getByIdMethodName=null}else{this.m_objectPathInfo.ObjectPathType=5;this.m_objectPathInfo.Name=""}this.m_objectPathInfo.ArgumentInfo.Arguments=[d];return}}};b.prototype.resetForUpdateUsingObjectData=function(){this.m_isInvalidAfterRequest=false;this.m_isValid=true;this.m_operationType=1;this.m_flags=4;this.m_objectPathInfo.ArgumentInfo={};this.m_argumentObjectPaths=null};b.isRestorableObjectPath=function(a){return a===1||a===5||a===3||a===4};b.copyObjectPathInfo=function(b,a){a.Id=b.Id;a.ArgumentInfo=b.ArgumentInfo;a.Name=b.Name;a.ObjectPathType=b.ObjectPathType;a.ParentObjectPathId=b.ParentObjectPathId};return b}();c.ObjectPath=m;var B=function(){function a(){this.m_nextId=0}a.prototype._nextId=function(){return++this.m_nextId};a.prototype._addServiceApiAction=function(c,a,b,d){if(!this.m_serviceApiQueue)this.m_serviceApiQueue=new eb(this);this.m_serviceApiQueue.add(c,a,b,d)};a._parseQueryOption=function(f){var c={};if(typeof f==="string"){var g=f;c.Select=e._parseSelectExpand(g)}else if(Array.isArray(f))c.Select=f;else if(typeof f==="object"){var b=f;if(a.isLoadOption(b)){if(typeof b.select==="string")c.Select=e._parseSelectExpand(b.select);else if(Array.isArray(b.select))c.Select=b.select;else if(!e.isNullOrUndefined(b.select))throw d.RuntimeError._createInvalidArgError({argumentName:"option.select"});if(typeof b.expand==="string")c.Expand=e._parseSelectExpand(b.expand);else if(Array.isArray(b.expand))c.Expand=b.expand;else if(!e.isNullOrUndefined(b.expand))throw d.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if(typeof b.top==="number")c.Top=b.top;else if(!e.isNullOrUndefined(b.top))throw d.RuntimeError._createInvalidArgError({argumentName:"option.top"});if(typeof b.skip==="number")c.Skip=b.skip;else if(!e.isNullOrUndefined(b.skip))throw d.RuntimeError._createInvalidArgError({argumentName:"option.skip"});}else c=a.parseStrictLoadOption(f)}else if(!e.isNullOrUndefined(f))throw d.RuntimeError._createInvalidArgError({argumentName:"option"});return c};a.isLoadOption=function(a){if(!e.isUndefined(a.select)&&(typeof a.select==="string"||Array.isArray(a.select)))return true;if(!e.isUndefined(a.expand)&&(typeof a.expand==="string"||Array.isArray(a.expand)))return true;if(!e.isUndefined(a.top)&&typeof a.top==="number")return true;if(!e.isUndefined(a.skip)&&typeof a.skip==="number")return true;for(var b in a)return false;return true};a.parseStrictLoadOption=function(c){var b={Select:[]};a.parseStrictLoadOptionHelper(b,"","option",c);return b};a.combineQueryPath=function(a,b,c){if(a.length===0)return b;else return a+c+b};a.parseStrictLoadOptionHelper=function(g,e,f,h){for(var b in h){var c=h[b];if(b==="$all"){if(typeof c!=="boolean")throw d.RuntimeError._createInvalidArgError({argumentName:a.combineQueryPath(f,b,".")});c&&g.Select.push(a.combineQueryPath(e,"*","/"))}else if(b==="$top"){if(typeof c!=="number"||e.length>0)throw d.RuntimeError._createInvalidArgError({argumentName:a.combineQueryPath(f,b,".")});g.Top=c}else if(b==="$skip"){if(typeof c!=="number"||e.length>0)throw d.RuntimeError._createInvalidArgError({argumentName:a.combineQueryPath(f,b,".")});g.Skip=c}else if(typeof c==="boolean")c&&g.Select.push(a.combineQueryPath(e,b,"/"));else if(typeof c==="object")a.parseStrictLoadOptionHelper(g,a.combineQueryPath(e,b,"/"),a.combineQueryPath(f,b,"."),c);else throw d.RuntimeError._createInvalidArgError({argumentName:a.combineQueryPath(f,b,".")});}};return a}();c.ClientRequestContextBase=B;var P=function(){function b(a){this.m_objectPath=a}b.prototype._handleResult=function(b){if(a.isNullOrUndefined(b))this.m_objectPath._updateAsNullObject();else this.m_objectPath.updateUsingObjectData(b,null)};return b}(),H=function(){function b(a){this.m_contextBase=a;this.m_actions=[];this.m_actionResultHandler={};this.m_referencedObjectPaths={};this.m_instantiatedObjectPaths={};this.m_preSyncPromises=[]}b.prototype.addAction=function(a){this.m_actions.push(a);if(a.actionInfo.ActionType==1)this.m_instantiatedObjectPaths[a.actionInfo.ObjectPathId]=a};Object.defineProperty(b.prototype,"hasActions",{"get":function(){return this.m_actions.length>0},enumerable:true,configurable:true});b.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]};b.prototype.ensureInstantiateObjectPath=function(a){if(a){if(this.m_instantiatedObjectPaths[a.objectPathInfo.Id])return;this.ensureInstantiateObjectPath(a.parentObjectPath);this.ensureInstantiateObjectPaths(a.argumentObjectPaths);if(!this.m_instantiatedObjectPaths[a.objectPathInfo.Id]){var d={Id:this.m_contextBase._nextId(),ActionType:1,Name:"",ObjectPathId:a.objectPathInfo.Id},b=new n(d,1,4);b.referencedObjectPath=a;this.addReferencedObjectPath(a);this.addAction(b);var c=new P(a);this.addActionResultHandler(b,c)}}};b.prototype.ensureInstantiateObjectPaths=function(a){if(a)for(var b=0;b<a.length;b++)this.ensureInstantiateObjectPath(a[b])};b.prototype.addReferencedObjectPath=function(b){if(!b||this.m_referencedObjectPaths[b.objectPathInfo.Id])return;if(!b.isValid)throw new d.RuntimeError({code:f.invalidObjectPath,message:a._getResourceString(i.invalidObjectPath,e.getObjectPathExpression(b)),debugInfo:{errorLocation:e.getObjectPathExpression(b)}});while(b){this.m_referencedObjectPaths[b.objectPathInfo.Id]=b;b.objectPathInfo.ObjectPathType==3&&this.addReferencedObjectPaths(b.argumentObjectPaths);b=b.parentObjectPath}};b.prototype.addReferencedObjectPaths=function(a){if(a)for(var b=0;b<a.length;b++)this.addReferencedObjectPath(a[b])};b.prototype.addActionResultHandler=function(b,a){this.m_actionResultHandler[b.actionInfo.Id]=a};b.prototype.aggregrateRequestFlags=function(a,c,b){if(c===0){a=a|1;if((b&2)===0)a=a&~16;if((b&8)===0)a=a&~256;a=a&~4}if(b&1)a=a|2;if((b&4)===0)a=a&~4;return a};b.prototype.finallyNormalizeFlags=function(a){if((a&1)===0){a=a&~16;a=a&~256}if(!c._internalConfig.enableConcurrentFlag)a=a&~4;if(!c._internalConfig.enableUndoableFlag)a=a&~16;if(!e.isSetSupported("RichApiRuntimeFlag","1.1")){a=a&~4;a=a&~16}if(!e.isSetSupported("RichApiRuntimeFlag","1.2"))a=a&~256;if(typeof this.m_flagsForTesting==="number")a=this.m_flagsForTesting;return a};b.prototype.buildRequestMessageBodyAndRequestFlags=function(){c._internalConfig.enableEarlyDispose&&b._calculateLastUsedObjectPathIds(this.m_actions);var a=4|16|256,h={};for(var e in this.m_referencedObjectPaths){a=this.aggregrateRequestFlags(a,this.m_referencedObjectPaths[e].operationType,this.m_referencedObjectPaths[e].flags);h[e]=this.m_referencedObjectPaths[e].objectPathInfo}for(var i=[],g=false,f=0;f<this.m_actions.length;f++){var d=this.m_actions[f];if(d.actionInfo.ActionType===3&&d.actionInfo.Name===j.keepReference)g=true;a=this.aggregrateRequestFlags(a,d.operationType,d.flags);i.push(d.actionInfo)}a=this.finallyNormalizeFlags(a);var k={AutoKeepReference:this.m_contextBase._autoCleanup&&g,Actions:i,ObjectPaths:h};return{body:k,flags:a}};b.prototype.processResponse=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b],d=this.m_actionResultHandler[c.ActionId];d&&d._handleResult(c.Value)}};b.prototype.invalidatePendingInvalidObjectPaths=function(){for(var a in this.m_referencedObjectPaths)if(this.m_referencedObjectPaths[a].isInvalidAfterRequest)this.m_referencedObjectPaths[a].isValid=false};b.prototype._addPreSyncPromise=function(a){this.m_preSyncPromises.push(a)};Object.defineProperty(b.prototype,"_preSyncPromises",{"get":function(){return this.m_preSyncPromises},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_actions",{"get":function(){return this.m_actions},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_objectPaths",{"get":function(){return this.m_referencedObjectPaths},enumerable:true,configurable:true});b.prototype._removeKeepReferenceAction=function(c){for(var a=this.m_actions.length-1;a>=0;a--){var b=this.m_actions[a].actionInfo;if(b.ObjectPathId===c&&b.ActionType===3&&b.Name===j.keepReference){this.m_actions.splice(a,1);break}}};b._updateLastUsedActionIdOfObjectPathId=function(c,a,f){while(a){if(c[a.objectPathInfo.Id])return;c[a.objectPathInfo.Id]=f;var d=a.argumentObjectPaths;if(d)for(var g=d.length,e=0;e<g;e++)b._updateLastUsedActionIdOfObjectPathId(c,d[e],f);a=a.parentObjectPath}};b._calculateLastUsedObjectPathIds=function(k){for(var d={},l=k.length,c=l-1;c>=0;--c){var a=k[c],f=a.actionInfo.Id;a.referencedObjectPath&&b._updateLastUsedActionIdOfObjectPathId(d,a.referencedObjectPath,f);var i=a.referencedArgumentObjectPaths;if(i)for(var n=i.length,j=0;j<n;j++)b._updateLastUsedActionIdOfObjectPathId(d,i[j],f)}var g={};for(var m in d){var f=d[m],e=g[f];if(!e){e=[];g[f]=e}e.push(parseInt(m))}for(var c=0;c<l;c++){var a=k[c],h=g[a.actionInfo.Id];if(h&&h.length>0)a.actionInfo.L=h;else if(a.actionInfo.L)delete a.actionInfo.L}};return b}();c.ClientRequestBase=H;var z=function(){function b(a){this.m_type=a}Object.defineProperty(b.prototype,"value",{"get":function(){if(!this.m_isLoaded)throw new d.RuntimeError({code:f.valueNotLoaded,message:a._getResourceString(i.valueNotLoaded),debugInfo:{errorLocation:"clientResult.value"}});return this.m_value},enumerable:true,configurable:true});b.prototype._handleResult=function(a){this.m_isLoaded=true;if(typeof a==="object"&&a&&a._IsNull)return;if(this.m_type===1)this.m_value=e.adjustToDateTime(a);else this.m_value=a};return b}();c.ClientResult=z;var eb=function(){function b(a){this.m_context=a;this.m_actions=[]}b.prototype.add=function(c,a,b,d){var e=this;this.m_actions.push({action:c,resultHandler:a,resolve:b,reject:d});this.m_actions.length===1&&setTimeout(function(){return e.processActions()},0)};b.prototype.processActions=function(){var k=this;if(this.m_actions.length===0)return;var c=this.m_actions;this.m_actions=[];for(var b=new H(this.m_context),e=0;e<c.length;e++){var d=c[e];b.ensureInstantiateObjectPath(d.action.referencedObjectPath);b.ensureInstantiateObjectPaths(d.action.referencedArgumentObjectPaths);b.addAction(d.action);b.addReferencedObjectPath(d.action.referencedObjectPath);b.addReferencedObjectPaths(d.action.referencedArgumentObjectPaths)}var g=b.buildRequestMessageBodyAndRequestFlags(),f=g.body,j=g.flags,h={Url:l.localDocumentApiPrefix,Headers:null,Body:f};a.log("Request:");a.log(JSON.stringify(f));var i=new F;i.executeAsync(this.m_context._customData,j,h).then(function(a){k.processResponse(b,c,a)})["catch"](function(d){for(var a=0;a<c.length;a++){var b=c[a];b.reject(d)}})};b.prototype.processResponse=function(d,c,a){var e=this.getErrorFromResponse(a),b=null;if(a.Body.Results)b=a.Body.Results;else if(a.Body.ProcessedResults&&a.Body.ProcessedResults.Results)b=a.Body.ProcessedResults.Results;if(!b)b=[];this.processActionResults(d,c,b,e)};b.prototype.getErrorFromResponse=function(b){if(!a.isNullOrEmptyString(b.ErrorCode))return new d.RuntimeError({code:b.ErrorCode,message:b.ErrorMessage});if(b.Body&&b.Body.Error)return new d.RuntimeError({code:b.Body.Error.Code,message:b.Body.Error.Message});return null};b.prototype.processActionResults=function(j,g,b,h){j.processResponse(b);for(var e=0;e<g.length;e++){for(var a=g[e],i=a.action.actionInfo.Id,f=false,c=0;c<b.length;c++)if(i==b[c].ActionId){var d=b[c].Value;if(a.resultHandler){a.resultHandler._handleResult(d);d=a.resultHandler.value}a.resolve&&a.resolve(d);f=true;break}if(!f&&a.reject)if(h)a.reject(h);else a.reject("No response for the action.")}};return b}(),F=function(){function b(){}b.prototype.getRequestUrl=function(a,b){if(a.charAt(a.length-1)!="/")a=a+"/";a=a+l.processQuery;a=a+"?"+l.flags+"="+b.toString();return a};b.prototype.executeAsync=function(i,g,c){var h=this.getRequestUrl(c.Url,g),d={method:"POST",url:h,headers:{},body:c.Body};d.headers[l.sourceLibHeader]=b.SourceLibHeaderValue;d.headers["CONTENT-TYPE"]="application/json";if(c.Headers)for(var e in c.Headers)d.headers[e]=c.Headers[e];var f=a._isLocalDocumentUrl(d.url)?D.sendLocalDocumentRequest:D.sendRequest;return f(d).then(function(b){var c;if(b.statusCode===200)c={ErrorCode:null,ErrorMessage:null,Headers:b.headers,Body:a._parseResponseBody(b)};else{a.log("Error Response:"+b.body);var d=a._parseErrorResponse(b);c={ErrorCode:d.errorCode,ErrorMessage:d.errorMessage,Headers:b.headers,Body:null}}return c})};b.SourceLibHeaderValue="officejs-rest";return b}();c.HttpRequestExecutor=F;var j=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}a.collectionPropertyPath="_collectionPropertyPath";a.id="Id";a.idLowerCase="id";a.idPrivate="_Id";a.keepReference="_KeepReference";a.objectPathIdPrivate="_ObjectPathId";a.referenceId="_ReferenceId";a.items="_Items";a.itemsLowerCase="items";a.scalarPropertyNames="_scalarPropertyNames";a.navigationPropertyNames="_navigationPropertyNames";a.scalarPropertyUpdateable="_scalarPropertyUpdateable";return a}(l);c.CommonConstants=j;var e=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}b.validateObjectPath=function(e){var c=e._objectPath;while(c){if(!c.isValid)throw new d.RuntimeError({code:f.invalidObjectPath,message:a._getResourceString(i.invalidObjectPath,b.getObjectPathExpression(c)),debugInfo:{errorLocation:b.getObjectPathExpression(c)}});c=c.parentObjectPath}};b.validateReferencedObjectPaths=function(e){if(e)for(var g=0;g<e.length;g++){var c=e[g];while(c){if(!c.isValid)throw new d.RuntimeError({code:f.invalidObjectPath,message:a._getResourceString(i.invalidObjectPath,b.getObjectPathExpression(c))});c=c.parentObjectPath}}};b._toCamelLowerCase=function(b){if(a.isNullOrEmptyString(b))return b;var c=0;while(c<b.length&&b.charCodeAt(c)>=65&&b.charCodeAt(c)<=90)c++;if(c<b.length)return b.substr(0,c).toLowerCase()+b.substr(c);else return b.toLowerCase()};b.adjustToDateTime=function(c){if(a.isNullOrUndefined(c))return null;if(typeof c==="string")return new Date(c);if(Array.isArray(c)){for(var d=c,e=0;e<d.length;e++)d[e]=b.adjustToDateTime(d[e]);return d}throw a._createInvalidArgError({argumentName:"date"});};b.tryGetObjectIdFromLoadOrRetrieveResult=function(c){var b=c[j.id];if(a.isNullOrUndefined(b))b=c[j.idLowerCase];if(a.isNullOrUndefined(b))b=c[j.idPrivate];return b};b.getObjectPathExpression=function(c){var a="";while(c){switch(c.objectPathInfo.ObjectPathType){case 1:a=a;break;case 2:a="new()"+(a.length>0?".":"")+a;break;case 3:a=b.normalizeName(c.objectPathInfo.Name)+"()"+(a.length>0?".":"")+a;break;case 4:a=b.normalizeName(c.objectPathInfo.Name)+(a.length>0?".":"")+a;break;case 5:a="getItem()"+(a.length>0?".":"")+a;break;case 6:a="_reference()"+(a.length>0?".":"")+a;break}c=c.parentObjectPath}return a};b.setMethodArguments=function(g,f,c){if(a.isNullOrUndefined(c))return null;var e=[],d=[],h=b.collectObjectPathInfos(g,c,e,d);f.Arguments=c;if(h)f.ReferencedObjectPathIds=d;return e};b.validateContext=function(b,c){if(b&&c&&c._context!==b)throw new d.RuntimeError({code:f.invalidRequestContext,message:a._getResourceString(i.invalidRequestContext)});};b.isSetSupported=function(b,a){if(typeof window!=="undefined"&&window.Office&&window.Office.context&&window.Office.context.requirements)return window.Office.context.requirements.isSetSupported(b,a);return true};b.throwIfApiNotSupported=function(e,g,c,h){if(!b._doApiNotSupportedCheck)return;if(!b.isSetSupported(g,c)){var j=a._getResourceString(i.apiNotFoundDetails,[e,g+" "+c,h]);throw new d.RuntimeError({code:f.apiNotFound,message:j,debugInfo:{errorLocation:e}});}};b._parseSelectExpand=function(e){var f=[];if(!a.isNullOrEmptyString(e))for(var d=e.split(","),c=0;c<d.length;c++){var b=d[c];b=g(b.trim());b.length>0&&f.push(b)}return f;function g(b){var a=b.toLowerCase();if(a==="items"||a==="items/")return"*";var c=6,d=a.substr(0,c)==="items/"||a.substr(0,c)==="items.";if(d)b=b.substr(c);return b.replace(new RegExp("[/.]items[/.]","gi"),"/")}};b.changePropertyNameToCamelLowerCase=function(a){var h=95;if(Array.isArray(a)){for(var c=[],e=0;e<a.length;e++)c.push(this.changePropertyNameToCamelLowerCase(a[e]));return c}else if(typeof a==="object"&&a!==null){var c={};for(var d in a){var f=a[d];if(d===j.items){c={};c[j.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(f);break}else{var g=b._toCamelLowerCase(d);c[g]=this.changePropertyNameToCamelLowerCase(f)}}return c}else return a};b.purifyJson=function(a){var f=95;if(Array.isArray(a)){for(var c=[],e=0;e<a.length;e++)c.push(this.purifyJson(a[e]));return c}else if(typeof a==="object"&&a!==null){var c={};for(var d in a)if(d.charCodeAt(0)!==f){var b=a[d];if(typeof b==="object"&&b!==null&&Array.isArray(b.items))b=b.items;c[d]=this.purifyJson(b)}return c}else return a};b.collectObjectPathInfos=function(j,d,g,e){for(var h=false,c=0;c<d.length;c++)if(d[c]instanceof y){var f=d[c];b.validateContext(j,f);d[c]=f._objectPath.objectPathInfo.Id;e.push(f._objectPath.objectPathInfo.Id);g.push(f._objectPath);h=true}else if(Array.isArray(d[c])){var i=[],k=b.collectObjectPathInfos(j,d[c],g,i);if(k){e.push(i);h=true}else e.push(0)}else if(a.isPlainJsonObject(d[c])){e.push(0);b.replaceClientObjectPropertiesWithObjectPathIds(d[c],g)}else e.push(0);return h};b.replaceClientObjectPropertiesWithObjectPathIds=function(f,e){var g,h;for(var k in f){var c=f[k];if(c instanceof y){e.push(c._objectPath);f[k]=(g={},g[j.objectPathIdPrivate]=c._objectPath.objectPathInfo.Id,g)}else if(Array.isArray(c))for(var d=0;d<c.length;d++)if(c[d]instanceof y){var i=c[d];e.push(i._objectPath);c[d]=(h={},h[j.objectPathIdPrivate]=i._objectPath.objectPathInfo.Id,h)}else a.isPlainJsonObject(c[d])&&b.replaceClientObjectPropertiesWithObjectPathIds(c[d],e);else a.isPlainJsonObject(c)&&b.replaceClientObjectPropertiesWithObjectPathIds(c,e)}};b.normalizeName=function(a){return a.substr(0,1).toLowerCase()+a.substr(1)};b._doApiNotSupportedCheck=false;return b}(a);c.CommonUtility=e;var w=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}a.propertyDoesNotExist="PropertyDoesNotExist";a.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty";return a}(i);c.CommonResourceStrings=w;var K=function(b){__extends(a,b);function a(c){var a=b.call(this)||this;a.m_shouldPolyfill=c;return a}a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(this.m_shouldPolyfill)this.m_value=e.changePropertyNameToCamelLowerCase(this.m_value);this.m_value=this.removeItemNodes(this.m_value)};a.prototype.removeItemNodes=function(a){if(typeof a==="object"&&a!==null&&a[j.itemsLowerCase])a=a[j.itemsLowerCase];return e.purifyJson(a)};return a}(z);c.ClientRetrieveResult=K;var ab=function(){function b(){}b.invokeMethod=function(b,h,c,f,d,g){if(c===void 0)c=0;if(f===void 0)f=[];if(d===void 0)d=0;if(g===void 0)g=0;return a.createPromise(function(j,k){var l=new z,g={Id:b._context._nextId(),ActionType:3,Name:h,ObjectPathId:b._objectPath.objectPathInfo.Id,ArgumentInfo:{}},i=e.setMethodArguments(b._context,g.ArgumentInfo,f),a=new n(g,c,d);a.referencedObjectPath=b._objectPath;a.referencedArgumentObjectPaths=i;b._context._addServiceApiAction(a,l,j,k)})};b.invokeRetrieve=function(h,a){var f=c._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;if(!f)f=!e.isSetSupported("RichApiRuntime","1.1");var g;if(typeof a[0]==="object"&&a[0].hasOwnProperty("$all")){if(!a[0].$all)throw d.RuntimeError._createInvalidArgError({});g=a[0]}else g=b._parseSelectOption(a);return h._retrieve(g,new K(f))};b._parseSelectOption=function(a){if(!a||!a[0])throw d.RuntimeError._createInvalidArgError({});var c=a[0]&&typeof a[0]!=="string"?a[0]:a;return Array.isArray(c)?c:b.parseRecursiveSelect(c)};b.parseRecursiveSelect=function(b){var a=function(b){return Object.keys(b).reduce(function(c,e){var d=b[e];if(typeof d==="object")return c.concat(a(d).map(function(a){return e+"/"+a}));if(d)return c.concat(e);return c},[])};return a(b)};b.invokeRecursiveUpdate=function(b,c){return a.createPromise(function(d,f){b._recursivelyUpdate(c);var a={Id:b._context._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},e=new n(a,1,4);b._context._addServiceApiAction(e,null,d,f)})};b.createRootServiceObject=function(d,a){var b={Id:a._nextId(),ObjectPathType:1,Name:""},c=new m(b,null,false,false,1,4);return new d(a,c)};b.createTopLevelServiceObject=function(g,a,e,c,f){var b={Id:a._nextId(),ObjectPathType:2,Name:e},d=new m(b,null,c,false,1,f|4);return new g(a,d)};b.createPropertyObject=function(g,a,d,c,f){var b={Id:a._context._nextId(),ObjectPathType:4,Name:d,ParentObjectPathId:a._objectPath.objectPathInfo.Id},e=new m(b,a._objectPath,c,false,1,f|4);return new g(a._context,e)};b.createIndexerObject=function(e,a,d){var b={Id:a._context._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:a._objectPath.objectPathInfo.Id,ArgumentInfo:{}};b.ArgumentInfo.Arguments=d;var c=new m(b,a._objectPath,false,false,1,4);return new e(a._context,c)};b.createMethodObject=function(n,a,j,h,l,i,d,g,k){var c={Id:a._context._nextId(),ObjectPathType:3,Name:j,ParentObjectPathId:a._objectPath.objectPathInfo.Id,ArgumentInfo:{}},f=e.setMethodArguments(a._context,c.ArgumentInfo,l),b=new m(c,a._objectPath,i,d,h,k);b.argumentObjectPaths=f;b.getByIdMethodName=g;return new n(a._context,b)};b.createAndInstantiateMethodObject=function(k,b,h,f,j,g,c,d,i){return a.createPromise(function(r,s){var l={Id:b._context._nextId(),ObjectPathType:3,Name:h,ParentObjectPathId:b._objectPath.objectPathInfo.Id,ArgumentInfo:{}},p=e.setMethodArguments(b._context,l.ArgumentInfo,j),a=new m(l,b._objectPath,g,c,f,i);a.argumentObjectPaths=p;a.getByIdMethodName=d;var t=new z,q={Id:b._context._nextId(),ActionType:1,Name:"",ObjectPathId:a.objectPathInfo.Id,QueryInfo:{}},o=new n(q,1,4);o.referencedObjectPath=a;b._context._addServiceApiAction(o,t,function(){return r(new k(b._context,a))},s)})};b.localDocumentContext=new B;return b}();c.OperationalApiHelper=ab;var X=function(){function b(b){var a=this;this.m_genericEventInfo=b;this.m_handlers=[];this.m_callback=function(b){a.m_genericEventInfo.eventArgsTransformFunc(b).then(function(b){return a.fireEvent(b)})}}Object.defineProperty(b.prototype,"_callback",{"get":function(){return this.m_callback},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_handlers",{"get":function(){return this.m_handlers},enumerable:true,configurable:true});b.prototype.add=function(a){this._handlers.length==0&&this.m_genericEventInfo.registerFunc&&this.m_genericEventInfo.registerFunc();!o.getGenericEventRegistration().isReady;this._handlers.push(a);this._handlers.length==1&&o.getGenericEventRegistration().register(this.m_genericEventInfo.eventType,this.m_genericEventInfo.getTargetIdFunc(),this._callback)};b.prototype.remove=function(c){this._handlers.length==1&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();for(var a=this._handlers,b=a.length-1;b>=0;b--)if(a[b]===c){a.splice(b,1);break}a.length==0&&o.getGenericEventRegistration().unregister(this.m_genericEventInfo.eventType,this.m_genericEventInfo.getTargetIdFunc(),this._callback)};b.prototype.removeAll=function(){this.m_handlers=[];o.getGenericEventRegistration().unregister(this.m_genericEventInfo.eventType,this.m_genericEventInfo.getTargetIdFunc(),this._callback);this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc()};b.prototype.fireEvent=function(e){for(var c=[],b=0;b<this.m_handlers.length;b++){var d=this.m_handlers[b],f=a._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(d,e))["catch"](function(b){a.log("Error when invoke handler: "+JSON.stringify(b))});c.push(f)}a.Promise.all(c)};b.prototype.createFireOneEventHandlerFunc=function(a,b){return function(){return a(b)}};return b}();c.GenericEventHandlersOp=X;var bb=function(){function b(){}b.invokeSubscription=function(a,e,f,c,d){if(!a)return b.invokeWeaklyTypedSubscription(e,f,c,d);return b.invokeStronglyTypedSubscription(a,c,d)};b.invokeStronglyTypedSubscription=function(c,d,e){c.add(d);return a._createPromiseFromResult(b.createStronglyTypedEventRegistration(c,d))};b.invokeWeaklyTypedSubscription=function(c,d,e,g){var f=c[d]||[];c[d]=f.concat(e);return a._createPromiseFromResult(b.createWeaklyTypedEventRegistration(d,c,e))};b.invokeUnsubscription=function(e,f,g,c,d){if(!c&&!d){var h=Object.keys(e).map(function(a){return e[a]});return b.invokeAllUnsubscription(h,f)}if(!c)return a._createPromiseFromException(c+" must be supplied if handler is supplied.");if(!g)return b.invokeWeaklyTypedUnsubscription(f,c,d);return b.invokeStronglyTypedUnsubscription(g,d)};b.invokeAllUnsubscription=function(c,b){c.forEach(function(a){a.removeAll()});Object.getOwnPropertyNames(b).forEach(function(a){delete b[a]});return a.createPromise(function(a,b){return a()})};b.invokeStronglyTypedUnsubscription=function(b,c){if(!c)b.removeAll();else b.remove(c);return a.createPromise(function(a,b){return a()})};b.invokeWeaklyTypedUnsubscription=function(b,c,e){if(!e)delete b[c];else{var d=b[c].indexOf(e);d>=0&&b[c].splice(d,1)}return a.createPromise(function(a,b){return a()})};b.invokeOnce=function(a,e,f,c,d){if(!a)return b.invokeWeaklyTypedOnce(f,e,c,d);return b.invokeStronglyTypedOnce(a,c,d)};b.invokeStronglyTypedOnce=function(a,d,e){var c=function(e){b.invokeStronglyTypedUnsubscription(a,c);d(e)};return this.invokeStronglyTypedSubscription(a,c,e)};b.invokeWeaklyTypedOnce=function(d,a,e,f){var c=function(f){b.invokeWeaklyTypedUnsubscription(a,d,c);e(f)};return this.invokeWeaklyTypedSubscription(a,d,c,f)};b.invokeEmit=function(a,e,d,c){if(!a)return b.invokeWeaklyTypedEmit(e,d,c);return b.invokeStronglyTypedEmit(a,d,c)};b.invokeStronglyTypedEmit=function(b,c,d){b._callback(c);return a.createPromise(function(a,b){return a()})};b.invokeWeaklyTypedEmit=function(b,d,e){if(b!==undefined){var c=b.map(function(b){return a._createPromiseFromResult(null).then(function(){return b(d)})["catch"](function(b){a.log("Error when invoke handler: "+JSON.stringify(b))})});a.Promise.all(c)}return a.createPromise(function(a,b){return a()})};b.createStronglyTypedEventRegistration=function(a,b){var c=this;return{off:function(){return c.invokeStronglyTypedUnsubscription(a,b)}}};b.createWeaklyTypedEventRegistration=function(b,a,c){var d=this;return{off:function(){return d.invokeWeaklyTypedUnsubscription(a,b,c)}}};return b}();c.EventEmitterHelper=bb;var A=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}a.propertyNotLoaded="PropertyNotLoaded";a.runMustReturnPromise="RunMustReturnPromise";a.cannotRegisterEvent="CannotRegisterEvent";a.invalidOrTimedOutSession="InvalidOrTimedOutSession";a.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty";return a}(f);c.ErrorCodes=A;var T=function(){function a(a){this.m_callback=a}a.prototype._handleResult=function(a){this.m_callback&&this.m_callback()};return a}(),p=function(c){__extends(a,c);function a(){return c!==null&&c.apply(this,arguments)||this}a.createMethodAction=function(f,c,h,g,j,i){b.validateObjectPath(c);var e={Id:f._nextId(),ActionType:3,Name:h,ObjectPathId:c._objectPath.objectPathInfo.Id,ArgumentInfo:{}},d=b.setMethodArguments(f,e.ArgumentInfo,j);b.validateReferencedObjectPaths(d);var a=new n(e,g,b._fixupApiFlags(i));a.referencedObjectPath=c._objectPath;a.referencedArgumentObjectPaths=d;c._addAction(a);return a};a.createRecursiveQueryAction=function(e,a,f){b.validateObjectPath(a);var d={Id:e._nextId(),ActionType:6,Name:"",ObjectPathId:a._objectPath.objectPathInfo.Id,RecursiveQueryInfo:f},c=new n(d,1,4);c.referencedObjectPath=a._objectPath;a._addAction(c);return c};a.createEnsureUnchangedAction=function(f,a,d){b.validateObjectPath(a);var e={Id:f._nextId(),ActionType:8,Name:"",ObjectPathId:a._objectPath.objectPathInfo.Id,ObjectState:d},c=new n(e,1,4);c.referencedObjectPath=a._objectPath;a._addAction(c);return c};a.createInstantiateAction=function(c,a){b.validateObjectPath(a);c._pendingRequest.ensureInstantiateObjectPath(a._objectPath.parentObjectPath);c._pendingRequest.ensureInstantiateObjectPaths(a._objectPath.argumentObjectPaths);var e={Id:c._nextId(),ActionType:1,Name:"",ObjectPathId:a._objectPath.objectPathInfo.Id},d=new n(e,1,4);d.referencedObjectPath=a._objectPath;a._addAction(d,new S(a),true);return d};a.createTraceAction=function(a,e,d){var b={Id:a._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},c=new n(b,1,4);a._pendingRequest.addAction(c);d&&a._pendingRequest.addTrace(b.Id,e);return c};a.createTraceMarkerForCallback=function(b,c){var d=a.createTraceAction(b,null,false);b._pendingRequest.addActionResultHandler(d,new T(c))};return a}(t);c.ActionFactory=p;var J=function(e){__extends(c,e);function c(a,d){var c=e.call(this,a,d)||this;b.checkArgumentNull(a,"context");c.m_context=a;if(c._objectPath)if(!a._processingResult&&a._pendingRequest){p.createInstantiateAction(a,c);a._autoCleanup&&c._KeepReference&&a.trackedObjects._autoAdd(c)}return c}Object.defineProperty(c.prototype,"context",{"get":function(){return this.m_context},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isNull",{"get":function(){b.throwIfNotLoaded("isNull",this._isNull,null,this._isNull);return this._isNull},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isNullObject",{"get":function(){b.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull);return this._isNull},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isNull",{"get":function(){return this.m_isNull},"set":function(a){this.m_isNull=a;a&&this._objectPath&&this._objectPath._updateAsNullObject()},enumerable:true,configurable:true});c.prototype._addAction=function(b,c,d){if(c===void 0)c=null;if(!d){this.context._pendingRequest.ensureInstantiateObjectPath(this._objectPath);this.context._pendingRequest.ensureInstantiateObjectPaths(b.referencedArgumentObjectPaths)}this.context._pendingRequest.addAction(b);this.context._pendingRequest.addReferencedObjectPath(this._objectPath);this.context._pendingRequest.addReferencedObjectPaths(b.referencedArgumentObjectPaths);this.context._pendingRequest.addActionResultHandler(b,c);return a._createPromiseFromResult(null)};c.prototype._handleResult=function(a){this._isNull=b.isNullOrUndefined(a);this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,a)};c.prototype._handleIdResult=function(a){this._isNull=b.isNullOrUndefined(a);b.fixObjectPathIfNecessary(this,a);this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,a)};c.prototype._handleRetrieveResult=function(a,b){this._handleIdResult(a)};c.prototype._recursivelySet=function(g,n,k,l,o){var m=g instanceof c,s=g;if(m)if(Object.getPrototypeOf(this)===Object.getPrototypeOf(g))g=JSON.parse(JSON.stringify(g));else throw d.RuntimeError._createInvalidArgError({argumentName:"properties",errorLocation:this._className+".set"});try{for(var e,h=0;h<k.length;h++){e=k[h];if(g.hasOwnProperty(e))if(typeof g[e]!=="undefined")this[e]=g[e]}for(var h=0;h<l.length;h++){e=l[h];if(g.hasOwnProperty(e))if(typeof g[e]!=="undefined"){var r=m?s[e]:g[e];this[e].set(r,n)}}var j=!m;if(n&&!b.isNullOrUndefined(j))j=n.throwOnReadOnly;for(var h=0;h<o.length;h++){e=o[h];if(g.hasOwnProperty(e))if(typeof g[e]!=="undefined"&&j)throw new d.RuntimeError({code:f.invalidArgument,message:a._getResourceString(q.cannotApplyPropertyThroughSetMethod,e),debugInfo:{errorLocation:e}});}for(e in g)if(k.indexOf(e)<0&&l.indexOf(e)<0){var p=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),e);if(!p)throw new d.RuntimeError({code:f.invalidArgument,message:a._getResourceString(w.propertyDoesNotExist,e),debugInfo:{errorLocation:e}});if(j&&!p.set)throw new d.RuntimeError({code:f.invalidArgument,message:a._getResourceString(w.attemptingToSetReadOnlyProperty,e),debugInfo:{errorLocation:e}});}}catch(t){throw new d.RuntimeError({code:f.invalidArgument,message:a._getResourceString(i.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:t});}};return c}(y);c.ClientObject=J;var U=function(){function b(a){this.m_session=a}b.prototype.executeAsync=function(f,e,b){var d={url:l.processQuery,method:"POST",headers:b.Headers,body:b.Body},c={id:v.nextId(),type:1,flags:e,message:d};a.log(JSON.stringify(c));return this.m_session.sendMessageToHost(c).then(function(d){a.log("Received response: "+JSON.stringify(d));var b=d.message,c;if(b.statusCode===200)c={ErrorCode:null,ErrorMessage:null,Headers:b.headers,Body:a._parseResponseBody(b)};else{a.log("Error Response:"+b.body);var e=a._parseErrorResponse(b);c={ErrorCode:e.errorCode,ErrorMessage:e.errorMessage,Headers:b.headers,Body:null}}return c})};return b}(),L=function(c){__extends(b,c);function b(b){var a=c.call(this)||this;a.m_bridge=b;a.m_bridge.addHostMessageHandler(function(a){a.type===3&&o.getGenericEventRegistration()._handleRichApiMessage(a.message)});return a}b.getInstanceIfHostBridgeInited=function(){if(v.instance){if(a.isNullOrUndefined(b.s_instance)||b.s_instance.m_bridge!==v.instance)b.s_instance=new b(v.instance);return b.s_instance}return null};b.prototype._resolveRequestUrlAndHeaderInfo=function(){return a._createPromiseFromResult(null)};b.prototype._createRequestExecutorOrNull=function(){a.log("NativeBridgeSession::CreateRequestExecutor");return new U(this)};Object.defineProperty(b.prototype,"eventRegistration",{"get":function(){return o.getGenericEventRegistration()},enumerable:true,configurable:true});b.prototype.sendMessageToHost=function(a){return this.m_bridge.sendMessageToHostAndExpectResponse(a)};return b}(s),Y=function(h){__extends(e,h);function e(f){var c=h.call(this)||this;c.m_customRequestHeaders={};c.m_batchMode=0;c._onRunFinishedNotifiers=[];if(s._overrideSession)c.m_requestUrlAndHeaderInfoResolver=s._overrideSession;else{if(b.isNullOrUndefined(f)||typeof f==="string"&&f.length===0){f=e.defaultRequestUrlAndHeaders;if(!f)f={url:l.localDocument,headers:{}}}if(typeof f==="string")c.m_requestUrlAndHeaderInfo={url:f,headers:{}};else if(e.isRequestUrlAndHeaderInfoResolver(f))c.m_requestUrlAndHeaderInfoResolver=f;else if(e.isRequestUrlAndHeaderInfo(f)){var i=f;c.m_requestUrlAndHeaderInfo={url:i.url,headers:{}};a._copyHeaders(i.headers,c.m_requestUrlAndHeaderInfo.headers)}else throw d.RuntimeError._createInvalidArgError({argumentName:"url"});}if(!c.m_requestUrlAndHeaderInfoResolver&&c.m_requestUrlAndHeaderInfo&&a._isLocalDocumentUrl(c.m_requestUrlAndHeaderInfo.url)&&L.getInstanceIfHostBridgeInited()){c.m_requestUrlAndHeaderInfo=null;c.m_requestUrlAndHeaderInfoResolver=L.getInstanceIfHostBridgeInited()}if(c.m_requestUrlAndHeaderInfoResolver instanceof s)c.m_session=c.m_requestUrlAndHeaderInfoResolver;c._processingResult=false;c._customData=g.iterativeExecutor;c.sync=c.sync.bind(c);return c}Object.defineProperty(e.prototype,"session",{"get":function(){return this.m_session},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"eventRegistration",{"get":function(){if(this.m_session)return this.m_session.eventRegistration;return d.officeJsEventRegistration},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_url",{"get":function(){if(this.m_requestUrlAndHeaderInfo)return this.m_requestUrlAndHeaderInfo.url;return null},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_pendingRequest",{"get":function(){if(this.m_pendingRequest==null)this.m_pendingRequest=new x(this);return this.m_pendingRequest},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"debugInfo",{"get":function(){var a=new E(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,c._internalConfig.showDisposeInfoInDebugInfo),b=a.process();return{pendingStatements:b}},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"trackedObjects",{"get":function(){if(!this.m_trackedObjects)this.m_trackedObjects=new M(this);return this.m_trackedObjects},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"requestHeaders",{"get":function(){return this.m_customRequestHeaders},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"batchMode",{"get":function(){return this.m_batchMode},enumerable:true,configurable:true});e.prototype.ensureInProgressBatchIfBatchMode=function(){if(this.m_batchMode===1&&!this.m_explicitBatchInProgress)throw b.createRuntimeError(f.generalException,a._getResourceString(q.notInsideBatch),null);};e.prototype.load=function(a,d){b.validateContext(this,a);var c=e._parseQueryOption(d);t.createQueryAction(this,a,c,a)};e.prototype.loadRecursive=function(c,a,h){if(!b.isPlainJsonObject(a))throw d.RuntimeError._createInvalidArgError({argumentName:"options"});var f={};for(var g in a)f[g]=e._parseQueryOption(a[g]);var i=p.createRecursiveQueryAction(this,c,{Queries:f,MaxDepth:h});this._pendingRequest.addActionResultHandler(i,c)};e.prototype.trace=function(a){p.createTraceAction(this,a,true)};e.prototype._processOfficeJsErrorResponse=function(a,b){};e.prototype.ensureRequestUrlAndHeaderInfo=function(){var a=this;return b._createPromiseFromResult(null).then(function(){if(!a.m_requestUrlAndHeaderInfo)return a.m_requestUrlAndHeaderInfoResolver._resolveRequestUrlAndHeaderInfo().then(function(d){a.m_requestUrlAndHeaderInfo=d;if(!a.m_requestUrlAndHeaderInfo)a.m_requestUrlAndHeaderInfo={url:l.localDocument,headers:{}};if(b.isNullOrEmptyString(a.m_requestUrlAndHeaderInfo.url))a.m_requestUrlAndHeaderInfo.url=l.localDocument;if(!a.m_requestUrlAndHeaderInfo.headers)a.m_requestUrlAndHeaderInfo.headers={};if(typeof a.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull==="function"){var c=a.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull();if(c)a._requestExecutor=c}})})};e.prototype.syncPrivateMain=function(){var a=this;return this.ensureRequestUrlAndHeaderInfo().then(function(){var b=a._pendingRequest;a.m_pendingRequest=null;return a.processPreSyncPromises(b).then(function(){return a.syncPrivate(b)})})};e.prototype.syncPrivate=function(e){var i=this;if(!e.hasActions)return this.processPendingEventHandlers(e);var j=e.buildRequestMessageBodyAndRequestFlags(),m=j.body,g=j.flags;if(this._requestFlagModifier)g|=this._requestFlagModifier;if(!this._requestExecutor)if(a._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url))this._requestExecutor=new W(this);else this._requestExecutor=new F;var l=this._requestExecutor,h={};a._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,h);a._copyHeaders(this.m_customRequestHeaders,h);var k={Url:this.m_requestUrlAndHeaderInfo.url,Headers:h,Body:m};e.invalidatePendingInvalidObjectPaths();var f=null,c=null;this._lastSyncStart=typeof performance==="undefined"?0:performance.now();this._lastRequestFlags=g;return l.executeAsync(this._customData,g,k).then(function(b){i._lastSyncEnd=typeof performance==="undefined"?0:performance.now();f=i.processRequestExecutorResponseMessage(e,b);return i.processPendingEventHandlers(e)["catch"](function(b){a.log("Error in processPendingEventHandlers");a.log(JSON.stringify(b));c=b})}).then(function(){if(f){a.log("Throw error from response: "+JSON.stringify(f));throw f;}if(c){a.log("Throw error from ProcessEventHandler: "+JSON.stringify(c));var h=null;if(c instanceof d.RuntimeError){h=c;h.traceMessages=e._responseTraceMessages}else{var g=null;if(typeof c==="string")g=c;else g=c.message;if(b.isNullOrEmptyString(g))g=a._getResourceString(q.cannotRegisterEvent);h=new d.RuntimeError({code:A.cannotRegisterEvent,message:g,traceMessages:e._responseTraceMessages})}throw h;}})};e.prototype.processRequestExecutorResponseMessage=function(e,a){a.Body&&a.Body.TraceIds&&e._setResponseTraceIds(a.Body.TraceIds);var k=e._responseTraceMessages,f=null;if(a.Body){if(a.Body.Error&&a.Body.Error.ActionIndex>=0){var i=new E(this._rootObjectPropertyName,e._objectPaths,e._actions,false,true),j=i.processForDebugStatementInfo(a.Body.Error.ActionIndex);f={statement:j.statement,surroundingStatements:j.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]};if(c.config.extendedErrorLogging){i=new E(this._rootObjectPropertyName,e._objectPaths,e._actions,false,false);f.fullStatements=i.process()}}var g=null;if(a.Body.Results)g=a.Body.Results;else if(a.Body.ProcessedResults&&a.Body.ProcessedResults.Results)g=a.Body.ProcessedResults.Results;if(g){this._processingResult=true;try{e.processResponse(g)}finally{this._processingResult=false}}}if(!b.isNullOrEmptyString(a.ErrorCode))return new d.RuntimeError({code:a.ErrorCode,message:a.ErrorMessage,traceMessages:k});else if(a.Body&&a.Body.Error){var h={errorLocation:a.Body.Error.Location};if(f){h.statement=f.statement;h.surroundingStatements=f.surroundingStatements;h.fullStatements=f.fullStatements}return new d.RuntimeError({code:a.Body.Error.Code,message:a.Body.Error.Message,traceMessages:k,debugInfo:h})}return null};e.prototype.processPendingEventHandlers=function(a){for(var c=b._createPromiseFromResult(null),d=0;d<a._pendingProcessEventHandlers.length;d++){var e=a._pendingProcessEventHandlers[d];c=c.then(this.createProcessOneEventHandlersFunc(e,a))}return c};e.prototype.createProcessOneEventHandlersFunc=function(a,b){return function(){return a._processRegistration(b)}};e.prototype.processPreSyncPromises=function(d){for(var a=b._createPromiseFromResult(null),c=0;c<d._preSyncPromises.length;c++){var e=d._preSyncPromises[c];a=a.then(this.createProcessOneProSyncFunc(e))}return a};e.prototype.createProcessOneProSyncFunc=function(a){return function(){return a}};e.prototype.sync=function(a){return this.syncPrivateMain().then(function(){return a})};e.prototype.batch=function(i){var c=this;if(this.m_batchMode!==1)return a._createPromiseFromException(b.createRuntimeError(f.generalException,null,null));if(this.m_explicitBatchInProgress)return a._createPromiseFromException(b.createRuntimeError(f.generalException,a._getResourceString(q.pendingBatchInProgress),null));if(b.isNullOrUndefined(i))return b._createPromiseFromResult(null);this.m_explicitBatchInProgress=true;var e=this.m_pendingRequest;this.m_pendingRequest=new x(this);var d;try{d=i(this._rootObject,this)}catch(j){this.m_explicitBatchInProgress=false;this.m_pendingRequest=e;return a._createPromiseFromException(j)}var g,h;if(typeof d==="object"&&d&&typeof d.then==="function")h=b._createPromiseFromResult(null).then(function(){return d}).then(function(a){c.m_explicitBatchInProgress=false;g=c.m_pendingRequest;c.m_pendingRequest=e;return a})["catch"](function(b){c.m_explicitBatchInProgress=false;g=c.m_pendingRequest;c.m_pendingRequest=e;return a._createPromiseFromException(b)});else{this.m_explicitBatchInProgress=false;g=this.m_pendingRequest;this.m_pendingRequest=e;h=b._createPromiseFromResult(d)}return h.then(function(a){return c.ensureRequestUrlAndHeaderInfo().then(function(){return c.syncPrivate(g)}).then(function(){return a})})};e._run=function(f,g,a,b,d,c){if(a===void 0)a=3;if(b===void 0)b=5e3;return e._runCommon("run",null,f,0,g,a,b,null,d,c)};e.isValidRequestInfo=function(a){return typeof a==="string"||e.isRequestUrlAndHeaderInfo(a)||e.isRequestUrlAndHeaderInfoResolver(a)};e.isRequestUrlAndHeaderInfo=function(a){return typeof a==="object"&&a!==null&&Object.getPrototypeOf(a)===Object.getPrototypeOf({})&&!b.isNullOrUndefined(a.url)};e.isRequestUrlAndHeaderInfoResolver=function(a){return typeof a==="object"&&a!==null&&typeof a._resolveRequestUrlAndHeaderInfo==="function"};e._runBatch=function(h,f,g,i,a,b,d,c){if(a===void 0)a=3;if(b===void 0)b=5e3;return e._runBatchCommon(0,h,f,g,a,b,i,d,c)};e._runExplicitBatch=function(h,f,g,i,a,b,d,c){if(a===void 0)a=3;if(b===void 0)b=5e3;return e._runBatchCommon(1,h,f,g,a,b,i,d,c)};e._runBatchCommon=function(u,d,a,t,l,m,p,s,r){if(l===void 0)l=3;if(m===void 0)m=5e3;var h,n,i=null,c=null,f=0,j=null;if(a.length>0)if(e.isValidRequestInfo(a[0])){i=a[0];f=1}else if(b.isPlainJsonObject(a[0])){j=a[0];i=j.session;if(i!=null&&!e.isValidRequestInfo(i))return e.createErrorPromise(d);c=j.previousObjects;f=1}if(a.length==f+1)n=a[f+0];else if(j==null&&a.length==f+2){c=a[f+0];n=a[f+1]}else return e.createErrorPromise(d);if(c!=null)if(c instanceof J)h=function(){return c.context};else if(c instanceof e)h=function(){return c};else if(Array.isArray(c)){var g=c;if(g.length==0)return e.createErrorPromise(d);for(var k=0;k<g.length;k++){if(!(g[k]instanceof J))return e.createErrorPromise(d);if(g[k].context!=g[0].context)return e.createErrorPromise(d,q.invalidRequestContext)}h=function(){return g[0].context}}else return e.createErrorPromise(d);else h=t;var o=null;if(p)o=function(a){return p(j||{},a)};return e._runCommon(d,i,h,u,n,l,m,o,s,r)};e.createErrorPromise=function(d,c){if(c===void 0)c=i.invalidArgument;return a._createPromiseFromException(b.createRuntimeError(c,a._getResourceString(c),d))};e._runCommon=function(t,g,r,h,i,o,u,m,l,k){if(s._overrideSession)g=s._overrideSession;var p=a.createPromise(function(a,b){a()}),d,n=false,f,j;return p.then(function(){d=r(g);if(d._autoCleanup)return new c.Promise(function(a,b){d._onRunFinishedNotifiers.push(function(){d._autoCleanup=true;a()})});else d._autoCleanup=true}).then(function(){if(typeof i!=="function")return e.createErrorPromise(t);j=d.m_batchMode;d.m_batchMode=h;m&&m(d);var a;if(h==1)a=i(d.batch.bind(d));else a=i(d);(b.isNullOrUndefined(a)||typeof a.then!=="function")&&b.throwError(q.runMustReturnPromise);return a}).then(function(a){if(h===1)return a;else return d.sync(a)}).then(function(a){n=true;f=a})["catch"](function(a){f=a}).then(function(){var c=d.trackedObjects._retrieveAndClearAutoCleanupList();d._autoCleanup=false;d.m_batchMode=j;for(var h in c)c[h]._objectPath.isValid=false;var a=0;if(b._synchronousCleanup||e.isRequestUrlAndHeaderInfoResolver(g))return f();else f();function f(){a++;var e=d.m_pendingRequest,g=d.m_batchMode,b=new x(d);d.m_pendingRequest=b;d.m_batchMode=0;try{for(var h in c)d.trackedObjects.remove(c[h])}finally{d.m_batchMode=g;d.m_pendingRequest=e}return d.syncPrivate(b).then(function(){l&&l(a)})["catch"](function(){k&&k(a);a<o&&setTimeout(function(){f()},u)})}}).then(function(){if(d._onRunFinishedNotifiers&&d._onRunFinishedNotifiers.length>0){var a=d._onRunFinishedNotifiers.shift();a()}if(n)return f;else throw f;})};return e}(B);c.ClientRequestContext=Y;var cb=function(){function c(c,h){this.m_proxy=c;this.m_shouldPolyfill=h;var e=c[g.scalarPropertyNames],d=c[g.navigationPropertyNames],f=c[g.className],i=c[g.isCollection];if(e)for(var a=0;a<e.length;a++)b.definePropertyThrowUnloadedException(this,f,e[a]);if(d)for(var a=0;a<d.length;a++)b.definePropertyThrowUnloadedException(this,f,d[a]);i&&b.definePropertyThrowUnloadedException(this,f,g.itemsLowerCase)}Object.defineProperty(c.prototype,"$proxy",{"get":function(){return this.m_proxy},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"$isNullObject",{"get":function(){if(!this.m_isLoaded)throw new d.RuntimeError({code:A.valueNotLoaded,message:a._getResourceString(q.valueNotLoaded),debugInfo:{errorLocation:"retrieveResult.$isNullObject"}});return this.m_isNullObject},enumerable:true,configurable:true});c.prototype.toJSON=function(){if(!this.m_isLoaded)return undefined;if(this.m_isNullObject)return null;if(b.isUndefined(this.m_json))this.m_json=b.purifyJson(this.m_value);return this.m_json};c.prototype.toString=function(){return JSON.stringify(this.toJSON())};c.prototype._handleResult=function(a){this.m_isLoaded=true;if(a===null||typeof a==="object"&&a&&a._IsNull){this.m_isNullObject=true;a=null}else this.m_isNullObject=false;if(this.m_shouldPolyfill)a=b.changePropertyNameToCamelLowerCase(a);this.m_value=a;this.m_proxy._handleRetrieveResult(a,this)};return c}(),g=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}a.getItemAt="GetItemAt";a.index="_Index";a.iterativeExecutor="IterativeExecutor";a.isTracked="_IsTracked";a.eventMessageCategory=65536;a.eventWorkbookId="Workbook";a.eventSourceRemote="Remote";a.proxy="$proxy";a.className="_className";a.isCollection="_isCollection";a.collectionPropertyPath="_collectionPropertyPath";a.objectPathInfoDoNotKeepReferenceFieldName="D";return a}(j);c.Constants=g;var x=function(c){__extends(b,c);function b(b){var a=c.call(this,b)||this;a.m_context=b;a.m_pendingProcessEventHandlers=[];a.m_pendingEventHandlerActions={};a.m_traceInfos={};a.m_responseTraceIds={};a.m_responseTraceMessages=[];return a}Object.defineProperty(b.prototype,"traceInfos",{"get":function(){return this.m_traceInfos},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_responseTraceMessages",{"get":function(){return this.m_responseTraceMessages},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_responseTraceIds",{"get":function(){return this.m_responseTraceIds},enumerable:true,configurable:true});b.prototype._setResponseTraceIds=function(c){if(c)for(var d=0;d<c.length;d++){var b=c[d];this.m_responseTraceIds[b]=b;var e=this.m_traceInfos[b];!a.isNullOrUndefined(e)&&this.m_responseTraceMessages.push(e)}};b.prototype.addTrace=function(a,b){this.m_traceInfos[a]=b};b.prototype._addPendingEventHandlerAction=function(a,b){if(!this.m_pendingEventHandlerActions[a._id]){this.m_pendingEventHandlerActions[a._id]=[];this.m_pendingProcessEventHandlers.push(a)}this.m_pendingEventHandlerActions[a._id].push(b)};Object.defineProperty(b.prototype,"_pendingProcessEventHandlers",{"get":function(){return this.m_pendingProcessEventHandlers},enumerable:true,configurable:true});b.prototype._getPendingEventHandlerActions=function(a){return this.m_pendingEventHandlerActions[a._id]};return b}(H);c.ClientRequest=x;var N=function(){function b(a,e,d,c){var b=this;this.m_id=a._nextId();this.m_context=a;this.m_name=d;this.m_handlers=[];this.m_registered=false;this.m_eventInfo=c;this.m_callback=function(a){b.m_eventInfo.eventArgsTransformFunc(a).then(function(a){return b.fireEvent(a)})}}Object.defineProperty(b.prototype,"_registered",{"get":function(){return this.m_registered},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_id",{"get":function(){return this.m_id},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_handlers",{"get":function(){return this.m_handlers},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_context",{"get":function(){return this.m_context},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_callback",{"get":function(){return this.m_callback},enumerable:true,configurable:true});b.prototype.add=function(a){var b=p.createTraceAction(this.m_context,null,false);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:b.actionInfo.Id,handler:a,operation:0});return new G(this.m_context,this,a)};b.prototype.remove=function(a){var b=p.createTraceAction(this.m_context,null,false);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:b.actionInfo.Id,handler:a,operation:1})};b.prototype.removeAll=function(){var a=p.createTraceAction(this.m_context,null,false);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:a.actionInfo.Id,handler:null,operation:2})};b.prototype._processRegistration=function(i){var e=this,d=a._createPromiseFromResult(null),f=i._getPendingEventHandlerActions(this);if(!f)return d;for(var b=[],c=0;c<this.m_handlers.length;c++)b.push(this.m_handlers[c]);for(var h=false,c=0;c<f.length;c++)if(i._responseTraceIds[f[c].id]){h=true;switch(f[c].operation){case 0:b.push(f[c].handler);break;case 1:for(var g=b.length-1;g>=0;g--)if(b[g]===f[c].handler){b.splice(g,1);break}break;case 2:b=[];break}}if(h){if(!this.m_registered&&b.length>0)d=d.then(function(){return e.m_eventInfo.registerFunc(e.m_callback)}).then(function(){return e.m_registered=true});else if(this.m_registered&&b.length==0)d=d.then(function(){return e.m_eventInfo.unregisterFunc(e.m_callback)})["catch"](function(b){a.log("Error when unregister event: "+JSON.stringify(b))}).then(function(){return e.m_registered=false});d=d.then(function(){return e.m_handlers=b})}return d};b.prototype.fireEvent=function(e){for(var c=[],b=0;b<this.m_handlers.length;b++){var d=this.m_handlers[b],f=a._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(d,e))["catch"](function(b){a.log("Error when invoke handler: "+JSON.stringify(b))});c.push(f)}a.Promise.all(c)};b.prototype.createFireOneEventHandlerFunc=function(a,b){return function(){return a(b)}};return b}();c.EventHandlers=N;var G=function(){function a(b,a,c){this.m_context=b;this.m_allHandlers=a;this.m_handler=c}Object.defineProperty(a.prototype,"context",{"get":function(){return this.m_context},enumerable:true,configurable:true});a.prototype.remove=function(){if(this.m_allHandlers&&this.m_handler){this.m_allHandlers.remove(this.m_handler);this.m_allHandlers=null;this.m_handler=null}};return a}();c.EventHandlerResult=G;(function(a){var c=function(){function c(){}c.prototype.register=function(e,d,c){switch(e){case 4:return b.promisify(function(a){return Office.context.document.bindings.getByIdAsync(d,a)}).then(function(a){return b.promisify(function(b){return a.addHandlerAsync(Office.EventType.BindingDataChanged,c,b)})});case 3:return b.promisify(function(a){return Office.context.document.bindings.getByIdAsync(d,a)}).then(function(a){return b.promisify(function(b){return a.addHandlerAsync(Office.EventType.BindingSelectionChanged,c,b)})});case 2:return b.promisify(function(a){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,c,a)});case 1:return b.promisify(function(a){return Office.context.document.settings.addHandlerAsync(Office.EventType.SettingsChanged,c,a)});case 5:return b.promisify(function(a){return OSF.DDA.RichApi.richApiMessageManager.addHandlerAsync("richApiMessage",c,a)});case 13:return b.promisify(function(a){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,c,{id:d},a)});case 14:return b.promisify(function(a){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,c,{id:d},a)});case 15:return b.promisify(function(a){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,c,{id:d},a)});case 16:return b.promisify(function(a){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,c,{id:d},a)});default:throw a.RuntimeError._createInvalidArgError({argumentName:"eventId"});}};c.prototype.unregister=function(e,d,c){switch(e){case 4:return b.promisify(function(a){return Office.context.document.bindings.getByIdAsync(d,a)}).then(function(a){return b.promisify(function(b){return a.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:c},b)})});case 3:return b.promisify(function(a){return Office.context.document.bindings.getByIdAsync(d,a)}).then(function(a){return b.promisify(function(b){return a.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:c},b)})});case 2:return b.promisify(function(a){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:c},a)});case 1:return b.promisify(function(a){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:c},a)});case 5:return b.promisify(function(a){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:c},a)});case 13:return b.promisify(function(a){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:d,handler:c},a)});case 14:return b.promisify(function(a){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:d,handler:c},a)});case 15:return b.promisify(function(a){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:d,handler:c},a)});case 16:return b.promisify(function(a){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:d,handler:c},a)});default:throw a.RuntimeError._createInvalidArgError({argumentName:"eventId"});}};return c}();a.officeJsEventRegistration=new c})(d=c._Internal||(c._Internal={}));var I=function(){function a(b,a){this.m_handlersByEventByTarget={};this.m_registerEventImpl=b;this.m_unregisterEventImpl=a}a.prototype.getHandlers=function(e,d){if(b.isNullOrUndefined(d))d="";var a=this.m_handlersByEventByTarget[e];if(!a){a={};this.m_handlersByEventByTarget[e]=a}var c=a[d];if(!c){c=[];a[d]=c}return c};a.prototype.register=function(e,c,f){if(!f)throw d.RuntimeError._createInvalidArgError({argumentName:"handler"});var a=this.getHandlers(e,c);a.push(f);if(a.length===1)return this.m_registerEventImpl(e,c);return b._createPromiseFromResult(null)};a.prototype.unregister=function(f,e,g){if(!g)throw d.RuntimeError._createInvalidArgError({argumentName:"handler"});for(var a=this.getHandlers(f,e),c=a.length-1;c>=0;c--)if(a[c]===g){a.splice(c,1);break}if(a.length===0)return this.m_unregisterEventImpl(f,e);return b._createPromiseFromResult(null)};return a}();c.EventRegistration=I;var o=function(){function c(){this.m_eventRegistration=new I(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this));this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}c.prototype.ready=function(){var a=this;if(!this.m_ready)if(c._testReadyImpl)this.m_ready=c._testReadyImpl().then(function(){a.m_isReady=true});else if(v.instance)this.m_ready=b._createPromiseFromResult(null).then(function(){a.m_isReady=true});else this.m_ready=d.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then(function(){a.m_isReady=true});return this.m_ready};Object.defineProperty(c.prototype,"isReady",{"get":function(){return this.m_isReady},enumerable:true,configurable:true});c.prototype.register=function(b,a,c){var d=this;return this.ready().then(function(){return d.m_eventRegistration.register(b,a,c)})};c.prototype.unregister=function(b,a,c){var d=this;return this.ready().then(function(){return d.m_eventRegistration.unregister(b,a,c)})};c.prototype._registerEventImpl=function(c,a){return b._createPromiseFromResult(null)};c.prototype._unregisterEventImpl=function(c,a){return b._createPromiseFromResult(null)};c.prototype._handleRichApiMessage=function(c){if(c&&c.entries)for(var d=0;d<c.entries.length;d++){var b=c.entries[d];if(b.messageCategory==g.eventMessageCategory){a._logEnabled&&a.log(JSON.stringify(b));var e=this.m_eventRegistration.getHandlers(b.messageType,b.targetId);if(e.length>0){var h=JSON.parse(b.message);if(b.isRemoteOverride)h.source=g.eventSourceRemote;for(var f=0;f<e.length;f++)e[f](h)}}}};c.getGenericEventRegistration=function(){if(!c.s_genericEventRegistration)c.s_genericEventRegistration=new c;return c.s_genericEventRegistration};c.richApiMessageEventCategory=65536;return c}();c.GenericEventRegistration=o;function Q(a){o._testReadyImpl=a}c._testSetRichApiMessageReadyImpl=Q;function R(a){o.getGenericEventRegistration()._handleRichApiMessage(a)}c._testTriggerRichApiMessageEvent=R;var Z=function(b){__extends(a,b);function a(e,d,f,a){var c=b.call(this,e,d,f,a)||this;c.m_genericEventInfo=a;return c}a.prototype.add=function(b){var a=this;this._handlers.length==0&&this.m_genericEventInfo.registerFunc&&this.m_genericEventInfo.registerFunc();!o.getGenericEventRegistration().isReady&&this._context._pendingRequest._addPreSyncPromise(o.getGenericEventRegistration().ready());p.createTraceMarkerForCallback(this._context,function(){a._handlers.push(b);a._handlers.length==1&&o.getGenericEventRegistration().register(a.m_genericEventInfo.eventType,a.m_genericEventInfo.getTargetIdFunc(),a._callback)});return new G(this._context,this,b)};a.prototype.remove=function(b){var a=this;this._handlers.length==1&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();p.createTraceMarkerForCallback(this._context,function(){for(var c=a._handlers,d=c.length-1;d>=0;d--)if(c[d]===b){c.splice(d,1);break}c.length==0&&o.getGenericEventRegistration().unregister(a.m_genericEventInfo.eventType,a.m_genericEventInfo.getTargetIdFunc(),a._callback)})};a.prototype.removeAll=function(){};return a}(N);c.GenericEventHandlers=Z;var S=function(){function a(a){this.m_clientObject=a}a.prototype._handleResult=function(a){this.m_clientObject._handleIdResult(a)};return a}(),r=function(){function a(){}a.createGlobalObjectObjectPath=function(b){var a={Id:b._nextId(),ObjectPathType:1,Name:""};return new m(a,null,false,false,1,4)};a.createNewObjectObjectPath=function(e,d,c,f){var a={Id:e._nextId(),ObjectPathType:2,Name:d},g=new m(a,null,c,false,1,b._fixupApiFlags(f));return g};a.createPropertyObjectPath=function(g,a,f,e,c,h){var d={Id:g._nextId(),ObjectPathType:4,Name:f,ParentObjectPathId:a._objectPath.objectPathInfo.Id},i=new m(d,a._objectPath,e,c,1,b._fixupApiFlags(h));return i};a.createIndexerObjectPath=function(c,b,d){var a={Id:c._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:b._objectPath.objectPathInfo.Id,ArgumentInfo:{}};a.ArgumentInfo.Arguments=d;return new m(a,b._objectPath,false,false,1,4)};a.createIndexerObjectPathUsingParentPath=function(c,a,d){var b={Id:c._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:a.objectPathInfo.Id,ArgumentInfo:{}};b.ArgumentInfo.Arguments=d;return new m(b,a,false,false,1,4)};a.createMethodObjectPath=function(d,e,k,i,n,j,f,h,l){var c={Id:d._nextId(),ObjectPathType:3,Name:k,ParentObjectPathId:e._objectPath.objectPathInfo.Id,ArgumentInfo:{}},g=b.setMethodArguments(d,c.ArgumentInfo,n),a=new m(c,e._objectPath,j,f,i,b._fixupApiFlags(l));a.argumentObjectPaths=g;a.getByIdMethodName=h;return a};a.createReferenceIdObjectPath=function(c,b){var a={Id:c._nextId(),ObjectPathType:6,Name:b,ArgumentInfo:{}},d=new m(a,null,false,false,1,4);return d};a.createChildItemObjectPathUsingIndexerOrGetItemAt=function(f,d,e,c,g){var h=b.tryGetObjectIdFromLoadOrRetrieveResult(c);if(f&&!b.isNullOrUndefined(h))return a.createChildItemObjectPathUsingIndexer(d,e,c);else return a.createChildItemObjectPathUsingGetItemAt(d,e,c,g)};a.createChildItemObjectPathUsingIndexer=function(e,c,d){var f=b.tryGetObjectIdFromLoadOrRetrieveResult(d),a=a={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:c._objectPath.objectPathInfo.Id,ArgumentInfo:{}};a.ArgumentInfo.Arguments=[f];return new m(a,c._objectPath,false,false,1,4)};a.createChildItemObjectPathUsingGetItemAt=function(f,c,e,d){var a=e[g.index];if(a)d=a;var b={Id:f._nextId(),ObjectPathType:3,Name:g.getItemAt,ParentObjectPathId:c._objectPath.objectPathInfo.Id,ArgumentInfo:{}};b.ArgumentInfo.Arguments=[d];return new m(b,c._objectPath,false,false,1,4)};return a}();c.ObjectPathFactory=r;var W=function(){function b(a){this.m_context=a}b.prototype.executeAsync=function(g,f,e){var h=this,d=k.buildMessageArrayForIRequestExecutor(g,f,e,b.SourceLibHeaderValue);return new c.Promise(function(b,c){OSF.DDA.RichApi.executeRichApiRequestAsync(d,function(c){a.log("Response:");a.log(JSON.stringify(c));var d;if(c.status=="succeeded")d=k.buildResponseOnSuccess(k.getResponseBody(c),k.getResponseHeaders(c));else{d=k.buildResponseOnError(c.error.code,c.error.message);h.m_context._processOfficeJsErrorResponse(c.error.code,d)}b(d)})})};b.SourceLibHeaderValue="officejs";return b}(),M=function(){function c(a){this._autoCleanupList={};this.m_context=a}c.prototype.add=function(a){var b=this;if(Array.isArray(a))a.forEach(function(a){return b._addCommon(a,true)});else this._addCommon(a,true)};c.prototype._autoAdd=function(a){this._addCommon(a,false);this._autoCleanupList[a._objectPath.objectPathInfo.Id]=a};c.prototype._autoTrackIfNecessaryWhenHandleObjectResultValue=function(a,c){var d=this.m_context._autoCleanup&&!a[g.isTracked]&&a!==this.m_context._rootObject&&c&&!b.isNullOrEmptyString(c[g.referenceId]);if(d){this._autoCleanupList[a._objectPath.objectPathInfo.Id]=a;a[g.isTracked]=true}};c.prototype._addCommon=function(c,d){if(c[g.isTracked]){if(d&&this.m_context._autoCleanup)delete this._autoCleanupList[c._objectPath.objectPathInfo.Id];return}var h=c[g.referenceId],e=c._objectPath.objectPathInfo[g.objectPathInfoDoNotKeepReferenceFieldName];if(e)throw b.createRuntimeError(f.generalException,a._getResourceString(q.objectIsUntracked),null);if(b.isNullOrEmptyString(h)&&c._KeepReference){c._KeepReference();p.createInstantiateAction(this.m_context,c);if(d&&this.m_context._autoCleanup)delete this._autoCleanupList[c._objectPath.objectPathInfo.Id];c[g.isTracked]=true}};c.prototype.remove=function(a){var b=this;if(Array.isArray(a))a.forEach(function(a){return b._removeCommon(a)});else this._removeCommon(a)};c.prototype._removeCommon=function(a){a._objectPath.objectPathInfo[g.objectPathInfoDoNotKeepReferenceFieldName]=true;a.context._pendingRequest._removeKeepReferenceAction(a._objectPath.objectPathInfo.Id);var c=a[g.referenceId];if(!b.isNullOrEmptyString(c)){var d=this.m_context._rootObject;d._RemoveReference&&d._RemoveReference(c)}delete a[g.isTracked]};c.prototype._retrieveAndClearAutoCleanupList=function(){var a=this._autoCleanupList;this._autoCleanupList={};return a};return c}();c.TrackedObjects=M;var E=function(){function a(a,b,e,c,d){if(!a)a="root";this.m_globalObjName=a;this.m_referencedObjectPaths=b;this.m_actions=e;this.m_statements=[];this.m_variableNameForObjectPathMap={};this.m_variableNameToObjectPathMap={};this.m_declaredObjectPathMap={};this.m_showDispose=c;this.m_removePII=d}a.prototype.process=function(){this.m_showDispose&&x._calculateLastUsedObjectPathIds(this.m_actions);for(var a=0;a<this.m_actions.length;a++)this.processOneAction(this.m_actions[a]);return this.m_statements};a.prototype.processForDebugStatementInfo=function(i){this.m_showDispose&&x._calculateLastUsedObjectPathIds(this.m_actions);var f=5;this.m_statements=[];for(var j="",a=-1,e=0;e<this.m_actions.length;e++){this.processOneAction(this.m_actions[e]);if(i==e)a=this.m_statements.length-1;if(a>=0&&this.m_statements.length>a+f+1)break}if(a<0)return null;var c=a-f;if(c<0)c=0;var d=a+1+f;if(d>this.m_statements.length)d=this.m_statements.length;var b=[];c!=0&&b.push("...");for(var g=c;g<a;g++)b.push(this.m_statements[g]);b.push("// >>>>>");b.push(this.m_statements[a]);b.push("// <<<<<");for(var h=a+1;h<d;h++)b.push(this.m_statements[h]);d<this.m_statements.length&&b.push("...");return{statement:this.m_statements[a],surroundingStatements:b}};a.prototype.processOneAction=function(a){var b=a.actionInfo;switch(b.ActionType){case 1:this.processInstantiateAction(a);break;case 3:this.processMethodAction(a);break;case 2:this.processQueryAction(a);break;case 7:this.processQueryAsJsonAction(a);break;case 6:this.processRecursiveQueryAction(a);break;case 4:this.processSetPropertyAction(a);break;case 5:this.processTraceAction(a);break;case 8:this.processEnsureUnchangedAction(a);break;case 9:this.processUpdateAction(a);break}};a.prototype.processInstantiateAction=function(d){var b=d.actionInfo.ObjectPathId,e=this.m_referencedObjectPaths[b],c=this.getObjVarName(b);if(!this.m_declaredObjectPathMap[b]){var a="var "+c+"="+this.buildObjectPathExpressionWithParent(e)+";";a=this.appendDisposeCommentIfRelevant(a,d);this.m_statements.push(a);this.m_declaredObjectPathMap[b]=c}else{var a="// Instantiate {"+c+"}";a=this.appendDisposeCommentIfRelevant(a,d);this.m_statements.push(a)}};a.prototype.processMethodAction=function(a){var d=a.actionInfo.Name;if(d==="_KeepReference"){if(!c._internalConfig.showInternalApiInDebugInfo)return;d="track"}var e=this.getObjVarName(a.actionInfo.ObjectPathId)+"."+b._toCamelLowerCase(d)+"("+this.buildArgumentsExpression(a.actionInfo.ArgumentInfo)+");";e=this.appendDisposeCommentIfRelevant(e,a);this.m_statements.push(e)};a.prototype.processQueryAction=function(b){var c=this.buildQueryExpression(b),a=this.getObjVarName(b.actionInfo.ObjectPathId)+".load("+c+");";a=this.appendDisposeCommentIfRelevant(a,b);this.m_statements.push(a)};a.prototype.processQueryAsJsonAction=function(b){var c=this.buildQueryExpression(b),a=this.getObjVarName(b.actionInfo.ObjectPathId)+".retrieve("+c+");";a=this.appendDisposeCommentIfRelevant(a,b);this.m_statements.push(a)};a.prototype.processRecursiveQueryAction=function(a){var c="";if(a.actionInfo.RecursiveQueryInfo)c=JSON.stringify(a.actionInfo.RecursiveQueryInfo);var b=this.getObjVarName(a.actionInfo.ObjectPathId)+".loadRecursive("+c+");";b=this.appendDisposeCommentIfRelevant(b,a);this.m_statements.push(b)};a.prototype.processSetPropertyAction=function(a){var c=this.getObjVarName(a.actionInfo.ObjectPathId)+"."+b._toCamelLowerCase(a.actionInfo.Name)+"="+this.buildArgumentsExpression(a.actionInfo.ArgumentInfo)+";";c=this.appendDisposeCommentIfRelevant(c,a);this.m_statements.push(c)};a.prototype.processTraceAction=function(b){var a="context.trace();";a=this.appendDisposeCommentIfRelevant(a,b);this.m_statements.push(a)};a.prototype.processEnsureUnchangedAction=function(b){var a=this.getObjVarName(b.actionInfo.ObjectPathId)+".ensureUnchanged("+JSON.stringify(b.actionInfo.ObjectState)+");";a=this.appendDisposeCommentIfRelevant(a,b);this.m_statements.push(a)};a.prototype.processUpdateAction=function(b){var a=this.getObjVarName(b.actionInfo.ObjectPathId)+".update("+JSON.stringify(b.actionInfo.ObjectState)+");";a=this.appendDisposeCommentIfRelevant(a,b);this.m_statements.push(a)};a.prototype.appendDisposeCommentIfRelevant=function(b,d){var e=this;if(this.m_showDispose){var a=d.actionInfo.L;if(a&&a.length>0){var c=a.map(function(a){return e.getObjVarName(a)}).join(", ");return b+" // And then dispose {"+c+"}"}}return b};a.prototype.buildQueryExpression=function(b){if(b.actionInfo.QueryInfo){var a={};a.select=b.actionInfo.QueryInfo.Select;a.expand=b.actionInfo.QueryInfo.Expand;a.skip=b.actionInfo.QueryInfo.Skip;a.top=b.actionInfo.QueryInfo.Top;if(typeof a.top==="undefined"&&typeof a.skip==="undefined"&&typeof a.expand==="undefined")if(typeof a.select==="undefined")return"";else return JSON.stringify(a.select);else return JSON.stringify(a)}return""};a.prototype.buildObjectPathExpressionWithParent=function(a){var b=a.objectPathInfo.ObjectPathType==5||a.objectPathInfo.ObjectPathType==3||a.objectPathInfo.ObjectPathType==4;if(b&&a.objectPathInfo.ParentObjectPathId)return this.getObjVarName(a.objectPathInfo.ParentObjectPathId)+"."+this.buildObjectPathExpression(a);return this.buildObjectPathExpression(a)};a.prototype.buildObjectPathExpression=function(c){var a=this.buildObjectPathInfoExpression(c.objectPathInfo),b=c.originalObjectPathInfo;if(b)a=a+" /* originally "+this.buildObjectPathInfoExpression(b)+" */";return a};a.prototype.buildObjectPathInfoExpression=function(a){switch(a.ObjectPathType){case 1:return"context."+this.m_globalObjName;case 5:return"getItem("+this.buildArgumentsExpression(a.ArgumentInfo)+")";case 3:return b._toCamelLowerCase(a.Name)+"("+this.buildArgumentsExpression(a.ArgumentInfo)+")";case 2:return a.Name+".newObject()";case 7:return"null";case 4:return b._toCamelLowerCase(a.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(a.Name)+")"}};a.prototype.buildArgumentsExpression=function(b){var a="";if(!b.Arguments||b.Arguments.length===0)return a;if(this.m_removePII){if(typeof b.Arguments[0]==="undefined")return a;return"..."}for(var c=0;c<b.Arguments.length;c++){if(c>0)a=a+", ";a=a+this.buildArgumentLiteral(b.Arguments[c],b.ReferencedObjectPathIds?b.ReferencedObjectPathIds[c]:null)}if(a==="undefined")a="";return a};a.prototype.buildArgumentLiteral=function(a,b){if(typeof a=="number"&&a===b)return this.getObjVarName(b);else return JSON.stringify(a)};a.prototype.getObjVarNameBase=function(f){var a="v",e=this.m_referencedObjectPaths[f];if(e)switch(e.objectPathInfo.ObjectPathType){case 1:a=this.m_globalObjName;break;case 4:a=b._toCamelLowerCase(e.objectPathInfo.Name);break;case 3:var c=e.objectPathInfo.Name;if(c.length>3&&c.substr(0,3)==="Get")c=c.substr(3);a=b._toCamelLowerCase(c);break;case 5:var d=this.getObjVarNameBase(e.objectPathInfo.ParentObjectPathId);if(d.charAt(d.length-1)==="s")a=d.substr(0,d.length-1);else a=d+"Item";break}return a};a.prototype.getObjVarName=function(b){if(this.m_variableNameForObjectPathMap[b])return this.m_variableNameForObjectPathMap[b];var a=this.getObjVarNameBase(b);if(!this.m_variableNameToObjectPathMap[a]){this.m_variableNameForObjectPathMap[b]=a;this.m_variableNameToObjectPathMap[a]=b;return a}var c=1;while(this.m_variableNameToObjectPathMap[a+c.toString()])c++;a=a+c.toString();this.m_variableNameForObjectPathMap[b]=a;this.m_variableNameToObjectPathMap[a]=b;return a};return a}(),q=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}a.cannotRegisterEvent="CannotRegisterEvent";a.connectionFailureWithStatus="ConnectionFailureWithStatus";a.connectionFailureWithDetails="ConnectionFailureWithDetails";a.propertyNotLoaded="PropertyNotLoaded";a.runMustReturnPromise="RunMustReturnPromise";a.moreInfoInnerError="MoreInfoInnerError";a.cannotApplyPropertyThroughSetMethod="CannotApplyPropertyThroughSetMethod";a.invalidOperationInCellEditMode="InvalidOperationInCellEditMode";a.objectIsUntracked="ObjectIsUntracked";a.customFunctionDefintionMissing="CustomFunctionDefintionMissing";a.customFunctionImplementationMissing="CustomFunctionImplementationMissing";a.customFunctionNameContainsBadChars="CustomFunctionNameContainsBadChars";a.customFunctionNameCannotSplit="CustomFunctionNameCannotSplit";a.customFunctionUnexpectedNumberOfEntriesInResultBatch="CustomFunctionUnexpectedNumberOfEntriesInResultBatch";a.customFunctionCancellationHandlerMissing="CustomFunctionCancellationHandlerMissing";a.customFunctionInvalidFunction="CustomFunctionInvalidFunction";a.customFunctionInvalidFunctionMapping="CustomFunctionInvalidFunctionMapping";a.customFunctionWindowMissing="CustomFunctionWindowMissing";a.customFunctionDefintionMissingOnWindow="CustomFunctionDefintionMissingOnWindow";a.pendingBatchInProgress="PendingBatchInProgress";a.notInsideBatch="NotInsideBatch";a.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty";return a}(w);c.ResourceStrings=q;a.addResourceStringValues({CannotRegisterEvent:"The event handler cannot be registered.",PropertyNotLoaded:"The property '{0}' is not available. Before reading the property's value, call the load method on the containing object and call \"context.sync()\" on the associated request context.",RunMustReturnPromise:'The batch function passed to the ".run" method didn\'t return a promise. The function must return a promise, so that any automatically-tracked objects can be released at the completion of the batch operation. Typically, you return a promise by returning the response from "context.sync()".',InvalidOrTimedOutSessionMessage:"Your Office Online session has expired or is invalid. To continue, refresh the page.",InvalidOperationInCellEditMode:"Excel is in cell-editing mode. Please exit the edit mode by pressing ENTER or TAB or selecting another cell, and then try again.",CustomFunctionDefintionMissing:"A property with the name '{0}' that represents the function's definition must exist on Excel.Script.CustomFunctions.",CustomFunctionDefintionMissingOnWindow:"A property with the name '{0}' that represents the function's definition must exist on the window object.",CustomFunctionImplementationMissing:"The property with the name '{0}' on Excel.Script.CustomFunctions that represents the function's definition must contain a 'call' property that implements the function.",CustomFunctionNameContainsBadChars:"The function name may only contain letters, digits, underscores, and periods.",CustomFunctionNameCannotSplit:"The function name must contain a non-empty namespace and a non-empty short name.",CustomFunctionUnexpectedNumberOfEntriesInResultBatch:"The batching function returned a number of results that doesn't match the number of parameter value sets that were passed into it.",CustomFunctionCancellationHandlerMissing:"The cancellation handler onCanceled is missing in the function. The handler must be present as the function is defined as cancelable.",CustomFunctionInvalidFunction:"The property with the name '{0}' that represents the function's definition is not a valid function.",CustomFunctionInvalidFunctionMapping:"The property with the name '{0}' on CustomFunctionMappings that represents the function's definition is not a valid function.",CustomFunctionWindowMissing:"The window object was not found.",PendingBatchInProgress:"There is a pending batch in progress. The batch method may not be called inside another batch, or simultaneously with another batch.",NotInsideBatch:"Operations may not be invoked outside of a batch method.",CannotUpdateReadOnlyProperty:"The property '{0}' is read-only and it cannot be updated.",ObjectIsUntracked:"The object is untracked."});var b=function(e){__extends(b,e);function b(){return e!==null&&e.apply(this,arguments)||this}b.fixObjectPathIfNecessary=function(a,b){a&&a._objectPath&&b&&a._objectPath.updateUsingObjectData(b,a)};b.load=function(a,b){a.context.load(a,b);return a};b.loadAndSync=function(a,b){a.context.load(a,b);return a.context.sync().then(function(){return a})};b.retrieve=function(d,f){var a=c._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;if(!a)a=!b.isSetSupported("RichApiRuntime","1.1");var e=new cb(d,a);d._retrieve(f,e);return e};b.retrieveAndSync=function(a,c){var d=b.retrieve(a,c);return a.context.sync().then(function(){return d})};b.toJson=function(h,g,f,e){var c={};for(var d in g){var a=g[d];if(typeof a!=="undefined")c[d]=a}for(var d in f){var a=f[d];if(typeof a!=="undefined")if(a[b.fieldName_isCollection]&&typeof a[b.fieldName_m__items]!=="undefined")c[d]=a.toJSON().items;else c[d]=a.toJSON()}if(e)c.items=e.map(function(a){return a.toJSON()});return c};b.throwError=function(c,e,b){throw new d.RuntimeError({code:c,message:a._getResourceString(c,e),debugInfo:b?{errorLocation:b}:undefined});};b.createRuntimeError=function(c,b,a){return new d.RuntimeError({code:c,message:b,debugInfo:{errorLocation:a}})};b.throwIfNotLoaded=function(c,e,d,f){if(!f&&a.isUndefined(e)&&c.charCodeAt(0)!=b.s_underscoreCharCode)throw b.createPropertyNotLoadedException(d,c);};b.createPropertyNotLoadedException=function(c,b){return new d.RuntimeError({code:A.propertyNotLoaded,message:a._getResourceString(q.propertyNotLoaded,b),debugInfo:c?{errorLocation:c+"."+b}:undefined})};b.createCannotUpdateReadOnlyPropertyException=function(c,b){return new d.RuntimeError({code:A.cannotUpdateReadOnlyProperty,message:a._getResourceString(q.cannotUpdateReadOnlyProperty,b),debugInfo:c?{errorLocation:c+"."+b}:undefined})};b.promisify=function(a){return new c.Promise(function(c,d){var b=function(a){if(a.status=="failed")d(a.error);else c(a.value)};a(b)})};b._addActionResultHandler=function(b,c,a){b.context._pendingRequest.addActionResultHandler(c,a)};b._handleNavigationPropertyResults=function(e,d,c){for(var b=0;b<c.length-1;b+=2)!a.isUndefined(d[c[b+1]])&&e[c[b]]._handleResult(d[c[b+1]])};b._fixupApiFlags=function(a){if(typeof a==="boolean")if(a)a=1;else a=0;return a};b.definePropertyThrowUnloadedException=function(d,c,a){Object.defineProperty(d,a,{configurable:true,enumerable:true,"get":function(){throw b.createPropertyNotLoadedException(c,a);},"set":function(){throw b.createCannotUpdateReadOnlyPropertyException(c,a);}})};b.defineReadOnlyPropertyWithValue=function(d,a,c){Object.defineProperty(d,a,{configurable:true,enumerable:true,"get":function(){return c},"set":function(){throw b.createCannotUpdateReadOnlyPropertyException(null,a);}})};b.processRetrieveResult=function(i,j,f,o){if(a.isNullOrUndefined(j))return;if(o){var k=j[g.itemsLowerCase];if(Array.isArray(k)){for(var p=[],c=0;c<k.length;c++){var q=o(k[c],c),n={};n[g.proxy]=q;q._handleRetrieveResult(k[c],n);p.push(n)}b.defineReadOnlyPropertyWithValue(f,g.itemsLowerCase,p)}}else{var m=i[g.scalarPropertyNames],l=i[g.navigationPropertyNames],s=i[g.className];if(m)for(var c=0;c<m.length;c++){var d=m[c],h=j[d];if(a.isUndefined(h))b.definePropertyThrowUnloadedException(f,s,d);else b.defineReadOnlyPropertyWithValue(f,d,h)}if(l)for(var c=0;c<l.length;c++){var d=l[c],h=j[d];if(a.isUndefined(h))b.definePropertyThrowUnloadedException(f,s,d);else{var r=i[d],e={};r._handleRetrieveResult(h,e);e[g.proxy]=r;if(Array.isArray(e[g.itemsLowerCase]))e=e[g.itemsLowerCase];b.defineReadOnlyPropertyWithValue(f,d,e)}}}};b.fieldName_m__items="m__items";b.fieldName_isCollection="_isCollection";b._synchronousCleanup=false;b.s_underscoreCharCode="_".charCodeAt(0);return b}(e);c.Utility=b;var fb=function(){function a(){}a.invokeMethod=function(a,f,e,i,h,d){var g=p.createMethodAction(a.context,a,f,e,i,h),c=new z(d);b._addActionResultHandler(a,g,c);return c};a.invokeEnsureUnchanged=function(a,b){p.createEnsureUnchangedAction(a.context,a,b)};a.invokeSetProperty=function(a,c,b,d){p.createSetPropertyAction(a.context,a,c,b,d)};a.createRootServiceObject=function(c,a){var b=r.createGlobalObjectObjectPath(a);return new c(a,b)};a.createObjectFromReferenceId=function(d,a,b){var c=r.createReferenceIdObjectPath(a,b);return new d(a,c)};a.createTopLevelServiceObject=function(f,a,d,b,e){var c=r.createNewObjectObjectPath(a,d,b,e);return new f(a,c)};a.createPropertyObject=function(f,a,c,b,e){var d=r.createPropertyObjectPath(a.context,a,c,b,false,e);return new f(a.context,d)};a.createIndexerObject=function(d,a,c){var b=r.createIndexerObjectPath(a.context,a,c);return new d(a.context,b)};a.createMethodObject=function(j,a,f,d,i,e,b,c,h){var g=r.createMethodObjectPath(a.context,a,f,d,i,e,b,c,h);return new j(a.context,g)};a.createChildItemObject=function(f,b,a,d,e){var c=r.createChildItemObjectPathUsingIndexerOrGetItemAt(b,a.context,a,d,e);return new f(a.context,c)};return a}();c.BatchApiHelper=fb;var O=1,C={invokeRequestModifier:function(a){a.DdaMethod.Version=O;return a},invokeResponseModifier:function(a){O=a.Version;if(a.Error){a.error={};a.error.Code=a.Error}return a}},h;(function(a){a.SendingId="sId";a.RespondingId="rId";a.CommandKey="command";a.SessionInfoKey="sessionInfo";a.ParamsKey="params";a.ApiReadyCommand="apiready";a.ExecuteMethodCommand="executeMethod";a.GetAppContextCommand="getAppContext";a.RegisterEventCommand="registerEvent";a.UnregisterEventCommand="unregisterEvent";a.FireEventCommand="fireEvent"})(h||(h={}));var u=function(){function a(){}a.sessionContext="sc";a.embeddingPageOrigin="EmbeddingPageOrigin";a.embeddingPageSessionInfo="EmbeddingPageSessionInfo";return a}();c.EmbeddedConstants=u;var db=function(d){__extends(c,d);function c(c,b){var a=d.call(this)||this;a.m_chosenWindow=null;a.m_chosenOrigin=null;a.m_enabled=true;a.m_onMessageHandler=a._onMessage.bind(a);a.m_callbackList={};a.m_id=0;a.m_timeoutId=-1;a.m_appContext=null;a.m_url=c;a.m_options=b;if(!a.m_options)a.m_options={sessionKey:Math.random().toString()};if(!a.m_options.sessionKey)a.m_options.sessionKey=Math.random().toString();if(!a.m_options.container)a.m_options.container=document.body;if(!a.m_options.timeoutInMilliseconds)a.m_options.timeoutInMilliseconds=6e4;if(!a.m_options.height)a.m_options.height="400px";if(!a.m_options.width)a.m_options.width="100%";if(!(a.m_options.webApplication&&a.m_options.webApplication.accessToken&&a.m_options.webApplication.accessTokenTtl))a.m_options.webApplication=null;return a}c.prototype._getIFrameSrc=function(){var e=window.location.protocol+"//"+window.location.host,b=u.embeddingPageOrigin+"="+encodeURIComponent(e)+"&"+u.embeddingPageSessionInfo+"="+encodeURIComponent(this.m_options.sessionKey),d=false;if(this.m_url.toLowerCase().indexOf("/_layouts/preauth.aspx")>0||this.m_url.toLowerCase().indexOf("/_layouts/15/preauth.aspx")>0)d=true;var a=document.createElement("a");a.href=this.m_url;if(this.m_options.webApplication){var c=u.embeddingPageOrigin+"="+e+"&"+u.embeddingPageSessionInfo+"="+this.m_options.sessionKey;if(a.search.length===0||a.search==="?")a.search="?"+u.sessionContext+"="+encodeURIComponent(c);else a.search=a.search+"&"+u.sessionContext+"="+encodeURIComponent(c)}else if(d)if(a.hash.length===0||a.hash==="#")a.hash="#"+b;else a.hash=a.hash+"&"+b;else if(a.search.length===0||a.search==="?")a.search="?"+b;else a.search=a.search+"&"+b;var f=a.href;return f};c.prototype.init=function(){var c=this;window.addEventListener("message",this.m_onMessageHandler);var d=this._getIFrameSrc();return a.createPromise(function(k,l){var e=document.createElement("iframe");if(c.m_options.id){e.id=c.m_options.id;e.name=c.m_options.id}e.style.height=c.m_options.height;e.style.width=c.m_options.width;if(!c.m_options.webApplication){e.src=d;c.m_options.container.appendChild(e)}else{var g=document.createElement("form");g.setAttribute("action",d);g.setAttribute("method","post");g.setAttribute("target",e.name);c.m_options.container.appendChild(g);var j=document.createElement("input");j.setAttribute("type","hidden");j.setAttribute("name","access_token");j.setAttribute("value",c.m_options.webApplication.accessToken);g.appendChild(j);var h=document.createElement("input");h.setAttribute("type","hidden");h.setAttribute("name","access_token_ttl");h.setAttribute("value",c.m_options.webApplication.accessTokenTtl);g.appendChild(h);c.m_options.container.appendChild(e);g.submit()}c.m_timeoutId=window.setTimeout(function(){c.close();var d=b.createRuntimeError(f.timeout,a._getResourceString(i.timeout),"EmbeddedSession.init");l(d)},c.m_options.timeoutInMilliseconds);c.m_promiseResolver=k})};c.prototype._invoke=function(c,b,a){if(!this.m_enabled){b(5001,null);return}if(C.invokeRequestModifier)a=C.invokeRequestModifier(a);this._sendMessageWithCallback(this.m_id++,c,a,function(a){if(C.invokeResponseModifier)a=C.invokeResponseModifier(a);var c=a.Error;delete a.Error;b(c||0,a)})};c.prototype.close=function(){window.removeEventListener("message",this.m_onMessageHandler);window.clearTimeout(this.m_timeoutId);this.m_enabled=false};Object.defineProperty(c.prototype,"eventRegistration",{"get":function(){if(!this.m_sessionEventManager)this.m_sessionEventManager=new I(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this));return this.m_sessionEventManager},enumerable:true,configurable:true});c.prototype._createRequestExecutorOrNull=function(){return new V(this)};c.prototype._resolveRequestUrlAndHeaderInfo=function(){return a._createPromiseFromResult(null)};c.prototype._registerEventImpl=function(d,c){var b=this;return a.createPromise(function(a,e){b._sendMessageWithCallback(b.m_id++,h.RegisterEventCommand,{EventId:d,TargetId:c},function(){a(null)})})};c.prototype._unregisterEventImpl=function(d,c){var b=this;return a.createPromise(function(a,e){b._sendMessageWithCallback(b.m_id++,h.UnregisterEventCommand,{EventId:d,TargetId:c},function(){a()})})};c.prototype._onMessage=function(b){var c=this;if(!this.m_enabled)return;if(this.m_chosenWindow&&(this.m_chosenWindow!==b.source||this.m_chosenOrigin!==b.origin))return;var a=b.data;if(a&&a[h.CommandKey]===h.ApiReadyCommand){if(!this.m_chosenWindow&&this._isValidDescendant(b.source)&&a[h.SessionInfoKey]===this.m_options.sessionKey){this.m_chosenWindow=b.source;this.m_chosenOrigin=b.origin;this._sendMessageWithCallback(this.m_id++,h.GetAppContextCommand,null,function(a){c._setupContext(a);window.clearTimeout(c.m_timeoutId);c.m_promiseResolver()})}return}if(a&&a[h.CommandKey]===h.FireEventCommand){var d=a[h.ParamsKey],k=d.EventId,j=d.TargetId,l=d.Data;if(this.m_sessionEventManager)for(var g=this.m_sessionEventManager.getHandlers(k,j),e=0;e<g.length;e++)g[e](l);return}if(a&&a.hasOwnProperty(h.RespondingId)){var i=a[h.RespondingId],f=this.m_callbackList[i];typeof f==="function"&&f(a[h.ParamsKey]);delete this.m_callbackList[i]}};c.prototype._sendMessageWithCallback=function(b,d,e,c){this.m_callbackList[b]=c;var a={};a[h.SendingId]=b;a[h.CommandKey]=d;a[h.ParamsKey]=e;this.m_chosenWindow.postMessage(JSON.stringify(a),this.m_chosenOrigin)};c.prototype._isValidDescendant=function(f){var d=this.m_options.container||document.body;function b(a){if(a===f)return true;for(var c=0,d=a.frames.length;c<d;c++)if(b(a.frames[c]))return true;return false}for(var c=d.getElementsByTagName("iframe"),a=0,e=c.length;a<e;a++)if(b(c[a].contentWindow))return true;return false};c.prototype._setupContext=function(a){if(!(this.m_appContext=a))return};return c}(s);c.EmbeddedSession=db;var V=function(){function b(a){this.m_session=a}b.prototype.executeAsync=function(f,e,d){var g=this,c=k.buildMessageArrayForIRequestExecutor(f,e,d,b.SourceLibHeaderValue);return a.createPromise(function(d,e){g.m_session._invoke(h.ExecuteMethodCommand,function(e,b){a.log("Response:");a.log(JSON.stringify(b));var c;if(e==0)c=k.buildResponseOnSuccess(k.getResponseBodyFromSafeArray(b.Data),k.getResponseHeadersFromSafeArray(b.Data));else c=k.buildResponseOnError(b.error.Code,b.error.Message);d(c)},b._transformMessageArrayIntoParams(c))})};b._transformMessageArrayIntoParams=function(a){return{ArrayData:a,DdaMethod:{DispatchId:b.DispidExecuteRichApiRequestMethod}}};b.DispidExecuteRichApiRequestMethod=93;b.SourceLibHeaderValue="Embedded";return b}()})(OfficeExtension||(OfficeExtension={}));var __extends=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(c,a){for(var b in a)if(a.hasOwnProperty(b))c[b]=a[b]};return function(c,b){a(c,b);function d(){this.constructor=c}c.prototype=b===null?Object.create(b):(d.prototype=b.prototype,new d)}}(),OfficeCore;(function(b){var x="OfficeCore",r="AgaveVisualApi",o=OfficeExtension.BatchApiHelper.createPropertyObject,q=OfficeExtension.BatchApiHelper.createMethodObject,p=OfficeExtension.BatchApiHelper.createIndexerObject,k=OfficeExtension.BatchApiHelper.createRootServiceObject,c=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,m=OfficeExtension.BatchApiHelper.createChildItemObject,a=OfficeExtension.BatchApiHelper.invokeMethod,n=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,s=OfficeExtension.BatchApiHelper.invokeSetProperty,g=OfficeExtension.Utility.isNullOrUndefined,v=OfficeExtension.Utility.isUndefined,u=OfficeExtension.Utility.throwIfNotLoaded,l=OfficeExtension.Utility.throwIfApiNotSupported,z=OfficeExtension.Utility.load,y=OfficeExtension.Utility.retrieve,h=OfficeExtension.Utility.toJson,d=OfficeExtension.Utility.fixObjectPathIfNecessary,j=OfficeExtension.Utility._handleNavigationPropertyResults,t=OfficeExtension.Utility.adjustToDateTime,e=OfficeExtension.Utility.processRetrieveResult,w="BiShim",i=function(i){__extends(f,i);function f(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(f.prototype,"_className",{"get":function(){return"BiShim"},enumerable:true,configurable:true});f.prototype.initialize=function(b){a(this,"Initialize",0,[b],0,0)};f.prototype.getData=function(){return a(this,"getData",1,[],4,0)};f.prototype.setVisualObjects=function(b){a(this,"setVisualObjects",0,[b],2,0)};f.prototype.setVisualObjectsToPersist=function(b){a(this,"setVisualObjectsToPersist",0,[b],2,0)};f.prototype._handleResult=function(a){i.prototype._handleResult.call(this,a);if(g(a))return;var b=a;d(this,b)};f.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);e(this,b,a)};f.newObject=function(a){return c(b.BiShim,a,"Microsoft.AgaveVisual.BiShim",false,4)};f.prototype.toJSON=function(){return h(this,{},{})};return f}(OfficeExtension.ClientObject);b.BiShim=i;var f;(function(a){a.generalException="GeneralException"})(f=b.AgaveVisualErrorCodes||(b.AgaveVisualErrorCodes={}))})(OfficeCore||(OfficeCore={}));var OfficeCore;(function(a){var C="OfficeCore",z="ExperimentApi",w=OfficeExtension.BatchApiHelper.createPropertyObject,e=OfficeExtension.BatchApiHelper.createMethodObject,y=OfficeExtension.BatchApiHelper.createIndexerObject,t=OfficeExtension.BatchApiHelper.createRootServiceObject,h=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,v=OfficeExtension.BatchApiHelper.createChildItemObject,b=OfficeExtension.BatchApiHelper.invokeMethod,i=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,A=OfficeExtension.BatchApiHelper.invokeSetProperty,f=OfficeExtension.Utility.isNullOrUndefined,m=OfficeExtension.Utility.isUndefined,k=OfficeExtension.Utility.throwIfNotLoaded,u=OfficeExtension.Utility.throwIfApiNotSupported,r=OfficeExtension.Utility.load,p=OfficeExtension.Utility.retrieve,g=OfficeExtension.Utility.toJson,c=OfficeExtension.Utility.fixObjectPathIfNecessary,s=OfficeExtension.Utility._handleNavigationPropertyResults,B=OfficeExtension.Utility.adjustToDateTime,d=OfficeExtension.Utility.processRetrieveResult,x="FlightingService",l=function(j){__extends(i,j);function i(){return j!==null&&j.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"FlightingService"},enumerable:true,configurable:true});i.prototype.getClientSessionId=function(){return b(this,"GetClientSessionId",1,[],4,0)};i.prototype.getDeferredFlights=function(){return b(this,"GetDeferredFlights",1,[],4,0)};i.prototype.getFeature=function(d,f,c,b){return e(a.ABType,this,"GetFeature",1,[d,f,c,b],false,false,null,4)};i.prototype.getFeatureGate=function(b,c){return e(a.ABType,this,"GetFeatureGate",1,[b,c],false,false,null,4)};i.prototype.resetOverride=function(a){b(this,"ResetOverride",0,[a],0,0)};i.prototype.setOverride=function(a,d,c){b(this,"SetOverride",0,[a,d,c],0,0)};i.prototype._handleResult=function(a){j.prototype._handleResult.call(this,a);if(f(a))return;var b=a;c(this,b)};i.prototype._handleRetrieveResult=function(b,a){j.prototype._handleRetrieveResult.call(this,b,a);d(this,b,a)};i.newObject=function(b){return h(a.FlightingService,b,"Microsoft.Experiment.FlightingService",false,4)};i.prototype.toJSON=function(){return g(this,{},{})};return i}(OfficeExtension.ClientObject);a.FlightingService=l;var o="ABType",q=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ABType"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["value"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"value",{"get":function(){k("value",this._V,o,this._isNull);return this._V},enumerable:true,configurable:true});a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(f(a))return;var d=a;c(this,d);if(!m(d.Value))this._V=d.Value};a.prototype.load=function(a){return r(this,a)};a.prototype.retrieve=function(a){return p(this,a)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);d(this,c,a)};a.prototype.toJSON=function(){return g(this,{value:this._V},{})};a.prototype.ensureUnchanged=function(a){i(this,a);return};return a}(OfficeExtension.ClientObject);a.ABType=q;var n;(function(a){a["boolean"]="Boolean";a.integer="Integer";a.string="String"})(n=a.FeatureType||(a.FeatureType={}));var j;(function(a){a.generalException="GeneralException"})(j=a.ExperimentErrorCodes||(a.ExperimentErrorCodes={}))})(OfficeCore||(OfficeCore={}));var OfficeCore;(function(a){a.OfficeOnlineDomainList=["*.dod.online.office365.us","*.gov.online.office365.us","*.officeapps-df.live.com","*.officeapps.live.com","*.online.office.de","*.partner.officewebapps.cn"];function b(){if(typeof window.external==="undefined"||typeof window.external.GetContext==="undefined"){var d=OSF.getClientEndPoint()._targetUrl,b=c(d);if(d.indexOf("https:")!=0)return false;a.OfficeOnlineDomainList.forEach(function(a){if(a.indexOf("*.")==0)a=a.substring(2);if(b.indexOf(a)==b.length-a.length)return true});return false}return true}a.isHostOriginTrusted=b;function c(b){var a="";a=b.split("/")[2];a=a.split(":")[0];a=a.split("?")[0];return a}})(OfficeCore||(OfficeCore={}));var OfficeCore;(function(a){var b=function(){function b(a){this.context=a}Object.defineProperty(b.prototype,"roamingSettings",{"get":function(){if(!this.m_roamingSettings)this.m_roamingSettings=a.AuthenticationService.newObject(this.context).roamingSettings;return this.m_roamingSettings},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"tap",{"get":function(){if(!this.m_tap)this.m_tap=a.Tap.newObject(this.context);return this.m_tap},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"skill",{"get":function(){if(!this.m_skill)this.m_skill=a.Skill.newObject(this.context);return this.m_skill},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"personaFactory",{"get":function(){if(!this.m_personaFactory)this.m_personaFactory=a.PersonaFactory.newObject(this.context);return this.m_personaFactory},enumerable:true,configurable:true});return b}();a.FirstPartyApis=b;var c=function(d){__extends(c,d);function c(a){return d.call(this,a)||this}Object.defineProperty(c.prototype,"firstParty",{"get":function(){if(!this.m_firstPartyApis)this.m_firstPartyApis=new b(this);return this.m_firstPartyApis},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"flighting",{"get":function(){return this.flightingService},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"telemetry",{"get":function(){if(!this.m_telemetry)this.m_telemetry=a.TelemetryService.newObject(this);return this.m_telemetry},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"bi",{"get":function(){if(!this.m_biShim)this.m_biShim=a.BiShim.newObject(this);return this.m_biShim},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"flightingService",{"get":function(){if(!this.m_flightingService)this.m_flightingService=a.FlightingService.newObject(this);return this.m_flightingService},enumerable:true,configurable:true});return c}(OfficeExtension.ClientRequestContext);a.RequestContext=c;function d(b,c){return OfficeExtension.ClientRequestContext._runBatch("OfficeCore.run",arguments,function(b){return new a.RequestContext(b)})}a.run=d})(OfficeCore||(OfficeCore={}));var OfficeCore;(function(b){var x="Office",r="OfficeSharedApi",o=OfficeExtension.BatchApiHelper.createPropertyObject,q=OfficeExtension.BatchApiHelper.createMethodObject,p=OfficeExtension.BatchApiHelper.createIndexerObject,k=OfficeExtension.BatchApiHelper.createRootServiceObject,c=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,m=OfficeExtension.BatchApiHelper.createChildItemObject,a=OfficeExtension.BatchApiHelper.invokeMethod,n=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,s=OfficeExtension.BatchApiHelper.invokeSetProperty,f=OfficeExtension.Utility.isNullOrUndefined,v=OfficeExtension.Utility.isUndefined,u=OfficeExtension.Utility.throwIfNotLoaded,l=OfficeExtension.Utility.throwIfApiNotSupported,z=OfficeExtension.Utility.load,y=OfficeExtension.Utility.retrieve,h=OfficeExtension.Utility.toJson,d=OfficeExtension.Utility.fixObjectPathIfNecessary,j=OfficeExtension.Utility._handleNavigationPropertyResults,t=OfficeExtension.Utility.adjustToDateTime,e=OfficeExtension.Utility.processRetrieveResult,w="Skill",i=function(i){__extends(g,i);function g(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(g.prototype,"_className",{"get":function(){return"Skill"},enumerable:true,configurable:true});g.prototype.executeAction=function(d,c,b){return a(this,"ExecuteAction",1,[d,c,b],4|1,0)};g.prototype.notifyPaneEvent=function(c,b){a(this,"NotifyPaneEvent",1,[c,b],4|1,0)};g.prototype.registerHostSkillEvent=function(){a(this,"RegisterHostSkillEvent",0,[],1,0)};g.prototype.testFireEvent=function(){a(this,"TestFireEvent",0,[],1,0)};g.prototype.unregisterHostSkillEvent=function(){a(this,"UnregisterHostSkillEvent",0,[],1,0)};g.prototype._handleResult=function(a){i.prototype._handleResult.call(this,a);if(f(a))return;var b=a;d(this,b)};g.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);e(this,b,a)};g.newObject=function(a){return c(b.Skill,a,"Microsoft.SkillApi.Skill",false,4)};Object.defineProperty(g.prototype,"onHostSkillEvent",{"get":function(){var a=this;if(!this.m_hostSkillEvent)this.m_hostSkillEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"HostSkillEvent",{eventType:65538,registerFunc:function(){return a.registerHostSkillEvent()},unregisterFunc:function(){return a.unregisterHostSkillEvent()},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(a){var b={type:a.type,data:a.data};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_hostSkillEvent},enumerable:true,configurable:true});g.prototype.toJSON=function(){return h(this,{},{})};return g}(OfficeExtension.ClientObject);b.Skill=i;var g;(function(a){a.generalException="GeneralException"})(g=b.SkillErrorCodes||(b.SkillErrorCodes={}))})(OfficeCore||(OfficeCore={}));var OfficeCore;(function(a){var y="OfficeCore",t="TelemetryApi",p=OfficeExtension.BatchApiHelper.createPropertyObject,s=OfficeExtension.BatchApiHelper.createMethodObject,r=OfficeExtension.BatchApiHelper.createIndexerObject,l=OfficeExtension.BatchApiHelper.createRootServiceObject,b=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=OfficeExtension.BatchApiHelper.createChildItemObject,i=OfficeExtension.BatchApiHelper.invokeMethod,o=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,u=OfficeExtension.BatchApiHelper.invokeSetProperty,f=OfficeExtension.Utility.isNullOrUndefined,x=OfficeExtension.Utility.isUndefined,w=OfficeExtension.Utility.throwIfNotLoaded,m=OfficeExtension.Utility.throwIfApiNotSupported,A=OfficeExtension.Utility.load,z=OfficeExtension.Utility.retrieve,j=OfficeExtension.Utility.toJson,c=OfficeExtension.Utility.fixObjectPathIfNecessary,k=OfficeExtension.Utility._handleNavigationPropertyResults,v=OfficeExtension.Utility.adjustToDateTime,d=OfficeExtension.Utility.processRetrieveResult,q="TelemetryService",g=function(g){__extends(e,g);function e(){return g!==null&&g.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"TelemetryService"},enumerable:true,configurable:true});e.prototype.sendTelemetryEvent=function(a,d,b,c,e){i(this,"SendTelemetryEvent",1,[a,d,b,c,e],4,0)};e.prototype._handleResult=function(a){g.prototype._handleResult.call(this,a);if(f(a))return;var b=a;c(this,b)};e.prototype._handleRetrieveResult=function(b,a){g.prototype._handleRetrieveResult.call(this,b,a);d(this,b,a)};e.newObject=function(c){return b(a.TelemetryService,c,"Microsoft.Telemetry.TelemetryService",false,4)};e.prototype.toJSON=function(){return j(this,{},{})};return e}(OfficeExtension.ClientObject);a.TelemetryService=g;var h;(function(a){a.unset="Unset";a.string="String";a["boolean"]="Boolean";a.int64="Int64";a["double"]="Double"})(h=a.DataFieldType||(a.DataFieldType={}));var e;(function(a){a.generalException="GeneralException"})(e=a.TelemetryErrorCodes||(a.TelemetryErrorCodes={}))})(OfficeCore||(OfficeCore={}));var OfficeFirstPartyAuth;(function(a){var l=function(){function a(){}a.GetAuthContextAsyncMissing="GetAuthContextAsyncMissing";a.CannotGetAuthContext="CannotGetAuthContext";a.PackageNotLoaded="PackageNotLoaded";return a}(),b="officeWebAuthReplyUrls",c=false,e;a.debugging=false;function f(d){if(OSF.WebAuth&&OSF._OfficeAppFactory.getHostInfo().hostPlatform=="web"){try{if(!Office||!Office.context||!Office.context.webAuth)throw new Error(Strings&&Strings.OfficeOM.L_ImplicitGetAuthContextMissing?Strings.OfficeOM.L_ImplicitGetAuthContextMissing:l.GetAuthContextAsyncMissing);Office.context.webAuth.getAuthContextAsync(function(h){if(h.status==="succeeded"){c=true;var f=h.value;if(!f||f.isAnonymous)return false;OSF.WebAuth.config={idp:f.authorityType.toLowerCase(),aadConfig:{authority:a.authorityOverride&&a.debugging?a.authorityOverride:f.authority,appId:f.appId,redirectUri:d?d:null,upn:f.upn},msaConfig:{authority:a.authorityOverride&&a.debugging?a.authorityOverride:f.authority,appId:f.msaAppId?f.msaAppId:f.appId,redirectUri:d?d:null,upn:f.upn},enableConsoleLogging:a.debugging,telemetry:{HashedUserId:f.userId}};OSF.WebAuth.load(function(a){k(a);return a});var i=d?d:window.location.href.split("?")[0],g=sessionStorage.getItem(b);if(g||g==="")g=i;else g+=", "+i;sessionStorage.setItem(b,g)}else{c=false;OSF.WebAuth.config=null;e=JSON.stringify(h)}})}catch(f){c=false;OSF.WebAuth.config=null;e=f}OSF.WebAuth.load(function(a){return a})}return true}a.load=f;function i(c,a){if(OSF.WebAuth&&OSF.WebAuth.loaded&&OSF._OfficeAppFactory.getHostInfo().hostPlatform=="web")return new OfficeExtension.CoreUtility.Promise(function(e,f){a&&a.forceRefresh&&OSF.WebAuth.clearCache();var b=OSF.WebAuth.config.idp.toLowerCase()=="msa"?OfficeCore.IdentityType.microsoftAccount:OfficeCore.IdentityType.organizationAccount;OSF.WebAuth.getToken(c.resource,a&&a.popup?a.popup:null).then(function(f){d(true,c.resource,a&&a.popup?a.popup:null);e({accessToken:f.Token,tokenIdenityType:b})})["catch"](function(b){d(false,c.resource,a&&a.popup?a.popup:null,b.ErrorCode);f({code:b.ErrorCode,message:b.ErrorMessage})})});var b=new OfficeCore.RequestContext,e=OfficeCore.AuthenticationService.newObject(b);b._customData="WacPartition";if(OSF._OfficeAppFactory.getHostInfo().hostPlatform=="web"&&OSF._OfficeAppFactory.getHostInfo().hostType=="word"){var f=e.getAccessToken(c,null);return b.sync().then(function(){return f.value})}else return new OfficeExtension.CoreUtility.Promise(function(d,a){var f=e.onTokenReceived.add(function(c){if(!OfficeExtension.CoreUtility.isNullOrUndefined(c)){f.remove();b.sync()["catch"](function(){});if(c.code==0)d(c.tokenValue);else if(OfficeExtension.CoreUtility.isNullOrUndefined(c.errorInfo))a({code:c.code});else try{a(JSON.parse(c.errorInfo))}catch(e){a({code:c.code,message:c.errorInfo})}}return null});b.sync().then(function(){var a=e.getAccessToken(c,e._targetId);return b.sync().then(function(){if(OfficeExtension.CoreUtility.isNullOrUndefined(a.value))return null;var b=a.value.accessToken;!OfficeExtension.CoreUtility.isNullOrUndefined(b)&&d(a.value)})})["catch"](function(b){a(b)})})}a.getAccessToken=i;function h(){var a=new OfficeCore.RequestContext,c=OfficeCore.AuthenticationService.newObject(a);a._customData="WacPartition";var b=c.getPrimaryIdentityInfo();return a.sync().then(function(){return b.value})}a.getPrimaryIdentityInfo=h;function j(){var a=new OfficeCore.RequestContext,b=OfficeCore.AuthenticationService.newObject(a),c=b.getIdentities();return a.sync().then(function(){return c.value})}a.getIdentities=j;function k(b){a.debugging&&console.log("Logging Implicit load event");if(typeof OTel!=="undefined")OTel.OTelLogger.onTelemetryLoaded(function(){var a=[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.idp.toLowerCase()=="msa"?OSF.WebAuth.config.msaConfig.appId:OSF.WebAuth.config.aadConfig.appId),oteljs.makeBooleanDataField("Js",typeof Implicit!=="undefined"?true:false),oteljs.makeBooleanDataField("Result",b)];if(OSF.WebAuth.config.telemetry)for(var c in OSF.WebAuth.config.telemetry)a.push(oteljs.makeStringDataField(c,OSF.WebAuth.config.telemetry[c]));OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.Load",dataFields:a,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}function d(d,e,b,c){a.debugging&&console.log("Logging Implicit acquire event");if(typeof OTel!=="undefined")OTel.OTelLogger.onTelemetryLoaded(function(){var a=[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.idp.toLowerCase()=="msa"?OSF.WebAuth.config.msaConfig.appId:OSF.WebAuth.config.aadConfig.appId),oteljs.makeStringDataField("Target",e),oteljs.makeBooleanDataField("Popup",typeof b==="boolean"?b:false),oteljs.makeBooleanDataField("Result",d),oteljs.makeStringDataField("Error",c)];if(OSF.WebAuth.config.telemetry)for(var f in OSF.WebAuth.config.telemetry)a.push(oteljs.makeStringDataField(f,OSF.WebAuth.config.telemetry[f]));OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.GetAccessToken",dataFields:a,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}function g(){var a=sessionStorage.getItem(b);a!==null&&a.indexOf(window.location.origin+window.location.pathname)!==-1&&f()}window.OSF&&g()})(OfficeFirstPartyAuth||(OfficeFirstPartyAuth={}));var OfficeCore;(function(c){var A="Office",sb="OfficeSharedApi",m=OfficeExtension.BatchApiHelper.createPropertyObject,q=OfficeExtension.BatchApiHelper.createMethodObject,M=OfficeExtension.BatchApiHelper.createIndexerObject,ob=OfficeExtension.BatchApiHelper.createRootServiceObject,v=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,B=OfficeExtension.BatchApiHelper.createChildItemObject,d=OfficeExtension.BatchApiHelper.invokeMethod,p=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,y=OfficeExtension.BatchApiHelper.invokeSetProperty,e=OfficeExtension.Utility.isNullOrUndefined,a=OfficeExtension.Utility.isUndefined,b=OfficeExtension.Utility.throwIfNotLoaded,w=OfficeExtension.Utility.throwIfApiNotSupported,o=OfficeExtension.Utility.load,n=OfficeExtension.Utility.retrieve,j=OfficeExtension.Utility.toJson,g=OfficeExtension.Utility.fixObjectPathIfNecessary,t=OfficeExtension.Utility._handleNavigationPropertyResults,r=OfficeExtension.Utility.adjustToDateTime,h=OfficeExtension.Utility.processRetrieveResult,ab;(function(a){a.organizationAccount="OrganizationAccount";a.microsoftAccount="MicrosoftAccount";a.unsupported="Unsupported"})(ab=c.IdentityType||(c.IdentityType={}));var nb="AuthenticationService",K=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"AuthenticationService"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_navigationPropertyNames",{"get":function(){return["roamingSettings"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_targetId",{"get":function(){if(this.m_targetId==undefined)if(typeof OSF!=="undefined"&&OSF.OUtil)this.m_targetId=OSF.OUtil.Guid.generateNewGuid();else this.m_targetId=""+this.context._nextId();return this.m_targetId},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"roamingSettings",{"get":function(){if(!this._R)this._R=m(c.RoamingSettingCollection,this,"RoamingSettings",false,4);return this._R},enumerable:true,configurable:true});a.prototype.getAccessToken=function(a,b){return d(this,"GetAccessToken",1,[a,b],4|1,0)};a.prototype.getIdentities=function(){w("AuthenticationService.getIdentities","FirstPartyAuthentication","1.3",A);return d(this,"GetIdentities",1,[],4|1,0)};a.prototype.getPrimaryIdentityInfo=function(){w("AuthenticationService.getPrimaryIdentityInfo","FirstPartyAuthentication","1.2",A);return d(this,"GetPrimaryIdentityInfo",1,[],4|1,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(e(a))return;var c=a;g(this,c);t(this,c,["roamingSettings","RoamingSettings"])};a.prototype.load=function(a){return o(this,a)};a.prototype.retrieve=function(a){return n(this,a)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);h(this,c,a)};a.newObject=function(a){return v(c.AuthenticationService,a,"Microsoft.Authentication.AuthenticationService",false,4)};Object.defineProperty(a.prototype,"onTokenReceived",{"get":function(){var a=this;w("AuthenticationService.onTokenReceived","FirstPartyAuthentication","1.2",A);if(!this.m_tokenReceived)this.m_tokenReceived=new OfficeExtension.GenericEventHandlers(this.context,this,"TokenReceived",{eventType:3001,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return a._targetId},eventArgsTransformFunc:function(a){var b={tokenValue:a.tokenValue,code:a.code,errorInfo:a.errorInfo};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_tokenReceived},enumerable:true,configurable:true});a.prototype.toJSON=function(){return j(this,{},{})};return a}(OfficeExtension.ClientObject);c.AuthenticationService=K;var D="RoamingSetting",Z=function(d){__extends(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"RoamingSetting"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyNames",{"get":function(){return["id","value"]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"id",{"get":function(){b("id",this._I,D,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"value",{"get":function(){b("value",this._V,D,this._isNull);return this._V},"set":function(a){this._V=a;y(this,"Value",a,0)},enumerable:true,configurable:true});c.prototype.set=function(a,b){this._recursivelySet(a,b,["value"],[],[])};c.prototype.update=function(a){this._recursivelyUpdate(a)};c.prototype._handleResult=function(c){d.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.Id))this._I=b.Id;if(!a(b.Value))this._V=b.Value};c.prototype.load=function(a){return o(this,a)};c.prototype.retrieve=function(a){return n(this,a)};c.prototype._handleIdResult=function(b){d.prototype._handleIdResult.call(this,b);if(e(b))return;if(!a(b.Id))this._I=b.Id};c.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};c.prototype.toJSON=function(){return j(this,{id:this._I,value:this._V},{})};c.prototype.ensureUnchanged=function(a){p(this,a);return};return c}(OfficeExtension.ClientObject);c.RoamingSetting=Z;var mb="RoamingSettingCollection",H=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"RoamingSettingCollection"},enumerable:true,configurable:true});a.prototype.getItem=function(a){return q(c.RoamingSetting,this,"GetItem",1,[a],false,false,null,4)};a.prototype.getItemOrNullObject=function(a){return q(c.RoamingSetting,this,"GetItemOrNullObject",1,[a],false,false,null,4)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(e(a))return;var c=a;g(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);h(this,c,a)};a.prototype.toJSON=function(){return j(this,{},{})};return a}(OfficeExtension.ClientObject);c.RoamingSettingCollection=H;var s="Comment",jb=function(i){__extends(f,i);function f(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(f.prototype,"_className",{"get":function(){return"Comment"},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"_scalarPropertyNames",{"get":function(){return["id","text","created","level","resolved","author","mentions"]},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,false,false,true,false,false]},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"_navigationPropertyNames",{"get":function(){return["parent","parentOrNullObject","replies"]},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"parent",{"get":function(){if(!this._P)this._P=m(c.Comment,this,"Parent",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"parentOrNullObject",{"get":function(){if(!this._Pa)this._Pa=m(c.Comment,this,"ParentOrNullObject",false,4);return this._Pa},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"replies",{"get":function(){if(!this._R)this._R=m(c.CommentCollection,this,"Replies",true,4);return this._R},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"author",{"get":function(){b("author",this._A,s,this._isNull);return this._A},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"created",{"get":function(){b("created",this._C,s,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"id",{"get":function(){b("id",this._I,s,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"level",{"get":function(){b("level",this._L,s,this._isNull);return this._L},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"mentions",{"get":function(){b("mentions",this._M,s,this._isNull);return this._M},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"resolved",{"get":function(){b("resolved",this._Re,s,this._isNull);return this._Re},"set":function(a){this._Re=a;y(this,"Resolved",a,0)},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"text",{"get":function(){b("text",this._T,s,this._isNull);return this._T},"set":function(a){this._T=a;y(this,"Text",a,0)},enumerable:true,configurable:true});f.prototype.set=function(a,b){this._recursivelySet(a,b,["text","resolved"],[],["parent","parentOrNullObject","replies"])};f.prototype.update=function(a){this._recursivelyUpdate(a)};f.prototype["delete"]=function(){d(this,"Delete",0,[],0,0)};f.prototype.getParentOrSelf=function(){return q(c.Comment,this,"GetParentOrSelf",1,[],false,false,null,4)};f.prototype.getRichText=function(a){return d(this,"GetRichText",1,[a],4,0)};f.prototype.reply=function(b,a){return q(c.Comment,this,"Reply",0,[b,a],false,false,null,0)};f.prototype.setRichText=function(b,a){return d(this,"SetRichText",0,[b,a],0,0)};f.prototype._handleResult=function(c){i.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.Author))this._A=b.Author;if(!a(b.Created))this._C=r(b.Created);if(!a(b.Id))this._I=b.Id;if(!a(b.Level))this._L=b.Level;if(!a(b.Mentions))this._M=b.Mentions;if(!a(b.Resolved))this._Re=b.Resolved;if(!a(b.Text))this._T=b.Text;t(this,b,["parent","Parent","parentOrNullObject","ParentOrNullObject","replies","Replies"])};f.prototype.load=function(a){return o(this,a)};f.prototype.retrieve=function(a){return n(this,a)};f.prototype._handleIdResult=function(b){i.prototype._handleIdResult.call(this,b);if(e(b))return;if(!a(b.Id))this._I=b.Id};f.prototype._handleRetrieveResult=function(b,d){i.prototype._handleRetrieveResult.call(this,b,d);if(e(b))return;var c=b;if(!a(c.Created))c.created=r(c.created);h(this,b,d)};f.prototype.toJSON=function(){return j(this,{author:this._A,created:this._C,id:this._I,level:this._L,mentions:this._M,resolved:this._Re,text:this._T},{replies:this._R})};f.prototype.ensureUnchanged=function(a){p(this,a);return};return f}(OfficeExtension.ClientObject);c.Comment=jb;var J="CommentCollection",P=function(f){__extends(a,f);function a(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"CommentCollection"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"items",{"get":function(){b("items",this.m__items,J,this._isNull);return this.m__items},enumerable:true,configurable:true});a.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)};a.prototype.getItem=function(a){return M(c.Comment,this,[a])};a.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(e(b))return;var h=b;g(this,h);if(!e(h[OfficeExtension.Constants.items])){this.m__items=[];for(var d=h[OfficeExtension.Constants.items],a=0;a<d.length;a++){var i=B(c.Comment,true,this,d[a],a);i._handleResult(d[a]);this.m__items.push(i)}}};a.prototype.load=function(a){return o(this,a)};a.prototype.retrieve=function(a){return n(this,a)};a.prototype._handleRetrieveResult=function(b,a){var d=this;f.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a,function(a,b){return B(c.Comment,true,d,a,b)})};a.prototype.toJSON=function(){return j(this,{},{},this.m__items)};return a}(OfficeExtension.ClientObject);c.CommentCollection=P;var Q;(function(a){a.plain="Plain";a.markdown="Markdown";a.delta="Delta"})(Q=c.CommentTextFormat||(c.CommentTextFormat={}));var E;(function(a){a.notSet="NotSet";a.free="Free";a.idle="Idle";a.busy="Busy";a.idleBusy="IdleBusy";a.doNotDisturb="DoNotDisturb";a.unalertable="Unalertable";a.unavailable="Unavailable"})(E=c.UnifiedCommunicationAvailability||(c.UnifiedCommunicationAvailability={}));var G;(function(a){a.online="Online";a.notOnline="NotOnline";a.away="Away";a.busy="Busy";a.beRightBack="BeRightBack";a.onThePhone="OnThePhone";a.outToLunch="OutToLunch";a.inAMeeting="InAMeeting";a.outOfOffice="OutOfOffice";a.doNotDisturb="DoNotDisturb";a.inAConference="InAConference";a.getting="Getting";a.notABuddy="NotABuddy";a.disconnected="Disconnected";a.notInstalled="NotInstalled";a.urgentInterruptionsOnly="UrgentInterruptionsOnly";a.mayBeAvailable="MayBeAvailable";a.idle="Idle";a.inPresentation="InPresentation"})(G=c.UnifiedCommunicationStatus||(c.UnifiedCommunicationStatus={}));var db;(function(a){a.unknown="Unknown";a.enterprise="Enterprise";a.contact="Contact";a.bot="Bot";a.phoneOnly="PhoneOnly";a.oneOff="OneOff";a.distributionList="DistributionList";a.personalDistributionList="PersonalDistributionList";a.anonymous="Anonymous";a.unifiedGroup="UnifiedGroup"})(db=c.PersonaType||(c.PersonaType={}));var ib;(function(a){a.workPhone="WorkPhone";a.homePhone="HomePhone";a.mobilePhone="MobilePhone";a.businessFax="BusinessFax";a.otherPhone="OtherPhone"})(ib=c.PhoneType||(c.PhoneType={}));var bb;(function(a){a.workAddress="WorkAddress";a.homeAddress="HomeAddress";a.otherAddress="OtherAddress"})(bb=c.AddressType||(c.AddressType={}));var C="PersonaSummary",Y=function(d){__extends(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PersonaSummary"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyNames",{"get":function(){return["displayName","status"]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"displayName",{"get":function(){b("displayName",this._D,C,this._isNull);return this._D},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"status",{"get":function(){b("status",this._S,C,this._isNull);return this._S},enumerable:true,configurable:true});c.prototype._handleResult=function(c){d.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.DisplayName))this._D=b.DisplayName;if(!a(b.Status))this._S=b.Status};c.prototype.load=function(a){return o(this,a)};c.prototype.retrieve=function(a){return n(this,a)};c.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};c.prototype.toJSON=function(){return j(this,{displayName:this._D,status:this._S},{})};c.prototype.ensureUnchanged=function(a){p(this,a);return};return c}(OfficeExtension.ClientObject);c.PersonaSummary=Y;var gb;(function(a){a.unknown="Unknown";a.individual="Individual";a.group="Group"})(gb=c.MemberType||(c.MemberType={}));var O;(function(a){a.hostId="HostId";a.type="Type";a.summary="Summary";a.photo="Photo";a.personaInfo="PersonaInfo";a.unifiedCommunicationInfo="UnifiedCommunicationInfo";a.organization="Organization";a.unifiedGroupInfo="UnifiedGroupInfo";a.members="Members";a.membership="Membership";a.capabilites="Capabilites";a.customizations="Customizations"})(O=c.PersonaDataUpdated||(c.PersonaDataUpdated={}));var qb="PersonaActions",W=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"PersonaActions"},enumerable:true,configurable:true});a.prototype.addContact=function(a){d(this,"AddContact",0,[a],0,0)};a.prototype.callPhoneNumber=function(b,a){d(this,"CallPhoneNumber",0,[b,a],0,0)};a.prototype.composeEmail=function(a,b){d(this,"ComposeEmail",0,[a,b],0,0)};a.prototype.composeInstantMessage=function(a,b){d(this,"ComposeInstantMessage",0,[a,b],0,0)};a.prototype.editContact=function(a){d(this,"EditContact",0,[a],0,0)};a.prototype.openLinkContactUx=function(a){d(this,"OpenLinkContactUx",0,[a],0,0)};a.prototype.pinPersonaToQuickContacts=function(a){d(this,"PinPersonaToQuickContacts",0,[a],0,0)};a.prototype.scheduleMeeting=function(a){d(this,"ScheduleMeeting",0,[a],0,0)};a.prototype.toggleTagForAlerts=function(a){d(this,"ToggleTagForAlerts",0,[a],0,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(e(a))return;var c=a;g(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);h(this,c,a)};a.prototype.toJSON=function(){return j(this,{},{})};return a}(OfficeExtension.ClientObject);c.PersonaActions=W;var i="PersonaInfoSource",R=function(d){__extends(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PersonaInfoSource"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyNames",{"get":function(){return["displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","phones","addresses","webSites","notes"]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"addresses",{"get":function(){b("addresses",this._A,i,this._isNull);return this._A},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"birthday",{"get":function(){b("birthday",this._B,i,this._isNull);return this._B},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"birthdays",{"get":function(){b("birthdays",this._Bi,i,this._isNull);return this._Bi},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"companyName",{"get":function(){b("companyName",this._C,i,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"displayName",{"get":function(){b("displayName",this._D,i,this._isNull);return this._D},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"email",{"get":function(){b("email",this._E,i,this._isNull);return this._E},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"emailAddresses",{"get":function(){b("emailAddresses",this._Em,i,this._isNull);return this._Em},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"jobInfoDepartment",{"get":function(){b("jobInfoDepartment",this._J,i,this._isNull);return this._J},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"linkedCompanyNames",{"get":function(){b("linkedCompanyNames",this._L,i,this._isNull);return this._L},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"linkedDepartments",{"get":function(){b("linkedDepartments",this._Li,i,this._isNull);return this._Li},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"linkedOffices",{"get":function(){b("linkedOffices",this._Lin,i,this._isNull);return this._Lin},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"linkedTitles",{"get":function(){b("linkedTitles",this._Link,i,this._isNull);return this._Link},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"notes",{"get":function(){b("notes",this._N,i,this._isNull);return this._N},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"office",{"get":function(){b("office",this._O,i,this._isNull);return this._O},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"phones",{"get":function(){b("phones",this._P,i,this._isNull);return this._P},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"sipAddresses",{"get":function(){b("sipAddresses",this._S,i,this._isNull);return this._S},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"title",{"get":function(){b("title",this._T,i,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"webSites",{"get":function(){b("webSites",this._W,i,this._isNull);return this._W},enumerable:true,configurable:true});c.prototype._handleResult=function(c){d.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.Addresses))this._A=b.Addresses;if(!a(b.Birthday))this._B=b.Birthday;if(!a(b.Birthdays))this._Bi=b.Birthdays;if(!a(b.CompanyName))this._C=b.CompanyName;if(!a(b.DisplayName))this._D=b.DisplayName;if(!a(b.Email))this._E=b.Email;if(!a(b.EmailAddresses))this._Em=b.EmailAddresses;if(!a(b.JobInfoDepartment))this._J=b.JobInfoDepartment;if(!a(b.LinkedCompanyNames))this._L=b.LinkedCompanyNames;if(!a(b.LinkedDepartments))this._Li=b.LinkedDepartments;if(!a(b.LinkedOffices))this._Lin=b.LinkedOffices;if(!a(b.LinkedTitles))this._Link=b.LinkedTitles;if(!a(b.Notes))this._N=b.Notes;if(!a(b.Office))this._O=b.Office;if(!a(b.Phones))this._P=b.Phones;if(!a(b.SipAddresses))this._S=b.SipAddresses;if(!a(b.Title))this._T=b.Title;if(!a(b.WebSites))this._W=b.WebSites};c.prototype.load=function(a){return o(this,a)};c.prototype.retrieve=function(a){return n(this,a)};c.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};c.prototype.toJSON=function(){return j(this,{addresses:this._A,birthday:this._B,birthdays:this._Bi,companyName:this._C,displayName:this._D,email:this._E,emailAddresses:this._Em,jobInfoDepartment:this._J,linkedCompanyNames:this._L,linkedDepartments:this._Li,linkedOffices:this._Lin,linkedTitles:this._Link,notes:this._N,office:this._O,phones:this._P,sipAddresses:this._S,title:this._T,webSites:this._W},{})};c.prototype.ensureUnchanged=function(a){p(this,a);return};return c}(OfficeExtension.ClientObject);c.PersonaInfoSource=R;var k="PersonaInfo",cb=function(i){__extends(f,i);function f(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(f.prototype,"_className",{"get":function(){return"PersonaInfo"},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"_scalarPropertyNames",{"get":function(){return["displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","webSites","notes","isPersonResolved"]},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"_navigationPropertyNames",{"get":function(){return["sources"]},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"sources",{"get":function(){if(!this._So)this._So=m(c.PersonaInfoSource,this,"Sources",false,4);return this._So},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"birthday",{"get":function(){b("birthday",this._B,k,this._isNull);return this._B},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"birthdays",{"get":function(){b("birthdays",this._Bi,k,this._isNull);return this._Bi},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"companyName",{"get":function(){b("companyName",this._C,k,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"displayName",{"get":function(){b("displayName",this._D,k,this._isNull);return this._D},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"email",{"get":function(){b("email",this._E,k,this._isNull);return this._E},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"emailAddresses",{"get":function(){b("emailAddresses",this._Em,k,this._isNull);return this._Em},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"isPersonResolved",{"get":function(){b("isPersonResolved",this._I,k,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"jobInfoDepartment",{"get":function(){b("jobInfoDepartment",this._J,k,this._isNull);return this._J},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"linkedCompanyNames",{"get":function(){b("linkedCompanyNames",this._L,k,this._isNull);return this._L},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"linkedDepartments",{"get":function(){b("linkedDepartments",this._Li,k,this._isNull);return this._Li},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"linkedOffices",{"get":function(){b("linkedOffices",this._Lin,k,this._isNull);return this._Lin},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"linkedTitles",{"get":function(){b("linkedTitles",this._Link,k,this._isNull);return this._Link},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"notes",{"get":function(){b("notes",this._N,k,this._isNull);return this._N},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"office",{"get":function(){b("office",this._O,k,this._isNull);return this._O},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"sipAddresses",{"get":function(){b("sipAddresses",this._S,k,this._isNull);return this._S},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"title",{"get":function(){b("title",this._T,k,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"webSites",{"get":function(){b("webSites",this._W,k,this._isNull);return this._W},enumerable:true,configurable:true});f.prototype.getAddresses=function(){return d(this,"GetAddresses",1,[],4,0)};f.prototype.getPhones=function(){return d(this,"GetPhones",1,[],4,0)};f.prototype._handleResult=function(c){i.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.Birthday))this._B=r(b.Birthday);if(!a(b.Birthdays))this._Bi=r(b.Birthdays);if(!a(b.CompanyName))this._C=b.CompanyName;if(!a(b.DisplayName))this._D=b.DisplayName;if(!a(b.Email))this._E=b.Email;if(!a(b.EmailAddresses))this._Em=b.EmailAddresses;if(!a(b.IsPersonResolved))this._I=b.IsPersonResolved;if(!a(b.JobInfoDepartment))this._J=b.JobInfoDepartment;if(!a(b.LinkedCompanyNames))this._L=b.LinkedCompanyNames;if(!a(b.LinkedDepartments))this._Li=b.LinkedDepartments;if(!a(b.LinkedOffices))this._Lin=b.LinkedOffices;if(!a(b.LinkedTitles))this._Link=b.LinkedTitles;if(!a(b.Notes))this._N=b.Notes;if(!a(b.Office))this._O=b.Office;if(!a(b.SipAddresses))this._S=b.SipAddresses;if(!a(b.Title))this._T=b.Title;if(!a(b.WebSites))this._W=b.WebSites;t(this,b,["sources","Sources"])};f.prototype.load=function(a){return o(this,a)};f.prototype.retrieve=function(a){return n(this,a)};f.prototype._handleRetrieveResult=function(c,d){i.prototype._handleRetrieveResult.call(this,c,d);if(e(c))return;var b=c;if(!a(b.Birthday))b.birthday=r(b.birthday);if(!a(b.Birthdays))b.birthdays=r(b.birthdays);h(this,c,d)};f.prototype.toJSON=function(){return j(this,{birthday:this._B,birthdays:this._Bi,companyName:this._C,displayName:this._D,email:this._E,emailAddresses:this._Em,isPersonResolved:this._I,jobInfoDepartment:this._J,linkedCompanyNames:this._L,linkedDepartments:this._Li,linkedOffices:this._Lin,linkedTitles:this._Link,notes:this._N,office:this._O,sipAddresses:this._S,title:this._T,webSites:this._W},{sources:this._So})};f.prototype.ensureUnchanged=function(a){p(this,a);return};return f}(OfficeExtension.ClientObject);c.PersonaInfo=cb;var f="PersonaUnifiedCommunicationInfo",F=function(d){__extends(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PersonaUnifiedCommunicationInfo"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyNames",{"get":function(){return["availability","status","isSelf","isTagged","customStatusString","isBlocked","presenceTooltip","isOutOfOffice","outOfOfficeNote","timezone","meetingLocation","meetingSubject","timezoneBias","idleStartTime","overallCapability","isOnBuddyList","presenceNote","voiceMailUri"]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"availability",{"get":function(){b("availability",this._A,f,this._isNull);return this._A},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"customStatusString",{"get":function(){b("customStatusString",this._C,f,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"idleStartTime",{"get":function(){b("idleStartTime",this._I,f,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isBlocked",{"get":function(){b("isBlocked",this._Is,f,this._isNull);return this._Is},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isOnBuddyList",{"get":function(){b("isOnBuddyList",this._IsO,f,this._isNull);return this._IsO},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isOutOfOffice",{"get":function(){b("isOutOfOffice",this._IsOu,f,this._isNull);return this._IsOu},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isSelf",{"get":function(){b("isSelf",this._IsS,f,this._isNull);return this._IsS},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isTagged",{"get":function(){b("isTagged",this._IsT,f,this._isNull);return this._IsT},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"meetingLocation",{"get":function(){b("meetingLocation",this._M,f,this._isNull);return this._M},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"meetingSubject",{"get":function(){b("meetingSubject",this._Me,f,this._isNull);return this._Me},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"outOfOfficeNote",{"get":function(){b("outOfOfficeNote",this._O,f,this._isNull);return this._O},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"overallCapability",{"get":function(){b("overallCapability",this._Ov,f,this._isNull);return this._Ov},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"presenceNote",{"get":function(){b("presenceNote",this._P,f,this._isNull);return this._P},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"presenceTooltip",{"get":function(){b("presenceTooltip",this._Pr,f,this._isNull);return this._Pr},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"status",{"get":function(){b("status",this._S,f,this._isNull);return this._S},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"timezone",{"get":function(){b("timezone",this._T,f,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"timezoneBias",{"get":function(){b("timezoneBias",this._Ti,f,this._isNull);return this._Ti},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"voiceMailUri",{"get":function(){b("voiceMailUri",this._V,f,this._isNull);return this._V},enumerable:true,configurable:true});c.prototype._handleResult=function(c){d.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.Availability))this._A=b.Availability;if(!a(b.CustomStatusString))this._C=b.CustomStatusString;if(!a(b.IdleStartTime))this._I=r(b.IdleStartTime);if(!a(b.IsBlocked))this._Is=b.IsBlocked;if(!a(b.IsOnBuddyList))this._IsO=b.IsOnBuddyList;if(!a(b.IsOutOfOffice))this._IsOu=b.IsOutOfOffice;if(!a(b.IsSelf))this._IsS=b.IsSelf;if(!a(b.IsTagged))this._IsT=b.IsTagged;if(!a(b.MeetingLocation))this._M=b.MeetingLocation;if(!a(b.MeetingSubject))this._Me=b.MeetingSubject;if(!a(b.OutOfOfficeNote))this._O=b.OutOfOfficeNote;if(!a(b.OverallCapability))this._Ov=b.OverallCapability;if(!a(b.PresenceNote))this._P=b.PresenceNote;if(!a(b.PresenceTooltip))this._Pr=b.PresenceTooltip;if(!a(b.Status))this._S=b.Status;if(!a(b.Timezone))this._T=b.Timezone;if(!a(b.TimezoneBias))this._Ti=b.TimezoneBias;if(!a(b.VoiceMailUri))this._V=b.VoiceMailUri};c.prototype.load=function(a){return o(this,a)};c.prototype.retrieve=function(a){return n(this,a)};c.prototype._handleRetrieveResult=function(b,f){d.prototype._handleRetrieveResult.call(this,b,f);if(e(b))return;var c=b;if(!a(c.IdleStartTime))c.idleStartTime=r(c.idleStartTime);h(this,b,f)};c.prototype.toJSON=function(){return j(this,{availability:this._A,customStatusString:this._C,idleStartTime:this._I,isBlocked:this._Is,isOnBuddyList:this._IsO,isOutOfOffice:this._IsOu,isSelf:this._IsS,isTagged:this._IsT,meetingLocation:this._M,meetingSubject:this._Me,outOfOfficeNote:this._O,overallCapability:this._Ov,presenceNote:this._P,presenceTooltip:this._Pr,status:this._S,timezone:this._T,timezoneBias:this._Ti,voiceMailUri:this._V},{})};c.prototype.ensureUnchanged=function(a){p(this,a);return};return c}(OfficeExtension.ClientObject);c.PersonaUnifiedCommunicationInfo=F;var L="PersonaPhotoInfo",T=function(d){__extends(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PersonaPhotoInfo"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyNames",{"get":function(){return["url"]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"url",{"get":function(){b("url",this._U,L,this._isNull);return this._U},enumerable:true,configurable:true});c.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(e(b))return;var c=b;g(this,c);if(!a(c.Url))this._U=c.Url};c.prototype.load=function(a){return o(this,a)};c.prototype.retrieve=function(a){return n(this,a)};c.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};c.prototype.toJSON=function(){return j(this,{url:this._U},{})};c.prototype.ensureUnchanged=function(a){p(this,a);return};return c}(OfficeExtension.ClientObject);c.PersonaPhotoInfo=T;var x="PersonaCapabilites",N=function(d){__extends(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PersonaCapabilites"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyNames",{"get":function(){return["canAddContact","canEditContact","hasCustomizations"]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"canAddContact",{"get":function(){b("canAddContact",this._C,x,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"canEditContact",{"get":function(){b("canEditContact",this._Ca,x,this._isNull);return this._Ca},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"hasCustomizations",{"get":function(){b("hasCustomizations",this._H,x,this._isNull);return this._H},enumerable:true,configurable:true});c.prototype._handleResult=function(c){d.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.CanAddContact))this._C=b.CanAddContact;if(!a(b.CanEditContact))this._Ca=b.CanEditContact;if(!a(b.HasCustomizations))this._H=b.HasCustomizations};c.prototype.load=function(a){return o(this,a)};c.prototype.retrieve=function(a){return n(this,a)};c.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};c.prototype.toJSON=function(){return j(this,{canAddContact:this._C,canEditContact:this._Ca,hasCustomizations:this._H},{})};c.prototype.ensureUnchanged=function(a){p(this,a);return};return c}(OfficeExtension.ClientObject);c.PersonaCapabilites=N;var u="PersonaOrganizationInfo",I=function(f){__extends(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"PersonaOrganizationInfo"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["isLoaded","isLoading","hierarchyCount","directReportsCount"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["manager"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"manager",{"get":function(){if(!this._M)this._M=m(c.Persona,this,"Manager",false,4);return this._M},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"directReportsCount",{"get":function(){b("directReportsCount",this._D,u,this._isNull);return this._D},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"hierarchyCount",{"get":function(){b("hierarchyCount",this._H,u,this._isNull);return this._H},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"isLoaded",{"get":function(){b("isLoaded",this._I,u,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"isLoading",{"get":function(){b("isLoading",this._Is,u,this._isNull);return this._Is},enumerable:true,configurable:true});d.prototype.getDirectReportsItem=function(a){return q(c.Persona,this,"GetDirectReportsItem",0,[a],false,false,null,0)};d.prototype.getHierarchyItem=function(a){return q(c.Persona,this,"GetHierarchyItem",0,[a],false,false,null,0)};d.prototype._handleResult=function(c){f.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.DirectReportsCount))this._D=b.DirectReportsCount;if(!a(b.HierarchyCount))this._H=b.HierarchyCount;if(!a(b.IsLoaded))this._I=b.IsLoaded;if(!a(b.IsLoading))this._Is=b.IsLoading;t(this,b,["manager","Manager"])};d.prototype.load=function(a){return o(this,a)};d.prototype.retrieve=function(a){return n(this,a)};d.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};d.prototype.toJSON=function(){return j(this,{directReportsCount:this._D,hierarchyCount:this._H,isLoaded:this._I,isLoading:this._Is},{})};d.prototype.ensureUnchanged=function(a){p(this,a);return};return d}(OfficeExtension.ClientObject);c.PersonaOrganizationInfo=I;var V;(function(a){a.email="Email";a.workPhone="WorkPhone";a.workPhone2="WorkPhone2";a.workFax="WorkFax";a.mobilePhone="MobilePhone";a.homePhone="HomePhone";a.homePhone2="HomePhone2";a.otherPhone="OtherPhone";a.sipAddress="SipAddress";a.profile="Profile";a.office="Office";a.company="Company";a.workAddress="WorkAddress";a.homeAddress="HomeAddress";a.otherAddress="OtherAddress";a.birthday="Birthday"})(V=c.CustomizedData||(c.CustomizedData={}));var l="UnifiedGroupInfo",U=function(d){__extends(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"UnifiedGroupInfo"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_scalarPropertyNames",{"get":function(){return["displayName","email","description","oneDrive","oneNote","isPublic","amIOwner","amIMember","amISubscribed","memberCount","ownerCount","hasGuests","site","planner","classification","subscriptionEnabled"]},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"amIMember",{"get":function(){b("amIMember",this._A,l,this._isNull);return this._A},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"amIOwner",{"get":function(){b("amIOwner",this._Am,l,this._isNull);return this._Am},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"amISubscribed",{"get":function(){b("amISubscribed",this._AmI,l,this._isNull);return this._AmI},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"classification",{"get":function(){b("classification",this._C,l,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"description",{"get":function(){b("description",this._D,l,this._isNull);return this._D},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"displayName",{"get":function(){b("displayName",this._Di,l,this._isNull);return this._Di},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"email",{"get":function(){b("email",this._E,l,this._isNull);return this._E},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"hasGuests",{"get":function(){b("hasGuests",this._H,l,this._isNull);return this._H},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"isPublic",{"get":function(){b("isPublic",this._I,l,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"memberCount",{"get":function(){b("memberCount",this._M,l,this._isNull);return this._M},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"oneDrive",{"get":function(){b("oneDrive",this._O,l,this._isNull);return this._O},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"oneNote",{"get":function(){b("oneNote",this._On,l,this._isNull);return this._On},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"ownerCount",{"get":function(){b("ownerCount",this._Ow,l,this._isNull);return this._Ow},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"planner",{"get":function(){b("planner",this._P,l,this._isNull);return this._P},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"site",{"get":function(){b("site",this._S,l,this._isNull);return this._S},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"subscriptionEnabled",{"get":function(){b("subscriptionEnabled",this._Su,l,this._isNull);return this._Su},enumerable:true,configurable:true});c.prototype._handleResult=function(c){d.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.AmIMember))this._A=b.AmIMember;if(!a(b.AmIOwner))this._Am=b.AmIOwner;if(!a(b.AmISubscribed))this._AmI=b.AmISubscribed;if(!a(b.Classification))this._C=b.Classification;if(!a(b.Description))this._D=b.Description;if(!a(b.DisplayName))this._Di=b.DisplayName;if(!a(b.Email))this._E=b.Email;if(!a(b.HasGuests))this._H=b.HasGuests;if(!a(b.IsPublic))this._I=b.IsPublic;if(!a(b.MemberCount))this._M=b.MemberCount;if(!a(b.OneDrive))this._O=b.OneDrive;if(!a(b.OneNote))this._On=b.OneNote;if(!a(b.OwnerCount))this._Ow=b.OwnerCount;if(!a(b.Planner))this._P=b.Planner;if(!a(b.Site))this._S=b.Site;if(!a(b.SubscriptionEnabled))this._Su=b.SubscriptionEnabled};c.prototype.load=function(a){return o(this,a)};c.prototype.retrieve=function(a){return n(this,a)};c.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};c.prototype.toJSON=function(){return j(this,{amIMember:this._A,amIOwner:this._Am,amISubscribed:this._AmI,classification:this._C,description:this._D,displayName:this._Di,email:this._E,hasGuests:this._H,isPublic:this._I,memberCount:this._M,oneDrive:this._O,oneNote:this._On,ownerCount:this._Ow,planner:this._P,site:this._S,subscriptionEnabled:this._Su},{})};c.prototype.ensureUnchanged=function(a){p(this,a);return};return c}(OfficeExtension.ClientObject);c.UnifiedGroupInfo=U;var z="Persona",kb=function(i){__extends(f,i);function f(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(f.prototype,"_className",{"get":function(){return"Persona"},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"_scalarPropertyNames",{"get":function(){return["hostId","type","diagnosticId"]},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"_navigationPropertyNames",{"get":function(){return["summary","photo","personaInfo","unifiedCommunicationInfo","organization","unifiedGroupInfo","capabilites"]},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"capabilites",{"get":function(){if(!this._C)this._C=m(c.PersonaCapabilites,this,"Capabilites",false,4);return this._C},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"organization",{"get":function(){if(!this._O)this._O=m(c.PersonaOrganizationInfo,this,"Organization",false,4);return this._O},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"personaInfo",{"get":function(){if(!this._P)this._P=m(c.PersonaInfo,this,"PersonaInfo",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"photo",{"get":function(){if(!this._Ph)this._Ph=m(c.PersonaPhotoInfo,this,"Photo",false,4);return this._Ph},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"summary",{"get":function(){if(!this._S)this._S=m(c.PersonaSummary,this,"Summary",false,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"unifiedCommunicationInfo",{"get":function(){if(!this._U)this._U=m(c.PersonaUnifiedCommunicationInfo,this,"UnifiedCommunicationInfo",false,4);return this._U},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"unifiedGroupInfo",{"get":function(){if(!this._Un)this._Un=m(c.UnifiedGroupInfo,this,"UnifiedGroupInfo",false,4);return this._Un},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"diagnosticId",{"get":function(){b("diagnosticId",this._D,z,this._isNull);return this._D},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"hostId",{"get":function(){b("hostId",this._H,z,this._isNull);return this._H},enumerable:true,configurable:true});Object.defineProperty(f.prototype,"type",{"get":function(){b("type",this._T,z,this._isNull);return this._T},enumerable:true,configurable:true});f.prototype.getCustomizations=function(){return d(this,"GetCustomizations",0,[],0,0)};f.prototype.getMembers=function(){return d(this,"GetMembers",0,[],0,0)};f.prototype.getMembership=function(){return d(this,"GetMembership",0,[],0,0)};f.prototype.warmup=function(a){d(this,"Warmup",0,[a],0,0)};f.prototype._handleResult=function(c){i.prototype._handleResult.call(this,c);if(e(c))return;var b=c;g(this,b);if(!a(b.DiagnosticId))this._D=b.DiagnosticId;if(!a(b.HostId))this._H=b.HostId;if(!a(b.Type))this._T=b.Type;t(this,b,["capabilites","Capabilites","organization","Organization","personaInfo","PersonaInfo","photo","Photo","summary","Summary","unifiedCommunicationInfo","UnifiedCommunicationInfo","unifiedGroupInfo","UnifiedGroupInfo"])};f.prototype.load=function(a){return o(this,a)};f.prototype.retrieve=function(a){return n(this,a)};f.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);h(this,b,a)};f.prototype.toJSON=function(){return j(this,{diagnosticId:this._D,hostId:this._H,type:this._T},{capabilites:this._C,organization:this._O,personaInfo:this._P,photo:this._Ph,summary:this._S,unifiedCommunicationInfo:this._U,unifiedGroupInfo:this._Un})};f.prototype.ensureUnchanged=function(a){p(this,a);return};return f}(OfficeExtension.ClientObject);c.Persona=kb;var pb="PersonaOperations",S=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"PersonaOperations"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_navigationPropertyNames",{"get":function(){return["actions"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"actions",{"get":function(){if(!this._A)this._A=m(c.PersonaActions,this,"Actions",false,4);return this._A},enumerable:true,configurable:true});a.prototype.getPersona=function(a){return q(c.Persona,this,"GetPersona",0,[a],false,false,null,0)};a.prototype.getPolicies=function(){return d(this,"GetPolicies",0,[],0,0)};a.prototype.track=function(a){d(this,"Track",0,[a],0,0)};a.prototype.untrack=function(a){d(this,"Untrack",0,[a],0,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(e(a))return;var c=a;g(this,c);t(this,c,["actions","Actions"])};a.prototype.load=function(a){return o(this,a)};a.prototype.retrieve=function(a){return n(this,a)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);h(this,c,a)};Object.defineProperty(a.prototype,"onPersonaUpdated",{"get":function(){if(!this.m_personaUpdated)this.m_personaUpdated=new OfficeExtension.GenericEventHandlers(this.context,this,"PersonaUpdated",{eventType:3502,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return"PersonaUpdated"},eventArgsTransformFunc:function(a){var b={sendingPersonaHostId:a.sendingPersonaHostId,dataUpdated:a.dataUpdated};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_personaUpdated},enumerable:true,configurable:true});a.prototype.toJSON=function(){return j(this,{},{})};return a}(OfficeExtension.ClientObject);c.PersonaOperations=S;var rb="PersonaFactory",X=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"PersonaFactory"},enumerable:true,configurable:true});a.prototype.getPersonaForCurrentUser=function(){return q(c.Persona,this,"GetPersonaForCurrentUser",0,[],false,false,null,0)};a.prototype.getPersonaForPersonaSpy=function(){return q(c.Persona,this,"GetPersonaForPersonaSpy",0,[],false,false,null,0)};a.prototype.getPersonaFromHostId=function(a){return q(c.Persona,this,"GetPersonaFromHostId",0,[a],false,false,null,0)};a.prototype.getPersonaOperations=function(){return q(c.PersonaOperations,this,"GetPersonaOperations",0,[],false,false,null,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(e(a))return;var c=a;g(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);h(this,c,a)};a.newObject=function(a){return v(c.PersonaFactory,a,"Microsoft.People.PersonaFactory",false,4)};a.prototype.toJSON=function(){return j(this,{},{})};return a}(OfficeExtension.ClientObject);c.PersonaFactory=X;var tb="Tap",lb=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"Tap"},enumerable:true,configurable:true});a.prototype.getEnterpriseUserInfo=function(){return d(this,"GetEnterpriseUserInfo",1,[],4|1,0)};a.prototype.getMruFriendlyPath=function(a){return d(this,"GetMruFriendlyPath",1,[a],4|1,0)};a.prototype.launchFileUrlInOfficeApp=function(b,a){return d(this,"LaunchFileUrlInOfficeApp",1,[b,a],4|1,0)};a.prototype.performLocalSearch=function(e,c,a,b){return d(this,"PerformLocalSearch",1,[e,c,a,b],4|1,0)};a.prototype.readSearchCache=function(c,b,a){return d(this,"ReadSearchCache",1,[c,b,a],4|1,0)};a.prototype.writeSearchCache=function(b,c,a){return d(this,"WriteSearchCache",1,[b,c,a],4|1,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(e(a))return;var c=a;g(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);h(this,c,a)};a.newObject=function(a){return v(c.Tap,a,"Microsoft.TapRichApi.Tap",false,4)};a.prototype.toJSON=function(){return j(this,{},{})};return a}(OfficeExtension.ClientObject);c.Tap=lb;var hb;(function(a){a.unknown="Unknown";a.chart="Chart";a.smartArt="SmartArt";a.table="Table";a.image="Image";a.slide="Slide";a.ole="OLE";a.text="Text"})(hb=c.ObjectType||(c.ObjectType={}));var eb;(function(a){a.apiNotAvailable="ApiNotAvailable";a.clientError="ClientError";a.generalException="GeneralException";a.interactiveFlowAborted="InteractiveFlowAborted";a.invalidArgument="InvalidArgument";a.invalidGrant="InvalidGrant";a.invalidResourceUrl="InvalidResourceUrl";a.resourceNotSupported="ResourceNotSupported";a.serverError="ServerError";a.ticketInvalidParams="TicketInvalidParams";a.ticketNetworkError="TicketNetworkError";a.ticketUnauthorized="TicketUnauthorized";a.ticketUninitialized="TicketUninitialized";a.ticketUnknownError="TicketUnknownError";a.unsupportedUserIdentity="UnsupportedUserIdentity";a.userNotSignedIn="UserNotSignedIn"})(eb=c.ErrorCodes||(c.ErrorCodes={}));var fb;(function(a){})(fb=c.Interfaces||(c.Interfaces={}))})(OfficeCore||(OfficeCore={}));var __extends=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(c,a){for(var b in a)if(a.hasOwnProperty(b))c[b]=a[b]};return a(c,b)};return function(c,b){a(c,b);function d(){this.constructor=c}c.prototype=b===null?Object.create(b):(d.prototype=b.prototype,new d)}}(),Excel;(function(a){function Ad(c,b){var a=pc("OfficeOnline")?new Zb:new rc;Jb(c,a);return OfficeExtension.CoreUtility.Promise.resolve().then(function(){return b(a)}).then(a.sync)}var Zb=function(b){__extends(a,b);function a(c){var a=b.call(this,c)||this;a._customData="WacPartition";a.m_wacWorkbook=cc(Mh,a);a._rootObject=a.m_wacWorkbook;a._rootObjectPropertyName="wacWorkbook";return a}Object.defineProperty(a.prototype,"wacWorkbook",{"get":function(){return this.m_wacWorkbook},enumerable:true,configurable:true});return a}(OfficeCore.RequestContext),Mh=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}a.prototype.createAndOpenWorkbook=function(a){j(this,"CreateAndOpenWorkbook",0,[a],0,0)};return a}(OfficeExtension.ClientObject);function Jg(a){e("Excel.createWorkbook",f,"1.8",g);return Ad({delayForCellEdit:true},function(b){if(b instanceof Zb)b.wacWorkbook.createAndOpenWorkbook(a);else b.workbook.application.createWorkbook(a).open()})}a.createWorkbook=Jg;function qc(a){return a[0].toLowerCase()+a.slice(1)}var Ci=["ThreeArrows","ThreeArrowsGray","ThreeFlags","ThreeTrafficLights1","ThreeTrafficLights2","ThreeSigns","ThreeSymbols","ThreeSymbols2","FourArrows","FourArrowsGray","FourRedToBlack","FourRating","FourTrafficLights","FiveArrows","FiveArrowsGray","FiveRating","FiveQuarters","ThreeStars","ThreeTriangles","FiveBoxes"],hi=[["RedDownArrow","YellowSideArrow","GreenUpArrow"],["GrayDownArrow","GraySideArrow","GrayUpArrow"],["RedFlag","YellowFlag","GreenFlag"],["RedCircleWithBorder","YellowCircle","GreenCircle"],["RedTrafficLight","YellowTrafficLight","GreenTrafficLight"],["RedDiamond","YellowTriangle","GreenCircle"],["RedCrossSymbol","YellowExclamationSymbol","GreenCheckSymbol"],["RedCross","YellowExclamation","GreenCheck"],["RedDownArrow","YellowDownInclineArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GrayUpInclineArrow","GrayUpArrow"],["BlackCircle","GrayCircle","PinkCircle","RedCircle"],["OneBar","TwoBars","ThreeBars","FourBars"],["BlackCircleWithBorder","RedCircleWithBorder","YellowCircle","GreenCircle"],["RedDownArrow","YellowDownInclineArrow","YellowSideArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GraySideArrow","GrayUpInclineArrow","GrayUpArrow"],["NoBars","OneBar","TwoBars","ThreeBars","FourBars"],["WhiteCircleAllWhiteQuarters","CircleWithThreeWhiteQuarters","CircleWithTwoWhiteQuarters","CircleWithOneWhiteQuarter","BlackCircle"],["SilverStar","HalfGoldStar","GoldStar"],["RedDownTriangle","YellowDash","GreenUpTriangle"],["NoFilledBoxes","OneFilledBox","TwoFilledBoxes","ThreeFilledBoxes","FourFilledBoxes"]];a.icons={};Ci.map(function(c,d){var b=qc(c);a.icons[b]=[];hi[d].map(function(d,f){d=qc(d);var e={"set":c,index:f};a.icons[b].push(e);a.icons[b][d]=e})});function kb(d,g,a){var e=1500;if(Array.isArray(a)&&a.length>0&&Array.isArray(a[0])&&a.length*a[0].length>e&&bb()){var f=Math.max(1,Math.round(e/a[0].length));d._ValidateArraySize(a.length,a[0].length);for(var b=0;b<a.length;b+=f){var c=f;if(b+c>a.length)c=a.length-b;var j=d.getRow(b).untrack().getBoundingRect(d.getRow(b+c-1).untrack()).untrack(),i=a.slice(b,b+c);h(j,g,i,0)}return true}return false}function Eb(a){if(typeof window!=="undefined"&&window.Office&&window.Office.context&&window.Office.context.requirements)return window.Office.context.requirements.isSetSupported("ExcelApi",a);else return true}function bb(){return Eb(1.3)}function pc(a){if(typeof window!=="undefined"&&window.Office&&window.Office.context)return window.Office.context.platform===a;return false}var Ii=function(){function a(c,b,a){this.m_workbookUrl=c;this.m_requestHeaders=b;if(!this.m_requestHeaders)this.m_requestHeaders={};if(OfficeExtension.Utility.isNullOrUndefined(a))a=true;this.m_persisted=a}a.prototype.close=function(){var c=this;if(this.m_requestUrlAndHeaderInfo&&!OfficeExtension.Utility._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)){var b=this.m_requestUrlAndHeaderInfo.url;if(b.charAt(b.length-1)!=="/")b=b+"/";b=b+"closeSession";var e=this.m_requestUrlAndHeaderInfo,d={method:"POST",url:b,headers:this.m_requestUrlAndHeaderInfo.headers,body:""};this.m_requestUrlAndHeaderInfo=null;return OfficeExtension.HttpUtility.sendRequest(d).then(function(d){if(d.statusCode!==204){var e=OfficeExtension.Utility._parseErrorResponse(d);throw OfficeExtension.Utility.createRuntimeError(e.errorCode,e.errorMessage,"Session.close");}c.m_requestUrlAndHeaderInfo=null;var b=null;for(var f in c.m_requestHeaders)if(f.toLowerCase()===a.WorkbookSessionIdHeaderNameLower){b=f;break}if(b)delete c.m_requestHeaders[b]})}else return OfficeExtension.Utility._createPromiseFromResult(null)};a.prototype._resolveRequestUrlAndHeaderInfo=function(){var d=this;if(this.m_requestUrlAndHeaderInfo)return OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);if(OfficeExtension.Utility.isNullOrEmptyString(this.m_workbookUrl)||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl)){this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders};return OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo)}var e=false;for(var g in this.m_requestHeaders)if(g.toLowerCase()===a.WorkbookSessionIdHeaderNameLower){e=true;break}if(e){this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders};return OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo)}var c=this.m_workbookUrl;if(c.charAt(c.length-1)!=="/")c=c+"/";c=c+"createSession";var b={};OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,b);b["Content-Type"]="application/json";var f={};f.persistChanges=this.m_persisted;var h={method:"POST",url:c,headers:b,body:JSON.stringify(f)};return OfficeExtension.HttpUtility.sendRequest(h).then(function(c){if(c.statusCode!==201){var e=OfficeExtension.Utility._parseErrorResponse(c);throw OfficeExtension.Utility.createRuntimeError(e.errorCode,e.errorMessage,"Session.resolveRequestUrlAndHeaderInfo");}var g=JSON.parse(c.body),f=g.id;b={};OfficeExtension.Utility._copyHeaders(d.m_requestHeaders,b);b[a.WorkbookSessionIdHeaderName]=f;d.m_requestUrlAndHeaderInfo={url:d.m_workbookUrl,headers:b};return d.m_requestUrlAndHeaderInfo})};a.WorkbookSessionIdHeaderName="Workbook-Session-Id";a.WorkbookSessionIdHeaderNameLower="workbook-session-id";return a}();a.Session=Ii;var rc=function(b){__extends(a,b);function a(c){var a=b.call(this,c)||this;a.m_workbook=cc(wc,a);a._rootObject=a.m_workbook;a._rootObjectPropertyName="workbook";return a}a.prototype._processOfficeJsErrorResponse=function(c,a){var b=5004;if(c===b){a.ErrorCode=uc.invalidOperationInCellEditMode;a.ErrorMessage=OfficeExtension.Utility._getResourceString(OfficeExtension.ResourceStrings.invalidOperationInCellEditMode)}};Object.defineProperty(a.prototype,"workbook",{"get":function(){return this.m_workbook},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"application",{"get":function(){return this.workbook.application},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"runtime",{"get":function(){return this.workbook._Runtime},enumerable:true,configurable:true});return a}(OfficeCore.RequestContext);a.RequestContext=rc;function Jb(c,a){var b=c;if(b.delayForCellEdit&&OfficeExtension.CommonUtility.isSetSupported("DelayForCellEdit"))a._requestFlagModifier|=64;else a._requestFlagModifier&=~64}function Ui(b,c){return OfficeExtension.ClientRequestContext._runBatch("Excel.run",arguments,function(b){var c=new a.RequestContext(b);return c},Jb)}a.run=Ui;function Di(b,c){return OfficeExtension.ClientRequestContext._runExplicitBatch("Excel.runBatch",arguments,function(b){var c=new a.RequestContext(b);return c},Jb)}a.runBatch=Di;a._RedirectV1APIs=false;a._V1APIMap={GetDataAsync:{call:function(b,a){return b.workbook._V1Api.bindingGetData(a)},postprocess:bc},GetSelectedDataAsync:{call:function(b,a){return b.workbook._V1Api.getSelectedData(a)},postprocess:bc},GoToByIdAsync:{call:function(b,a){return b.workbook._V1Api.gotoById(a)}},AddColumnsAsync:{call:function(b,a){return b.workbook._V1Api.bindingAddColumns(a)}},AddFromSelectionAsync:{call:function(b,a){return b.workbook._V1Api.bindingAddFromSelection(a)},postprocess:hb},AddFromNamedItemAsync:{call:function(b,a){return b.workbook._V1Api.bindingAddFromNamedItem(a)},postprocess:hb},AddFromPromptAsync:{call:function(a,b){if(Vb({ios:{desiredMajor:2,desiredMinor:20,desiredBuild:0}})&&OfficeExtension.CommonUtility.isSetSupported("DelayForCellEdit"))a._requestFlagModifier|=64;return a.workbook._V1Api.bindingAddFromPrompt(b)},postprocess:hb},AddRowsAsync:{call:function(b,a){return b.workbook._V1Api.bindingAddRows(a)}},GetByIdAsync:{call:function(b,a){return b.workbook._V1Api.bindingGetById(a)},postprocess:hb},ReleaseByIdAsync:{call:function(b,a){return b.workbook._V1Api.bindingReleaseById(a)}},GetAllAsync:{call:function(a){return a.workbook._V1Api.bindingGetAll()},postprocess:function(a){return a.bindings.map(function(a){return hb(a)})}},DeleteAllDataValuesAsync:{call:function(b,a){return b.workbook._V1Api.bindingDeleteAllDataValues(a)}},SetSelectedDataAsync:{preprocess:function(a){var b=a.cellFormat;if(typeof window!=="undefined"&&window.OSF.DDA.SafeArray){if(window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat"))a.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(b)}else if(typeof window!=="undefined"&&window.OSF.DDA.WAC)if(window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat"))a.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(b);return a},call:function(b,a){return b.workbook._V1Api.setSelectedData(a)}},SetDataAsync:{preprocess:function(a){var b=a.cellFormat;if(typeof window!=="undefined"&&window.OSF.DDA.SafeArray){if(window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat"))a.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(b)}else if(typeof window!=="undefined"&&window.OSF.DDA.WAC)if(window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat"))a.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(b);return a},call:function(b,a){return b.workbook._V1Api.bindingSetData(a)}},SetFormatsAsync:{preprocess:function(a){var b=a.cellFormat;if(typeof window!=="undefined"&&window.OSF.DDA.SafeArray){if(window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat"))a.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(b)}else if(typeof window!=="undefined"&&window.OSF.DDA.WAC)if(window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat"))a.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(b);return a},call:function(b,a){return b.workbook._V1Api.bindingSetFormats(a)}},SetTableOptionsAsync:{call:function(b,a){return b.workbook._V1Api.bindingSetTableOptions(a)}},ClearFormatsAsync:{call:function(b,a){return b.workbook._V1Api.bindingClearFormats(a)}},GetFilePropertiesAsync:{call:function(a){return a.workbook._V1Api.getFilePropertiesAsync()}}};function hb(a){var b={BindingColumnCount:a.bindingColumnCount,BindingId:a.bindingId,BindingRowCount:a.bindingRowCount,bindingType:a.bindingType,HasHeaders:a.hasHeaders};return window.OSF.DDA.OMFactory.manufactureBinding(b,window.Microsoft.Office.WebExtension.context.document)}function bc(b,d){var c=b.headers==null,a;if(c)a=b.rows;else a=b;a=window.OSF.DDA.DataCoercion.coerceData(a,d[window.Microsoft.Office.WebExtension.Parameters.CoercionType]);return a===undefined?null:a}function Vb(d){var g=typeof window!=="undefined"&&window.Office&&window.Office.context&&window.Office.context.diagnostics&&window.Office.context.diagnostics.version;if(!g)return false;var a=d[window.Office.context.diagnostics.platform.toLowerCase()];if(a==null)a=d.general;var k=window.Office.context.diagnostics.version,h=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/,b=h.exec(k);if(b){var c=parseInt(b[1]),e=parseInt(b[2]),l=parseInt(b[3]);if(c<a.desiredMajor)return true;if(c===a.desiredMajor&&e<a.desiredMinor)return true;if(c===a.desiredMajor&&e===a.desiredMinor&&l<a.desiredBuild){var i=b[4],f=/^3\d\d\d+$/,j=f.exec(i);if(j)return true}}return false}var yb=true,g="Excel",f="ExcelApi",l=OfficeExtension.BatchApiHelper.createPropertyObject,d=OfficeExtension.BatchApiHelper.createMethodObject,x=OfficeExtension.BatchApiHelper.createIndexerObject,cc=OfficeExtension.BatchApiHelper.createRootServiceObject,ed=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,t=OfficeExtension.BatchApiHelper.createChildItemObject,j=OfficeExtension.BatchApiHelper.invokeMethod,r=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,h=OfficeExtension.BatchApiHelper.invokeSetProperty,k=OfficeExtension.Utility.isNullOrUndefined,c=OfficeExtension.Utility.isUndefined,b=OfficeExtension.Utility.throwIfNotLoaded,e=OfficeExtension.Utility.throwIfApiNotSupported,p=OfficeExtension.Utility.load,q=OfficeExtension.Utility.retrieve,o=OfficeExtension.Utility.toJson,m=OfficeExtension.Utility.fixObjectPathIfNecessary,s=OfficeExtension.Utility._handleNavigationPropertyResults,oc=OfficeExtension.Utility.adjustToDateTime,n=OfficeExtension.Utility.processRetrieveResult,wh="Runtime",Hi=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"Runtime"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["enableEvents"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"enableEvents",{"get":function(){b("enableEvents",this._E,wh,this._isNull);e("Runtime.enableEvents",f,"1.8",g);return this._E},"set":function(a){this._E=a;h(this,"EnableEvents",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["enableEvents"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(a){d.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);if(!c(b.EnableEvents))this._E=b.EnableEvents};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{enableEvents:this._E},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.Runtime=Hi;var Kb="Application",xh=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"Application"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["calculationMode","calculationEngineVersion","calculationState"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,false,false]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["iterativeCalculation","ribbon"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"iterativeCalculation",{"get":function(){e("Application.iterativeCalculation",f,"1.9",g);if(!this._I)this._I=l(a.IterativeCalculation,this,"IterativeCalculation",false,4);return this._I},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"ribbon",{"get":function(){e("Application.ribbon",f,"1.9",g);if(!this._R)this._R=l(a.Ribbon,this,"Ribbon",false,4);return this._R},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"calculationEngineVersion",{"get":function(){b("calculationEngineVersion",this._C,Kb,this._isNull);e("Application.calculationEngineVersion",f,"1.9",g);return this._C},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"calculationMode",{"get":function(){b("calculationMode",this._Ca,Kb,this._isNull);return this._Ca},"set":function(a){this._Ca=a;h(this,"CalculationMode",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"calculationState",{"get":function(){b("calculationState",this._Cal,Kb,this._isNull);e("Application.calculationState",f,"1.9",g);return this._Cal},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["calculationMode"],["iterativeCalculation","ribbon"],[])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.calculate=function(a){j(this,"Calculate",0,[a],0,0)};i.prototype.createWorkbook=function(b){e("Application.createWorkbook",f,"1.8",g);return d(a.WorkbookCreated,this,"CreateWorkbook",1,[b],false,true,"_GetWorkbookCreatedById",0)};i.prototype.suspendApiCalculationUntilNextSync=function(){if(pc("Mac")&&Eb(1.6)&&!Eb(1.7))return;e("Application.suspendApiCalculationUntilNextSync",f,"1.6",g);j(this,"SuspendApiCalculationUntilNextSync",0,[],0,0)};i.prototype.suspendScreenUpdatingUntilNextSync=function(){e("Application.suspendScreenUpdatingUntilNextSync",f,"1.9",g);j(this,"SuspendScreenUpdatingUntilNextSync",0,[],0,0)};i.prototype._GetWorkbookCreatedById=function(b){e("Application._GetWorkbookCreatedById",f,"1.8",g);return d(a.WorkbookCreated,this,"_GetWorkbookCreatedById",1,[b],false,false,null,4)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.CalculationEngineVersion))this._C=a.CalculationEngineVersion;if(!c(a.CalculationMode))this._Ca=a.CalculationMode;if(!c(a.CalculationState))this._Cal=a.CalculationState;s(this,a,["iterativeCalculation","IterativeCalculation","ribbon","Ribbon"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.toJSON=function(){return o(this,{calculationEngineVersion:this._C,calculationMode:this._Ca,calculationState:this._Cal},{iterativeCalculation:this._I,ribbon:this._R})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.Application=xh;var Db="IterativeCalculation",Oe=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"IterativeCalculation"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["enabled","maxIteration","maxChange"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"enabled",{"get":function(){b("enabled",this._E,Db,this._isNull);return this._E},"set":function(a){this._E=a;h(this,"Enabled",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"maxChange",{"get":function(){b("maxChange",this._M,Db,this._isNull);return this._M},"set":function(a){this._M=a;h(this,"MaxChange",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"maxIteration",{"get":function(){b("maxIteration",this._Ma,Db,this._isNull);return this._Ma},"set":function(a){this._Ma=a;h(this,"MaxIteration",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["enabled","maxIteration","maxChange"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Enabled))this._E=a.Enabled;if(!c(a.MaxChange))this._M=a.MaxChange;if(!c(a.MaxIteration))this._Ma=a.MaxIteration};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{enabled:this._E,maxChange:this._M,maxIteration:this._Ma},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.IterativeCalculation=Oe;var U="Workbook",wc=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"Workbook"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["name","readOnly","isDirty","chartDataPointTrack","usePrecisionAsDisplayed","calculationEngineVersion","autoSave","previouslySaved"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,false,true,true,true,false,false,false]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["worksheets","names","tables","application","bindings","functions","_V1Api","pivotTables","settings","customXmlParts","internalTest","properties","styles","protection","dataConnections","_Runtime"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"application",{"get":function(){if(!this._A)this._A=l(a.Application,this,"Application",false,4);return this._A},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"bindings",{"get":function(){if(!this._B)this._B=l(a.BindingCollection,this,"Bindings",true,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"customXmlParts",{"get":function(){e("Workbook.customXmlParts",f,"1.5",g);if(!this._Cu)this._Cu=l(a.CustomXmlPartCollection,this,"CustomXmlParts",true,4);return this._Cu},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"dataConnections",{"get":function(){e("Workbook.dataConnections",f,"1.7",g);if(!this._D)this._D=l(a.DataConnectionCollection,this,"DataConnections",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"functions",{"get":function(){e("Workbook.functions",f,"1.2",g);if(!this._F)this._F=l(a.Functions,this,"Functions",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"internalTest",{"get":function(){e("Workbook.internalTest",f,"1.6",g);if(!this._I)this._I=l(a.InternalTest,this,"InternalTest",false,4);return this._I},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"names",{"get":function(){if(!this._Na)this._Na=l(a.NamedItemCollection,this,"Names",true,4);return this._Na},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"pivotTables",{"get":function(){e("Workbook.pivotTables",f,"1.3",g);if(!this._P)this._P=l(a.PivotTableCollection,this,"PivotTables",true,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"properties",{"get":function(){e("Workbook.properties",f,"1.7",g);if(!this._Pro)this._Pro=l(a.DocumentProperties,this,"Properties",false,4);return this._Pro},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"protection",{"get":function(){e("Workbook.protection",f,"1.7",g);if(!this._Prot)this._Prot=l(a.WorkbookProtection,this,"Protection",false,4);return this._Prot},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"settings",{"get":function(){e("Workbook.settings",f,"1.4",g);if(!this._S)this._S=l(a.SettingCollection,this,"Settings",true,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"styles",{"get":function(){e("Workbook.styles",f,"1.7",g);if(!this._St)this._St=l(a.StyleCollection,this,"Styles",true,4);return this._St},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"tables",{"get":function(){if(!this._T)this._T=l(a.TableCollection,this,"Tables",true,4);return this._T},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"worksheets",{"get":function(){if(!this._W)this._W=l(a.WorksheetCollection,this,"Worksheets",true,4);return this._W},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_Runtime",{"get":function(){e("Workbook._Runtime",f,"1.5",g);if(!this.__R)this.__R=l(a.Runtime,this,"_Runtime",false,4);return this.__R},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_V1Api",{"get":function(){e("Workbook._V1Api",f,"1.3",g);if(!this.__V)this.__V=l(a._V1Api,this,"_V1Api",false,4);return this.__V},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"autoSave",{"get":function(){b("autoSave",this._Au,U,this._isNull);e("Workbook.autoSave",f,"1.9",g);return this._Au},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"calculationEngineVersion",{"get":function(){b("calculationEngineVersion",this._C,U,this._isNull);e("Workbook.calculationEngineVersion",f,"1.9",g);return this._C},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"chartDataPointTrack",{"get":function(){b("chartDataPointTrack",this._Ch,U,this._isNull);e("Workbook.chartDataPointTrack",f,"1.9",g);return this._Ch},"set":function(a){this._Ch=a;h(this,"ChartDataPointTrack",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"isDirty",{"get":function(){b("isDirty",this._Is,U,this._isNull);e("Workbook.isDirty",f,"1.9",g);return this._Is},"set":function(a){this._Is=a;h(this,"IsDirty",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"name",{"get":function(){b("name",this._N,U,this._isNull);e("Workbook.name",f,"1.7",g);return this._N},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"previouslySaved",{"get":function(){b("previouslySaved",this._Pr,U,this._isNull);e("Workbook.previouslySaved",f,"1.9",g);return this._Pr},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"readOnly",{"get":function(){b("readOnly",this._R,U,this._isNull);e("Workbook.readOnly",f,"1.8",g);return this._R},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"usePrecisionAsDisplayed",{"get":function(){b("usePrecisionAsDisplayed",this._U,U,this._isNull);e("Workbook.usePrecisionAsDisplayed",f,"1.9",g);return this._U},"set":function(a){this._U=a;h(this,"UsePrecisionAsDisplayed",a,0)},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["isDirty","chartDataPointTrack","usePrecisionAsDisplayed"],["properties"],["_Runtime","_V1Api","application","bindings","customXmlParts","dataConnections","functions","internalTest","names","pivotTables","protection","settings","styles","tables","worksheets"])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.getActiveCell=function(){e("Workbook.getActiveCell",f,"1.7",g);return d(a.Range,this,"GetActiveCell",1,[],false,true,null,4)};i.prototype.getActiveChart=function(){e("Workbook.getActiveChart",f,"1.9",g);return d(a.Chart,this,"GetActiveChart",1,[],false,false,null,4)};i.prototype.getActiveChartOrNullObject=function(){e("Workbook.getActiveChartOrNullObject",f,"1.9",g);return d(a.Chart,this,"GetActiveChartOrNullObject",1,[],false,false,null,4)};i.prototype.getIsActiveCollabSession=function(){e("Workbook.getIsActiveCollabSession",f,"1.9",g);return j(this,"GetIsActiveCollabSession",0,[],0,0)};i.prototype.getSelectedRange=function(){return d(a.Range,this,"GetSelectedRange",1,[],false,true,null,4)};i.prototype.getSelectedRanges=function(){e("Workbook.getSelectedRanges",f,"1.9",g);return d(a.RangeAreas,this,"GetSelectedRanges",1,[],false,true,null,4)};i.prototype._GetObjectByReferenceId=function(a){return j(this,"_GetObjectByReferenceId",1,[a],4,0)};i.prototype._GetObjectTypeNameByReferenceId=function(a){return j(this,"_GetObjectTypeNameByReferenceId",1,[a],4,0)};i.prototype._GetRangeForEventByReferenceId=function(b){return d(a.Range,this,"_GetRangeForEventByReferenceId",1,[b],false,false,null,4)};i.prototype._GetRangeOrNullObjectForEventByReferenceId=function(b){return d(a.Range,this,"_GetRangeOrNullObjectForEventByReferenceId",1,[b],false,false,null,4)};i.prototype._GetRangesForEventByReferenceId=function(b){e("Workbook._GetRangesForEventByReferenceId",f,"1.9",g);return d(a.RangeAreas,this,"_GetRangesForEventByReferenceId",1,[b],false,false,null,4)};i.prototype._GetRangesOrNullObjectForEventByReferenceId=function(b){e("Workbook._GetRangesOrNullObjectForEventByReferenceId",f,"1.9",g);return d(a.RangeAreas,this,"_GetRangesOrNullObjectForEventByReferenceId",1,[b],false,false,null,4)};i.prototype._GetReferenceCount=function(){return j(this,"_GetReferenceCount",1,[],4,0)};i.prototype._RegisterAutoSaveSettingChangedEvent=function(){e("Workbook._RegisterAutoSaveSettingChangedEvent",f,"1.9",g);j(this,"_RegisterAutoSaveSettingChangedEvent",0,[],0,0)};i.prototype._RemoveAllReferences=function(){j(this,"_RemoveAllReferences",1,[],0,0)};i.prototype._RemoveReference=function(a){j(this,"_RemoveReference",1,[a],0,0)};i.prototype._UnregisterAutoSaveSettingChangedEvent=function(){e("Workbook._UnregisterAutoSaveSettingChangedEvent",f,"1.9",g);j(this,"_UnregisterAutoSaveSettingChangedEvent",0,[],0,0)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoSave))this._Au=a.AutoSave;if(!c(a.CalculationEngineVersion))this._C=a.CalculationEngineVersion;if(!c(a.ChartDataPointTrack))this._Ch=a.ChartDataPointTrack;if(!c(a.IsDirty))this._Is=a.IsDirty;if(!c(a.Name))this._N=a.Name;if(!c(a.PreviouslySaved))this._Pr=a.PreviouslySaved;if(!c(a.ReadOnly))this._R=a.ReadOnly;if(!c(a.UsePrecisionAsDisplayed))this._U=a.UsePrecisionAsDisplayed;s(this,a,["application","Application","bindings","Bindings","customXmlParts","CustomXmlParts","dataConnections","DataConnections","functions","Functions","internalTest","InternalTest","names","Names","pivotTables","PivotTables","properties","Properties","protection","Protection","settings","Settings","styles","Styles","tables","Tables","worksheets","Worksheets","_Runtime","_Runtime","_V1Api","_V1Api"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};Object.defineProperty(i.prototype,"onAutoSaveSettingChanged",{"get":function(){var a=this;e("Workbook.onAutoSaveSettingChanged",f,"1.9",g);if(!this.m_autoSaveSettingChanged)this.m_autoSaveSettingChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"AutoSaveSettingChanged",{eventType:2200,registerFunc:function(){a._RegisterAutoSaveSettingChangedEvent()},unregisterFunc:function(){a._UnregisterAutoSaveSettingChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(b){var a={type:w.workbookAutoSaveSettingChanged};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_autoSaveSettingChanged},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"onSelectionChanged",{"get":function(){var a=this;e("Workbook.onSelectionChanged",f,"1.3",g);if(!this.m_selectionChanged)this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(b){return a.context.eventRegistration.register(2,"",b)},unregisterFunc:function(b){return a.context.eventRegistration.unregister(2,"",b)},eventArgsTransformFunc:function(b){return OfficeExtension.Utility._createPromiseFromResult({workbook:a})}});return this.m_selectionChanged},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_onMessage",{"get":function(){var a=this;e("Workbook._onMessage",f,"1.7",g);if(!this.m__Message)this.m__Message=new OfficeExtension.EventHandlers(this.context,this,"_Message",{registerFunc:function(b){return a.context.eventRegistration.register(5,"",b)},unregisterFunc:function(b){return a.context.eventRegistration.unregister(5,"",b)},eventArgsTransformFunc:function(b){return OfficeExtension.Utility._createPromiseFromResult({entries:b.entries,workbook:a})}});return this.m__Message},enumerable:true,configurable:true});i.prototype.toJSON=function(){return o(this,{autoSave:this._Au,calculationEngineVersion:this._C,chartDataPointTrack:this._Ch,isDirty:this._Is,name:this._N,previouslySaved:this._Pr,readOnly:this._R,usePrecisionAsDisplayed:this._U},{bindings:this._B,customXmlParts:this._Cu,names:this._Na,pivotTables:this._P,properties:this._Pro,protection:this._Prot,settings:this._S,styles:this._St,tables:this._T,worksheets:this._W})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.Workbook=wc;var Zd="WorkbookProtection",Cf=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"WorkbookProtection"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["protected"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"protected",{"get":function(){b("protected",this._P,Zd,this._isNull);return this._P},enumerable:true,configurable:true});a.prototype.protect=function(a){j(this,"Protect",0,[a],0,0)};a.prototype.unprotect=function(a){j(this,"Unprotect",0,[a],0,0)};a.prototype._handleResult=function(a){d.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);if(!c(b.Protected))this._P=b.Protected};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{"protected":this._P},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.WorkbookProtection=Cf;var Ze="WorkbookCreated",xg=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"WorkbookCreated"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["id"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"id",{"get":function(){b("id",this._I,Ze,this._isNull);return this._I},enumerable:true,configurable:true});a.prototype.open=function(){j(this,"Open",1,[],4,0)};a.prototype._handleResult=function(a){d.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);if(!c(b.Id))this._I=b.Id};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleIdResult=function(a){d.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{id:this._I},{})};return a}(OfficeExtension.ClientObject);a.WorkbookCreated=xg;var P="Worksheet",zi=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"Worksheet"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_collectionPropertyPath",{"get":function(){return"workbook.worksheets"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["name","id","position","visibility","tabColor","standardWidth","standardHeight","showGridlines","showHeadings","enableCalculation"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,false,true,true,true,true,false,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["charts","tables","protection","pivotTables","names","freezePanes","pageLayout","shapes","horizontalPageBreaks","verticalPageBreaks","autoFilter"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"autoFilter",{"get":function(){e("Worksheet.autoFilter",f,"1.9",g);if(!this._A)this._A=l(a.AutoFilter,this,"AutoFilter",false,4);return this._A},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"charts",{"get":function(){if(!this._C)this._C=l(a.ChartCollection,this,"Charts",true,4);this._C._ParentObject=this;return this._C},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"freezePanes",{"get":function(){e("Worksheet.freezePanes",f,"1.7",g);if(!this._F)this._F=l(a.WorksheetFreezePanes,this,"FreezePanes",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"horizontalPageBreaks",{"get":function(){e("Worksheet.horizontalPageBreaks",f,"1.9",g);if(!this._Ho)this._Ho=l(a.PageBreakCollection,this,"HorizontalPageBreaks",true,4);return this._Ho},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"names",{"get":function(){e("Worksheet.names",f,"1.4",g);if(!this._Na)this._Na=l(a.NamedItemCollection,this,"Names",true,4);return this._Na},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"pageLayout",{"get":function(){e("Worksheet.pageLayout",f,"1.9",g);if(!this._P)this._P=l(a.PageLayout,this,"PageLayout",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"pivotTables",{"get":function(){e("Worksheet.pivotTables",f,"1.3",g);if(!this._Pi)this._Pi=l(a.PivotTableCollection,this,"PivotTables",true,4);return this._Pi},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"protection",{"get":function(){e("Worksheet.protection",f,"1.2",g);if(!this._Pr)this._Pr=l(a.WorksheetProtection,this,"Protection",false,4);return this._Pr},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"shapes",{"get":function(){e("Worksheet.shapes",f,"1.9",g);if(!this._S)this._S=l(a.ShapeCollection,this,"Shapes",true,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"tables",{"get":function(){if(!this.m_tables)this.m_tables=l(a.TableCollection,this,"Tables",true,4);this.m_tables._ParentObject=this;return this.m_tables},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"verticalPageBreaks",{"get":function(){e("Worksheet.verticalPageBreaks",f,"1.9",g);if(!this._V)this._V=l(a.PageBreakCollection,this,"VerticalPageBreaks",true,4);return this._V},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"enableCalculation",{"get":function(){b("enableCalculation",this._E,P,this._isNull);e("Worksheet.enableCalculation",f,"1.9",g);return this._E},"set":function(a){this._E=a;h(this,"EnableCalculation",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"id",{"get":function(){b("id",this._I,P,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"name",{"get":function(){b("name",this._N,P,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"position",{"get":function(){b("position",this._Po,P,this._isNull);return this._Po},"set":function(a){this._Po=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showGridlines",{"get":function(){b("showGridlines",this.m_showGridlines,P,this._isNull);e("Worksheet.showGridlines",f,"1.8",g);return this.m_showGridlines},"set":function(a){if(yb){this.m_showGridlines=a;h(this,"Gridlines",a,0);return}this.m_showGridlines=a;h(this,"ShowGridlines",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showHeadings",{"get":function(){b("showHeadings",this.m_showHeadings,P,this._isNull);e("Worksheet.showHeadings",f,"1.8",g);return this.m_showHeadings},"set":function(a){if(yb){this.m_showHeadings=a;h(this,"Headings",a,0);return}this.m_showHeadings=a;h(this,"ShowHeadings",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"standardHeight",{"get":function(){b("standardHeight",this._St,P,this._isNull);e("Worksheet.standardHeight",f,"1.7",g);return this._St},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"standardWidth",{"get":function(){b("standardWidth",this._Sta,P,this._isNull);e("Worksheet.standardWidth",f,"1.7",g);return this._Sta},"set":function(a){this._Sta=a;h(this,"StandardWidth",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"tabColor",{"get":function(){b("tabColor",this._T,P,this._isNull);e("Worksheet.tabColor",f,"1.7",g);return this._T},"set":function(a){this._T=a;h(this,"TabColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"visibility",{"get":function(){b("visibility",this._Vi,P,this._isNull);return this._Vi},"set":function(a){this._Vi=a;h(this,"Visibility",a,0)},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["name","position","visibility","tabColor","standardWidth","showGridlines","showHeadings","enableCalculation"],["pageLayout"],["autoFilter","charts","freezePanes","gridlines","headings","horizontalPageBreaks","names","pivotTables","protection","shapes","tables","verticalPageBreaks"])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.activate=function(){j(this,"Activate",1,[],0,0)};i.prototype.calculate=function(a){e("Worksheet.calculate",f,"1.6",g);j(this,"Calculate",0,[a],0,0)};i.prototype.copy=function(b,c){e("Worksheet.copy",f,"1.7",g);return d(a.Worksheet,this,"Copy",0,[b,c],false,false,"_GetAnotherWorksheetById",0)};i.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};i.prototype.findAll=function(c,b){e("Worksheet.findAll",f,"1.9",g);return d(a.RangeAreas,this,"FindAll",1,[c,b],false,true,null,4)};i.prototype.findAllOrNullObject=function(c,b){e("Worksheet.findAllOrNullObject",f,"1.9",g);return d(a.RangeAreas,this,"FindAllOrNullObject",1,[c,b],false,true,null,4)};i.prototype.getCell=function(c,b){return d(a.Range,this,"GetCell",1,[c,b],false,true,null,4)};i.prototype.getNext=function(b){e("Worksheet.getNext",f,"1.5",g);return d(a.Worksheet,this,"GetNext",1,[b],false,true,"_GetSheetById",4)};i.prototype.getNextOrNullObject=function(b){e("Worksheet.getNextOrNullObject",f,"1.5",g);return d(a.Worksheet,this,"GetNextOrNullObject",1,[b],false,true,"_GetSheetById",4)};i.prototype.getPrevious=function(b){e("Worksheet.getPrevious",f,"1.5",g);return d(a.Worksheet,this,"GetPrevious",1,[b],false,true,"_GetSheetById",4)};i.prototype.getPreviousOrNullObject=function(b){e("Worksheet.getPreviousOrNullObject",f,"1.5",g);return d(a.Worksheet,this,"GetPreviousOrNullObject",1,[b],false,true,"_GetSheetById",4)};i.prototype.getRange=function(b){return d(a.Range,this,"GetRange",1,[b],false,true,null,4)};i.prototype.getRangeByIndexes=function(i,c,h,b){e("Worksheet.getRangeByIndexes",f,"1.7",g);return d(a.Range,this,"GetRangeByIndexes",1,[i,c,h,b],false,true,null,4)};i.prototype.getRanges=function(b){e("Worksheet.getRanges",f,"1.9",g);return d(a.RangeAreas,this,"GetRanges",1,[b],false,true,null,4)};i.prototype.getUsedRange=function(b){return d(a.Range,this,"GetUsedRange",1,[b],false,true,null,4)};i.prototype.getUsedRangeOrNullObject=function(b){e("Worksheet.getUsedRangeOrNullObject",f,"1.4",g);return d(a.Range,this,"GetUsedRangeOrNullObject",1,[b],false,true,null,4)};i.prototype.replaceAll=function(c,a,b){e("Worksheet.replaceAll",f,"1.9",g);return j(this,"ReplaceAll",0,[c,a,b],0,0)};i.prototype._GetAnotherWorksheetById=function(b){e("Worksheet._GetAnotherWorksheetById",f,"1.7",g);return d(a.Worksheet,this,"_GetAnotherWorksheetById",0,[b],false,false,null,0)};i.prototype._GetSheetById=function(b){e("Worksheet._GetSheetById",f,"1.7",g);return d(a.Worksheet,this,"_GetSheetById",1,[b],false,false,null,4)};i.prototype._RegisterActivatedEvent=function(){e("Worksheet._RegisterActivatedEvent",f,"1.7",g);j(this,"_RegisterActivatedEvent",0,[],0,0)};i.prototype._RegisterCalculatedEvent=function(){e("Worksheet._RegisterCalculatedEvent",f,"1.8",g);j(this,"_RegisterCalculatedEvent",0,[],0,0)};i.prototype._RegisterDataChangedEvent=function(){e("Worksheet._RegisterDataChangedEvent",f,"1.7",g);j(this,"_RegisterDataChangedEvent",0,[],0,0)};i.prototype._RegisterDeactivatedEvent=function(){e("Worksheet._RegisterDeactivatedEvent",f,"1.7",g);j(this,"_RegisterDeactivatedEvent",0,[],0,0)};i.prototype._RegisterFormatChangedEvent=function(){e("Worksheet._RegisterFormatChangedEvent",f,"1.9",g);j(this,"_RegisterFormatChangedEvent",0,[],0,0)};i.prototype._RegisterSelectionChangedEvent=function(){e("Worksheet._RegisterSelectionChangedEvent",f,"1.7",g);j(this,"_RegisterSelectionChangedEvent",0,[],0,0)};i.prototype._UnregisterActivatedEvent=function(){e("Worksheet._UnregisterActivatedEvent",f,"1.7",g);j(this,"_UnregisterActivatedEvent",0,[],0,0)};i.prototype._UnregisterCalculatedEvent=function(){e("Worksheet._UnregisterCalculatedEvent",f,"1.8",g);j(this,"_UnregisterCalculatedEvent",0,[],0,0)};i.prototype._UnregisterDataChangedEvent=function(){e("Worksheet._UnregisterDataChangedEvent",f,"1.7",g);j(this,"_UnregisterDataChangedEvent",0,[],0,0)};i.prototype._UnregisterDeactivatedEvent=function(){e("Worksheet._UnregisterDeactivatedEvent",f,"1.7",g);j(this,"_UnregisterDeactivatedEvent",0,[],0,0)};i.prototype._UnregisterFormatChangedEvent=function(){e("Worksheet._UnregisterFormatChangedEvent",f,"1.9",g);j(this,"_UnregisterFormatChangedEvent",0,[],0,0)};i.prototype._UnregisterSelectionChangedEvent=function(){e("Worksheet._UnregisterSelectionChangedEvent",f,"1.7",g);j(this,"_UnregisterSelectionChangedEvent",0,[],0,0)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.EnableCalculation))this._E=a.EnableCalculation;if(!c(a.Id))this._I=a.Id;if(!c(a.Name))this._N=a.Name;if(!c(a.Position))this._Po=a.Position;if(!c(a.ShowGridlines))this.m_showGridlines=a.ShowGridlines;if(!c(a.ShowHeadings))this.m_showHeadings=a.ShowHeadings;if(!c(a.StandardHeight))this._St=a.StandardHeight;if(!c(a.StandardWidth))this._Sta=a.StandardWidth;if(!c(a.TabColor))this._T=a.TabColor;if(!c(a.Visibility))this._Vi=a.Visibility;s(this,a,["autoFilter","AutoFilter","charts","Charts","freezePanes","FreezePanes","horizontalPageBreaks","HorizontalPageBreaks","names","Names","pageLayout","PageLayout","pivotTables","PivotTables","protection","Protection","shapes","Shapes","tables","Tables","verticalPageBreaks","VerticalPageBreaks"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleIdResult=function(a){t.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};Object.defineProperty(i.prototype,"onActivated",{"get":function(){var a=this;e("Worksheet.onActivated",f,"1.7",g);if(!this.m_activated)this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:11,registerFunc:function(){a._RegisterActivatedEvent()},unregisterFunc:function(){a._UnregisterActivatedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(b){var a={type:w.worksheetActivated,worksheetId:b.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_activated},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"onCalculated",{"get":function(){var a=this;e("Worksheet.onCalculated",f,"1.8",g);if(!this.m_calculated)this.m_calculated=new OfficeExtension.GenericEventHandlers(this.context,this,"Calculated",{eventType:16,registerFunc:function(){a._RegisterCalculatedEvent()},unregisterFunc:function(){a._UnregisterCalculatedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(b){var a={type:w.worksheetCalculated,worksheetId:b.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_calculated},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"onChanged",{"get":function(){var a=this;e("Worksheet.onChanged",f,"1.7",g);if(!this.m_changed)this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:10,registerFunc:function(){return a._RegisterDataChangedEvent()},unregisterFunc:function(){return a._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(b){var c;if(b.valueBefore!=null||b.valueAfter!=null)c={valueBefore:b.valueBefore,valueAfter:b.valueAfter,valueTypeBefore:b.valueTypeBefore,valueTypeAfter:b.valueTypeAfter};var d={type:w.worksheetChanged,changeType:b.changeType,source:b.source,worksheetId:a.id,address:b.address,getRange:function(a){e("WorksheetChangedEventArgs.getRange",f,"1.8",g);return a.workbook._GetRangeForEventByReferenceId(b.referenceId)},getRangeOrNullObject:function(a){e("WorksheetChangedEventArgs.getRangeOrNullObject",f,"1.8",g);return a.workbook._GetRangeOrNullObjectForEventByReferenceId(b.referenceId)},details:c};return OfficeExtension.Utility._createPromiseFromResult(d)}});return this.m_changed},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"onDeactivated",{"get":function(){var a=this;e("Worksheet.onDeactivated",f,"1.7",g);if(!this.m_deactivated)this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:12,registerFunc:function(){a._RegisterDeactivatedEvent()},unregisterFunc:function(){a._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(b){var a={type:w.worksheetDeactivated,worksheetId:b.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_deactivated},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"onFormatChanged",{"get":function(){var a=this;e("Worksheet.onFormatChanged",f,"1.9",g);if(!this.m_formatChanged)this.m_formatChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"FormatChanged",{eventType:18,registerFunc:function(){return a._RegisterFormatChangedEvent()},unregisterFunc:function(){return a._UnregisterFormatChangedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(b){var c={type:w.worksheetFormatChanged,source:b.source,worksheetId:a.id,address:b.address,getRange:function(a){e("WorksheetFormatChangedEventArgs.getRange",f,"1.9",g);return a.workbook._GetRangeForEventByReferenceId(b.referenceId)},getRangeOrNullObject:function(a){e("WorksheetFormatChangedEventArgs.getRangeOrNullObject",f,"1.9",g);return a.workbook._GetRangeOrNullObjectForEventByReferenceId(b.referenceId)}};return OfficeExtension.Utility._createPromiseFromResult(c)}});return this.m_formatChanged},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"onSelectionChanged",{"get":function(){var a=this;e("Worksheet.onSelectionChanged",f,"1.7",g);if(!this.m_selectionChanged)this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:14,registerFunc:function(){return a._RegisterSelectionChangedEvent()},unregisterFunc:function(){return a._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(c){var b={type:w.worksheetSelectionChanged,worksheetId:a.id,address:c.address};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_selectionChanged},enumerable:true,configurable:true});i.prototype.toJSON=function(){return o(this,{enableCalculation:this._E,id:this._I,name:this._N,position:this._Po,showGridlines:this.m_showGridlines,showHeadings:this.m_showHeadings,standardHeight:this._St,standardWidth:this._Sta,tabColor:this._T,visibility:this._Vi},{autoFilter:this._A,charts:this._C,horizontalPageBreaks:this._Ho,names:this._Na,pageLayout:this._P,pivotTables:this._Pi,protection:this._Pr,shapes:this._S,tables:this.m_tables,verticalPageBreaks:this._V})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.Worksheet=zi;var Rd="WorksheetCollection",nf=function(h){__extends(c,h);function c(){return h!==null&&h.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"WorksheetCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Rd,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.Worksheet,this,"Add",0,[b],false,true,null,0)};c.prototype.getActiveWorksheet=function(){return d(a.Worksheet,this,"GetActiveWorksheet",1,[],false,false,null,4)};c.prototype.getCount=function(a){e("WorksheetCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[a],4,0)};c.prototype.getFirst=function(b){e("WorksheetCollection.getFirst",f,"1.5",g);return d(a.Worksheet,this,"GetFirst",1,[b],false,true,null,4)};c.prototype.getItem=function(b){return x(a.Worksheet,this,[b])};c.prototype.getItemOrNullObject=function(b){e("WorksheetCollection.getItemOrNullObject",f,"1.4",g);return d(a.Worksheet,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype.getLast=function(b){e("WorksheetCollection.getLast",f,"1.5",g);return d(a.Worksheet,this,"GetLast",1,[b],false,true,null,4)};c.prototype._RegisterActivatedEvent=function(){e("WorksheetCollection._RegisterActivatedEvent",f,"1.7",g);j(this,"_RegisterActivatedEvent",1,[],0,0)};c.prototype._RegisterAddedEvent=function(){e("WorksheetCollection._RegisterAddedEvent",f,"1.7",g);j(this,"_RegisterAddedEvent",0,[],0,0)};c.prototype._RegisterCalculatedEvent=function(){e("WorksheetCollection._RegisterCalculatedEvent",f,"1.8",g);j(this,"_RegisterCalculatedEvent",0,[],0,0)};c.prototype._RegisterDataChangedEvent=function(){e("WorksheetCollection._RegisterDataChangedEvent",f,"1.9",g);j(this,"_RegisterDataChangedEvent",0,[],0,0)};c.prototype._RegisterDeactivatedEvent=function(){e("WorksheetCollection._RegisterDeactivatedEvent",f,"1.7",g);j(this,"_RegisterDeactivatedEvent",0,[],0,0)};c.prototype._RegisterDeletedEvent=function(){e("WorksheetCollection._RegisterDeletedEvent",f,"1.7",g);j(this,"_RegisterDeletedEvent",0,[],0,0)};c.prototype._RegisterFormatChangedEvent=function(){e("WorksheetCollection._RegisterFormatChangedEvent",f,"1.9",g);j(this,"_RegisterFormatChangedEvent",0,[],0,0)};c.prototype._RegisterSelectionChangedEvent=function(){e("WorksheetCollection._RegisterSelectionChangedEvent",f,"1.9",g);j(this,"_RegisterSelectionChangedEvent",0,[],0,0)};c.prototype._UnregisterActivatedEvent=function(){e("WorksheetCollection._UnregisterActivatedEvent",f,"1.7",g);j(this,"_UnregisterActivatedEvent",0,[],0,0)};c.prototype._UnregisterAddedEvent=function(){e("WorksheetCollection._UnregisterAddedEvent",f,"1.7",g);j(this,"_UnregisterAddedEvent",0,[],0,0)};c.prototype._UnregisterCalculatedEvent=function(){e("WorksheetCollection._UnregisterCalculatedEvent",f,"1.8",g);j(this,"_UnregisterCalculatedEvent",0,[],0,0)};c.prototype._UnregisterDataChangedEvent=function(){e("WorksheetCollection._UnregisterDataChangedEvent",f,"1.9",g);j(this,"_UnregisterDataChangedEvent",0,[],0,0)};c.prototype._UnregisterDeactivatedEvent=function(){e("WorksheetCollection._UnregisterDeactivatedEvent",f,"1.7",g);j(this,"_UnregisterDeactivatedEvent",0,[],0,0)};c.prototype._UnregisterDeletedEvent=function(){e("WorksheetCollection._UnregisterDeletedEvent",f,"1.7",g);j(this,"_UnregisterDeletedEvent",0,[],0,0)};c.prototype._UnregisterFormatChangedEvent=function(){e("WorksheetCollection._UnregisterFormatChangedEvent",f,"1.9",g);j(this,"_UnregisterFormatChangedEvent",0,[],0,0)};c.prototype._UnregisterSelectionChangedEvent=function(){e("WorksheetCollection._UnregisterSelectionChangedEvent",f,"1.9",g);j(this,"_UnregisterSelectionChangedEvent",0,[],0,0)};c.prototype._handleResult=function(c){h.prototype._handleResult.call(this,c);if(k(c))return;var e=c;m(this,e);if(!k(e[OfficeExtension.Constants.items])){this.m__items=[];for(var d=e[OfficeExtension.Constants.items],b=0;b<d.length;b++){var f=t(a.Worksheet,true,this,d[b],b);f._handleResult(d[b]);this.m__items.push(f)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;h.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Worksheet,true,d,b,c)})};Object.defineProperty(c.prototype,"onActivated",{"get":function(){var a=this;e("WorksheetCollection.onActivated",f,"1.7",g);if(!this.m_activated)this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:11,registerFunc:function(){return a._RegisterActivatedEvent()},unregisterFunc:function(){return a._UnregisterActivatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(b){var a={type:w.worksheetActivated,worksheetId:b.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_activated},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"onAdded",{"get":function(){var a=this;e("WorksheetCollection.onAdded",f,"1.7",g);if(!this.m_added)this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:13,registerFunc:function(){return a._RegisterAddedEvent()},unregisterFunc:function(){return a._UnregisterAddedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b={type:w.worksheetAdded,source:a.source,worksheetId:a.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_added},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"onCalculated",{"get":function(){var a=this;e("WorksheetCollection.onCalculated",f,"1.8",g);if(!this.m_calculated)this.m_calculated=new OfficeExtension.GenericEventHandlers(this.context,this,"Calculated",{eventType:16,registerFunc:function(){a._RegisterCalculatedEvent()},unregisterFunc:function(){a._UnregisterCalculatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(b){var a={type:w.worksheetCalculated,worksheetId:b.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_calculated},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"onChanged",{"get":function(){var a=this;e("WorksheetCollection.onChanged",f,"1.9",g);if(!this.m_changed)this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:10,registerFunc:function(){return a._RegisterDataChangedEvent()},unregisterFunc:function(){return a._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b;if(a.valueBefore!=null||a.valueAfter!=null)b={valueBefore:a.valueBefore,valueAfter:a.valueAfter,valueTypeBefore:a.valueTypeBefore,valueTypeAfter:a.valueTypeAfter};var c={type:w.worksheetChanged,changeType:a.changeType,source:a.source,worksheetId:a.worksheetId,address:a.address,getRange:function(b){e("WorksheetChangedEventArgs.getRange",f,"1.9",g);return b.workbook._GetRangeForEventByReferenceId(a.referenceId)},getRangeOrNullObject:function(b){e("WorksheetChangedEventArgs.getRangeOrNullObject",f,"1.9",g);return b.workbook._GetRangeOrNullObjectForEventByReferenceId(a.referenceId)},details:b};return OfficeExtension.Utility._createPromiseFromResult(c)}});return this.m_changed},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"onDeactivated",{"get":function(){var a=this;e("WorksheetCollection.onDeactivated",f,"1.7",g);if(!this.m_deactivated)this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:12,registerFunc:function(){return a._RegisterDeactivatedEvent()},unregisterFunc:function(){return a._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(b){var a={type:w.worksheetDeactivated,worksheetId:b.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_deactivated},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"onDeleted",{"get":function(){var a=this;e("WorksheetCollection.onDeleted",f,"1.7",g);if(!this.m_deleted)this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:15,registerFunc:function(){return a._RegisterDeletedEvent()},unregisterFunc:function(){return a._UnregisterDeletedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b={type:w.worksheetDeleted,source:a.source,worksheetId:a.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_deleted},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"onFormatChanged",{"get":function(){var a=this;e("WorksheetCollection.onFormatChanged",f,"1.9",g);if(!this.m_formatChanged)this.m_formatChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"FormatChanged",{eventType:18,registerFunc:function(){return a._RegisterFormatChangedEvent()},unregisterFunc:function(){return a._UnregisterFormatChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b={type:w.worksheetFormatChanged,source:a.source,worksheetId:a.worksheetId,address:a.address,getRange:function(b){e("WorksheetFormatChangedEventArgs.getRange",f,"1.9",g);return b.workbook._GetRangeForEventByReferenceId(a.referenceId)},getRangeOrNullObject:function(b){e("WorksheetFormatChangedEventArgs.getRangeOrNullObject",f,"1.9",g);return b.workbook._GetRangeOrNullObjectForEventByReferenceId(a.referenceId)}};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_formatChanged},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"onSelectionChanged",{"get":function(){var a=this;e("WorksheetCollection.onSelectionChanged",f,"1.9",g);if(!this.m_selectionChanged)this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:14,registerFunc:function(){return a._RegisterSelectionChangedEvent()},unregisterFunc:function(){return a._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b={type:w.worksheetSelectionChanged,address:a.address,worksheetId:a.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_selectionChanged},enumerable:true,configurable:true});c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.WorksheetCollection=nf;var dc="WorksheetProtection",of=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"WorksheetProtection"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["protected","options"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"options",{"get":function(){b("options",this._O,dc,this._isNull);return this._O},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"protected",{"get":function(){b("protected",this._P,dc,this._isNull);return this._P},enumerable:true,configurable:true});a.prototype.protect=function(a,b){if(Vb({mac:{desiredMajor:16,desiredMinor:7,desiredBuild:17101600},ios:{desiredMajor:2,desiredMinor:7,desiredBuild:1016},general:{desiredMajor:16,desiredMinor:0,desiredBuild:8716}})){j(this,"Protect",0,[a],0,0);return}j(this,"Protect",0,[a,b],0,0)};a.prototype.unprotect=function(a){j(this,"Unprotect",0,[a],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Options))this._O=a.Options;if(!c(a.Protected))this._P=a.Protected};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{options:this._O,"protected":this._P},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.WorksheetProtection=of;var dj="WorksheetFreezePanes",Ve=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"WorksheetFreezePanes"},enumerable:true,configurable:true});b.prototype.freezeAt=function(a){j(this,"FreezeAt",0,[a],0,0)};b.prototype.freezeColumns=function(a){j(this,"FreezeColumns",0,[a],0,0)};b.prototype.freezeRows=function(a){j(this,"FreezeRows",0,[a],0,0)};b.prototype.getLocation=function(){return d(a.Range,this,"GetLocation",1,[],false,true,null,4)};b.prototype.getLocationOrNullObject=function(){return d(a.Range,this,"GetLocationOrNullObject",1,[],false,true,null,4)};b.prototype.unfreeze=function(){j(this,"Unfreeze",0,[],0,0)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{})};return b}(OfficeExtension.ClientObject);a.WorksheetFreezePanes=Ve;var y="Range",Rb=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"Range"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["numberFormat","numberFormatLocal","values","text","formulas","formulasLocal","rowIndex","columnIndex","rowCount","columnCount","address","addressLocal","cellCount","_ReferenceId","valueTypes","formulasR1C1","hidden","rowHidden","columnHidden","isEntireColumn","isEntireRow","hyperlink","style","linkedDataTypeState"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,false,true,true,false,false,false,false,false,false,false,false,false,true,false,true,true,false,false,true,true,false]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["format","worksheet","sort","conditionalFormats","dataValidation"]},enumerable:true,configurable:true});i.prototype._ensureInteger=function(b,c){!(typeof b==="number"&&isFinite(b)&&Math.floor(b)===b)&&OfficeExtension.Utility.throwError(a.ErrorCodes.invalidArgument,b,c)};i.prototype._getAdjacentRange=function(h,a,d,e,c){if(a==null)a=1;this._ensureInteger(a,h);var b,g=0,f=0;if(a>0)b=d.getOffsetRange(e,c);else{b=d;g=e;f=c}if(Math.abs(a)===1)return b;return b.getBoundingRect(d.getOffsetRange(e*a+g,c*a+f))};Object.defineProperty(i.prototype,"conditionalFormats",{"get":function(){e("Range.conditionalFormats",f,"1.6",g);if(!this._Con)this._Con=l(a.ConditionalFormatCollection,this,"ConditionalFormats",true,4);return this._Con},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"dataValidation",{"get":function(){e("Range.dataValidation",f,"1.8",g);if(!this._D)this._D=l(a.DataValidation,this,"DataValidation",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.RangeFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"sort",{"get":function(){e("Range.sort",f,"1.2",g);if(!this._S)this._S=l(a.RangeSort,this,"Sort",false,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"worksheet",{"get":function(){if(!this._W)this._W=l(a.Worksheet,this,"Worksheet",false,4);return this._W},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"address",{"get":function(){b("address",this._A,y,this._isNull);return this._A},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"addressLocal",{"get":function(){b("addressLocal",this._Ad,y,this._isNull);return this._Ad},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"cellCount",{"get":function(){b("cellCount",this._C,y,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"columnCount",{"get":function(){b("columnCount",this._Co,y,this._isNull);return this._Co},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"columnHidden",{"get":function(){b("columnHidden",this._Col,y,this._isNull);e("Range.columnHidden",f,"1.2",g);return this._Col},"set":function(a){this._Col=a;h(this,"ColumnHidden",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"columnIndex",{"get":function(){b("columnIndex",this._Colu,y,this._isNull);return this._Colu},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"formulas",{"get":function(){b("formulas",this.m_formulas,y,this._isNull);return this.m_formulas},"set":function(a){this.m_formulas=a;if(kb(this,"Formulas",a))return;this.m_formulas=a;h(this,"Formulas",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"formulasLocal",{"get":function(){b("formulasLocal",this.m_formulasLocal,y,this._isNull);return this.m_formulasLocal},"set":function(a){this.m_formulasLocal=a;if(kb(this,"FormulasLocal",a))return;this.m_formulasLocal=a;h(this,"FormulasLocal",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"formulasR1C1",{"get":function(){b("formulasR1C1",this.m_formulasR1C1,y,this._isNull);e("Range.formulasR1C1",f,"1.2",g);return this.m_formulasR1C1},"set":function(a){this.m_formulasR1C1=a;if(kb(this,"FormulasR1C1",a))return;this.m_formulasR1C1=a;h(this,"FormulasR1C1",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"hidden",{"get":function(){b("hidden",this._H,y,this._isNull);e("Range.hidden",f,"1.2",g);return this._H},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"hyperlink",{"get":function(){b("hyperlink",this._Hy,y,this._isNull);e("Range.hyperlink",f,"1.7",g);return this._Hy},"set":function(a){this._Hy=a;h(this,"Hyperlink",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"isEntireColumn",{"get":function(){b("isEntireColumn",this.m_isEntireColumn,y,this._isNull);e("Range.isEntireColumn",f,"1.7",g);return this.m_isEntireColumn},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"isEntireRow",{"get":function(){b("isEntireRow",this.m_isEntireRow,y,this._isNull);e("Range.isEntireRow",f,"1.7",g);return this.m_isEntireRow},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"linkedDataTypeState",{"get":function(){b("linkedDataTypeState",this._L,y,this._isNull);e("Range.linkedDataTypeState",f,"1.9",g);return this._L},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"numberFormat",{"get":function(){b("numberFormat",this.m_numberFormat,y,this._isNull);return this.m_numberFormat},"set":function(a){this.m_numberFormat=a;if(kb(this,"NumberFormat",a))return;this.m_numberFormat=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"numberFormatLocal",{"get":function(){b("numberFormatLocal",this._N,y,this._isNull);e("Range.numberFormatLocal",f,"1.7",g);return this._N},"set":function(a){this._N=a;h(this,"NumberFormatLocal",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"rowCount",{"get":function(){b("rowCount",this._R,y,this._isNull);return this._R},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"rowHidden",{"get":function(){b("rowHidden",this._Ro,y,this._isNull);e("Range.rowHidden",f,"1.2",g);return this._Ro},"set":function(a){this._Ro=a;h(this,"RowHidden",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"rowIndex",{"get":function(){b("rowIndex",this._Row,y,this._isNull);return this._Row},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"style",{"get":function(){b("style",this._St,y,this._isNull);e("Range.style",f,"1.7",g);return this._St},"set":function(a){this._St=a;h(this,"Style",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"text",{"get":function(){b("text",this._T,y,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"valueTypes",{"get":function(){b("valueTypes",this._V,y,this._isNull);return this._V},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"values",{"get":function(){b("values",this.m_values,y,this._isNull);return this.m_values},"set":function(a){this.m_values=a;if(kb(this,"Values",a))return;this.m_values=a;h(this,"Values",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_ReferenceId",{"get":function(){b("_ReferenceId",this.__R,y,this._isNull);return this.__R},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["numberFormat","numberFormatLocal","values","formulas","formulasLocal","formulasR1C1","rowHidden","columnHidden","hyperlink","style"],["format","dataValidation"],["conditionalFormats","sort","worksheet"])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.autoFill=function(a,b){e("Range.autoFill",f,"1.9",g);j(this,"AutoFill",0,[a,b],0,0)};i.prototype.calculate=function(){e("Range.calculate",f,"1.6",g);j(this,"Calculate",0,[],0,0)};i.prototype.clear=function(a){j(this,"Clear",0,[a],0,0)};i.prototype.convertDataTypeToText=function(){e("Range.convertDataTypeToText",f,"1.9",g);j(this,"ConvertDataTypeToText",0,[],0,0)};i.prototype.convertToLinkedDataType=function(b,a){e("Range.convertToLinkedDataType",f,"1.9",g);j(this,"ConvertToLinkedDataType",0,[b,a],0,0)};i.prototype.copyFrom=function(a,d,b,c){e("Range.copyFrom",f,"1.9",g);j(this,"CopyFrom",0,[a,d,b,c],0,0)};i.prototype["delete"]=function(a){j(this,"Delete",0,[a],0,0)};i.prototype.find=function(c,b){e("Range.find",f,"1.9",g);return d(a.Range,this,"Find",1,[c,b],false,true,null,4)};i.prototype.findOrNullObject=function(c,b){e("Range.findOrNullObject",f,"1.9",g);return d(a.Range,this,"FindOrNullObject",1,[c,b],false,true,null,4)};i.prototype.flashFill=function(){e("Range.flashFill",f,"1.9",g);j(this,"FlashFill",0,[],0,0)};i.prototype.getAbsoluteResizedRange=function(c,b){e("Range.getAbsoluteResizedRange",f,"1.7",g);return d(a.Range,this,"GetAbsoluteResizedRange",1,[c,b],false,true,null,4)};i.prototype.getBoundingRect=function(b){return d(a.Range,this,"GetBoundingRect",1,[b],false,true,null,4)};i.prototype.getCell=function(c,b){return d(a.Range,this,"GetCell",1,[c,b],false,true,null,4)};i.prototype.getCellProperties=function(a){e("Range.getCellProperties",f,"1.9",g);return j(this,"GetCellProperties",0,[a],0,0)};i.prototype.getColumn=function(b){return d(a.Range,this,"GetColumn",1,[b],false,true,null,4)};i.prototype.getColumnProperties=function(a){e("Range.getColumnProperties",f,"1.9",g);return j(this,"GetColumnProperties",0,[a],0,0)};i.prototype.getColumnsAfter=function(b){if(!bb()){if(b==null)b=1;this._ensureInteger(b,"RowsAbove");b===0&&OfficeExtension.Utility.throwError(a.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getColumnsAfter",b,this.getLastColumn(),0,1)}e("Range.getColumnsAfter",f,"1.3",g);return d(a.Range,this,"GetColumnsAfter",1,[b],false,true,null,4)};i.prototype.getColumnsBefore=function(b){if(!bb()){if(b==null)b=1;this._ensureInteger(b,"RowsAbove");b===0&&OfficeExtension.Utility.throwError(a.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getColumnsBefore",b,this.getColumn(0),0,-1)}e("Range.getColumnsBefore",f,"1.3",g);return d(a.Range,this,"GetColumnsBefore",1,[b],false,true,null,4)};i.prototype.getEntireColumn=function(){return d(a.Range,this,"GetEntireColumn",1,[],false,true,null,4)};i.prototype.getEntireRow=function(){return d(a.Range,this,"GetEntireRow",1,[],false,true,null,4)};i.prototype.getImage=function(){e("Range.getImage",f,"1.7",g);return j(this,"GetImage",1,[],4,0)};i.prototype.getIntersection=function(b){return d(a.Range,this,"GetIntersection",1,[b],false,true,null,4)};i.prototype.getIntersectionOrNullObject=function(b){e("Range.getIntersectionOrNullObject",f,"1.4",g);return d(a.Range,this,"GetIntersectionOrNullObject",1,[b],false,true,null,4)};i.prototype.getLastCell=function(){return d(a.Range,this,"GetLastCell",1,[],false,true,null,4)};i.prototype.getLastColumn=function(){return d(a.Range,this,"GetLastColumn",1,[],false,true,null,4)};i.prototype.getLastRow=function(){return d(a.Range,this,"GetLastRow",1,[],false,true,null,4)};i.prototype.getOffsetRange=function(c,b){return d(a.Range,this,"GetOffsetRange",1,[c,b],false,true,null,4)};i.prototype.getResizedRange=function(c,b){if(!bb()){this._ensureInteger(c,"getResizedRange");this._ensureInteger(b,"getResizedRange");var h=c>=0&&b>=0?this:this.getCell(0,0);return h.getBoundingRect(this.getLastCell().getOffsetRange(c,b))}e("Range.getResizedRange",f,"1.3",g);return d(a.Range,this,"GetResizedRange",1,[c,b],false,true,null,4)};i.prototype.getRow=function(b){return d(a.Range,this,"GetRow",1,[b],false,true,null,4)};i.prototype.getRowProperties=function(a){e("Range.getRowProperties",f,"1.9",g);return j(this,"GetRowProperties",0,[a],0,0)};i.prototype.getRowsAbove=function(b){if(!bb()){if(b==null)b=1;this._ensureInteger(b,"RowsAbove");b===0&&OfficeExtension.Utility.throwError(a.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getRowsAbove",b,this.getRow(0),-1,0)}e("Range.getRowsAbove",f,"1.3",g);return d(a.Range,this,"GetRowsAbove",1,[b],false,true,null,4)};i.prototype.getRowsBelow=function(b){if(!bb()){if(b==null)b=1;this._ensureInteger(b,"RowsAbove");b===0&&OfficeExtension.Utility.throwError(a.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getRowsBelow",b,this.getLastRow(),1,0)}e("Range.getRowsBelow",f,"1.3",g);return d(a.Range,this,"GetRowsBelow",1,[b],false,true,null,4)};i.prototype.getSpecialCells=function(c,b){e("Range.getSpecialCells",f,"1.9",g);return d(a.RangeAreas,this,"GetSpecialCells",1,[c,b],false,true,null,4)};i.prototype.getSpecialCellsOrNullObject=function(c,b){e("Range.getSpecialCellsOrNullObject",f,"1.9",g);return d(a.RangeAreas,this,"GetSpecialCellsOrNullObject",1,[c,b],false,true,null,4)};i.prototype.getSurroundingRegion=function(){e("Range.getSurroundingRegion",f,"1.7",g);return d(a.Range,this,"GetSurroundingRegion",1,[],false,true,null,4)};i.prototype.getTables=function(b){e("Range.getTables",f,"1.9",g);return d(a.TableScopedCollection,this,"GetTables",1,[b],true,false,null,4)};i.prototype.getUsedRange=function(b){return d(a.Range,this,"GetUsedRange",1,[b],false,true,null,4)};i.prototype.getUsedRangeOrNullObject=function(b){e("Range.getUsedRangeOrNullObject",f,"1.4",g);return d(a.Range,this,"GetUsedRangeOrNullObject",1,[b],false,true,null,4)};i.prototype.getVisibleView=function(){e("Range.getVisibleView",f,"1.3",g);return d(a.RangeView,this,"GetVisibleView",1,[],false,false,null,4)};i.prototype.insert=function(b){return d(a.Range,this,"Insert",0,[b],false,true,null,0)};i.prototype.merge=function(a){e("Range.merge",f,"1.2",g);j(this,"Merge",0,[a],0,0)};i.prototype.removeDuplicates=function(c,b){e("Range.removeDuplicates",f,"1.9",g);return d(a.RemoveDuplicatesResult,this,"RemoveDuplicates",0,[c,b],false,true,null,0)};i.prototype.replaceAll=function(c,a,b){e("Range.replaceAll",f,"1.9",g);return j(this,"ReplaceAll",0,[c,a,b],0,0)};i.prototype.select=function(){j(this,"Select",1,[],0,0)};i.prototype.setCellProperties=function(a){e("Range.setCellProperties",f,"1.9",g);j(this,"SetCellProperties",0,[a],0,0)};i.prototype.setColumnProperties=function(a){e("Range.setColumnProperties",f,"1.9",g);j(this,"SetColumnProperties",0,[a],0,0)};i.prototype.setDirty=function(){e("Range.setDirty",f,"1.9",g);j(this,"SetDirty",0,[],0,0)};i.prototype.setRowProperties=function(a){e("Range.setRowProperties",f,"1.9",g);j(this,"SetRowProperties",0,[a],0,0)};i.prototype.showCard=function(){e("Range.showCard",f,"1.7",g);j(this,"ShowCard",0,[],0,0)};i.prototype.showTeachingCallout=function(b,a){e("Range.showTeachingCallout",f,"1.9",g);j(this,"ShowTeachingCallout",0,[b,a],0,0)};i.prototype.unmerge=function(){e("Range.unmerge",f,"1.2",g);j(this,"Unmerge",0,[],0,0)};i.prototype._KeepReference=function(){j(this,"_KeepReference",1,[],0,0)};i.prototype._ValidateArraySize=function(b,a){e("Range._ValidateArraySize",f,"1.3",g);j(this,"_ValidateArraySize",1,[b,a],4,0)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.isEntireColumn))this.m_isEntireColumn=a.isEntireColumn;if(!c(a.isEntireRow))this.m_isEntireRow=a.isEntireRow;if(!c(a.Address))this._A=a.Address;if(!c(a.AddressLocal))this._Ad=a.AddressLocal;if(!c(a.CellCount))this._C=a.CellCount;if(!c(a.ColumnCount))this._Co=a.ColumnCount;if(!c(a.ColumnHidden))this._Col=a.ColumnHidden;if(!c(a.ColumnIndex))this._Colu=a.ColumnIndex;if(!c(a.Formulas))this.m_formulas=a.Formulas;if(!c(a.FormulasLocal))this.m_formulasLocal=a.FormulasLocal;if(!c(a.FormulasR1C1))this.m_formulasR1C1=a.FormulasR1C1;if(!c(a.Hidden))this._H=a.Hidden;if(!c(a.Hyperlink))this._Hy=a.Hyperlink;if(!c(a.IsEntireColumn))this.m_isEntireColumn=a.IsEntireColumn;if(!c(a.IsEntireRow))this.m_isEntireRow=a.IsEntireRow;if(!c(a.LinkedDataTypeState))this._L=a.LinkedDataTypeState;if(!c(a.NumberFormat))this.m_numberFormat=a.NumberFormat;if(!c(a.NumberFormatLocal))this._N=a.NumberFormatLocal;if(!c(a.RowCount))this._R=a.RowCount;if(!c(a.RowHidden))this._Ro=a.RowHidden;if(!c(a.RowIndex))this._Row=a.RowIndex;if(!c(a.Style))this._St=a.Style;if(!c(a.Text))this._T=a.Text;if(!c(a.ValueTypes))this._V=a.ValueTypes;if(!c(a.Values))this.m_values=a.Values;if(!c(a._ReferenceId))this.__R=a._ReferenceId;s(this,a,["conditionalFormats","ConditionalFormats","dataValidation","DataValidation","format","Format","sort","Sort","worksheet","Worksheet"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleIdResult=function(a){t.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a._ReferenceId))this.__R=a._ReferenceId};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.track=function(){this.context.trackedObjects.add(this);return this};i.prototype.untrack=function(){this.context.trackedObjects.remove(this);return this};i.prototype.toJSON=function(){return o(this,{address:this._A,addressLocal:this._Ad,cellCount:this._C,columnCount:this._Co,columnHidden:this._Col,columnIndex:this._Colu,formulas:this.m_formulas,formulasLocal:this.m_formulasLocal,formulasR1C1:this.m_formulasR1C1,hidden:this._H,hyperlink:this._Hy,isEntireColumn:this.m_isEntireColumn,isEntireRow:this.m_isEntireRow,linkedDataTypeState:this._L,numberFormat:this.m_numberFormat,numberFormatLocal:this._N,rowCount:this._R,rowHidden:this._Ro,rowIndex:this._Row,style:this._St,text:this._T,values:this.m_values,valueTypes:this._V},{conditionalFormats:this._Con,dataValidation:this._D,format:this._F})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.Range=Rb;var S="RangeAreas",Xh=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"RangeAreas"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["_ReferenceId","address","addressLocal","areaCount","cellCount","isEntireColumn","isEntireRow","style"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,false,false,false,false,false,false,true]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_navigationPropertyNames",{"get":function(){return["areas","conditionalFormats","format","dataValidation","worksheet"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"areas",{"get":function(){if(!this._Are)this._Are=l(a.RangeCollection,this,"Areas",true,4);return this._Are},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"conditionalFormats",{"get":function(){if(!this._Co)this._Co=l(a.ConditionalFormatCollection,this,"ConditionalFormats",true,4);return this._Co},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"dataValidation",{"get":function(){if(!this._D)this._D=l(a.DataValidation,this,"DataValidation",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.RangeFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"worksheet",{"get":function(){if(!this._W)this._W=l(a.Worksheet,this,"Worksheet",false,4);return this._W},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"address",{"get":function(){b("address",this._A,S,this._isNull);return this._A},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"addressLocal",{"get":function(){b("addressLocal",this._Ad,S,this._isNull);return this._Ad},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"areaCount",{"get":function(){b("areaCount",this._Ar,S,this._isNull);return this._Ar},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"cellCount",{"get":function(){b("cellCount",this._C,S,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"isEntireColumn",{"get":function(){b("isEntireColumn",this.m_isEntireColumn,S,this._isNull);return this.m_isEntireColumn},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"isEntireRow",{"get":function(){b("isEntireRow",this.m_isEntireRow,S,this._isNull);return this.m_isEntireRow},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"style",{"get":function(){b("style",this._S,S,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Style",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_ReferenceId",{"get":function(){b("_ReferenceId",this.__R,S,this._isNull);return this.__R},enumerable:true,configurable:true});e.prototype.set=function(a,b){this._recursivelySet(a,b,["style"],["format","dataValidation"],["areas","conditionalFormats","worksheet"])};e.prototype.update=function(a){this._recursivelyUpdate(a)};e.prototype.calculate=function(){j(this,"Calculate",0,[],0,0)};e.prototype.clear=function(a){j(this,"Clear",0,[a],0,0)};e.prototype.convertDataTypeToText=function(){j(this,"ConvertDataTypeToText",0,[],0,0)};e.prototype.convertToLinkedDataType=function(b,a){j(this,"ConvertToLinkedDataType",0,[b,a],0,0)};e.prototype.copyFrom=function(a,d,b,c){j(this,"CopyFrom",0,[a,d,b,c],0,0)};e.prototype.getEntireColumn=function(){return d(a.RangeAreas,this,"GetEntireColumn",1,[],false,true,null,4)};e.prototype.getEntireRow=function(){return d(a.RangeAreas,this,"GetEntireRow",1,[],false,true,null,4)};e.prototype.getIntersection=function(b){return d(a.RangeAreas,this,"GetIntersection",1,[b],false,true,null,4)};e.prototype.getIntersectionOrNullObject=function(b){return d(a.RangeAreas,this,"GetIntersectionOrNullObject",1,[b],false,true,null,4)};e.prototype.getOffsetRangeAreas=function(c,b){return d(a.RangeAreas,this,"GetOffsetRangeAreas",1,[c,b],false,true,null,4)};e.prototype.getSpecialCells=function(c,b){return d(a.RangeAreas,this,"GetSpecialCells",1,[c,b],false,true,null,4)};e.prototype.getSpecialCellsOrNullObject=function(c,b){return d(a.RangeAreas,this,"GetSpecialCellsOrNullObject",1,[c,b],false,true,null,4)};e.prototype.getTables=function(b){return d(a.TableScopedCollection,this,"GetTables",1,[b],true,false,null,4)};e.prototype.getUsedRangeAreas=function(b){return d(a.RangeAreas,this,"GetUsedRangeAreas",1,[b],false,true,null,4)};e.prototype.getUsedRangeAreasOrNullObject=function(b){return d(a.RangeAreas,this,"GetUsedRangeAreasOrNullObject",1,[b],false,true,null,4)};e.prototype.setDirty=function(){j(this,"SetDirty",0,[],0,0)};e.prototype._KeepReference=function(){j(this,"_KeepReference",1,[],0,0)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Address))this._A=a.Address;if(!c(a.AddressLocal))this._Ad=a.AddressLocal;if(!c(a.AreaCount))this._Ar=a.AreaCount;if(!c(a.CellCount))this._C=a.CellCount;if(!c(a.IsEntireColumn))this.m_isEntireColumn=a.IsEntireColumn;if(!c(a.IsEntireRow))this.m_isEntireRow=a.IsEntireRow;if(!c(a.Style))this._S=a.Style;if(!c(a._ReferenceId))this.__R=a._ReferenceId;s(this,a,["areas","Areas","conditionalFormats","ConditionalFormats","dataValidation","DataValidation","format","Format","worksheet","Worksheet"])};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleIdResult=function(a){f.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a._ReferenceId))this.__R=a._ReferenceId};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};e.prototype.track=function(){this.context.trackedObjects.add(this);return this};e.prototype.untrack=function(){this.context.trackedObjects.remove(this);return this};e.prototype.toJSON=function(){return o(this,{address:this._A,addressLocal:this._Ad,areaCount:this._Ar,cellCount:this._C,isEntireColumn:this.m_isEntireColumn,isEntireRow:this.m_isEntireRow,style:this._S},{areas:this._Are,conditionalFormats:this._Co,dataValidation:this._D,format:this._F})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.RangeAreas=Xh;var L="RangeView",ri=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"RangeView"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["numberFormat","values","text","formulas","formulasLocal","formulasR1C1","valueTypes","rowCount","columnCount","cellAddresses","index"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,false,true,true,true,false,false,false,false,false]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_navigationPropertyNames",{"get":function(){return["rows"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"rows",{"get":function(){if(!this._Ro)this._Ro=l(a.RangeViewCollection,this,"Rows",true,4);return this._Ro},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"cellAddresses",{"get":function(){b("cellAddresses",this._C,L,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"columnCount",{"get":function(){b("columnCount",this._Co,L,this._isNull);return this._Co},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"formulas",{"get":function(){b("formulas",this._F,L,this._isNull);return this._F},"set":function(a){this._F=a;h(this,"Formulas",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"formulasLocal",{"get":function(){b("formulasLocal",this._Fo,L,this._isNull);return this._Fo},"set":function(a){this._Fo=a;h(this,"FormulasLocal",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"formulasR1C1",{"get":function(){b("formulasR1C1",this._For,L,this._isNull);return this._For},"set":function(a){this._For=a;h(this,"FormulasR1C1",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"index",{"get":function(){b("index",this._I,L,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"numberFormat",{"get":function(){b("numberFormat",this._N,L,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"rowCount",{"get":function(){b("rowCount",this._R,L,this._isNull);return this._R},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"text",{"get":function(){b("text",this._T,L,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"valueTypes",{"get":function(){b("valueTypes",this._Va,L,this._isNull);return this._Va},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"values",{"get":function(){b("values",this._V,L,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Values",a,0)},enumerable:true,configurable:true});e.prototype.set=function(a,b){this._recursivelySet(a,b,["numberFormat","values","formulas","formulasLocal","formulasR1C1"],[],["rows"])};e.prototype.update=function(a){this._recursivelyUpdate(a)};e.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,true,null,4)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.CellAddresses))this._C=a.CellAddresses;if(!c(a.ColumnCount))this._Co=a.ColumnCount;if(!c(a.Formulas))this._F=a.Formulas;if(!c(a.FormulasLocal))this._Fo=a.FormulasLocal;if(!c(a.FormulasR1C1))this._For=a.FormulasR1C1;if(!c(a.Index))this._I=a.Index;if(!c(a.NumberFormat))this._N=a.NumberFormat;if(!c(a.RowCount))this._R=a.RowCount;if(!c(a.Text))this._T=a.Text;if(!c(a.ValueTypes))this._Va=a.ValueTypes;if(!c(a.Values))this._V=a.Values;s(this,a,["rows","Rows"])};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};e.prototype.toJSON=function(){return o(this,{cellAddresses:this._C,columnCount:this._Co,formulas:this._F,formulasLocal:this._Fo,formulasR1C1:this._For,index:this._I,numberFormat:this._N,rowCount:this._R,text:this._T,values:this._V,valueTypes:this._Va},{rows:this._Ro})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.RangeView=ri;var Qd="RangeViewCollection",mf=function(h){__extends(c,h);function c(){return h!==null&&h.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"RangeViewCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Qd,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){e("RangeViewCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};c.prototype.getItemAt=function(b){return d(a.RangeView,this,"GetItemAt",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){h.prototype._handleResult.call(this,c);if(k(c))return;var e=c;m(this,e);if(!k(e[OfficeExtension.Constants.items])){this.m__items=[];for(var d=e[OfficeExtension.Constants.items],b=0;b<d.length;b++){var f=t(a.RangeView,false,this,d[b],b);f._handleResult(d[b]);this.m__items.push(f)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;h.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.RangeView,false,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.RangeViewCollection=mf;var ie="SettingCollection",Pf=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"SettingCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,ie,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(c,b){b=xc._replaceDateWithStringDate(b);return d(a.Setting,this,"Add",0,[c,b],false,true,null,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.Setting,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.Setting,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.Setting,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Setting,true,d,b,c)})};Object.defineProperty(c.prototype,"onSettingsChanged",{"get":function(){var a=this;if(!this.m_settingsChanged)this.m_settingsChanged=new OfficeExtension.EventHandlers(this.context,this,"SettingsChanged",{registerFunc:function(b){return a.context.eventRegistration.register(1,"",b)},unregisterFunc:function(b){return a.context.eventRegistration.unregister(1,"",b)},eventArgsTransformFunc:function(b){return OfficeExtension.Utility._createPromiseFromResult({settings:a})}});return this.m_settingsChanged},enumerable:true,configurable:true});c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.SettingCollection=Pf;var Qb="Setting",xc=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"Setting"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["key","value","_Id"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,false]},enumerable:true,configurable:true});a.replaceStringDateWithDate=function(b){var c=JSON.stringify(b);b=JSON.parse(c,function(d,b){var c;if(typeof b==="string"&&b&&b.length>6&&b.slice(0,5)===a.DateJSONPrefix&&b.slice(-1)===a.DateJSONSuffix){c=new Date(parseInt(b.slice(5,-1)));if(c)return c}return b});return b};a._replaceDateWithStringDate=function(b){var c=JSON.stringify(b,function(b,c){return this[b]instanceof Date?a.DateJSONPrefix+this[b].getTime()+a.DateJSONSuffix:c});b=JSON.parse(c);return b};Object.defineProperty(a.prototype,"key",{"get":function(){b("key",this._K,Qb,this._isNull);return this._K},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"value",{"get":function(){b("value",this.m_value,Qb,this._isNull);return this.m_value},"set":function(b){if(!k(b)){this.m_value=b;var c=a._replaceDateWithStringDate(b);h(this,"Value",c,0);return}this.m_value=b;h(this,"Value",b,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_Id",{"get":function(){b("_Id",this.__I,Qb,this._isNull);return this.__I},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["value"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};a.prototype._handleResult=function(e){d.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Key))this._K=b.Key;if(!c(b.Value)){this.m_value=b.Value;this.m_value=a.replaceStringDateWithDate(this.m_value)}if(!c(b._Id))this.__I=b._Id};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleIdResult=function(a){d.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a._Id))this.__I=a._Id};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{key:this._K,value:this.m_value},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};a.DateJSONPrefix="Date(";a.DateJSONSuffix=")";return a}(OfficeExtension.ClientObject);a.Setting=xc;var Nd="NamedItemCollection",hf=function(h){__extends(c,h);function c(){return h!==null&&h.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"NamedItemCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Nd,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(h,b,c){e("NamedItemCollection.add",f,"1.4",g);return d(a.NamedItem,this,"Add",0,[h,b,c],false,true,null,0)};c.prototype.addFormulaLocal=function(h,c,b){e("NamedItemCollection.addFormulaLocal",f,"1.4",g);return d(a.NamedItem,this,"AddFormulaLocal",0,[h,c,b],false,false,null,0)};c.prototype.getCount=function(){e("NamedItemCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.NamedItem,this,[b])};c.prototype.getItemOrNullObject=function(b){e("NamedItemCollection.getItemOrNullObject",f,"1.4",g);return d(a.NamedItem,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){h.prototype._handleResult.call(this,c);if(k(c))return;var e=c;m(this,e);if(!k(e[OfficeExtension.Constants.items])){this.m__items=[];for(var d=e[OfficeExtension.Constants.items],b=0;b<d.length;b++){var f=t(a.NamedItem,true,this,d[b],b);f._handleResult(d[b]);this.m__items.push(f)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;h.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.NamedItem,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.NamedItemCollection=hf;var T="NamedItem",ii=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"NamedItem"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["name","type","value","visible","_Id","comment","scope","formula"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,false,false,true,false,true,false,true]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["worksheet","worksheetOrNullObject","arrayValues"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"arrayValues",{"get":function(){e("NamedItem.arrayValues",f,"1.7",g);if(!this._A)this._A=l(a.NamedItemArrayValues,this,"ArrayValues",false,4);return this._A},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"worksheet",{"get":function(){e("NamedItem.worksheet",f,"1.4",g);if(!this._W)this._W=l(a.Worksheet,this,"Worksheet",false,4);return this._W},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"worksheetOrNullObject",{"get":function(){e("NamedItem.worksheetOrNullObject",f,"1.4",g);if(!this._Wo)this._Wo=l(a.Worksheet,this,"WorksheetOrNullObject",false,4);return this._Wo},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"comment",{"get":function(){b("comment",this._C,T,this._isNull);e("NamedItem.comment",f,"1.4",g);return this._C},"set":function(a){this._C=a;h(this,"Comment",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"formula",{"get":function(){b("formula",this._F,T,this._isNull);e("NamedItem.formula",f,"1.7",g);return this._F},"set":function(a){this._F=a;h(this,"Formula",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"name",{"get":function(){b("name",this._N,T,this._isNull);return this._N},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"scope",{"get":function(){b("scope",this._S,T,this._isNull);e("NamedItem.scope",f,"1.4",g);return this._S},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"type",{"get":function(){b("type",this._T,T,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"value",{"get":function(){b("value",this._V,T,this._isNull);return this._V},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"visible",{"get":function(){b("visible",this._Vi,T,this._isNull);return this._Vi},"set":function(a){this._Vi=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_Id",{"get":function(){b("_Id",this.__I,T,this._isNull);return this.__I},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["visible","comment","formula"],[],["arrayValues","worksheet","worksheetOrNullObject"])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype["delete"]=function(){e("NamedItem.delete",f,"1.4",g);j(this,"Delete",0,[],0,0)};i.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,true,null,4)};i.prototype.getRangeOrNullObject=function(){e("NamedItem.getRangeOrNullObject",f,"1.4",g);return d(a.Range,this,"GetRangeOrNullObject",1,[],false,true,null,4)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Comment))this._C=a.Comment;if(!c(a.Formula))this._F=a.Formula;if(!c(a.Name))this._N=a.Name;if(!c(a.Scope))this._S=a.Scope;if(!c(a.Type))this._T=a.Type;if(!c(a.Value))this._V=a.Value;if(!c(a.Visible))this._Vi=a.Visible;if(!c(a._Id))this.__I=a._Id;s(this,a,["arrayValues","ArrayValues","worksheet","Worksheet","worksheetOrNullObject","WorksheetOrNullObject"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleIdResult=function(a){t.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a._Id))this.__I=a._Id};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.toJSON=function(){return o(this,{comment:this._C,formula:this._F,name:this._N,scope:this._S,type:this._T,value:this._V,visible:this._Vi},{arrayValues:this._A})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.NamedItem=ii;var ac="NamedItemArrayValues",Pe=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"NamedItemArrayValues"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["values","types"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"types",{"get":function(){b("types",this._T,ac,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"values",{"get":function(){b("values",this._V,ac,this._isNull);return this._V},enumerable:true,configurable:true});a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Types))this._T=a.Types;if(!c(a.Values))this._V=a.Values};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{types:this._T,values:this._V},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.NamedItemArrayValues=Pe;var tc="Binding",Fi=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"Binding"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["id","type"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"id",{"get":function(){b("id",this._I,tc,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"type",{"get":function(){b("type",this._T,tc,this._isNull);return this._T},enumerable:true,configurable:true});h.prototype["delete"]=function(){e("Binding.delete",f,"1.3",g);j(this,"Delete",0,[],0,0)};h.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,false,null,4)};h.prototype.getTable=function(){return d(a.Table,this,"GetTable",1,[],false,false,null,4)};h.prototype.getText=function(){return j(this,"GetText",1,[],4,0)};h.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.Type))this._T=a.Type};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleIdResult=function(a){i.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};h.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};Object.defineProperty(h.prototype,"onDataChanged",{"get":function(){var a=this;e("Binding.onDataChanged",f,"1.3",g);if(!this.m_dataChanged)this.m_dataChanged=new OfficeExtension.EventHandlers(this.context,this,"DataChanged",{registerFunc:function(b){return a.context.eventRegistration.register(4,a.id,b)},unregisterFunc:function(b){return a.context.eventRegistration.unregister(4,a.id,b)},eventArgsTransformFunc:function(c){var b={binding:a};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_dataChanged},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"onSelectionChanged",{"get":function(){var a=this;e("Binding.onSelectionChanged",f,"1.3",g);if(!this.m_selectionChanged)this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(b){return a.context.eventRegistration.register(3,a.id,b)},unregisterFunc:function(b){return a.context.eventRegistration.unregister(3,a.id,b)},eventArgsTransformFunc:function(b){var c={binding:a,columnCount:b.columnCount,rowCount:b.rowCount,startColumn:b.startColumn,startRow:b.startRow};return OfficeExtension.Utility._createPromiseFromResult(c)}});return this.m_selectionChanged},enumerable:true,configurable:true});h.prototype.toJSON=function(){return o(this,{id:this._I,type:this._T},{})};h.prototype.ensureUnchanged=function(a){r(this,a);return};return h}(OfficeExtension.ClientObject);a.Binding=Fi;var fc="BindingCollection",Df=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"BindingCollection"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"items",{"get":function(){b("items",this.m__items,fc,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"count",{"get":function(){b("count",this._C,fc,this._isNull);return this._C},enumerable:true,configurable:true});h.prototype.add=function(c,b,h){e("BindingCollection.add",f,"1.3",g);return d(a.Binding,this,"Add",0,[c,b,h],false,true,null,0)};h.prototype.addFromNamedItem=function(c,b,h){e("BindingCollection.addFromNamedItem",f,"1.3",g);return d(a.Binding,this,"AddFromNamedItem",0,[c,b,h],false,false,null,0)};h.prototype.addFromSelection=function(b,c){e("BindingCollection.addFromSelection",f,"1.3",g);return d(a.Binding,this,"AddFromSelection",0,[b,c],false,false,null,0)};h.prototype.getCount=function(){e("BindingCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};h.prototype.getItem=function(b){return x(a.Binding,this,[b])};h.prototype.getItemAt=function(b){return d(a.Binding,this,"GetItemAt",1,[b],false,false,null,4)};h.prototype.getItemOrNullObject=function(b){e("BindingCollection.getItemOrNullObject",f,"1.4",g);return d(a.Binding,this,"GetItemOrNullObject",1,[b],false,false,null,4)};h.prototype._handleResult=function(e){i.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.Binding,true,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleRetrieveResult=function(c,b){var d=this;i.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Binding,true,d,b,c)})};h.prototype.toJSON=function(){return o(this,{count:this._C},{},this.m__items)};return h}(OfficeExtension.ClientObject);a.BindingCollection=Df;var jc="TableCollection",wg=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"TableCollection"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_ParentObject",{"get":function(){return this.m__ParentObject},"set":function(a){this.m__ParentObject=a},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"items",{"get":function(){b("items",this.m__items,jc,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"count",{"get":function(){b("count",this._C,jc,this._isNull);return this._C},enumerable:true,configurable:true});h.prototype.add=function(c,b){return d(a.Table,this,"Add",0,[c,b],false,true,null,0)};h.prototype.getCount=function(){e("TableCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};h.prototype.getItem=function(b){return x(a.Table,this,[b])};h.prototype.getItemAt=function(b){return d(a.Table,this,"GetItemAt",1,[b],false,false,null,4)};h.prototype.getItemOrNullObject=function(b){e("TableCollection.getItemOrNullObject",f,"1.4",g);return d(a.Table,this,"GetItemOrNullObject",1,[b],false,false,null,4)};h.prototype._RegisterAddedEvent=function(){e("TableCollection._RegisterAddedEvent",f,"1.9",g);j(this,"_RegisterAddedEvent",0,[],0,0)};h.prototype._RegisterDataChangedEvent=function(){e("TableCollection._RegisterDataChangedEvent",f,"1.7",g);j(this,"_RegisterDataChangedEvent",0,[],0,0)};h.prototype._RegisterDeletedEvent=function(){e("TableCollection._RegisterDeletedEvent",f,"1.9",g);j(this,"_RegisterDeletedEvent",0,[],0,0)};h.prototype._UnregisterAddedEvent=function(){e("TableCollection._UnregisterAddedEvent",f,"1.9",g);j(this,"_UnregisterAddedEvent",0,[],0,0)};h.prototype._UnregisterDataChangedEvent=function(){e("TableCollection._UnregisterDataChangedEvent",f,"1.7",g);j(this,"_UnregisterDataChangedEvent",0,[],0,0)};h.prototype._UnregisterDeletedEvent=function(){e("TableCollection._UnregisterDeletedEvent",f,"1.9",g);j(this,"_UnregisterDeletedEvent",0,[],0,0)};h.prototype._handleResult=function(e){i.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.Table,true,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleRetrieveResult=function(c,b){var d=this;i.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Table,true,d,b,c)})};Object.defineProperty(h.prototype,"onAdded",{"get":function(){var a=this;e("TableCollection.onAdded",f,"1.9",g);if(!this.m_added)this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:102,registerFunc:function(){return a._RegisterAddedEvent()},unregisterFunc:function(){return a._UnregisterAddedEvent()},getTargetIdFunc:function(){return a._ParentObject?a._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b={type:w.tableAdded,source:a.source,worksheetId:a.worksheetId,tableId:a.tableId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_added},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"onChanged",{"get":function(){var a=this;e("TableCollection.onChanged",f,"1.7",g);if(!this.m_changed)this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:101,registerFunc:function(){return a._RegisterDataChangedEvent()},unregisterFunc:function(){return a._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return a._ParentObject?a._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b;if(a.valueBefore!=null||a.valueAfter!=null)b={valueBefore:a.valueBefore,valueAfter:a.valueAfter,valueTypeBefore:a.valueTypeBefore,valueTypeAfter:a.valueTypeAfter};var c={type:w.tableChanged,changeType:a.changeType,source:a.source,worksheetId:a.worksheetId,tableId:a.tableId,address:a.address,getRange:function(b){e("TableChangedEventArgs.getRange",f,"1.8",g);return b.workbook._GetRangeForEventByReferenceId(a.referenceId)},getRangeOrNullObject:function(b){e("TableChangedEventArgs.getRangeOrNullObject",f,"1.8",g);return b.workbook._GetRangeOrNullObjectForEventByReferenceId(a.referenceId)},details:b};return OfficeExtension.Utility._createPromiseFromResult(c)}});return this.m_changed},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"onDeleted",{"get":function(){var a=this;e("TableCollection.onDeleted",f,"1.9",g);if(!this.m_deleted)this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:103,registerFunc:function(){return a._RegisterDeletedEvent()},unregisterFunc:function(){return a._UnregisterDeletedEvent()},getTargetIdFunc:function(){return a._ParentObject?a._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(a){var b={type:w.tableDeleted,source:a.source,worksheetId:a.worksheetId,tableId:a.tableId,tableName:a.tableName};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_deleted},enumerable:true,configurable:true});h.prototype.toJSON=function(){return o(this,{count:this._C},{},this.m__items)};return h}(OfficeExtension.ClientObject);a.TableCollection=wg;var ud="TableScopedCollection",we=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"TableScopedCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,ud,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getFirst=function(){return d(a.Table,this,"GetFirst",1,[],false,true,null,4)};c.prototype.getItem=function(b){return x(a.Table,this,[b])};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.Table,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Table,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.TableScopedCollection=we;var M="Table",Si=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"Table"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_collectionPropertyPath",{"get":function(){return"workbook.tables"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["id","name","showHeaders","showTotals","style","highlightFirstColumn","highlightLastColumn","showBandedRows","showBandedColumns","showFilterButton","legacyId"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true,true,true,true,true,true,false]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["columns","rows","sort","worksheet","autoFilter"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"autoFilter",{"get":function(){e("Table.autoFilter",f,"1.9",g);if(!this._A)this._A=l(a.AutoFilter,this,"AutoFilter",false,4);return this._A},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"columns",{"get":function(){if(!this._C)this._C=l(a.TableColumnCollection,this,"Columns",true,4);return this._C},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"rows",{"get":function(){if(!this._R)this._R=l(a.TableRowCollection,this,"Rows",true,4);return this._R},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"sort",{"get":function(){e("Table.sort",f,"1.2",g);if(!this._So)this._So=l(a.TableSort,this,"Sort",false,4);return this._So},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"worksheet",{"get":function(){e("Table.worksheet",f,"1.2",g);if(!this._W)this._W=l(a.Worksheet,this,"Worksheet",false,4);return this._W},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"highlightFirstColumn",{"get":function(){b("highlightFirstColumn",this._H,M,this._isNull);e("Table.highlightFirstColumn",f,"1.3",g);return this._H},"set":function(a){this._H=a;h(this,"HighlightFirstColumn",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"highlightLastColumn",{"get":function(){b("highlightLastColumn",this._Hi,M,this._isNull);e("Table.highlightLastColumn",f,"1.3",g);return this._Hi},"set":function(a){this._Hi=a;h(this,"HighlightLastColumn",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"id",{"get":function(){b("id",this._I,M,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"legacyId",{"get":function(){b("legacyId",this._L,M,this._isNull);e("Table.legacyId",f,"1.8",g);return this._L},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"name",{"get":function(){b("name",this._N,M,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showBandedColumns",{"get":function(){b("showBandedColumns",this._S,M,this._isNull);e("Table.showBandedColumns",f,"1.3",g);return this._S},"set":function(a){this._S=a;h(this,"ShowBandedColumns",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showBandedRows",{"get":function(){b("showBandedRows",this._Sh,M,this._isNull);e("Table.showBandedRows",f,"1.3",g);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowBandedRows",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showFilterButton",{"get":function(){b("showFilterButton",this._Sho,M,this._isNull);e("Table.showFilterButton",f,"1.3",g);return this._Sho},"set":function(a){this._Sho=a;h(this,"ShowFilterButton",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showHeaders",{"get":function(){b("showHeaders",this._Show,M,this._isNull);return this._Show},"set":function(a){this._Show=a;h(this,"ShowHeaders",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showTotals",{"get":function(){b("showTotals",this._ShowT,M,this._isNull);return this._ShowT},"set":function(a){this._ShowT=a;h(this,"ShowTotals",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"style",{"get":function(){b("style",this._St,M,this._isNull);return this._St},"set":function(a){this._St=a;h(this,"Style",a,0)},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["name","showHeaders","showTotals","style","highlightFirstColumn","highlightLastColumn","showBandedRows","showBandedColumns","showFilterButton"],[],["autoFilter","columns","rows","sort","worksheet"])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.clearFilters=function(){e("Table.clearFilters",f,"1.2",g);j(this,"ClearFilters",0,[],0,0)};i.prototype.convertToRange=function(){e("Table.convertToRange",f,"1.2",g);return d(a.Range,this,"ConvertToRange",0,[],false,true,null,0)};i.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};i.prototype.getDataBodyRange=function(){return d(a.Range,this,"GetDataBodyRange",1,[],false,true,null,4)};i.prototype.getHeaderRowRange=function(){return d(a.Range,this,"GetHeaderRowRange",1,[],false,true,null,4)};i.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,true,null,4)};i.prototype.getTotalRowRange=function(){return d(a.Range,this,"GetTotalRowRange",1,[],false,true,null,4)};i.prototype.reapplyFilters=function(){e("Table.reapplyFilters",f,"1.2",g);j(this,"ReapplyFilters",0,[],0,0)};i.prototype._RegisterDataChangedEvent=function(){e("Table._RegisterDataChangedEvent",f,"1.7",g);j(this,"_RegisterDataChangedEvent",0,[],0,0)};i.prototype._RegisterSelectionChangedEvent=function(){e("Table._RegisterSelectionChangedEvent",f,"1.7",g);j(this,"_RegisterSelectionChangedEvent",0,[],0,0)};i.prototype._UnregisterDataChangedEvent=function(){e("Table._UnregisterDataChangedEvent",f,"1.7",g);j(this,"_UnregisterDataChangedEvent",0,[],0,0)};i.prototype._UnregisterSelectionChangedEvent=function(){e("Table._UnregisterSelectionChangedEvent",f,"1.7",g);j(this,"_UnregisterSelectionChangedEvent",0,[],0,0)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))a.Id=a.Id.toString();if(!c(a.HighlightFirstColumn))this._H=a.HighlightFirstColumn;if(!c(a.HighlightLastColumn))this._Hi=a.HighlightLastColumn;if(!c(a.Id))this._I=a.Id;if(!c(a.LegacyId))this._L=a.LegacyId;if(!c(a.Name))this._N=a.Name;if(!c(a.ShowBandedColumns))this._S=a.ShowBandedColumns;if(!c(a.ShowBandedRows))this._Sh=a.ShowBandedRows;if(!c(a.ShowFilterButton))this._Sho=a.ShowFilterButton;if(!c(a.ShowHeaders))this._Show=a.ShowHeaders;if(!c(a.ShowTotals))this._ShowT=a.ShowTotals;if(!c(a.Style))this._St=a.Style;s(this,a,["autoFilter","AutoFilter","columns","Columns","rows","Rows","sort","Sort","worksheet","Worksheet"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleIdResult=function(a){t.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id)){a.Id=a.Id.toString();this._I=a.Id}};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};Object.defineProperty(i.prototype,"onChanged",{"get":function(){var a=this;e("Table.onChanged",f,"1.7",g);if(!this.m_changed)this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:101,registerFunc:function(){return a._RegisterDataChangedEvent()},unregisterFunc:function(){return a._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return a.id.toString()},eventArgsTransformFunc:function(a){var b;if(a.valueBefore!=null||a.valueAfter!=null)b={valueBefore:a.valueBefore,valueAfter:a.valueAfter,valueTypeBefore:a.valueTypeBefore,valueTypeAfter:a.valueTypeAfter};var c={type:w.tableChanged,changeType:a.changeType,source:a.source,worksheetId:a.worksheetId,tableId:a.tableId,address:a.address,getRange:function(b){e("TableChangedEventArgs.getRange",f,"1.8",g);return b.workbook._GetRangeForEventByReferenceId(a.referenceId)},getRangeOrNullObject:function(b){e("TableChangedEventArgs.getRangeOrNullObject",f,"1.8",g);return b.workbook._GetRangeOrNullObjectForEventByReferenceId(a.referenceId)},details:b};return OfficeExtension.Utility._createPromiseFromResult(c)}});return this.m_changed},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"onSelectionChanged",{"get":function(){var a=this;e("Table.onSelectionChanged",f,"1.7",g);if(!this.m_selectionChanged)this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:100,registerFunc:function(){a._RegisterSelectionChangedEvent()},unregisterFunc:function(){a._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(b){var c=!b.address||b.address.length===0,d={type:w.tableSelectionChanged,isInsideTable:!c,worksheetId:b.worksheetId,tableId:a.id,address:b.address};return OfficeExtension.Utility._createPromiseFromResult(d)}});return this.m_selectionChanged},enumerable:true,configurable:true});i.prototype.toJSON=function(){return o(this,{highlightFirstColumn:this._H,highlightLastColumn:this._Hi,id:this._I,legacyId:this._L,name:this._N,showBandedColumns:this._S,showBandedRows:this._Sh,showFilterButton:this._Sho,showHeaders:this._Show,showTotals:this._ShowT,style:this._St},{autoFilter:this._A,columns:this._C,rows:this._R,sort:this._So})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.Table=Si;var Yb="TableColumnCollection",ve=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"TableColumnCollection"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"items",{"get":function(){b("items",this.m__items,Yb,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"count",{"get":function(){b("count",this._C,Yb,this._isNull);return this._C},enumerable:true,configurable:true});h.prototype.add=function(c,b,e){return d(a.TableColumn,this,"Add",0,[c,b,e],false,true,null,0)};h.prototype.getCount=function(){e("TableColumnCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};h.prototype.getItem=function(b){return x(a.TableColumn,this,[b])};h.prototype.getItemAt=function(b){return d(a.TableColumn,this,"GetItemAt",1,[b],false,false,null,4)};h.prototype.getItemOrNullObject=function(b){e("TableColumnCollection.getItemOrNullObject",f,"1.4",g);return d(a.TableColumn,this,"GetItemOrNullObject",1,[b],false,false,null,4)};h.prototype._handleResult=function(e){i.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.TableColumn,true,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleRetrieveResult=function(c,b){var d=this;i.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.TableColumn,true,d,b,c)})};h.prototype.toJSON=function(){return o(this,{count:this._C},{},this.m__items)};return h}(OfficeExtension.ClientObject);a.TableColumnCollection=ve;var tb="TableColumn",Lh=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"TableColumn"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["id","index","values","name"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,false,true,true]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["filter"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"filter",{"get":function(){e("TableColumn.filter",f,"1.2",g);if(!this._F)this._F=l(a.Filter,this,"Filter",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"id",{"get":function(){b("id",this._I,tb,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"index",{"get":function(){b("index",this._In,tb,this._isNull);return this._In},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"name",{"get":function(){b("name",this._N,tb,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"values",{"get":function(){b("values",this._V,tb,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Values",a,0)},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["values","name"],[],["filter"])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};i.prototype.getDataBodyRange=function(){return d(a.Range,this,"GetDataBodyRange",1,[],false,true,null,4)};i.prototype.getHeaderRowRange=function(){return d(a.Range,this,"GetHeaderRowRange",1,[],false,true,null,4)};i.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,true,null,4)};i.prototype.getTotalRowRange=function(){return d(a.Range,this,"GetTotalRowRange",1,[],false,true,null,4)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.Index))this._In=a.Index;if(!c(a.Name))this._N=a.Name;if(!c(a.Values))this._V=a.Values;s(this,a,["filter","Filter"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleIdResult=function(a){t.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.toJSON=function(){return o(this,{id:this._I,index:this._In,name:this._N,values:this._V},{filter:this._F})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.TableColumn=Lh;var ec="TableRowCollection",Bf=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"TableRowCollection"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"items",{"get":function(){b("items",this.m__items,ec,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"count",{"get":function(){b("count",this._C,ec,this._isNull);return this._C},enumerable:true,configurable:true});h.prototype.add=function(c,b){return d(a.TableRow,this,"Add",0,[c,b],false,true,null,0)};h.prototype.getCount=function(){e("TableRowCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};h.prototype.getItemAt=function(b){return d(a.TableRow,this,"GetItemAt",1,[b],false,false,null,4)};h.prototype._handleResult=function(e){i.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.TableRow,false,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleRetrieveResult=function(c,b){var d=this;i.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.TableRow,false,d,b,c)})};h.prototype.toJSON=function(){return o(this,{count:this._C},{},this.m__items)};return h}(OfficeExtension.ClientObject);a.TableRowCollection=Bf;var sc="TableRow",Ei=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"TableRow"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["index","values"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"index",{"get":function(){b("index",this._I,sc,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"values",{"get":function(){b("values",this._V,sc,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Values",a,0)},enumerable:true,configurable:true});e.prototype.set=function(a,b){this._recursivelySet(a,b,["values"],[],[])};e.prototype.update=function(a){this._recursivelyUpdate(a)};e.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};e.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,true,null,4)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Index))this._I=a.Index;if(!c(a.Values))this._V=a.Values};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};e.prototype.toJSON=function(){return o(this,{index:this._I,values:this._V},{})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.TableRow=Ei;var ab="DataValidation",Mg=function(l){__extends(i,l);function i(){return l!==null&&l.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"DataValidation"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["type","rule","prompt","errorAlert","ignoreBlanks","valid"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true,false]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"errorAlert",{"get":function(){b("errorAlert",this._E,ab,this._isNull);return this._E},"set":function(a){this._E=a;h(this,"ErrorAlert",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"ignoreBlanks",{"get":function(){b("ignoreBlanks",this._I,ab,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"IgnoreBlanks",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"prompt",{"get":function(){b("prompt",this._P,ab,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Prompt",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"rule",{"get":function(){b("rule",this._R,ab,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"Rule",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"type",{"get":function(){b("type",this._T,ab,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"valid",{"get":function(){b("valid",this._V,ab,this._isNull);return this._V},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["rule","prompt","errorAlert","ignoreBlanks"],[],[])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.clear=function(){j(this,"Clear",0,[],0,0)};i.prototype.getInvalidCells=function(){e("DataValidation.getInvalidCells",f,"1.9",g);return d(a.RangeAreas,this,"GetInvalidCells",1,[],false,true,null,4)};i.prototype.getInvalidCellsOrNullObject=function(){e("DataValidation.getInvalidCellsOrNullObject",f,"1.9",g);return d(a.RangeAreas,this,"GetInvalidCellsOrNullObject",1,[],false,true,null,4)};i.prototype._handleResult=function(b){l.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.ErrorAlert))this._E=a.ErrorAlert;if(!c(a.IgnoreBlanks))this._I=a.IgnoreBlanks;if(!c(a.Prompt))this._P=a.Prompt;if(!c(a.Rule))this._R=a.Rule;if(!c(a.Type))this._T=a.Type;if(!c(a.Valid))this._V=a.Valid};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleRetrieveResult=function(b,a){l.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.toJSON=function(){return o(this,{errorAlert:this._E,ignoreBlanks:this._I,prompt:this._P,rule:this._R,type:this._T,valid:this._V},{})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.DataValidation=Mg;var Ub="RemoveDuplicatesResult",he=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"RemoveDuplicatesResult"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["removed","uniqueRemaining"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"removed",{"get":function(){b("removed",this._R,Ub,this._isNull);return this._R},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"uniqueRemaining",{"get":function(){b("uniqueRemaining",this._U,Ub,this._isNull);return this._U},enumerable:true,configurable:true});a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Removed))this._R=a.Removed;if(!c(a.UniqueRemaining))this._U=a.UniqueRemaining};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{removed:this._R,uniqueRemaining:this._U},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.RemoveDuplicatesResult=he;var G="RangeFormat",Jh=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"RangeFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["wrapText","horizontalAlignment","verticalAlignment","columnWidth","rowHeight","textOrientation","useStandardHeight","useStandardWidth","readingOrder","shrinkToFit","indentLevel","autoIndent"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["fill","font","borders","protection"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"borders",{"get":function(){if(!this._B)this._B=l(a.RangeBorderCollection,this,"Borders",true,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.RangeFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.RangeFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"protection",{"get":function(){e("RangeFormat.protection",f,"1.2",g);if(!this._P)this._P=l(a.FormatProtection,this,"Protection",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"autoIndent",{"get":function(){b("autoIndent",this._A,G,this._isNull);e("RangeFormat.autoIndent",f,"1.9",g);return this._A},"set":function(a){this._A=a;h(this,"AutoIndent",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"columnWidth",{"get":function(){b("columnWidth",this._C,G,this._isNull);e("RangeFormat.columnWidth",f,"1.2",g);return this._C},"set":function(a){this._C=a;h(this,"ColumnWidth",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"horizontalAlignment",{"get":function(){b("horizontalAlignment",this._H,G,this._isNull);return this._H},"set":function(a){this._H=a;h(this,"HorizontalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"indentLevel",{"get":function(){b("indentLevel",this._I,G,this._isNull);e("RangeFormat.indentLevel",f,"1.9",g);return this._I},"set":function(a){this._I=a;h(this,"IndentLevel",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"readingOrder",{"get":function(){b("readingOrder",this._R,G,this._isNull);e("RangeFormat.readingOrder",f,"1.9",g);return this._R},"set":function(a){this._R=a;h(this,"ReadingOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"rowHeight",{"get":function(){b("rowHeight",this._Ro,G,this._isNull);e("RangeFormat.rowHeight",f,"1.2",g);return this._Ro},"set":function(a){this._Ro=a;h(this,"RowHeight",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"shrinkToFit",{"get":function(){b("shrinkToFit",this._S,G,this._isNull);e("RangeFormat.shrinkToFit",f,"1.9",g);return this._S},"set":function(a){this._S=a;h(this,"ShrinkToFit",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"textOrientation",{"get":function(){b("textOrientation",this._T,G,this._isNull);e("RangeFormat.textOrientation",f,"1.7",g);return this._T},"set":function(a){this._T=a;h(this,"TextOrientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"useStandardHeight",{"get":function(){b("useStandardHeight",this._U,G,this._isNull);e("RangeFormat.useStandardHeight",f,"1.7",g);return this._U},"set":function(a){this._U=a;h(this,"UseStandardHeight",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"useStandardWidth",{"get":function(){b("useStandardWidth",this._Us,G,this._isNull);e("RangeFormat.useStandardWidth",f,"1.7",g);return this._Us},"set":function(a){this._Us=a;h(this,"UseStandardWidth",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"verticalAlignment",{"get":function(){b("verticalAlignment",this._V,G,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"VerticalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"wrapText",{"get":function(){b("wrapText",this._W,G,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"WrapText",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["wrapText","horizontalAlignment","verticalAlignment","columnWidth","rowHeight","textOrientation","useStandardHeight","useStandardWidth","readingOrder","shrinkToFit","indentLevel","autoIndent"],["fill","font","protection"],["borders"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.autofitColumns=function(){e("RangeFormat.autofitColumns",f,"1.2",g);j(this,"AutofitColumns",0,[],0,0)};d.prototype.autofitRows=function(){e("RangeFormat.autofitRows",f,"1.2",g);j(this,"AutofitRows",0,[],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoIndent))this._A=a.AutoIndent;if(!c(a.ColumnWidth))this._C=a.ColumnWidth;if(!c(a.HorizontalAlignment))this._H=a.HorizontalAlignment;if(!c(a.IndentLevel))this._I=a.IndentLevel;if(!c(a.ReadingOrder))this._R=a.ReadingOrder;if(!c(a.RowHeight))this._Ro=a.RowHeight;if(!c(a.ShrinkToFit))this._S=a.ShrinkToFit;if(!c(a.TextOrientation))this._T=a.TextOrientation;if(!c(a.UseStandardHeight))this._U=a.UseStandardHeight;if(!c(a.UseStandardWidth))this._Us=a.UseStandardWidth;if(!c(a.VerticalAlignment))this._V=a.VerticalAlignment;if(!c(a.WrapText))this._W=a.WrapText;s(this,a,["borders","Borders","fill","Fill","font","Font","protection","Protection"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{autoIndent:this._A,columnWidth:this._C,horizontalAlignment:this._H,indentLevel:this._I,readingOrder:this._R,rowHeight:this._Ro,shrinkToFit:this._S,textOrientation:this._T,useStandardHeight:this._U,useStandardWidth:this._Us,verticalAlignment:this._V,wrapText:this._W},{borders:this._B,fill:this._F,font:this._Fo,protection:this._P})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.RangeFormat=Jh;var gc="FormatProtection",Yf=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"FormatProtection"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["locked","formulaHidden"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"formulaHidden",{"get":function(){b("formulaHidden",this._F,gc,this._isNull);return this._F},"set":function(a){this._F=a;h(this,"FormulaHidden",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"locked",{"get":function(){b("locked",this._L,gc,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"Locked",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["locked","formulaHidden"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.FormulaHidden))this._F=a.FormulaHidden;if(!c(a.Locked))this._L=a.Locked};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{formulaHidden:this._F,locked:this._L},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.FormatProtection=Yf;var mb="RangeFill",oi=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"RangeFill"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["color","tintAndShade","patternTintAndShade","pattern","patternColor"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,mb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"pattern",{"get":function(){b("pattern",this._P,mb,this._isNull);e("RangeFill.pattern",f,"1.9",g);return this._P},"set":function(a){this._P=a;h(this,"Pattern",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"patternColor",{"get":function(){b("patternColor",this._Pa,mb,this._isNull);e("RangeFill.patternColor",f,"1.9",g);return this._Pa},"set":function(a){this._Pa=a;h(this,"PatternColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"patternTintAndShade",{"get":function(){b("patternTintAndShade",this._Pat,mb,this._isNull);e("RangeFill.patternTintAndShade",f,"1.9",g);return this._Pat},"set":function(a){this._Pat=a;h(this,"PatternTintAndShade",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"tintAndShade",{"get":function(){b("tintAndShade",this._T,mb,this._isNull);e("RangeFill.tintAndShade",f,"1.9",g);return this._T},"set":function(a){this._T=a;h(this,"TintAndShade",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["color","tintAndShade","patternTintAndShade","pattern","patternColor"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Color))this._C=a.Color;if(!c(a.Pattern))this._P=a.Pattern;if(!c(a.PatternColor))this._Pa=a.PatternColor;if(!c(a.PatternTintAndShade))this._Pat=a.PatternTintAndShade;if(!c(a.TintAndShade))this._T=a.TintAndShade};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{color:this._C,pattern:this._P,patternColor:this._Pa,patternTintAndShade:this._Pat,tintAndShade:this._T},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.RangeFill=oi;var lb="RangeBorder",Ih=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"RangeBorder"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["sideIndex","style","weight","color","tintAndShade"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,lb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"sideIndex",{"get":function(){b("sideIndex",this._S,lb,this._isNull);return this._S},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"style",{"get":function(){b("style",this._St,lb,this._isNull);return this._St},"set":function(a){this._St=a;h(this,"Style",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"tintAndShade",{"get":function(){b("tintAndShade",this._T,lb,this._isNull);e("RangeBorder.tintAndShade",f,"1.9",g);return this._T},"set":function(a){this._T=a;h(this,"TintAndShade",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"weight",{"get":function(){b("weight",this._W,lb,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"Weight",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["style","weight","color","tintAndShade"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Color))this._C=a.Color;if(!c(a.SideIndex))this._S=a.SideIndex;if(!c(a.Style))this._St=a.Style;if(!c(a.TintAndShade))this._T=a.TintAndShade;if(!c(a.Weight))this._W=a.Weight};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{color:this._C,sideIndex:this._S,style:this._St,tintAndShade:this._T,weight:this._W},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.RangeBorder=Ih;var Cb="RangeBorderCollection",te=function(j){__extends(i,j);function i(){return j!==null&&j.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"RangeBorderCollection"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["count","tintAndShade"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"items",{"get":function(){b("items",this.m__items,Cb,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"count",{"get":function(){b("count",this._C,Cb,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"tintAndShade",{"get":function(){b("tintAndShade",this._T,Cb,this._isNull);e("RangeBorderCollection.tintAndShade",f,"1.9",g);return this._T},"set":function(a){this._T=a;h(this,"TintAndShade",a,0)},enumerable:true,configurable:true});i.prototype.getItem=function(b){return x(a.RangeBorder,this,[b])};i.prototype.getItemAt=function(b){return d(a.RangeBorder,this,"GetItemAt",1,[b],false,false,null,4)};i.prototype._handleResult=function(e){j.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!c(b.TintAndShade))this._T=b.TintAndShade;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.RangeBorder,true,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleRetrieveResult=function(c,b){var d=this;j.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.RangeBorder,true,d,b,c)})};i.prototype.toJSON=function(){return o(this,{count:this._C,tintAndShade:this._T},{},this.m__items)};return i}(OfficeExtension.ClientObject);a.RangeBorderCollection=te;var O="RangeFont",pi=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"RangeFont"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["name","size","color","italic","bold","underline","strikethrough","subscript","superscript","tintAndShade"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"bold",{"get":function(){b("bold",this._B,O,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"Bold",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,O,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"italic",{"get":function(){b("italic",this._I,O,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"Italic",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"name",{"get":function(){b("name",this._N,O,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"size",{"get":function(){b("size",this._S,O,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Size",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"strikethrough",{"get":function(){b("strikethrough",this._St,O,this._isNull);e("RangeFont.strikethrough",f,"1.9",g);return this._St},"set":function(a){this._St=a;h(this,"Strikethrough",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"subscript",{"get":function(){b("subscript",this._Su,O,this._isNull);e("RangeFont.subscript",f,"1.9",g);return this._Su},"set":function(a){this._Su=a;h(this,"Subscript",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"superscript",{"get":function(){b("superscript",this._Sup,O,this._isNull);e("RangeFont.superscript",f,"1.9",g);return this._Sup},"set":function(a){this._Sup=a;h(this,"Superscript",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"tintAndShade",{"get":function(){b("tintAndShade",this._T,O,this._isNull);e("RangeFont.tintAndShade",f,"1.9",g);return this._T},"set":function(a){this._T=a;h(this,"TintAndShade",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"underline",{"get":function(){b("underline",this._U,O,this._isNull);return this._U},"set":function(a){this._U=a;h(this,"Underline",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["name","size","color","italic","bold","underline","strikethrough","subscript","superscript","tintAndShade"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Bold))this._B=a.Bold;if(!c(a.Color))this._C=a.Color;if(!c(a.Italic))this._I=a.Italic;if(!c(a.Name))this._N=a.Name;if(!c(a.Size))this._S=a.Size;if(!c(a.Strikethrough))this._St=a.Strikethrough;if(!c(a.Subscript))this._Su=a.Subscript;if(!c(a.Superscript))this._Sup=a.Superscript;if(!c(a.TintAndShade))this._T=a.TintAndShade;if(!c(a.Underline))this._U=a.Underline};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,strikethrough:this._St,subscript:this._Su,superscript:this._Sup,tintAndShade:this._T,underline:this._U},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.RangeFont=pi;var ic="ChartCollection",hg=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"ChartCollection"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_ParentObject",{"get":function(){return this.m__ParentObject},"set":function(a){this.m__ParentObject=a},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"items",{"get":function(){b("items",this.m__items,ic,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"count",{"get":function(){b("count",this._C,ic,this._isNull);return this._C},enumerable:true,configurable:true});h.prototype.add=function(e,b,c){if(!(b instanceof Rb))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Charts.Add");return d(a.Chart,this,"Add",0,[e,b,c],false,true,null,0)};h.prototype.getCount=function(){e("ChartCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};h.prototype.getItem=function(b){return d(a.Chart,this,"GetItem",1,[b],false,false,null,4)};h.prototype.getItemAt=function(b){return d(a.Chart,this,"GetItemAt",1,[b],false,false,null,4)};h.prototype.getItemOrNullObject=function(b){e("ChartCollection.getItemOrNullObject",f,"1.4",g);return d(a.Chart,this,"GetItemOrNullObject",1,[b],false,false,null,4)};h.prototype._GetItem=function(b){return x(a.Chart,this,[b])};h.prototype._RegisterActivatedEvent=function(){e("ChartCollection._RegisterActivatedEvent",f,"1.8",g);j(this,"_RegisterActivatedEvent",0,[],0,0)};h.prototype._RegisterAddedEvent=function(){e("ChartCollection._RegisterAddedEvent",f,"1.8",g);j(this,"_RegisterAddedEvent",0,[],0,0)};h.prototype._RegisterDeactivatedEvent=function(){e("ChartCollection._RegisterDeactivatedEvent",f,"1.8",g);j(this,"_RegisterDeactivatedEvent",0,[],0,0)};h.prototype._RegisterDeletedEvent=function(){e("ChartCollection._RegisterDeletedEvent",f,"1.8",g);j(this,"_RegisterDeletedEvent",0,[],0,0)};h.prototype._UnregisterActivatedEvent=function(){e("ChartCollection._UnregisterActivatedEvent",f,"1.8",g);j(this,"_UnregisterActivatedEvent",0,[],0,0)};h.prototype._UnregisterAddedEvent=function(){e("ChartCollection._UnregisterAddedEvent",f,"1.8",g);j(this,"_UnregisterAddedEvent",0,[],0,0)};h.prototype._UnregisterDeactivatedEvent=function(){e("ChartCollection._UnregisterDeactivatedEvent",f,"1.8",g);j(this,"_UnregisterDeactivatedEvent",0,[],0,0)};h.prototype._UnregisterDeletedEvent=function(){e("ChartCollection._UnregisterDeletedEvent",f,"1.8",g);j(this,"_UnregisterDeletedEvent",0,[],0,0)};h.prototype._handleResult=function(e){i.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.Chart,true,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleRetrieveResult=function(c,b){var d=this;i.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Chart,true,d,b,c)})};Object.defineProperty(h.prototype,"onActivated",{"get":function(){var a=this;e("ChartCollection.onActivated",f,"1.8",g);if(!this.m_activated)this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:51,registerFunc:function(){return a._RegisterActivatedEvent()},unregisterFunc:function(){return a._UnregisterActivatedEvent()},getTargetIdFunc:function(){return a._ParentObject.id},eventArgsTransformFunc:function(a){var b={type:w.chartActivated,worksheetId:a.worksheetId,chartId:a.chartId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_activated},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"onAdded",{"get":function(){var a=this;e("ChartCollection.onAdded",f,"1.8",g);if(!this.m_added)this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:50,registerFunc:function(){return a._RegisterAddedEvent()},unregisterFunc:function(){return a._UnregisterAddedEvent()},getTargetIdFunc:function(){return a._ParentObject.id},eventArgsTransformFunc:function(a){var b={type:w.chartAdded,source:a.source,worksheetId:a.worksheetId,chartId:a.chartId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_added},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"onDeactivated",{"get":function(){var a=this;e("ChartCollection.onDeactivated",f,"1.8",g);if(!this.m_deactivated)this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:52,registerFunc:function(){return a._RegisterDeactivatedEvent()},unregisterFunc:function(){return a._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return a._ParentObject.id},eventArgsTransformFunc:function(a){var b={type:w.chartDeactivated,worksheetId:a.worksheetId,chartId:a.chartId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_deactivated},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"onDeleted",{"get":function(){var a=this;e("ChartCollection.onDeleted",f,"1.8",g);if(!this.m_deleted)this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:53,registerFunc:function(){return a._RegisterDeletedEvent()},unregisterFunc:function(){return a._UnregisterDeletedEvent()},getTargetIdFunc:function(){return a._ParentObject.id},eventArgsTransformFunc:function(a){var b={type:w.chartDeleted,source:a.source,worksheetId:a.worksheetId,chartId:a.chartId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_deleted},enumerable:true,configurable:true});h.prototype.toJSON=function(){return o(this,{count:this._C},{},this.m__items)};return h}(OfficeExtension.ClientObject);a.ChartCollection=hg;var D="Chart",Oi=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"Chart"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["name","top","left","width","height","id","showAllFieldButtons","chartType","showDataLabelsOverMaximum","categoryLabelLevel","style","displayBlanksAs","plotBy","plotVisibleOnly","seriesNameLevel"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,false,true,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["title","dataLabels","legend","series","axes","format","worksheet","plotArea","pivotOptions"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"axes",{"get":function(){if(!this._A)this._A=l(a.ChartAxes,this,"Axes",false,4);return this._A},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"dataLabels",{"get":function(){if(!this._D)this._D=l(a.ChartDataLabels,this,"DataLabels",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartAreaFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"legend",{"get":function(){if(!this._Le)this._Le=l(a.ChartLegend,this,"Legend",false,4);return this._Le},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"pivotOptions",{"get":function(){e("Chart.pivotOptions",f,"1.9",g);if(!this._P)this._P=l(a.ChartPivotOptions,this,"PivotOptions",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"plotArea",{"get":function(){e("Chart.plotArea",f,"1.8",g);if(!this._Pl)this._Pl=l(a.ChartPlotArea,this,"PlotArea",false,4);return this._Pl},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"series",{"get":function(){if(!this._S)this._S=l(a.ChartSeriesCollection,this,"Series",true,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"title",{"get":function(){if(!this._T)this._T=l(a.ChartTitle,this,"Title",false,4);return this._T},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"worksheet",{"get":function(){e("Chart.worksheet",f,"1.2",g);if(!this._Wo)this._Wo=l(a.Worksheet,this,"Worksheet",false,4);return this._Wo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"categoryLabelLevel",{"get":function(){b("categoryLabelLevel",this._C,D,this._isNull);e("Chart.categoryLabelLevel",f,"1.8",g);return this._C},"set":function(a){this._C=a;h(this,"CategoryLabelLevel",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"chartType",{"get":function(){b("chartType",this._Ch,D,this._isNull);e("Chart.chartType",f,"1.7",g);return this._Ch},"set":function(a){this._Ch=a;h(this,"ChartType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"displayBlanksAs",{"get":function(){b("displayBlanksAs",this._Di,D,this._isNull);e("Chart.displayBlanksAs",f,"1.8",g);return this._Di},"set":function(a){this._Di=a;h(this,"DisplayBlanksAs",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"height",{"get":function(){b("height",this._H,D,this._isNull);return this._H},"set":function(a){this._H=a;h(this,"Height",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,D,this._isNull);e("Chart.id",f,"1.7",g);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"left",{"get":function(){b("left",this._L,D,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"Left",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,D,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"plotBy",{"get":function(){b("plotBy",this._Plo,D,this._isNull);e("Chart.plotBy",f,"1.8",g);return this._Plo},"set":function(a){this._Plo=a;h(this,"PlotBy",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"plotVisibleOnly",{"get":function(){b("plotVisibleOnly",this._Plot,D,this._isNull);e("Chart.plotVisibleOnly",f,"1.8",g);return this._Plot},"set":function(a){this._Plot=a;h(this,"PlotVisibleOnly",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"seriesNameLevel",{"get":function(){b("seriesNameLevel",this._Se,D,this._isNull);e("Chart.seriesNameLevel",f,"1.8",g);return this._Se},"set":function(a){this._Se=a;h(this,"SeriesNameLevel",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showAllFieldButtons",{"get":function(){b("showAllFieldButtons",this._Sh,D,this._isNull);e("Chart.showAllFieldButtons",f,"1.7",g);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowAllFieldButtons",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showDataLabelsOverMaximum",{"get":function(){b("showDataLabelsOverMaximum",this._Sho,D,this._isNull);e("Chart.showDataLabelsOverMaximum",f,"1.8",g);return this._Sho},"set":function(a){this._Sho=a;h(this,"ShowDataLabelsOverMaximum",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"style",{"get":function(){b("style",this._St,D,this._isNull);e("Chart.style",f,"1.8",g);return this._St},"set":function(a){this._St=a;h(this,"Style",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"top",{"get":function(){b("top",this._To,D,this._isNull);return this._To},"set":function(a){this._To=a;h(this,"Top",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"width",{"get":function(){b("width",this._W,D,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"Width",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name","top","left","width","height","showAllFieldButtons","chartType","showDataLabelsOverMaximum","categoryLabelLevel","style","displayBlanksAs","plotBy","plotVisibleOnly","seriesNameLevel"],["title","dataLabels","legend","axes","format","plotArea","pivotOptions"],["series","worksheet"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.activate=function(){e("Chart.activate",f,"1.9",g);j(this,"Activate",1,[],0,0)};d.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};d.prototype.getImage=function(c,b,a){e("Chart.getImage",f,"1.2",g);return j(this,"GetImage",1,[c,b,a],4,0)};d.prototype.setData=function(a,b){if(!(a instanceof Rb))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Chart.setData");j(this,"SetData",0,[a,b],0,0)};d.prototype.setPosition=function(a,b){j(this,"SetPosition",0,[a,b],0,0)};d.prototype._RegisterActivatedEvent=function(){e("Chart._RegisterActivatedEvent",f,"1.8",g);j(this,"_RegisterActivatedEvent",0,[],0,0)};d.prototype._RegisterDeactivatedEvent=function(){e("Chart._RegisterDeactivatedEvent",f,"1.8",g);j(this,"_RegisterDeactivatedEvent",0,[],0,0)};d.prototype._UnregisterActivatedEvent=function(){e("Chart._UnregisterActivatedEvent",f,"1.8",g);j(this,"_UnregisterActivatedEvent",0,[],0,0)};d.prototype._UnregisterDeactivatedEvent=function(){e("Chart._UnregisterDeactivatedEvent",f,"1.8",g);j(this,"_UnregisterDeactivatedEvent",0,[],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.CategoryLabelLevel))this._C=a.CategoryLabelLevel;if(!c(a.ChartType))this._Ch=a.ChartType;if(!c(a.DisplayBlanksAs))this._Di=a.DisplayBlanksAs;if(!c(a.Height))this._H=a.Height;if(!c(a.Id))this._I=a.Id;if(!c(a.Left))this._L=a.Left;if(!c(a.Name))this._N=a.Name;if(!c(a.PlotBy))this._Plo=a.PlotBy;if(!c(a.PlotVisibleOnly))this._Plot=a.PlotVisibleOnly;if(!c(a.SeriesNameLevel))this._Se=a.SeriesNameLevel;if(!c(a.ShowAllFieldButtons))this._Sh=a.ShowAllFieldButtons;if(!c(a.ShowDataLabelsOverMaximum))this._Sho=a.ShowDataLabelsOverMaximum;if(!c(a.Style))this._St=a.Style;if(!c(a.Top))this._To=a.Top;if(!c(a.Width))this._W=a.Width;s(this,a,["axes","Axes","dataLabels","DataLabels","format","Format","legend","Legend","pivotOptions","PivotOptions","plotArea","PlotArea","series","Series","title","Title","worksheet","Worksheet"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){i.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};Object.defineProperty(d.prototype,"onActivated",{"get":function(){var a=this;e("Chart.onActivated",f,"1.8",g);if(!this.m_activated)this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:51,registerFunc:function(){a._RegisterActivatedEvent()},unregisterFunc:function(){a._UnregisterActivatedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(a){var b={type:w.chartActivated,worksheetId:a.worksheetId,chartId:a.chartId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_activated},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"onDeactivated",{"get":function(){var a=this;e("Chart.onDeactivated",f,"1.8",g);if(!this.m_deactivated)this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:52,registerFunc:function(){a._RegisterDeactivatedEvent()},unregisterFunc:function(){a._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(a){var b={type:w.chartDeactivated,worksheetId:a.worksheetId,chartId:a.chartId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_deactivated},enumerable:true,configurable:true});d.prototype.toJSON=function(){return o(this,{categoryLabelLevel:this._C,chartType:this._Ch,displayBlanksAs:this._Di,height:this._H,id:this._I,left:this._L,name:this._N,plotBy:this._Plo,plotVisibleOnly:this._Plot,seriesNameLevel:this._Se,showAllFieldButtons:this._Sh,showDataLabelsOverMaximum:this._Sho,style:this._St,top:this._To,width:this._W},{axes:this._A,dataLabels:this._D,format:this._F,legend:this._Le,pivotOptions:this._P,plotArea:this._Pl,series:this._S,title:this._T})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.Chart=Oi;var qb="ChartPivotOptions",Kf=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartPivotOptions"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["showAxisFieldButtons","showLegendFieldButtons","showReportFilterFieldButtons","showValueFieldButtons"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showAxisFieldButtons",{"get":function(){b("showAxisFieldButtons",this._S,qb,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShowAxisFieldButtons",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showLegendFieldButtons",{"get":function(){b("showLegendFieldButtons",this._Sh,qb,this._isNull);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowLegendFieldButtons",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showReportFilterFieldButtons",{"get":function(){b("showReportFilterFieldButtons",this._Sho,qb,this._isNull);return this._Sho},"set":function(a){this._Sho=a;h(this,"ShowReportFilterFieldButtons",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showValueFieldButtons",{"get":function(){b("showValueFieldButtons",this._Show,qb,this._isNull);return this._Show},"set":function(a){this._Show=a;h(this,"ShowValueFieldButtons",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["showAxisFieldButtons","showLegendFieldButtons","showReportFilterFieldButtons","showValueFieldButtons"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.ShowAxisFieldButtons))this._S=a.ShowAxisFieldButtons;if(!c(a.ShowLegendFieldButtons))this._Sh=a.ShowLegendFieldButtons;if(!c(a.ShowReportFilterFieldButtons))this._Sho=a.ShowReportFilterFieldButtons;if(!c(a.ShowValueFieldButtons))this._Show=a.ShowValueFieldButtons};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{showAxisFieldButtons:this._S,showLegendFieldButtons:this._Sh,showReportFilterFieldButtons:this._Sho,showValueFieldButtons:this._Show},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartPivotOptions=Kf;var hc="ChartAreaFormat",eg=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartAreaFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["roundedCorners","colorScheme"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["fill","font","border"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"border",{"get":function(){e("ChartAreaFormat.border",f,"1.7",g);if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"colorScheme",{"get":function(){b("colorScheme",this._C,hc,this._isNull);e("ChartAreaFormat.colorScheme",f,"1.9",g);return this._C},"set":function(a){this._C=a;h(this,"ColorScheme",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"roundedCorners",{"get":function(){b("roundedCorners",this._R,hc,this._isNull);e("ChartAreaFormat.roundedCorners",f,"1.9",g);return this._R},"set":function(a){this._R=a;h(this,"RoundedCorners",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["roundedCorners","colorScheme"],["font","border"],["fill"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.ColorScheme))this._C=a.ColorScheme;if(!c(a.RoundedCorners))this._R=a.RoundedCorners;s(this,a,["border","Border","fill","Fill","font","Font"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{colorScheme:this._C,roundedCorners:this._R},{border:this._B,font:this._Fo})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartAreaFormat=eg;var Xb="ChartSeriesCollection",pe=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"ChartSeriesCollection"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"items",{"get":function(){b("items",this.m__items,Xb,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"count",{"get":function(){b("count",this._C,Xb,this._isNull);return this._C},enumerable:true,configurable:true});h.prototype.add=function(c,b){e("ChartSeriesCollection.add",f,"1.7",g);return d(a.ChartSeries,this,"Add",0,[c,b],false,true,null,0)};h.prototype.getCount=function(){e("ChartSeriesCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};h.prototype.getItemAt=function(b){return d(a.ChartSeries,this,"GetItemAt",1,[b],false,false,null,4)};h.prototype._handleResult=function(e){i.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.ChartSeries,false,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleRetrieveResult=function(c,b){var d=this;i.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.ChartSeries,false,d,b,c)})};h.prototype.toJSON=function(){return o(this,{count:this._C},{},this.m__items)};return h}(OfficeExtension.ClientObject);a.ChartSeriesCollection=pe;var u="ChartSeries",Eh=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartSeries"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["name","chartType","hasDataLabels","filtered","markerSize","markerStyle","showShadow","markerBackgroundColor","markerForegroundColor","smooth","plotOrder","gapWidth","doughnutHoleSize","axisGroup","explosion","firstSliceAngle","invertIfNegative","bubbleScale","secondPlotSize","splitType","splitValue","varyByCategories","showLeaderLines","overlap","gradientStyle","gradientMinimumType","gradientMidpointType","gradientMaximumType","gradientMinimumValue","gradientMidpointValue","gradientMaximumValue","gradientMinimumColor","gradientMidpointColor","gradientMaximumColor","parentLabelStrategy","showConnectorLines","invertColor"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["points","format","trendlines","xErrorBars","yErrorBars","dataLabels","binOptions","mapOptions","boxwhiskerOptions"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"binOptions",{"get":function(){e("ChartSeries.binOptions",f,"1.9",g);if(!this._B)this._B=l(a.ChartBinOptions,this,"BinOptions",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"boxwhiskerOptions",{"get":function(){e("ChartSeries.boxwhiskerOptions",f,"1.9",g);if(!this._Bo)this._Bo=l(a.ChartBoxwhiskerOptions,this,"BoxwhiskerOptions",false,4);return this._Bo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"dataLabels",{"get":function(){e("ChartSeries.dataLabels",f,"1.8",g);if(!this._D)this._D=l(a.ChartDataLabels,this,"DataLabels",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartSeriesFormat,this,"Format",false,4);return this._Fo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"mapOptions",{"get":function(){e("ChartSeries.mapOptions",f,"1.9",g);if(!this._M)this._M=l(a.ChartMapOptions,this,"MapOptions",false,4);return this._M},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"points",{"get":function(){if(!this._Po)this._Po=l(a.ChartPointsCollection,this,"Points",true,4);return this._Po},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"trendlines",{"get":function(){e("ChartSeries.trendlines",f,"1.7",g);if(!this._T)this._T=l(a.ChartTrendlineCollection,this,"Trendlines",true,4);return this._T},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"xErrorBars",{"get":function(){e("ChartSeries.xErrorBars",f,"1.9",g);if(!this._X)this._X=l(a.ChartErrorBars,this,"XErrorBars",false,4);return this._X},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"yErrorBars",{"get":function(){e("ChartSeries.yErrorBars",f,"1.9",g);if(!this._Y)this._Y=l(a.ChartErrorBars,this,"YErrorBars",false,4);return this._Y},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"axisGroup",{"get":function(){b("axisGroup",this._A,u,this._isNull);e("ChartSeries.axisGroup",f,"1.8",g);return this._A},"set":function(a){this._A=a;h(this,"AxisGroup",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"bubbleScale",{"get":function(){b("bubbleScale",this._Bu,u,this._isNull);e("ChartSeries.bubbleScale",f,"1.9",g);return this._Bu},"set":function(a){this._Bu=a;h(this,"BubbleScale",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"chartType",{"get":function(){b("chartType",this._C,u,this._isNull);e("ChartSeries.chartType",f,"1.7",g);return this._C},"set":function(a){this._C=a;h(this,"ChartType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"doughnutHoleSize",{"get":function(){b("doughnutHoleSize",this._Do,u,this._isNull);e("ChartSeries.doughnutHoleSize",f,"1.7",g);return this._Do},"set":function(a){this._Do=a;h(this,"DoughnutHoleSize",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"explosion",{"get":function(){b("explosion",this._E,u,this._isNull);e("ChartSeries.explosion",f,"1.8",g);return this._E},"set":function(a){this._E=a;h(this,"Explosion",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"filtered",{"get":function(){b("filtered",this._F,u,this._isNull);e("ChartSeries.filtered",f,"1.7",g);return this._F},"set":function(a){this._F=a;h(this,"Filtered",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"firstSliceAngle",{"get":function(){b("firstSliceAngle",this._Fi,u,this._isNull);e("ChartSeries.firstSliceAngle",f,"1.8",g);return this._Fi},"set":function(a){this._Fi=a;h(this,"FirstSliceAngle",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gapWidth",{"get":function(){b("gapWidth",this._G,u,this._isNull);e("ChartSeries.gapWidth",f,"1.7",g);return this._G},"set":function(a){this._G=a;h(this,"GapWidth",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMaximumColor",{"get":function(){b("gradientMaximumColor",this._Gr,u,this._isNull);e("ChartSeries.gradientMaximumColor",f,"1.9",g);return this._Gr},"set":function(a){this._Gr=a;h(this,"GradientMaximumColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMaximumType",{"get":function(){b("gradientMaximumType",this._Gra,u,this._isNull);e("ChartSeries.gradientMaximumType",f,"1.9",g);return this._Gra},"set":function(a){this._Gra=a;h(this,"GradientMaximumType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMaximumValue",{"get":function(){b("gradientMaximumValue",this._Grad,u,this._isNull);e("ChartSeries.gradientMaximumValue",f,"1.9",g);return this._Grad},"set":function(a){this._Grad=a;h(this,"GradientMaximumValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMidpointColor",{"get":function(){b("gradientMidpointColor",this._Gradi,u,this._isNull);e("ChartSeries.gradientMidpointColor",f,"1.9",g);return this._Gradi},"set":function(a){this._Gradi=a;h(this,"GradientMidpointColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMidpointType",{"get":function(){b("gradientMidpointType",this._Gradie,u,this._isNull);e("ChartSeries.gradientMidpointType",f,"1.9",g);return this._Gradie},"set":function(a){this._Gradie=a;h(this,"GradientMidpointType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMidpointValue",{"get":function(){b("gradientMidpointValue",this._Gradien,u,this._isNull);e("ChartSeries.gradientMidpointValue",f,"1.9",g);return this._Gradien},"set":function(a){this._Gradien=a;h(this,"GradientMidpointValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMinimumColor",{"get":function(){b("gradientMinimumColor",this._Gradient,u,this._isNull);e("ChartSeries.gradientMinimumColor",f,"1.9",g);return this._Gradient},"set":function(a){this._Gradient=a;h(this,"GradientMinimumColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMinimumType",{"get":function(){b("gradientMinimumType",this._GradientM,u,this._isNull);e("ChartSeries.gradientMinimumType",f,"1.9",g);return this._GradientM},"set":function(a){this._GradientM=a;h(this,"GradientMinimumType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientMinimumValue",{"get":function(){b("gradientMinimumValue",this._GradientMi,u,this._isNull);e("ChartSeries.gradientMinimumValue",f,"1.9",g);return this._GradientMi},"set":function(a){this._GradientMi=a;h(this,"GradientMinimumValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"gradientStyle",{"get":function(){b("gradientStyle",this._GradientS,u,this._isNull);e("ChartSeries.gradientStyle",f,"1.9",g);return this._GradientS},"set":function(a){this._GradientS=a;h(this,"GradientStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"hasDataLabels",{"get":function(){b("hasDataLabels",this._H,u,this._isNull);e("ChartSeries.hasDataLabels",f,"1.7",g);return this._H},"set":function(a){this._H=a;h(this,"HasDataLabels",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"invertColor",{"get":function(){b("invertColor",this._I,u,this._isNull);e("ChartSeries.invertColor",f,"1.9",g);return this._I},"set":function(a){this._I=a;h(this,"InvertColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"invertIfNegative",{"get":function(){b("invertIfNegative",this._In,u,this._isNull);e("ChartSeries.invertIfNegative",f,"1.8",g);return this._In},"set":function(a){this._In=a;h(this,"InvertIfNegative",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerBackgroundColor",{"get":function(){b("markerBackgroundColor",this._Ma,u,this._isNull);e("ChartSeries.markerBackgroundColor",f,"1.7",g);return this._Ma},"set":function(a){this._Ma=a;h(this,"MarkerBackgroundColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerForegroundColor",{"get":function(){b("markerForegroundColor",this._Mar,u,this._isNull);e("ChartSeries.markerForegroundColor",f,"1.7",g);return this._Mar},"set":function(a){this._Mar=a;h(this,"MarkerForegroundColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerSize",{"get":function(){b("markerSize",this._Mark,u,this._isNull);e("ChartSeries.markerSize",f,"1.7",g);return this._Mark},"set":function(a){this._Mark=a;h(this,"MarkerSize",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerStyle",{"get":function(){b("markerStyle",this._Marke,u,this._isNull);e("ChartSeries.markerStyle",f,"1.7",g);return this._Marke},"set":function(a){this._Marke=a;h(this,"MarkerStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,u,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"overlap",{"get":function(){b("overlap",this._O,u,this._isNull);e("ChartSeries.overlap",f,"1.8",g);return this._O},"set":function(a){this._O=a;h(this,"Overlap",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"parentLabelStrategy",{"get":function(){b("parentLabelStrategy",this._P,u,this._isNull);e("ChartSeries.parentLabelStrategy",f,"1.9",g);return this._P},"set":function(a){this._P=a;h(this,"ParentLabelStrategy",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"plotOrder",{"get":function(){b("plotOrder",this._Pl,u,this._isNull);e("ChartSeries.plotOrder",f,"1.7",g);return this._Pl},"set":function(a){this._Pl=a;h(this,"PlotOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"secondPlotSize",{"get":function(){b("secondPlotSize",this._S,u,this._isNull);e("ChartSeries.secondPlotSize",f,"1.8",g);return this._S},"set":function(a){this._S=a;h(this,"SecondPlotSize",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showConnectorLines",{"get":function(){b("showConnectorLines",this._Sh,u,this._isNull);e("ChartSeries.showConnectorLines",f,"1.9",g);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowConnectorLines",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showLeaderLines",{"get":function(){b("showLeaderLines",this._Sho,u,this._isNull);e("ChartSeries.showLeaderLines",f,"1.9",g);return this._Sho},"set":function(a){this._Sho=a;h(this,"ShowLeaderLines",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showShadow",{"get":function(){b("showShadow",this._Show,u,this._isNull);e("ChartSeries.showShadow",f,"1.7",g);return this._Show},"set":function(a){this._Show=a;h(this,"ShowShadow",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"smooth",{"get":function(){b("smooth",this._Sm,u,this._isNull);e("ChartSeries.smooth",f,"1.7",g);return this._Sm},"set":function(a){this._Sm=a;h(this,"Smooth",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"splitType",{"get":function(){b("splitType",this._Sp,u,this._isNull);e("ChartSeries.splitType",f,"1.8",g);return this._Sp},"set":function(a){this._Sp=a;h(this,"SplitType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"splitValue",{"get":function(){b("splitValue",this._Spl,u,this._isNull);e("ChartSeries.splitValue",f,"1.9",g);return this._Spl},"set":function(a){this._Spl=a;h(this,"SplitValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"varyByCategories",{"get":function(){b("varyByCategories",this._V,u,this._isNull);e("ChartSeries.varyByCategories",f,"1.8",g);return this._V},"set":function(a){this._V=a;h(this,"VaryByCategories",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name","chartType","hasDataLabels","filtered","markerSize","markerStyle","showShadow","markerBackgroundColor","markerForegroundColor","smooth","plotOrder","gapWidth","doughnutHoleSize","axisGroup","explosion","firstSliceAngle","invertIfNegative","bubbleScale","secondPlotSize","splitType","splitValue","varyByCategories","showLeaderLines","overlap","gradientStyle","gradientMinimumType","gradientMidpointType","gradientMaximumType","gradientMinimumValue","gradientMidpointValue","gradientMaximumValue","gradientMinimumColor","gradientMidpointColor","gradientMaximumColor","parentLabelStrategy","showConnectorLines","invertColor"],["format","xErrorBars","yErrorBars","dataLabels","binOptions","mapOptions","boxwhiskerOptions"],["points","trendlines"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype["delete"]=function(){e("ChartSeries.delete",f,"1.7",g);j(this,"Delete",0,[],0,0)};d.prototype.setBubbleSizes=function(a){e("ChartSeries.setBubbleSizes",f,"1.7",g);j(this,"SetBubbleSizes",0,[a],0,0)};d.prototype.setValues=function(a){e("ChartSeries.setValues",f,"1.7",g);j(this,"SetValues",0,[a],0,0)};d.prototype.setXAxisValues=function(a){e("ChartSeries.setXAxisValues",f,"1.7",g);j(this,"SetXAxisValues",0,[a],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AxisGroup))this._A=a.AxisGroup;if(!c(a.BubbleScale))this._Bu=a.BubbleScale;if(!c(a.ChartType))this._C=a.ChartType;if(!c(a.DoughnutHoleSize))this._Do=a.DoughnutHoleSize;if(!c(a.Explosion))this._E=a.Explosion;if(!c(a.Filtered))this._F=a.Filtered;if(!c(a.FirstSliceAngle))this._Fi=a.FirstSliceAngle;if(!c(a.GapWidth))this._G=a.GapWidth;if(!c(a.GradientMaximumColor))this._Gr=a.GradientMaximumColor;if(!c(a.GradientMaximumType))this._Gra=a.GradientMaximumType;if(!c(a.GradientMaximumValue))this._Grad=a.GradientMaximumValue;if(!c(a.GradientMidpointColor))this._Gradi=a.GradientMidpointColor;if(!c(a.GradientMidpointType))this._Gradie=a.GradientMidpointType;if(!c(a.GradientMidpointValue))this._Gradien=a.GradientMidpointValue;if(!c(a.GradientMinimumColor))this._Gradient=a.GradientMinimumColor;if(!c(a.GradientMinimumType))this._GradientM=a.GradientMinimumType;if(!c(a.GradientMinimumValue))this._GradientMi=a.GradientMinimumValue;if(!c(a.GradientStyle))this._GradientS=a.GradientStyle;if(!c(a.HasDataLabels))this._H=a.HasDataLabels;if(!c(a.InvertColor))this._I=a.InvertColor;if(!c(a.InvertIfNegative))this._In=a.InvertIfNegative;if(!c(a.MarkerBackgroundColor))this._Ma=a.MarkerBackgroundColor;if(!c(a.MarkerForegroundColor))this._Mar=a.MarkerForegroundColor;if(!c(a.MarkerSize))this._Mark=a.MarkerSize;if(!c(a.MarkerStyle))this._Marke=a.MarkerStyle;if(!c(a.Name))this._N=a.Name;if(!c(a.Overlap))this._O=a.Overlap;if(!c(a.ParentLabelStrategy))this._P=a.ParentLabelStrategy;if(!c(a.PlotOrder))this._Pl=a.PlotOrder;if(!c(a.SecondPlotSize))this._S=a.SecondPlotSize;if(!c(a.ShowConnectorLines))this._Sh=a.ShowConnectorLines;if(!c(a.ShowLeaderLines))this._Sho=a.ShowLeaderLines;if(!c(a.ShowShadow))this._Show=a.ShowShadow;if(!c(a.Smooth))this._Sm=a.Smooth;if(!c(a.SplitType))this._Sp=a.SplitType;if(!c(a.SplitValue))this._Spl=a.SplitValue;if(!c(a.VaryByCategories))this._V=a.VaryByCategories;s(this,a,["binOptions","BinOptions","boxwhiskerOptions","BoxwhiskerOptions","dataLabels","DataLabels","format","Format","mapOptions","MapOptions","points","Points","trendlines","Trendlines","xErrorBars","XErrorBars","yErrorBars","YErrorBars"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{axisGroup:this._A,bubbleScale:this._Bu,chartType:this._C,doughnutHoleSize:this._Do,explosion:this._E,filtered:this._F,firstSliceAngle:this._Fi,gapWidth:this._G,gradientMaximumColor:this._Gr,gradientMaximumType:this._Gra,gradientMaximumValue:this._Grad,gradientMidpointColor:this._Gradi,gradientMidpointType:this._Gradie,gradientMidpointValue:this._Gradien,gradientMinimumColor:this._Gradient,gradientMinimumType:this._GradientM,gradientMinimumValue:this._GradientMi,gradientStyle:this._GradientS,hasDataLabels:this._H,invertColor:this._I,invertIfNegative:this._In,markerBackgroundColor:this._Ma,markerForegroundColor:this._Mar,markerSize:this._Mark,markerStyle:this._Marke,name:this._N,overlap:this._O,parentLabelStrategy:this._P,plotOrder:this._Pl,secondPlotSize:this._S,showConnectorLines:this._Sh,showLeaderLines:this._Sho,showShadow:this._Show,smooth:this._Sm,splitType:this._Sp,splitValue:this._Spl,varyByCategories:this._V},{binOptions:this._B,boxwhiskerOptions:this._Bo,dataLabels:this._D,format:this._Fo,mapOptions:this._M,points:this._Po,trendlines:this._T,xErrorBars:this._X,yErrorBars:this._Y})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartSeries=Eh;var hj="ChartSeriesFormat",Lf=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartSeriesFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["fill","line"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"line",{"get":function(){if(!this._L)this._L=l(a.ChartLineFormat,this,"Line",false,4);return this._L},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["line"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["fill","Fill","line","Line"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{line:this._L})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartSeriesFormat=Lf;var Wb="ChartPointsCollection",oe=function(i){__extends(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(h.prototype,"_className",{"get":function(){return"ChartPointsCollection"},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"items",{"get":function(){b("items",this.m__items,Wb,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(h.prototype,"count",{"get":function(){b("count",this._C,Wb,this._isNull);return this._C},enumerable:true,configurable:true});h.prototype.getCount=function(){e("ChartPointsCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};h.prototype.getItemAt=function(b){return d(a.ChartPoint,this,"GetItemAt",1,[b],false,false,null,4)};h.prototype._handleResult=function(e){i.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var f=b[OfficeExtension.Constants.items],d=0;d<f.length;d++){var g=t(a.ChartPoint,false,this,f[d],d);g._handleResult(f[d]);this.m__items.push(g)}}};h.prototype.load=function(a){return p(this,a)};h.prototype.retrieve=function(a){return q(this,a)};h.prototype._handleRetrieveResult=function(c,b){var d=this;i.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.ChartPoint,false,d,b,c)})};h.prototype.toJSON=function(){return o(this,{count:this._C},{},this.m__items)};return h}(OfficeExtension.ClientObject);a.ChartPointsCollection=oe;var eb="ChartPoint",Qh=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartPoint"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["value","hasDataLabel","markerStyle","markerSize","markerBackgroundColor","markerForegroundColor"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format","dataLabel"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"dataLabel",{"get":function(){e("ChartPoint.dataLabel",f,"1.7",g);if(!this._D)this._D=l(a.ChartDataLabel,this,"DataLabel",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartPointFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"hasDataLabel",{"get":function(){b("hasDataLabel",this._H,eb,this._isNull);e("ChartPoint.hasDataLabel",f,"1.7",g);return this._H},"set":function(a){this._H=a;h(this,"HasDataLabel",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerBackgroundColor",{"get":function(){b("markerBackgroundColor",this._M,eb,this._isNull);e("ChartPoint.markerBackgroundColor",f,"1.7",g);return this._M},"set":function(a){this._M=a;h(this,"MarkerBackgroundColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerForegroundColor",{"get":function(){b("markerForegroundColor",this._Ma,eb,this._isNull);e("ChartPoint.markerForegroundColor",f,"1.7",g);return this._Ma},"set":function(a){this._Ma=a;h(this,"MarkerForegroundColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerSize",{"get":function(){b("markerSize",this._Mar,eb,this._isNull);e("ChartPoint.markerSize",f,"1.7",g);return this._Mar},"set":function(a){this._Mar=a;h(this,"MarkerSize",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"markerStyle",{"get":function(){b("markerStyle",this._Mark,eb,this._isNull);e("ChartPoint.markerStyle",f,"1.7",g);return this._Mark},"set":function(a){this._Mark=a;h(this,"MarkerStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"value",{"get":function(){b("value",this._V,eb,this._isNull);return this._V},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["hasDataLabel","markerStyle","markerSize","markerBackgroundColor","markerForegroundColor"],["format","dataLabel"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.HasDataLabel))this._H=a.HasDataLabel;if(!c(a.MarkerBackgroundColor))this._M=a.MarkerBackgroundColor;if(!c(a.MarkerForegroundColor))this._Ma=a.MarkerForegroundColor;if(!c(a.MarkerSize))this._Mar=a.MarkerSize;if(!c(a.MarkerStyle))this._Mark=a.MarkerStyle;if(!c(a.Value))this._V=a.Value;s(this,a,["dataLabel","DataLabel","format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{hasDataLabel:this._H,markerBackgroundColor:this._M,markerForegroundColor:this._Ma,markerSize:this._Mar,markerStyle:this._Mark,value:this._V},{dataLabel:this._D,format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartPoint=Qh;var ij="ChartPointFormat",Wf=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartPointFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["fill","border"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"border",{"get":function(){e("ChartPointFormat.border",f,"1.7",g);if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["border"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["border","Border","fill","Fill"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{border:this._B})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartPointFormat=Wf;var mj="ChartAxes",bi=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartAxes"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["categoryAxis","seriesAxis","valueAxis"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"categoryAxis",{"get":function(){if(!this._C)this._C=l(a.ChartAxis,this,"CategoryAxis",false,4);return this._C},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"seriesAxis",{"get":function(){if(!this._S)this._S=l(a.ChartAxis,this,"SeriesAxis",false,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"valueAxis",{"get":function(){if(!this._V)this._V=l(a.ChartAxis,this,"ValueAxis",false,4);return this._V},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["categoryAxis","seriesAxis","valueAxis"],[])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype.getItem=function(c,b){e("ChartAxes.getItem",f,"1.7",g);return d(a.ChartAxis,this,"GetItem",1,[c,b],false,false,null,4)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["categoryAxis","CategoryAxis","seriesAxis","SeriesAxis","valueAxis","ValueAxis"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{categoryAxis:this._C,seriesAxis:this._S,valueAxis:this._V})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartAxes=bi;var v="ChartAxis",ci=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartAxis"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["majorUnit","maximum","minimum","minorUnit","displayUnit","showDisplayUnitLabel","customDisplayUnit","type","minorTimeUnitScale","majorTimeUnitScale","baseTimeUnit","categoryType","axisGroup","scaleType","logBase","left","top","height","width","reversePlotOrder","crosses","crossesAt","visible","isBetweenCategories","majorTickMark","minorTickMark","tickMarkSpacing","tickLabelPosition","tickLabelSpacing","alignment","multiLevel","numberFormat","linkNumberFormat","offset","textOrientation","position","positionAt"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,false,false,true,true,true,true,false,true,true,false,false,false,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["majorGridlines","minorGridlines","title","format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartAxisFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"majorGridlines",{"get":function(){if(!this._M)this._M=l(a.ChartGridlines,this,"MajorGridlines",false,4);return this._M},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"minorGridlines",{"get":function(){if(!this._Min)this._Min=l(a.ChartGridlines,this,"MinorGridlines",false,4);return this._Min},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"title",{"get":function(){if(!this._Tit)this._Tit=l(a.ChartAxisTitle,this,"Title",false,4);return this._Tit},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"alignment",{"get":function(){b("alignment",this._A,v,this._isNull);e("ChartAxis.alignment",f,"1.8",g);return this._A},"set":function(a){this._A=a;h(this,"Alignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"axisGroup",{"get":function(){b("axisGroup",this._Ax,v,this._isNull);e("ChartAxis.axisGroup",f,"1.7",g);return this._Ax},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"baseTimeUnit",{"get":function(){b("baseTimeUnit",this._B,v,this._isNull);e("ChartAxis.baseTimeUnit",f,"1.7",g);return this._B},"set":function(a){this._B=a;h(this,"BaseTimeUnit",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"categoryType",{"get":function(){b("categoryType",this._C,v,this._isNull);e("ChartAxis.categoryType",f,"1.7",g);return this._C},"set":function(a){this._C=a;h(this,"CategoryType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"crosses",{"get":function(){b("crosses",this._Cr,v,this._isNull);e("ChartAxis.crosses",f,"1.7",g);return this._Cr},"set":function(a){this._Cr=a;h(this,"Crosses",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"crossesAt",{"get":function(){b("crossesAt",this._Cro,v,this._isNull);e("ChartAxis.crossesAt",f,"1.7",g);return this._Cro},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"customDisplayUnit",{"get":function(){b("customDisplayUnit",this._Cu,v,this._isNull);e("ChartAxis.customDisplayUnit",f,"1.7",g);return this._Cu},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"displayUnit",{"get":function(){b("displayUnit",this._D,v,this._isNull);e("ChartAxis.displayUnit",f,"1.7",g);return this._D},"set":function(a){this._D=a;h(this,"DisplayUnit",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"height",{"get":function(){b("height",this._H,v,this._isNull);e("ChartAxis.height",f,"1.7",g);return this._H},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"isBetweenCategories",{"get":function(){b("isBetweenCategories",this._I,v,this._isNull);e("ChartAxis.isBetweenCategories",f,"1.8",g);return this._I},"set":function(a){this._I=a;h(this,"IsBetweenCategories",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"left",{"get":function(){b("left",this._L,v,this._isNull);e("ChartAxis.left",f,"1.7",g);return this._L},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"linkNumberFormat",{"get":function(){b("linkNumberFormat",this._Li,v,this._isNull);e("ChartAxis.linkNumberFormat",f,"1.9",g);return this._Li},"set":function(a){this._Li=a;h(this,"LinkNumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"logBase",{"get":function(){b("logBase",this._Lo,v,this._isNull);e("ChartAxis.logBase",f,"1.7",g);return this._Lo},"set":function(a){this._Lo=a;h(this,"LogBase",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"majorTickMark",{"get":function(){b("majorTickMark",this._Ma,v,this._isNull);e("ChartAxis.majorTickMark",f,"1.7",g);return this._Ma},"set":function(a){this._Ma=a;h(this,"MajorTickMark",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"majorTimeUnitScale",{"get":function(){b("majorTimeUnitScale",this._Maj,v,this._isNull);e("ChartAxis.majorTimeUnitScale",f,"1.7",g);return this._Maj},"set":function(a){this._Maj=a;h(this,"MajorTimeUnitScale",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"majorUnit",{"get":function(){b("majorUnit",this._Majo,v,this._isNull);return this._Majo},"set":function(a){this._Majo=a;h(this,"MajorUnit",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"maximum",{"get":function(){b("maximum",this._Max,v,this._isNull);return this._Max},"set":function(a){this._Max=a;h(this,"Maximum",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"minimum",{"get":function(){b("minimum",this._Mi,v,this._isNull);return this._Mi},"set":function(a){this._Mi=a;h(this,"Minimum",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"minorTickMark",{"get":function(){b("minorTickMark",this._Mino,v,this._isNull);e("ChartAxis.minorTickMark",f,"1.7",g);return this._Mino},"set":function(a){this._Mino=a;h(this,"MinorTickMark",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"minorTimeUnitScale",{"get":function(){b("minorTimeUnitScale",this._Minor,v,this._isNull);e("ChartAxis.minorTimeUnitScale",f,"1.7",g);return this._Minor},"set":function(a){this._Minor=a;h(this,"MinorTimeUnitScale",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"minorUnit",{"get":function(){b("minorUnit",this._MinorU,v,this._isNull);return this._MinorU},"set":function(a){this._MinorU=a;h(this,"MinorUnit",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"multiLevel",{"get":function(){b("multiLevel",this._Mu,v,this._isNull);e("ChartAxis.multiLevel",f,"1.8",g);return this._Mu},"set":function(a){this._Mu=a;h(this,"MultiLevel",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormat",{"get":function(){b("numberFormat",this._N,v,this._isNull);e("ChartAxis.numberFormat",f,"1.8",g);return this._N},"set":function(a){this._N=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"offset",{"get":function(){b("offset",this._O,v,this._isNull);e("ChartAxis.offset",f,"1.8",g);return this._O},"set":function(a){this._O=a;h(this,"Offset",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,v,this._isNull);e("ChartAxis.position",f,"1.8",g);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"positionAt",{"get":function(){b("positionAt",this._Po,v,this._isNull);e("ChartAxis.positionAt",f,"1.8",g);return this._Po},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"reversePlotOrder",{"get":function(){b("reversePlotOrder",this._R,v,this._isNull);e("ChartAxis.reversePlotOrder",f,"1.7",g);return this._R},"set":function(a){this._R=a;h(this,"ReversePlotOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"scaleType",{"get":function(){b("scaleType",this._S,v,this._isNull);e("ChartAxis.scaleType",f,"1.7",g);return this._S},"set":function(a){this._S=a;h(this,"ScaleType",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showDisplayUnitLabel",{"get":function(){b("showDisplayUnitLabel",this._Sh,v,this._isNull);e("ChartAxis.showDisplayUnitLabel",f,"1.7",g);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowDisplayUnitLabel",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"textOrientation",{"get":function(){b("textOrientation",this._T,v,this._isNull);e("ChartAxis.textOrientation",f,"1.8",g);return this._T},"set":function(a){this._T=a;h(this,"TextOrientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"tickLabelPosition",{"get":function(){b("tickLabelPosition",this._Ti,v,this._isNull);e("ChartAxis.tickLabelPosition",f,"1.7",g);return this._Ti},"set":function(a){this._Ti=a;h(this,"TickLabelPosition",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"tickLabelSpacing",{"get":function(){b("tickLabelSpacing",this._Tic,v,this._isNull);e("ChartAxis.tickLabelSpacing",f,"1.7",g);return this._Tic},"set":function(a){this._Tic=a;h(this,"TickLabelSpacing",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"tickMarkSpacing",{"get":function(){b("tickMarkSpacing",this._Tick,v,this._isNull);e("ChartAxis.tickMarkSpacing",f,"1.7",g);return this._Tick},"set":function(a){this._Tick=a;h(this,"TickMarkSpacing",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"top",{"get":function(){b("top",this._To,v,this._isNull);e("ChartAxis.top",f,"1.7",g);return this._To},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"type",{"get":function(){b("type",this._Ty,v,this._isNull);e("ChartAxis.type",f,"1.7",g);return this._Ty},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"visible",{"get":function(){b("visible",this._V,v,this._isNull);e("ChartAxis.visible",f,"1.7",g);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"width",{"get":function(){b("width",this._W,v,this._isNull);e("ChartAxis.width",f,"1.7",g);return this._W},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["majorUnit","maximum","minimum","minorUnit","displayUnit","showDisplayUnitLabel","minorTimeUnitScale","majorTimeUnitScale","baseTimeUnit","categoryType","scaleType","logBase","reversePlotOrder","crosses","visible","isBetweenCategories","majorTickMark","minorTickMark","tickMarkSpacing","tickLabelPosition","tickLabelSpacing","alignment","multiLevel","numberFormat","linkNumberFormat","offset","textOrientation","position"],["majorGridlines","minorGridlines","title","format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.setCategoryNames=function(a){e("ChartAxis.setCategoryNames",f,"1.7",g);j(this,"SetCategoryNames",0,[a],0,0)};d.prototype.setCrossesAt=function(a){e("ChartAxis.setCrossesAt",f,"1.7",g);j(this,"SetCrossesAt",0,[a],0,0)};d.prototype.setCustomDisplayUnit=function(a){e("ChartAxis.setCustomDisplayUnit",f,"1.7",g);j(this,"SetCustomDisplayUnit",0,[a],0,0)};d.prototype.setPositionAt=function(a){e("ChartAxis.setPositionAt",f,"1.8",g);j(this,"SetPositionAt",0,[a],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Alignment))this._A=a.Alignment;if(!c(a.AxisGroup))this._Ax=a.AxisGroup;if(!c(a.BaseTimeUnit))this._B=a.BaseTimeUnit;if(!c(a.CategoryType))this._C=a.CategoryType;if(!c(a.Crosses))this._Cr=a.Crosses;if(!c(a.CrossesAt))this._Cro=a.CrossesAt;if(!c(a.CustomDisplayUnit))this._Cu=a.CustomDisplayUnit;if(!c(a.DisplayUnit))this._D=a.DisplayUnit;if(!c(a.Height))this._H=a.Height;if(!c(a.IsBetweenCategories))this._I=a.IsBetweenCategories;if(!c(a.Left))this._L=a.Left;if(!c(a.LinkNumberFormat))this._Li=a.LinkNumberFormat;if(!c(a.LogBase))this._Lo=a.LogBase;if(!c(a.MajorTickMark))this._Ma=a.MajorTickMark;if(!c(a.MajorTimeUnitScale))this._Maj=a.MajorTimeUnitScale;if(!c(a.MajorUnit))this._Majo=a.MajorUnit;if(!c(a.Maximum))this._Max=a.Maximum;if(!c(a.Minimum))this._Mi=a.Minimum;if(!c(a.MinorTickMark))this._Mino=a.MinorTickMark;if(!c(a.MinorTimeUnitScale))this._Minor=a.MinorTimeUnitScale;if(!c(a.MinorUnit))this._MinorU=a.MinorUnit;if(!c(a.MultiLevel))this._Mu=a.MultiLevel;if(!c(a.NumberFormat))this._N=a.NumberFormat;if(!c(a.Offset))this._O=a.Offset;if(!c(a.Position))this._P=a.Position;if(!c(a.PositionAt))this._Po=a.PositionAt;if(!c(a.ReversePlotOrder))this._R=a.ReversePlotOrder;if(!c(a.ScaleType))this._S=a.ScaleType;if(!c(a.ShowDisplayUnitLabel))this._Sh=a.ShowDisplayUnitLabel;if(!c(a.TextOrientation))this._T=a.TextOrientation;if(!c(a.TickLabelPosition))this._Ti=a.TickLabelPosition;if(!c(a.TickLabelSpacing))this._Tic=a.TickLabelSpacing;if(!c(a.TickMarkSpacing))this._Tick=a.TickMarkSpacing;if(!c(a.Top))this._To=a.Top;if(!c(a.Type))this._Ty=a.Type;if(!c(a.Visible))this._V=a.Visible;if(!c(a.Width))this._W=a.Width;s(this,a,["format","Format","majorGridlines","MajorGridlines","minorGridlines","MinorGridlines","title","Title"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{alignment:this._A,axisGroup:this._Ax,baseTimeUnit:this._B,categoryType:this._C,crosses:this._Cr,crossesAt:this._Cro,customDisplayUnit:this._Cu,displayUnit:this._D,height:this._H,isBetweenCategories:this._I,left:this._L,linkNumberFormat:this._Li,logBase:this._Lo,majorTickMark:this._Ma,majorTimeUnitScale:this._Maj,majorUnit:this._Majo,maximum:this._Max,minimum:this._Mi,minorTickMark:this._Mino,minorTimeUnitScale:this._Minor,minorUnit:this._MinorU,multiLevel:this._Mu,numberFormat:this._N,offset:this._O,position:this._P,positionAt:this._Po,reversePlotOrder:this._R,scaleType:this._S,showDisplayUnitLabel:this._Sh,textOrientation:this._T,tickLabelPosition:this._Ti,tickLabelSpacing:this._Tic,tickMarkSpacing:this._Tick,top:this._To,type:this._Ty,visible:this._V,width:this._W},{format:this._F,majorGridlines:this._M,minorGridlines:this._Min,title:this._Tit})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartAxis=ci;var kj="ChartAxisFormat",fg=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartAxisFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["font","line","fill"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){e("ChartAxisFormat.fill",f,"1.8",g);if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"line",{"get":function(){if(!this._L)this._L=l(a.ChartLineFormat,this,"Line",false,4);return this._L},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["font","line"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["fill","Fill","font","Font","line","Line"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{font:this._Fo,line:this._L})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartAxisFormat=fg;var kc="ChartAxisTitle",Cg=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartAxisTitle"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["text","visible"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartAxisTitleFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"text",{"get":function(){b("text",this._T,kc,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Text",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"visible",{"get":function(){b("visible",this._V,kc,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["text","visible"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.setFormula=function(a){e("ChartAxisTitle.setFormula",f,"1.8",g);j(this,"SetFormula",0,[a],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Text))this._T=a.Text;if(!c(a.Visible))this._V=a.Visible;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{text:this._T,visible:this._V},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartAxisTitle=Cg;var Yi="ChartAxisTitleFormat",Ae=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartAxisTitleFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["font","fill","border"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"border",{"get":function(){e("ChartAxisTitleFormat.border",f,"1.8",g);if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){e("ChartAxisTitleFormat.fill",f,"1.8",g);if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["font","border"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["border","Border","fill","Fill","font","Font"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{border:this._B,font:this._Fo})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartAxisTitleFormat=Ae;var E="ChartDataLabels",ig=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartDataLabels"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","numberFormat","linkNumberFormat","textOrientation","autoText","horizontalAlignment","verticalAlignment"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartDataLabelFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"autoText",{"get":function(){b("autoText",this._A,E,this._isNull);e("ChartDataLabels.autoText",f,"1.8",g);return this._A},"set":function(a){this._A=a;h(this,"AutoText",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"horizontalAlignment",{"get":function(){b("horizontalAlignment",this._H,E,this._isNull);e("ChartDataLabels.horizontalAlignment",f,"1.8",g);return this._H},"set":function(a){this._H=a;h(this,"HorizontalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"linkNumberFormat",{"get":function(){b("linkNumberFormat",this._L,E,this._isNull);e("ChartDataLabels.linkNumberFormat",f,"1.9",g);return this._L},"set":function(a){this._L=a;h(this,"LinkNumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormat",{"get":function(){b("numberFormat",this._N,E,this._isNull);e("ChartDataLabels.numberFormat",f,"1.8",g);return this._N},"set":function(a){this._N=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,E,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"separator",{"get":function(){b("separator",this._S,E,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Separator",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showBubbleSize",{"get":function(){b("showBubbleSize",this._Sh,E,this._isNull);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowBubbleSize",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showCategoryName",{"get":function(){b("showCategoryName",this._Sho,E,this._isNull);return this._Sho},"set":function(a){this._Sho=a;h(this,"ShowCategoryName",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showLegendKey",{"get":function(){b("showLegendKey",this._Show,E,this._isNull);return this._Show},"set":function(a){this._Show=a;h(this,"ShowLegendKey",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showPercentage",{"get":function(){b("showPercentage",this._ShowP,E,this._isNull);return this._ShowP},"set":function(a){this._ShowP=a;h(this,"ShowPercentage",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showSeriesName",{"get":function(){b("showSeriesName",this._ShowS,E,this._isNull);return this._ShowS},"set":function(a){this._ShowS=a;h(this,"ShowSeriesName",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showValue",{"get":function(){b("showValue",this._ShowV,E,this._isNull);return this._ShowV},"set":function(a){this._ShowV=a;h(this,"ShowValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"textOrientation",{"get":function(){b("textOrientation",this._T,E,this._isNull);e("ChartDataLabels.textOrientation",f,"1.8",g);return this._T},"set":function(a){this._T=a;h(this,"TextOrientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"verticalAlignment",{"get":function(){b("verticalAlignment",this._V,E,this._isNull);e("ChartDataLabels.verticalAlignment",f,"1.8",g);return this._V},"set":function(a){this._V=a;h(this,"VerticalAlignment",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","numberFormat","linkNumberFormat","textOrientation","autoText","horizontalAlignment","verticalAlignment"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoText))this._A=a.AutoText;if(!c(a.HorizontalAlignment))this._H=a.HorizontalAlignment;if(!c(a.LinkNumberFormat))this._L=a.LinkNumberFormat;if(!c(a.NumberFormat))this._N=a.NumberFormat;if(!c(a.Position))this._P=a.Position;if(!c(a.Separator))this._S=a.Separator;if(!c(a.ShowBubbleSize))this._Sh=a.ShowBubbleSize;if(!c(a.ShowCategoryName))this._Sho=a.ShowCategoryName;if(!c(a.ShowLegendKey))this._Show=a.ShowLegendKey;if(!c(a.ShowPercentage))this._ShowP=a.ShowPercentage;if(!c(a.ShowSeriesName))this._ShowS=a.ShowSeriesName;if(!c(a.ShowValue))this._ShowV=a.ShowValue;if(!c(a.TextOrientation))this._T=a.TextOrientation;if(!c(a.VerticalAlignment))this._V=a.VerticalAlignment;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{autoText:this._A,horizontalAlignment:this._H,linkNumberFormat:this._L,numberFormat:this._N,position:this._P,separator:this._S,showBubbleSize:this._Sh,showCategoryName:this._Sho,showLegendKey:this._Show,showPercentage:this._ShowP,showSeriesName:this._ShowS,showValue:this._ShowV,textOrientation:this._T,verticalAlignment:this._V},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartDataLabels=ig;var z="ChartDataLabel",Dg=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartDataLabel"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","top","left","width","height","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){e("ChartDataLabel.format",f,"1.8",g);if(!this._F)this._F=l(a.ChartDataLabelFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"autoText",{"get":function(){b("autoText",this._A,z,this._isNull);e("ChartDataLabel.autoText",f,"1.8",g);return this._A},"set":function(a){this._A=a;h(this,"AutoText",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"formula",{"get":function(){b("formula",this._Fo,z,this._isNull);e("ChartDataLabel.formula",f,"1.8",g);return this._Fo},"set":function(a){this._Fo=a;h(this,"Formula",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"height",{"get":function(){b("height",this._H,z,this._isNull);e("ChartDataLabel.height",f,"1.8",g);return this._H},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"horizontalAlignment",{"get":function(){b("horizontalAlignment",this._Ho,z,this._isNull);e("ChartDataLabel.horizontalAlignment",f,"1.8",g);return this._Ho},"set":function(a){this._Ho=a;h(this,"HorizontalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"left",{"get":function(){b("left",this._L,z,this._isNull);e("ChartDataLabel.left",f,"1.8",g);return this._L},"set":function(a){this._L=a;h(this,"Left",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"linkNumberFormat",{"get":function(){b("linkNumberFormat",this._Li,z,this._isNull);e("ChartDataLabel.linkNumberFormat",f,"1.9",g);return this._Li},"set":function(a){this._Li=a;h(this,"LinkNumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormat",{"get":function(){b("numberFormat",this._N,z,this._isNull);e("ChartDataLabel.numberFormat",f,"1.8",g);return this._N},"set":function(a){this._N=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,z,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"separator",{"get":function(){b("separator",this._S,z,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Separator",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showBubbleSize",{"get":function(){b("showBubbleSize",this._Sh,z,this._isNull);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowBubbleSize",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showCategoryName",{"get":function(){b("showCategoryName",this._Sho,z,this._isNull);return this._Sho},"set":function(a){this._Sho=a;h(this,"ShowCategoryName",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showLegendKey",{"get":function(){b("showLegendKey",this._Show,z,this._isNull);return this._Show},"set":function(a){this._Show=a;h(this,"ShowLegendKey",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showPercentage",{"get":function(){b("showPercentage",this._ShowP,z,this._isNull);return this._ShowP},"set":function(a){this._ShowP=a;h(this,"ShowPercentage",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showSeriesName",{"get":function(){b("showSeriesName",this._ShowS,z,this._isNull);return this._ShowS},"set":function(a){this._ShowS=a;h(this,"ShowSeriesName",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showValue",{"get":function(){b("showValue",this._ShowV,z,this._isNull);return this._ShowV},"set":function(a){this._ShowV=a;h(this,"ShowValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"text",{"get":function(){b("text",this._T,z,this._isNull);e("ChartDataLabel.text",f,"1.8",g);return this._T},"set":function(a){this._T=a;h(this,"Text",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"textOrientation",{"get":function(){b("textOrientation",this._Te,z,this._isNull);e("ChartDataLabel.textOrientation",f,"1.8",g);return this._Te},"set":function(a){this._Te=a;h(this,"TextOrientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"top",{"get":function(){b("top",this._To,z,this._isNull);e("ChartDataLabel.top",f,"1.8",g);return this._To},"set":function(a){this._To=a;h(this,"Top",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"verticalAlignment",{"get":function(){b("verticalAlignment",this._V,z,this._isNull);e("ChartDataLabel.verticalAlignment",f,"1.8",g);return this._V},"set":function(a){this._V=a;h(this,"VerticalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"width",{"get":function(){b("width",this._W,z,this._isNull);e("ChartDataLabel.width",f,"1.8",g);return this._W},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator","top","left","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoText))this._A=a.AutoText;if(!c(a.Formula))this._Fo=a.Formula;if(!c(a.Height))this._H=a.Height;if(!c(a.HorizontalAlignment))this._Ho=a.HorizontalAlignment;if(!c(a.Left))this._L=a.Left;if(!c(a.LinkNumberFormat))this._Li=a.LinkNumberFormat;if(!c(a.NumberFormat))this._N=a.NumberFormat;if(!c(a.Position))this._P=a.Position;if(!c(a.Separator))this._S=a.Separator;if(!c(a.ShowBubbleSize))this._Sh=a.ShowBubbleSize;if(!c(a.ShowCategoryName))this._Sho=a.ShowCategoryName;if(!c(a.ShowLegendKey))this._Show=a.ShowLegendKey;if(!c(a.ShowPercentage))this._ShowP=a.ShowPercentage;if(!c(a.ShowSeriesName))this._ShowS=a.ShowSeriesName;if(!c(a.ShowValue))this._ShowV=a.ShowValue;if(!c(a.Text))this._T=a.Text;if(!c(a.TextOrientation))this._Te=a.TextOrientation;if(!c(a.Top))this._To=a.Top;if(!c(a.VerticalAlignment))this._V=a.VerticalAlignment;if(!c(a.Width))this._W=a.Width;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{autoText:this._A,formula:this._Fo,height:this._H,horizontalAlignment:this._Ho,left:this._L,linkNumberFormat:this._Li,numberFormat:this._N,position:this._P,separator:this._S,showBubbleSize:this._Sh,showCategoryName:this._Sho,showLegendKey:this._Show,showPercentage:this._ShowP,showSeriesName:this._ShowS,showValue:this._ShowV,text:this._T,textOrientation:this._Te,top:this._To,verticalAlignment:this._V,width:this._W},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartDataLabel=Dg;var Zi="ChartDataLabelFormat",Be=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartDataLabelFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["font","fill","border"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"border",{"get":function(){e("ChartDataLabelFormat.border",f,"1.8",g);if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["font","border"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["border","Border","fill","Fill","font","Font"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{border:this._B,font:this._Fo})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartDataLabelFormat=Be;var sb="ChartErrorBars",Eg=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartErrorBars"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["endStyleCap","include","type","visible"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartErrorBarsFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"endStyleCap",{"get":function(){b("endStyleCap",this._E,sb,this._isNull);return this._E},"set":function(a){this._E=a;h(this,"EndStyleCap",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"include",{"get":function(){b("include",this._I,sb,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"Include",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"type",{"get":function(){b("type",this._T,sb,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Type",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"visible",{"get":function(){b("visible",this._V,sb,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["endStyleCap","include","type","visible"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.EndStyleCap))this._E=a.EndStyleCap;if(!c(a.Include))this._I=a.Include;if(!c(a.Type))this._T=a.Type;if(!c(a.Visible))this._V=a.Visible;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{endStyleCap:this._E,include:this._I,type:this._T,visible:this._V},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartErrorBars=Eg;var aj="ChartErrorBarsFormat",De=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartErrorBarsFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["line"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"line",{"get":function(){if(!this._L)this._L=l(a.ChartLineFormat,this,"Line",false,4);return this._L},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["line"],[])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["line","Line"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{line:this._L})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartErrorBarsFormat=De;var pf="ChartGridlines",Fg=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartGridlines"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["visible"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartGridlinesFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"visible",{"get":function(){b("visible",this._V,pf,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["visible"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Visible))this._V=a.Visible;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{visible:this._V},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartGridlines=Fg;var bj="ChartGridlinesFormat",Ee=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartGridlinesFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["line"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"line",{"get":function(){if(!this._L)this._L=l(a.ChartLineFormat,this,"Line",false,4);return this._L},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["line"],[])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["line","Line"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{line:this._L})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartGridlinesFormat=Ee;var R="ChartLegend",Ch=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartLegend"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["visible","position","overlay","left","top","width","height","showShadow"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format","legendEntries"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartLegendFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"legendEntries",{"get":function(){e("ChartLegend.legendEntries",f,"1.7",g);if(!this._Le)this._Le=l(a.ChartLegendEntryCollection,this,"LegendEntries",true,4);return this._Le},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"height",{"get":function(){b("height",this._H,R,this._isNull);e("ChartLegend.height",f,"1.7",g);return this._H},"set":function(a){this._H=a;h(this,"Height",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"left",{"get":function(){b("left",this._L,R,this._isNull);e("ChartLegend.left",f,"1.7",g);return this._L},"set":function(a){this._L=a;h(this,"Left",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"overlay",{"get":function(){b("overlay",this._O,R,this._isNull);return this._O},"set":function(a){this._O=a;h(this,"Overlay",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,R,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showShadow",{"get":function(){b("showShadow",this._S,R,this._isNull);e("ChartLegend.showShadow",f,"1.7",g);return this._S},"set":function(a){this._S=a;h(this,"ShowShadow",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"top",{"get":function(){b("top",this._T,R,this._isNull);e("ChartLegend.top",f,"1.7",g);return this._T},"set":function(a){this._T=a;h(this,"Top",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"visible",{"get":function(){b("visible",this._V,R,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"width",{"get":function(){b("width",this._W,R,this._isNull);e("ChartLegend.width",f,"1.7",g);return this._W},"set":function(a){this._W=a;h(this,"Width",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["visible","position","overlay","left","top","width","height","showShadow"],["format"],["legendEntries"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Height))this._H=a.Height;if(!c(a.Left))this._L=a.Left;if(!c(a.Overlay))this._O=a.Overlay;if(!c(a.Position))this._P=a.Position;if(!c(a.ShowShadow))this._S=a.ShowShadow;if(!c(a.Top))this._T=a.Top;if(!c(a.Visible))this._V=a.Visible;if(!c(a.Width))this._W=a.Width;s(this,a,["format","Format","legendEntries","LegendEntries"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{height:this._H,left:this._L,overlay:this._O,position:this._P,showShadow:this._S,top:this._T,visible:this._V,width:this._W},{format:this._F,legendEntries:this._Le})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartLegend=Ch;var Y="ChartLegendEntry",Uf=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartLegendEntry"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["visible","left","top","width","height","index"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,false,false,false,false,false]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"height",{"get":function(){b("height",this._H,Y,this._isNull);e("ChartLegendEntry.height",f,"1.8",g);return this._H},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"index",{"get":function(){b("index",this._I,Y,this._isNull);e("ChartLegendEntry.index",f,"1.8",g);return this._I},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"left",{"get":function(){b("left",this._L,Y,this._isNull);e("ChartLegendEntry.left",f,"1.8",g);return this._L},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"top",{"get":function(){b("top",this._T,Y,this._isNull);e("ChartLegendEntry.top",f,"1.8",g);return this._T},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"visible",{"get":function(){b("visible",this._V,Y,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"width",{"get":function(){b("width",this._W,Y,this._isNull);e("ChartLegendEntry.width",f,"1.8",g);return this._W},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["visible"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Height))this._H=a.Height;if(!c(a.Index))this._I=a.Index;if(!c(a.Left))this._L=a.Left;if(!c(a.Top))this._T=a.Top;if(!c(a.Visible))this._V=a.Visible;if(!c(a.Width))this._W=a.Width};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{height:this._H,index:this._I,left:this._L,top:this._T,visible:this._V,width:this._W},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartLegendEntry=Uf;var Qc="ChartLegendEntryCollection",pd=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"ChartLegendEntryCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Qc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItemAt=function(b){return d(a.ChartLegendEntry,this,"GetItemAt",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.ChartLegendEntry,false,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.ChartLegendEntry,false,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.ChartLegendEntryCollection=pd;var gj="ChartLegendFormat",If=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartLegendFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["font","fill","border"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"border",{"get":function(){e("ChartLegendFormat.border",f,"1.8",g);if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["font","border"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["border","Border","fill","Fill","font","Font"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{border:this._B,font:this._Fo})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartLegendFormat=If;var Hb="ChartMapOptions",kg=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartMapOptions"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["level","labelStrategy","projectionType"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"labelStrategy",{"get":function(){b("labelStrategy",this._L,Hb,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"LabelStrategy",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"level",{"get":function(){b("level",this._Le,Hb,this._isNull);return this._Le},"set":function(a){this._Le=a;h(this,"Level",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"projectionType",{"get":function(){b("projectionType",this._P,Hb,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"ProjectionType",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["level","labelStrategy","projectionType"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.LabelStrategy))this._L=a.LabelStrategy;if(!c(a.Level))this._Le=a.Level;if(!c(a.ProjectionType))this._P=a.ProjectionType};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{labelStrategy:this._L,level:this._Le,projectionType:this._P},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartMapOptions=kg;var H="ChartTitle",Rh=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"ChartTitle"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["visible","text","overlay","horizontalAlignment","top","left","width","height","verticalAlignment","textOrientation","position","showShadow"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,false,false,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartTitleFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"height",{"get":function(){b("height",this._H,H,this._isNull);e("ChartTitle.height",f,"1.7",g);return this._H},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"horizontalAlignment",{"get":function(){b("horizontalAlignment",this._Ho,H,this._isNull);e("ChartTitle.horizontalAlignment",f,"1.7",g);return this._Ho},"set":function(a){this._Ho=a;h(this,"HorizontalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"left",{"get":function(){b("left",this._L,H,this._isNull);e("ChartTitle.left",f,"1.7",g);return this._L},"set":function(a){this._L=a;h(this,"Left",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"overlay",{"get":function(){b("overlay",this._O,H,this._isNull);return this._O},"set":function(a){this._O=a;h(this,"Overlay",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"position",{"get":function(){b("position",this._P,H,this._isNull);e("ChartTitle.position",f,"1.7",g);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showShadow",{"get":function(){b("showShadow",this._S,H,this._isNull);e("ChartTitle.showShadow",f,"1.7",g);return this._S},"set":function(a){this._S=a;h(this,"ShowShadow",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"text",{"get":function(){b("text",this._T,H,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Text",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"textOrientation",{"get":function(){b("textOrientation",this._Te,H,this._isNull);e("ChartTitle.textOrientation",f,"1.7",g);return this._Te},"set":function(a){this._Te=a;h(this,"TextOrientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"top",{"get":function(){b("top",this._To,H,this._isNull);e("ChartTitle.top",f,"1.7",g);return this._To},"set":function(a){this._To=a;h(this,"Top",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"verticalAlignment",{"get":function(){b("verticalAlignment",this._V,H,this._isNull);e("ChartTitle.verticalAlignment",f,"1.7",g);return this._V},"set":function(a){this._V=a;h(this,"VerticalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"visible",{"get":function(){b("visible",this._Vi,H,this._isNull);return this._Vi},"set":function(a){this._Vi=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"width",{"get":function(){b("width",this._W,H,this._isNull);e("ChartTitle.width",f,"1.7",g);return this._W},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["visible","text","overlay","horizontalAlignment","top","left","verticalAlignment","textOrientation","position","showShadow"],["format"],[])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.getSubstring=function(c,b){e("ChartTitle.getSubstring",f,"1.7",g);return d(a.ChartFormatString,this,"GetSubstring",1,[c,b],false,false,null,4)};i.prototype.setFormula=function(a){e("ChartTitle.setFormula",f,"1.7",g);j(this,"SetFormula",0,[a],0,0)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Height))this._H=a.Height;if(!c(a.HorizontalAlignment))this._Ho=a.HorizontalAlignment;if(!c(a.Left))this._L=a.Left;if(!c(a.Overlay))this._O=a.Overlay;if(!c(a.Position))this._P=a.Position;if(!c(a.ShowShadow))this._S=a.ShowShadow;if(!c(a.Text))this._T=a.Text;if(!c(a.TextOrientation))this._Te=a.TextOrientation;if(!c(a.Top))this._To=a.Top;if(!c(a.VerticalAlignment))this._V=a.VerticalAlignment;if(!c(a.Visible))this._Vi=a.Visible;if(!c(a.Width))this._W=a.Width;s(this,a,["format","Format"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.toJSON=function(){return o(this,{height:this._H,horizontalAlignment:this._Ho,left:this._L,overlay:this._O,position:this._P,showShadow:this._S,text:this._T,textOrientation:this._Te,top:this._To,verticalAlignment:this._V,visible:this._Vi,width:this._W},{format:this._F})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.ChartTitle=Rh;var fj="ChartFormatString",Hf=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartFormatString"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["font"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"font",{"get":function(){if(!this._F)this._F=l(a.ChartFont,this,"Font",false,4);return this._F},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["font"],[])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["font","Font"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{font:this._F})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartFormatString=Hf;var jj="ChartTitleFormat",Xf=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartTitleFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["font","fill","border"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"border",{"get":function(){e("ChartTitleFormat.border",f,"1.7",g);if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["font","border"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["border","Border","fill","Fill","font","Font"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{border:this._B,font:this._Fo})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartTitleFormat=Xf;var nj="ChartFill",di=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartFill"},enumerable:true,configurable:true});a.prototype.load=function(a){p(this,a);return this};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype.setSolidColor=function(a){j(this,"SetSolidColor",0,[a],0,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(k(a))return;var c=a;m(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);n(this,c,a)};a.prototype.toJSON=function(){return o(this,{},{})};return a}(OfficeExtension.ClientObject);a.ChartFill=di;var Lb="ChartBorder",Bh=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartBorder"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["color","lineStyle","weight"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,Lb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"lineStyle",{"get":function(){b("lineStyle",this._L,Lb,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"LineStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"weight",{"get":function(){b("weight",this._W,Lb,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"Weight",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["color","lineStyle","weight"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype.clear=function(){e("ChartBorder.clear",f,"1.8",g);j(this,"Clear",0,[],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Color))this._C=a.Color;if(!c(a.LineStyle))this._L=a.LineStyle;if(!c(a.Weight))this._W=a.Weight};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{color:this._C,lineStyle:this._L,weight:this._W},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartBorder=Bh;var V="ChartBinOptions",gg=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartBinOptions"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["type","width","count","allowOverflow","allowUnderflow","overflowValue","underflowValue"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"allowOverflow",{"get":function(){b("allowOverflow",this._A,V,this._isNull);return this._A},"set":function(a){this._A=a;h(this,"AllowOverflow",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"allowUnderflow",{"get":function(){b("allowUnderflow",this._Al,V,this._isNull);return this._Al},"set":function(a){this._Al=a;h(this,"AllowUnderflow",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"count",{"get":function(){b("count",this._C,V,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Count",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"overflowValue",{"get":function(){b("overflowValue",this._O,V,this._isNull);return this._O},"set":function(a){this._O=a;h(this,"OverflowValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"type",{"get":function(){b("type",this._T,V,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Type",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"underflowValue",{"get":function(){b("underflowValue",this._U,V,this._isNull);return this._U},"set":function(a){this._U=a;h(this,"UnderflowValue",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"width",{"get":function(){b("width",this._W,V,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"Width",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["type","width","count","allowOverflow","allowUnderflow","overflowValue","underflowValue"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AllowOverflow))this._A=a.AllowOverflow;if(!c(a.AllowUnderflow))this._Al=a.AllowUnderflow;if(!c(a.Count))this._C=a.Count;if(!c(a.OverflowValue))this._O=a.OverflowValue;if(!c(a.Type))this._T=a.Type;if(!c(a.UnderflowValue))this._U=a.UnderflowValue;if(!c(a.Width))this._W=a.Width};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{allowOverflow:this._A,allowUnderflow:this._Al,count:this._C,overflowValue:this._O,type:this._T,underflowValue:this._U,width:this._W},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartBinOptions=gg;var ib="ChartBoxwhiskerOptions",ae=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartBoxwhiskerOptions"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["showInnerPoints","showOutlierPoints","showMeanMarker","showMeanLine","quartileCalculation"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"quartileCalculation",{"get":function(){b("quartileCalculation",this._Q,ib,this._isNull);return this._Q},"set":function(a){this._Q=a;h(this,"QuartileCalculation",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showInnerPoints",{"get":function(){b("showInnerPoints",this._S,ib,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShowInnerPoints",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showMeanLine",{"get":function(){b("showMeanLine",this._Sh,ib,this._isNull);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowMeanLine",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showMeanMarker",{"get":function(){b("showMeanMarker",this._Sho,ib,this._isNull);return this._Sho},"set":function(a){this._Sho=a;h(this,"ShowMeanMarker",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showOutlierPoints",{"get":function(){b("showOutlierPoints",this._Show,ib,this._isNull);return this._Show},"set":function(a){this._Show=a;h(this,"ShowOutlierPoints",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["showInnerPoints","showOutlierPoints","showMeanMarker","showMeanLine","quartileCalculation"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.QuartileCalculation))this._Q=a.QuartileCalculation;if(!c(a.ShowInnerPoints))this._S=a.ShowInnerPoints;if(!c(a.ShowMeanLine))this._Sh=a.ShowMeanLine;if(!c(a.ShowMeanMarker))this._Sho=a.ShowMeanMarker;if(!c(a.ShowOutlierPoints))this._Show=a.ShowOutlierPoints};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{quartileCalculation:this._Q,showInnerPoints:this._S,showMeanLine:this._Sh,showMeanMarker:this._Sho,showOutlierPoints:this._Show},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartBoxwhiskerOptions=ae;var Gb="ChartLineFormat",jg=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartLineFormat"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["color","lineStyle","weight"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,Gb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"lineStyle",{"get":function(){b("lineStyle",this._L,Gb,this._isNull);e("ChartLineFormat.lineStyle",f,"1.7",g);return this._L},"set":function(a){this._L=a;h(this,"LineStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"weight",{"get":function(){b("weight",this._W,Gb,this._isNull);e("ChartLineFormat.weight",f,"1.7",g);return this._W},"set":function(a){this._W=a;h(this,"Weight",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["color","lineStyle","weight"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Color))this._C=a.Color;if(!c(a.LineStyle))this._L=a.LineStyle;if(!c(a.Weight))this._W=a.Weight};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{color:this._C,lineStyle:this._L,weight:this._W},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartLineFormat=jg;var fb="ChartFont",ei=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ChartFont"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["bold","color","italic","name","size","underline"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"bold",{"get":function(){b("bold",this._B,fb,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"Bold",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,fb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"italic",{"get":function(){b("italic",this._I,fb,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"Italic",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"name",{"get":function(){b("name",this._N,fb,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"size",{"get":function(){b("size",this._S,fb,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Size",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"underline",{"get":function(){b("underline",this._U,fb,this._isNull);return this._U},"set":function(a){this._U=a;h(this,"Underline",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["bold","color","italic","name","size","underline"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Bold))this._B=a.Bold;if(!c(a.Color))this._C=a.Color;if(!c(a.Italic))this._I=a.Italic;if(!c(a.Name))this._N=a.Name;if(!c(a.Size))this._S=a.Size;if(!c(a.Underline))this._U=a.Underline};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,underline:this._U},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ChartFont=ei;var N="ChartTrendline",Ig=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartTrendline"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["type","polynomialOrder","movingAveragePeriod","_Id","showEquation","showRSquared","forwardPeriod","backwardPeriod","name","intercept"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,false,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format","label"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartTrendlineFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"label",{"get":function(){e("ChartTrendline.label",f,"1.8",g);if(!this._L)this._L=l(a.ChartTrendlineLabel,this,"Label",false,4);return this._L},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"backwardPeriod",{"get":function(){b("backwardPeriod",this._B,N,this._isNull);e("ChartTrendline.backwardPeriod",f,"1.8",g);return this._B},"set":function(a){this._B=a;h(this,"BackwardPeriod",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"forwardPeriod",{"get":function(){b("forwardPeriod",this._Fo,N,this._isNull);e("ChartTrendline.forwardPeriod",f,"1.8",g);return this._Fo},"set":function(a){this._Fo=a;h(this,"ForwardPeriod",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"intercept",{"get":function(){b("intercept",this._I,N,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"Intercept",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"movingAveragePeriod",{"get":function(){b("movingAveragePeriod",this._M,N,this._isNull);return this._M},"set":function(a){this._M=a;h(this,"MovingAveragePeriod",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,N,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"polynomialOrder",{"get":function(){b("polynomialOrder",this._P,N,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"PolynomialOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showEquation",{"get":function(){b("showEquation",this._S,N,this._isNull);e("ChartTrendline.showEquation",f,"1.8",g);return this._S},"set":function(a){this._S=a;h(this,"ShowEquation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showRSquared",{"get":function(){b("showRSquared",this._Sh,N,this._isNull);e("ChartTrendline.showRSquared",f,"1.8",g);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowRSquared",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"type",{"get":function(){b("type",this._T,N,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Type",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_Id",{"get":function(){b("_Id",this.__I,N,this._isNull);return this.__I},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["type","polynomialOrder","movingAveragePeriod","showEquation","showRSquared","forwardPeriod","backwardPeriod","name","intercept"],["format","label"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.BackwardPeriod))this._B=a.BackwardPeriod;if(!c(a.ForwardPeriod))this._Fo=a.ForwardPeriod;if(!c(a.Intercept))this._I=a.Intercept;if(!c(a.MovingAveragePeriod))this._M=a.MovingAveragePeriod;if(!c(a.Name))this._N=a.Name;if(!c(a.PolynomialOrder))this._P=a.PolynomialOrder;if(!c(a.ShowEquation))this._S=a.ShowEquation;if(!c(a.ShowRSquared))this._Sh=a.ShowRSquared;if(!c(a.Type))this._T=a.Type;if(!c(a._Id))this.__I=a._Id;s(this,a,["format","Format","label","Label"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){i.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a._Id))this.__I=a._Id};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{backwardPeriod:this._B,forwardPeriod:this._Fo,intercept:this._I,movingAveragePeriod:this._M,name:this._N,polynomialOrder:this._P,showEquation:this._S,showRSquared:this._Sh,type:this._T},{format:this._F,label:this._L})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartTrendline=Ig;var Wc="ChartTrendlineCollection",Gd=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"ChartTrendlineCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Wc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.ChartTrendline,this,"Add",0,[b],false,true,null,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.ChartTrendline,this,[b])};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.ChartTrendline,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.ChartTrendline,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.ChartTrendlineCollection=Gd;var cj="ChartTrendlineFormat",Fe=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartTrendlineFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["line"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"line",{"get":function(){if(!this._L)this._L=l(a.ChartLineFormat,this,"Line",false,4);return this._L},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["line"],[])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["line","Line"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{line:this._L})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartTrendlineFormat=Fe;var F="ChartTrendlineLabel",df=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartTrendlineLabel"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["top","left","width","height","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,false,false,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartTrendlineLabelFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"autoText",{"get":function(){b("autoText",this._A,F,this._isNull);return this._A},"set":function(a){this._A=a;h(this,"AutoText",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"formula",{"get":function(){b("formula",this._Fo,F,this._isNull);return this._Fo},"set":function(a){this._Fo=a;h(this,"Formula",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"height",{"get":function(){b("height",this._H,F,this._isNull);return this._H},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"horizontalAlignment",{"get":function(){b("horizontalAlignment",this._Ho,F,this._isNull);return this._Ho},"set":function(a){this._Ho=a;h(this,"HorizontalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"left",{"get":function(){b("left",this._L,F,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"Left",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"linkNumberFormat",{"get":function(){b("linkNumberFormat",this._Li,F,this._isNull);e("ChartTrendlineLabel.linkNumberFormat",f,"1.9",g);return this._Li},"set":function(a){this._Li=a;h(this,"LinkNumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormat",{"get":function(){b("numberFormat",this._N,F,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"text",{"get":function(){b("text",this._T,F,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Text",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"textOrientation",{"get":function(){b("textOrientation",this._Te,F,this._isNull);return this._Te},"set":function(a){this._Te=a;h(this,"TextOrientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"top",{"get":function(){b("top",this._To,F,this._isNull);return this._To},"set":function(a){this._To=a;h(this,"Top",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"verticalAlignment",{"get":function(){b("verticalAlignment",this._V,F,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"VerticalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"width",{"get":function(){b("width",this._W,F,this._isNull);return this._W},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["top","left","formula","textOrientation","horizontalAlignment","verticalAlignment","text","autoText","numberFormat","linkNumberFormat"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoText))this._A=a.AutoText;if(!c(a.Formula))this._Fo=a.Formula;if(!c(a.Height))this._H=a.Height;if(!c(a.HorizontalAlignment))this._Ho=a.HorizontalAlignment;if(!c(a.Left))this._L=a.Left;if(!c(a.LinkNumberFormat))this._Li=a.LinkNumberFormat;if(!c(a.NumberFormat))this._N=a.NumberFormat;if(!c(a.Text))this._T=a.Text;if(!c(a.TextOrientation))this._Te=a.TextOrientation;if(!c(a.Top))this._To=a.Top;if(!c(a.VerticalAlignment))this._V=a.VerticalAlignment;if(!c(a.Width))this._W=a.Width;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{autoText:this._A,formula:this._Fo,height:this._H,horizontalAlignment:this._Ho,left:this._L,linkNumberFormat:this._Li,numberFormat:this._N,text:this._T,textOrientation:this._Te,top:this._To,verticalAlignment:this._V,width:this._W},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartTrendlineLabel=df;var Vi="ChartTrendlineLabelFormat",wd=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartTrendlineLabelFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["fill","border","font"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"border",{"get":function(){if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ChartFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["border","font"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["border","Border","fill","Fill","font","Font"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{border:this._B,font:this._Fo})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartTrendlineLabelFormat=wd;var Q="ChartPlotArea",ah=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ChartPlotArea"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["left","top","width","height","insideLeft","insideTop","insideWidth","insideHeight","position"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ChartPlotAreaFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"height",{"get":function(){b("height",this._H,Q,this._isNull);return this._H},"set":function(a){this._H=a;h(this,"Height",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"insideHeight",{"get":function(){b("insideHeight",this._I,Q,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"InsideHeight",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"insideLeft",{"get":function(){b("insideLeft",this._In,Q,this._isNull);return this._In},"set":function(a){this._In=a;h(this,"InsideLeft",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"insideTop",{"get":function(){b("insideTop",this._Ins,Q,this._isNull);return this._Ins},"set":function(a){this._Ins=a;h(this,"InsideTop",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"insideWidth",{"get":function(){b("insideWidth",this._Insi,Q,this._isNull);return this._Insi},"set":function(a){this._Insi=a;h(this,"InsideWidth",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"left",{"get":function(){b("left",this._L,Q,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"Left",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,Q,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"top",{"get":function(){b("top",this._T,Q,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Top",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"width",{"get":function(){b("width",this._W,Q,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"Width",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["left","top","width","height","insideLeft","insideTop","insideWidth","insideHeight","position"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Height))this._H=a.Height;if(!c(a.InsideHeight))this._I=a.InsideHeight;if(!c(a.InsideLeft))this._In=a.InsideLeft;if(!c(a.InsideTop))this._Ins=a.InsideTop;if(!c(a.InsideWidth))this._Insi=a.InsideWidth;if(!c(a.Left))this._L=a.Left;if(!c(a.Position))this._P=a.Position;if(!c(a.Top))this._T=a.Top;if(!c(a.Width))this._W=a.Width;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{height:this._H,insideHeight:this._I,insideLeft:this._In,insideTop:this._Ins,insideWidth:this._Insi,left:this._L,position:this._P,top:this._T,width:this._W},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ChartPlotArea=ah;var ej="ChartPlotAreaFormat",cf=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"ChartPlotAreaFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["border","fill"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"border",{"get":function(){if(!this._B)this._B=l(a.ChartBorder,this,"Border",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ChartFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["border"],["fill"])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["border","Border","fill","Fill"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{border:this._B})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.ChartPlotAreaFormat=cf;var pj="RangeSort",qi=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"RangeSort"},enumerable:true,configurable:true});a.prototype.apply=function(d,c,b,a,e){j(this,"Apply",0,[d,c,b,a,e],0,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(k(a))return;var c=a;m(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);n(this,c,a)};a.prototype.toJSON=function(){return o(this,{},{})};return a}(OfficeExtension.ClientObject);a.RangeSort=qi;var Pb="TableSort",wi=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"TableSort"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["matchCase","method","fields"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"fields",{"get":function(){b("fields",this._F,Pb,this._isNull);return this._F},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"matchCase",{"get":function(){b("matchCase",this._M,Pb,this._isNull);return this._M},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"method",{"get":function(){b("method",this._Me,Pb,this._isNull);return this._Me},enumerable:true,configurable:true});a.prototype.apply=function(b,a,c){j(this,"Apply",0,[b,a,c],0,0)};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype.reapply=function(){j(this,"Reapply",0,[],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Fields))this._F=a.Fields;if(!c(a.MatchCase))this._M=a.MatchCase;if(!c(a.Method))this._Me=a.Method};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{fields:this._F,matchCase:this._M,method:this._Me},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.TableSort=wi;var Nh="Filter",Ji=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"Filter"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["criteria"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"criteria",{"get":function(){b("criteria",this._C,Nh,this._isNull);return this._C},enumerable:true,configurable:true});a.prototype.apply=function(a){j(this,"Apply",0,[a],0,0)};a.prototype.applyBottomItemsFilter=function(a){j(this,"ApplyBottomItemsFilter",0,[a],0,0)};a.prototype.applyBottomPercentFilter=function(a){j(this,"ApplyBottomPercentFilter",0,[a],0,0)};a.prototype.applyCellColorFilter=function(a){j(this,"ApplyCellColorFilter",0,[a],0,0)};a.prototype.applyCustomFilter=function(a,b,c){j(this,"ApplyCustomFilter",0,[a,b,c],0,0)};a.prototype.applyDynamicFilter=function(a){j(this,"ApplyDynamicFilter",0,[a],0,0)};a.prototype.applyFontColorFilter=function(a){j(this,"ApplyFontColorFilter",0,[a],0,0)};a.prototype.applyIconFilter=function(a){j(this,"ApplyIconFilter",0,[a],0,0)};a.prototype.applyTopItemsFilter=function(a){j(this,"ApplyTopItemsFilter",0,[a],0,0)};a.prototype.applyTopPercentFilter=function(a){j(this,"ApplyTopPercentFilter",0,[a],0,0)};a.prototype.applyValuesFilter=function(a){j(this,"ApplyValuesFilter",0,[a],0,0)};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype._handleResult=function(a){d.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);if(!c(b.Criteria))this._C=b.Criteria};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{criteria:this._C},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.Filter=Ji;var Mb="AutoFilter",Ph=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"AutoFilter"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["enabled","isDataFiltered","criteria"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"criteria",{"get":function(){b("criteria",this._C,Mb,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"enabled",{"get":function(){b("enabled",this._E,Mb,this._isNull);return this._E},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"isDataFiltered",{"get":function(){b("isDataFiltered",this._I,Mb,this._isNull);return this._I},enumerable:true,configurable:true});e.prototype.apply=function(c,a,b){j(this,"Apply",0,[c,a,b],0,0)};e.prototype.clearCriteria=function(){j(this,"ClearCriteria",0,[],0,0)};e.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,true,null,4)};e.prototype.getRangeOrNullObject=function(){return d(a.Range,this,"GetRangeOrNullObject",1,[],false,true,null,4)};e.prototype.reapply=function(){j(this,"Reapply",0,[],0,0)};e.prototype.remove=function(){j(this,"Remove",0,[],0,0)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Criteria))this._C=a.Criteria;if(!c(a.Enabled))this._E=a.Enabled;if(!c(a.IsDataFiltered))this._I=a.IsDataFiltered};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};e.prototype.toJSON=function(){return o(this,{criteria:this._C,enabled:this._E,isDataFiltered:this._I},{})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.AutoFilter=Ph;var Dc="CustomXmlPartScopedCollection",Uc=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"CustomXmlPartScopedCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Dc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.CustomXmlPart,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.CustomXmlPart,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype.getOnlyItem=function(){return d(a.CustomXmlPart,this,"GetOnlyItem",1,[],false,false,null,4)};c.prototype.getOnlyItemOrNullObject=function(){return d(a.CustomXmlPart,this,"GetOnlyItemOrNullObject",1,[],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.CustomXmlPart,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.CustomXmlPart,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.CustomXmlPartScopedCollection=Uc;var fd="CustomXmlPartCollection",Vd=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"CustomXmlPartCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,fd,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.CustomXmlPart,this,"Add",0,[b],false,true,null,0)};c.prototype.getByNamespace=function(b){return d(a.CustomXmlPartScopedCollection,this,"GetByNamespace",1,[b],true,false,null,4)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.CustomXmlPart,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.CustomXmlPart,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.CustomXmlPart,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.CustomXmlPart,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.CustomXmlPartCollection=Vd;var nc="CustomXmlPart",eh=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"CustomXmlPart"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["id","namespaceUri"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"id",{"get":function(){b("id",this._I,nc,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"namespaceUri",{"get":function(){b("namespaceUri",this._N,nc,this._isNull);return this._N},enumerable:true,configurable:true});a.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};a.prototype.getXml=function(){return j(this,"GetXml",1,[],4,0)};a.prototype.setXml=function(a){j(this,"SetXml",0,[a],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.NamespaceUri))this._N=a.NamespaceUri};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleIdResult=function(a){d.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{id:this._I,namespaceUri:this._N},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.CustomXmlPart=eh;var qj="_V1Api",Ni=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"_V1Api"},enumerable:true,configurable:true});a.prototype.bindingAddColumns=function(a){return j(this,"BindingAddColumns",0,[a],0,0)};a.prototype.bindingAddFromNamedItem=function(a){return j(this,"BindingAddFromNamedItem",1,[a],0,0)};a.prototype.bindingAddFromPrompt=function(a){return j(this,"BindingAddFromPrompt",1,[a],0,0)};a.prototype.bindingAddFromSelection=function(a){return j(this,"BindingAddFromSelection",1,[a],0,0)};a.prototype.bindingAddRows=function(a){return j(this,"BindingAddRows",0,[a],0,0)};a.prototype.bindingClearFormats=function(a){return j(this,"BindingClearFormats",0,[a],0,0)};a.prototype.bindingDeleteAllDataValues=function(a){return j(this,"BindingDeleteAllDataValues",0,[a],0,0)};a.prototype.bindingGetAll=function(){return j(this,"BindingGetAll",1,[],4,0)};a.prototype.bindingGetById=function(a){return j(this,"BindingGetById",1,[a],4,0)};a.prototype.bindingGetData=function(a){return j(this,"BindingGetData",1,[a],4,0)};a.prototype.bindingReleaseById=function(a){return j(this,"BindingReleaseById",1,[a],0,0)};a.prototype.bindingSetData=function(a){return j(this,"BindingSetData",0,[a],0,0)};a.prototype.bindingSetFormats=function(a){return j(this,"BindingSetFormats",0,[a],0,0)};a.prototype.bindingSetTableOptions=function(a){return j(this,"BindingSetTableOptions",0,[a],0,0)};a.prototype.getFilePropertiesAsync=function(){e("_V1Api.getFilePropertiesAsync",f,"1.6",g);return j(this,"GetFilePropertiesAsync",1,[],4,0)};a.prototype.getSelectedData=function(a){return j(this,"GetSelectedData",1,[a],4,0)};a.prototype.gotoById=function(a){return j(this,"GotoById",1,[a],4,0)};a.prototype.setSelectedData=function(a){return j(this,"SetSelectedData",0,[a],0,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(k(a))return;var c=a;m(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);n(this,c,a)};a.prototype.toJSON=function(){return o(this,{},{})};return a}(OfficeExtension.ClientObject);a._V1Api=Ni;var Ed="PivotTableCollection",Re=function(h){__extends(c,h);function c(){return h!==null&&h.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PivotTableCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Ed,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(h,c,b){e("PivotTableCollection.add",f,"1.8",g);return d(a.PivotTable,this,"Add",0,[h,c,b],false,true,null,0)};c.prototype.getCount=function(){e("PivotTableCollection.getCount",f,"1.4",g);return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.PivotTable,this,[b])};c.prototype.getItemOrNullObject=function(b){e("PivotTableCollection.getItemOrNullObject",f,"1.4",g);return d(a.PivotTable,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype.refreshAll=function(){j(this,"RefreshAll",0,[],0,0)};c.prototype._handleResult=function(c){h.prototype._handleResult.call(this,c);if(k(c))return;var e=c;m(this,e);if(!k(e[OfficeExtension.Constants.items])){this.m__items=[];for(var d=e[OfficeExtension.Constants.items],b=0;b<d.length;b++){var f=t(a.PivotTable,true,this,d[b],b);f._handleResult(d[b]);this.m__items.push(f)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;h.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.PivotTable,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.PivotTableCollection=Re;var vb="PivotTable",Vh=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"PivotTable"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["name","id","useCustomSortLists","enableDataValueEditing"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,false,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["worksheet","hierarchies","rowHierarchies","columnHierarchies","dataHierarchies","filterHierarchies","layout"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"columnHierarchies",{"get":function(){e("PivotTable.columnHierarchies",f,"1.8",g);if(!this._C)this._C=l(a.RowColumnPivotHierarchyCollection,this,"ColumnHierarchies",true,4);return this._C},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"dataHierarchies",{"get":function(){e("PivotTable.dataHierarchies",f,"1.8",g);if(!this._D)this._D=l(a.DataPivotHierarchyCollection,this,"DataHierarchies",true,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"filterHierarchies",{"get":function(){e("PivotTable.filterHierarchies",f,"1.8",g);if(!this._F)this._F=l(a.FilterPivotHierarchyCollection,this,"FilterHierarchies",true,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"hierarchies",{"get":function(){e("PivotTable.hierarchies",f,"1.8",g);if(!this._H)this._H=l(a.PivotHierarchyCollection,this,"Hierarchies",true,4);return this._H},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"layout",{"get":function(){e("PivotTable.layout",f,"1.8",g);if(!this._L)this._L=l(a.PivotLayout,this,"Layout",false,4);return this._L},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"rowHierarchies",{"get":function(){e("PivotTable.rowHierarchies",f,"1.8",g);if(!this._R)this._R=l(a.RowColumnPivotHierarchyCollection,this,"RowHierarchies",true,4);return this._R},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"worksheet",{"get":function(){if(!this._W)this._W=l(a.Worksheet,this,"Worksheet",false,4);return this._W},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"enableDataValueEditing",{"get":function(){b("enableDataValueEditing",this._E,vb,this._isNull);e("PivotTable.enableDataValueEditing",f,"1.9",g);return this._E},"set":function(a){this._E=a;h(this,"EnableDataValueEditing",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,vb,this._isNull);e("PivotTable.id",f,"1.5",g);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,vb,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"useCustomSortLists",{"get":function(){b("useCustomSortLists",this._U,vb,this._isNull);e("PivotTable.useCustomSortLists",f,"1.9",g);return this._U},"set":function(a){this._U=a;h(this,"UseCustomSortLists",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name","useCustomSortLists","enableDataValueEditing"],[],["columnHierarchies","dataHierarchies","filterHierarchies","hierarchies","layout","rowHierarchies","worksheet"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype["delete"]=function(){e("PivotTable.delete",f,"1.8",g);j(this,"Delete",0,[],0,0)};d.prototype.refresh=function(){j(this,"Refresh",0,[],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.EnableDataValueEditing))this._E=a.EnableDataValueEditing;if(!c(a.Id))this._I=a.Id;if(!c(a.Name))this._N=a.Name;if(!c(a.UseCustomSortLists))this._U=a.UseCustomSortLists;s(this,a,["columnHierarchies","ColumnHierarchies","dataHierarchies","DataHierarchies","filterHierarchies","FilterHierarchies","hierarchies","Hierarchies","layout","Layout","rowHierarchies","RowHierarchies","worksheet","Worksheet"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){i.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{enableDataValueEditing:this._E,id:this._I,name:this._N,useCustomSortLists:this._U},{columnHierarchies:this._C,dataHierarchies:this._D,filterHierarchies:this._F,hierarchies:this._H,rowHierarchies:this._R})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.PivotTable=Vh;var db="PivotLayout",Hh=function(l){__extends(i,l);function i(){return l!==null&&l.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"PivotLayout"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["showColumnGrandTotals","showRowGrandTotals","subtotalLocation","layoutType","autoFormat","preserveFormatting"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"autoFormat",{"get":function(){b("autoFormat",this._A,db,this._isNull);e("PivotLayout.autoFormat",f,"1.9",g);return this._A},"set":function(a){this._A=a;h(this,"AutoFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"layoutType",{"get":function(){b("layoutType",this._L,db,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"LayoutType",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"preserveFormatting",{"get":function(){b("preserveFormatting",this._P,db,this._isNull);e("PivotLayout.preserveFormatting",f,"1.9",g);return this._P},"set":function(a){this._P=a;h(this,"PreserveFormatting",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showColumnGrandTotals",{"get":function(){b("showColumnGrandTotals",this._S,db,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShowColumnGrandTotals",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"showRowGrandTotals",{"get":function(){b("showRowGrandTotals",this._Sh,db,this._isNull);return this._Sh},"set":function(a){this._Sh=a;h(this,"ShowRowGrandTotals",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"subtotalLocation",{"get":function(){b("subtotalLocation",this._Su,db,this._isNull);return this._Su},"set":function(a){this._Su=a;h(this,"SubtotalLocation",a,0)},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["showColumnGrandTotals","showRowGrandTotals","subtotalLocation","layoutType","autoFormat","preserveFormatting"],[],[])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype.getColumnLabelRange=function(){return d(a.Range,this,"GetColumnLabelRange",0,[],false,false,null,0)};i.prototype.getDataBodyRange=function(){return d(a.Range,this,"GetDataBodyRange",0,[],false,false,null,0)};i.prototype.getDataHierarchy=function(b){e("PivotLayout.getDataHierarchy",f,"1.9",g);return d(a.DataPivotHierarchy,this,"GetDataHierarchy",0,[b],false,false,null,0)};i.prototype.getFilterAxisRange=function(){return d(a.Range,this,"GetFilterAxisRange",0,[],false,false,null,0)};i.prototype.getPivotItems=function(a,b){e("PivotLayout.getPivotItems",f,"1.9",g);return j(this,"GetPivotItems",0,[a,b],0,0)};i.prototype.getRange=function(){return d(a.Range,this,"GetRange",0,[],false,false,null,0)};i.prototype.getRowLabelRange=function(){return d(a.Range,this,"GetRowLabelRange",0,[],false,false,null,0)};i.prototype.setAutoSortOnCell=function(b,a){e("PivotLayout.setAutoSortOnCell",f,"1.9",g);j(this,"SetAutoSortOnCell",0,[b,a],0,0)};i.prototype._handleResult=function(b){l.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoFormat))this._A=a.AutoFormat;if(!c(a.LayoutType))this._L=a.LayoutType;if(!c(a.PreserveFormatting))this._P=a.PreserveFormatting;if(!c(a.ShowColumnGrandTotals))this._S=a.ShowColumnGrandTotals;if(!c(a.ShowRowGrandTotals))this._Sh=a.ShowRowGrandTotals;if(!c(a.SubtotalLocation))this._Su=a.SubtotalLocation};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleRetrieveResult=function(b,a){l.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.toJSON=function(){return o(this,{autoFormat:this._A,layoutType:this._L,preserveFormatting:this._P,showColumnGrandTotals:this._S,showRowGrandTotals:this._Sh,subtotalLocation:this._Su},{})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.PivotLayout=Hh;var Yc="PivotHierarchyCollection",Md=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PivotHierarchyCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Yc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.PivotHierarchy,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.PivotHierarchy,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.PivotHierarchy,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.PivotHierarchy,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.PivotHierarchyCollection=Md;var mc="PivotHierarchy",Qg=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"PivotHierarchy"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id","name"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["fields"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"fields",{"get":function(){if(!this._F)this._F=l(a.PivotFieldCollection,this,"Fields",true,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,mc,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,mc,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name"],[],["fields"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.Name))this._N=a.Name;s(this,a,["fields","Fields"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{id:this._I,name:this._N},{fields:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.PivotHierarchy=Qg;var yc="RowColumnPivotHierarchyCollection",Fc=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"RowColumnPivotHierarchyCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,yc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.RowColumnPivotHierarchy,this,"Add",0,[b],false,true,null,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.RowColumnPivotHierarchy,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.RowColumnPivotHierarchy,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype.remove=function(a){j(this,"Remove",0,[a],0,0)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.RowColumnPivotHierarchy,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.RowColumnPivotHierarchy,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.RowColumnPivotHierarchyCollection=Fc;var zb="RowColumnPivotHierarchy",Xd=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"RowColumnPivotHierarchy"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id","name","position"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["fields"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"fields",{"get":function(){if(!this._F)this._F=l(a.PivotFieldCollection,this,"Fields",true,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,zb,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,zb,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,zb,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name","position"],[],["fields"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.setToDefault=function(){j(this,"SetToDefault",0,[],0,0)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.Name))this._N=a.Name;if(!c(a.Position))this._P=a.Position;s(this,a,["fields","Fields"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{id:this._I,name:this._N,position:this._P},{fields:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.RowColumnPivotHierarchy=Xd;var Bc="FilterPivotHierarchyCollection",Sc=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"FilterPivotHierarchyCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Bc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.FilterPivotHierarchy,this,"Add",0,[b],false,true,null,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.FilterPivotHierarchy,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.FilterPivotHierarchy,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype.remove=function(a){j(this,"Remove",0,[a],0,0)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.FilterPivotHierarchy,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.FilterPivotHierarchy,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.FilterPivotHierarchyCollection=Sc;var pb="FilterPivotHierarchy",Le=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"FilterPivotHierarchy"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id","name","position","enableMultipleFilterItems"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["fields"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"fields",{"get":function(){if(!this._F)this._F=l(a.PivotFieldCollection,this,"Fields",true,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"enableMultipleFilterItems",{"get":function(){b("enableMultipleFilterItems",this._E,pb,this._isNull);return this._E},"set":function(a){this._E=a;h(this,"EnableMultipleFilterItems",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,pb,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,pb,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,pb,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name","position","enableMultipleFilterItems"],[],["fields"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.setToDefault=function(){j(this,"SetToDefault",0,[],0,0)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.EnableMultipleFilterItems))this._E=a.EnableMultipleFilterItems;if(!c(a.Id))this._I=a.Id;if(!c(a.Name))this._N=a.Name;if(!c(a.Position))this._P=a.Position;s(this,a,["fields","Fields"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{enableMultipleFilterItems:this._E,id:this._I,name:this._N,position:this._P},{fields:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.FilterPivotHierarchy=Le;var Gc="DataPivotHierarchyCollection",cd=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"DataPivotHierarchyCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Gc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.DataPivotHierarchy,this,"Add",0,[b],false,true,null,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.DataPivotHierarchy,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.DataPivotHierarchy,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype.remove=function(a){j(this,"Remove",0,[a],0,0)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.DataPivotHierarchy,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.DataPivotHierarchy,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.DataPivotHierarchyCollection=cd;var X="DataPivotHierarchy",wf=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"DataPivotHierarchy"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id","name","position","numberFormat","summarizeBy","showAs"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["field"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"field",{"get":function(){if(!this._F)this._F=l(a.PivotField,this,"Field",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,X,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,X,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormat",{"get":function(){b("numberFormat",this._Nu,X,this._isNull);return this._Nu},"set":function(a){this._Nu=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"position",{"get":function(){b("position",this._P,X,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"Position",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showAs",{"get":function(){b("showAs",this._S,X,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShowAs",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"summarizeBy",{"get":function(){b("summarizeBy",this._Su,X,this._isNull);return this._Su},"set":function(a){this._Su=a;h(this,"SummarizeBy",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name","position","numberFormat","summarizeBy","showAs"],["field"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.setToDefault=function(){j(this,"SetToDefault",0,[],0,0)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.Name))this._N=a.Name;if(!c(a.NumberFormat))this._Nu=a.NumberFormat;if(!c(a.Position))this._P=a.Position;if(!c(a.ShowAs))this._S=a.ShowAs;if(!c(a.SummarizeBy))this._Su=a.SummarizeBy;s(this,a,["field","Field"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{id:this._I,name:this._N,numberFormat:this._Nu,position:this._P,showAs:this._S,summarizeBy:this._Su},{field:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.DataPivotHierarchy=wf;var Dd="PivotFieldCollection",Qe=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PivotFieldCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Dd,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.PivotField,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.PivotField,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.PivotField,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.PivotField,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.PivotFieldCollection=Qe;var ub="PivotField",Uh=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"PivotField"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id","name","subtotals","showAllItems"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["items"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"items",{"get":function(){if(!this._It)this._It=l(a.PivotItemCollection,this,"Items",true,4);return this._It},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,ub,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,ub,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showAllItems",{"get":function(){b("showAllItems",this._S,ub,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShowAllItems",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"subtotals",{"get":function(){b("subtotals",this._Su,ub,this._isNull);return this._Su},"set":function(a){this._Su=a;h(this,"Subtotals",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["name","subtotals","showAllItems"],[],["items"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.sortByLabels=function(a){if(typeof a==="string")a=a.toLowerCase()==="ascending";j(this,"SortByLabels",0,[a],0,0)};d.prototype.sortByValues=function(c,a,b){e("PivotField.sortByValues",f,"1.9",g);j(this,"SortByValues",0,[c,a,b],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.Name))this._N=a.Name;if(!c(a.ShowAllItems))this._S=a.ShowAllItems;if(!c(a.Subtotals))this._Su=a.Subtotals;s(this,a,["items","Items"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){i.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{id:this._I,name:this._N,showAllItems:this._S,subtotals:this._Su},{items:this._It})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.PivotField=Uh;var Pd="PivotItemCollection",kf=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PivotItemCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Pd,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.PivotItem,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.PivotItem,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.PivotItem,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.PivotItem,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.PivotItemCollection=kf;var wb="PivotItem",mi=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"PivotItem"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["id","name","isExpanded","visible"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"id",{"get":function(){b("id",this._I,wb,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"isExpanded",{"get":function(){b("isExpanded",this._Is,wb,this._isNull);return this._Is},"set":function(a){this._Is=a;h(this,"IsExpanded",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"name",{"get":function(){b("name",this._N,wb,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"visible",{"get":function(){b("visible",this._V,wb,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["name","isExpanded","visible"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.IsExpanded))this._Is=a.IsExpanded;if(!c(a.Name))this._N=a.Name;if(!c(a.Visible))this._V=a.Visible};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleIdResult=function(a){d.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{id:this._I,isExpanded:this._Is,name:this._N,visible:this._V},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.PivotItem=mi;var Vc;(function(a){a.invalid="Invalid";a.topItems="TopItems";a.topPercent="TopPercent";a.topSum="TopSum";a.bottomItems="BottomItems";a.bottomPercent="BottomPercent";a.bottomSum="BottomSum"})(Vc=a.PivotFilterTopBottomCriterion||(a.PivotFilterTopBottomCriterion={}));var Li;(function(a){a.ascending="Ascending";a.descending="Descending"})(Li=a.SortBy||(a.SortBy={}));var af;(function(a){a.unknown="Unknown";a.automatic="Automatic";a.sum="Sum";a.count="Count";a.average="Average";a.max="Max";a.min="Min";a.product="Product";a.countNumbers="CountNumbers";a.standardDeviation="StandardDeviation";a.standardDeviationP="StandardDeviationP";a.variance="Variance";a.varianceP="VarianceP"})(af=a.AggregationFunction||(a.AggregationFunction={}));var Qf;(function(a){a.unknown="Unknown";a.none="None";a.percentOfGrandTotal="PercentOfGrandTotal";a.percentOfRowTotal="PercentOfRowTotal";a.percentOfColumnTotal="PercentOfColumnTotal";a.percentOfParentRowTotal="PercentOfParentRowTotal";a.percentOfParentColumnTotal="PercentOfParentColumnTotal";a.percentOfParentTotal="PercentOfParentTotal";a.percentOf="PercentOf";a.runningTotal="RunningTotal";a.percentRunningTotal="PercentRunningTotal";a.differenceFrom="DifferenceFrom";a.percentDifferenceFrom="PercentDifferenceFrom";a.rankAscending="RankAscending";a.rankDecending="RankDecending";a.index="Index"})(Qf=a.ShowAsCalculation||(a.ShowAsCalculation={}));var li;(function(a){a.unknown="Unknown";a.row="Row";a.column="Column";a.data="Data";a.filter="Filter"})(li=a.PivotAxis||(a.PivotAxis={}));var K="DocumentProperties",yf=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"DocumentProperties"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["title","subject","author","keywords","comments","lastAuthor","revisionNumber","creationDate","category","manager","company"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,false,true,false,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["custom"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"custom",{"get":function(){if(!this._Cu)this._Cu=l(a.CustomPropertyCollection,this,"Custom",true,4);return this._Cu},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"author",{"get":function(){b("author",this._A,K,this._isNull);return this._A},"set":function(a){this._A=a;h(this,"Author",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"category",{"get":function(){b("category",this._C,K,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Category",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"comments",{"get":function(){b("comments",this._Co,K,this._isNull);return this._Co},"set":function(a){this._Co=a;h(this,"Comments",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"company",{"get":function(){b("company",this._Com,K,this._isNull);return this._Com},"set":function(a){this._Com=a;h(this,"Company",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"creationDate",{"get":function(){b("creationDate",this._Cr,K,this._isNull);return this._Cr},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"keywords",{"get":function(){b("keywords",this._K,K,this._isNull);return this._K},"set":function(a){this._K=a;h(this,"Keywords",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"lastAuthor",{"get":function(){b("lastAuthor",this._L,K,this._isNull);return this._L},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"manager",{"get":function(){b("manager",this._M,K,this._isNull);return this._M},"set":function(a){this._M=a;h(this,"Manager",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"revisionNumber",{"get":function(){b("revisionNumber",this._R,K,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"RevisionNumber",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"subject",{"get":function(){b("subject",this._S,K,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Subject",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"title",{"get":function(){b("title",this._T,K,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Title",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["title","subject","author","keywords","comments","revisionNumber","category","manager","company"],[],["custom"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Author))this._A=a.Author;if(!c(a.Category))this._C=a.Category;if(!c(a.Comments))this._Co=a.Comments;if(!c(a.Company))this._Com=a.Company;if(!c(a.CreationDate))this._Cr=oc(a.CreationDate);if(!c(a.Keywords))this._K=a.Keywords;if(!c(a.LastAuthor))this._L=a.LastAuthor;if(!c(a.Manager))this._M=a.Manager;if(!c(a.RevisionNumber))this._R=a.RevisionNumber;if(!c(a.Subject))this._S=a.Subject;if(!c(a.Title))this._T=a.Title;s(this,a,["custom","Custom"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(a,d){e.prototype._handleRetrieveResult.call(this,a,d);if(k(a))return;var b=a;if(!c(b.CreationDate))b.creationDate=oc(b.creationDate);n(this,a,d)};d.prototype.toJSON=function(){return o(this,{author:this._A,category:this._C,comments:this._Co,company:this._Com,creationDate:this._Cr,keywords:this._K,lastAuthor:this._L,manager:this._M,revisionNumber:this._R,subject:this._S,title:this._T},{custom:this._Cu})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.DocumentProperties=yf;var Ib="CustomProperty",Kg=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"CustomProperty"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["key","value","type"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,false]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"key",{"get":function(){b("key",this._K,Ib,this._isNull);return this._K},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"type",{"get":function(){b("type",this._T,Ib,this._isNull);return this._T},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"value",{"get":function(){b("value",this._V,Ib,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Value",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["value"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Key))this._K=a.Key;if(!c(a.Type))this._T=a.Type;if(!c(a.Value))this._V=a.Value};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{key:this._K,type:this._T,value:this._V},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.CustomProperty=Kg;var Xc="CustomPropertyCollection",Hd=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"CustomPropertyCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Xc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(c,b){return d(a.CustomProperty,this,"Add",0,[c,b],false,true,null,0)};c.prototype.deleteAll=function(){j(this,"DeleteAll",0,[],0,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.CustomProperty,this,[b])};c.prototype.getItemOrNullObject=function(b){return d(a.CustomProperty,this,"GetItemOrNullObject",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.CustomProperty,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.CustomProperty,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.CustomPropertyCollection=Hd;var Mc="ConditionalFormatCollection",jd=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"ConditionalFormatCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Mc,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.ConditionalFormat,this,"Add",0,[b],false,true,null,0)};c.prototype.clearAll=function(){j(this,"ClearAll",0,[],0,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.ConditionalFormat,this,[b])};c.prototype.getItemAt=function(b){return d(a.ConditionalFormat,this,"GetItemAt",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.ConditionalFormat,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.ConditionalFormat,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.ConditionalFormatCollection=jd;var rb="ConditionalFormat",Mf=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_className",{"get":function(){return"ConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyNames",{"get":function(){return["stopIfTrue","priority","type","id"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,false,false]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"_navigationPropertyNames",{"get":function(){return["dataBarOrNullObject","dataBar","customOrNullObject","custom","iconSet","iconSetOrNullObject","colorScale","colorScaleOrNullObject","topBottom","topBottomOrNullObject","preset","presetOrNullObject","textComparison","textComparisonOrNullObject","cellValue","cellValueOrNullObject"]},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"cellValue",{"get":function(){if(!this._C)this._C=l(a.CellValueConditionalFormat,this,"CellValue",false,4);return this._C},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"cellValueOrNullObject",{"get":function(){if(!this._Ce)this._Ce=l(a.CellValueConditionalFormat,this,"CellValueOrNullObject",false,4);return this._Ce},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"colorScale",{"get":function(){if(!this._Co)this._Co=l(a.ColorScaleConditionalFormat,this,"ColorScale",false,4);return this._Co},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"colorScaleOrNullObject",{"get":function(){if(!this._Col)this._Col=l(a.ColorScaleConditionalFormat,this,"ColorScaleOrNullObject",false,4);return this._Col},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"custom",{"get":function(){if(!this._Cu)this._Cu=l(a.CustomConditionalFormat,this,"Custom",false,4);return this._Cu},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"customOrNullObject",{"get":function(){if(!this._Cus)this._Cus=l(a.CustomConditionalFormat,this,"CustomOrNullObject",false,4);return this._Cus},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"dataBar",{"get":function(){if(!this._D)this._D=l(a.DataBarConditionalFormat,this,"DataBar",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"dataBarOrNullObject",{"get":function(){if(!this._Da)this._Da=l(a.DataBarConditionalFormat,this,"DataBarOrNullObject",false,4);return this._Da},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"iconSet",{"get":function(){if(!this._I)this._I=l(a.IconSetConditionalFormat,this,"IconSet",false,4);return this._I},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"iconSetOrNullObject",{"get":function(){if(!this._Ic)this._Ic=l(a.IconSetConditionalFormat,this,"IconSetOrNullObject",false,4);return this._Ic},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"preset",{"get":function(){if(!this._P)this._P=l(a.PresetCriteriaConditionalFormat,this,"Preset",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"presetOrNullObject",{"get":function(){if(!this._Pr)this._Pr=l(a.PresetCriteriaConditionalFormat,this,"PresetOrNullObject",false,4);return this._Pr},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"textComparison",{"get":function(){if(!this._T)this._T=l(a.TextConditionalFormat,this,"TextComparison",false,4);return this._T},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"textComparisonOrNullObject",{"get":function(){if(!this._Te)this._Te=l(a.TextConditionalFormat,this,"TextComparisonOrNullObject",false,4);return this._Te},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"topBottom",{"get":function(){if(!this._To)this._To=l(a.TopBottomConditionalFormat,this,"TopBottom",false,4);return this._To},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"topBottomOrNullObject",{"get":function(){if(!this._Top)this._Top=l(a.TopBottomConditionalFormat,this,"TopBottomOrNullObject",false,4);return this._Top},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"id",{"get":function(){b("id",this._Id0,rb,this._isNull);return this._Id0},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"priority",{"get":function(){b("priority",this._Pri,rb,this._isNull);return this._Pri},"set":function(a){this._Pri=a;h(this,"Priority",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"stopIfTrue",{"get":function(){b("stopIfTrue",this._S,rb,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"StopIfTrue",a,0)},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"type",{"get":function(){b("type",this._Ty,rb,this._isNull);return this._Ty},enumerable:true,configurable:true});i.prototype.set=function(a,b){this._recursivelySet(a,b,["stopIfTrue","priority"],["dataBarOrNullObject","dataBar","customOrNullObject","custom","iconSet","iconSetOrNullObject","colorScale","colorScaleOrNullObject","topBottom","topBottomOrNullObject","preset","presetOrNullObject","textComparison","textComparisonOrNullObject","cellValue","cellValueOrNullObject"],[])};i.prototype.update=function(a){this._recursivelyUpdate(a)};i.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};i.prototype.getRange=function(){return d(a.Range,this,"GetRange",1,[],false,true,null,4)};i.prototype.getRangeOrNullObject=function(){return d(a.Range,this,"GetRangeOrNullObject",1,[],false,true,null,4)};i.prototype.getRanges=function(){e("ConditionalFormat.getRanges",f,"1.9",g);return d(a.RangeAreas,this,"GetRanges",1,[],false,true,null,4)};i.prototype._handleResult=function(b){t.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._Id0=a.Id;if(!c(a.Priority))this._Pri=a.Priority;if(!c(a.StopIfTrue))this._S=a.StopIfTrue;if(!c(a.Type))this._Ty=a.Type;s(this,a,["cellValue","CellValue","cellValueOrNullObject","CellValueOrNullObject","colorScale","ColorScale","colorScaleOrNullObject","ColorScaleOrNullObject","custom","Custom","customOrNullObject","CustomOrNullObject","dataBar","DataBar","dataBarOrNullObject","DataBarOrNullObject","iconSet","IconSet","iconSetOrNullObject","IconSetOrNullObject","preset","Preset","presetOrNullObject","PresetOrNullObject","textComparison","TextComparison","textComparisonOrNullObject","TextComparisonOrNullObject","topBottom","TopBottom","topBottomOrNullObject","TopBottomOrNullObject"])};i.prototype.load=function(a){return p(this,a)};i.prototype.retrieve=function(a){return q(this,a)};i.prototype._handleIdResult=function(a){t.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._Id0=a.Id};i.prototype._handleRetrieveResult=function(b,a){t.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};i.prototype.toJSON=function(){return o(this,{id:this._Id0,priority:this._Pri,stopIfTrue:this._S,type:this._Ty},{cellValue:this._C,cellValueOrNullObject:this._Ce,colorScale:this._Co,colorScaleOrNullObject:this._Col,custom:this._Cu,customOrNullObject:this._Cus,dataBar:this._D,dataBarOrNullObject:this._Da,iconSet:this._I,iconSetOrNullObject:this._Ic,preset:this._P,presetOrNullObject:this._Pr,textComparison:this._T,textComparisonOrNullObject:this._Te,topBottom:this._To,topBottomOrNullObject:this._Top})};i.prototype.ensureUnchanged=function(a){r(this,a);return};return i}(OfficeExtension.ClientObject);a.ConditionalFormat=Mf;var W="DataBarConditionalFormat",Id=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"DataBarConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["showDataBarOnly","barDirection","axisFormat","axisColor","lowerBoundRule","upperBoundRule"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["positiveFormat","negativeFormat"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"negativeFormat",{"get":function(){if(!this._N)this._N=l(a.ConditionalDataBarNegativeFormat,this,"NegativeFormat",false,4);return this._N},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"positiveFormat",{"get":function(){if(!this._P)this._P=l(a.ConditionalDataBarPositiveFormat,this,"PositiveFormat",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"axisColor",{"get":function(){b("axisColor",this._A,W,this._isNull);return this._A},"set":function(a){this._A=a;h(this,"AxisColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"axisFormat",{"get":function(){b("axisFormat",this._Ax,W,this._isNull);return this._Ax},"set":function(a){this._Ax=a;h(this,"AxisFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"barDirection",{"get":function(){b("barDirection",this._B,W,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"BarDirection",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"lowerBoundRule",{"get":function(){b("lowerBoundRule",this._L,W,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"LowerBoundRule",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"showDataBarOnly",{"get":function(){b("showDataBarOnly",this._S,W,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShowDataBarOnly",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"upperBoundRule",{"get":function(){b("upperBoundRule",this._U,W,this._isNull);return this._U},"set":function(a){this._U=a;h(this,"UpperBoundRule",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["showDataBarOnly","barDirection","axisFormat","axisColor","lowerBoundRule","upperBoundRule"],["positiveFormat","negativeFormat"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AxisColor))this._A=a.AxisColor;if(!c(a.AxisFormat))this._Ax=a.AxisFormat;if(!c(a.BarDirection))this._B=a.BarDirection;if(!c(a.LowerBoundRule))this._L=a.LowerBoundRule;if(!c(a.ShowDataBarOnly))this._S=a.ShowDataBarOnly;if(!c(a.UpperBoundRule))this._U=a.UpperBoundRule;s(this,a,["negativeFormat","NegativeFormat","positiveFormat","PositiveFormat"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{axisColor:this._A,axisFormat:this._Ax,barDirection:this._B,lowerBoundRule:this._L,showDataBarOnly:this._S,upperBoundRule:this._U},{negativeFormat:this._N,positiveFormat:this._P})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.DataBarConditionalFormat=Id;var xb="ConditionalDataBarPositiveFormat",Ic=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ConditionalDataBarPositiveFormat"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["fillColor","gradientFill","borderColor"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"borderColor",{"get":function(){b("borderColor",this._B,xb,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"BorderColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"fillColor",{"get":function(){b("fillColor",this._F,xb,this._isNull);return this._F},"set":function(a){this._F=a;h(this,"FillColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"gradientFill",{"get":function(){b("gradientFill",this._G,xb,this._isNull);return this._G},"set":function(a){this._G=a;h(this,"GradientFill",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["fillColor","gradientFill","borderColor"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.BorderColor))this._B=a.BorderColor;if(!c(a.FillColor))this._F=a.FillColor;if(!c(a.GradientFill))this._G=a.GradientFill};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{borderColor:this._B,fillColor:this._F,gradientFill:this._G},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ConditionalDataBarPositiveFormat=Ic;var nb="ConditionalDataBarNegativeFormat",Hc=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ConditionalDataBarNegativeFormat"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["fillColor","matchPositiveFillColor","borderColor","matchPositiveBorderColor"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"borderColor",{"get":function(){b("borderColor",this._B,nb,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"BorderColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"fillColor",{"get":function(){b("fillColor",this._F,nb,this._isNull);return this._F},"set":function(a){this._F=a;h(this,"FillColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"matchPositiveBorderColor",{"get":function(){b("matchPositiveBorderColor",this._M,nb,this._isNull);return this._M},"set":function(a){this._M=a;h(this,"MatchPositiveBorderColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"matchPositiveFillColor",{"get":function(){b("matchPositiveFillColor",this._Ma,nb,this._isNull);return this._Ma},"set":function(a){this._Ma=a;h(this,"MatchPositiveFillColor",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["fillColor","matchPositiveFillColor","borderColor","matchPositiveBorderColor"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.BorderColor))this._B=a.BorderColor;if(!c(a.FillColor))this._F=a.FillColor;if(!c(a.MatchPositiveBorderColor))this._M=a.MatchPositiveBorderColor;if(!c(a.MatchPositiveFillColor))this._Ma=a.MatchPositiveFillColor};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{borderColor:this._B,fillColor:this._F,matchPositiveBorderColor:this._M,matchPositiveFillColor:this._Ma},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ConditionalDataBarNegativeFormat=Hc;var Xi="CustomConditionalFormat",Ud=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"CustomConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"_navigationPropertyNames",{"get":function(){return["rule","format"]},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ConditionalRangeFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"rule",{"get":function(){if(!this._R)this._R=l(a.ConditionalFormatRule,this,"Rule",false,4);return this._R},enumerable:true,configurable:true});b.prototype.set=function(a,b){this._recursivelySet(a,b,[],["rule","format"],[])};b.prototype.update=function(a){this._recursivelyUpdate(a)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);s(this,b,["format","Format","rule","Rule"])};b.prototype.load=function(a){return p(this,a)};b.prototype.retrieve=function(a){return q(this,a)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.prototype.toJSON=function(){return o(this,{},{format:this._F,rule:this._R})};b.prototype.ensureUnchanged=function(a){r(this,a);return};return b}(OfficeExtension.ClientObject);a.CustomConditionalFormat=Ud;var Bb="ConditionalFormatRule",qe=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ConditionalFormatRule"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["formula","formulaLocal","formulaR1C1"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"formula",{"get":function(){b("formula",this._F,Bb,this._isNull);return this._F},"set":function(a){this._F=a;h(this,"Formula",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"formulaLocal",{"get":function(){b("formulaLocal",this._Fo,Bb,this._isNull);return this._Fo},"set":function(a){this._Fo=a;h(this,"FormulaLocal",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"formulaR1C1",{"get":function(){b("formulaR1C1",this._For,Bb,this._isNull);return this._For},"set":function(a){this._For=a;h(this,"FormulaR1C1",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["formula","formulaLocal","formulaR1C1"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Formula))this._F=a.Formula;if(!c(a.FormulaLocal))this._Fo=a.FormulaLocal;if(!c(a.FormulaR1C1))this._For=a.FormulaR1C1};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{formula:this._F,formulaLocal:this._Fo,formulaR1C1:this._For},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ConditionalFormatRule=qe;var ob="IconSetConditionalFormat",Ld=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"IconSetConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["reverseIconOrder","showIconOnly","style","criteria"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"criteria",{"get":function(){b("criteria",this._C,ob,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Criteria",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"reverseIconOrder",{"get":function(){b("reverseIconOrder",this._R,ob,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"ReverseIconOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"showIconOnly",{"get":function(){b("showIconOnly",this._S,ob,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShowIconOnly",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"style",{"get":function(){b("style",this._St,ob,this._isNull);return this._St},"set":function(a){this._St=a;h(this,"Style",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["reverseIconOrder","showIconOnly","style","criteria"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Criteria))this._C=a.Criteria;if(!c(a.ReverseIconOrder))this._R=a.ReverseIconOrder;if(!c(a.ShowIconOnly))this._S=a.ShowIconOnly;if(!c(a.Style))this._St=a.Style};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{criteria:this._C,reverseIconOrder:this._R,showIconOnly:this._S,style:this._St},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.IconSetConditionalFormat=Ld;var Tb="ColorScaleConditionalFormat",hd=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ColorScaleConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["threeColorScale","criteria"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"criteria",{"get":function(){b("criteria",this._C,Tb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Criteria",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"threeColorScale",{"get":function(){b("threeColorScale",this._T,Tb,this._isNull);return this._T},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["criteria"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Criteria))this._C=a.Criteria;if(!c(a.ThreeColorScale))this._T=a.ThreeColorScale};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{criteria:this._C,threeColorScale:this._T},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ColorScaleConditionalFormat=hd;var Rc="TopBottomConditionalFormat",td=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"TopBottomConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["rule"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ConditionalRangeFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"rule",{"get":function(){b("rule",this._R,Rc,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"Rule",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["rule"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Rule))this._R=a.Rule;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{rule:this._R},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.TopBottomConditionalFormat=td;var zc="PresetCriteriaConditionalFormat",Oc=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"PresetCriteriaConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["rule"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ConditionalRangeFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"rule",{"get":function(){b("rule",this._R,zc,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"Rule",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["rule"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Rule))this._R=a.Rule;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{rule:this._R},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.PresetCriteriaConditionalFormat=Oc;var vd="TextConditionalFormat",xe=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"TextConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["rule"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ConditionalRangeFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"rule",{"get":function(){b("rule",this._R,vd,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"Rule",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["rule"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Rule))this._R=a.Rule;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{rule:this._R},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.TextConditionalFormat=xe;var Pc="CellValueConditionalFormat",nd=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"CellValueConditionalFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["rule"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){if(!this._F)this._F=l(a.ConditionalRangeFormat,this,"Format",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"rule",{"get":function(){b("rule",this._R,Pc,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"Rule",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["rule"],["format"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Rule))this._R=a.Rule;s(this,a,["format","Format"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{rule:this._R},{format:this._F})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.CellValueConditionalFormat=nd;var md="ConditionalRangeFormat",fe=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ConditionalRangeFormat"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["numberFormat"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["fill","font","borders"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"borders",{"get":function(){if(!this._B)this._B=l(a.ConditionalRangeBorderCollection,this,"Borders",true,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ConditionalRangeFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.ConditionalRangeFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormat",{"get":function(){b("numberFormat",this._N,md,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["numberFormat"],["fill","font"],["borders"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.NumberFormat))this._N=a.NumberFormat;s(this,a,["borders","Borders","fill","Fill","font","Font"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{numberFormat:this._N},{borders:this._B,fill:this._F,font:this._Fo})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ConditionalRangeFormat=fe;var jb="ConditionalRangeFont",He=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ConditionalRangeFont"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["color","italic","bold","underline","strikethrough"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"bold",{"get":function(){b("bold",this._B,jb,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"Bold",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,jb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"italic",{"get":function(){b("italic",this._I,jb,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"Italic",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"strikethrough",{"get":function(){b("strikethrough",this._S,jb,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Strikethrough",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"underline",{"get":function(){b("underline",this._U,jb,this._isNull);return this._U},"set":function(a){this._U=a;h(this,"Underline",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["color","italic","bold","underline","strikethrough"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Bold))this._B=a.Bold;if(!c(a.Color))this._C=a.Color;if(!c(a.Italic))this._I=a.Italic;if(!c(a.Strikethrough))this._S=a.Strikethrough;if(!c(a.Underline))this._U=a.Underline};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{bold:this._B,color:this._C,italic:this._I,strikethrough:this._S,underline:this._U},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ConditionalRangeFont=He;var Bd="ConditionalRangeFill",Ge=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ConditionalRangeFill"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["color"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,Bd,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["color"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype._handleResult=function(a){d.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);if(!c(b.Color))this._C=b.Color};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{color:this._C},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ConditionalRangeFill=Ge;var Ab="ConditionalRangeBorder",ee=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ConditionalRangeBorder"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["sideIndex","style","color"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,Ab,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"sideIndex",{"get":function(){b("sideIndex",this._S,Ab,this._isNull);return this._S},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"style",{"get":function(){b("style",this._St,Ab,this._isNull);return this._St},"set":function(a){this._St=a;h(this,"Style",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["style","color"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Color))this._C=a.Color;if(!c(a.SideIndex))this._S=a.SideIndex;if(!c(a.Style))this._St=a.Style};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{color:this._C,sideIndex:this._S,style:this._St},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ConditionalRangeBorder=ee;var Sb="ConditionalRangeBorderCollection",Lc=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"ConditionalRangeBorderCollection"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["count"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_navigationPropertyNames",{"get":function(){return["top","bottom","left","right"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"bottom",{"get":function(){if(!this._B)this._B=l(a.ConditionalRangeBorder,this,"Bottom",false,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"left",{"get":function(){if(!this._L)this._L=l(a.ConditionalRangeBorder,this,"Left",false,4);return this._L},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"right",{"get":function(){if(!this._R)this._R=l(a.ConditionalRangeBorder,this,"Right",false,4);return this._R},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"top",{"get":function(){if(!this._T)this._T=l(a.ConditionalRangeBorder,this,"Top",false,4);return this._T},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"items",{"get":function(){b("items",this.m__items,Sb,this._isNull);return this.m__items},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"count",{"get":function(){b("count",this._C,Sb,this._isNull);return this._C},enumerable:true,configurable:true});e.prototype.getItem=function(b){return x(a.ConditionalRangeBorder,this,[b])};e.prototype.getItemAt=function(b){return d(a.ConditionalRangeBorder,this,"GetItemAt",1,[b],false,false,null,4)};e.prototype._handleResult=function(e){f.prototype._handleResult.call(this,e);if(k(e))return;var b=e;m(this,b);if(!c(b.Count))this._C=b.Count;s(this,b,["bottom","Bottom","left","Left","right","Right","top","Top"]);if(!k(b[OfficeExtension.Constants.items])){this.m__items=[];for(var g=b[OfficeExtension.Constants.items],d=0;d<g.length;d++){var h=t(a.ConditionalRangeBorder,true,this,g[d],d);h._handleResult(g[d]);this.m__items.push(h)}}};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleRetrieveResult=function(c,b){var d=this;f.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.ConditionalRangeBorder,true,d,b,c)})};e.prototype.toJSON=function(){return o(this,{count:this._C},{bottom:this._B,left:this._L,right:this._R,top:this._T},this.m__items)};return e}(OfficeExtension.ClientObject);a.ConditionalRangeBorderCollection=Lc;var A="Style",Ri=function(i){__extends(d,i);function d(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"Style"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["builtIn","formulaHidden","horizontalAlignment","includeAlignment","includeBorder","includeFont","includeNumber","includePatterns","includeProtection","indentLevel","locked","name","numberFormat","numberFormatLocal","readingOrder","shrinkToFit","verticalAlignment","wrapText","textOrientation","autoIndent"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["borders","font","fill"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"borders",{"get":function(){if(!this._B)this._B=l(a.RangeBorderCollection,this,"Borders",true,4);return this._B},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.RangeFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"font",{"get":function(){if(!this._Fo)this._Fo=l(a.RangeFont,this,"Font",false,4);return this._Fo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"autoIndent",{"get":function(){b("autoIndent",this.m_autoIndent,A,this._isNull);e("Style.autoIndent",f,"1.8",g);return this.m_autoIndent},"set":function(a){this.m_autoIndent=a;h(this,"AutoIndent",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"builtIn",{"get":function(){b("builtIn",this._Bu,A,this._isNull);return this._Bu},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"formulaHidden",{"get":function(){b("formulaHidden",this._For,A,this._isNull);return this._For},"set":function(a){this._For=a;h(this,"FormulaHidden",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"horizontalAlignment",{"get":function(){b("horizontalAlignment",this._H,A,this._isNull);return this._H},"set":function(a){this._H=a;h(this,"HorizontalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"includeAlignment",{"get":function(){b("includeAlignment",this._I,A,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"IncludeAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"includeBorder",{"get":function(){b("includeBorder",this._In,A,this._isNull);return this._In},"set":function(a){this._In=a;h(this,"IncludeBorder",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"includeFont",{"get":function(){b("includeFont",this._Inc,A,this._isNull);return this._Inc},"set":function(a){this._Inc=a;h(this,"IncludeFont",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"includeNumber",{"get":function(){b("includeNumber",this._Incl,A,this._isNull);return this._Incl},"set":function(a){this._Incl=a;h(this,"IncludeNumber",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"includePatterns",{"get":function(){b("includePatterns",this._Inclu,A,this._isNull);return this._Inclu},"set":function(a){this._Inclu=a;h(this,"IncludePatterns",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"includeProtection",{"get":function(){b("includeProtection",this._Includ,A,this._isNull);return this._Includ},"set":function(a){this._Includ=a;h(this,"IncludeProtection",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"indentLevel",{"get":function(){b("indentLevel",this._Ind,A,this._isNull);return this._Ind},"set":function(a){this._Ind=a;h(this,"IndentLevel",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"locked",{"get":function(){b("locked",this._L,A,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"Locked",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"name",{"get":function(){b("name",this._N,A,this._isNull);return this._N},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormat",{"get":function(){b("numberFormat",this._Nu,A,this._isNull);return this._Nu},"set":function(a){this._Nu=a;h(this,"NumberFormat",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"numberFormatLocal",{"get":function(){b("numberFormatLocal",this._Num,A,this._isNull);return this._Num},"set":function(a){this._Num=a;h(this,"NumberFormatLocal",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"readingOrder",{"get":function(){b("readingOrder",this._R,A,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"ReadingOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"shrinkToFit",{"get":function(){b("shrinkToFit",this._S,A,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"ShrinkToFit",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"textOrientation",{"get":function(){b("textOrientation",this.m_textOrientation,A,this._isNull);e("Style.textOrientation",f,"1.8",g);return this.m_textOrientation},"set":function(a){if(yb){this.m_textOrientation=a;h(this,"Orientation",a,0);return}this.m_textOrientation=a;h(this,"TextOrientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"verticalAlignment",{"get":function(){b("verticalAlignment",this._V,A,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"VerticalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"wrapText",{"get":function(){b("wrapText",this._W,A,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"WrapText",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["formulaHidden","horizontalAlignment","includeAlignment","includeBorder","includeFont","includeNumber","includePatterns","includeProtection","indentLevel","locked","numberFormat","numberFormatLocal","readingOrder","shrinkToFit","verticalAlignment","wrapText","textOrientation","autoIndent"],["font","fill"],["addIndent","borders","orientation"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};d.prototype._handleResult=function(b){i.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoIndent))this.m_autoIndent=a.AutoIndent;if(!c(a.BuiltIn))this._Bu=a.BuiltIn;if(!c(a.FormulaHidden))this._For=a.FormulaHidden;if(!c(a.HorizontalAlignment))this._H=a.HorizontalAlignment;if(!c(a.IncludeAlignment))this._I=a.IncludeAlignment;if(!c(a.IncludeBorder))this._In=a.IncludeBorder;if(!c(a.IncludeFont))this._Inc=a.IncludeFont;if(!c(a.IncludeNumber))this._Incl=a.IncludeNumber;if(!c(a.IncludePatterns))this._Inclu=a.IncludePatterns;if(!c(a.IncludeProtection))this._Includ=a.IncludeProtection;if(!c(a.IndentLevel))this._Ind=a.IndentLevel;if(!c(a.Locked))this._L=a.Locked;if(!c(a.Name))this._N=a.Name;if(!c(a.NumberFormat))this._Nu=a.NumberFormat;if(!c(a.NumberFormatLocal))this._Num=a.NumberFormatLocal;if(!c(a.ReadingOrder))this._R=a.ReadingOrder;if(!c(a.ShrinkToFit))this._S=a.ShrinkToFit;if(!c(a.TextOrientation))this.m_textOrientation=a.TextOrientation;if(!c(a.VerticalAlignment))this._V=a.VerticalAlignment;if(!c(a.WrapText))this._W=a.WrapText;s(this,a,["borders","Borders","fill","Fill","font","Font"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){i.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{autoIndent:this.m_autoIndent,builtIn:this._Bu,formulaHidden:this._For,horizontalAlignment:this._H,includeAlignment:this._I,includeBorder:this._In,includeFont:this._Inc,includeNumber:this._Incl,includePatterns:this._Inclu,includeProtection:this._Includ,indentLevel:this._Ind,locked:this._L,name:this._N,numberFormat:this._Nu,numberFormatLocal:this._Num,readingOrder:this._R,shrinkToFit:this._S,textOrientation:this.m_textOrientation,verticalAlignment:this._V,wrapText:this._W},{borders:this._B,fill:this._F,font:this._Fo})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.Style=Ri;var Ye="StyleCollection",vg=function(h){__extends(c,h);function c(){return h!==null&&h.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"StyleCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Ye,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(a){j(this,"Add",0,[a],0,0)};c.prototype.getCount=function(){e("StyleCollection.getCount",f,"1.9",g);return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.Style,this,[b])};c.prototype.getItemAt=function(b){e("StyleCollection.getItemAt",f,"1.9",g);return d(a.Style,this,"GetItemAt",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){h.prototype._handleResult.call(this,c);if(k(c))return;var e=c;m(this,e);if(!k(e[OfficeExtension.Constants.items])){this.m__items=[];for(var d=e[OfficeExtension.Constants.items],b=0;b<d.length;b++){var f=t(a.Style,true,this,d[b],b);f._handleResult(d[b]);this.m__items.push(f)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;h.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Style,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.StyleCollection=vg;var lj="InternalTest",th=function(c){__extends(b,c);function b(){return c!==null&&c.apply(this,arguments)||this}Object.defineProperty(b.prototype,"_className",{"get":function(){return"InternalTest"},enumerable:true,configurable:true});b.prototype.delay=function(a){return j(this,"Delay",0,[a],0,0)};b.prototype.enterCellEdit=function(a){e("InternalTest.enterCellEdit",f,"1.9",g);j(this,"EnterCellEdit",0,[a],0,0)};b.prototype.exitCellEdit=function(){e("InternalTest.exitCellEdit",f,"1.9",g);j(this,"ExitCellEdit",0,[],0,0)};b.prototype.firstPartyMethod=function(){e("InternalTest.firstPartyMethod",f,"1.7",g);j(this,"FirstPartyMethod",1,[],4|1,0)};b.prototype.installCustomFunctionsFromCache=function(){e("InternalTest.installCustomFunctionsFromCache",f,"1.9",g);j(this,"InstallCustomFunctionsFromCache",0,[],0,0)};b.prototype.noPermissionMethod=function(a){e("InternalTest.noPermissionMethod",f,"1.9",g);return j(this,"NoPermissionMethod",0,[a],0,0)};b.prototype.recalc=function(b,a){e("InternalTest.recalc",f,"1.9",g);j(this,"Recalc",0,[b,a],0,0)};b.prototype.recalcBySolutionId=function(a){e("InternalTest.recalcBySolutionId",f,"1.9",g);j(this,"RecalcBySolutionId",0,[a],0,0)};b.prototype.safeForCellEditModeMethod=function(a){e("InternalTest.safeForCellEditModeMethod",f,"1.9",g);return j(this,"SafeForCellEditModeMethod",0,[a],0,0)};b.prototype.triggerMessage=function(a,b,c,d){e("InternalTest.triggerMessage",f,"1.7",g);j(this,"TriggerMessage",0,[a,b,c,d],0,0)};b.prototype.triggerPostProcess=function(){e("InternalTest.triggerPostProcess",f,"1.7",g);j(this,"TriggerPostProcess",0,[],0,0)};b.prototype.triggerTestEvent=function(b,a){e("InternalTest.triggerTestEvent",f,"1.7",g);j(this,"TriggerTestEvent",0,[b,a],0,0)};b.prototype.triggerTestEventWithFilter=function(c,b,a){e("InternalTest.triggerTestEventWithFilter",f,"1.7",g);j(this,"TriggerTestEventWithFilter",0,[c,b,a],0,0)};b.prototype._RegisterTest1Event=function(){e("InternalTest._RegisterTest1Event",f,"1.7",g);j(this,"_RegisterTest1Event",0,[],0,0)};b.prototype._RegisterTestEvent=function(){e("InternalTest._RegisterTestEvent",f,"1.7",g);j(this,"_RegisterTestEvent",0,[],0,0)};b.prototype._UnregisterTest1Event=function(){e("InternalTest._UnregisterTest1Event",f,"1.7",g);j(this,"_UnregisterTest1Event",0,[],0,0)};b.prototype._UnregisterTestEvent=function(){e("InternalTest._UnregisterTestEvent",f,"1.7",g);j(this,"_UnregisterTestEvent",0,[],0,0)};b.prototype._handleResult=function(a){c.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b)};b.prototype._handleRetrieveResult=function(b,a){c.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};b.newObject=function(b){return ed(a.InternalTest,b,"Microsoft.ExcelServices.InternalTest",false,4)};Object.defineProperty(b.prototype,"onTest1Event",{"get":function(){var a=this;e("InternalTest.onTest1Event",f,"1.7",g);if(!this.m_test1Event)this.m_test1Event=new OfficeExtension.GenericEventHandlers(this.context,this,"Test1Event",{eventType:2,registerFunc:function(){return a._RegisterTest1Event()},unregisterFunc:function(){return a._UnregisterTest1Event()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(b){var c={prop1:b.prop1,worksheet:a.context.workbook.worksheets.getItem(b.worksheetId)};return OfficeExtension.Utility._createPromiseFromResult(c)}});return this.m_test1Event},enumerable:true,configurable:true});Object.defineProperty(b.prototype,"onTestEvent",{"get":function(){var a=this;e("InternalTest.onTestEvent",f,"1.7",g);if(!this.m_testEvent)this.m_testEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"TestEvent",{eventType:1,registerFunc:function(){return a._RegisterTestEvent()},unregisterFunc:function(){return a._UnregisterTestEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(b){var c={prop1:b.prop1,worksheet:a.context.workbook.worksheets.getItem(b.worksheetId)};return OfficeExtension.Utility._createPromiseFromResult(c)}});return this.m_testEvent},enumerable:true,configurable:true});b.prototype.toJSON=function(){return o(this,{},{})};return b}(OfficeExtension.ClientObject);a.InternalTest=th;var B="PageLayout",Th=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"PageLayout"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["orientation","paperSize","blackAndWhite","printErrors","zoom","centerHorizontally","centerVertically","printHeadings","printGridlines","leftMargin","rightMargin","topMargin","bottomMargin","headerMargin","footerMargin","printComments","draftMode","firstPageNumber","printOrder"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_navigationPropertyNames",{"get":function(){return["headersFooters"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"headersFooters",{"get":function(){if(!this._He)this._He=l(a.HeaderFooterGroup,this,"HeadersFooters",false,4);return this._He},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"blackAndWhite",{"get":function(){b("blackAndWhite",this._B,B,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"BlackAndWhite",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"bottomMargin",{"get":function(){b("bottomMargin",this._Bo,B,this._isNull);return this._Bo},"set":function(a){this._Bo=a;h(this,"BottomMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"centerHorizontally",{"get":function(){b("centerHorizontally",this._C,B,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"CenterHorizontally",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"centerVertically",{"get":function(){b("centerVertically",this._Ce,B,this._isNull);return this._Ce},"set":function(a){this._Ce=a;h(this,"CenterVertically",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"draftMode",{"get":function(){b("draftMode",this._D,B,this._isNull);return this._D},"set":function(a){this._D=a;h(this,"DraftMode",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"firstPageNumber",{"get":function(){b("firstPageNumber",this._F,B,this._isNull);return this._F},"set":function(a){this._F=a;h(this,"FirstPageNumber",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"footerMargin",{"get":function(){b("footerMargin",this._Fo,B,this._isNull);return this._Fo},"set":function(a){this._Fo=a;h(this,"FooterMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"headerMargin",{"get":function(){b("headerMargin",this._H,B,this._isNull);return this._H},"set":function(a){this._H=a;h(this,"HeaderMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"leftMargin",{"get":function(){b("leftMargin",this._L,B,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"LeftMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"orientation",{"get":function(){b("orientation",this._O,B,this._isNull);return this._O},"set":function(a){this._O=a;h(this,"Orientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"paperSize",{"get":function(){b("paperSize",this._P,B,this._isNull);return this._P},"set":function(a){this._P=a;h(this,"PaperSize",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"printComments",{"get":function(){b("printComments",this._Pr,B,this._isNull);return this._Pr},"set":function(a){this._Pr=a;h(this,"PrintComments",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"printErrors",{"get":function(){b("printErrors",this._Pri,B,this._isNull);return this._Pri},"set":function(a){this._Pri=a;h(this,"PrintErrors",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"printGridlines",{"get":function(){b("printGridlines",this._Prin,B,this._isNull);return this._Prin},"set":function(a){this._Prin=a;h(this,"PrintGridlines",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"printHeadings",{"get":function(){b("printHeadings",this._Print,B,this._isNull);return this._Print},"set":function(a){this._Print=a;h(this,"PrintHeadings",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"printOrder",{"get":function(){b("printOrder",this._PrintO,B,this._isNull);return this._PrintO},"set":function(a){this._PrintO=a;h(this,"PrintOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"rightMargin",{"get":function(){b("rightMargin",this._R,B,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"RightMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"topMargin",{"get":function(){b("topMargin",this._T,B,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"TopMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"zoom",{"get":function(){b("zoom",this._Z,B,this._isNull);return this._Z},"set":function(a){this._Z=a;h(this,"Zoom",a,0)},enumerable:true,configurable:true});e.prototype.set=function(a,b){this._recursivelySet(a,b,["orientation","paperSize","blackAndWhite","printErrors","zoom","centerHorizontally","centerVertically","printHeadings","printGridlines","leftMargin","rightMargin","topMargin","bottomMargin","headerMargin","footerMargin","printComments","draftMode","firstPageNumber","printOrder"],["headersFooters"],[])};e.prototype.update=function(a){this._recursivelyUpdate(a)};e.prototype.getPrintArea=function(){return d(a.RangeAreas,this,"GetPrintArea",1,[],false,true,null,4)};e.prototype.getPrintAreaOrNullObject=function(){return d(a.RangeAreas,this,"GetPrintAreaOrNullObject",1,[],false,true,null,4)};e.prototype.getPrintTitleColumns=function(){return d(a.Range,this,"GetPrintTitleColumns",1,[],false,true,null,4)};e.prototype.getPrintTitleColumnsOrNullObject=function(){return d(a.Range,this,"GetPrintTitleColumnsOrNullObject",1,[],false,true,null,4)};e.prototype.getPrintTitleRows=function(){return d(a.Range,this,"GetPrintTitleRows",1,[],false,true,null,4)};e.prototype.getPrintTitleRowsOrNullObject=function(){return d(a.Range,this,"GetPrintTitleRowsOrNullObject",1,[],false,true,null,4)};e.prototype.setPrintArea=function(a){j(this,"SetPrintArea",0,[a],0,0)};e.prototype.setPrintMargins=function(b,a){j(this,"SetPrintMargins",0,[b,a],0,0)};e.prototype.setPrintTitleColumns=function(a){j(this,"SetPrintTitleColumns",0,[a],0,0)};e.prototype.setPrintTitleRows=function(a){j(this,"SetPrintTitleRows",0,[a],0,0)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.BlackAndWhite))this._B=a.BlackAndWhite;if(!c(a.BottomMargin))this._Bo=a.BottomMargin;if(!c(a.CenterHorizontally))this._C=a.CenterHorizontally;if(!c(a.CenterVertically))this._Ce=a.CenterVertically;if(!c(a.DraftMode))this._D=a.DraftMode;if(!c(a.FirstPageNumber))this._F=a.FirstPageNumber;if(!c(a.FooterMargin))this._Fo=a.FooterMargin;if(!c(a.HeaderMargin))this._H=a.HeaderMargin;if(!c(a.LeftMargin))this._L=a.LeftMargin;if(!c(a.Orientation))this._O=a.Orientation;if(!c(a.PaperSize))this._P=a.PaperSize;if(!c(a.PrintComments))this._Pr=a.PrintComments;if(!c(a.PrintErrors))this._Pri=a.PrintErrors;if(!c(a.PrintGridlines))this._Prin=a.PrintGridlines;if(!c(a.PrintHeadings))this._Print=a.PrintHeadings;if(!c(a.PrintOrder))this._PrintO=a.PrintOrder;if(!c(a.RightMargin))this._R=a.RightMargin;if(!c(a.TopMargin))this._T=a.TopMargin;if(!c(a.Zoom))this._Z=a.Zoom;s(this,a,["headersFooters","HeadersFooters"])};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};e.prototype.toJSON=function(){return o(this,{blackAndWhite:this._B,bottomMargin:this._Bo,centerHorizontally:this._C,centerVertically:this._Ce,draftMode:this._D,firstPageNumber:this._F,footerMargin:this._Fo,headerMargin:this._H,leftMargin:this._L,orientation:this._O,paperSize:this._P,printComments:this._Pr,printErrors:this._Pri,printGridlines:this._Prin,printHeadings:this._Print,printOrder:this._PrintO,rightMargin:this._R,topMargin:this._T,zoom:this._Z},{headersFooters:this._He})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.PageLayout=Th;var cb="HeaderFooter",sh=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"HeaderFooter"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["leftHeader","centerHeader","rightHeader","leftFooter","centerFooter","rightFooter"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"centerFooter",{"get":function(){b("centerFooter",this._C,cb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"CenterFooter",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"centerHeader",{"get":function(){b("centerHeader",this._Ce,cb,this._isNull);return this._Ce},"set":function(a){this._Ce=a;h(this,"CenterHeader",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"leftFooter",{"get":function(){b("leftFooter",this._L,cb,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"LeftFooter",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"leftHeader",{"get":function(){b("leftHeader",this._Le,cb,this._isNull);return this._Le},"set":function(a){this._Le=a;h(this,"LeftHeader",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"rightFooter",{"get":function(){b("rightFooter",this._R,cb,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"RightFooter",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"rightHeader",{"get":function(){b("rightHeader",this._Ri,cb,this._isNull);return this._Ri},"set":function(a){this._Ri=a;h(this,"RightHeader",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["leftHeader","centerHeader","rightHeader","leftFooter","centerFooter","rightFooter"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.CenterFooter))this._C=a.CenterFooter;if(!c(a.CenterHeader))this._Ce=a.CenterHeader;if(!c(a.LeftFooter))this._L=a.LeftFooter;if(!c(a.LeftHeader))this._Le=a.LeftHeader;if(!c(a.RightFooter))this._R=a.RightFooter;if(!c(a.RightHeader))this._Ri=a.RightHeader};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{centerFooter:this._C,centerHeader:this._Ce,leftFooter:this._L,leftHeader:this._Le,rightFooter:this._R,rightHeader:this._Ri},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.HeaderFooter=sh;var Fb="HeaderFooterGroup",Nf=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"HeaderFooterGroup"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["state","useSheetMargins","useSheetScale"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["defaultForAllPages","firstPage","evenPages","oddPages"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"defaultForAllPages",{"get":function(){if(!this._D)this._D=l(a.HeaderFooter,this,"DefaultForAllPages",false,4);return this._D},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"evenPages",{"get":function(){if(!this._E)this._E=l(a.HeaderFooter,this,"EvenPages",false,4);return this._E},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"firstPage",{"get":function(){if(!this._F)this._F=l(a.HeaderFooter,this,"FirstPage",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"oddPages",{"get":function(){if(!this._O)this._O=l(a.HeaderFooter,this,"OddPages",false,4);return this._O},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"state",{"get":function(){b("state",this._S,Fb,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"State",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"useSheetMargins",{"get":function(){b("useSheetMargins",this._U,Fb,this._isNull);return this._U},"set":function(a){this._U=a;h(this,"UseSheetMargins",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"useSheetScale",{"get":function(){b("useSheetScale",this._Us,Fb,this._isNull);return this._Us},"set":function(a){this._Us=a;h(this,"UseSheetScale",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["state","useSheetMargins","useSheetScale"],["defaultForAllPages","firstPage","evenPages","oddPages"],[])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.State))this._S=a.State;if(!c(a.UseSheetMargins))this._U=a.UseSheetMargins;if(!c(a.UseSheetScale))this._Us=a.UseSheetScale;s(this,a,["defaultForAllPages","DefaultForAllPages","evenPages","EvenPages","firstPage","FirstPage","oddPages","OddPages"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{state:this._S,useSheetMargins:this._U,useSheetScale:this._Us},{defaultForAllPages:this._D,evenPages:this._E,firstPage:this._F,oddPages:this._O})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.HeaderFooterGroup=Nf;var Nb="PageBreak",ji=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"PageBreak"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["_Id","columnIndex","rowIndex"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"columnIndex",{"get":function(){b("columnIndex",this._C,Nb,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"rowIndex",{"get":function(){b("rowIndex",this._R,Nb,this._isNull);return this._R},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_Id",{"get":function(){b("_Id",this.__I,Nb,this._isNull);return this.__I},enumerable:true,configurable:true});e.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};e.prototype.getCellAfterBreak=function(){return d(a.Range,this,"GetCellAfterBreak",1,[],false,true,null,4)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.ColumnIndex))this._C=a.ColumnIndex;if(!c(a.RowIndex))this._R=a.RowIndex;if(!c(a._Id))this.__I=a._Id};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleIdResult=function(a){f.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a._Id))this.__I=a._Id};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};e.prototype.toJSON=function(){return o(this,{columnIndex:this._C,rowIndex:this._R},{})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.PageBreak=ji;var Od="PageBreakCollection",jf=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"PageBreakCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Od,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.add=function(b){return d(a.PageBreak,this,"Add",0,[b],false,true,null,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return x(a.PageBreak,this,[b])};c.prototype.removePageBreaks=function(){j(this,"RemovePageBreaks",0,[],0,0)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.PageBreak,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.PageBreak,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.PageBreakCollection=jf;var Wi="DataConnectionCollection",Jd=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"DataConnectionCollection"},enumerable:true,configurable:true});a.prototype.refreshAll=function(){j(this,"RefreshAll",0,[],0,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(k(a))return;var c=a;m(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);n(this,c,a)};a.prototype.toJSON=function(){return o(this,{},{})};return a}(OfficeExtension.ClientObject);a.DataConnectionCollection=Jd;var We="RangeCollection",og=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"RangeCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,We,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItemAt=function(b){return d(a.Range,this,"GetItemAt",1,[b],false,false,null,4)};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.Range,false,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Range,false,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.RangeCollection=og;var Xe="ShapeCollection",qg=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"ShapeCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Xe,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.addGeometricShape=function(b){return d(a.Shape,this,"AddGeometricShape",0,[b],false,false,null,0)};c.prototype.addGroup=function(b){return d(a.Shape,this,"AddGroup",0,[b],false,false,null,0)};c.prototype.addImage=function(b){return d(a.Shape,this,"AddImage",0,[b],false,false,null,0)};c.prototype.addLine=function(c,e,f,g,b){return d(a.Shape,this,"AddLine",0,[c,e,f,g,b],false,false,null,0)};c.prototype.addTextBox=function(b){return d(a.Shape,this,"AddTextBox",0,[b],false,false,null,0)};c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return d(a.Shape,this,"GetItem",1,[b],false,false,null,4)};c.prototype.getItemAt=function(b){return d(a.Shape,this,"GetItemAt",1,[b],false,false,null,4)};c.prototype._GetItem=function(b){return x(a.Shape,this,[b])};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.Shape,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Shape,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.ShapeCollection=qg;var C="Shape",Qi=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"Shape"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["id","name","left","top","width","height","rotation","zOrderPosition","altTextTitle","altTextDescription","type","lockAspectRatio","geometricShapeType","visible","level","connectionSiteCount"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true,true,true,false,true,true,false,true,true,true,false,false]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_navigationPropertyNames",{"get":function(){return["geometricShape","image","textFrame","fill","group","parentGroup","line","lineFormat"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"fill",{"get":function(){if(!this._F)this._F=l(a.ShapeFill,this,"Fill",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"geometricShape",{"get":function(){if(!this._G)this._G=l(a.GeometricShape,this,"GeometricShape",false,4);return this._G},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"group",{"get":function(){if(!this._Gr)this._Gr=l(a.ShapeGroup,this,"Group",false,4);return this._Gr},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"image",{"get":function(){if(!this._Im)this._Im=l(a.Image,this,"Image",false,4);return this._Im},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"line",{"get":function(){if(!this._Li)this._Li=l(a.Line,this,"Line",false,4);return this._Li},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"lineFormat",{"get":function(){if(!this._Lin)this._Lin=l(a.ShapeLineFormat,this,"LineFormat",false,4);return this._Lin},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"parentGroup",{"get":function(){if(!this._P)this._P=l(a.Shape,this,"ParentGroup",false,4);return this._P},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"textFrame",{"get":function(){if(!this._T)this._T=l(a.TextFrame,this,"TextFrame",false,4);return this._T},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"altTextDescription",{"get":function(){b("altTextDescription",this._A,C,this._isNull);return this._A},"set":function(a){this._A=a;h(this,"AltTextDescription",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"altTextTitle",{"get":function(){b("altTextTitle",this._Al,C,this._isNull);return this._Al},"set":function(a){this._Al=a;h(this,"AltTextTitle",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"connectionSiteCount",{"get":function(){b("connectionSiteCount",this._C,C,this._isNull);return this._C},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"geometricShapeType",{"get":function(){b("geometricShapeType",this._Ge,C,this._isNull);return this._Ge},"set":function(a){this._Ge=a;h(this,"GeometricShapeType",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"height",{"get":function(){b("height",this._H,C,this._isNull);return this._H},"set":function(a){this._H=a;h(this,"Height",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"id",{"get":function(){b("id",this._I,C,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"left",{"get":function(){b("left",this._L,C,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"Left",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"level",{"get":function(){b("level",this._Le,C,this._isNull);return this._Le},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"lockAspectRatio",{"get":function(){b("lockAspectRatio",this._Lo,C,this._isNull);return this._Lo},"set":function(a){this._Lo=a;h(this,"LockAspectRatio",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"name",{"get":function(){b("name",this._N,C,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"rotation",{"get":function(){b("rotation",this._R,C,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"Rotation",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"top",{"get":function(){b("top",this._To,C,this._isNull);return this._To},"set":function(a){this._To=a;h(this,"Top",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"type",{"get":function(){b("type",this._Ty,C,this._isNull);return this._Ty},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"visible",{"get":function(){b("visible",this._V,C,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"width",{"get":function(){b("width",this._W,C,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"Width",a,0)},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"zOrderPosition",{"get":function(){b("zOrderPosition",this._Z,C,this._isNull);return this._Z},enumerable:true,configurable:true});e.prototype.set=function(a,b){this._recursivelySet(a,b,["name","left","top","width","height","rotation","altTextTitle","altTextDescription","lockAspectRatio","geometricShapeType","visible"],["fill","lineFormat"],["geometricShape","group","image","line","parentGroup","textFrame"])};e.prototype.update=function(a){this._recursivelyUpdate(a)};e.prototype["delete"]=function(){j(this,"Delete",0,[],0,0)};e.prototype.getAsImage=function(a){return j(this,"GetAsImage",0,[a],0,0)};e.prototype.incrementLeft=function(a){j(this,"IncrementLeft",0,[a],0,0)};e.prototype.incrementRotation=function(a){j(this,"IncrementRotation",0,[a],0,0)};e.prototype.incrementTop=function(a){j(this,"IncrementTop",0,[a],0,0)};e.prototype.scaleHeight=function(a,c,b){j(this,"ScaleHeight",0,[a,c,b],0,0)};e.prototype.scaleWidth=function(a,c,b){j(this,"ScaleWidth",0,[a,c,b],0,0)};e.prototype.setZOrder=function(a){j(this,"SetZOrder",0,[a],0,0)};e.prototype._GetShapeById=function(b){return d(a.Shape,this,"_GetShapeById",1,[b],false,false,null,4)};e.prototype._RegisterActivatedEvent=function(){j(this,"_RegisterActivatedEvent",0,[],0,0)};e.prototype._RegisterDeactivatedEvent=function(){j(this,"_RegisterDeactivatedEvent",0,[],0,0)};e.prototype._UnregisterActivatedEvent=function(){j(this,"_UnregisterActivatedEvent",0,[],0,0)};e.prototype._UnregisterDeactivatedEvent=function(){j(this,"_UnregisterDeactivatedEvent",0,[],0,0)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AltTextDescription))this._A=a.AltTextDescription;if(!c(a.AltTextTitle))this._Al=a.AltTextTitle;if(!c(a.ConnectionSiteCount))this._C=a.ConnectionSiteCount;if(!c(a.GeometricShapeType))this._Ge=a.GeometricShapeType;if(!c(a.Height))this._H=a.Height;if(!c(a.Id))this._I=a.Id;if(!c(a.Left))this._L=a.Left;if(!c(a.Level))this._Le=a.Level;if(!c(a.LockAspectRatio))this._Lo=a.LockAspectRatio;if(!c(a.Name))this._N=a.Name;if(!c(a.Rotation))this._R=a.Rotation;if(!c(a.Top))this._To=a.Top;if(!c(a.Type))this._Ty=a.Type;if(!c(a.Visible))this._V=a.Visible;if(!c(a.Width))this._W=a.Width;if(!c(a.ZOrderPosition))this._Z=a.ZOrderPosition;s(this,a,["fill","Fill","geometricShape","GeometricShape","group","Group","image","Image","line","Line","lineFormat","LineFormat","parentGroup","ParentGroup","textFrame","TextFrame"])};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleIdResult=function(a){f.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};Object.defineProperty(e.prototype,"onActivated",{"get":function(){var a=this;if(!this.m_activated)this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:2101,registerFunc:function(){a._RegisterActivatedEvent()},unregisterFunc:function(){a._UnregisterActivatedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(a){var b={type:w.shapeActivated,worksheetId:a.worksheetId,shapeId:a.shapeId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_activated},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"onDeactivated",{"get":function(){var a=this;if(!this.m_deactivated)this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:2102,registerFunc:function(){a._RegisterDeactivatedEvent()},unregisterFunc:function(){a._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return a.id},eventArgsTransformFunc:function(a){var b={type:w.shapeDeactivated,worksheetId:a.worksheetId,shapeId:a.shapeId};return OfficeExtension.Utility._createPromiseFromResult(b)}});return this.m_deactivated},enumerable:true,configurable:true});e.prototype.toJSON=function(){return o(this,{altTextDescription:this._A,altTextTitle:this._Al,connectionSiteCount:this._C,geometricShapeType:this._Ge,height:this._H,id:this._I,left:this._L,level:this._Le,lockAspectRatio:this._Lo,name:this._N,rotation:this._R,top:this._To,type:this._Ty,visible:this._V,width:this._W,zOrderPosition:this._Z},{fill:this._F,lineFormat:this._Lin})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.Shape=Qi;var qf="GeometricShape",Og=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"GeometricShape"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["shape"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"shape",{"get":function(){if(!this._S)this._S=l(a.Shape,this,"Shape",false,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,qf,this._isNull);return this._I},enumerable:true,configurable:true});d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;s(this,a,["shape","Shape"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{id:this._I},{})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.GeometricShape=Og;var vc="Image",Pi=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"Image"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id","format"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["shape"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"shape",{"get":function(){if(!this._S)this._S=l(a.Shape,this,"Shape",false,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,vc,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"format",{"get":function(){b("format",this._f,vc,this._isNull);return this._f},enumerable:true,configurable:true});d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;if(!c(a.format))this._f=a.format;s(this,a,["shape","Shape"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{format:this._f,id:this._I},{})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.Image=Pi;var yg="ShapeGroup",Yh=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"ShapeGroup"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["shapes","shape"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"shape",{"get":function(){if(!this._S)this._S=l(a.Shape,this,"Shape",false,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"shapes",{"get":function(){if(!this._Sh)this._Sh=l(a.GroupShapeCollection,this,"Shapes",true,4);return this._Sh},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,yg,this._isNull);return this._I},enumerable:true,configurable:true});d.prototype.ungroup=function(){j(this,"Ungroup",0,[],0,0)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Id))this._I=a.Id;s(this,a,["shape","Shape","shapes","Shapes"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{id:this._I},{shapes:this._Sh})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.ShapeGroup=Yh;var Cd="GroupShapeCollection",Me=function(e){__extends(c,e);function c(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(c.prototype,"_className",{"get":function(){return"GroupShapeCollection"},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"_isCollection",{"get":function(){return true},enumerable:true,configurable:true});Object.defineProperty(c.prototype,"items",{"get":function(){b("items",this.m__items,Cd,this._isNull);return this.m__items},enumerable:true,configurable:true});c.prototype.getCount=function(){return j(this,"GetCount",1,[],4,0)};c.prototype.getItem=function(b){return d(a.Shape,this,"GetItem",1,[b],false,false,null,4)};c.prototype.getItemAt=function(b){return d(a.Shape,this,"GetItemAt",1,[b],false,false,null,4)};c.prototype._GetItem=function(b){return x(a.Shape,this,[b])};c.prototype._handleResult=function(c){e.prototype._handleResult.call(this,c);if(k(c))return;var f=c;m(this,f);if(!k(f[OfficeExtension.Constants.items])){this.m__items=[];for(var d=f[OfficeExtension.Constants.items],b=0;b<d.length;b++){var g=t(a.Shape,true,this,d[b],b);g._handleResult(d[b]);this.m__items.push(g)}}};c.prototype.load=function(a){return p(this,a)};c.prototype.retrieve=function(a){return q(this,a)};c.prototype._handleRetrieveResult=function(c,b){var d=this;e.prototype._handleRetrieveResult.call(this,c,b);n(this,c,b,function(b,c){return t(a.Shape,true,d,b,c)})};c.prototype.toJSON=function(){return o(this,{},{},this.m__items)};return c}(OfficeExtension.ClientObject);a.GroupShapeCollection=Me;var J="Line",Ti=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"Line"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["id","connectorType","beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","endArrowheadLength","endArrowheadStyle","endArrowheadWidth","isBeginConnected","beginConnectedSite","isEndConnected","endConnectedSite"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[false,true,true,true,true,true,true,true,false,false,false,false]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["shape","beginConnectedShape","endConnectedShape"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"beginConnectedShape",{"get":function(){if(!this._Begi)this._Begi=l(a.Shape,this,"BeginConnectedShape",false,4);return this._Begi},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"endConnectedShape",{"get":function(){if(!this._EndC)this._EndC=l(a.Shape,this,"EndConnectedShape",false,4);return this._EndC},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"shape",{"get":function(){if(!this._S)this._S=l(a.Shape,this,"Shape",false,4);return this._S},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"beginArrowheadLength",{"get":function(){b("beginArrowheadLength",this._B,J,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"BeginArrowheadLength",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"beginArrowheadStyle",{"get":function(){b("beginArrowheadStyle",this._Be,J,this._isNull);return this._Be},"set":function(a){this._Be=a;h(this,"BeginArrowheadStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"beginArrowheadWidth",{"get":function(){b("beginArrowheadWidth",this._Beg,J,this._isNull);return this._Beg},"set":function(a){this._Beg=a;h(this,"BeginArrowheadWidth",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"beginConnectedSite",{"get":function(){b("beginConnectedSite",this._Begin,J,this._isNull);return this._Begin},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"endArrowheadLength",{"get":function(){b("endArrowheadLength",this._E,J,this._isNull);return this._E},"set":function(a){this._E=a;h(this,"EndArrowheadLength",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"endArrowheadStyle",{"get":function(){b("endArrowheadStyle",this._En,J,this._isNull);return this._En},"set":function(a){this._En=a;h(this,"EndArrowheadStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"endArrowheadWidth",{"get":function(){b("endArrowheadWidth",this._End,J,this._isNull);return this._End},"set":function(a){this._End=a;h(this,"EndArrowheadWidth",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"endConnectedSite",{"get":function(){b("endConnectedSite",this._EndCo,J,this._isNull);return this._EndCo},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"id",{"get":function(){b("id",this._I,J,this._isNull);return this._I},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"isBeginConnected",{"get":function(){b("isBeginConnected",this._Is,J,this._isNull);return this._Is},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"isEndConnected",{"get":function(){b("isEndConnected",this._IsE,J,this._isNull);return this._IsE},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"connectorType",{"get":function(){b("connectorType",this._c,J,this._isNull);return this._c},"set":function(a){this._c=a;h(this,"connectorType",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["connectorType","beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","endArrowheadLength","endArrowheadStyle","endArrowheadWidth"],[],["beginConnectedShape","endConnectedShape","shape"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.connectBeginShape=function(b,a){j(this,"ConnectBeginShape",0,[b,a],0,0)};d.prototype.connectEndShape=function(b,a){j(this,"ConnectEndShape",0,[b,a],0,0)};d.prototype.disconnectBeginShape=function(){j(this,"DisconnectBeginShape",0,[],0,0)};d.prototype.disconnectEndShape=function(){j(this,"DisconnectEndShape",0,[],0,0)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.BeginArrowheadLength))this._B=a.BeginArrowheadLength;if(!c(a.BeginArrowheadStyle))this._Be=a.BeginArrowheadStyle;if(!c(a.BeginArrowheadWidth))this._Beg=a.BeginArrowheadWidth;if(!c(a.BeginConnectedSite))this._Begin=a.BeginConnectedSite;if(!c(a.EndArrowheadLength))this._E=a.EndArrowheadLength;if(!c(a.EndArrowheadStyle))this._En=a.EndArrowheadStyle;if(!c(a.EndArrowheadWidth))this._End=a.EndArrowheadWidth;if(!c(a.EndConnectedSite))this._EndCo=a.EndConnectedSite;if(!c(a.Id))this._I=a.Id;if(!c(a.IsBeginConnected))this._Is=a.IsBeginConnected;if(!c(a.IsEndConnected))this._IsE=a.IsEndConnected;if(!c(a.connectorType))this._c=a.connectorType;s(this,a,["beginConnectedShape","BeginConnectedShape","endConnectedShape","EndConnectedShape","shape","Shape"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleIdResult=function(a){e.prototype._handleIdResult.call(this,a);if(k(a))return;if(!c(a.Id))this._I=a.Id};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{beginArrowheadLength:this._B,beginArrowheadStyle:this._Be,beginArrowheadWidth:this._Beg,beginConnectedSite:this._Begin,connectorType:this._c,endArrowheadLength:this._E,endArrowheadStyle:this._En,endArrowheadWidth:this._End,endConnectedSite:this._EndCo,id:this._I,isBeginConnected:this._Is,isEndConnected:this._IsE},{})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.Line=Ti;var Ob="ShapeFill",ti=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ShapeFill"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["foregroundColor","type","transparency"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,false,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"foregroundColor",{"get":function(){b("foregroundColor",this._F,Ob,this._isNull);return this._F},"set":function(a){this._F=a;h(this,"ForegroundColor",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"transparency",{"get":function(){b("transparency",this._T,Ob,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Transparency",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"type",{"get":function(){b("type",this._Ty,Ob,this._isNull);return this._Ty},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["foregroundColor","transparency"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype.clear=function(){j(this,"Clear",0,[],0,0)};a.prototype.setSolidColor=function(a){j(this,"SetSolidColor",0,[a],0,0)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.ForegroundColor))this._F=a.ForegroundColor;if(!c(a.Transparency))this._T=a.Transparency;if(!c(a.Type))this._Ty=a.Type};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{foregroundColor:this._F,transparency:this._T,type:this._Ty},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ShapeFill=ti;var Z="ShapeLineFormat",rg=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ShapeLineFormat"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["visible","color","style","weight","dashStyle","transparency"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,Z,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"dashStyle",{"get":function(){b("dashStyle",this._D,Z,this._isNull);return this._D},"set":function(a){this._D=a;h(this,"DashStyle",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"style",{"get":function(){b("style",this._S,Z,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Style",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"transparency",{"get":function(){b("transparency",this._T,Z,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Transparency",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"visible",{"get":function(){b("visible",this._V,Z,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"Visible",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"weight",{"get":function(){b("weight",this._W,Z,this._isNull);return this._W},"set":function(a){this._W=a;h(this,"Weight",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["visible","color","style","weight","dashStyle","transparency"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Color))this._C=a.Color;if(!c(a.DashStyle))this._D=a.DashStyle;if(!c(a.Style))this._S=a.Style;if(!c(a.Transparency))this._T=a.Transparency;if(!c(a.Visible))this._V=a.Visible;if(!c(a.Weight))this._W=a.Weight};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{color:this._C,dashStyle:this._D,style:this._S,transparency:this._T,visible:this._V,weight:this._W},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ShapeLineFormat=rg;var I="TextFrame",xi=function(e){__extends(d,e);function d(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(d.prototype,"_className",{"get":function(){return"TextFrame"},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyNames",{"get":function(){return["leftMargin","rightMargin","topMargin","bottomMargin","horizontalAlignment","horizontalOverflow","verticalAlignment","verticalOverflow","orientation","readingOrder","hasText","autoSizeSetting"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true,true,true,true,true,false,true]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"_navigationPropertyNames",{"get":function(){return["textRange"]},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"textRange",{"get":function(){if(!this._T)this._T=l(a.TextRange,this,"TextRange",false,4);return this._T},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"autoSizeSetting",{"get":function(){b("autoSizeSetting",this._A,I,this._isNull);return this._A},"set":function(a){this._A=a;h(this,"AutoSizeSetting",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"bottomMargin",{"get":function(){b("bottomMargin",this._B,I,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"BottomMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"hasText",{"get":function(){b("hasText",this._H,I,this._isNull);return this._H},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"horizontalAlignment",{"get":function(){b("horizontalAlignment",this._Ho,I,this._isNull);return this._Ho},"set":function(a){this._Ho=a;h(this,"HorizontalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"horizontalOverflow",{"get":function(){b("horizontalOverflow",this._Hor,I,this._isNull);return this._Hor},"set":function(a){this._Hor=a;h(this,"HorizontalOverflow",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"leftMargin",{"get":function(){b("leftMargin",this._L,I,this._isNull);return this._L},"set":function(a){this._L=a;h(this,"LeftMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"orientation",{"get":function(){b("orientation",this._O,I,this._isNull);return this._O},"set":function(a){this._O=a;h(this,"Orientation",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"readingOrder",{"get":function(){b("readingOrder",this._R,I,this._isNull);return this._R},"set":function(a){this._R=a;h(this,"ReadingOrder",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"rightMargin",{"get":function(){b("rightMargin",this._Ri,I,this._isNull);return this._Ri},"set":function(a){this._Ri=a;h(this,"RightMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"topMargin",{"get":function(){b("topMargin",this._To,I,this._isNull);return this._To},"set":function(a){this._To=a;h(this,"TopMargin",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"verticalAlignment",{"get":function(){b("verticalAlignment",this._V,I,this._isNull);return this._V},"set":function(a){this._V=a;h(this,"VerticalAlignment",a,0)},enumerable:true,configurable:true});Object.defineProperty(d.prototype,"verticalOverflow",{"get":function(){b("verticalOverflow",this._Ve,I,this._isNull);return this._Ve},"set":function(a){this._Ve=a;h(this,"VerticalOverflow",a,0)},enumerable:true,configurable:true});d.prototype.set=function(a,b){this._recursivelySet(a,b,["leftMargin","rightMargin","topMargin","bottomMargin","horizontalAlignment","horizontalOverflow","verticalAlignment","verticalOverflow","orientation","readingOrder","autoSizeSetting"],[],["textRange"])};d.prototype.update=function(a){this._recursivelyUpdate(a)};d.prototype.deleteText=function(){j(this,"DeleteText",0,[],0,0)};d.prototype._handleResult=function(b){e.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.AutoSizeSetting))this._A=a.AutoSizeSetting;if(!c(a.BottomMargin))this._B=a.BottomMargin;if(!c(a.HasText))this._H=a.HasText;if(!c(a.HorizontalAlignment))this._Ho=a.HorizontalAlignment;if(!c(a.HorizontalOverflow))this._Hor=a.HorizontalOverflow;if(!c(a.LeftMargin))this._L=a.LeftMargin;if(!c(a.Orientation))this._O=a.Orientation;if(!c(a.ReadingOrder))this._R=a.ReadingOrder;if(!c(a.RightMargin))this._Ri=a.RightMargin;if(!c(a.TopMargin))this._To=a.TopMargin;if(!c(a.VerticalAlignment))this._V=a.VerticalAlignment;if(!c(a.VerticalOverflow))this._Ve=a.VerticalOverflow;s(this,a,["textRange","TextRange"])};d.prototype.load=function(a){return p(this,a)};d.prototype.retrieve=function(a){return q(this,a)};d.prototype._handleRetrieveResult=function(b,a){e.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};d.prototype.toJSON=function(){return o(this,{autoSizeSetting:this._A,bottomMargin:this._B,hasText:this._H,horizontalAlignment:this._Ho,horizontalOverflow:this._Hor,leftMargin:this._L,orientation:this._O,readingOrder:this._R,rightMargin:this._Ri,topMargin:this._To,verticalAlignment:this._V,verticalOverflow:this._Ve},{})};d.prototype.ensureUnchanged=function(a){r(this,a);return};return d}(OfficeExtension.ClientObject);a.TextFrame=xi;var Xg="TextRange",yi=function(f){__extends(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_className",{"get":function(){return"TextRange"},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyNames",{"get":function(){return["text"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"_navigationPropertyNames",{"get":function(){return["font"]},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"font",{"get":function(){if(!this._F)this._F=l(a.ShapeFont,this,"Font",false,4);return this._F},enumerable:true,configurable:true});Object.defineProperty(e.prototype,"text",{"get":function(){b("text",this._T,Xg,this._isNull);return this._T},"set":function(a){this._T=a;h(this,"Text",a,0)},enumerable:true,configurable:true});e.prototype.set=function(a,b){this._recursivelySet(a,b,["text"],["font"],[])};e.prototype.update=function(a){this._recursivelyUpdate(a)};e.prototype.getSubstring=function(c,b){return d(a.TextRange,this,"GetSubstring",0,[c,b],false,false,null,0)};e.prototype._handleResult=function(b){f.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Text))this._T=a.Text;s(this,a,["font","Font"])};e.prototype.load=function(a){return p(this,a)};e.prototype.retrieve=function(a){return q(this,a)};e.prototype._handleRetrieveResult=function(b,a){f.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};e.prototype.toJSON=function(){return o(this,{text:this._T},{font:this._F})};e.prototype.ensureUnchanged=function(a){r(this,a);return};return e}(OfficeExtension.ClientObject);a.TextRange=yi;var gb="ShapeFont",ui=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"ShapeFont"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["size","name","color","bold","italic","underline"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true,true,true,true,true,true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"bold",{"get":function(){b("bold",this._B,gb,this._isNull);return this._B},"set":function(a){this._B=a;h(this,"Bold",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"color",{"get":function(){b("color",this._C,gb,this._isNull);return this._C},"set":function(a){this._C=a;h(this,"Color",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"italic",{"get":function(){b("italic",this._I,gb,this._isNull);return this._I},"set":function(a){this._I=a;h(this,"Italic",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"name",{"get":function(){b("name",this._N,gb,this._isNull);return this._N},"set":function(a){this._N=a;h(this,"Name",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"size",{"get":function(){b("size",this._S,gb,this._isNull);return this._S},"set":function(a){this._S=a;h(this,"Size",a,0)},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"underline",{"get":function(){b("underline",this._U,gb,this._isNull);return this._U},"set":function(a){this._U=a;h(this,"Underline",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["size","name","color","bold","italic","underline"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Bold))this._B=a.Bold;if(!c(a.Color))this._C=a.Color;if(!c(a.Italic))this._I=a.Italic;if(!c(a.Name))this._N=a.Name;if(!c(a.Size))this._S=a.Size;if(!c(a.Underline))this._U=a.Underline};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,underline:this._U},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.ShapeFont=ui;var Oh="Ribbon",Ki=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"Ribbon"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["activeTab"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyUpdateable",{"get":function(){return[true]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"activeTab",{"get":function(){b("activeTab",this._A,Oh,this._isNull);return this._A},"set":function(a){this._A=a;h(this,"ActiveTab",a,0)},enumerable:true,configurable:true});a.prototype.set=function(a,b){this._recursivelySet(a,b,["activeTab"],[],[])};a.prototype.update=function(a){this._recursivelyUpdate(a)};a.prototype.executeCommand=function(b,a){j(this,"ExecuteCommand",0,[b,a],0,0)};a.prototype.showTeachingCallout=function(c,b,a){j(this,"ShowTeachingCallout",0,[c,b,a],0,0)};a.prototype._RegisterCommandExecutedEvent=function(){j(this,"_RegisterCommandExecutedEvent",0,[],0,0)};a.prototype._UnregisterCommandExecutedEvent=function(){j(this,"_UnregisterCommandExecutedEvent",0,[],0,0)};a.prototype._handleResult=function(a){d.prototype._handleResult.call(this,a);if(k(a))return;var b=a;m(this,b);if(!c(b.ActiveTab))this._A=b.ActiveTab};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};Object.defineProperty(a.prototype,"onCommandExecuted",{"get":function(){var a=this;if(!this.m_commandExecuted)this.m_commandExecuted=new OfficeExtension.GenericEventHandlers(this.context,this,"CommandExecuted",{eventType:2300,registerFunc:function(){a._RegisterCommandExecutedEvent()},unregisterFunc:function(){a._UnregisterCommandExecutedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(b){var a={type:w.ribbonCommandExecuted,buttonId:b.buttonId};return OfficeExtension.Utility._createPromiseFromResult(a)}});return this.m_commandExecuted},enumerable:true,configurable:true});a.prototype.toJSON=function(){return o(this,{activeTab:this._A},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.Ribbon=Ki;var Ai;(function(a){a.invalid="Invalid";a.category="Category";a.value="Value";a.series="Series"})(Ai=a.AxisType||(a.AxisType={}));var ai;(function(a){a.primary="Primary";a.secondary="Secondary"})(ai=a.AxisGroup||(a.AxisGroup={}));var Yg;(function(a){a.linear="Linear";a.logarithmic="Logarithmic"})(Yg=a.AxisScaleType||(a.AxisScaleType={}));var yh;(function(a){a.automatic="Automatic";a.maximum="Maximum";a.minimum="Minimum";a.custom="Custom"})(yh=a.AxisCrosses||(a.AxisCrosses={}));var nh;(function(a){a.none="None";a.cross="Cross";a.inside="Inside";a.outside="Outside"})(nh=a.AxisTickMark||(a.AxisTickMark={}));var je;(function(a){a.nextToAxis="NextToAxis";a.high="High";a.low="Low";a.none="None"})(je=a.AxisTickLabelPosition||(a.AxisTickLabelPosition={}));var lh;(function(a){a.linear="Linear";a.exponential="Exponential";a.logarithmic="Logarithmic";a.movingAverage="MovingAverage";a.polynomial="Polynomial";a.power="Power"})(lh=a.TrendlineType||(a.TrendlineType={}));var Zg;(function(a){a.invalid="Invalid";a.category="Category";a.value="Value";a.series="Series"})(Zg=a.ChartAxisType||(a.ChartAxisType={}));var Bg;(function(a){a.primary="Primary";a.secondary="Secondary"})(Bg=a.ChartAxisGroup||(a.ChartAxisGroup={}));var rf;(function(a){a.linear="Linear";a.logarithmic="Logarithmic"})(rf=a.ChartAxisScaleType||(a.ChartAxisScaleType={}));var Ef;(function(a){a.automatic="Automatic";a.maximum="Maximum";a.minimum="Minimum";a.custom="Custom"})(Ef=a.ChartAxisPosition||(a.ChartAxisPosition={}));var Ff;(function(a){a.none="None";a.cross="Cross";a.inside="Inside";a.outside="Outside"})(Ff=a.ChartAxisTickMark||(a.ChartAxisTickMark={}));var Sf;(function(a){a.done="Done";a.calculating="Calculating";a.pending="Pending"})(Sf=a.CalculationState||(a.CalculationState={}));var od;(function(a){a.nextToAxis="NextToAxis";a.high="High";a.low="Low";a.none="None"})(od=a.ChartAxisTickLabelPosition||(a.ChartAxisTickLabelPosition={}));var ze;(function(a){a.none="None";a.hundreds="Hundreds";a.thousands="Thousands";a.tenThousands="TenThousands";a.hundredThousands="HundredThousands";a.millions="Millions";a.tenMillions="TenMillions";a.hundredMillions="HundredMillions";a.billions="Billions";a.trillions="Trillions";a.custom="Custom"})(ze=a.ChartAxisDisplayUnit||(a.ChartAxisDisplayUnit={}));var Gf;(function(a){a.days="Days";a.months="Months";a.years="Years"})(Gf=a.ChartAxisTimeUnit||(a.ChartAxisTimeUnit={}));var gd;(function(a){a.inclusive="Inclusive";a.exclusive="Exclusive"})(gd=a.ChartBoxQuartileCalculation||(a.ChartBoxQuartileCalculation={}));var ke;(function(a){a.automatic="Automatic";a.textAxis="TextAxis";a.dateAxis="DateAxis"})(ke=a.ChartAxisCategoryType||(a.ChartAxisCategoryType={}));var qh;(function(a){a.category="Category";a.auto="Auto";a.binWidth="BinWidth";a.binCount="BinCount"})(qh=a.ChartBinType||(a.ChartBinType={}));var Gg;(function(a){a.none="None";a.continuous="Continuous";a.dash="Dash";a.dashDot="DashDot";a.dashDotDot="DashDotDot";a.dot="Dot";a.grey25="Grey25";a.grey50="Grey50";a.grey75="Grey75";a.automatic="Automatic";a.roundDot="RoundDot"})(Gg=a.ChartLineStyle||(a.ChartLineStyle={}));var be;(function(a){a.invalid="Invalid";a.none="None";a.center="Center";a.insideEnd="InsideEnd";a.insideBase="InsideBase";a.outsideEnd="OutsideEnd";a.left="Left";a.right="Right";a.top="Top";a.bottom="Bottom";a.bestFit="BestFit";a.callout="Callout"})(be=a.ChartDataLabelPosition||(a.ChartDataLabelPosition={}));var le;(function(a){a.both="Both";a.minusValues="MinusValues";a.plusValues="PlusValues"})(le=a.ChartErrorBarsInclude||(a.ChartErrorBarsInclude={}));var sf;(function(a){a.fixedValue="FixedValue";a.percent="Percent";a.stDev="StDev";a.stError="StError";a.custom="Custom"})(sf=a.ChartErrorBarsType||(a.ChartErrorBarsType={}));var Jf;(function(a){a.automatic="Automatic";a.dataOnly="DataOnly";a.city="City";a.county="County";a.state="State";a.country="Country";a.continent="Continent";a.world="World"})(Jf=a.ChartMapAreaLevel||(a.ChartMapAreaLevel={}));var tf;(function(a){a.twoPhaseColor="TwoPhaseColor";a.threePhaseColor="ThreePhaseColor"})(tf=a.ChartGradientStyle||(a.ChartGradientStyle={}));var ce;(function(a){a.extremeValue="ExtremeValue";a.number="Number";a.percent="Percent"})(ce=a.ChartGradientStyleType||(a.ChartGradientStyleType={}));var uf;(function(a){a.automatic="Automatic";a.top="Top";a.bottom="Bottom";a.left="Left";a.right="Right"})(uf=a.ChartTitlePosition||(a.ChartTitlePosition={}));var bf;(function(a){a.invalid="Invalid";a.top="Top";a.bottom="Bottom";a.left="Left";a.right="Right";a.corner="Corner";a.custom="Custom"})(bf=a.ChartLegendPosition||(a.ChartLegendPosition={}));var Vf;(function(a){a.invalid="Invalid";a.automatic="Automatic";a.none="None";a.square="Square";a.diamond="Diamond";a.triangle="Triangle";a.x="X";a.star="Star";a.dot="Dot";a.dash="Dash";a.circle="Circle";a.plus="Plus";a.picture="Picture"})(Vf=a.ChartMarkerStyle||(a.ChartMarkerStyle={}));var ne;(function(a){a.automatic="Automatic";a.custom="Custom"})(ne=a.ChartPlotAreaPosition||(a.ChartPlotAreaPosition={}));var me;(function(a){a.none="None";a.bestFit="BestFit";a.showAll="ShowAll"})(me=a.ChartMapLabelStrategy||(a.ChartMapLabelStrategy={}));var de;(function(a){a.automatic="Automatic";a.mercator="Mercator";a.miller="Miller";a.robinson="Robinson";a.albers="Albers"})(de=a.ChartMapProjectionType||(a.ChartMapProjectionType={}));var Fd;(function(a){a.none="None";a.banner="Banner";a.overlapping="Overlapping"})(Fd=a.ChartParentLabelStrategy||(a.ChartParentLabelStrategy={}));var bh;(function(a){a.auto="Auto";a.columns="Columns";a.rows="Rows"})(bh=a.ChartSeriesBy||(a.ChartSeriesBy={}));var Zc;(function(a){a.center="Center";a.left="Left";a.right="Right";a.justify="Justify";a.distributed="Distributed"})(Zc=a.ChartTextHorizontalAlignment||(a.ChartTextHorizontalAlignment={}));var qd;(function(a){a.center="Center";a.bottom="Bottom";a.top="Top";a.justify="Justify";a.distributed="Distributed"})(qd=a.ChartTextVerticalAlignment||(a.ChartTextVerticalAlignment={}));var Sd;(function(a){a.center="Center";a.left="Left";a.right="Right"})(Sd=a.ChartTickLabelAlignment||(a.ChartTickLabelAlignment={}));var fi;(function(a){a.invalid="Invalid";a.columnClustered="ColumnClustered";a.columnStacked="ColumnStacked";a.columnStacked100="ColumnStacked100";a._3DColumnClustered="3DColumnClustered";a._3DColumnStacked="3DColumnStacked";a._3DColumnStacked100="3DColumnStacked100";a.barClustered="BarClustered";a.barStacked="BarStacked";a.barStacked100="BarStacked100";a._3DBarClustered="3DBarClustered";a._3DBarStacked="3DBarStacked";a._3DBarStacked100="3DBarStacked100";a.lineStacked="LineStacked";a.lineStacked100="LineStacked100";a.lineMarkers="LineMarkers";a.lineMarkersStacked="LineMarkersStacked";a.lineMarkersStacked100="LineMarkersStacked100";a.pieOfPie="PieOfPie";a.pieExploded="PieExploded";a._3DPieExploded="3DPieExploded";a.barOfPie="BarOfPie";a.xyscatterSmooth="XYScatterSmooth";a.xyscatterSmoothNoMarkers="XYScatterSmoothNoMarkers";a.xyscatterLines="XYScatterLines";a.xyscatterLinesNoMarkers="XYScatterLinesNoMarkers";a.areaStacked="AreaStacked";a.areaStacked100="AreaStacked100";a._3DAreaStacked="3DAreaStacked";a._3DAreaStacked100="3DAreaStacked100";a.doughnutExploded="DoughnutExploded";a.radarMarkers="RadarMarkers";a.radarFilled="RadarFilled";a.surface="Surface";a.surfaceWireframe="SurfaceWireframe";a.surfaceTopView="SurfaceTopView";a.surfaceTopViewWireframe="SurfaceTopViewWireframe";a.bubble="Bubble";a.bubble3DEffect="Bubble3DEffect";a.stockHLC="StockHLC";a.stockOHLC="StockOHLC";a.stockVHLC="StockVHLC";a.stockVOHLC="StockVOHLC";a.cylinderColClustered="CylinderColClustered";a.cylinderColStacked="CylinderColStacked";a.cylinderColStacked100="CylinderColStacked100";a.cylinderBarClustered="CylinderBarClustered";a.cylinderBarStacked="CylinderBarStacked";a.cylinderBarStacked100="CylinderBarStacked100";a.cylinderCol="CylinderCol";a.coneColClustered="ConeColClustered";a.coneColStacked="ConeColStacked";a.coneColStacked100="ConeColStacked100";a.coneBarClustered="ConeBarClustered";a.coneBarStacked="ConeBarStacked";a.coneBarStacked100="ConeBarStacked100";a.coneCol="ConeCol";a.pyramidColClustered="PyramidColClustered";a.pyramidColStacked="PyramidColStacked";a.pyramidColStacked100="PyramidColStacked100";a.pyramidBarClustered="PyramidBarClustered";a.pyramidBarStacked="PyramidBarStacked";a.pyramidBarStacked100="PyramidBarStacked100";a.pyramidCol="PyramidCol";a._3DColumn="3DColumn";a.line="Line";a._3DLine="3DLine";a._3DPie="3DPie";a.pie="Pie";a.xyscatter="XYScatter";a._3DArea="3DArea";a.area="Area";a.doughnut="Doughnut";a.radar="Radar";a.histogram="Histogram";a.boxwhisker="Boxwhisker";a.pareto="Pareto";a.regionMap="RegionMap";a.treemap="Treemap";a.waterfall="Waterfall";a.sunburst="Sunburst";a.funnel="Funnel"})(fi=a.ChartType||(a.ChartType={}));var ef;(function(a){a.none="None";a.single="Single"})(ef=a.ChartUnderlineStyle||(a.ChartUnderlineStyle={}));var Ce;(function(a){a.notPlotted="NotPlotted";a.zero="Zero";a.interplotted="Interplotted"})(Ce=a.ChartDisplayBlanksAs||(a.ChartDisplayBlanksAs={}));var Dh;(function(a){a.rows="Rows";a.columns="Columns"})(Dh=a.ChartPlotBy||(a.ChartPlotBy={}));var Hg;(function(a){a.splitByPosition="SplitByPosition";a.splitByValue="SplitByValue";a.splitByPercentValue="SplitByPercentValue";a.splitByCustomSplit="SplitByCustomSplit"})(Hg=a.ChartSplitType||(a.ChartSplitType={}));var Tf;(function(a){a.colorfulPalette1="ColorfulPalette1";a.colorfulPalette2="ColorfulPalette2";a.colorfulPalette3="ColorfulPalette3";a.colorfulPalette4="ColorfulPalette4";a.monochromaticPalette1="MonochromaticPalette1";a.monochromaticPalette2="MonochromaticPalette2";a.monochromaticPalette3="MonochromaticPalette3";a.monochromaticPalette4="MonochromaticPalette4";a.monochromaticPalette5="MonochromaticPalette5";a.monochromaticPalette6="MonochromaticPalette6";a.monochromaticPalette7="MonochromaticPalette7";a.monochromaticPalette8="MonochromaticPalette8";a.monochromaticPalette9="MonochromaticPalette9";a.monochromaticPalette10="MonochromaticPalette10";a.monochromaticPalette11="MonochromaticPalette11";a.monochromaticPalette12="MonochromaticPalette12";a.monochromaticPalette13="MonochromaticPalette13"})(Tf=a.ChartColorScheme||(a.ChartColorScheme={}));var vf;(function(a){a.linear="Linear";a.exponential="Exponential";a.logarithmic="Logarithmic";a.movingAverage="MovingAverage";a.polynomial="Polynomial";a.power="Power"})(vf=a.ChartTrendlineType||(a.ChartTrendlineType={}));var Kh;(function(a){a.bringToFront="BringToFront";a.bringForward="BringForward";a.sendToBack="SendToBack";a.sendBackward="SendBackward"})(Kh=a.ShapeZOrder||(a.ShapeZOrder={}));var vi;(function(a){a.unsupported="Unsupported";a.image="Image";a.geometricShape="GeometricShape";a.group="Group";a.line="Line"})(vi=a.ShapeType||(a.ShapeType={}));var Vg;(function(a){a.currentSize="CurrentSize";a.originalSize="OriginalSize"})(Vg=a.ShapeScaleType||(a.ShapeScaleType={}));var Ug;(function(a){a.scaleFromTopLeft="ScaleFromTopLeft";a.scaleFromMiddle="ScaleFromMiddle";a.scaleFromBottomRight="ScaleFromBottomRight"})(Ug=a.ShapeScaleFrom||(a.ShapeScaleFrom={}));var kh;(function(a){a.noFill="NoFill";a.solid="Solid";a.gradient="Gradient";a.pattern="Pattern";a.pictureAndTexture="PictureAndTexture";a.mixed="Mixed"})(kh=a.ShapeFillType||(a.ShapeFillType={}));var Yd;(function(a){a.none="None";a.single="Single";a["double"]="Double";a.heavy="Heavy";a.dotted="Dotted";a.dottedHeavy="DottedHeavy";a.dash="Dash";a.dashHeavy="DashHeavy";a.dashLong="DashLong";a.dashLongHeavy="DashLongHeavy";a.dotDash="DotDash";a.dotDashHeavy="DotDashHeavy";a.dotDotDash="DotDotDash";a.dotDotDashHeavy="DotDotDashHeavy";a.wavy="Wavy";a.wavyHeavy="WavyHeavy";a.wavyDouble="WavyDouble"})(Yd=a.ShapeFontUnderlineStyle||(a.ShapeFontUnderlineStyle={}));var gh;(function(a){a.unknown="UNKNOWN";a.bmp="BMP";a.jpeg="JPEG";a.gif="GIF";a.png="PNG";a.svg="SVG"})(gh=a.PictureFormat||(a.PictureFormat={}));var Tg;(function(a){a.single="Single";a.thickBetweenThin="ThickBetweenThin";a.thickThin="ThickThin";a.thinThick="ThinThick";a.thinThin="ThinThin"})(Tg=a.ShapeLineStyle||(a.ShapeLineStyle={}));var Af;(function(a){a.dash="Dash";a.dashDot="DashDot";a.dashDotDot="DashDotDot";a.longDash="LongDash";a.longDashDot="LongDashDot";a.roundDot="RoundDot";a.solid="Solid";a.squareDot="SquareDot";a.longDashDotDot="LongDashDotDot";a.systemDash="SystemDash";a.systemDot="SystemDot";a.systemDashDot="SystemDashDot"})(Af=a.ShapeLineDashStyle||(a.ShapeLineDashStyle={}));var ag;(function(a){a["short"]="Short";a.medium="Medium";a["long"]="Long"})(ag=a.ArrowheadLength||(a.ArrowheadLength={}));var zg;(function(a){a.none="None";a.triangle="Triangle";a.stealth="Stealth";a.diamond="Diamond";a.oval="Oval";a.open="Open"})(zg=a.ArrowheadStyle||(a.ArrowheadStyle={}));var Ag;(function(a){a.narrow="Narrow";a.medium="Medium";a.wide="Wide"})(Ag=a.ArrowheadWidth||(a.ArrowheadWidth={}));var zh;(function(a){a.range="Range";a.table="Table";a.text="Text"})(zh=a.BindingType||(a.BindingType={}));var Ah;(function(a){a.edgeTop="EdgeTop";a.edgeBottom="EdgeBottom";a.edgeLeft="EdgeLeft";a.edgeRight="EdgeRight";a.insideVertical="InsideVertical";a.insideHorizontal="InsideHorizontal";a.diagonalDown="DiagonalDown";a.diagonalUp="DiagonalUp"})(Ah=a.BorderIndex||(a.BorderIndex={}));var bg;(function(a){a.none="None";a.continuous="Continuous";a.dash="Dash";a.dashDot="DashDot";a.dashDotDot="DashDotDot";a.dot="Dot";a["double"]="Double";a.slantDashDot="SlantDashDot"})(bg=a.BorderLineStyle||(a.BorderLineStyle={}));var oh;(function(a){a.hairline="Hairline";a.thin="Thin";a.medium="Medium";a.thick="Thick"})(oh=a.BorderWeight||(a.BorderWeight={}));var cg;(function(a){a.automatic="Automatic";a.automaticExceptTables="AutomaticExceptTables";a.manual="Manual"})(cg=a.CalculationMode||(a.CalculationMode={}));var dg;(function(a){a.recalculate="Recalculate";a.full="Full";a.fullRebuild="FullRebuild"})(dg=a.CalculationType||(a.CalculationType={}));var rh;(function(a){a.all="All";a.formats="Formats";a.contents="Contents";a.hyperlinks="Hyperlinks";a.removeHyperlinks="RemoveHyperlinks"})(rh=a.ClearApplyTo||(a.ClearApplyTo={}));var bd;(function(a){a.automatic="Automatic";a.none="None";a.cellMidPoint="CellMidPoint"})(bd=a.ConditionalDataBarAxisFormat||(a.ConditionalDataBarAxisFormat={}));var id;(function(a){a.context="Context";a.leftToRight="LeftToRight";a.rightToLeft="RightToLeft"})(id=a.ConditionalDataBarDirection||(a.ConditionalDataBarDirection={}));var rd;(function(a){a.top="Top";a.bottom="Bottom"})(rd=a.ConditionalFormatDirection||(a.ConditionalFormatDirection={}));var re;(function(a){a.custom="Custom";a.dataBar="DataBar";a.colorScale="ColorScale";a.iconSet="IconSet";a.topBottom="TopBottom";a.presetCriteria="PresetCriteria";a.containsText="ContainsText";a.cellValue="CellValue"})(re=a.ConditionalFormatType||(a.ConditionalFormatType={}));var xd;(function(a){a.invalid="Invalid";a.automatic="Automatic";a.lowestValue="LowestValue";a.highestValue="HighestValue";a.number="Number";a.percent="Percent";a.formula="Formula";a.percentile="Percentile"})(xd=a.ConditionalFormatRuleType||(a.ConditionalFormatRuleType={}));var Tc;(function(a){a.invalid="Invalid";a.number="Number";a.percent="Percent";a.formula="Formula";a.percentile="Percentile"})(Tc=a.ConditionalFormatIconRuleType||(a.ConditionalFormatIconRuleType={}));var Ac;(function(a){a.invalid="Invalid";a.lowestValue="LowestValue";a.highestValue="HighestValue";a.number="Number";a.percent="Percent";a.formula="Formula";a.percentile="Percentile"})(Ac=a.ConditionalFormatColorCriterionType||(a.ConditionalFormatColorCriterionType={}));var Ec;(function(a){a.invalid="Invalid";a.topItems="TopItems";a.topPercent="TopPercent";a.bottomItems="BottomItems";a.bottomPercent="BottomPercent"})(Ec=a.ConditionalTopBottomCriterionType||(a.ConditionalTopBottomCriterionType={}));var Jc;(function(a){a.invalid="Invalid";a.blanks="Blanks";a.nonBlanks="NonBlanks";a.errors="Errors";a.nonErrors="NonErrors";a.yesterday="Yesterday";a.today="Today";a.tomorrow="Tomorrow";a.lastSevenDays="LastSevenDays";a.lastWeek="LastWeek";a.thisWeek="ThisWeek";a.nextWeek="NextWeek";a.lastMonth="LastMonth";a.thisMonth="ThisMonth";a.nextMonth="NextMonth";a.aboveAverage="AboveAverage";a.belowAverage="BelowAverage";a.equalOrAboveAverage="EqualOrAboveAverage";a.equalOrBelowAverage="EqualOrBelowAverage";a.oneStdDevAboveAverage="OneStdDevAboveAverage";a.oneStdDevBelowAverage="OneStdDevBelowAverage";a.twoStdDevAboveAverage="TwoStdDevAboveAverage";a.twoStdDevBelowAverage="TwoStdDevBelowAverage";a.threeStdDevAboveAverage="ThreeStdDevAboveAverage";a.threeStdDevBelowAverage="ThreeStdDevBelowAverage";a.uniqueValues="UniqueValues";a.duplicateValues="DuplicateValues"})(Jc=a.ConditionalFormatPresetCriterion||(a.ConditionalFormatPresetCriterion={}));var Td;(function(a){a.invalid="Invalid";a.contains="Contains";a.notContains="NotContains";a.beginsWith="BeginsWith";a.endsWith="EndsWith"})(Td=a.ConditionalTextOperator||(a.ConditionalTextOperator={}));var ad;(function(a){a.invalid="Invalid";a.between="Between";a.notBetween="NotBetween";a.equalTo="EqualTo";a.notEqualTo="NotEqualTo";a.greaterThan="GreaterThan";a.lessThan="LessThan";a.greaterThanOrEqual="GreaterThanOrEqual";a.lessThanOrEqual="LessThanOrEqual"})(ad=a.ConditionalCellValueOperator||(a.ConditionalCellValueOperator={}));var Kc;(function(a){a.invalid="Invalid";a.greaterThan="GreaterThan";a.greaterThanOrEqual="GreaterThanOrEqual"})(Kc=a.ConditionalIconCriterionOperator||(a.ConditionalIconCriterionOperator={}));var kd;(function(a){a.edgeTop="EdgeTop";a.edgeBottom="EdgeBottom";a.edgeLeft="EdgeLeft";a.edgeRight="EdgeRight"})(kd=a.ConditionalRangeBorderIndex||(a.ConditionalRangeBorderIndex={}));var Nc;(function(a){a.none="None";a.continuous="Continuous";a.dash="Dash";a.dashDot="DashDot";a.dashDotDot="DashDotDot";a.dot="Dot"})(Nc=a.ConditionalRangeBorderLineStyle||(a.ConditionalRangeBorderLineStyle={}));var Cc;(function(a){a.none="None";a.single="Single";a["double"]="Double"})(Cc=a.ConditionalRangeFontUnderlineStyle||(a.ConditionalRangeFontUnderlineStyle={}));var xf;(function(a){a.none="None";a.wholeNumber="WholeNumber";a.decimal="Decimal";a.list="List";a.date="Date";a.time="Time";a.textLength="TextLength";a.custom="Custom";a.inconsistent="Inconsistent";a.mixedCriteria="MixedCriteria"})(xf=a.DataValidationType||(a.DataValidationType={}));var ge;(function(a){a.between="Between";a.notBetween="NotBetween";a.equalTo="EqualTo";a.notEqualTo="NotEqualTo";a.greaterThan="GreaterThan";a.lessThan="LessThan";a.greaterThanOrEqualTo="GreaterThanOrEqualTo";a.lessThanOrEqualTo="LessThanOrEqualTo"})(ge=a.DataValidationOperator||(a.DataValidationOperator={}));var Kd;(function(a){a.stop="Stop";a.warning="Warning";a.information="Information"})(Kd=a.DataValidationAlertStyle||(a.DataValidationAlertStyle={}));var Ie;(function(a){a.up="Up";a.left="Left"})(Ie=a.DeleteShiftDirection||(a.DeleteShiftDirection={}));var se;(function(a){a.unknown="Unknown";a.aboveAverage="AboveAverage";a.allDatesInPeriodApril="AllDatesInPeriodApril";a.allDatesInPeriodAugust="AllDatesInPeriodAugust";a.allDatesInPeriodDecember="AllDatesInPeriodDecember";a.allDatesInPeriodFebruray="AllDatesInPeriodFebruray";a.allDatesInPeriodJanuary="AllDatesInPeriodJanuary";a.allDatesInPeriodJuly="AllDatesInPeriodJuly";a.allDatesInPeriodJune="AllDatesInPeriodJune";a.allDatesInPeriodMarch="AllDatesInPeriodMarch";a.allDatesInPeriodMay="AllDatesInPeriodMay";a.allDatesInPeriodNovember="AllDatesInPeriodNovember";a.allDatesInPeriodOctober="AllDatesInPeriodOctober";a.allDatesInPeriodQuarter1="AllDatesInPeriodQuarter1";a.allDatesInPeriodQuarter2="AllDatesInPeriodQuarter2";a.allDatesInPeriodQuarter3="AllDatesInPeriodQuarter3";a.allDatesInPeriodQuarter4="AllDatesInPeriodQuarter4";a.allDatesInPeriodSeptember="AllDatesInPeriodSeptember";a.belowAverage="BelowAverage";a.lastMonth="LastMonth";a.lastQuarter="LastQuarter";a.lastWeek="LastWeek";a.lastYear="LastYear";a.nextMonth="NextMonth";a.nextQuarter="NextQuarter";a.nextWeek="NextWeek";a.nextYear="NextYear";a.thisMonth="ThisMonth";a.thisQuarter="ThisQuarter";a.thisWeek="ThisWeek";a.thisYear="ThisYear";a.today="Today";a.tomorrow="Tomorrow";a.yearToDate="YearToDate";a.yesterday="Yesterday"})(se=a.DynamicFilterCriteria||(a.DynamicFilterCriteria={}));var yd;(function(a){a.year="Year";a.month="Month";a.day="Day";a.hour="Hour";a.minute="Minute";a.second="Second"})(yd=a.FilterDatetimeSpecificity||(a.FilterDatetimeSpecificity={}));var Bi;(function(a){a.bottomItems="BottomItems";a.bottomPercent="BottomPercent";a.cellColor="CellColor";a.dynamic="Dynamic";a.fontColor="FontColor";a.values="Values";a.topItems="TopItems";a.topPercent="TopPercent";a.icon="Icon";a.custom="Custom"})(Bi=a.FilterOn||(a.FilterOn={}));var Ng;(function(a){a.and="And";a.or="Or"})(Ng=a.FilterOperator||(a.FilterOperator={}));var ff;(function(a){a.general="General";a.left="Left";a.center="Center";a.right="Right";a.fill="Fill";a.justify="Justify";a.centerAcrossSelection="CenterAcrossSelection";a.distributed="Distributed"})(ff=a.HorizontalAlignment||(a.HorizontalAlignment={}));var Gi;(function(a){a.invalid="Invalid";a.threeArrows="ThreeArrows";a.threeArrowsGray="ThreeArrowsGray";a.threeFlags="ThreeFlags";a.threeTrafficLights1="ThreeTrafficLights1";a.threeTrafficLights2="ThreeTrafficLights2";a.threeSigns="ThreeSigns";a.threeSymbols="ThreeSymbols";a.threeSymbols2="ThreeSymbols2";a.fourArrows="FourArrows";a.fourArrowsGray="FourArrowsGray";a.fourRedToBlack="FourRedToBlack";a.fourRating="FourRating";a.fourTrafficLights="FourTrafficLights";a.fiveArrows="FiveArrows";a.fiveArrowsGray="FiveArrowsGray";a.fiveRating="FiveRating";a.fiveQuarters="FiveQuarters";a.threeStars="ThreeStars";a.threeTriangles="ThreeTriangles";a.fiveBoxes="FiveBoxes";a.linkedEntityFinanceIcon="LinkedEntityFinanceIcon";a.linkedEntityMapIcon="LinkedEntityMapIcon"})(Gi=a.IconSet||(a.IconSet={}));var Zf;(function(a){a.fit="Fit";a.fitAndCenter="FitAndCenter";a.fill="Fill"})(Zf=a.ImageFittingMode||(a.ImageFittingMode={}));var Ne;(function(a){a.down="Down";a.right="Right"})(Ne=a.InsertShiftDirection||(a.InsertShiftDirection={}));var Pg;(function(a){a.worksheet="Worksheet";a.workbook="Workbook"})(Pg=a.NamedItemScope||(a.NamedItemScope={}));var fh;(function(a){a.string="String";a.integer="Integer";a["double"]="Double";a["boolean"]="Boolean";a.range="Range";a.error="Error";a.array="Array"})(fh=a.NamedItemType||(a.NamedItemType={}));var lf;(function(a){a.none="None";a.single="Single";a["double"]="Double";a.singleAccountant="SingleAccountant";a.doubleAccountant="DoubleAccountant"})(lf=a.RangeUnderlineStyle||(a.RangeUnderlineStyle={}));var sg;(function(a){a.visible="Visible";a.hidden="Hidden";a.veryHidden="VeryHidden"})(sg=a.SheetVisibility||(a.SheetVisibility={}));var Sg;(function(a){a.unknown="Unknown";a.empty="Empty";a.string="String";a.integer="Integer";a["double"]="Double";a["boolean"]="Boolean";a.error="Error";a.richValue="RichValue"})(Sg=a.RangeValueType||(a.RangeValueType={}));var pg;(function(a){a.forward="Forward";a.backwards="Backwards"})(pg=a.SearchDirection||(a.SearchDirection={}));var tg;(function(a){a.rows="Rows";a.columns="Columns"})(tg=a.SortOrientation||(a.SortOrientation={}));var Mi;(function(a){a.value="Value";a.cellColor="CellColor";a.fontColor="FontColor";a.icon="Icon"})(Mi=a.SortOn||(a.SortOn={}));var Wg;(function(a){a.normal="Normal";a.textAsNumber="TextAsNumber"})(Wg=a.SortDataOption||(a.SortDataOption={}));var Zh;(function(a){a.pinYin="PinYin";a.strokeCount="StrokeCount"})(Zh=a.SortMethod||(a.SortMethod={}));var Rf;(function(a){a.top="Top";a.center="Center";a.bottom="Bottom";a.justify="Justify";a.distributed="Distributed"})(Rf=a.VerticalAlignment||(a.VerticalAlignment={}));var Ke;(function(a){a.number="Number";a["boolean"]="Boolean";a.date="Date";a.string="String";a["float"]="Float"})(Ke=a.DocumentPropertyType||(a.DocumentPropertyType={}));var Fh;(function(a){a.local="Local";a.remote="Remote"})(Fh=a.EventSource||(a.EventSource={}));var Lg;(function(a){a.unknown="Unknown";a.rangeEdited="RangeEdited";a.rowInserted="RowInserted";a.rowDeleted="RowDeleted";a.columnInserted="ColumnInserted";a.columnDeleted="ColumnDeleted";a.cellInserted="CellInserted";a.cellDeleted="CellDeleted"})(Lg=a.DataChangeType||(a.DataChangeType={}));var w;(function(a){a.worksheetChanged="WorksheetChanged";a.worksheetSelectionChanged="WorksheetSelectionChanged";a.worksheetAdded="WorksheetAdded";a.worksheetActivated="WorksheetActivated";a.worksheetDeactivated="WorksheetDeactivated";a.tableChanged="TableChanged";a.tableSelectionChanged="TableSelectionChanged";a.worksheetDeleted="WorksheetDeleted";a.chartAdded="ChartAdded";a.chartActivated="ChartActivated";a.chartDeactivated="ChartDeactivated";a.chartDeleted="ChartDeleted";a.worksheetCalculated="WorksheetCalculated";a.visualSelectionChanged="VisualSelectionChanged";a.agaveVisualUpdate="AgaveVisualUpdate";a.tableAdded="TableAdded";a.tableDeleted="TableDeleted";a.tableFiltered="TableFiltered";a.worksheetFiltered="WorksheetFiltered";a.shapeActivated="ShapeActivated";a.shapeDeactivated="ShapeDeactivated";a.visualChange="VisualChange";a.workbookAutoSaveSettingChanged="WorkbookAutoSaveSettingChanged";a.worksheetFormatChanged="WorksheetFormatChanged";a.wacoperationEvent="WACOperationEvent";a.ribbonCommandExecuted="RibbonCommandExecuted";a.worksheetRowSorted="WorksheetRowSorted";a.worksheetColumnSorted="WorksheetColumnSorted";a.worksheetSingleClicked="WorksheetSingleClicked";a.worksheetRowHiddenChanged="WorksheetRowHiddenChanged"})(w=a.EventType||(a.EventType={}));var Je;(function(a){a.title="Title";a.subject="Subject";a.author="Author";a.keywords="Keywords";a.comments="Comments";a.template="Template";a.lastAuth="LastAuth";a.revision="Revision";a.appName="AppName";a.lastPrint="LastPrint";a.creation="Creation";a.lastSave="LastSave";a.category="Category";a.format="Format";a.manager="Manager";a.company="Company"})(Je=a.DocumentPropertyItem||(a.DocumentPropertyItem={}));var Ue;(function(a){a.atTop="AtTop";a.atBottom="AtBottom";a.off="Off"})(Ue=a.SubtotalLocationType||(a.SubtotalLocationType={}));var mg;(function(a){a.compact="Compact";a.tabular="Tabular";a.outline="Outline"})(mg=a.PivotLayoutType||(a.PivotLayoutType={}));var Wd;(function(a){a.normal="Normal";a.unlocked="Unlocked";a.none="None"})(Wd=a.ProtectionSelectionMode||(a.ProtectionSelectionMode={}));var lg;(function(a){a.portrait="Portrait";a.landscape="Landscape"})(lg=a.PageOrientation||(a.PageOrientation={}));var ki;(function(a){a.letter="Letter";a.letterSmall="LetterSmall";a.tabloid="Tabloid";a.ledger="Ledger";a.legal="Legal";a.statement="Statement";a.executive="Executive";a.a3="A3";a.a4="A4";a.a4Small="A4Small";a.a5="A5";a.b4="B4";a.b5="B5";a.folio="Folio";a.quatro="Quatro";a.paper10x14="Paper10x14";a.paper11x17="Paper11x17";a.note="Note";a.envelope9="Envelope9";a.envelope10="Envelope10";a.envelope11="Envelope11";a.envelope12="Envelope12";a.envelope14="Envelope14";a.csheet="Csheet";a.dsheet="Dsheet";a.esheet="Esheet";a.envelopeDL="EnvelopeDL";a.envelopeC5="EnvelopeC5";a.envelopeC3="EnvelopeC3";a.envelopeC4="EnvelopeC4";a.envelopeC6="EnvelopeC6";a.envelopeC65="EnvelopeC65";a.envelopeB4="EnvelopeB4";a.envelopeB5="EnvelopeB5";a.envelopeB6="EnvelopeB6";a.envelopeItaly="EnvelopeItaly";a.envelopeMonarch="EnvelopeMonarch";a.envelopePersonal="EnvelopePersonal";a.fanfoldUS="FanfoldUS";a.fanfoldStdGerman="FanfoldStdGerman";a.fanfoldLegalGerman="FanfoldLegalGerman"})(ki=a.PaperType||(a.PaperType={}));var uh;(function(a){a.context="Context";a.leftToRight="LeftToRight";a.rightToLeft="RightToLeft"})(uh=a.ReadingOrder||(a.ReadingOrder={}));var ph;(function(a){a.normal="Normal";a.comma="Comma";a.currency="Currency";a.percent="Percent";a.wholeComma="WholeComma";a.wholeDollar="WholeDollar";a.hlink="Hlink";a.hlinkTrav="HlinkTrav";a.note="Note";a.warningText="WarningText";a.emphasis1="Emphasis1";a.emphasis2="Emphasis2";a.emphasis3="Emphasis3";a.sheetTitle="SheetTitle";a.heading1="Heading1";a.heading2="Heading2";a.heading3="Heading3";a.heading4="Heading4";a.input="Input";a.output="Output";a.calculation="Calculation";a.checkCell="CheckCell";a.linkedCell="LinkedCell";a.total="Total";a.good="Good";a.bad="Bad";a.neutral="Neutral";a.accent1="Accent1";a.accent1_20="Accent1_20";a.accent1_40="Accent1_40";a.accent1_60="Accent1_60";a.accent2="Accent2";a.accent2_20="Accent2_20";a.accent2_40="Accent2_40";a.accent2_60="Accent2_60";a.accent3="Accent3";a.accent3_20="Accent3_20";a.accent3_40="Accent3_40";a.accent3_60="Accent3_60";a.accent4="Accent4";a.accent4_20="Accent4_20";a.accent4_40="Accent4_40";a.accent4_60="Accent4_60";a.accent5="Accent5";a.accent5_20="Accent5_20";a.accent5_40="Accent5_40";a.accent5_60="Accent5_60";a.accent6="Accent6";a.accent6_20="Accent6_20";a.accent6_40="Accent6_40";a.accent6_60="Accent6_60";a.explanatoryText="ExplanatoryText"})(ph=a.BuiltInStyle||(a.BuiltInStyle={}));var Rg;(function(a){a.asDisplayed="AsDisplayed";a.blank="Blank";a.dash="Dash";a.notAvailable="NotAvailable"})(Rg=a.PrintErrorType||(a.PrintErrorType={}));var ye;(function(a){a.none="None";a.before="Before";a.after="After";a.beginning="Beginning";a.end="End"})(ye=a.WorksheetPositionType||(a.WorksheetPositionType={}));var hh;(function(a){a.noComments="NoComments";a.endSheet="EndSheet";a.inPlace="InPlace"})(hh=a.PrintComments||(a.PrintComments={}));var Wh;(function(a){a.downThenOver="DownThenOver";a.overThenDown="OverThenDown"})(Wh=a.PrintOrder||(a.PrintOrder={}));var ng;(function(a){a.points="Points";a.inches="Inches";a.centimeters="Centimeters"})(ng=a.PrintMarginUnit||(a.PrintMarginUnit={}));var Of;(function(a){a["default"]="Default";a.firstAndDefault="FirstAndDefault";a.oddAndEven="OddAndEven";a.firstOddAndEven="FirstOddAndEven"})(Of=a.HeaderFooterState||(a.HeaderFooterState={}));var mh;(function(a){a.fillDefault="FillDefault";a.fillCopy="FillCopy";a.fillSeries="FillSeries";a.fillFormats="FillFormats";a.fillValues="FillValues";a.fillDays="FillDays";a.fillWeekdays="FillWeekdays";a.fillMonths="FillMonths";a.fillYears="FillYears";a.linearTrend="LinearTrend";a.growthTrend="GrowthTrend";a.flashFill="FlashFill"})(mh=a.AutoFillType||(a.AutoFillType={}));var ih;(function(a){a.all="All";a.formulas="Formulas";a.values="Values";a.formats="Formats"})(ih=a.RangeCopyType||(a.RangeCopyType={}));var gf;(function(a){a.none="None";a.validLinkedData="ValidLinkedData";a.disambiguationNeeded="DisambiguationNeeded";a.brokenLinkedData="BrokenLinkedData";a.fetchingData="FetchingData"})(gf=a.LinkedDataTypeState||(a.LinkedDataTypeState={}));var zf;(function(a){a.lineInverse="LineInverse";a.triangle="Triangle";a.rightTriangle="RightTriangle";a.rectangle="Rectangle";a.diamond="Diamond";a.parallelogram="Parallelogram";a.trapezoid="Trapezoid";a.nonIsoscelesTrapezoid="NonIsoscelesTrapezoid";a.pentagon="Pentagon";a.hexagon="Hexagon";a.heptagon="Heptagon";a.octagon="Octagon";a.decagon="Decagon";a.dodecagon="Dodecagon";a.star4="Star4";a.star5="Star5";a.star6="Star6";a.star7="Star7";a.star8="Star8";a.star10="Star10";a.star12="Star12";a.star16="Star16";a.star24="Star24";a.star32="Star32";a.roundRectangle="RoundRectangle";a.round1Rectangle="Round1Rectangle";a.round2SameRectangle="Round2SameRectangle";a.round2DiagonalRectangle="Round2DiagonalRectangle";a.snipRoundRectangle="SnipRoundRectangle";a.snip1Rectangle="Snip1Rectangle";a.snip2SameRectangle="Snip2SameRectangle";a.snip2DiagonalRectangle="Snip2DiagonalRectangle";a.plaque="Plaque";a.ellipse="Ellipse";a.teardrop="Teardrop";a.homePlate="HomePlate";a.chevron="Chevron";a.pieWedge="PieWedge";a.pie="Pie";a.blockArc="BlockArc";a.donut="Donut";a.noSmoking="NoSmoking";a.rightArrow="RightArrow";a.leftArrow="LeftArrow";a.upArrow="UpArrow";a.downArrow="DownArrow";a.stripedRightArrow="StripedRightArrow";a.notchedRightArrow="NotchedRightArrow";a.bentUpArrow="BentUpArrow";a.leftRightArrow="LeftRightArrow";a.upDownArrow="UpDownArrow";a.leftUpArrow="LeftUpArrow";a.leftRightUpArrow="LeftRightUpArrow";a.quadArrow="QuadArrow";a.leftArrowCallout="LeftArrowCallout";a.rightArrowCallout="RightArrowCallout";a.upArrowCallout="UpArrowCallout";a.downArrowCallout="DownArrowCallout";a.leftRightArrowCallout="LeftRightArrowCallout";a.upDownArrowCallout="UpDownArrowCallout";a.quadArrowCallout="QuadArrowCallout";a.bentArrow="BentArrow";a.uturnArrow="UturnArrow";a.circularArrow="CircularArrow";a.leftCircularArrow="LeftCircularArrow";a.leftRightCircularArrow="LeftRightCircularArrow";a.curvedRightArrow="CurvedRightArrow";a.curvedLeftArrow="CurvedLeftArrow";a.curvedUpArrow="CurvedUpArrow";a.curvedDownArrow="CurvedDownArrow";a.swooshArrow="SwooshArrow";a.cube="Cube";a.can="Can";a.lightningBolt="LightningBolt";a.heart="Heart";a.sun="Sun";a.moon="Moon";a.smileyFace="SmileyFace";a.irregularSeal1="IrregularSeal1";a.irregularSeal2="IrregularSeal2";a.foldedCorner="FoldedCorner";a.bevel="Bevel";a.frame="Frame";a.halfFrame="HalfFrame";a.corner="Corner";a.diagonalStripe="DiagonalStripe";a.chord="Chord";a.arc="Arc";a.leftBracket="LeftBracket";a.rightBracket="RightBracket";a.leftBrace="LeftBrace";a.rightBrace="RightBrace";a.bracketPair="BracketPair";a.bracePair="BracePair";a.callout1="Callout1";a.callout2="Callout2";a.callout3="Callout3";a.accentCallout1="AccentCallout1";a.accentCallout2="AccentCallout2";a.accentCallout3="AccentCallout3";a.borderCallout1="BorderCallout1";a.borderCallout2="BorderCallout2";a.borderCallout3="BorderCallout3";a.accentBorderCallout1="AccentBorderCallout1";a.accentBorderCallout2="AccentBorderCallout2";a.accentBorderCallout3="AccentBorderCallout3";a.wedgeRectCallout="WedgeRectCallout";a.wedgeRRectCallout="WedgeRRectCallout";a.wedgeEllipseCallout="WedgeEllipseCallout";a.cloudCallout="CloudCallout";a.cloud="Cloud";a.ribbon="Ribbon";a.ribbon2="Ribbon2";a.ellipseRibbon="EllipseRibbon";a.ellipseRibbon2="EllipseRibbon2";a.leftRightRibbon="LeftRightRibbon";a.verticalScroll="VerticalScroll";a.horizontalScroll="HorizontalScroll";a.wave="Wave";a.doubleWave="DoubleWave";a.plus="Plus";a.flowChartProcess="FlowChartProcess";a.flowChartDecision="FlowChartDecision";a.flowChartInputOutput="FlowChartInputOutput";a.flowChartPredefinedProcess="FlowChartPredefinedProcess";a.flowChartInternalStorage="FlowChartInternalStorage";a.flowChartDocument="FlowChartDocument";a.flowChartMultidocument="FlowChartMultidocument";a.flowChartTerminator="FlowChartTerminator";a.flowChartPreparation="FlowChartPreparation";a.flowChartManualInput="FlowChartManualInput";a.flowChartManualOperation="FlowChartManualOperation";a.flowChartConnector="FlowChartConnector";a.flowChartPunchedCard="FlowChartPunchedCard";a.flowChartPunchedTape="FlowChartPunchedTape";a.flowChartSummingJunction="FlowChartSummingJunction";a.flowChartOr="FlowChartOr";a.flowChartCollate="FlowChartCollate";a.flowChartSort="FlowChartSort";a.flowChartExtract="FlowChartExtract";a.flowChartMerge="FlowChartMerge";a.flowChartOfflineStorage="FlowChartOfflineStorage";a.flowChartOnlineStorage="FlowChartOnlineStorage";a.flowChartMagneticTape="FlowChartMagneticTape";a.flowChartMagneticDisk="FlowChartMagneticDisk";a.flowChartMagneticDrum="FlowChartMagneticDrum";a.flowChartDisplay="FlowChartDisplay";a.flowChartDelay="FlowChartDelay";a.flowChartAlternateProcess="FlowChartAlternateProcess";a.flowChartOffpageConnector="FlowChartOffpageConnector";a.actionButtonBlank="ActionButtonBlank";a.actionButtonHome="ActionButtonHome";a.actionButtonHelp="ActionButtonHelp";a.actionButtonInformation="ActionButtonInformation";a.actionButtonForwardNext="ActionButtonForwardNext";a.actionButtonBackPrevious="ActionButtonBackPrevious";a.actionButtonEnd="ActionButtonEnd";a.actionButtonBeginning="ActionButtonBeginning";a.actionButtonReturn="ActionButtonReturn";a.actionButtonDocument="ActionButtonDocument";a.actionButtonSound="ActionButtonSound";a.actionButtonMovie="ActionButtonMovie";a.gear6="Gear6";a.gear9="Gear9";a.funnel="Funnel";a.mathPlus="MathPlus";a.mathMinus="MathMinus";a.mathMultiply="MathMultiply";a.mathDivide="MathDivide";a.mathEqual="MathEqual";a.mathNotEqual="MathNotEqual";a.cornerTabs="CornerTabs";a.squareTabs="SquareTabs";a.plaqueTabs="PlaqueTabs";a.chartX="ChartX";a.chartStar="ChartStar";a.chartPlus="ChartPlus"})(zf=a.GeometricShapeType||(a.GeometricShapeType={}));var dh;(function(a){a.straight="Straight";a.elbow="Elbow";a.curve="Curve"})(dh=a.ConnectorType||(a.ConnectorType={}));var ug;(function(a){a.conditionalFormats="ConditionalFormats";a.dataValidations="DataValidations";a.blanks="Blanks";a.constants="Constants";a.formulas="Formulas";a.sameConditionalFormat="SameConditionalFormat";a.sameDataValidation="SameDataValidation";a.visible="Visible"})(ug=a.SpecialCellType||(a.SpecialCellType={}));var Te;(function(a){a.all="All";a.errors="Errors";a.errorsLogical="ErrorsLogical";a.errorsNumbers="ErrorsNumbers";a.errorsText="ErrorsText";a.errorsLogicalNumber="ErrorsLogicalNumber";a.errorsLogicalText="ErrorsLogicalText";a.errorsNumberText="ErrorsNumberText";a.logical="Logical";a.logicalNumbers="LogicalNumbers";a.logicalText="LogicalText";a.logicalNumbersText="LogicalNumbersText";a.numbers="Numbers";a.numbersText="NumbersText";a.text="Text"})(Te=a.SpecialCellValueType||(a.SpecialCellValueType={}));var ni;(function(a){a.twoCell="TwoCell";a.oneCell="OneCell";a.absolute="Absolute"})(ni=a.Placement||(a.Placement={}));var Gh;(function(a){a.none="None";a.solid="Solid";a.gray50="Gray50";a.gray75="Gray75";a.gray25="Gray25";a.horizontal="Horizontal";a.vertical="Vertical";a.down="Down";a.up="Up";a.checker="Checker";a.semiGray75="SemiGray75";a.lightHorizontal="LightHorizontal";a.lightVertical="LightVertical";a.lightDown="LightDown";a.lightUp="LightUp";a.grid="Grid";a.crissCross="CrissCross";a.gray16="Gray16";a.gray8="Gray8";a.linearGradient="LinearGradient";a.rectangularGradient="RectangularGradient"})(Gh=a.FillPattern||(a.FillPattern={}));var dd;(function(a){a.left="Left";a.center="Center";a.right="Right";a.justify="Justify";a.justifyLow="JustifyLow";a.distributed="Distributed";a.thaiDistributed="ThaiDistributed"})(dd=a.ShapeTextHorizontalAlignment||(a.ShapeTextHorizontalAlignment={}));var sd;(function(a){a.top="Top";a.middle="Middle";a.bottom="Bottom";a.justified="Justified";a.distributed="Distributed"})(sd=a.ShapeTextVerticalAlignment||(a.ShapeTextVerticalAlignment={}));var zd;(function(a){a.overflow="Overflow";a.ellipsis="Ellipsis";a.clip="Clip"})(zd=a.ShapeTextVerticalOverflow||(a.ShapeTextVerticalOverflow={}));var ld;(function(a){a.overflow="Overflow";a.clip="Clip"})(ld=a.ShapeTextHorizontalOverflow||(a.ShapeTextHorizontalOverflow={}));var ue;(function(a){a.leftToRight="LeftToRight";a.rightToLeft="RightToLeft"})(ue=a.ShapeTextReadingOrder||(a.ShapeTextReadingOrder={}));var Se;(function(a){a.horizontal="Horizontal";a.vertical="Vertical";a.vertical270="Vertical270";a.wordArtVertical="WordArtVertical";a.eastAsianVertical="EastAsianVertical";a.mongolianVertical="MongolianVertical";a.wordArtVerticalRTL="WordArtVerticalRTL"})(Se=a.ShapeTextOrientation||(a.ShapeTextOrientation={}));var jh;(function(a){a.autoSizeNone="AutoSizeNone";a.autoSizeTextToFitShape="AutoSizeTextToFitShape";a.autoSizeShapeToFitText="AutoSizeShapeToFitText";a.autoSizeMixed="AutoSizeMixed"})(jh=a.ShapeAutoSize||(a.ShapeAutoSize={}));var ch;(function(a){a.save="Save";a.skipSave="SkipSave"})(ch=a.CloseBehavior||(a.CloseBehavior={}));var vh;(function(a){a.save="Save";a.prompt="Prompt"})(vh=a.SaveBehavior||(a.SaveBehavior={}));var si;(function(a){a.others="Others";a.home="Home";a.insert="Insert";a.draw="Draw";a.pageLayout="PageLayout";a.formulas="Formulas";a.data="Data";a.review="Review";a.view="View";a.developer="Developer";a.addIns="AddIns";a.help="Help"})(si=a.RibbonTab||(a.RibbonTab={}));var lc="FunctionResult",i=function(d){__extends(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"FunctionResult<T>"},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"_scalarPropertyNames",{"get":function(){return["error","value"]},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"error",{"get":function(){b("error",this._E,lc,this._isNull);return this._E},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"value",{"get":function(){b("value",this._V,lc,this._isNull);return this._V},enumerable:true,configurable:true});a.prototype._handleResult=function(b){d.prototype._handleResult.call(this,b);if(k(b))return;var a=b;m(this,a);if(!c(a.Error))this._E=a.Error;if(!c(a.Value))this._V=a.Value};a.prototype.load=function(a){return p(this,a)};a.prototype.retrieve=function(a){return q(this,a)};a.prototype._handleRetrieveResult=function(b,a){d.prototype._handleRetrieveResult.call(this,b,a);n(this,b,a)};a.prototype.toJSON=function(){return o(this,{error:this._E,value:this._V},{})};a.prototype.ensureUnchanged=function(a){r(this,a);return};return a}(OfficeExtension.ClientObject);a.FunctionResult=i;var oj="Functions",gi=function(b){__extends(a,b);function a(){return b!==null&&b.apply(this,arguments)||this}Object.defineProperty(a.prototype,"_className",{"get":function(){return"Functions"},enumerable:true,configurable:true});a.prototype.abs=function(a){return d(i,this,"Abs",0,[a],false,true,null,0)};a.prototype.accrInt=function(g,a,c,h,j,e,f,b){return d(i,this,"AccrInt",0,[g,a,c,h,j,e,f,b],false,true,null,0)};a.prototype.accrIntM=function(c,a,e,f,b){return d(i,this,"AccrIntM",0,[c,a,e,f,b],false,true,null,0)};a.prototype.acos=function(a){return d(i,this,"Acos",0,[a],false,true,null,0)};a.prototype.acosh=function(a){return d(i,this,"Acosh",0,[a],false,true,null,0)};a.prototype.acot=function(a){return d(i,this,"Acot",0,[a],false,true,null,0)};a.prototype.acoth=function(a){return d(i,this,"Acoth",0,[a],false,true,null,0)};a.prototype.amorDegrc=function(g,a,b,c,e,h,f){return d(i,this,"AmorDegrc",0,[g,a,b,c,e,h,f],false,true,null,0)};a.prototype.amorLinc=function(g,a,b,c,e,h,f){return d(i,this,"AmorLinc",0,[g,a,b,c,e,h,f],false,true,null,0)};a.prototype.and=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"And",0,[b],false,true,null,0)};a.prototype.arabic=function(a){return d(i,this,"Arabic",0,[a],false,true,null,0)};a.prototype.areas=function(a){return d(i,this,"Areas",0,[a],false,true,null,0)};a.prototype.asc=function(a){return d(i,this,"Asc",0,[a],false,true,null,0)};a.prototype.asin=function(a){return d(i,this,"Asin",0,[a],false,true,null,0)};a.prototype.asinh=function(a){return d(i,this,"Asinh",0,[a],false,true,null,0)};a.prototype.atan=function(a){return d(i,this,"Atan",0,[a],false,true,null,0)};a.prototype.atan2=function(a,b){return d(i,this,"Atan2",0,[a,b],false,true,null,0)};a.prototype.atanh=function(a){return d(i,this,"Atanh",0,[a],false,true,null,0)};a.prototype.aveDev=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"AveDev",0,[b],false,true,null,0)};a.prototype.average=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Average",0,[b],false,true,null,0)};a.prototype.averageA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"AverageA",0,[b],false,true,null,0)};a.prototype.averageIf=function(c,b,a){return d(i,this,"AverageIf",0,[c,b,a],false,true,null,0)};a.prototype.averageIfs=function(c){for(var b=[],a=1;a<arguments.length;a++)b[a-1]=arguments[a];return d(i,this,"AverageIfs",0,[c,b],false,true,null,0)};a.prototype.bahtText=function(a){return d(i,this,"BahtText",0,[a],false,true,null,0)};a.prototype.base=function(b,c,a){return d(i,this,"Base",0,[b,c,a],false,true,null,0)};a.prototype.besselI=function(b,a){return d(i,this,"BesselI",0,[b,a],false,true,null,0)};a.prototype.besselJ=function(b,a){return d(i,this,"BesselJ",0,[b,a],false,true,null,0)};a.prototype.besselK=function(b,a){return d(i,this,"BesselK",0,[b,a],false,true,null,0)};a.prototype.besselY=function(b,a){return d(i,this,"BesselY",0,[b,a],false,true,null,0)};a.prototype.beta_Dist=function(g,b,c,a,e,f){return d(i,this,"Beta_Dist",0,[g,b,c,a,e,f],false,true,null,0)};a.prototype.beta_Inv=function(a,b,c,e,f){return d(i,this,"Beta_Inv",0,[a,b,c,e,f],false,true,null,0)};a.prototype.bin2Dec=function(a){return d(i,this,"Bin2Dec",0,[a],false,true,null,0)};a.prototype.bin2Hex=function(a,b){return d(i,this,"Bin2Hex",0,[a,b],false,true,null,0)};a.prototype.bin2Oct=function(a,b){return d(i,this,"Bin2Oct",0,[a,b],false,true,null,0)};a.prototype.binom_Dist=function(c,e,a,b){return d(i,this,"Binom_Dist",0,[c,e,a,b],false,true,null,0)};a.prototype.binom_Dist_Range=function(e,a,c,b){return d(i,this,"Binom_Dist_Range",0,[e,a,c,b],false,true,null,0)};a.prototype.binom_Inv=function(b,a,c){return d(i,this,"Binom_Inv",0,[b,a,c],false,true,null,0)};a.prototype.bitand=function(a,b){return d(i,this,"Bitand",0,[a,b],false,true,null,0)};a.prototype.bitlshift=function(b,a){return d(i,this,"Bitlshift",0,[b,a],false,true,null,0)};a.prototype.bitor=function(a,b){return d(i,this,"Bitor",0,[a,b],false,true,null,0)};a.prototype.bitrshift=function(b,a){return d(i,this,"Bitrshift",0,[b,a],false,true,null,0)};a.prototype.bitxor=function(a,b){return d(i,this,"Bitxor",0,[a,b],false,true,null,0)};a.prototype.ceiling_Math=function(b,a,c){return d(i,this,"Ceiling_Math",0,[b,a,c],false,true,null,0)};a.prototype.ceiling_Precise=function(b,a){return d(i,this,"Ceiling_Precise",0,[b,a],false,true,null,0)};a.prototype.char=function(a){return d(i,this,"Char",0,[a],false,true,null,0)};a.prototype.chiSq_Dist=function(c,b,a){return d(i,this,"ChiSq_Dist",0,[c,b,a],false,true,null,0)};a.prototype.chiSq_Dist_RT=function(b,a){return d(i,this,"ChiSq_Dist_RT",0,[b,a],false,true,null,0)};a.prototype.chiSq_Inv=function(a,b){return d(i,this,"ChiSq_Inv",0,[a,b],false,true,null,0)};a.prototype.chiSq_Inv_RT=function(a,b){return d(i,this,"ChiSq_Inv_RT",0,[a,b],false,true,null,0)};a.prototype.choose=function(c){for(var b=[],a=1;a<arguments.length;a++)b[a-1]=arguments[a];return d(i,this,"Choose",0,[c,b],false,true,null,0)};a.prototype.clean=function(a){return d(i,this,"Clean",0,[a],false,true,null,0)};a.prototype.code=function(a){return d(i,this,"Code",0,[a],false,true,null,0)};a.prototype.columns=function(a){return d(i,this,"Columns",0,[a],false,true,null,0)};a.prototype.combin=function(b,a){return d(i,this,"Combin",0,[b,a],false,true,null,0)};a.prototype.combina=function(b,a){return d(i,this,"Combina",0,[b,a],false,true,null,0)};a.prototype.complex=function(a,c,b){return d(i,this,"Complex",0,[a,c,b],false,true,null,0)};a.prototype.concatenate=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Concatenate",0,[b],false,true,null,0)};a.prototype.confidence_Norm=function(b,a,c){return d(i,this,"Confidence_Norm",0,[b,a,c],false,true,null,0)};a.prototype.confidence_T=function(b,a,c){return d(i,this,"Confidence_T",0,[b,a,c],false,true,null,0)};a.prototype.convert=function(b,a,c){return d(i,this,"Convert",0,[b,a,c],false,true,null,0)};a.prototype.cos=function(a){return d(i,this,"Cos",0,[a],false,true,null,0)};a.prototype.cosh=function(a){return d(i,this,"Cosh",0,[a],false,true,null,0)};a.prototype.cot=function(a){return d(i,this,"Cot",0,[a],false,true,null,0)};a.prototype.coth=function(a){return d(i,this,"Coth",0,[a],false,true,null,0)};a.prototype.count=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Count",0,[b],false,true,null,0)};a.prototype.countA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"CountA",0,[b],false,true,null,0)};a.prototype.countBlank=function(a){return d(i,this,"CountBlank",0,[a],false,true,null,0)};a.prototype.countIf=function(b,a){return d(i,this,"CountIf",0,[b,a],false,true,null,0)};a.prototype.countIfs=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"CountIfs",0,[b],false,true,null,0)};a.prototype.coupDayBs=function(a,c,b,e){return d(i,this,"CoupDayBs",0,[a,c,b,e],false,true,null,0)};a.prototype.coupDays=function(a,c,b,e){return d(i,this,"CoupDays",0,[a,c,b,e],false,true,null,0)};a.prototype.coupDaysNc=function(a,c,b,e){return d(i,this,"CoupDaysNc",0,[a,c,b,e],false,true,null,0)};a.prototype.coupNcd=function(a,c,b,e){return d(i,this,"CoupNcd",0,[a,c,b,e],false,true,null,0)};a.prototype.coupNum=function(a,c,b,e){return d(i,this,"CoupNum",0,[a,c,b,e],false,true,null,0)};a.prototype.coupPcd=function(a,c,b,e){return d(i,this,"CoupPcd",0,[a,c,b,e],false,true,null,0)};a.prototype.csc=function(a){return d(i,this,"Csc",0,[a],false,true,null,0)};a.prototype.csch=function(a){return d(i,this,"Csch",0,[a],false,true,null,0)};a.prototype.cumIPmt=function(e,c,g,a,b,f){return d(i,this,"CumIPmt",0,[e,c,g,a,b,f],false,true,null,0)};a.prototype.cumPrinc=function(e,c,g,a,b,f){return d(i,this,"CumPrinc",0,[e,c,g,a,b,f],false,true,null,0)};a.prototype.daverage=function(b,c,a){return d(i,this,"DAverage",0,[b,c,a],false,true,null,0)};a.prototype.dcount=function(b,c,a){return d(i,this,"DCount",0,[b,c,a],false,true,null,0)};a.prototype.dcountA=function(b,c,a){return d(i,this,"DCountA",0,[b,c,a],false,true,null,0)};a.prototype.dget=function(b,c,a){return d(i,this,"DGet",0,[b,c,a],false,true,null,0)};a.prototype.dmax=function(b,c,a){return d(i,this,"DMax",0,[b,c,a],false,true,null,0)};a.prototype.dmin=function(b,c,a){return d(i,this,"DMin",0,[b,c,a],false,true,null,0)};a.prototype.dproduct=function(b,c,a){return d(i,this,"DProduct",0,[b,c,a],false,true,null,0)};a.prototype.dstDev=function(b,c,a){return d(i,this,"DStDev",0,[b,c,a],false,true,null,0)};a.prototype.dstDevP=function(b,c,a){return d(i,this,"DStDevP",0,[b,c,a],false,true,null,0)};a.prototype.dsum=function(b,c,a){return d(i,this,"DSum",0,[b,c,a],false,true,null,0)};a.prototype.dvar=function(b,c,a){return d(i,this,"DVar",0,[b,c,a],false,true,null,0)};a.prototype.dvarP=function(b,c,a){return d(i,this,"DVarP",0,[b,c,a],false,true,null,0)};a.prototype.date=function(b,a,c){return d(i,this,"Date",0,[b,a,c],false,true,null,0)};a.prototype.datevalue=function(a){return d(i,this,"Datevalue",0,[a],false,true,null,0)};a.prototype.day=function(a){return d(i,this,"Day",0,[a],false,true,null,0)};a.prototype.days=function(b,a){return d(i,this,"Days",0,[b,a],false,true,null,0)};a.prototype.days360=function(a,b,c){return d(i,this,"Days360",0,[a,b,c],false,true,null,0)};a.prototype.db=function(e,a,f,b,c){return d(i,this,"Db",0,[e,a,f,b,c],false,true,null,0)};a.prototype.dbcs=function(a){return d(i,this,"Dbcs",0,[a],false,true,null,0)};a.prototype.ddb=function(e,a,f,c,b){return d(i,this,"Ddb",0,[e,a,f,c,b],false,true,null,0)};a.prototype.dec2Bin=function(a,b){return d(i,this,"Dec2Bin",0,[a,b],false,true,null,0)};a.prototype.dec2Hex=function(a,b){return d(i,this,"Dec2Hex",0,[a,b],false,true,null,0)};a.prototype.dec2Oct=function(a,b){return d(i,this,"Dec2Oct",0,[a,b],false,true,null,0)};a.prototype.decimal=function(a,b){return d(i,this,"Decimal",0,[a,b],false,true,null,0)};a.prototype.degrees=function(a){return d(i,this,"Degrees",0,[a],false,true,null,0)};a.prototype.delta=function(a,b){return d(i,this,"Delta",0,[a,b],false,true,null,0)};a.prototype.devSq=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"DevSq",0,[b],false,true,null,0)};a.prototype.disc=function(b,c,f,a,e){return d(i,this,"Disc",0,[b,c,f,a,e],false,true,null,0)};a.prototype.dollar=function(b,a){return d(i,this,"Dollar",0,[b,a],false,true,null,0)};a.prototype.dollarDe=function(a,b){return d(i,this,"DollarDe",0,[a,b],false,true,null,0)};a.prototype.dollarFr=function(a,b){return d(i,this,"DollarFr",0,[a,b],false,true,null,0)};a.prototype.duration=function(a,c,e,g,b,f){return d(i,this,"Duration",0,[a,c,e,g,b,f],false,true,null,0)};a.prototype.ecma_Ceiling=function(b,a){return d(i,this,"ECMA_Ceiling",0,[b,a],false,true,null,0)};a.prototype.edate=function(a,b){return d(i,this,"EDate",0,[a,b],false,true,null,0)};a.prototype.effect=function(a,b){return d(i,this,"Effect",0,[a,b],false,true,null,0)};a.prototype.eoMonth=function(a,b){return d(i,this,"EoMonth",0,[a,b],false,true,null,0)};a.prototype.erf=function(a,b){return d(i,this,"Erf",0,[a,b],false,true,null,0)};a.prototype.erfC=function(a){return d(i,this,"ErfC",0,[a],false,true,null,0)};a.prototype.erfC_Precise=function(a){return d(i,this,"ErfC_Precise",0,[a],false,true,null,0)};a.prototype.erf_Precise=function(a){return d(i,this,"Erf_Precise",0,[a],false,true,null,0)};a.prototype.error_Type=function(a){return d(i,this,"Error_Type",0,[a],false,true,null,0)};a.prototype.even=function(a){return d(i,this,"Even",0,[a],false,true,null,0)};a.prototype.exact=function(a,b){return d(i,this,"Exact",0,[a,b],false,true,null,0)};a.prototype.exp=function(a){return d(i,this,"Exp",0,[a],false,true,null,0)};a.prototype.expon_Dist=function(c,b,a){return d(i,this,"Expon_Dist",0,[c,b,a],false,true,null,0)};a.prototype.fvschedule=function(a,b){return d(i,this,"FVSchedule",0,[a,b],false,true,null,0)};a.prototype.f_Dist=function(e,a,b,c){return d(i,this,"F_Dist",0,[e,a,b,c],false,true,null,0)};a.prototype.f_Dist_RT=function(c,a,b){return d(i,this,"F_Dist_RT",0,[c,a,b],false,true,null,0)};a.prototype.f_Inv=function(c,a,b){return d(i,this,"F_Inv",0,[c,a,b],false,true,null,0)};a.prototype.f_Inv_RT=function(c,a,b){return d(i,this,"F_Inv_RT",0,[c,a,b],false,true,null,0)};a.prototype.fact=function(a){return d(i,this,"Fact",0,[a],false,true,null,0)};a.prototype.factDouble=function(a){return d(i,this,"FactDouble",0,[a],false,true,null,0)};a.prototype["false"]=function(){return d(i,this,"False",0,[],false,true,null,0)};a.prototype.find=function(b,a,c){return d(i,this,"Find",0,[b,a,c],false,true,null,0)};a.prototype.findB=function(b,a,c){return d(i,this,"FindB",0,[b,a,c],false,true,null,0)};a.prototype.fisher=function(a){return d(i,this,"Fisher",0,[a],false,true,null,0)};a.prototype.fisherInv=function(a){return d(i,this,"FisherInv",0,[a],false,true,null,0)};a.prototype.fixed=function(c,a,b){return d(i,this,"Fixed",0,[c,a,b],false,true,null,0)};a.prototype.floor_Math=function(b,a,c){return d(i,this,"Floor_Math",0,[b,a,c],false,true,null,0)};a.prototype.floor_Precise=function(b,a){return d(i,this,"Floor_Precise",0,[b,a],false,true,null,0)};a.prototype.fv=function(b,a,e,f,c){return d(i,this,"Fv",0,[b,a,e,f,c],false,true,null,0)};a.prototype.gamma=function(a){return d(i,this,"Gamma",0,[a],false,true,null,0)};a.prototype.gammaLn=function(a){return d(i,this,"GammaLn",0,[a],false,true,null,0)};a.prototype.gammaLn_Precise=function(a){return d(i,this,"GammaLn_Precise",0,[a],false,true,null,0)};a.prototype.gamma_Dist=function(e,b,c,a){return d(i,this,"Gamma_Dist",0,[e,b,c,a],false,true,null,0)};a.prototype.gamma_Inv=function(a,b,c){return d(i,this,"Gamma_Inv",0,[a,b,c],false,true,null,0)};a.prototype.gauss=function(a){return d(i,this,"Gauss",0,[a],false,true,null,0)};a.prototype.gcd=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Gcd",0,[b],false,true,null,0)};a.prototype.geStep=function(a,b){return d(i,this,"GeStep",0,[a,b],false,true,null,0)};a.prototype.geoMean=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"GeoMean",0,[b],false,true,null,0)};a.prototype.hlookup=function(a,e,c,b){return d(i,this,"HLookup",0,[a,e,c,b],false,true,null,0)};a.prototype.harMean=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"HarMean",0,[b],false,true,null,0)};a.prototype.hex2Bin=function(a,b){return d(i,this,"Hex2Bin",0,[a,b],false,true,null,0)};a.prototype.hex2Dec=function(a){return d(i,this,"Hex2Dec",0,[a],false,true,null,0)};a.prototype.hex2Oct=function(a,b){return d(i,this,"Hex2Oct",0,[a,b],false,true,null,0)};a.prototype.hour=function(a){return d(i,this,"Hour",0,[a],false,true,null,0)};a.prototype.hypGeom_Dist=function(f,a,b,e,c){return d(i,this,"HypGeom_Dist",0,[f,a,b,e,c],false,true,null,0)};a.prototype.hyperlink=function(b,a){return d(i,this,"Hyperlink",0,[b,a],false,true,null,0)};a.prototype.iso_Ceiling=function(b,a){return d(i,this,"ISO_Ceiling",0,[b,a],false,true,null,0)};a.prototype["if"]=function(b,c,a){return d(i,this,"If",0,[b,c,a],false,true,null,0)};a.prototype.imAbs=function(a){return d(i,this,"ImAbs",0,[a],false,true,null,0)};a.prototype.imArgument=function(a){return d(i,this,"ImArgument",0,[a],false,true,null,0)};a.prototype.imConjugate=function(a){return d(i,this,"ImConjugate",0,[a],false,true,null,0)};a.prototype.imCos=function(a){return d(i,this,"ImCos",0,[a],false,true,null,0)};a.prototype.imCosh=function(a){return d(i,this,"ImCosh",0,[a],false,true,null,0)};a.prototype.imCot=function(a){return d(i,this,"ImCot",0,[a],false,true,null,0)};a.prototype.imCsc=function(a){return d(i,this,"ImCsc",0,[a],false,true,null,0)};a.prototype.imCsch=function(a){return d(i,this,"ImCsch",0,[a],false,true,null,0)};a.prototype.imDiv=function(a,b){return d(i,this,"ImDiv",0,[a,b],false,true,null,0)};a.prototype.imExp=function(a){return d(i,this,"ImExp",0,[a],false,true,null,0)};a.prototype.imLn=function(a){return d(i,this,"ImLn",0,[a],false,true,null,0)};a.prototype.imLog10=function(a){return d(i,this,"ImLog10",0,[a],false,true,null,0)};a.prototype.imLog2=function(a){return d(i,this,"ImLog2",0,[a],false,true,null,0)};a.prototype.imPower=function(a,b){return d(i,this,"ImPower",0,[a,b],false,true,null,0)};a.prototype.imProduct=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"ImProduct",0,[b],false,true,null,0)};a.prototype.imReal=function(a){return d(i,this,"ImReal",0,[a],false,true,null,0)};a.prototype.imSec=function(a){return d(i,this,"ImSec",0,[a],false,true,null,0)};a.prototype.imSech=function(a){return d(i,this,"ImSech",0,[a],false,true,null,0)};a.prototype.imSin=function(a){return d(i,this,"ImSin",0,[a],false,true,null,0)};a.prototype.imSinh=function(a){return d(i,this,"ImSinh",0,[a],false,true,null,0)};a.prototype.imSqrt=function(a){return d(i,this,"ImSqrt",0,[a],false,true,null,0)};a.prototype.imSub=function(a,b){return d(i,this,"ImSub",0,[a,b],false,true,null,0)};a.prototype.imSum=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"ImSum",0,[b],false,true,null,0)};a.prototype.imTan=function(a){return d(i,this,"ImTan",0,[a],false,true,null,0)};a.prototype.imaginary=function(a){return d(i,this,"Imaginary",0,[a],false,true,null,0)};a.prototype.int=function(a){return d(i,this,"Int",0,[a],false,true,null,0)};a.prototype.intRate=function(c,e,a,b,f){return d(i,this,"IntRate",0,[c,e,a,b,f],false,true,null,0)};a.prototype.ipmt=function(b,e,a,g,f,c){return d(i,this,"Ipmt",0,[b,e,a,g,f,c],false,true,null,0)};a.prototype.irr=function(a,b){return d(i,this,"Irr",0,[a,b],false,true,null,0)};a.prototype.isErr=function(a){return d(i,this,"IsErr",0,[a],false,true,null,0)};a.prototype.isError=function(a){return d(i,this,"IsError",0,[a],false,true,null,0)};a.prototype.isEven=function(a){return d(i,this,"IsEven",0,[a],false,true,null,0)};a.prototype.isFormula=function(a){return d(i,this,"IsFormula",0,[a],false,true,null,0)};a.prototype.isLogical=function(a){return d(i,this,"IsLogical",0,[a],false,true,null,0)};a.prototype.isNA=function(a){return d(i,this,"IsNA",0,[a],false,true,null,0)};a.prototype.isNonText=function(a){return d(i,this,"IsNonText",0,[a],false,true,null,0)};a.prototype.isNumber=function(a){return d(i,this,"IsNumber",0,[a],false,true,null,0)};a.prototype.isOdd=function(a){return d(i,this,"IsOdd",0,[a],false,true,null,0)};a.prototype.isText=function(a){return d(i,this,"IsText",0,[a],false,true,null,0)};a.prototype.isoWeekNum=function(a){return d(i,this,"IsoWeekNum",0,[a],false,true,null,0)};a.prototype.ispmt=function(b,c,a,e){return d(i,this,"Ispmt",0,[b,c,a,e],false,true,null,0)};a.prototype.isref=function(a){return d(i,this,"Isref",0,[a],false,true,null,0)};a.prototype.kurt=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Kurt",0,[b],false,true,null,0)};a.prototype.large=function(a,b){return d(i,this,"Large",0,[a,b],false,true,null,0)};a.prototype.lcm=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Lcm",0,[b],false,true,null,0)};a.prototype.left=function(b,a){return d(i,this,"Left",0,[b,a],false,true,null,0)};a.prototype.leftb=function(b,a){return d(i,this,"Leftb",0,[b,a],false,true,null,0)};a.prototype.len=function(a){return d(i,this,"Len",0,[a],false,true,null,0)};a.prototype.lenb=function(a){return d(i,this,"Lenb",0,[a],false,true,null,0)};a.prototype.ln=function(a){return d(i,this,"Ln",0,[a],false,true,null,0)};a.prototype.log=function(a,b){return d(i,this,"Log",0,[a,b],false,true,null,0)};a.prototype.log10=function(a){return d(i,this,"Log10",0,[a],false,true,null,0)};a.prototype.logNorm_Dist=function(e,c,a,b){return d(i,this,"LogNorm_Dist",0,[e,c,a,b],false,true,null,0)};a.prototype.logNorm_Inv=function(a,c,b){return d(i,this,"LogNorm_Inv",0,[a,c,b],false,true,null,0)};a.prototype.lookup=function(c,a,b){return d(i,this,"Lookup",0,[c,a,b],false,true,null,0)};a.prototype.lower=function(a){return d(i,this,"Lower",0,[a],false,true,null,0)};a.prototype.mduration=function(a,c,e,g,b,f){return d(i,this,"MDuration",0,[a,c,e,g,b,f],false,true,null,0)};a.prototype.mirr=function(c,b,a){return d(i,this,"MIrr",0,[c,b,a],false,true,null,0)};a.prototype.mround=function(b,a){return d(i,this,"MRound",0,[b,a],false,true,null,0)};a.prototype.match=function(b,a,c){return d(i,this,"Match",0,[b,a,c],false,true,null,0)};a.prototype.max=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Max",0,[b],false,true,null,0)};a.prototype.maxA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"MaxA",0,[b],false,true,null,0)};a.prototype.median=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Median",0,[b],false,true,null,0)};a.prototype.mid=function(c,b,a){return d(i,this,"Mid",0,[c,b,a],false,true,null,0)};a.prototype.midb=function(c,b,a){return d(i,this,"Midb",0,[c,b,a],false,true,null,0)};a.prototype.min=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Min",0,[b],false,true,null,0)};a.prototype.minA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"MinA",0,[b],false,true,null,0)};a.prototype.minute=function(a){return d(i,this,"Minute",0,[a],false,true,null,0)};a.prototype.mod=function(b,a){return d(i,this,"Mod",0,[b,a],false,true,null,0)};a.prototype.month=function(a){return d(i,this,"Month",0,[a],false,true,null,0)};a.prototype.multiNomial=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"MultiNomial",0,[b],false,true,null,0)};a.prototype.n=function(a){return d(i,this,"N",0,[a],false,true,null,0)};a.prototype.nper=function(a,c,f,e,b){return d(i,this,"NPer",0,[a,c,f,e,b],false,true,null,0)};a.prototype.na=function(){return d(i,this,"Na",0,[],false,true,null,0)};a.prototype.negBinom_Dist=function(c,e,a,b){return d(i,this,"NegBinom_Dist",0,[c,e,a,b],false,true,null,0)};a.prototype.networkDays=function(a,c,b){return d(i,this,"NetworkDays",0,[a,c,b],false,true,null,0)};a.prototype.networkDays_Intl=function(a,c,e,b){return d(i,this,"NetworkDays_Intl",0,[a,c,e,b],false,true,null,0)};a.prototype.nominal=function(a,b){return d(i,this,"Nominal",0,[a,b],false,true,null,0)};a.prototype.norm_Dist=function(e,c,a,b){return d(i,this,"Norm_Dist",0,[e,c,a,b],false,true,null,0)};a.prototype.norm_Inv=function(a,c,b){return d(i,this,"Norm_Inv",0,[a,c,b],false,true,null,0)};a.prototype.norm_S_Dist=function(b,a){return d(i,this,"Norm_S_Dist",0,[b,a],false,true,null,0)};a.prototype.norm_S_Inv=function(a){return d(i,this,"Norm_S_Inv",0,[a],false,true,null,0)};a.prototype.not=function(a){return d(i,this,"Not",0,[a],false,true,null,0)};a.prototype.now=function(){return d(i,this,"Now",0,[],false,true,null,0)};a.prototype.npv=function(c){for(var b=[],a=1;a<arguments.length;a++)b[a-1]=arguments[a];return d(i,this,"Npv",0,[c,b],false,true,null,0)};a.prototype.numberValue=function(c,a,b){return d(i,this,"NumberValue",0,[c,a,b],false,true,null,0)};a.prototype.oct2Bin=function(a,b){return d(i,this,"Oct2Bin",0,[a,b],false,true,null,0)};a.prototype.oct2Dec=function(a){return d(i,this,"Oct2Dec",0,[a],false,true,null,0)};a.prototype.oct2Hex=function(a,b){return d(i,this,"Oct2Hex",0,[a,b],false,true,null,0)};a.prototype.odd=function(a){return d(i,this,"Odd",0,[a],false,true,null,0)};a.prototype.oddFPrice=function(c,f,h,a,j,k,b,e,g){return d(i,this,"OddFPrice",0,[c,f,h,a,j,k,b,e,g],false,true,null,0)};a.prototype.oddFYield=function(c,f,h,a,j,k,b,e,g){return d(i,this,"OddFYield",0,[c,f,h,a,j,k,b,e,g],false,true,null,0)};a.prototype.oddLPrice=function(c,f,a,h,j,b,e,g){return d(i,this,"OddLPrice",0,[c,f,a,h,j,b,e,g],false,true,null,0)};a.prototype.oddLYield=function(c,f,a,h,j,b,e,g){return d(i,this,"OddLYield",0,[c,f,a,h,j,b,e,g],false,true,null,0)};a.prototype.or=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Or",0,[b],false,true,null,0)};a.prototype.pduration=function(a,c,b){return d(i,this,"PDuration",0,[a,c,b],false,true,null,0)};a.prototype.percentRank_Exc=function(b,c,a){return d(i,this,"PercentRank_Exc",0,[b,c,a],false,true,null,0)};a.prototype.percentRank_Inc=function(b,c,a){return d(i,this,"PercentRank_Inc",0,[b,c,a],false,true,null,0)};a.prototype.percentile_Exc=function(a,b){return d(i,this,"Percentile_Exc",0,[a,b],false,true,null,0)};a.prototype.percentile_Inc=function(a,b){return d(i,this,"Percentile_Inc",0,[a,b],false,true,null,0)};a.prototype.permut=function(b,a){return d(i,this,"Permut",0,[b,a],false,true,null,0)};a.prototype.permutationa=function(b,a){return d(i,this,"Permutationa",0,[b,a],false,true,null,0)};a.prototype.phi=function(a){return d(i,this,"Phi",0,[a],false,true,null,0)};a.prototype.pi=function(){return d(i,this,"Pi",0,[],false,true,null,0)};a.prototype.pmt=function(b,a,f,e,c){return d(i,this,"Pmt",0,[b,a,f,e,c],false,true,null,0)};a.prototype.poisson_Dist=function(c,b,a){return d(i,this,"Poisson_Dist",0,[c,b,a],false,true,null,0)};a.prototype.power=function(a,b){return d(i,this,"Power",0,[a,b],false,true,null,0)};a.prototype.ppmt=function(b,e,a,g,f,c){return d(i,this,"Ppmt",0,[b,e,a,g,f,c],false,true,null,0)};a.prototype.price=function(b,e,g,h,a,c,f){return d(i,this,"Price",0,[b,e,g,h,a,c,f],false,true,null,0)};a.prototype.priceDisc=function(b,e,c,a,f){return d(i,this,"PriceDisc",0,[b,e,c,a,f],false,true,null,0)};a.prototype.priceMat=function(a,b,e,f,g,c){return d(i,this,"PriceMat",0,[a,b,e,f,g,c],false,true,null,0)};a.prototype.product=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Product",0,[b],false,true,null,0)};a.prototype.proper=function(a){return d(i,this,"Proper",0,[a],false,true,null,0)};a.prototype.pv=function(b,a,e,f,c){return d(i,this,"Pv",0,[b,a,e,f,c],false,true,null,0)};a.prototype.quartile_Exc=function(a,b){return d(i,this,"Quartile_Exc",0,[a,b],false,true,null,0)};a.prototype.quartile_Inc=function(a,b){return d(i,this,"Quartile_Inc",0,[a,b],false,true,null,0)};a.prototype.quotient=function(b,a){return d(i,this,"Quotient",0,[b,a],false,true,null,0)};a.prototype.radians=function(a){return d(i,this,"Radians",0,[a],false,true,null,0)};a.prototype.rand=function(){return d(i,this,"Rand",0,[],false,true,null,0)};a.prototype.randBetween=function(a,b){return d(i,this,"RandBetween",0,[a,b],false,true,null,0)};a.prototype.rank_Avg=function(a,c,b){return d(i,this,"Rank_Avg",0,[a,c,b],false,true,null,0)};a.prototype.rank_Eq=function(a,c,b){return d(i,this,"Rank_Eq",0,[a,c,b],false,true,null,0)};a.prototype.rate=function(b,e,g,f,c,a){return d(i,this,"Rate",0,[b,e,g,f,c,a],false,true,null,0)};a.prototype.received=function(b,e,a,c,f){return d(i,this,"Received",0,[b,e,a,c,f],false,true,null,0)};a.prototype.replace=function(e,b,a,c){return d(i,this,"Replace",0,[e,b,a,c],false,true,null,0)};a.prototype.replaceB=function(e,b,a,c){return d(i,this,"ReplaceB",0,[e,b,a,c],false,true,null,0)};a.prototype.rept=function(b,a){return d(i,this,"Rept",0,[b,a],false,true,null,0)};a.prototype.right=function(b,a){return d(i,this,"Right",0,[b,a],false,true,null,0)};a.prototype.rightb=function(b,a){return d(i,this,"Rightb",0,[b,a],false,true,null,0)};a.prototype.roman=function(a,b){return d(i,this,"Roman",0,[a,b],false,true,null,0)};a.prototype.round=function(b,a){return d(i,this,"Round",0,[b,a],false,true,null,0)};a.prototype.roundDown=function(b,a){return d(i,this,"RoundDown",0,[b,a],false,true,null,0)};a.prototype.roundUp=function(b,a){return d(i,this,"RoundUp",0,[b,a],false,true,null,0)};a.prototype.rows=function(a){return d(i,this,"Rows",0,[a],false,true,null,0)};a.prototype.rri=function(a,c,b){return d(i,this,"Rri",0,[a,c,b],false,true,null,0)};a.prototype.sec=function(a){return d(i,this,"Sec",0,[a],false,true,null,0)};a.prototype.sech=function(a){return d(i,this,"Sech",0,[a],false,true,null,0)};a.prototype.second=function(a){return d(i,this,"Second",0,[a],false,true,null,0)};a.prototype.seriesSum=function(e,c,b,a){return d(i,this,"SeriesSum",0,[e,c,b,a],false,true,null,0)};a.prototype.sheet=function(a){return d(i,this,"Sheet",0,[a],false,true,null,0)};a.prototype.sheets=function(a){return d(i,this,"Sheets",0,[a],false,true,null,0)};a.prototype.sign=function(a){return d(i,this,"Sign",0,[a],false,true,null,0)};a.prototype.sin=function(a){return d(i,this,"Sin",0,[a],false,true,null,0)};a.prototype.sinh=function(a){return d(i,this,"Sinh",0,[a],false,true,null,0)};a.prototype.skew=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Skew",0,[b],false,true,null,0)};a.prototype.skew_p=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Skew_p",0,[b],false,true,null,0)};a.prototype.sln=function(b,a,c){return d(i,this,"Sln",0,[b,a,c],false,true,null,0)};a.prototype.small=function(a,b){return d(i,this,"Small",0,[a,b],false,true,null,0)};a.prototype.sqrt=function(a){return d(i,this,"Sqrt",0,[a],false,true,null,0)};a.prototype.sqrtPi=function(a){return d(i,this,"SqrtPi",0,[a],false,true,null,0)};a.prototype.stDevA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"StDevA",0,[b],false,true,null,0)};a.prototype.stDevPA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"StDevPA",0,[b],false,true,null,0)};a.prototype.stDev_P=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"StDev_P",0,[b],false,true,null,0)};a.prototype.stDev_S=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"StDev_S",0,[b],false,true,null,0)};a.prototype.standardize=function(c,b,a){return d(i,this,"Standardize",0,[c,b,a],false,true,null,0)};a.prototype.substitute=function(e,c,b,a){return d(i,this,"Substitute",0,[e,c,b,a],false,true,null,0)};a.prototype.subtotal=function(c){for(var b=[],a=1;a<arguments.length;a++)b[a-1]=arguments[a];return d(i,this,"Subtotal",0,[c,b],false,true,null,0)};a.prototype.sum=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Sum",0,[b],false,true,null,0)};a.prototype.sumIf=function(c,a,b){return d(i,this,"SumIf",0,[c,a,b],false,true,null,0)};a.prototype.sumIfs=function(c){for(var b=[],a=1;a<arguments.length;a++)b[a-1]=arguments[a];return d(i,this,"SumIfs",0,[c,b],false,true,null,0)};a.prototype.sumSq=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"SumSq",0,[b],false,true,null,0)};a.prototype.syd=function(b,a,c,e){return d(i,this,"Syd",0,[b,a,c,e],false,true,null,0)};a.prototype.t=function(a){return d(i,this,"T",0,[a],false,true,null,0)};a.prototype.tbillEq=function(a,c,b){return d(i,this,"TBillEq",0,[a,c,b],false,true,null,0)};a.prototype.tbillPrice=function(a,c,b){return d(i,this,"TBillPrice",0,[a,c,b],false,true,null,0)};a.prototype.tbillYield=function(a,b,c){return d(i,this,"TBillYield",0,[a,b,c],false,true,null,0)};a.prototype.t_Dist=function(c,b,a){return d(i,this,"T_Dist",0,[c,b,a],false,true,null,0)};a.prototype.t_Dist_2T=function(b,a){return d(i,this,"T_Dist_2T",0,[b,a],false,true,null,0)};a.prototype.t_Dist_RT=function(b,a){return d(i,this,"T_Dist_RT",0,[b,a],false,true,null,0)};a.prototype.t_Inv=function(a,b){return d(i,this,"T_Inv",0,[a,b],false,true,null,0)};a.prototype.t_Inv_2T=function(a,b){return d(i,this,"T_Inv_2T",0,[a,b],false,true,null,0)};a.prototype.tan=function(a){return d(i,this,"Tan",0,[a],false,true,null,0)};a.prototype.tanh=function(a){return d(i,this,"Tanh",0,[a],false,true,null,0)};a.prototype.text=function(b,a){return d(i,this,"Text",0,[b,a],false,true,null,0)};a.prototype.time=function(c,a,b){return d(i,this,"Time",0,[c,a,b],false,true,null,0)};a.prototype.timevalue=function(a){return d(i,this,"Timevalue",0,[a],false,true,null,0)};a.prototype.today=function(){return d(i,this,"Today",0,[],false,true,null,0)};a.prototype.trim=function(a){return d(i,this,"Trim",0,[a],false,true,null,0)};a.prototype.trimMean=function(b,a){return d(i,this,"TrimMean",0,[b,a],false,true,null,0)};a.prototype["true"]=function(){return d(i,this,"True",0,[],false,true,null,0)};a.prototype.trunc=function(b,a){return d(i,this,"Trunc",0,[b,a],false,true,null,0)};a.prototype.type=function(a){return d(i,this,"Type",0,[a],false,true,null,0)};a.prototype.usdollar=function(b,a){return d(i,this,"USDollar",0,[b,a],false,true,null,0)};a.prototype.unichar=function(a){return d(i,this,"Unichar",0,[a],false,true,null,0)};a.prototype.unicode=function(a){return d(i,this,"Unicode",0,[a],false,true,null,0)};a.prototype.upper=function(a){return d(i,this,"Upper",0,[a],false,true,null,0)};a.prototype.vlookup=function(b,e,a,c){return d(i,this,"VLookup",0,[b,e,a,c],false,true,null,0)};a.prototype.value=function(a){return d(i,this,"Value",0,[a],false,true,null,0)};a.prototype.varA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"VarA",0,[b],false,true,null,0)};a.prototype.varPA=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"VarPA",0,[b],false,true,null,0)};a.prototype.var_P=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Var_P",0,[b],false,true,null,0)};a.prototype.var_S=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Var_S",0,[b],false,true,null,0)};a.prototype.vdb=function(g,e,h,a,b,f,c){return d(i,this,"Vdb",0,[g,e,h,a,b,f,c],false,true,null,0)};a.prototype.weekNum=function(a,b){return d(i,this,"WeekNum",0,[a,b],false,true,null,0)};a.prototype.weekday=function(a,b){return d(i,this,"Weekday",0,[a,b],false,true,null,0)};a.prototype.weibull_Dist=function(e,b,c,a){return d(i,this,"Weibull_Dist",0,[e,b,c,a],false,true,null,0)};a.prototype.workDay=function(a,c,b){return d(i,this,"WorkDay",0,[a,c,b],false,true,null,0)};a.prototype.workDay_Intl=function(a,e,c,b){return d(i,this,"WorkDay_Intl",0,[a,e,c,b],false,true,null,0)};a.prototype.xirr=function(a,b,c){return d(i,this,"Xirr",0,[a,b,c],false,true,null,0)};a.prototype.xnpv=function(c,a,b){return d(i,this,"Xnpv",0,[c,a,b],false,true,null,0)};a.prototype.xor=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return d(i,this,"Xor",0,[b],false,true,null,0)};a.prototype.year=function(a){return d(i,this,"Year",0,[a],false,true,null,0)};a.prototype.yearFrac=function(a,b,c){return d(i,this,"YearFrac",0,[a,b,c],false,true,null,0)};a.prototype.yield=function(b,e,g,h,a,c,f){return d(i,this,"Yield",0,[b,e,g,h,a,c,f],false,true,null,0)};a.prototype.yieldDisc=function(b,c,f,a,e){return d(i,this,"YieldDisc",0,[b,c,f,a,e],false,true,null,0)};a.prototype.yieldMat=function(a,b,e,f,g,c){return d(i,this,"YieldMat",0,[a,b,e,f,g,c],false,true,null,0)};a.prototype.z_Test=function(a,c,b){return d(i,this,"Z_Test",0,[a,c,b],false,true,null,0)};a.prototype._handleResult=function(a){b.prototype._handleResult.call(this,a);if(k(a))return;var c=a;m(this,c)};a.prototype._handleRetrieveResult=function(c,a){b.prototype._handleRetrieveResult.call(this,c,a);n(this,c,a)};a.prototype.toJSON=function(){return o(this,{},{})};return a}(OfficeExtension.ClientObject);a.Functions=gi;var uc;(function(a){a.accessDenied="AccessDenied";a.apiNotFound="ApiNotFound";a.conflict="Conflict";a.generalException="GeneralException";a.insertDeleteConflict="InsertDeleteConflict";a.invalidArgument="InvalidArgument";a.invalidBinding="InvalidBinding";a.invalidOperation="InvalidOperation";a.invalidReference="InvalidReference";a.invalidSelection="InvalidSelection";a.itemAlreadyExists="ItemAlreadyExists";a.itemNotFound="ItemNotFound";a.nonBlankCellOffSheet="NonBlankCellOffSheet";a.notImplemented="NotImplemented";a.unsupportedOperation="UnsupportedOperation";a.invalidOperationInCellEditMode="InvalidOperationInCellEditMode"})(uc=a.ErrorCodes||(a.ErrorCodes={}));var Sh;(function(a){})(Sh=a.Interfaces||(a.Interfaces={}))})(Excel||(Excel={}));OSFAriaLogger.AriaLogger.EnableSendingTelemetryWithOTel=true;OSFAriaLogger.AriaLogger.EnableSendingTelemetryWithLegacyAria=true;OfficeExtension.Utility._doApiNotSupportedCheck=true