Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

excel-mac-16.00.js 385KB

123456789101112131415161718192021
  1. /* Excel Mac-specific API library */
  2. /* Version: 16.0.7524.3000 */
  3. /* Office.js Version: 16.0.7526.1000 */
  4. /*
  5. Copyright (c) Microsoft Corporation. All rights reserved.
  6. */
  7. /*
  8. Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
  9. */
  10. /*
  11. * @overview es6-promise - a tiny implementation of Promises/A+.
  12. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
  13. * @license Licensed under MIT license
  14. * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
  15. * @version 2.3.0
  16. */
  17. function IsEdgeLessThan14(){var n=window.navigator.userAgent,t=n.indexOf("Edge/");return t>=0?(n=n.substring(t+5,n.length),n<"14.14393"?!0:!1):!1}var __extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},OsfMsAjaxFactory,OSF,OfficeExt,OSFLog,Logger,OSFAppTelemetry,OfficeExtension,Excel;(function(n){var t=function(){function t(){}var n=!0;return t.prototype.isMsAjaxLoaded=function(){var t="function",i="undefined";return typeof Sys!==i&&typeof Type!==i&&Sys.StringBuilder&&typeof Sys.StringBuilder===t&&Type.registerNamespace&&typeof Type.registerNamespace===t&&Type.registerClass&&typeof Type.registerClass===t&&typeof Function._validateParams===t&&Sys.Serialization&&Sys.Serialization.JavaScriptSerializer&&typeof Sys.Serialization.JavaScriptSerializer.serialize===t?n:!1},t.prototype.loadMsAjaxFull=function(n){var t=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OSF.OUtil.loadScript(t,n)},Object.defineProperty(t.prototype,"msAjaxError",{get:function(){var n=this;return n._msAjaxError==null&&n.isMsAjaxLoaded()&&(n._msAjaxError=Error),n._msAjaxError},set:function(n){this._msAjaxError=n},enumerable:n,configurable:n}),Object.defineProperty(t.prototype,"msAjaxString",{get:function(){var n=this;return n._msAjaxString==null&&n.isMsAjaxLoaded()&&(n._msAjaxString=String),n._msAjaxString},set:function(n){this._msAjaxString=n},enumerable:n,configurable:n}),Object.defineProperty(t.prototype,"msAjaxDebug",{get:function(){var n=this;return n._msAjaxDebug==null&&n.isMsAjaxLoaded()&&(n._msAjaxDebug=Sys.Debug),n._msAjaxDebug},set:function(n){this._msAjaxDebug=n},enumerable:n,configurable:n}),t}();n.MicrosoftAjaxFactory=t})(OfficeExt||(OfficeExt={}));OsfMsAjaxFactory=new OfficeExt.MicrosoftAjaxFactory;OSF=OSF||{},function(n){var t=function(){function n(n){this._internalStorage=n}return n.prototype.getItem=function(n){try{return this._internalStorage&&this._internalStorage.getItem(n)}catch(t){return null}},n.prototype.setItem=function(n,t){try{this._internalStorage&&this._internalStorage.setItem(n,t)}catch(i){}},n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(n){}},n.prototype.removeItem=function(n){try{this._internalStorage&&this._internalStorage.removeItem(n)}catch(t){}},n.prototype.getKeysWithPrefix=function(n){var r=[],u,t,i;try{for(u=this._internalStorage&&this._internalStorage.length||0,t=0;t<u;t++)i=this._internalStorage.key(t),i.indexOf(n)===0&&r.push(i)}catch(f){}return r},n}();n.SafeStorage=t}(OfficeExt||(OfficeExt={}));OSF.XdmFieldName={ConversationUrl:"ConversationUrl",AppId:"AppId"};OSF.WindowNameItemKeys={BaseFrameName:"baseFrameName",HostInfo:"hostInfo",XdmInfo:"xdmInfo",SerializerVersion:"serializerVersion",AppContext:"appContext"};OSF.OUtil=function(){function it(){var n=c*Math.random();return n^=u^(new Date).getMilliseconds()<<Math.floor(Math.random()*21),n.toString(16)}function w(){if(!y){try{var t=window.sessionStorage}catch(i){t=n}y=new OfficeExt.SafeStorage(t)}return y}function rt(n){for(var r=[],i=[],f=n.length,t,u=0;u<f;u++)t=n[u],t.tabIndex?t.tabIndex>0?i.push(t):t.tabIndex===0&&r.push(t):r.push(t);return i=i.sort(function(n,t){var r=n.tabIndex-t.tabIndex;return r===0&&(r=i.indexOf(n)-i.indexOf(t)),r}),[].concat(i,r)}var f="focus",e="on",b="configurable",k="writable",o="enumerable",s="undefined",i=!0,t=!1,c=2147483647,n=null,r=-1,l=r,d="&_xdm_Info=",g="&_serializer_version=",nt="_xdm_",ut="_serializer_version=",a="#",tt="&",h="class",v={},ft=3e4,y=n,p=n,u=(new Date).getTime();return{set_entropy:function(n){var t,r,i;if(typeof n=="string")for(t=0;t<n.length;t+=4){for(r=0,i=0;i<4&&t+i<n.length;i++)r=(r<<8)+n.charCodeAt(t+i);u^=r}else u^=typeof n=="number"?n:c*Math.random();u&=c},extend:function(n,t){var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.uber=t.prototype;t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=t)},setNamespace:function(n,t){t&&n&&!t[n]&&(t[n]={})},unsetNamespace:function(n,t){t&&n&&t[n]&&delete t[n]},loadScript:function(r,u,f){var s,e,o,h,c;r&&u&&(s=window.document,e=v[r],e?e.loaded?u():e.pendingCallbacks.push(u):(o=s.createElement("script"),o.type="text/javascript",e={loaded:t,pendingCallbacks:[u],timer:n},v[r]=e,h=function(){var r,t,u;for(e.timer!=n&&(clearTimeout(e.timer),delete e.timer),e.loaded=i,r=e.pendingCallbacks.length,t=0;t<r;t++)u=e.pendingCallbacks.shift(),u()},c=function(){var i,t,u;for(delete v[r],e.timer!=n&&(clearTimeout(e.timer),delete e.timer),i=e.pendingCallbacks.length,t=0;t<i;t++)u=e.pendingCallbacks.shift(),u()},o.readyState?o.onreadystatechange=function(){(o.readyState=="loaded"||o.readyState=="complete")&&(o.onreadystatechange=n,h())}:o.onload=h,o.onerror=c,f=f||ft,e.timer=setTimeout(c,f),o.src=r,s.getElementsByTagName("head")[0].appendChild(o)))},loadCSS:function(n){if(n){var i=window.document,t=i.createElement("link");t.type="text/css";t.rel="stylesheet";t.href=n;i.getElementsByTagName("head")[0].appendChild(t)}},parseEnum:function(n,t){var i=t[n.trim()];if(typeof i==s){OsfMsAjaxFactory.msAjaxDebug.trace("invalid enumeration string:"+n);throw OsfMsAjaxFactory.msAjaxError.argument("str");}return i},delayExecutionAndCache:function(){var n={calc:arguments[0]};return function(){return n.calc&&(n.val=n.calc.apply(this,arguments),delete n.calc),n.val}},getUniqueId:function(){return l=l+1,l.toString()},formatString:function(){var n=arguments,t=n[0];return t.replace(/{(\d+)}/gm,function(t,i){var r=parseInt(i,10)+1;return n[r]===undefined?"{"+i+"}":n[r]})},generateConversationId:function(){return[it(),it(),(new Date).getTime().toString()].join("_")},getFrameName:function(n){return nt+n+this.generateConversationId()},addXdmInfoAsHash:function(n,i){return OSF.OUtil.addInfoAsHash(n,d,i,t)},addSerializerVersionAsHash:function(n,t){return OSF.OUtil.addInfoAsHash(n,g,t,i)},addInfoAsHash:function(n,t,i,r){n=n.trim()||"";var u=n.split(a),o=u.shift(),f=u.join(a),e;return e=r?[t,encodeURIComponent(i),f].join(""):[f,t,i].join(""),[o,a,e].join("")},parseHostInfoFromWindowName:function(n,t){return OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.HostInfo)},parseXdmInfo:function(n){var t=OSF.OUtil.parseXdmInfoWithGivenFragment(n,window.location.hash);return t||(t=OSF.OUtil.parseXdmInfoFromWindowName(n,window.name)),t},parseXdmInfoFromWindowName:function(n,t){return OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.XdmInfo)},parseXdmInfoWithGivenFragment:function(n,i){return OSF.OUtil.parseInfoWithGivenFragment(d,nt,t,n,i)},parseSerializerVersion:function(n){var t=OSF.OUtil.parseSerializerVersionWithGivenFragment(n,window.location.hash);return isNaN(t)&&(t=OSF.OUtil.parseSerializerVersionFromWindowName(n,window.name)),t},parseSerializerVersionFromWindowName:function(n,t){return parseInt(OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.SerializerVersion))},parseSerializerVersionWithGivenFragment:function(n,t){return parseInt(OSF.OUtil.parseInfoWithGivenFragment(g,ut,i,n,t))},parseInfoFromWindowName:function(t,i,r){var o;try{var u=JSON.parse(i),f=u!=n?u[r]:n,e=w();return!t&&e&&u!=n&&(o=u[OSF.WindowNameItemKeys.BaseFrameName]+r,f?e.setItem(o,f):f=e.getItem(o)),f}catch(s){return n}},parseInfoWithGivenFragment:function(t,i,u,f,e){var l=e.split(t),o=l.length>1?l[l.length-1]:n,s,h,c,a;return u&&o!=n&&(o.indexOf(tt)>=0&&(o=o.split(tt)[0]),o=decodeURIComponent(o)),s=w(),!f&&s&&(h=window.name.indexOf(i),h>r&&(c=window.name.indexOf(";",h),c==r&&(c=window.name.length),a=window.name.substring(h,c),o?s.setItem(a,o):o=s.getItem(a))),o},getConversationId:function(){var i=window.location.search,t=n,r;return i&&(r=i.indexOf("&"),t=r>0?i.substring(1,r):i.substr(1),t&&t.charAt(t.length-1)==="="&&(t=t.substring(0,t.length-1),t&&(t=decodeURIComponent(t)))),t},getInfoItems:function(n){var t=n.split("$");return typeof t[1]==s&&(t=n.split("|")),typeof t[1]==s&&(t=n.split("%7C")),t},getXdmFieldValue:function(n,t){var r="",u=OSF.OUtil.parseXdmInfo(t),i;if(u&&(i=OSF.OUtil.getInfoItems(u),i!=undefined&&i.length>=3))switch(n){case OSF.XdmFieldName.ConversationUrl:r=i[2];break;case OSF.XdmFieldName.AppId:r=i[1]}return r},validateParamObject:function(n,r){var u=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:t},{name:"expectedProperties",type:Object,mayBeNull:t},{name:"callback",type:Function,mayBeNull:i}]),f;if(u)throw u;for(f in r)if(u=Function._validateParameter(n[f],r[f],f),u)throw u;},writeProfilerMark:function(n){window.msWriteProfilerMark&&(window.msWriteProfilerMark(n),OsfMsAjaxFactory.msAjaxDebug.trace(n))},outputDebug:function(n){typeof OsfMsAjaxFactory!==s&&OsfMsAjaxFactory.msAjaxDebug&&OsfMsAjaxFactory.msAjaxDebug.trace&&OsfMsAjaxFactory.msAjaxDebug.trace(n)},defineNondefaultProperty:function(n,t,r,u){var e,f;r=r||{};for(e in u)f=u[e],r[f]==undefined&&(r[f]=i);return Object.defineProperty(n,t,r),n},defineNondefaultProperties:function(n,t,i){t=t||{};for(var r in t)OSF.OUtil.defineNondefaultProperty(n,r,t[r],i);return n},defineEnumerableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[o])},defineEnumerableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[o])},defineMutableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[k,o,b])},defineMutableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[k,o,b])},finalizeProperties:function(n,r){var e,u;r=r||{};for(var o=Object.getOwnPropertyNames(n),s=o.length,f=0;f<s;f++)e=o[f],u=Object.getOwnPropertyDescriptor(n,e),u.get||u.set||(u.writable=r.writable||t),u.configurable=r.configurable||t,u.enumerable=r.enumerable||i,Object.defineProperty(n,e,u);return n},mapList:function(n,t){var i=[],r;if(n)for(r in n)i.push(t(n[r]));return i},listContainsKey:function(n,r){for(var u in n)if(r==u)return i;return t},listContainsValue:function(n,r){for(var u in n)if(r==n[u])return i;return t},augmentList:function(n,t){var r=n.push?function(t,i){n.push(i)}:function(t,i){n[t]=i};for(var i in t)r(i,t[i])},redefineList:function(n,t){var r,i;for(r in n)delete n[r];for(i in t)n[i]=t[i]},isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},isFunction:function(n){return Object.prototype.toString.apply(n)==="[object Function]"},isDate:function(n){return Object.prototype.toString.apply(n)==="[object Date]"},addEventListener:function(n,i,r){n.addEventListener?n.addEventListener(i,r,t):Sys.Browser.agent===Sys.Browser.InternetExplorer&&n.attachEvent?n.attachEvent(e+i,r):n[e+i]=r},removeEventListener:function(i,r,u){i.removeEventListener?i.removeEventListener(r,u,t):Sys.Browser.agent===Sys.Browser.InternetExplorer&&i.detachEvent?i.detachEvent(e+r,u):i[e+r]=n},getCookieValue:function(n){var t=RegExp(n+"[^;]+").exec(document.cookie);return t.toString().replace(/^[^=]+./,"")},xhrGet:function(n,t,r){var u;try{u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState==4&&(u.status==200?t(u.responseText):r(u.status))};u.open("GET",n,i);u.send()}catch(f){r(f)}},xhrGetFull:function(n,t,r,u){var f,e=t;try{f=new XMLHttpRequest;f.onreadystatechange=function(){f.readyState==4&&(f.status==200?r(f,e):u(f.status))};f.open("GET",n,i);f.send()}catch(o){u(o)}},encodeBase64:function(n){var h;if(!n)return n;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=[],i=[],o=0,c,e,s,r,u,f,t,v=n.length;do for(c=n.charCodeAt(o++),e=n.charCodeAt(o++),s=n.charCodeAt(o++),t=0,r=c&255,u=c>>8,f=e&255,i[t++]=r>>2,i[t++]=(r&3)<<4|u>>4,i[t++]=(u&15)<<2|f>>6,i[t++]=f&63,isNaN(e)||(r=e>>8,u=s&255,f=s>>8,i[t++]=r>>2,i[t++]=(r&3)<<4|u>>4,i[t++]=(u&15)<<2|f>>6,i[t++]=f&63),isNaN(e)?i[t-1]=64:isNaN(s)&&(i[t-2]=64,i[t-1]=64),h=0;h<t;h++)l.push(a.charAt(i[h]));while(o<v);return l.join("")},getSessionStorage:function(){return w()},getLocalStorage:function(){if(!p){try{var t=window.localStorage}catch(i){t=n}p=new OfficeExt.SafeStorage(t)}return p},convertIntToCssHexColor:function(n){return"#"+(Number(n)+16777216).toString(16).slice(-6)},attachClickHandler:function(n,t){n.onclick=function(){t()};n.ontouchend=function(n){t();n.preventDefault()}},getQueryStringParamValue:function(n,i){var u=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:t},{name:"paramName",type:String,mayBeNull:t}]),r;return u?(OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null."),""):(r=new RegExp("[\\?&]"+i+"=([^&#]*)","i"),!r.test(n))?(OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found."),""):r.exec(n)[1]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?i:t},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(n){var i=n.constructor();for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},createObject:function(t){var r=n,u,i;if(t)for(r={},u=t.length,i=0;i<u;i++)r[t[i].name]=t[i].value;return r},addClass:function(n,t){if(!OSF.OUtil.hasClass(n,t)){var i=n.getAttribute(h);i?n.setAttribute(h,i+" "+t):n.setAttribute(h,t)}},hasClass:function(n,t){var i=n.getAttribute(h);return i&&i.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},focusToFirstTabbable:function(u,e){var o,h=t,s,c=function(){h=i},l=function(n,t,i){if(t<0||t>n)return r;else if(t===0&&i)return r;else if(t===n-1&&!i)return r;return i?t-1:t+1};if(u=rt(u),o=e?u.length-1:0,u.length===0)return n;while(!h&&o>=0&&o<u.length)s=u[o],window.focus(),s.addEventListener(f,c),s.focus(),s.removeEventListener(f,c),o=l(u.length,o,e),h||s!==document.activeElement||(h=i);return h?s:n},focusToNextTabbable:function(u,e,o){var l,s,c=t,h,a=function(){c=i},y=function(n,t){for(var i=0;i<n.length;i++)if(n[i]===t)return i;return r},v=function(n,t,i){if(t<0||t>n)return r;else if(t===0&&i)return r;else if(t===n-1&&!i)return r;return i?t-1:t+1};if(u=rt(u),l=y(u,e),s=v(u.length,l,o),s<0)return n;while(!c&&s>=0&&s<u.length)h=u[s],h.addEventListener(f,a),h.focus(),h.removeEventListener(f,a),s=v(u.length,s,o),c||h!==document.activeElement||(c=i);return c?h:n}}}();OSF.OUtil.Guid=function(){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return{generateNewGuid:function(){for(var i="",r=(new Date).getTime(),t=0;t<32&&r>0;t++)(t==8||t==12||t==16||t==20)&&(i+="-"),i+=n[r%16],r=Math.floor(r/16);for(;t<32;t++)(t==8||t==12||t==16||t==20)&&(i+="-"),i+=n[Math.floor(Math.random()*16)];return i}}}();window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);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};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};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.DialogMessageType={DialogMessageReceived:0,DialogParentMessageReceived:1,DialogClosed:12006};OSF.OfficeAppContext=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it){var rt=this;rt._id=n;rt._appName=t;rt._appVersion=i;rt._appUILocale=r;rt._dataLocale=u;rt._docUrl=f;rt._clientMode=e;rt._settings=o;rt._reason=s;rt._osfControlType=h;rt._eToken=c;rt._correlationId=l;rt._appInstanceId=a;rt._touchEnabled=v;rt._commerceAllowed=y;rt._appMinorVersion=p;rt._requirementMatrix=w;rt._hostCustomMessage=b;rt._hostFullVersion=k;rt._isDialog=!1;rt._clientWindowHeight=d;rt._clientWindowWidth=g;rt._addinName=nt;rt._appDomains=tt;rt._dialogRequirementMatrix=it;rt.get_id=function(){return this._id};rt.get_appName=function(){return this._appName};rt.get_appVersion=function(){return this._appVersion};rt.get_appUILocale=function(){return this._appUILocale};rt.get_dataLocale=function(){return this._dataLocale};rt.get_docUrl=function(){return this._docUrl};rt.get_clientMode=function(){return this._clientMode};rt.get_bindings=function(){return this._bindings};rt.get_settings=function(){return this._settings};rt.get_reason=function(){return this._reason};rt.get_osfControlType=function(){return this._osfControlType};rt.get_eToken=function(){return this._eToken};rt.get_correlationId=function(){return this._correlationId};rt.get_appInstanceId=function(){return this._appInstanceId};rt.get_touchEnabled=function(){return this._touchEnabled};rt.get_commerceAllowed=function(){return this._commerceAllowed};rt.get_appMinorVersion=function(){return this._appMinorVersion};rt.get_requirementMatrix=function(){return this._requirementMatrix};rt.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix};rt.get_hostCustomMessage=function(){return this._hostCustomMessage};rt.get_hostFullVersion=function(){return this._hostFullVersion};rt.get_isDialog=function(){return this._isDialog};rt.get_clientWindowHeight=function(){return this._clientWindowHeight};rt.get_clientWindowWidth=function(){return this._clientWindowWidth};rt.get_addinName=function(){return this._addinName};rt.get_appDomains=function(){return this._appDomains}};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",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"};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(n,t){return t==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||t==Microsoft.Office.WebExtension.EventType.BindingDataChanged||t==Microsoft.Office.WebExtension.EventType.DataNodeDeleted||t==Microsoft.Office.WebExtension.EventType.DataNodeInserted||t==Microsoft.Office.WebExtension.EventType.DataNodeReplaced?n+"_"+t:t};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,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,dispidMethodMax:145};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,dispidActivationStatusChangedEvent:32,dispidAppCommandInvokedEvent:39,dispidOlkItemSelectedChangedEvent:46,dispidTaskSelectionChangedEvent:56,dispidResourceSelectionChangedEvent:57,dispidViewSelectionChangedEvent:58,dispidDataNodeAddedEvent:60,dispidDataNodeReplacedEvent:61,dispidDataNodeDeletedEvent:62,dispidEventMax:63};OSF.DDA.ErrorCodeManager=function(){var n={};return{getErrorArgs:function(t){var i=n[t];return i?(i.name||(i.name=n[this.errorCodes.ooeInternalError].name),i.message||(i.message=n[this.errorCodes.ooeInternalError].message)):i=n[this.errorCodes.ooeInternalError],i},addErrorMessage:function(t,i){n[t]=i},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,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},initializeErrorMessages:function(t){n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType]={name:t.L_DataReadError,message:t.L_GetSelectionNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotMatchBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts]={name:t.L_DataReadError,message:t.L_InvalidGetRowColumnCounts};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType]={name:t.L_DataReadError,message:t.L_SelectionNotSupportCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn]={name:t.L_DataReadError,message:t.L_InvalidGetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported]={name:t.L_DataReadError,message:t.L_NonUniformPartialGetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge]={name:t.L_DataReadError,message:t.L_GetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported]={name:t.L_DataReadError,message:t.L_FileTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict]={name:t.L_DataReadError,message:t.L_GetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns]={name:t.L_DataReadError,message:t.L_InvalidGetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows]={name:t.L_DataReadError,message:t.L_InvalidGetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow]={name:t.L_DataReadError,message:t.L_InvalidReadForBlankRow};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject]={name:t.L_DataWriteError,message:t.L_UnsupportedDataObject};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection]={name:t.L_DataWriteError,message:t.L_CannotWriteToSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection]={name:t.L_DataWriteError,message:t.L_DataNotMatchSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData]={name:t.L_DataWriteError,message:t.L_OverwriteWorksheetData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize]={name:t.L_DataWriteError,message:t.L_DataNotMatchBindingSize};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn]={name:t.L_DataWriteError,message:t.L_InvalidSetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat]={name:t.L_InvalidFormat,message:t.L_InvalidDataFormat};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge]={name:t.L_DataWriteError,message:t.L_SetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported]={name:t.L_DataWriteError,message:t.L_NonUniformPartialSetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns]={name:t.L_DataWriteError,message:t.L_InvalidSetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows]={name:t.L_DataWriteError,message:t.L_InvalidSetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict]={name:t.L_DataWriteError,message:t.L_SetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound]={name:t.L_BindingCreationError,message:t.L_SelectionCannotBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist]={name:t.L_InvalidBindingError,message:t.L_BindingNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection]={name:t.L_BindingCreationError,message:t.L_BindingToMultipleSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidSelectionForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnThisBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound]={name:t.L_BindingCreationError,message:t.L_NamedItemNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound]={name:t.L_BindingCreationError,message:t.L_MultipleNamedItemFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidNamedItemForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType]={name:t.L_InvalidBinding,message:t.L_UnknownBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnMatrixData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding]={name:t.L_InvalidBinding,message:t.L_InvalidColumnsForBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist]={name:t.L_ReadSettingsError,message:t.L_SettingNameNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave]={name:t.L_SaveSettingsError,message:t.L_SettingsCannotSave};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale]={name:t.L_SettingsStaleError,message:t.L_SettingsAreStale};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported]={name:t.L_HostError,message:t.L_OperationNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError]={name:t.L_InternalError,message:t.L_InternalErrorDescription};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly]={name:t.L_PermissionDenied,message:t.L_DocumentReadOnly};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist]={name:t.L_EventRegistrationError,message:t.L_EventHandlerNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext]={name:t.L_InvalidAPICall,message:t.L_InvalidApiCallInContext};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown]={name:t.L_ShuttingDown,message:t.L_ShuttingDown};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration]={name:t.L_UnsupportedEnumeration,message:t.L_UnsupportedEnumerationMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported]={name:t.L_APINotSupported,message:t.L_BrowserAPINotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout]={name:t.L_APICallFailed,message:t.L_RequestTimeout};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests]={name:t.L_APICallFailed,message:t.L_TooManyIncompleteRequests};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeActivityLimitReached]={name:t.L_APICallFailed,message:t.L_ActivityLimitReached};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound]={name:t.L_InvalidNode,message:t.L_CustomXmlNodeNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError]={name:t.L_CustomXmlError,message:t.L_CustomXmlError};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlExceedQuota]={name:t.L_CustomXmlExceedQuotaName,message:t.L_CustomXmlExceedQuotaMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate]={name:t.L_CustomXmlOutOfDateName,message:t.L_CustomXmlOutOfDateMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo]={name:t.L_CannotNavigateTo,message:t.L_CannotNavigateTo};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist]={name:t.L_SpecifiedIdNotExist,message:t.L_SpecifiedIdNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound]={name:t.L_NavOutOfBound,message:t.L_NavOutOfBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits]={name:t.L_DataWriteReminder,message:t.L_CellDataAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing]={name:t.L_MissingParameter,message:t.L_ElementMissing};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue]={name:t.L_InvalidValue,message:t.L_InvalidCellsValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue]={name:t.L_InvalidValue,message:t.L_InvalidTableOptionValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue]={name:t.L_InvalidValue,message:t.L_InvalidFormatValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_RowIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_ColIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange]={name:t.L_OutOfRange,message:t.L_FormatValueOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits]={name:t.L_FormattingReminder,message:t.L_CellFormatAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit]={name:t.L_MemoryLimit,message:t.L_CloseFileBeforeRetrieve};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile]={name:t.L_NetworkProblem,message:t.L_NetworkProblemRetrieveFile};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize]={name:t.L_InvalidValue,message:t.L_SliceSizeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened]={name:t.L_DisplayDialogError,message:t.L_DialogAlreadyOpened};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidWidth]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidHeight]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavigationError]={name:t.L_DisplayDialogError,message:t.L_NetworkProblem};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidScheme]={name:t.L_DialogNavigateError,message:t.L_DialogAddressNotTrusted};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeAppDomains]={name:t.L_DisplayDialogError,message:t.L_DialogAddressNotTrusted};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequireHTTPS]={name:t.L_DisplayDialogError,message:t.L_DialogAddressNotTrusted};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEndUserIgnore]={name:t.L_DisplayDialogError,message:t.L_UserClickIgnore};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCrossZone]={name:t.L_DisplayDialogError,message:t.L_NewWindowCrossZoneErrorString}}}}(),function(n){var t;(function(n){var t=1.1,r=function(){function n(n){var t=this;t.isSetSupported=function(n,t){var u,i,r;return n==undefined?!1:(t==undefined&&(t=0),u=this._setMap,i=u._sets,i.hasOwnProperty(n.toLowerCase())?(r=i[n.toLowerCase()],r>0&&r>=t):!1)};t._setMap=n;t.isSetSupported=t.isSetSupported.bind(t)}return n}(),i,h,u,c,l,f,a,e,v,y,p,w,b,o,k,d,g,s,nt,tt,it,rt;n.RequirementMatrix=r;i=function(){function n(n){this._addSetMap=function(n){for(var t in n)this._sets[t]=n[t]};this._sets=n}return n}();n.DefaultSetRequirement=i;h=function(n){function i(){n.call(this,{dialogapi:t})}return __extends(i,n),i}(i);n.DefaultDialogSetRequirement=h;u=function(n){function i(){n.call(this,{bindingevents:t,documentevents:t,excelapi:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t})}return __extends(i,n),i}(i);n.ExcelClientDefaultSetRequirement=u;c=function(n){function i(){n.call(this);this._addSetMap({imagecoercion:t})}return __extends(i,n),i}(u);n.ExcelClientV1DefaultSetRequirement=c;l=function(n){function t(){n.call(this,{mailbox:1.3})}return __extends(t,n),t}(i);n.OutlookClientDefaultSetRequirement=l;f=function(n){function i(){n.call(this,{bindingevents:t,compressedfile:t,customxmlparts:t,documentevents:t,file:t,htmlcoercion:t,matrixbindings:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,textfile:t,wordapi:t})}return __extends(i,n),i}(i);n.WordClientDefaultSetRequirement=f;a=function(n){function i(){n.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2,imagecoercion:t})}return __extends(i,n),i}(f);n.WordClientV1DefaultSetRequirement=a;e=function(n){function i(){n.call(this,{activeview:t,compressedfile:t,documentevents:t,file:t,pdffile:t,selection:t,settings:t,textcoercion:t})}return __extends(i,n),i}(i);n.PowerpointClientDefaultSetRequirement=e;v=function(n){function i(){n.call(this);this._addSetMap({imagecoercion:t})}return __extends(i,n),i}(e);n.PowerpointClientV1DefaultSetRequirement=v;y=function(n){function i(){n.call(this,{selection:t,textcoercion:t})}return __extends(i,n),i}(i);n.ProjectClientDefaultSetRequirement=y;p=function(n){function i(){n.call(this,{bindingevents:t,documentevents:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,file:t})}return __extends(i,n),i}(i);n.ExcelWebDefaultSetRequirement=p;w=function(n){function i(){n.call(this,{compressedfile:t,documentevents:t,file:t,imagecoercion:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablecoercion:t,textcoercion:t,textfile:t})}return __extends(i,n),i}(i);n.WordWebDefaultSetRequirement=w;b=function(n){function i(){n.call(this,{activeview:t,settings:t})}return __extends(i,n),i}(i);n.PowerpointWebDefaultSetRequirement=b;o=function(n){function t(){n.call(this,{mailbox:1.3})}return __extends(t,n),t}(i);n.OutlookWebDefaultSetRequirement=o;k=function(n){function i(){n.call(this,{activeview:t,documentevents:t,selection:t,settings:t,textcoercion:t})}return __extends(i,n),i}(i);n.SwayWebDefaultSetRequirement=k;d=function(n){function i(){n.call(this,{bindingevents:t,partialtablebindings:t,settings:t,tablebindings:t,tablecoercion:t})}return __extends(i,n),i}(i);n.AccessWebDefaultSetRequirement=d;g=function(n){function i(){n.call(this,{bindingevents:t,documentevents:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t})}return __extends(i,n),i}(i);n.ExcelIOSDefaultSetRequirement=g;s=function(n){function i(){n.call(this,{bindingevents:t,compressedfile:t,customxmlparts:t,documentevents:t,file:t,htmlcoercion:t,matrixbindings:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,textfile:t})}return __extends(i,n),i}(i);n.WordIOSDefaultSetRequirement=s;nt=function(n){function t(){n.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2})}return __extends(t,n),t}(s);n.WordIOSV1DefaultSetRequirement=nt;tt=function(n){function i(){n.call(this,{activeview:t,compressedfile:t,documentevents:t,file:t,pdffile:t,selection:t,settings:t,textcoercion:t})}return __extends(i,n),i}(i);n.PowerpointIOSDefaultSetRequirement=tt;it=function(n){function i(){n.call(this,{mailbox:t})}return __extends(i,n),i}(i);n.OutlookIOSDefaultSetRequirement=it;rt=function(){function n(){}var t="undefined";return n.initializeOsfDda=function(){OSF.OUtil.setNamespace("Requirement",OSF.DDA)},n.getDefaultRequirementMatrix=function(u){var f,e,s,o;return this.initializeDefaultSetMatrix(),f=undefined,e=u.get_requirementMatrix(),e!=undefined&&e.length>0&&typeof JSON!==t?(s=JSON.parse(u.get_requirementMatrix().toLowerCase()),f=new r(new i(s))):(o=n.getClientFullVersionString(u),f=n.DefaultSetArrayMatrix!=undefined&&n.DefaultSetArrayMatrix[o]!=undefined?new r(n.DefaultSetArrayMatrix[o]):new r(new i({}))),f},n.getDefaultDialogRequirementMatrix=function(n){var u=undefined,f=n.get_dialogRequirementMatrix(),e;return f!=undefined&&f.length>0&&typeof JSON!==t?(e=JSON.parse(n.get_requirementMatrix().toLowerCase()),u=new r(new i(e))):u=new r(new h),u},n.getClientFullVersionString=function(n){var i=n.get_appMinorVersion(),u="",r="",t=n.get_appName(),f=t==1024||t==4096||t==8192||t==65536;return f&&n.get_appVersion()==1?r=t==4096&&i>=15?"16.00.01":"16.00":n.get_appName()==64?r=n.get_appVersion():(u=i<10?"0"+i:""+i,r=n.get_appVersion()+"."+u),n.get_appName()+"-"+r},n.initializeDefaultSetMatrix=function(){n.DefaultSetArrayMatrix[n.Excel_RCLIENT_1600]=new u;n.DefaultSetArrayMatrix[n.Word_RCLIENT_1600]=new f;n.DefaultSetArrayMatrix[n.PowerPoint_RCLIENT_1600]=new e;n.DefaultSetArrayMatrix[n.Excel_RCLIENT_1601]=new c;n.DefaultSetArrayMatrix[n.Word_RCLIENT_1601]=new a;n.DefaultSetArrayMatrix[n.PowerPoint_RCLIENT_1601]=new v;n.DefaultSetArrayMatrix[n.Outlook_RCLIENT_1600]=new l;n.DefaultSetArrayMatrix[n.Excel_WAC_1600]=new p;n.DefaultSetArrayMatrix[n.Word_WAC_1600]=new w;n.DefaultSetArrayMatrix[n.Outlook_WAC_1600]=new o;n.DefaultSetArrayMatrix[n.Outlook_WAC_1601]=new o;n.DefaultSetArrayMatrix[n.Project_RCLIENT_1600]=new y;n.DefaultSetArrayMatrix[n.Access_WAC_1600]=new d;n.DefaultSetArrayMatrix[n.PowerPoint_WAC_1600]=new b;n.DefaultSetArrayMatrix[n.Excel_IOS_1600]=new g;n.DefaultSetArrayMatrix[n.SWAY_WAC_1600]=new k;n.DefaultSetArrayMatrix[n.Word_IOS_1600]=new s;n.DefaultSetArrayMatrix[n.Word_IOS_16001]=new nt;n.DefaultSetArrayMatrix[n.PowerPoint_IOS_1600]=new tt;n.DefaultSetArrayMatrix[n.Outlook_IOS_1600]=new it},n.Excel_RCLIENT_1600="1-16.00",n.Excel_RCLIENT_1601="1-16.01",n.Word_RCLIENT_1600="2-16.00",n.Word_RCLIENT_1601="2-16.01",n.PowerPoint_RCLIENT_1600="4-16.00",n.PowerPoint_RCLIENT_1601="4-16.01",n.Outlook_RCLIENT_1600="8-16.00",n.Excel_WAC_1600="16-16.00",n.Word_WAC_1600="32-16.00",n.Outlook_WAC_1600="64-16.00",n.Outlook_WAC_1601="64-16.01",n.Project_RCLIENT_1600="128-16.00",n.Access_WAC_1600="256-16.00",n.PowerPoint_WAC_1600="512-16.00",n.Excel_IOS_1600="1024-16.00",n.SWAY_WAC_1600="2048-16.00",n.Word_IOS_1600="4096-16.00",n.Word_IOS_16001="4096-16.00.01",n.PowerPoint_IOS_1600="8192-16.00",n.Outlook_IOS_1600="65536-16.00",n.DefaultSetArrayMatrix={},n}();n.RequirementsMatrixFactory=rt})(t=n.Requirement||(n.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 t,n=!1;return{enableShortcut:function(){n||(window.Office?t=window.Office:OSF.OUtil.setNamespace("Office",window),window.Office=Microsoft.Office.WebExtension,n=!0)},disableShortcut:function(){n&&(t?window.Office=t:OSF.OUtil.unsetNamespace("Office",window),n=!1)}}}();OSF.NamespaceManager.enableShortcut();Microsoft.Office.WebExtension.useShortNamespace=function(n){n?OSF.NamespaceManager.enableShortcut():OSF.NamespaceManager.disableShortcut()};Microsoft.Office.WebExtension.select=function(n,t){var i,r,o,u,f,e;if(n&&typeof n=="string"&&(r=n.indexOf("#"),r!=-1)){o=n.substring(0,r);u=n.substring(r+1);switch(o){case"binding":case"bindings":u&&(i=new OSF.DDA.BindingPromise(u))}}if(i)return i.onFail=t,i;else if(t)if(f=typeof t,f=="function")e={},e[Microsoft.Office.WebExtension.Parameters.Callback]=t,OSF.DDA.issueAsyncResult(e,OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext,OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext));else throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,f);};OSF.DDA.Context=function(n,t,i,r,u){var o="requirements",f=this,s,e;OSF.OUtil.defineEnumerableProperties(f,{contentLanguage:{value:n.get_dataLocale()},displayLanguage:{value:n.get_appUILocale()},touchEnabled:{value:n.get_touchEnabled()},commerceAllowed:{value:n.get_commerceAllowed()}});i&&OSF.OUtil.defineEnumerableProperty(f,"license",{value:i});n.ui&&OSF.OUtil.defineEnumerableProperty(f,"ui",{value:n.ui});n.get_isDialog()?(e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(n),OSF.OUtil.defineEnumerableProperty(f,o,{value:e})):(t&&OSF.OUtil.defineEnumerableProperty(f,"document",{value:t}),r&&(s=r.displayName||"appOM",delete r.displayName,OSF.OUtil.defineEnumerableProperty(f,s,{value:r})),u&&OSF.OUtil.defineEnumerableProperty(f,"officeTheme",{get:function(){return u()}}),e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(n),OSF.OUtil.defineEnumerableProperty(f,o,{value:e}))};OSF.DDA.OutlookContext=function(n,t,i,r,u){OSF.DDA.OutlookContext.uber.constructor.call(this,n,null,i,r,u);t&&OSF.OUtil.defineEnumerableProperty(this,"roamingSettings",{value:t})};OSF.OUtil.extend(OSF.DDA.OutlookContext,OSF.DDA.Context);OSF.DDA.OutlookAppOm=function(){};OSF.DDA.Document=function(n,t){var i;switch(n.get_clientMode()){case OSF.ClientMode.ReadOnly:i=Microsoft.Office.WebExtension.DocumentMode.ReadOnly;break;case OSF.ClientMode.ReadWrite:i=Microsoft.Office.WebExtension.DocumentMode.ReadWrite}t&&OSF.OUtil.defineEnumerableProperty(this,"settings",{value:t});OSF.OUtil.defineMutableProperties(this,{mode:{value:i},url:{value:n.get_docUrl()}})};OSF.DDA.JsomDocument=function(n,t,i){var r=this,u;OSF.DDA.JsomDocument.uber.constructor.call(r,n,i);t&&OSF.OUtil.defineEnumerableProperty(r,"bindings",{get:function(){return t}});u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(r,[u.GetSelectedDataAsync,u.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(r,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 n;return OSF&&OSF._OfficeAppFactory&&(n=OSF._OfficeAppFactory.getContext()),n}});OSF.DDA.License=function(n){OSF.OUtil.defineEnumerableProperty(this,"value",{value:n})};OSF.DDA.ApiMethodCall=function(n,t,i,r,u){var f=this,e=n.length,o=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,u)});f.verifyArguments=function(n,t){var u,i,r;for(u in n){if(i=n[u],r=t[u],i["enum"])switch(typeof r){case"string":if(OSF.OUtil.listContainsValue(i["enum"],r))break;case"undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;default:throw o();}if(i.types&&!OSF.OUtil.listContainsValue(i.types,typeof r))throw o();}};f.extractRequiredArguments=function(t,i,r){var f,u,h,s,c,l;if(t.length<e)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(f=[],u=0;u<e;u++)f.push(t[u]);for(this.verifyArguments(n,f),h={},u=0;u<e;u++){if(s=n[u],c=f[u],s.verify&&(l=s.verify(c,i,r),!l))throw o();h[s.name]=c}return h};f.fillOptions=function(n,i,r,u){var o,f,e;n=n||{};for(o in t)OSF.OUtil.listContainsKey(n,o)||(f=undefined,e=t[o],e.calculate&&i&&(f=e.calculate(i,r,u)),f||e.defaultValue===undefined||(f=e.defaultValue),n[o]=f);return n};f.constructCallArgs=function(n,t,u,f){var e={},o,s,h;for(o in n)e[o]=n[o];for(s in t)e[s]=t[s];for(h in i)e[h]=i[h](u,f);return r&&(e=r(e,u,f)),e}};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(n){var t,i;for(t in n)i={},OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}}),OSF.DDA.AsyncMethodNames[t]=i};OSF.DDA.AsyncMethodCall=function(n,t,i,r,u,f,e){function c(n,i,r,u){var f,e,c,l;if(n.length>s+2)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(c=n.length-1;c>=s;c--){l=n[c];switch(typeof l){case"object":if(f)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else f=l;break;case h:if(e)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else e=l;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}if(f=o.fillOptions(f,i,r,u),e)if(f[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else f[Microsoft.Office.WebExtension.Parameters.Callback]=e;return o.verifyArguments(t,f),f}var h="function",s=n.length,o=new OSF.DDA.ApiMethodCall(n,t,i,f,e);this.verifyAndExtractCall=function(n,t,i){var r=o.extractRequiredArguments(n,t,i),u=c(n,r,t,i);return o.constructCallArgs(r,u,t,i)};this.processResponse=function(n,t,i,f){return n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?r?r(t,i,f):t:u?u(n,t):OSF.DDA.ErrorCodeManager.getErrorArgs(n)};this.getCallArgs=function(n){for(var t,u,r,i=n.length-1;i>=s;i--){r=n[i];switch(typeof r){case"object":t=r;break;case h:u=r}}return t=t||{},u&&(t[Microsoft.Office.WebExtension.Parameters.Callback]=u),t}};OSF.DDA.AsyncMethodCallFactory=function(){return{manufacture:function(n){var t=n.supportedOptions?OSF.OUtil.createObject(n.supportedOptions):[],i=n.privateStateCallbacks?OSF.OUtil.createObject(n.privateStateCallbacks):[];return new OSF.DDA.AsyncMethodCall(n.requiredArguments||[],t,i,n.onSucceeded,n.onFailed,n.checkCallArgs,n.method.displayName)}}}();OSF.DDA.AsyncMethodCalls={};OSF.DDA.AsyncMethodCalls.define=function(n){OSF.DDA.AsyncMethodCalls[n.method.id]=OSF.DDA.AsyncMethodCallFactory.manufacture(n)};OSF.DDA.Error=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{name:{value:n},message:{value:t},code:{value:i}})};OSF.DDA.AsyncResult=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{value:{value:n[OSF.DDA.AsyncResultEnum.Properties.Value]},status:{value:t?Microsoft.Office.WebExtension.AsyncResultStatus.Failed:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded}});n[OSF.DDA.AsyncResultEnum.Properties.Context]&&OSF.OUtil.defineEnumerableProperty(this,"asyncContext",{value:n[OSF.DDA.AsyncResultEnum.Properties.Context]});t&&OSF.OUtil.defineEnumerableProperty(this,"error",{value:new OSF.DDA.Error(t[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])})};OSF.DDA.issueAsyncResult=function(n,t,i){var f=n[Microsoft.Office.WebExtension.Parameters.Callback],u,r;f&&(u={},u[OSF.DDA.AsyncResultEnum.Properties.Context]=n[Microsoft.Office.WebExtension.Parameters.AsyncContext],t==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?u[OSF.DDA.AsyncResultEnum.Properties.Value]=i:(r={},i=i||OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError),r[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,r[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=i.name||i,r[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=i.message||i),f(new OSF.DDA.AsyncResult(u,r)))};OSF.DDA.SyncMethodNames={};OSF.DDA.SyncMethodNames.addNames=function(n){var t,i;for(t in n)i={},OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}}),OSF.DDA.SyncMethodNames[t]=i};OSF.DDA.SyncMethodCall=function(n,t,i,r,u){function o(n,i,r,u){var o,c,s,h;if(n.length>e+1)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(s=n.length-1;s>=e;s--){h=n[s];switch(typeof h){case"object":if(o)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else o=h;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}return o=f.fillOptions(o,i,r,u),f.verifyArguments(t,o),o}var e=n.length,f=new OSF.DDA.ApiMethodCall(n,t,i,r,u);this.verifyAndExtractCall=function(n,t,i){var r=f.extractRequiredArguments(n,t,i),u=o(n,r,t,i);return f.constructCallArgs(r,u,t,i)}};OSF.DDA.SyncMethodCallFactory=function(){return{manufacture:function(n){var t=n.supportedOptions?OSF.OUtil.createObject(n.supportedOptions):[];return new OSF.DDA.SyncMethodCall(n.requiredArguments||[],t,n.privateStateCallbacks,n.checkCallArgs,n.method.displayName)}}}();OSF.DDA.SyncMethodCalls={};OSF.DDA.SyncMethodCalls.define=function(n){OSF.DDA.SyncMethodCalls[n.method.id]=OSF.DDA.SyncMethodCallFactory.manufacture(n)};OSF.DDA.ListType=function(){var n={};return{setListType:function(t,i){n[t]=i},isListType:function(t){return OSF.OUtil.listContainsKey(n,t)},getDescriptor:function(t){return n[t]}}}();OSF.DDA.HostParameterMap=function(n,t){function e(i,f){var a=i?{}:undefined,s,h,o,v,c,l;for(s in i){if(h=i[s],OSF.DDA.ListType.isListType(s)){o=[];for(v in h)o.push(e(h[v],f))}else OSF.OUtil.listContainsKey(r,s)?o=r[s][f](h):f==u&&n.preserveNesting(s)?o=e(h,f):(c=t[s],c?(l=c[f],l&&(o=l[h],o===undefined&&(o=h))):o=h);a[s]=o}return a}function l(i,r){var e,u,h,s;for(u in r)h=n.isComplexType(u)?l(i,t[u][o]):i[u],h!=undefined&&(e||(e={}),s=r[u],s==f&&(s=u),e[s]=n.pack(u,h));return e}function s(i,r,e){var o,a,h,l,p,v,y;e||(e={});for(o in r){if(a=r[o],a==f)h=i;else if(a==c){e[o]=i.toArray();continue}else h=i[a];if(h===null||h===undefined)e[o]=undefined;else if(h=n.unpack(o,h),n.isComplexType(o))l=t[o][u],n.preserveNesting(o)?e[o]=s(h,l):s(h,l,e);else if(OSF.DDA.ListType.isListType(o)){l={};p=OSF.DDA.ListType.getDescriptor(o);l[p]=f;v=new Array(h.length);for(y in h)v[y]=s(h[y],l);e[o]=v}else e[o]=h}return e}function a(n,i,r){var f=t[n][r],u,o,c;return r=="toHost"?(o=e(i,r),u=l(o,f)):r==h&&(c=s(i,f),u=e(c,r)),u}var h="fromHost",i=this,o="toHost",u=h,c="sourceData",f="self",r={};r[Microsoft.Office.WebExtension.Parameters.Data]={toHost:function(n){if(n!=null&&n.rows!==undefined){var t={};t[OSF.DDA.TableDataProperties.TableRows]=n.rows;t[OSF.DDA.TableDataProperties.TableHeaders]=n.headers;n=t}return n},fromHost:function(n){return n}};r[Microsoft.Office.WebExtension.Parameters.SampleData]=r[Microsoft.Office.WebExtension.Parameters.Data];t||(t={});i.addMapping=function(n,i){var e,h,c,l,r,s,a,v;if(i.map){e=i.map;h={};for(c in e)l=e[c],l==f&&(l=c),h[l]=c}else e=i.toHost,h=i.fromHost;if(r=t[n],r){s=r[o];for(a in s)e[a]=s[a];s=r[u];for(v in s)h[v]=s[v]}else r=t[n]={};r[o]=e;r[u]=h};i.toHost=function(n,t){return a(n,t,o)};i.fromHost=function(n,t){return a(n,t,u)};i.self=f;i.sourceData=c;i.addComplexType=function(t){n.addComplexType(t)};i.getDynamicType=function(t){return n.getDynamicType(t)};i.setDynamicType=function(t,i){n.setDynamicType(t,i)};i.dynamicTypes=r;i.doMapValues=function(n,t){return e(n,t)}};OSF.DDA.SpecialProcessor=function(n,t){var i=this;i.addComplexType=function(t){n.push(t)};i.getDynamicType=function(n){return t[n]};i.setDynamicType=function(n,i){t[n]=i};i.isComplexType=function(t){return OSF.OUtil.listContainsValue(n,t)};i.isDynamicType=function(n){return OSF.OUtil.listContainsKey(t,n)};i.preserveNesting=function(n){var t=[];return OSF.DDA.PropertyDescriptors&&t.push(OSF.DDA.PropertyDescriptors.Subset),OSF.DDA.DataNodeEventProperties&&(t=t.concat([OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode])),OSF.OUtil.listContainsValue(t,n)};i.pack=function(n,i){return this.isDynamicType(n)?t[n].toHost(i):i};i.unpack=function(n,i){return this.isDynamicType(n)?t[n].fromHost(i):i}};OSF.DDA.getDecoratedParameterMap=function(n,t){function r(n){var i=null,r,t;if(n)for(i={},r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value;return i}var i=new OSF.DDA.HostParameterMap(n),f=i.self,u;i.define=function(n){var t={},u=r(n.toHost);n.invertible?t.map=u:n.canonical?t.toHost=t.fromHost=u:(t.toHost=u,t.fromHost=r(n.fromHost));i.addMapping(n.type,t);n.isComplexType&&i.addComplexType(n.type)};for(u in t)i.define(t[u]);return i};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(n,t){function o(n,t,i,r){if(typeof n=="number")r||(r=t.getCallArgs(i)),OSF.DDA.issueAsyncResult(r,n,OSF.DDA.ErrorCodeManager.getErrorArgs(n));else throw n;}var s=null,e=this,r={},u=OSF.DDA.AsyncMethodNames,i=OSF.DDA.MethodDispId,a={GoToByIdAsync:i.dispidNavigateToMethod,GetSelectedDataAsync:i.dispidGetSelectedDataMethod,SetSelectedDataAsync:i.dispidSetSelectedDataMethod,GetDocumentCopyChunkAsync:i.dispidGetDocumentCopyChunkMethod,ReleaseDocumentCopyAsync:i.dispidReleaseDocumentCopyMethod,GetDocumentCopyAsync:i.dispidGetDocumentCopyMethod,AddFromSelectionAsync:i.dispidAddBindingFromSelectionMethod,AddFromPromptAsync:i.dispidAddBindingFromPromptMethod,AddFromNamedItemAsync:i.dispidAddBindingFromNamedItemMethod,GetAllAsync:i.dispidGetAllBindingsMethod,GetByIdAsync:i.dispidGetBindingMethod,ReleaseByIdAsync:i.dispidReleaseBindingMethod,GetDataAsync:i.dispidGetBindingDataMethod,SetDataAsync:i.dispidSetBindingDataMethod,AddRowsAsync:i.dispidAddRowsMethod,AddColumnsAsync:i.dispidAddColumnsMethod,DeleteAllDataValuesAsync:i.dispidClearAllRowsMethod,RefreshAsync:i.dispidLoadSettingsMethod,SaveAsync:i.dispidSaveSettingsMethod,GetActiveViewAsync:i.dispidGetActiveViewMethod,GetFilePropertiesAsync:i.dispidGetFilePropertiesMethod,GetOfficeThemeAsync:i.dispidGetOfficeThemeMethod,GetDocumentThemeAsync:i.dispidGetDocumentThemeMethod,ClearFormatsAsync:i.dispidClearFormatsMethod,SetTableOptionsAsync:i.dispidSetTableOptionsMethod,SetFormatsAsync:i.dispidSetFormatsMethod,ExecuteRichApiRequestAsync:i.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:i.dispidAppCommandInvocationCompletedMethod,CloseContainerAsync:i.dispidCloseContainerMethod,AddDataPartAsync:i.dispidAddDataPartMethod,GetDataPartByIdAsync:i.dispidGetDataPartByIdMethod,GetDataPartsByNameSpaceAsync:i.dispidGetDataPartsByNamespaceMethod,GetPartXmlAsync:i.dispidGetDataPartXmlMethod,GetPartNodesAsync:i.dispidGetDataPartNodesMethod,DeleteDataPartAsync:i.dispidDeleteDataPartMethod,GetNodeValueAsync:i.dispidGetDataNodeValueMethod,GetNodeXmlAsync:i.dispidGetDataNodeXmlMethod,GetRelativeNodesAsync:i.dispidGetDataNodesMethod,SetNodeValueAsync:i.dispidSetDataNodeValueMethod,SetNodeXmlAsync:i.dispidSetDataNodeXmlMethod,AddDataPartNamespaceAsync:i.dispidAddDataNamespaceMethod,GetDataPartNamespaceAsync:i.dispidGetDataUriByPrefixMethod,GetDataPartPrefixAsync:i.dispidGetDataPrefixByUriMethod,GetNodeTextAsync:i.dispidGetDataNodeTextMethod,SetNodeTextAsync:i.dispidSetDataNodeTextMethod,GetSelectedTask:i.dispidGetSelectedTaskMethod,GetTask:i.dispidGetTaskMethod,GetWSSUrl:i.dispidGetWSSUrlMethod,GetTaskField:i.dispidGetTaskFieldMethod,GetSelectedResource:i.dispidGetSelectedResourceMethod,GetResourceField:i.dispidGetResourceFieldMethod,GetProjectField:i.dispidGetProjectFieldMethod,GetSelectedView:i.dispidGetSelectedViewMethod,GetTaskByIndex:i.dispidGetTaskByIndexMethod,GetResourceByIndex:i.dispidGetResourceByIndexMethod,SetTaskField:i.dispidSetTaskFieldMethod,SetResourceField:i.dispidSetResourceFieldMethod,GetMaxTaskIndex:i.dispidGetMaxTaskIndexMethod,GetMaxResourceIndex:i.dispidGetMaxResourceIndexMethod,CreateTask:i.dispidCreateTaskMethod},c,f,l,h;for(f in a)u[f]&&(r[u[f].id]=a[f]);u=OSF.DDA.SyncMethodNames;i=OSF.DDA.MethodDispId;c={MessageParent:i.dispidMessageParentMethod,SendMessage:i.dispidSendMessageMethod};for(f in c)u[f]&&(r[u[f].id]=c[f]);u=Microsoft.Office.WebExtension.EventType;i=OSF.DDA.EventDispId;l={SettingsChanged:i.dispidSettingsChangedEvent,DocumentSelectionChanged:i.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:i.dispidBindingSelectionChangedEvent,BindingDataChanged:i.dispidBindingDataChangedEvent,ActiveViewChanged:i.dispidActiveViewChangedEvent,OfficeThemeChanged:i.dispidOfficeThemeChangedEvent,DocumentThemeChanged:i.dispidDocumentThemeChangedEvent,AppCommandInvoked:i.dispidAppCommandInvokedEvent,DialogMessageReceived:i.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:i.dispidDialogParentMessageReceivedEvent,ItemChanged:i.dispidOlkItemSelectedChangedEvent,TaskSelectionChanged:i.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:i.dispidResourceSelectionChangedEvent,ViewSelectionChanged:i.dispidViewSelectionChangedEvent,DataNodeInserted:i.dispidDataNodeAddedEvent,DataNodeReplaced:i.dispidDataNodeReplacedEvent,DataNodeDeleted:i.dispidDataNodeDeletedEvent};for(h in l)u[h]&&(r[u[h]]=l[h]);e[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(i,u,f,e){var h,l,a,y,p,w;try{l=i.id;a=OSF.DDA.AsyncMethodCalls[l];h=a.verifyAndExtractCall(u,f,e);var v=r[l],b=n(l),c=s;window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0);window.Excel&&window.Excel._RedirectV1APIs&&(c=window.Excel._V1APIMap[l])?(c.preprocess&&(h=c.preprocess(h)),y=new window.Excel.RequestContext,p=c.call(y,h),y.sync().then(function(){var n=p.value,t=n.status;delete n.status;delete n["@odata.type"];c.postprocess&&(n=c.postprocess(n,h));t!=0&&(n=OSF.DDA.ErrorCodeManager.getErrorArgs(t));OSF.DDA.issueAsyncResult(h,t,n)})["catch"](function(){OSF.DDA.issueAsyncResult(h,OSF.DDA.ErrorCodeManager.errorCodes.ooeFailure,s)})):(w=t.toHost?t.toHost(v,h):h,b[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:v,hostCallArgs:w,onCalling:function(){},onReceiving:function(){},onComplete:function(n,i){var r,u;r=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?t.fromHost?t.fromHost(v,i):i:i;u=a.processResponse(n,r,f,h);OSF.DDA.issueAsyncResult(h,n,u)}}))}catch(k){o(k,a,u,h)}};e[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(i,u,f){function a(n){var t,i;n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=u.addEventHandler(e,l),t||(n=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed));n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(i=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(s,n,i)}var s,e,l,h,c,v;try{h=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id];s=h.verifyAndExtractCall(i,f,u);e=s[Microsoft.Office.WebExtension.Parameters.EventType];l=s[Microsoft.Office.WebExtension.Parameters.Handler];u.getEventHandlerCount(e)==0?(c=r[e],v=n(e)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync],v({eventType:e,dispId:c,targetId:f.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:a,onEvent:function(n){var i=t.fromHost(c,n);u.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(e,f,i))}})):a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(y){o(y,h,i,s)}};e[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(t,i,u){function v(n){var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(e,n,t)}var e,f,c,l,a,h,y,p;try{l=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];e=l.verifyAndExtractCall(t,u,i);f=e[Microsoft.Office.WebExtension.Parameters.EventType];c=e[Microsoft.Office.WebExtension.Parameters.Handler];c===s?(h=i.clearEventHandlers(f),a=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess):(h=i.removeEventHandler(f,c),a=h?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist);h&&i.getEventHandlerCount(f)==0?(y=r[f],p=n(f)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync],p({eventType:f,dispId:y,targetId:u.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:v})):v(a)}catch(w){o(w,l,t,e)}};e[OSF.DDA.DispIdHost.Methods.OpenDialog]=function(i,u,f){function v(n){var t,i;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?i=OSF.DDA.ErrorCodeManager.getErrorArgs(n):(t={},t[Microsoft.Office.WebExtension.Parameters.Id]=a,t[Microsoft.Office.WebExtension.Parameters.Data]=u,i=l.processResponse(n,t,f,h),OSF.DialogShownStatus.hasDialogShown=!0,u.clearEventHandlers(e),u.clearEventHandlers(c));OSF.DDA.issueAsyncResult(h,n,i)}var h,a,e=Microsoft.Office.WebExtension.EventType.DialogMessageReceived,c=Microsoft.Office.WebExtension.EventType.DialogEventReceived,l;try{if((e==undefined||c==undefined)&&v(OSF.DDA.ErrorCodeManager.ooeOperationNotSupported),OSF.DDA.AsyncMethodNames.DisplayDialogAsync==s){v(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);return}l=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.DisplayDialogAsync.id];h=l.verifyAndExtractCall(i,f,u);var p=r[e],y=n(e),w=y[OSF.DDA.DispIdHost.Delegates.OpenDialog]!=undefined?y[OSF.DDA.DispIdHost.Delegates.OpenDialog]:y[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];a=JSON.stringify(h);w({eventType:e,dispId:p,targetId:a,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:v,onEvent:function(n){var s=t.fromHost(p,n),o=OSF.DDA.OMFactory.manufactureEventArgs(e,f,s),r,i;o.type==c&&(r=OSF.DDA.ErrorCodeManager.getErrorArgs(o.error),i={},i[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=status||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,i[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=r.name||r,i[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=r.message||r,o.error=new OSF.DDA.Error(i[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],i[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],i[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]));u.fireOrQueueEvent(o);s[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogClosed&&(u.clearEventHandlers(e),u.clearEventHandlers(c),u.clearEventHandlers(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived),OSF.DialogShownStatus.hasDialogShown=!1)}})}catch(b){o(b,l,i,h)}};e[OSF.DDA.DispIdHost.Methods.CloseDialog]=function(t,i,u,f){function v(n){s=n;OSF.DialogShownStatus.hasDialogShown=!1}var l,e,a,s=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,h;try{h=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.CloseAsync.id];l=h.verifyAndExtractCall(t,f,u);e=Microsoft.Office.WebExtension.EventType.DialogMessageReceived;a=Microsoft.Office.WebExtension.EventType.DialogEventReceived;u.clearEventHandlers(e);u.clearEventHandlers(a);var y=r[e],c=n(e),p=c[OSF.DDA.DispIdHost.Delegates.CloseDialog]!=undefined?c[OSF.DDA.DispIdHost.Delegates.CloseDialog]:c[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];p({eventType:e,dispId:y,targetId:i,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:v})}catch(w){o(w,h,t,l)}if(s!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)throw OSF.OUtil.formatString(Strings.OfficeOM.L_FunctionCallFailed,OSF.DDA.AsyncMethodNames.CloseAsync.displayName,s);};e[OSF.DDA.DispIdHost.Methods.MessageParent]=function(t,i){var u={},f=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.MessageParent.id],e=f.verifyAndExtractCall(t,i,u),o=n(OSF.DDA.SyncMethodNames.MessageParent.id),s=o[OSF.DDA.DispIdHost.Delegates.MessageParent],h=r[OSF.DDA.SyncMethodNames.MessageParent.id];return s({dispId:h,hostCallArgs:e,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})};e[OSF.DDA.DispIdHost.Methods.SendMessage]=function(t,i,u){var f={},e=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.SendMessage.id],o=e.verifyAndExtractCall(t,u,f),s=n(OSF.DDA.SyncMethodNames.SendMessage.id),h=s[OSF.DDA.DispIdHost.Delegates.SendMessage],c=r[OSF.DDA.SyncMethodNames.SendMessage.id];return h({dispId:c,hostCallArgs:o,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})}};OSF.DDA.DispIdHost.addAsyncMethods=function(n,t,i){var f,r,u;for(f in t)r=t[f],u=r.displayName,n[u]||OSF.OUtil.defineEnumerableProperty(n,u,{value:function(t){return function(){var r=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.InvokeMethod];r(t,arguments,n,i)}}(r)})};OSF.DDA.DispIdHost.addEventSupport=function(n,t){var i=OSF.DDA.AsyncMethodNames.AddHandlerAsync.displayName,r=OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.displayName;n[i]||OSF.OUtil.defineEnumerableProperty(n,i,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.AddEventHandler];i(arguments,t,n)}});n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];i(arguments,t,n)}})},function(n){var e="\n",i=!0,t=null,r="undefined",h=function(){function n(){}return n.isInstanceOfType=function(n,u){if(typeof u===r||u===t)return!1;if(u instanceof n)return i;var f=u.constructor;return f&&typeof f=="function"&&f.__typeName&&f.__typeName!=="Object"||(f=Object),!!(f===n)||f.__typeName&&n.__typeName&&f.__typeName===n.__typeName},n}(),o,u,s,f;n.MsAjaxTypeHelper=h;o=function(){function n(){}var i="Parameter name: {0}";return n.create=function(n,t){var i=new Error(n),r;if(i.message=n,t)for(r in t)i[r]=t[r];return i.popStackFrame(),i},n.parameterCount=function(t){var r="Sys.ParameterCountException: "+(t?t:"Parameter count mismatch."),i=n.create(r,{name:"Sys.ParameterCountException"});return i.popStackFrame(),i},n.argument=function(t,r){var o="Sys.ArgumentException: "+(r?r:"Value does not fall within the expected range."),f;return t&&(o+=e+u.format(i,t)),f=n.create(o,{name:"Sys.ArgumentException",paramName:t}),f.popStackFrame(),f},n.argumentNull=function(t,r){var o="Sys.ArgumentNullException: "+(r?r:"Value cannot be null."),f;return t&&(o+=e+u.format(i,t)),f=n.create(o,{name:"Sys.ArgumentNullException",paramName:t}),f.popStackFrame(),f},n.argumentOutOfRange=function(f,o,s){var h="Sys.ArgumentOutOfRangeException: "+(s?s:"Specified argument was out of the range of valid values."),c;return f&&(h+=e+u.format(i,f)),typeof o!==r&&o!==t&&(h+=e+u.format("Actual value was {0}.",o)),c=n.create(h,{name:"Sys.ArgumentOutOfRangeException",paramName:f,actualValue:o}),c.popStackFrame(),c},n.argumentType=function(t,r,f,o){var s="Sys.ArgumentTypeException: ",h;return s+=o?o:r&&f?u.format("Object of type '{0}' cannot be converted to type '{1}'.",r.getName?r.getName():r,f.getName?f.getName():f):"Object cannot be converted to the required type.",t&&(s+=e+u.format(i,t)),h=n.create(s,{name:"Sys.ArgumentTypeException",paramName:t,actualType:r,expectedType:f}),h.popStackFrame(),h},n.argumentUndefined=function(t,r){var o="Sys.ArgumentUndefinedException: "+(r?r:"Value cannot be undefined."),f;return t&&(o+=e+u.format(i,t)),f=n.create(o,{name:"Sys.ArgumentUndefinedException",paramName:t}),f.popStackFrame(),f},n.invalidOperation=function(t){var r="Sys.InvalidOperationException: "+(t?t:"Operation is not valid due to the current state of the object."),i=n.create(r,{name:"Sys.InvalidOperationException"});return i.popStackFrame(),i},n}();n.MsAjaxError=o;u=function(){function n(){}return n.format=function(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r=n,r.replace(/{(\d+)}/gm,function(n,t){var r=parseInt(t,10);return i[r]===undefined?"{"+t+"}":i[r]})},n.startsWith=function(n,t){return n.substr(0,t.length)===t},n}();n.MsAjaxString=u;s=function(){function n(){}return n.trace=function(){},n}();n.MsAjaxDebug=s;OsfMsAjaxFactory.isMsAjaxLoaded()||(f=function(n,t,i){n.__typeName===undefined&&(n.__typeName=t);n.__class===undefined&&(n.__class=i)},f(Function,"Function",i),f(Error,"Error",i),f(Object,"Object",i),f(String,"String",i),f(Boolean,"Boolean",i),f(Date,"Date",i),f(Number,"Number",i),f(RegExp,"RegExp",i),f(Array,"Array",i),Function.createCallback||(Function.createCallback=function(n,t){var r=Function._validateParams(arguments,[{name:"method",type:Function},{name:"context",mayBeNull:i}]);if(r)throw r;return function(){var u=arguments.length,r,i;if(u>0){for(r=[],i=0;i<u;i++)r[i]=arguments[i];return r[u]=t,n.apply(this,r)}return n.call(this,t)}}),Function.createDelegate||(Function.createDelegate=function(n,t){var r=Function._validateParams(arguments,[{name:"instance",mayBeNull:i},{name:"method",type:Function}]);if(r)throw r;return function(){return t.apply(n,arguments)}}),Function._validateParams||(Function._validateParams=function(n,i,u){var f,s=i.length,e,c,o,h;if(u=u||typeof u===r,f=Function._validateParameterCount(n,i,u),f)return f.popStackFrame(),f;for(e=0,c=n.length;e<c;e++){if(o=i[Math.min(e,s-1)],h=o.name,o.parameterArray)h+="["+(e-s+1)+"]";else if(!u&&e>=s)break;if(f=Function._validateParameter(n[e],o,h),f)return f.popStackFrame(),f}return t}),Function._validateParameterCount||(Function._validateParameterCount=function(n,r,u){var f,s,e=r.length,h=n.length,c,l,a;if(h<e){for(c=e,f=0;f<e;f++)l=r[f],(l.optional||l.parameterArray)&&c--;h<c&&(s=i)}else if(u&&h>e)for(s=i,f=0;f<e;f++)if(r[f].parameterArray){s=!1;break}return s?(a=o.parameterCount(),a.popStackFrame(),a):t}),Function._validateParameter||(Function._validateParameter=function(n,i,u){var f,h=i.type,l=!!i.integer,a=!!i.domElement,v=!!i.mayBeNull,o,s,c;if(f=Function._validateParameterType(n,h,l,a,v,u),f)return f.popStackFrame(),f;if(o=i.elementType,s=!!i.elementMayBeNull,h===Array&&typeof n!==r&&n!==t&&(o||!s))for(var y=!!i.elementInteger,p=!!i.elementDomElement,e=0;e<n.length;e++)if(c=n[e],f=Function._validateParameterType(c,o,y,p,s,u+"["+e+"]"),f)return f.popStackFrame(),f;return t}),Function._validateParameterType||(Function._validateParameterType=function(i,u,f,e,o,s){var h,c;return typeof i===r?o?t:(h=n.MsAjaxError.argumentUndefined(s),h.popStackFrame(),h):i===t?o?t:(h=n.MsAjaxError.argumentNull(s),h.popStackFrame(),h):u&&!n.MsAjaxTypeHelper.isInstanceOfType(u,i)?(h=n.MsAjaxError.argumentType(s,typeof i,u),h.popStackFrame(),h):t}),window.Type||(window.Type=Function),Type.registerNamespace||(Type.registerNamespace=function(n){for(var i=n.split("."),r=window,t=0;t<i.length;t++)r[i[t]]=r[i[t]]||{},r=r[i[t]]}),Type.prototype.registerClass||(Type.prototype.registerClass=function(n){n={}}),typeof Sys===r&&Type.registerNamespace("Sys"),Error.prototype.popStackFrame||(Error.prototype.popStackFrame=function(){var n=this,s,u;if(arguments.length!==0)throw o.parameterCount();if(typeof n.stack!==r&&n.stack!==t&&typeof n.fileName!==r&&n.fileName!==t&&typeof n.lineNumber!==r&&n.lineNumber!==t){for(var i=n.stack.split(e),f=i[0],h=n.fileName+":"+n.lineNumber;typeof f!==r&&f!==t&&f.indexOf(h)===-1;)i.shift(),f=i[0];(s=i[1],typeof s!==r&&s!==t)&&(u=s.match(/@(.*):(\d+)$/),typeof u!==r&&u!==t)&&(n.fileName=u[1],n.lineNumber=parseInt(u[2]),i.shift(),n.stack=i.join(e))}}),OsfMsAjaxFactory.msAjaxError=o,OsfMsAjaxFactory.msAjaxString=u,OsfMsAjaxFactory.msAjaxDebug=s)}(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(n,t){var i,r=n.number;if(r)switch(r){case-2146828218:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2147467259:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened;break;case-2146828283:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2147209089:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2146827850:default:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}t.onComplete&&t.onComplete(i||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod=function(n){var t,i=n.number;if(i)switch(i){case-2146828218:t=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2146827850:default:t=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}return t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError};OSF.DDA.SafeArray.Delegate.SpecialProcessor=function(){function n(n){var t,e,i,r,u,f,o;try{if(e=n.ubound(1),i=n.ubound(2),n=n.toArray(),e==1&&i==1)t=[n];else for(t=[],r=0;r<e;r++){for(u=[],f=0;f<i;f++)o=n[r*i+f],o!=OSF.DDA.SafeArray.UniqueArguments.MergedCellGuid&&u.push(o);u.length>0&&t.push(u)}}catch(s){}return t}var i=[],t={};t[Microsoft.Office.WebExtension.Parameters.Data]=function(){var t=0,i=1;return{toHost:function(n){if(OSF.DDA.TableDataProperties&&typeof n!="string"&&n[OSF.DDA.TableDataProperties.TableRows]!==undefined){var r=[];r[t]=n[OSF.DDA.TableDataProperties.TableRows];r[i]=n[OSF.DDA.TableDataProperties.TableHeaders];n=r}return n},fromHost:function(r){var f,e,u;return r.toArray?(e=r.dimensions(),e===2?f=n(r):(u=r.toArray(),u.length===2&&(u[0]!=null&&u[0].toArray||u[1]!=null&&u[1].toArray)?(f={},f[OSF.DDA.TableDataProperties.TableRows]=n(u[t]),f[OSF.DDA.TableDataProperties.TableHeaders]=n(u[i])):f=u)):f=r,f}}}();OSF.DDA.SafeArray.Delegate.SpecialProcessor.uber.constructor.call(this,i,t);this.unpack=function(n,i){var r,u;return this.isComplexType(n)||OSF.DDA.ListType.isListType(n)?(u=(i||typeof i=="unknown")&&i.toArray,r=u?i.toArray():i||{}):r=this.isDynamicType(n)?t[n].fromHost(i):i,r}};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(n){function t(n){var i=n,f,r,u;if(OSF.OUtil.isArray(n))for(f=i.length,r=0;r<f;r++)i[r]=t(i[r]);else if(OSF.OUtil.isDate(n))i=n.getVarDate();else if(typeof n=="object"&&!OSF.OUtil.isArray(n)){i=[];for(u in n)OSF.OUtil.isFunction(n[u])||(i[u]=t(n[u]))}return i}function i(n){var u=n,r,t;if(n!=null&&n.toArray)for(r=n.toArray(),u=new Array(r.length),t=0;t<r.length;t++)u[t]=i(r[t]);return u}try{n.onCalling&&n.onCalling();var r=(new Date).getTime();OSF.ClientHostController.execute(n.dispId,t(n.hostCallArgs),function(t){var f=t.toArray(),e=f[OSF.DDA.SafeArray.Response.Status],u,o,s;if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeChunkResult)return u=f[OSF.DDA.SafeArray.Response.Payload],u=i(u),u!=null&&(n._chunkResultData||(n._chunkResultData=[]),n._chunkResultData[u[0]]=u[1]),!1;if(n.onReceiving&&n.onReceiving(),n.onComplete){if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){if(f.length>2)for(u=[],o=1;o<f.length;o++)u[o-1]=f[o];else u=f[OSF.DDA.SafeArray.Response.Payload];n._chunkResultData&&(u=i(u),u!=null&&(s=u[u.length-1],n._chunkResultData.length==s?u[u.length-1]=n._chunkResultData:e=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError))}else u=f[OSF.DDA.SafeArray.Response.Payload];n.onComplete(e,u)}return OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(n.dispId,n.hostCallArgs,Math.abs((new Date).getTime()-r),e),!0})}catch(u){OSF.DDA.SafeArray.Delegate._onException(u,n)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(n,t){var i=(new Date).getTime();return function(r){t.onReceiving&&t.onReceiving();var u=r.toArray?r.toArray()[OSF.DDA.SafeArray.Response.Status]:r;t.onComplete&&t.onComplete(u);OSF.AppTelemetry&&OSF.AppTelemetry.onRegisterDone(n,t.dispId,Math.abs((new Date).getTime()-i),u)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);try{OSF.ClientHostController.registerEvent(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{OSF.ClientHostController.unregisterEvent(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};OSF.InitializationHelper=function(n,t,i,r,u){var f=this;f._hostInfo=n;f._webAppState=t;f._context=i;f._settings=r;f._hostFacade=u;f._initializeSettings=f.initializeSettings};OSF.InitializationHelper.prototype.deserializeSettings=function(n,t){var r=OSF.OUtil.getSessionStorage(),i,u;return r&&(i=r.getItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey()),i?n=JSON.parse(i):(i=JSON.stringify(n),r.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),i))),u=OSF.DDA.SettingsManager.deserializeSettings(n),t?new OSF.DDA.RefreshableSettings(u):new OSF.DDA.Settings(u)};OSF.InitializationHelper.prototype.saveAndSetDialogInfo=function(){};OSF.InitializationHelper.prototype.setAgaveHostCommunication=function(){};OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(n){this.prepareApiSurface(n);Microsoft.Office.WebExtension.initialize(this.getInitializationReason(n))};OSF.InitializationHelper.prototype.prepareApiSurface=function(n){var r=new OSF.DDA.License(n.get_eToken()),u=OSF.DDA.OfficeTheme&&OSF.DDA.OfficeTheme.getOfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null,t,i;n.get_isDialog()?OSF.DDA.UI.ChildUI&&(n.ui=new OSF.DDA.UI.ChildUI):OSF.DDA.UI.ParentUI&&(n.ui=new OSF.DDA.UI.ParentUI,OfficeExt.Container&&OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.CloseContainerAsync]));OSF._OfficeAppFactory.setContext(new OSF.DDA.Context(n,n.doc,r,null,u));t=OSF.DDA.DispIdHost.getClientDelegateMethods;i=OSF.DDA.SafeArray.Delegate.ParameterMap;OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(t,i))};OSF.InitializationHelper.prototype.getInitializationReason=function(n){return OSF.DDA.RichInitializationReason[n.get_reason()]};OSF.DDA.DispIdHost.getClientDelegateMethods=function(n){var t={},i,r;return t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync,t[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync,t[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync,t[OSF.DDA.DispIdHost.Delegates.OpenDialog]=OSF.DDA.SafeArray.Delegate.openDialog,t[OSF.DDA.DispIdHost.Delegates.CloseDialog]=OSF.DDA.SafeArray.Delegate.closeDialog,t[OSF.DDA.DispIdHost.Delegates.MessageParent]=OSF.DDA.SafeArray.Delegate.messageParent,OSF.DDA.AsyncMethodNames.RefreshAsync&&n==OSF.DDA.AsyncMethodNames.RefreshAsync.id&&(i=function(n,t,i){return OSF.DDA.ClientSettingsManager.read(t,i)},t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(i)),OSF.DDA.AsyncMethodNames.SaveAsync&&n==OSF.DDA.AsyncMethodNames.SaveAsync.id&&(r=function(n,t,i){return OSF.DDA.ClientSettingsManager.write(n[OSF.DDA.SettingsManager.SerializedSettings],n[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],t,i)},t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(r)),t},function(n){var t=function(){function n(){}return n.prototype.execute=function(n,t,i){setTimeout(function(){window.external.Execute(n,t,i)},0)},n.prototype.registerEvent=function(n,t,i,r){setTimeout(function(){window.external.RegisterEvent(n,t,i,r)},0)},n.prototype.unregisterEvent=function(n,t,i){setTimeout(function(){window.external.UnregisterEvent(n,t,i)},0)},n.prototype.openDialog=function(t,i,r,u){function l(i){if(i.source==n.popup)try{var u=JSON.parse(i.data);u.dialogMessage&&r(t,[OSF.DialogMessageType.DialogMessageReceived,u.dialogMessage.messageContent])}catch(f){OsfMsAjaxFactory.msAjaxDebug.trace("messages received cannot be handlered. Message:"+i.data)}}function b(){try{(n.popup==null||n.popup.closed)&&(window.clearInterval(a),window.removeEventListener("message",l),r(t,[OSF.DialogMessageType.DialogClosed]))}catch(i){OsfMsAjaxFactory.msAjaxDebug.trace("Error happened when popup window closed.")}}var v="action=displayDialog",s="#",e=JSON.parse(i),h=e.url,f,o,c,a;if(h){f=h.split(s);o="?";f[0].indexOf("?")>-1&&(o="&");var y=screen.width*e.width/100,p=screen.height*e.height/100,w="width="+y+", height="+p;f[0]=f[0].concat(o).concat(v);c=f.join(s);n.popup=window.open(c,"",w);window.addEventListener("message",l);a=window.setInterval(b,1e3);u(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}},n.prototype.messageParent=function(n){var t=n[Microsoft.Office.WebExtension.Parameters.MessageToParent],i={dialogMessage:{messageType:OSF.DialogMessageType.DialogMessageReceived,messageContent:t}};window.opener.postMessage(JSON.stringify(i),window.location.origin)},n.prototype.closeDialog=function(t,i,r){n.popup?(n.popup.close(),r(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)):r(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)},n}();n.MacRichClientHostController=t}(OfficeExt||(OfficeExt={}));OSF.ClientHostController=new OfficeExt.MacRichClientHostController,function(n){var t;(function(t){var i=function(){function n(){this._osfOfficeTheme=t;this._osfOfficeThemeTimeStamp=t}var t=null;return n.prototype.getOfficeTheme=function(){var r="GetOfficeThemeInfo",t=this,i;if(OSF.DDA._OsfControlContext){if(t._osfOfficeTheme&&t._osfOfficeThemeTimeStamp&&(new Date).getTime()-t._osfOfficeThemeTimeStamp<n._osfOfficeThemeCacheValidPeriod)OSF.AppTelemetry&&OSF.AppTelemetry.onPropertyDone(r,0);else{var f=(new Date).getTime(),e=OSF.DDA._OsfControlContext.GetOfficeThemeInfo(),u=(new Date).getTime();OSF.AppTelemetry&&OSF.AppTelemetry.onPropertyDone(r,Math.abs(u-f));t._osfOfficeTheme=JSON.parse(e);for(i in t._osfOfficeTheme)t._osfOfficeTheme[i]=OSF.OUtil.convertIntToCssHexColor(t._osfOfficeTheme[i]);t._osfOfficeThemeTimeStamp=u}return t._osfOfficeTheme}},n.instance=function(){return n._instance==t&&(n._instance=new n),n._instance},n._osfOfficeThemeCacheValidPeriod=5e3,n._instance=t,n}();t.OfficeThemeManager=i;OSF.OUtil.setNamespace("OfficeTheme",OSF.DDA);OSF.DDA.OfficeTheme.getOfficeTheme=n.OfficeTheme.OfficeThemeManager.instance().getOfficeTheme})(t=n.OfficeTheme||(n.OfficeTheme={}))}(OfficeExt||(OfficeExt={}));OSF.DDA.ClientSettingsManager={getSettingsExecuteMethod:function(n){return function(t){var i,r;try{r=n(t.hostCallArgs,t.onCalling,t.onReceiving);i=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}catch(u){i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;r={name:Strings.OfficeOM.L_InternalError,message:u}}t.onComplete&&t.onComplete(i,r)}},read:function(n,t){var r=[],f=[],u,i;for(n&&n(),OSF.DDA._OsfControlContext.GetSettings().Read(r,f),t&&t(),u={},i=0;i<r.length;i++)u[r[i]]=f[i];return u},write:function(n,t,i,r){var u=[],f=[];for(var e in n)u.push(e),f.push(n[e]);i&&i();OSF.DDA._OsfControlContext.GetSettings().Write(u,f);r&&r()}};OSF.InitializationHelper.prototype.initializeSettings=function(n){var t=OSF.DDA.ClientSettingsManager.read();return this.deserializeSettings(t,n)};OSF.InitializationHelper.prototype.getAppContext=function(n,t){var r="undefined",f,i,e="Warning: Office.js is loaded outside of Office client",o,s,h,c,l,a,v,y;try{if(window.external&&typeof window.external.GetContext!==r)i=OSF.DDA._OsfControlContext=window.external.GetContext();else{OsfMsAjaxFactory.msAjaxDebug.trace(e);return}}catch(ft){OsfMsAjaxFactory.msAjaxDebug.trace(e);return}var p=i.GetAppType(),w=i.GetSolutionRef(),b=i.GetAppVersionMajor(),k=i.GetAppVersionMinor(),d=i.GetAppUILocale(),g=i.GetAppDataLocale(),nt=i.GetDocUrl(),tt=i.GetAppCapabilities(),it=i.GetActivationMode(),rt=i.GetControlIntegrationLevel(),ut=[],u;try{u=i.GetSolutionToken()}catch(et){}typeof i.GetCorrelationId!==r&&(o=i.GetCorrelationId());typeof i.GetInstanceId!==r&&(s=i.GetInstanceId());typeof i.GetTouchEnabled!==r&&(h=i.GetTouchEnabled());typeof i.GetCommerceAllowed!==r&&(c=i.GetCommerceAllowed());typeof i.GetSupportedMatrix!==r&&(l=i.GetSupportedMatrix());typeof i.GetHostCustomMessage!==r&&(a=i.GetHostCustomMessage());typeof i.GetHostFullVersion!==r&&(v=i.GetHostFullVersion());typeof i.GetDialogRequirementMatrix!=r&&(y=i.GetDialogRequirementMatrix());u=u?u.toString():"";f=new OSF.OfficeAppContext(w,p,b,d,g,nt,tt,ut,it,rt,u,o,s,h,c,k,l,a,v,undefined,undefined,undefined,y);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(f);t(f)},function(n){var u="ResponseTime",f="Message",i="SessionId",r="CorrelationId",t=!0,e=function(){function n(n){this._table=n;this._fields={}}return Object.defineProperty(n.prototype,"Fields",{get:function(){return this._fields},enumerable:t,configurable:t}),Object.defineProperty(n.prototype,"Table",{get:function(){return this._table},enumerable:t,configurable:t}),n.prototype.SerializeFields=function(){},n.prototype.SetSerializedField=function(n,t){typeof t!="undefined"&&t!==null&&(this._serializedFields[n]=t.toString())},n.prototype.SerializeRow=function(){var n=this;return n._serializedFields={},n.SetSerializedField("Table",n._table),n.SerializeFields(),JSON.stringify(n._serializedFields)},n}(),o,s,h,c,l;n.BaseUsageData=e;o=function(n){function u(){n.call(this,"AppActivated")}var e="HostJSVersion",o="OfficeJSVersion",s="DocUrl",h="AppSizeHeight",c="AppSizeWidth",l="ClientId",a="HostVersion",v="Host",y="UserId",p="Browser",w="AssetId",b="AppURL",k="AppInstanceId",d="AppId";return __extends(u,n),Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,d,{get:function(){return this.Fields[d]},set:function(n){this.Fields[d]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,k,{get:function(){return this.Fields[k]},set:function(n){this.Fields[k]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,b,{get:function(){return this.Fields[b]},set:function(n){this.Fields[b]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,w,{get:function(){return this.Fields[w]},set:function(n){this.Fields[w]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,p,{get:function(){return this.Fields[p]},set:function(n){this.Fields[p]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,y,{get:function(){return this.Fields[y]},set:function(n){this.Fields[y]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,v,{get:function(){return this.Fields[v]},set:function(n){this.Fields[v]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,a,{get:function(){return this.Fields[a]},set:function(n){this.Fields[a]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,l,{get:function(){return this.Fields[l]},set:function(n){this.Fields[l]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,c,{get:function(){return this.Fields[c]},set:function(n){this.Fields[c]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(d,n.AppId);n.SetSerializedField(k,n.AppInstanceId);n.SetSerializedField(b,n.AppURL);n.SetSerializedField(w,n.AssetId);n.SetSerializedField(p,n.Browser);n.SetSerializedField(y,n.UserId);n.SetSerializedField(v,n.Host);n.SetSerializedField(a,n.HostVersion);n.SetSerializedField(l,n.ClientId);n.SetSerializedField(c,n.AppSizeWidth);n.SetSerializedField(h,n.AppSizeHeight);n.SetSerializedField(f,n.Message);n.SetSerializedField(s,n.DocUrl);n.SetSerializedField(o,n.OfficeJSVersion);n.SetSerializedField(e,n.HostJSVersion)},u}(e);n.AppActivatedUsageData=o;s=function(n){function f(){n.call(this,"ScriptLoad")}var e="StartTime",o="ScriptId";return __extends(f,n),Object.defineProperty(f.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t}),f.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(o,n.ScriptId);n.SetSerializedField(e,n.StartTime);n.SetSerializedField(u,n.ResponseTime)},f}(e);n.ScriptLoadUsageData=s;h=function(n){function u(){n.call(this,"AppClosed")}var f="CloseMethod",e="OpenTime",o="AppSizeFinalHeight",s="AppSizeFinalWidth",h="FocusTime";return __extends(u,n),Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t}),u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(h,n.FocusTime);n.SetSerializedField(s,n.AppSizeFinalWidth);n.SetSerializedField(o,n.AppSizeFinalHeight);n.SetSerializedField(e,n.OpenTime);n.SetSerializedField(f,n.CloseMethod)},u}(e);n.AppClosedUsageData=h;c=function(n){function f(){n.call(this,"APIUsage")}var e="ErrorType",o="Parameters",s="APIID",h="APIType";return __extends(f,n),Object.defineProperty(f.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),f.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(h,n.APIType);n.SetSerializedField(s,n.APIID);n.SetSerializedField(o,n.Parameters);n.SetSerializedField(u,n.ResponseTime);n.SetSerializedField(e,n.ErrorType)},f}(e);n.APIUsageUsageData=c;l=function(n){function u(){n.call(this,"AppInitialization")}var e="SuccessCode";return __extends(u,n),Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t}),u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(e,n.SuccessCode);n.SetSerializedField(f,n.Message)},u}(e);n.AppInitializationUsageData=l}(OSFLog||(OSFLog={})),function(n){"use strict";function u(){OSF.Logger&&OSF.Logger.ulsEndpoint&&OSF.Logger.ulsEndpoint.loadProxyFrame()}function f(n,t,i){if(OSF.Logger&&OSF.Logger.ulsEndpoint){var r={traceLevel:n,message:t,flag:i,internalLog:!0},u=JSON.stringify(r);OSF.Logger.ulsEndpoint.writeLog(u)}}function e(){try{return new t}catch(n){return null}}var i,r,t;(function(n){n[n.info=0]="info";n[n.warning=1]="warning";n[n.error=2]="error"})(n.TraceLevel||(n.TraceLevel={}));i=n.TraceLevel,function(n){n[n.none=0]="none";n[n.flush=1]="flush"}(n.SendFlag||(n.SendFlag={}));r=n.SendFlag;n.allowUploadingData=u;n.sendLog=f;t=function(){function n(){var n=this,t=n;n.proxyFrame=null;n.telemetryEndPoint="https://telemetryservice.firstpartyapps.oaspapps.com/telemetryservice/telemetryproxy.html";n.buffer=[];n.proxyFrameReady=!1;OSF.OUtil.addEventListener(window,"message",function(n){return t.tellProxyFrameReady(n)});setTimeout(function(){t.loadProxyFrame()},3e3)}return n.prototype.writeLog=function(t){var i=this;i.proxyFrameReady===!0?i.proxyFrame.contentWindow.postMessage(t,n.telemetryOrigin):i.buffer.length<128&&i.buffer.push(t)},n.prototype.loadProxyFrame=function(){var n=this;n.proxyFrame==null&&(n.proxyFrame=document.createElement("iframe"),n.proxyFrame.setAttribute("style","display:none"),n.proxyFrame.setAttribute("src",n.telemetryEndPoint),document.head.appendChild(n.proxyFrame))},n.prototype.tellProxyFrameReady=function(t){var i=this,e=i,r,u,f;if(t.data==="ProxyFrameReadyToLog"){for(i.proxyFrameReady=!0,r=0;r<i.buffer.length;r++)i.writeLog(i.buffer[r]);i.buffer.length=0;OSF.OUtil.removeEventListener(window,"message",function(n){return e.tellProxyFrameReady(n)})}else t.data==="ProxyFrameReadyToInit"&&(u={appName:"Office APPs",sessionId:OSF.OUtil.Guid.generateNewGuid()},f=JSON.stringify(u),i.proxyFrame.contentWindow.postMessage(f,n.telemetryOrigin))},n.telemetryOrigin="https://telemetryservice.firstpartyapps.oaspapps.com",n}();OSF.Logger||(OSF.Logger=n);n.ulsEndpoint=e()}(Logger||(Logger={})),function(n){function l(r){var e,f;OSF.Logger&&(t||(t=new c,t.hostVersion=r.get_hostFullVersion()?r.get_hostFullVersion():r.get_appVersion(),t.appId=r.get_id(),t.host=r.get_appName(),t.browser=window.navigator.userAgent,t.correlationId=r.get_correlationId(),t.clientId=(new o).getClientId(),t.appInstanceId=r.get_appInstanceId(),t.appInstanceId&&(t.appInstanceId=t.appInstanceId.replace(/[{}]/g,"").toLowerCase()),t.message=r.get_hostCustomMessage(),t.officeJSVersion=OSF.ConstantNames.FileVersion,t.hostJSVersion="16.0.7526.1000",e=r.get_docUrl(),t.docUrl=h.test(e)?e:"",f=location.href,f&&(f=f.split("?")[0].split("#")[0]),t.appURL=f,function(n,t){var e,o,r,u,f;t.assetId="";t.userId="";try{e=decodeURIComponent(n);o=new DOMParser;r=o.parseFromString(e,"text/xml");u=r.getElementsByTagName("t")[0].attributes.getNamedItem("cid");f=r.getElementsByTagName("t")[0].attributes.getNamedItem("oid");u&&u.nodeValue?t.userId=u.nodeValue:f&&f.nodeValue&&(t.userId=f.nodeValue);t.assetId=r.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}catch(s){}finally{e=i;r=i;o=i}}(r.get_eToken(),t),function(){var c=new Date,r=i,o=0,h=!1,f=function(){document.hasFocus()?r==i&&(r=new Date):r&&(o+=Math.abs((new Date).getTime()-r.getTime()),r=i)},t=[],s,e;for(t.push(new u("focus",f)),t.push(new u("blur",f)),t.push(new u("focusout",f)),t.push(new u("focusin",f)),s=function(){for(var u=0;u<t.length;u++)OSF.OUtil.removeEventListener(window,t[u].name,t[u].handler);if(t.length=0,!h){document.hasFocus()&&r&&(o+=Math.abs((new Date).getTime()-r.getTime()),r=i);n.onAppClosed(Math.abs((new Date).getTime()-c.getTime()),o);h=!0}},t.push(new u("beforeunload",s)),t.push(new u("unload",s)),e=0;e<t.length;e++)OSF.OUtil.addEventListener(window,t[e].name,t[e].handler);f()}(),n.onAppActivated()))}function a(){if(t){(new o).enumerateLog(function(n,t){return(new f).LogRawData(t)},!0);var n=new OSFLog.AppActivatedUsageData;n.SessionId=r;n.AppId=t.appId;n.AssetId=t.assetId;n.AppURL=t.appURL;n.UserId=t.userId;n.ClientId=t.clientId;n.Browser=t.browser;n.Host=t.host;n.HostVersion=t.hostVersion;n.CorrelationId=t.correlationId;n.AppSizeWidth=window.innerWidth;n.AppSizeHeight=window.innerHeight;n.AppInstanceId=t.appInstanceId;n.Message=t.message;n.DocUrl=t.docUrl;n.OfficeJSVersion=t.officeJSVersion;n.HostJSVersion=t.hostJSVersion;(new f).LogData(n);setTimeout(function(){OSF.Logger&&OSF.Logger.allowUploadingData()},100)}}function v(n,t,i,u){var e=new OSFLog.ScriptLoadUsageData;e.CorrelationId=u;e.SessionId=r;e.ScriptId=n;e.StartTime=t;e.ResponseTime=i;(new f).LogData(e)}function y(n,i,u,o,s){if(t){var h=new OSFLog.APIUsageUsageData;h.CorrelationId=e;h.SessionId=r;h.APIType=n;h.APIID=i;h.Parameters=u;h.ResponseTime=o;h.ErrorType=s;(new f).LogData(h)}}function p(n,t,r,u){var f=i,e;if(t)if(typeof t=="number")f=String(t);else if(typeof t=="object")for(e in t)f!==i?f+=",":f="",typeof t[e]=="number"&&(f+=String(t[e]));else f="";OSF.AppTelemetry.onCallDone("method",n,f,r,u)}function w(n,t){OSF.AppTelemetry.onCallDone("property",-1,n,t)}function b(n,t){OSF.AppTelemetry.onCallDone("event",n,i,0,t)}function k(n,t,r,u){OSF.AppTelemetry.onCallDone(n?"registerevent":"unregisterevent",t,i,r,u)}function d(n,i){if(t){var u=new OSFLog.AppClosedUsageData;u.CorrelationId=e;u.SessionId=r;u.FocusTime=i;u.OpenTime=n;u.AppSizeFinalWidth=window.innerWidth;u.AppSizeFinalHeight=window.innerHeight;(new o).saveLog(r,u.SerializeRow())}}function g(n){e=n}function s(n,t){var i=new OSFLog.AppInitializationUsageData;i.CorrelationId=e;i.SessionId=r;i.SuccessCode=n?1:0;i.Message=t;(new f).LogData(i)}function nt(n){s(!1,n)}function tt(n){s(!0,n)}var i=null;"use strict";var t,r=OSF.OUtil.Guid.generateNewGuid(),e="",h=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),c=function(){function n(){}return n}(),u=function(){function n(n,t){this.name=n;this.handler=t}return n}(),o=function(){function n(){this.clientIDKey="Office API client";this.logIdSetKey="Office App Log Id Set"}return n.prototype.getClientId=function(){var t=this,n=t.getValue(t.clientIDKey);return(!n||n.length<=0||n.length>40)&&(n=OSF.OUtil.Guid.generateNewGuid(),t.setValue(t.clientIDKey,n)),n},n.prototype.saveLog=function(n,t){var i=this,r=i.getValue(i.logIdSetKey);r=(r&&r.length>0?r+";":"")+n;i.setValue(i.logIdSetKey,r);i.setValue(n,t)},n.prototype.enumerateLog=function(n,t){var i=this,e=i.getValue(i.logIdSetKey),u,o,r,f;if(e){u=e.split(";");for(o in u)r=u[o],f=i.getValue(r),f&&(n&&n(r,f),t&&i.remove(r));t&&i.remove(i.logIdSetKey)}},n.prototype.getValue=function(n){var t=OSF.OUtil.getLocalStorage(),i="";return t&&(i=t.getItem(n)),i},n.prototype.setValue=function(n,t){var i=OSF.OUtil.getLocalStorage();i&&i.setItem(n,t)},n.prototype.remove=function(n){var t=OSF.OUtil.getLocalStorage();if(t)try{t.removeItem(n)}catch(i){}},n}(),f=function(){function n(){}return n.prototype.LogData=function(n){OSF.Logger&&OSF.Logger.sendLog(OSF.Logger.TraceLevel.info,n.SerializeRow(),OSF.Logger.SendFlag.none)},n.prototype.LogRawData=function(n){OSF.Logger&&OSF.Logger.sendLog(OSF.Logger.TraceLevel.info,n,OSF.Logger.SendFlag.none)},n}();n.initialize=l;n.onAppActivated=a;n.onScriptDone=v;n.onCallDone=y;n.onMethodDone=p;n.onPropertyDone=w;n.onEventDone=b;n.onRegisterDone=k;n.onAppClosed=d;n.setOsfControlAppCorrelationId=g;n.doAppInitializationLogging=s;n.logAppCommonMessage=nt;n.logAppException=tt;OSF.AppTelemetry=n}(OSFAppTelemetry||(OSFAppTelemetry={}));Microsoft.Office.WebExtension.EventType={};OSF.EventDispatch=function(n){var t=this,r,i;t._eventHandlers={};t._queuedEventsArgs={};for(r in n)i=n[r],t._eventHandlers[i]=[],t._queuedEventsArgs[i]=[]};OSF.EventDispatch.prototype={getSupportedEvents:function(){var n=[];for(var t in this._eventHandlers)n.push(t);return n},supportsEvent:function(n){var t=!1;for(var i in this._eventHandlers)if(n==i){t=!0;break}return t},hasEventHandler:function(n,t){var i=this._eventHandlers[n],r;if(i&&i.length>0)for(r in i)if(i[r]===t)return!0;return!1},addEventHandler:function(n,t){if(typeof t!="function")return!1;var i=this._eventHandlers[n];return i&&!this.hasEventHandler(n,t)?(i.push(t),!0):!1},addEventHandlerAndFireQueuedEvent:function(n,t){var r=this._eventHandlers[n],u=r.length==0,i=this.addEventHandler(n,t);return u&&i&&this.fireQueuedEvent(n),i},removeEventHandler:function(n,t){var i=this._eventHandlers[n],r;if(i&&i.length>0)for(r=0;r<i.length;r++)if(i[r]===t)return i.splice(r,1),!0;return!1},clearEventHandlers:function(n){return typeof this._eventHandlers[n]!="undefined"&&this._eventHandlers[n].length>0?(this._eventHandlers[n]=[],!0):!1},getEventHandlerCount:function(n){return this._eventHandlers[n]!=undefined?this._eventHandlers[n].length:-1},fireEvent:function(n){var t,i,r;if(n.type==undefined)return!1;if(t=n.type,t&&this._eventHandlers[t]){i=this._eventHandlers[t];for(r in i)i[r](n);return!0}else return!1},fireOrQueueEvent:function(n){var t=this,i=n.type,r,u;return i&&t._eventHandlers[i]?(r=t._eventHandlers[i],u=t._queuedEventsArgs[i],r.length==0?u.push(n):t.fireEvent(n),!0):!1},fireQueuedEvent:function(n){var t,i,r,u;if(n&&this._eventHandlers[n]&&(t=this._eventHandlers[n],i=this._queuedEventsArgs[n],t.length>0)){for(r=t[0];i.length>0;)u=i.shift(),r(u);return!0}return!1}};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureEventArgs=function(n,t,i){var f="hostType",u=this,r;switch(n){case Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged:r=new OSF.DDA.DocumentSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.BindingSelectionChanged:r=new OSF.DDA.BindingSelectionChangedEventArgs(u.manufactureBinding(i,t.document),i[OSF.DDA.PropertyDescriptors.Subset]);break;case Microsoft.Office.WebExtension.EventType.BindingDataChanged:r=new OSF.DDA.BindingDataChangedEventArgs(u.manufactureBinding(i,t.document));break;case Microsoft.Office.WebExtension.EventType.SettingsChanged:r=new OSF.DDA.SettingsChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ActiveViewChanged:r=new OSF.DDA.ActiveViewChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.OfficeThemeChanged:r=new OSF.DDA.Theming.OfficeThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.DocumentThemeChanged:r=new OSF.DDA.Theming.DocumentThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.AppCommandInvoked:r=OSF.DDA.AppCommand.AppCommandInvokedEventArgs.create(i);break;case Microsoft.Office.WebExtension.EventType.DataNodeInserted:r=new OSF.DDA.NodeInsertedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeReplaced:r=new OSF.DDA.NodeReplacedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeDeleted:r=new OSF.DDA.NodeDeletedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NextSiblingNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.TaskSelectionChanged:r=new OSF.DDA.TaskSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ResourceSelectionChanged:r=new OSF.DDA.ResourceSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ViewSelectionChanged:r=new OSF.DDA.ViewSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.DialogMessageReceived:r=new OSF.DDA.DialogEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived:r=new OSF.DDA.DialogParentEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.ItemChanged:if(OSF._OfficeAppFactory.getHostInfo()[f]=="outlook"||OSF._OfficeAppFactory.getHostInfo()[f]=="outlookwebapp")r=new OSF.DDA.OlkItemSelectedChangedEventArgs(i),t.initialize(r.initialData),t.setCurrentItemNumber(r.itemNumber.itemNumber);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));}return r};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(n,t,i){return i.supportsEvent(n)}},{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(n,t,i){return i.supportsEvent(n)}}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]});OSF.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1};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 i=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived,Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived]),t=OSF.DDA.AsyncMethodNames.DisplayDialogAsync.displayName,n=this;n[t]||OSF.OUtil.defineEnumerableProperty(n,t,{value:function(){var t=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.OpenDialog];t(arguments,i,n)}});OSF.OUtil.finalizeProperties(this)};OSF.DDA.UI.ChildUI=function(){var t=OSF.DDA.SyncMethodNames.MessageParent.displayName,n=this,i;n[t]||OSF.OUtil.defineEnumerableProperty(n,t,{value:function(){var t=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.MessageParent];return t(arguments,n)}});i=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;n[i]||typeof OSF.DialogParentMessageEventDispatch=="undefined"||OSF.DDA.DispIdHost.addEventSupport(n,OSF.DialogParentMessageEventDispatch);OSF.OUtil.finalizeProperties(this)};OSF.DialogHandler=function(){};OSF.DDA.DialogEventArgs=function(n){n[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogMessageReceived?OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogMessageReceived},message:{value:n[OSF.DDA.PropertyDescriptors.MessageContent]}}):OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogEventReceived},error:{value:n[OSF.DDA.PropertyDescriptors.MessageType]}})};OSF.DDA.DialogParentEventArgs=function(n){n[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogParentMessageReceived?OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived},message:{value:n[OSF.DDA.PropertyDescriptors.MessageContent]}}):OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogParentEventReceived},error:{value:n[OSF.DDA.PropertyDescriptors.MessageType]}})};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:!0}},{name:Microsoft.Office.WebExtension.Parameters.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}}],privateStateCallbacks:[],onSucceeded:function(n){var f=n[Microsoft.Office.WebExtension.Parameters.Id],i=n[Microsoft.Office.WebExtension.Parameters.Data],t=new OSF.DialogHandler,e=OSF.DDA.AsyncMethodNames.CloseAsync.displayName,r,u;return OSF.OUtil.defineEnumerableProperty(t,e,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.CloseDialog];n(arguments,f,i,t)}}),r=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName,OSF.OUtil.defineEnumerableProperty(t,r,{value:function(){var r=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.AddMessageHandler.id],n=r.verifyAndExtractCall(arguments,t,i),u=n[Microsoft.Office.WebExtension.Parameters.EventType],f=n[Microsoft.Office.WebExtension.Parameters.Handler];return i.addEventHandlerAndFireQueuedEvent(u,f)}}),u=OSF.DDA.SyncMethodNames.SendMessage.displayName,OSF.OUtil.defineEnumerableProperty(t,u,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.SendMessage];return n(arguments,i,t)}}),t},checkCallArgs:function(n){return n[Microsoft.Office.WebExtension.Parameters.Width]<=0&&(n[Microsoft.Office.WebExtension.Parameters.Width]=1),n[Microsoft.Office.WebExtension.Parameters.Width]>100&&(n[Microsoft.Office.WebExtension.Parameters.Width]=99),n[Microsoft.Office.WebExtension.Parameters.Height]<=0&&(n[Microsoft.Office.WebExtension.Parameters.Height]=1),n[Microsoft.Office.WebExtension.Parameters.Height]>100&&(n[Microsoft.Office.WebExtension.Parameters.Height]=99),n[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]||(n[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]=!0),n}});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(n,t,i){return i.supportsEvent(n)}},{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(n){try{n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);OSF.ClientHostController.openDialog(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.closeDialog=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{OSF.ClientHostController.closeDialog(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.messageParent=function(n){try{n.onCalling&&n.onCalling();var i=(new Date).getTime(),t=OSF.ClientHostController.messageParent(n.hostCallArgs);return n.onReceiving&&n.onReceiving(),OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(n.dispId,n.hostCallArgs,Math.abs((new Date).getTime()-i),t),t}catch(r){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(r)}};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:!0});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:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DialogParentMessageReceivedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.MessageType,value:0},{name:OSF.DDA.PropertyDescriptors.MessageContent,value:1}],isComplexType:!0});Microsoft.Office.WebExtension.TableData=function(n,t){function i(n){if(n==null||n==undefined)return null;try{for(var t=OSF.DDA.DataCoercion.findArrayDimensionality(n,2);t<2;t++)n=[n];return n}catch(i){}}OSF.OUtil.defineEnumerableProperties(this,{headers:{get:function(){return t},set:function(n){t=i(n)}},rows:{get:function(){return n},set:function(t){n=t==null||OSF.OUtil.isArray(t)&&t.length==0?[]:i(t)}}});this.headers=t;this.rows=n};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureTableData=function(n){return new Microsoft.Office.WebExtension.TableData(n[OSF.DDA.TableDataProperties.TableRows],n[OSF.DDA.TableDataProperties.TableHeaders])};Microsoft.Office.WebExtension.CoercionType={Text:"text",Matrix:"matrix",Table:"table"};OSF.DDA.DataCoercion=function(){var n=null;return{findArrayDimensionality:function(n){if(OSF.OUtil.isArray(n)){for(var t=0,i=0;i<n.length;i++)t=Math.max(t,OSF.DDA.DataCoercion.findArrayDimensionality(n[i]));return t+1}else return 0},getCoercionDefaultForBinding:function(n){switch(n){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(n){switch(n){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(t){if(t==n||t==undefined)return n;var i=n,r=typeof t;if(t.rows!==undefined)i=Microsoft.Office.WebExtension.CoercionType.Table;else if(OSF.OUtil.isArray(t))i=Microsoft.Office.WebExtension.CoercionType.Matrix;else if(r=="string"||r=="number"||r=="boolean"||OSF.OUtil.isDate(t))i=Microsoft.Office.WebExtension.CoercionType.Text;else throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject;return i},coerceData:function(n,t,i){return i=i||OSF.DDA.DataCoercion.determineCoercionType(n),i&&i!=t&&(OSF.OUtil.writeProfilerMark(OSF.InternalPerfMarker.DataCoercionBegin),n=OSF.DDA.DataCoercion._coerceDataFromTable(t,OSF.DDA.DataCoercion._coerceDataToTable(n,i)),OSF.OUtil.writeProfilerMark(OSF.InternalPerfMarker.DataCoercionEnd)),n},_matrixToText:function(n){if(n.length==1&&n[0].length==1)return""+n[0][0];for(var t="",i=0;i<n.length;i++)t+=n[i].join("\t")+"\n";return t.substring(0,t.length-1)},_textToMatrix:function(n){for(var t=n.split("\n"),i=0;i<t.length;i++)t[i]=t[i].split("\t");return t},_tableToText:function(t){var i="",r;return t.headers!=n&&(i=OSF.DDA.DataCoercion._matrixToText([t.headers])+"\n"),r=OSF.DDA.DataCoercion._matrixToText(t.rows),r==""&&(i=i.substring(0,i.length-1)),i+r},_tableToMatrix:function(t){var i=t.rows;return t.headers!=n&&i.unshift(t.headers),i},_coerceDataFromTable:function(t,i){var r;switch(t){case Microsoft.Office.WebExtension.CoercionType.Table:r=i;break;case Microsoft.Office.WebExtension.CoercionType.Matrix:r=OSF.DDA.DataCoercion._tableToMatrix(i);break;case Microsoft.Office.WebExtension.CoercionType.SlideRange:r=n;OSF.DDA.OMFactory.manufactureSlideRange&&(r=OSF.DDA.OMFactory.manufactureSlideRange(OSF.DDA.DataCoercion._tableToText(i)));r==n&&(r=OSF.DDA.DataCoercion._tableToText(i));break;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:r=OSF.DDA.DataCoercion._tableToText(i)}return r},_coerceDataToTable:function(n,t){t==undefined&&(t=OSF.DDA.DataCoercion.determineCoercionType(n));var i;switch(t){case Microsoft.Office.WebExtension.CoercionType.Table:i=n;break;case Microsoft.Office.WebExtension.CoercionType.Matrix:i=new Microsoft.Office.WebExtension.TableData(n);break;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:i=new Microsoft.Office.WebExtension.TableData(OSF.DDA.DataCoercion._textToMatrix(n))}return i}}}();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 r(n,t,i){var r=n[Microsoft.Office.WebExtension.Parameters.Data];return OSF.DDA.TableDataProperties&&r&&(r[OSF.DDA.TableDataProperties.TableRows]!=undefined||r[OSF.DDA.TableDataProperties.TableHeaders]!=undefined)&&(r=OSF.DDA.OMFactory.manufactureTableData(r)),r=OSF.DDA.DataCoercion.coerceData(r,i[Microsoft.Office.WebExtension.Parameters.CoercionType]),r==undefined?null:r}var i=!1,n="boolean",t="number";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:r});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string","object",t,n]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.ImageLeft,value:{types:[t,n],defaultValue:i}},{name:Microsoft.Office.WebExtension.Parameters.ImageTop,value:{types:[t,n],defaultValue:i}},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:{types:[t,n],defaultValue:i}},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:{types:[t,n],defaultValue:i}}],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(n){var r={},i,t;for(i in n){t=n[i];try{t=JSON?JSON.stringify(t,function(n,t){return OSF.OUtil.isDate(this[n])?OSF.DDA.SettingsManager.DateJSONPrefix+this[n].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:t}):Sys.Serialization.JavaScriptSerializer.serialize(t);r[i]=t}catch(u){}}return r},deserializeSettings:function(n){var r={},i,t;n=n||{};for(i in n){t=n[i];try{t=JSON?JSON.parse(t,function(n,t){var i;return typeof t=="string"&&t&&t.length>6&&t.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&t.slice(-1)===OSF.DDA.SettingsManager.DataJSONSuffix&&(i=new Date(parseInt(t.slice(5,-1))),i)?i:t}):Sys.Serialization.JavaScriptSerializer.deserialize(t,!0);r[i]=t}catch(u){}}return r}};OSF.DDA.Settings=function(n){var t="name",i;n=n||{};i=function(n){var i=OSF.OUtil.getSessionStorage(),t,r;i&&(t=OSF.DDA.SettingsManager.serializeSettings(n),r=JSON?JSON.stringify(t):Sys.Serialization.JavaScriptSerializer.serialize(t),i.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),r))};OSF.OUtil.defineEnumerableProperties(this,{get:{value:function(i){var u=Function._validateParams(arguments,[{name:t,type:String,mayBeNull:!1}]),r;if(u)throw u;return r=n[i],typeof r=="undefined"?null:r}},set:{value:function(r,u){var f=Function._validateParams(arguments,[{name:t,type:String,mayBeNull:!1},{name:"value",mayBeNull:!0}]);if(f)throw f;n[r]=u;i(n)}},remove:{value:function(r){var u=Function._validateParams(arguments,[{name:t,type:String,mayBeNull:!1}]);if(u)throw u;delete n[r];i(n)}}});OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.SaveAsync],n)};OSF.DDA.RefreshableSettings=function(n){OSF.DDA.RefreshableSettings.uber.constructor.call(this,n);OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.RefreshAsync],n);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(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.SettingsChanged},settings:{value:n}})};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(n,t){return t}}],onSucceeded:function(n,t,i){var f=n[OSF.DDA.SettingsManager.SerializedSettings],u=OSF.DDA.SettingsManager.deserializeSettings(f),e=i[OSF.DDA.SettingsManager.RefreshingSettings];for(var r in e)t.remove(r);for(r in u)t.set(r,u[r]);return t}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SaveAsync,requiredArguments:[],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale,value:{types:["boolean"],defaultValue:!0}}],privateStateCallbacks:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:function(n,t){return OSF.DDA.SettingsManager.serializeSettings(t)}}]});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(n,t){this._id=n;OSF.OUtil.defineEnumerableProperty(this,"onFail",{get:function(){return t},set:function(n){var i=typeof n;if(i!="undefined"&&i!="function")throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,i);t=n}})};OSF.DDA.BindingPromise.prototype={_fetch:function(n){var t=this,i;return t.binding?n&&n(t.binding):t._binding||(i=t,Microsoft.Office.WebExtension.context.document.bindings.getByIdAsync(t._id,function(t){t.status==Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded?(OSF.OUtil.defineEnumerableProperty(i,"binding",{value:t.value}),n&&n(i.binding)):i.onFail&&i.onFail(t)})),t},getDataAsync:function(){var n=arguments;return this._fetch(function(t){t.getDataAsync.apply(t,n)}),this},setDataAsync:function(){var n=arguments;return this._fetch(function(t){t.setDataAsync.apply(t,n)}),this},addHandlerAsync:function(){var n=arguments;return this._fetch(function(t){t.addHandlerAsync.apply(t,n)}),this},removeHandlerAsync:function(){var n=arguments;return this._fetch(function(t){t.removeHandlerAsync.apply(t,n)}),this}};OSF.DDA.BindingFacade=function(n){this._eventDispatches=[];OSF.OUtil.defineEnumerableProperty(this,"document",{value:n});var t=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[t.AddFromSelectionAsync,t.AddFromNamedItemAsync,t.GetAllAsync,t.GetByIdAsync,t.ReleaseByIdAsync])};OSF.DDA.UnknownBinding=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{document:{value:t},id:{value:n}})};OSF.DDA.Binding=function(n,t){var r,u,i,f;OSF.OUtil.defineEnumerableProperties(this,{document:{value:t},id:{value:n}});r=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[r.GetDataAsync,r.SetDataAsync]);u=Microsoft.Office.WebExtension.EventType;i=t.bindings._eventDispatches;i[n]||(i[n]=new OSF.EventDispatch([u.BindingSelectionChanged,u.BindingDataChanged]));f=i[n];OSF.DDA.DispIdHost.addEventSupport(this,f)};OSF.DDA.generateBindingId=function(){return"UnnamedBinding_"+OSF.OUtil.getUniqueId()+"_"+(new Date).getTime()};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureBinding=function(n,t){var r=n[OSF.DDA.BindingProperties.Id],u=n[OSF.DDA.BindingProperties.RowCount],f=n[OSF.DDA.BindingProperties.ColumnCount],s=n[OSF.DDA.BindingProperties.HasHeaders],i,e,o;switch(n[OSF.DDA.BindingProperties.Type]){case Microsoft.Office.WebExtension.BindingType.Text:i=new OSF.DDA.TextBinding(r,t);break;case Microsoft.Office.WebExtension.BindingType.Matrix:i=new OSF.DDA.MatrixBinding(r,t,u,f);break;case Microsoft.Office.WebExtension.BindingType.Table:e=function(){return OSF.DDA.ExcelDocument&&Microsoft.Office.WebExtension.context.document&&Microsoft.Office.WebExtension.context.document instanceof OSF.DDA.ExcelDocument};o=e()&&OSF.DDA.ExcelTableBinding?OSF.DDA.ExcelTableBinding:OSF.DDA.TableBinding;i=new o(r,t,u,f,s);break;default:i=new OSF.DDA.UnknownBinding(r,t)}return i};OSF.DDA.AsyncMethodNames.addNames({AddFromSelectionAsync:"addFromSelectionAsync",AddFromNamedItemAsync:"addFromNamedItemAsync",GetAllAsync:"getAllAsync",GetByIdAsync:"getByIdAsync",ReleaseByIdAsync:"releaseByIdAsync",GetDataAsync:"getDataAsync",SetDataAsync:"setDataAsync"}),function(){function u(n){return OSF.DDA.OMFactory.manufactureBinding(n,Microsoft.Office.WebExtension.context.document)}function f(n){return n.id}function e(n,t,i){var u=n[Microsoft.Office.WebExtension.Parameters.Data];return OSF.DDA.TableDataProperties&&u&&(u[OSF.DDA.TableDataProperties.TableRows]!=undefined||u[OSF.DDA.TableDataProperties.TableHeaders]!=undefined)&&(u=OSF.DDA.OMFactory.manufactureTableData(u)),u=OSF.DDA.DataCoercion.coerceData(u,i[Microsoft.Office.WebExtension.Parameters.CoercionType]),u==undefined?r:u}var t="number",i="object",n="string",r=null;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:[n],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}}],privateStateCallbacks:[],onSucceeded:u});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddFromNamedItemAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.ItemName,types:[n]},{name:Microsoft.Office.WebExtension.Parameters.BindingType,"enum":Microsoft.Office.WebExtension.BindingType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:{types:[n],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}}],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.FailOnCollision,value:function(){return!0}}],onSucceeded:u});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetAllAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(n){return OSF.OUtil.mapList(n[OSF.DDA.ListDescriptors.BindingList],u)}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:[n]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:u});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ReleaseByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:[n]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(n,t,i){var r=i[Microsoft.Office.WebExtension.Parameters.Id];delete t._eventDispatches[r]}});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(n,t){return OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.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:[i,n],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.RowCount,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.ColumnCount,value:{types:[t],defaultValue:0}}],checkCallArgs:function(n,t){if(n[Microsoft.Office.WebExtension.Parameters.StartRow]==0&&n[Microsoft.Office.WebExtension.Parameters.StartColumn]==0&&n[Microsoft.Office.WebExtension.Parameters.RowCount]==0&&n[Microsoft.Office.WebExtension.Parameters.ColumnCount]==0&&(delete n[Microsoft.Office.WebExtension.Parameters.StartRow],delete n[Microsoft.Office.WebExtension.Parameters.StartColumn],delete n[Microsoft.Office.WebExtension.Parameters.RowCount],delete n[Microsoft.Office.WebExtension.Parameters.ColumnCount]),n[Microsoft.Office.WebExtension.Parameters.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.type)&&(n[Microsoft.Office.WebExtension.Parameters.StartRow]||n[Microsoft.Office.WebExtension.Parameters.StartColumn]||n[Microsoft.Office.WebExtension.Parameters.RowCount]||n[Microsoft.Office.WebExtension.Parameters.ColumnCount]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return n},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:f}],onSucceeded:e});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:[n,i,t,"boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:[i,n],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:[t],defaultValue:0}}],checkCallArgs:function(n,t){if(n[Microsoft.Office.WebExtension.Parameters.StartRow]==0&&n[Microsoft.Office.WebExtension.Parameters.StartColumn]==0&&(delete n[Microsoft.Office.WebExtension.Parameters.StartRow],delete n[Microsoft.Office.WebExtension.Parameters.StartColumn]),n[Microsoft.Office.WebExtension.Parameters.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.type)&&(n[Microsoft.Office.WebExtension.Parameters.StartRow]||n[Microsoft.Office.WebExtension.Parameters.StartColumn]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return n},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:f}]})}();OSF.OUtil.augmentList(OSF.DDA.BindingProperties,{RowCount:"BindingRowCount",ColumnCount:"BindingColumnCount",HasHeaders:"HasHeaders"});OSF.DDA.MatrixBinding=function(n,t,i,r){OSF.DDA.MatrixBinding.uber.constructor.call(this,n,t);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.BindingType.Matrix},rowCount:{value:i?i:0},columnCount:{value:r?r: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:!0});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:!0});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:!0});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:!0,isComplexType:!0});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:!0,isComplexType:!0});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:!0,isComplexType:!0});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(n,t,i,r,u){OSF.DDA.TableBinding.uber.constructor.call(this,n,t);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.BindingType.Table},rowCount:{value:i?i:0},columnCount:{value:r?r:0},hasHeaders:{value:u?u:!1}});var f=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[f.AddRowsAsync,f.AddColumnsAsync,f.DeleteAllDataValuesAsync])};OSF.OUtil.extend(OSF.DDA.TableBinding,OSF.DDA.Binding);OSF.DDA.AsyncMethodNames.addNames({AddRowsAsync:"addRowsAsync",AddColumnsAsync:"addColumnsAsync",DeleteAllDataValuesAsync:"deleteAllDataValuesAsync"}),function(){function n(n){return n.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:n}]});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:n}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:n}]})}();OSF.DDA.TextBinding=function(n,t){OSF.DDA.TextBinding.uber.constructor.call(this,n,t);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(n){return OSF.DDA.OMFactory.manufactureBinding(n,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(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged},document:{value:n}})};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDocumentSelectionChangedEvent});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{BindingSelectionChanged:"bindingSelectionChanged",BindingDataChanged:"bindingDataChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{BindingSelectionChangedEvent:"BindingSelectionChangedEvent"});OSF.DDA.BindingSelectionChangedEventArgs=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.BindingSelectionChanged},binding:{value:n}});for(var i in t)OSF.OUtil.defineEnumerableProperty(this,i,{value:t[i]})};OSF.DDA.BindingDataChangedEventArgs=function(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.BindingDataChanged},binding:{value:n}})};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:!0});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:!0});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(n){OSF.OUtil.defineEnumerableProperties(this,{url:{value:n[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(n){return new Microsoft.Office.WebExtension.FileProperties(n)}});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:OSF.DDA.FilePropertiesDescriptor.Url,value:0}],isComplexType:!0});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(n,t,i,r,u){var f=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[f.ClearFormatsAsync,f.SetTableOptionsAsync,f.SetFormatsAsync]);OSF.DDA.ExcelTableBinding.uber.constructor.call(this,n,t,i,r,u);OSF.OUtil.finalizeProperties(this)};OSF.OUtil.extend(OSF.DDA.ExcelTableBinding,OSF.DDA.TableBinding),function(){var t="number",n="object",i="string";OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:[i,n,t,"boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:[n],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:[n],defaultValue:[]}}],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:[i,n,t,"boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:[n,i],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[n],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:[n],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:[n],defaultValue:[]}}],checkCallArgs:function(n,t){var i=Microsoft.Office.WebExtension.Parameters;if(n[i.StartRow]==0&&n[i.StartColumn]==0&&OSF.OUtil.isArray(n[i.CellFormat])&&n[i.CellFormat].length===0&&OSF.OUtil.isArray(n[i.TableOptions])&&n[i.TableOptions].length===0&&(delete n[i.StartRow],delete n[i.StartColumn],delete n[i.CellFormat],delete n[i.TableOptions]),n[i.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.type)&&(n[i.StartRow]&&n[i.StartRow]!=0||n[i.StartColumn]&&n[i.StartColumn]!=0||n[i.CellFormat]||n[i.TableOptions]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return n},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:function(n){return n.id}}]});OSF.DDA.BindingPromise.prototype.setTableOptionsAsync=function(){var n=arguments;return this._fetch(function(t){t.setTableOptionsAsync.apply(t,n)}),this};OSF.DDA.BindingPromise.prototype.setFormatsAsync=function(){var n=arguments;return this._fetch(function(t){t.setFormatsAsync.apply(t,n)}),this};OSF.DDA.BindingPromise.prototype.clearFormatsAsync=function(){var n=arguments;return this._fetch(function(t){t.clearFormatsAsync.apply(t,n)}),this}}(),function(){function n(n){return n.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:n}]});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:n}]});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:n}]})}();Microsoft.Office.WebExtension.Table={All:0,Data:1,Headers:2},function(){var u="undefined",e="auto fit",o="distributed",f="none";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 s={headerRow:0,bandedRows:1,firstColumn:2,lastColumn:3,bandedColumns:4,filterButton:5,style:6,totalRow:7},h={row:0,column:1},t={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}},r=[{name:f,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}],i=[{name:f,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}],n=OSF.DDA.SafeArray.Delegate.ParameterMap;n.define({type:t.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:o,value:7}]});n.define({type:t.alignVertical.text,toHost:[{name:"top",value:0},{name:"center",value:1},{name:"bottom",value:2},{name:"justify",value:3},{name:o,value:4}]});n.define({type:t.backgroundColor.text,toHost:i});n.define({type:t.borderStyle.text,toHost:r});n.define({type:t.borderColor.text,toHost:i});n.define({type:t.borderTopStyle.text,toHost:r});n.define({type:t.borderTopColor.text,toHost:i});n.define({type:t.borderBottomStyle.text,toHost:r});n.define({type:t.borderBottomColor.text,toHost:i});n.define({type:t.borderLeftStyle.text,toHost:r});n.define({type:t.borderLeftColor.text,toHost:i});n.define({type:t.borderRightStyle.text,toHost:r});n.define({type:t.borderRightColor.text,toHost:i});n.define({type:t.borderOutlineStyle.text,toHost:r});n.define({type:t.borderOutlineColor.text,toHost:i});n.define({type:t.borderInlineStyle.text,toHost:r});n.define({type:t.borderInlineColor.text,toHost:i});n.define({type:t.fontStyle.text,toHost:[{name:"regular",value:0},{name:"italic",value:1},{name:"bold",value:2},{name:"bold italic",value:3}]});n.define({type:t.fontUnderlineStyle.text,toHost:[{name:f,value:0},{name:"single",value:1},{name:"double",value:2},{name:"single accounting",value:3},{name:"double accounting",value:4}]});n.define({type:t.fontColor.text,toHost:i});n.define({type:t.fontDirection.text,toHost:[{name:"context",value:0},{name:"left-to-right",value:1},{name:"right-to-left",value:2}]});n.define({type:t.width.text,toHost:[{name:e,value:-1}]});n.define({type:t.height.text,toHost:[{name:e,value:-1}]});n.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}]});n.dynamicTypes[Microsoft.Office.WebExtension.Parameters.CellFormat]={toHost:function(t){for(var i in t)t[i].format&&(t[i].format=n.doMapValues(t[i].format,"toHost"));return t},fromHost:function(n){return n}};n.setDynamicType(Microsoft.Office.WebExtension.Parameters.CellFormat,{toHost:function(n){var c="cells",y="format",w=0,b=1,p=[],l,i,r,f,e,o,a,v,s;for(l in n){if(i=n[l],r=[],typeof i[c]!==u){if(f=i[c],typeof i[c]=="object"){e=[];for(o in f)typeof h[o]!==u&&(e[h[o]]=f[o])}else e=f;r[w]=e}if(i[y]){a=i[y];v=[];for(s in a)typeof t[s]!==u&&v.push([t[s].type,a[s]]);r[b]=v}p[l]=r}return p},fromHost:function(n){return n}});n.setDynamicType(Microsoft.Office.WebExtension.Parameters.TableOptions,{toHost:function(n){var i=[];for(var t in n)typeof s[t]!==u&&(i[s[t]]=n[t]);return i},fromHost:function(n){return n}})}();OSF.OUtil.augmentList(Microsoft.Office.WebExtension.CoercionType,{Image:"image"});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.CoercionType,toHost:[{name:Microsoft.Office.WebExtension.CoercionType.Image,value:8}]});OSF.DDA.ExcelDocument=function(n,t){var i=this,r=new OSF.DDA.BindingFacade(i);OSF.DDA.DispIdHost.addAsyncMethods(r,[OSF.DDA.AsyncMethodNames.AddFromPromptAsync]);OSF.DDA.DispIdHost.addAsyncMethods(i,[OSF.DDA.AsyncMethodNames.GoToByIdAsync]);OSF.DDA.DispIdHost.addAsyncMethods(i,[OSF.DDA.AsyncMethodNames.GetFilePropertiesAsync]);OSF.DDA.ExcelDocument.uber.constructor.call(i,n,r,t);OSF.OUtil.finalizeProperties(i)};OSF.OUtil.extend(OSF.DDA.ExcelDocument,OSF.DDA.JsomDocument);OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(n,t){OSF.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM);n.doc=new OSF.DDA.ExcelDocument(n,this._initializeSettings(!0));OSF.DDA.DispIdHost.addAsyncMethods(OSF.DDA.RichApi,[OSF.DDA.AsyncMethodNames.ExecuteRichApiRequestAsync]);t()},function(){var t="boolean",n="number",i="object";OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string",i,n,t]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:[n,i],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:[n,i],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:{types:[n,t],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:{types:[n,t],defaultValue:!1}}],privateStateCallbacks:[]})}(),function(n){var t=function(){function n(n,t){this.m_actionInfo=n;this.m_isWriteOperation=t}return Object.defineProperty(n.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWriteOperation",{get:function(){return this.m_isWriteOperation},enumerable:!0,configurable:!0}),n}();n.Action=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.createSetPropertyAction=function(t,i,r,u){var f;n.Utility.validateObjectPath(i);var e={Id:t._nextId(),ActionType:4,Name:r,ObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},s=[u],o=n.Utility.setMethodArguments(t,e.ArgumentInfo,s);return n.Utility.validateReferencedObjectPaths(o),f=new n.Action(e,!0),t._pendingRequest.addAction(f),t._pendingRequest.addReferencedObjectPath(i._objectPath),t._pendingRequest.addReferencedObjectPaths(o),f},t.createMethodAction=function(t,i,r,u,f){var e,o,h,s;return n.Utility.validateObjectPath(i),e={Id:t._nextId(),ActionType:3,Name:r,ObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},o=n.Utility.setMethodArguments(t,e.ArgumentInfo,f),n.Utility.validateReferencedObjectPaths(o),h=u!=1,s=new n.Action(e,h),t._pendingRequest.addAction(s),t._pendingRequest.addReferencedObjectPath(i._objectPath),t._pendingRequest.addReferencedObjectPaths(o),s},t.createQueryAction=function(t,i,r){var u,f;return n.Utility.validateObjectPath(i),u={Id:t._nextId(),ActionType:2,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id},u.QueryInfo=r,f=new n.Action(u,!1),t._pendingRequest.addAction(f),t._pendingRequest.addReferencedObjectPath(i._objectPath),f},t.createRecursiveQueryAction=function(t,i,r){n.Utility.validateObjectPath(i);var f={Id:t._nextId(),ActionType:6,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id,RecursiveQueryInfo:r},u=new n.Action(f,!1);return t._pendingRequest.addAction(u),t._pendingRequest.addReferencedObjectPath(i._objectPath),u},t.createInstantiateAction=function(t,i){n.Utility.validateObjectPath(i);var u={Id:t._nextId(),ActionType:1,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id},r=new n.Action(u,!1);return t._pendingRequest.addAction(r),t._pendingRequest.addReferencedObjectPath(i._objectPath),t._pendingRequest.addActionResultHandler(r,new n.InstantiateActionResultHandler(i)),r},t.createTraceAction=function(t,i,r){var u={Id:t._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},f=new n.Action(u,!1);return t._pendingRequest.addAction(f),r&&t._pendingRequest.addTrace(u.Id,i),f},t}();n.ActionFactory=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(t,i){n.Utility.checkArgumentNull(t,"context");this.m_context=t;this.m_objectPath=i;this.m_objectPath&&(t._processingResult||(n.ActionFactory.createInstantiateAction(t,this),t._autoCleanup&&this._KeepReference&&t.trackedObjects._autoAdd(this)))}return Object.defineProperty(t.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_objectPath",{get:function(){return this.m_objectPath},set:function(n){this.m_objectPath=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNull",{get:function(){return n.Utility.throwIfNotLoaded("isNull",this._isNull,null,this._isNull),this._isNull},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNullObject",{get:function(){return n.Utility.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull),this._isNull},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isNull",{get:function(){return this.m_isNull},set:function(n){this.m_isNull=n;n&&this.m_objectPath&&this.m_objectPath._updateAsNullObject()},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){this._isNull=n.Utility.isNullOrUndefined(t)},t.prototype._handleIdResult=function(t){this._isNull=n.Utility.isNullOrUndefined(t);n.Utility.fixObjectPathIfNecessary(this,t);t&&!n.Utility.isNullOrUndefined(t[n.Constants.referenceId])&&this._initReferenceId&&this._initReferenceId(t[n.Constants.referenceId])},t}();n.ClientObject=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n){this.m_context=n;this.m_actions=[];this.m_actionResultHandler={};this.m_referencedObjectPaths={};this.m_flags=0;this.m_traceInfos={};this.m_pendingProcessEventHandlers=[];this.m_pendingEventHandlerActions={};this.m_responseTraceIds={};this.m_responseTraceMessages=[]}return Object.defineProperty(t.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),t.prototype._setResponseTraceIds=function(t){var i,r,u;if(t)for(i=0;i<t.length;i++)r=t[i],this.m_responseTraceIds[r]=r,u=this.m_traceInfos[r],n.Utility.isNullOrUndefined(u)||this.m_responseTraceMessages.push(u)},t.prototype.addAction=function(n){n.isWriteOperation&&(this.m_flags=this.m_flags|1);this.m_actions.push(n)},Object.defineProperty(t.prototype,"hasActions",{get:function(){return this.m_actions.length>0},enumerable:!0,configurable:!0}),t.prototype.addTrace=function(n,t){this.m_traceInfos[n]=t},t.prototype.addReferencedObjectPath=function(t){if(!this.m_referencedObjectPaths[t.objectPathInfo.Id])for(t.isValid||n.Utility.throwError(n.ResourceStrings.invalidObjectPath,n.Utility.getObjectPathExpression(t));t;)t.isWriteOperation&&(this.m_flags=this.m_flags|1),this.m_referencedObjectPaths[t.objectPathInfo.Id]=t,t.objectPathInfo.ObjectPathType==3&&this.addReferencedObjectPaths(t.argumentObjectPaths),t=t.parentObjectPath},t.prototype.addReferencedObjectPaths=function(n){if(n)for(var t=0;t<n.length;t++)this.addReferencedObjectPath(n[t])},t.prototype.addActionResultHandler=function(n,t){this.m_actionResultHandler[n.actionInfo.Id]=t},t.prototype.buildRequestMessageBody=function(){var r={},t,i,n;for(t in this.m_referencedObjectPaths)r[t]=this.m_referencedObjectPaths[t].objectPathInfo;for(i=[],n=0;n<this.m_actions.length;n++)i.push(this.m_actions[n].actionInfo);return{Actions:i,ObjectPaths:r}},t.prototype.processResponse=function(n){var t,i,r;if(n&&n.Results)for(t=0;t<n.Results.length;t++)i=n.Results[t],r=this.m_actionResultHandler[i.ActionId],r&&r._handleResult(i.Value)},t.prototype.invalidatePendingInvalidObjectPaths=function(){for(var n in this.m_referencedObjectPaths)this.m_referencedObjectPaths[n].isInvalidAfterRequest&&(this.m_referencedObjectPaths[n].isValid=!1)},t.prototype._addPendingEventHandlerAction=function(n,t){this.m_pendingEventHandlerActions[n._id]||(this.m_pendingEventHandlerActions[n._id]=[],this.m_pendingProcessEventHandlers.push(n));this.m_pendingEventHandlerActions[n._id].push(t)},Object.defineProperty(t.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),t.prototype._getPendingEventHandlerActions=function(n){return this.m_pendingEventHandlerActions[n._id]},t}();n.ClientRequest=t}(OfficeExtension||(OfficeExtension={})),function(n){function r(n){t=n}var t,i;n._setRequestExecutorFactory=r;i=function(){function i(r){var u,e,f;if(this.m_requestHeaders={},this._onRunFinishedNotifiers=[],this.m_nextId=0,n.Utility.isNullOrUndefined(r)||typeof r=="string"&&r.length===0)if(u=i.defaultRequestUrlAndHeaders,u&&!n.Utility.isNullOrEmptyString(u.url)){if(this.m_url=u.url,u.headers)for(f in u.headers)this.m_requestHeaders[f]=u.headers[f]}else this.m_url=n.Constants.localDocument;else if(typeof r=="string")this.m_url=r;else{if(e=r,n.Utility.isNullOrEmptyString(e.url))throw n.Utility.createInvalidArgumentException("url");if(this.m_url=e.url,e.headers)for(f in e.headers)this.m_requestHeaders[f]=e.headers[f]}this._processingResult=!1;this._customData=n.Constants.iterativeExecutor;this._requestExecutor=t?t():n.Utility._isLocalDocumentUrl(this.m_url)?new n.OfficeJsRequestExecutor:new n.HttpRequestExecutor;this.sync=this.sync.bind(this)}return Object.defineProperty(i.prototype,"_url",{get:function(){return this.m_url},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_pendingRequest",{get:function(){return this.m_pendingRequest==null&&(this.m_pendingRequest=new n.ClientRequest(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new n.TrackedObjects(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"requestHeaders",{get:function(){return this.m_requestHeaders},enumerable:!0,configurable:!0}),i.prototype.load=function(t,r){n.Utility.validateContext(this,t);var u=i.parseQueryOption(r),f=n.ActionFactory.createQueryAction(this,t,u);this._pendingRequest.addActionResultHandler(f,t)},i.parseQueryOption=function(t){var r={},u,i;return typeof t=="string"?(u=t,r.Select=n.Utility._parseSelectExpand(u)):Array.isArray(t)?r.Select=t:typeof t=="object"?(i=t,typeof i.select=="string"?r.Select=n.Utility._parseSelectExpand(i.select):Array.isArray(i.select)?r.Select=i.select:n.Utility.isNullOrUndefined(i.select)||n.Utility.throwError(n.ResourceStrings.invalidArgument,"option.select"),typeof i.expand=="string"?r.Expand=n.Utility._parseSelectExpand(i.expand):Array.isArray(i.expand)?r.Expand=i.expand:n.Utility.isNullOrUndefined(i.expand)||n.Utility.throwError(n.ResourceStrings.invalidArgument,"option.expand"),typeof i.top=="number"?r.Top=i.top:n.Utility.isNullOrUndefined(i.top)||n.Utility.throwError(n.ResourceStrings.invalidArgument,"option.top"),typeof i.skip=="number"?r.Skip=i.skip:n.Utility.isNullOrUndefined(i.skip)||n.Utility.throwError(n.ResourceStrings.invalidArgument,"option.skip")):n.Utility.isNullOrUndefined(t)||n.Utility.throwError(n.ResourceStrings.invalidArgument,"option"),r},i.prototype.loadRecursive=function(t,r,u){var f,e,o;if(!n.Utility.isPlainJsonObject(r))throw n.Utility.createInvalidArgumentException("options");f={};for(e in r)f[e]=i.parseQueryOption(r[e]);o=n.ActionFactory.createRecursiveQueryAction(this,t,{Queries:f,MaxDepth:u});this._pendingRequest.addActionResultHandler(o,t)},i.prototype.trace=function(t){n.ActionFactory.createTraceAction(this,t,!0)},i.prototype.syncPrivate=function(){var f=this,t=this._pendingRequest,e,r,i;if(this.m_pendingRequest=null,!t.hasActions)return this.processPendingEventHandlers(t);var o=t.buildRequestMessageBody(),s=t.flags,u=this._requestExecutor;return u||(u=new n.OfficeJsRequestExecutor),e={Url:this.m_url,Headers:this.m_requestHeaders,Body:o},t.invalidatePendingInvalidObjectPaths(),r=null,i=null,u.executeAsync(this._customData,s,e).then(function(u){return r=f.processRequestExecutorResponseMessage(t,u),f.processPendingEventHandlers(t).catch(function(t){n.Utility.log("Error in processPendingEventHandlers");n.Utility.log(JSON.stringify(t));i=t})}).then(function(){var u,f;if(r){n.Utility.log("Throw error from response: "+JSON.stringify(r));throw r;}if(i){n.Utility.log("Throw error from ProcessEventHandler: "+JSON.stringify(i));u=null;i instanceof n.Error?(u=i,u.traceMessages=t._responseTraceMessages):(f=null,f=typeof i=="string"?i:i.message,n.Utility.isNullOrEmptyString(f)&&(f=n.Utility._getResourceString(n.ResourceStrings.cannotRegisterEvent)),u=new n._Internal.RuntimeError(n.ErrorCodes.cannotRegisterEvent,f,t._responseTraceMessages,{}));throw u;}})},i.prototype.processRequestExecutorResponseMessage=function(t,i){i.Body&&i.Body.TraceIds&&t._setResponseTraceIds(i.Body.TraceIds);var r=t._responseTraceMessages;if(n.Utility.isNullOrEmptyString(i.ErrorCode)){if(i.Body&&i.Body.Error)return new n._Internal.RuntimeError(i.Body.Error.Code,i.Body.Error.Message,r,{errorLocation:i.Body.Error.Location})}else return new n._Internal.RuntimeError(i.ErrorCode,i.ErrorMessage,r,{});this._processingResult=!0;try{t.processResponse(i.Body)}finally{this._processingResult=!1}return null},i.prototype.processPendingEventHandlers=function(t){for(var u,i=n.Utility._createPromiseFromResult(null),r=0;r<t._pendingProcessEventHandlers.length;r++)u=t._pendingProcessEventHandlers[r],i=i.then(this.createProcessOneEventHandlersFunc(u,t));return i},i.prototype.createProcessOneEventHandlersFunc=function(n,t){return function(){return n._processRegistration(t)}},i.prototype.sync=function(n){return this.syncPrivate().then(function(){return n})},i._run=function(n,t,r,u,f,e){return r===void 0&&(r=3),u===void 0&&(u=5e3),i._runCommon("run",null,n,t,r,u,f,e)},i._runBatch=function(t,r,u,f,e,o,s){var a,v,y,h,c,l;if(f===void 0&&(f=3),e===void 0&&(e=5e3),y=null,h=0,r.length>0&&typeof r[0]=="object"&&r[0]!==null&&Object.getPrototypeOf(r[0])===Object.getPrototypeOf({})&&!n.Utility.isNullOrUndefined(r[0].url)&&(y=r[0],h=1),r.length==h+1)a=u,v=r[h+0];else if(r.length==h+2){if(r[h+0]instanceof n.ClientObject)a=function(){return r[h+0].context};else if(Array.isArray(r[h+0])){if(c=r[h+0],c.length==0)return i.createErrorPromise(t);for(l=0;l<c.length;l++){if(!(c[l]instanceof n.ClientObject))return i.createErrorPromise(t);if(c[l].context!=c[0].context)return i.createErrorPromise(t,n.ResourceStrings.invalidRequestContext)}a=function(){return c[0].context}}else return i.createErrorPromise(t);v=r[h+1]}else return i.createErrorPromise(t);return i._runCommon(t,y,a,v,f,e,o,s)},i.createErrorPromise=function(t,i){return i===void 0&&(i=n.ResourceStrings.invalidArgument),n.Promise.reject(n.Utility.createRuntimeError(i,n.Utility._getResourceString(i),t))},i._runCommon=function(t,r,u,f,e,o,s,h){var v=new n.Promise(function(n,t){n()}),c,a=!1,l;return v.then(function(){if(c=u(r),r&&!n.Utility.isNullOrEmptyString(r.url)&&r.url!==c.m_url)return i.createErrorPromise(t,n.ErrorCodes.invalidRequestContext);if(c._autoCleanup)return new n.Promise(function(n,t){c._onRunFinishedNotifiers.push(function(){c._autoCleanup=!0;n()})});else c._autoCleanup=!0}).then(function(){if(typeof f!="function")return i.createErrorPromise(t);var r=f(c);return(n.Utility.isNullOrUndefined(r)||typeof r.then!="function")&&n.Utility.throwError(n.ResourceStrings.runMustReturnPromise),r}).then(function(n){return c.sync(n)}).then(function(n){a=!0;l=n}).catch(function(n){l=n}).then(function(){function r(){n++;for(var i in t)c.trackedObjects.remove(t[i]);c.sync().then(function(){s&&s(n)}).catch(function(){h&&h(n);n<e&&setTimeout(function(){r()},o)})}var t=c.trackedObjects._retrieveAndClearAutoCleanupList(),i,n;c._autoCleanup=!1;for(i in t)t[i]._objectPath.isValid=!1;n=0;r()}).then(function(){if(c._onRunFinishedNotifiers&&c._onRunFinishedNotifiers.length>0){var n=c._onRunFinishedNotifiers.shift();n()}if(a)return l;else throw l;})},i.prototype._nextId=function(){return++this.m_nextId},i}();n.ClientRequestContext=i}(OfficeExtension||(OfficeExtension={})),function(n){(function(n){n[n.None=0]="None";n[n.WriteOperation=1]="WriteOperation"})(n.ClientRequestFlags||(n.ClientRequestFlags={}));var t=n.ClientRequestFlags}(OfficeExtension||(OfficeExtension={})),function(n){(function(n){n[n.none=0]="none";n[n.date=1]="date"})(n.ClientResultProcessingType||(n.ClientResultProcessingType={}));var i=n.ClientResultProcessingType,t=function(){function t(n){this.m_type=n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.m_isLoaded||n.Utility.throwError(n.ResourceStrings.valueNotLoaded),this.m_value},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){(this.m_isLoaded=!0,typeof t=="object"&&t&&t._IsNull)||(this.m_value=this.m_type===1?n.Utility.adjustToDateTime(t):t)},t}();n.ClientResult=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(){}return n.getItemAt="GetItemAt",n.id="Id",n.idPrivate="_Id",n.index="_Index",n.items="_Items",n.iterativeExecutor="IterativeExecutor",n.localDocument="http://document.localhost/",n.localDocumentApiPrefix="http://document.localhost/_api/",n.referenceId="_ReferenceId",n.isTracked="_IsTracked",n.sourceLibHeader="SdkVersion",n.requestInfoHeader="Office-RequestInfo",n}();n.Constants=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.prototype.executeAsync=function(i,r,u){var f=n.RichApiMessageUtility.buildMessageArrayForIRequestExecutor(i,r,u,t.SourceLibHeaderValue);return new n.Promise(function(i,r){var u=n.Embedded&&n.Embedded._getEndpoint();if(!u){i(n.RichApiMessageUtility.buildResponseOnError(n.Embedded.EmbeddedApiStatus.InternalError,""));return}u.invoke("executeMethod",function(t,r){n.Utility.log("Response:");n.Utility.log(JSON.stringify(r));var u;u=t==n.Embedded.EmbeddedApiStatus.Success?n.RichApiMessageUtility.buildResponseOnSuccess(n.RichApiMessageUtility.getResponseBodyFromSafeArray(r.Data),n.RichApiMessageUtility.getResponseHeadersFromSafeArray(r.Data)):n.RichApiMessageUtility.buildResponseOnError(r.error.Code,r.error.Message);i(u)},t._transformMessageArrayIntoParams(f))})},t._transformMessageArrayIntoParams=function(n){return{ArrayData:n,DdaMethod:{DispatchId:t.DispidExecuteRichApiRequestMethod}}},t.DispidExecuteRichApiRequestMethod=93,t.SourceLibHeaderValue="Embedded",t}();n.EmbedRequestExecutor=t}(OfficeExtension||(OfficeExtension={}));__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){var t=function(n){function t(t,i,r,u){n.call(this,i);this.name="OfficeExtension.Error";this.code=t;this.message=i;this.traceMessages=r;this.debugInfo=u}return __extends(t,n),t.prototype.toString=function(){return this.code+": "+this.message},t}(Error);n.RuntimeError=t})(t=n._Internal||(n._Internal={}));n.Error=n._Internal.RuntimeError}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(){}return n.accessDenied="AccessDenied",n.generalException="GeneralException",n.activityLimitReached="ActivityLimitReached",n.invalidObjectPath="InvalidObjectPath",n.propertyNotLoaded="PropertyNotLoaded",n.valueNotLoaded="ValueNotLoaded",n.invalidRequestContext="InvalidRequestContext",n.invalidArgument="InvalidArgument",n.runMustReturnPromise="RunMustReturnPromise",n.cannotRegisterEvent="CannotRegisterEvent",n.apiNotFound="ApiNotFound",n.connectionFailure="ConnectionFailure",n}();n.ErrorCodes=t}(OfficeExtension||(OfficeExtension={})),function(n){var t;(function(n){(function(n){n[n.add=0]="add";n[n.remove=1]="remove";n[n.removeAll=2]="removeAll"})(n.EventHandlerActionType||(n.EventHandlerActionType={}));var t=n.EventHandlerActionType})(t=n._Internal||(n._Internal={}))}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n,t,i,r){var u=this;this.m_id=n._nextId();this.m_context=n;this.m_name=i;this.m_handlers=[];this.m_registered=!1;this.m_eventInfo=r;this.m_callback=function(n){u.m_eventInfo.eventArgsTransformFunc(n).then(function(n){return u.fireEvent(n)})}}return Object.defineProperty(t.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var i=n.ActionFactory.createTraceAction(this.m_context,null,!1);return this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:i.actionInfo.Id,handler:t,operation:0}),new n.EventHandlerResult(this.m_context,this,t)},t.prototype.remove=function(t){var i=n.ActionFactory.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:i.actionInfo.Id,handler:t,operation:1})},t.prototype.removeAll=function(){var t=n.ActionFactory.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:null,operation:2})},t.prototype._processRegistration=function(t){var f=this,u=n.Utility._createPromiseFromResult(null),e=t._getPendingEventHandlerActions(this),r,s,i,o;if(!e)return u;for(r=[],i=0;i<this.m_handlers.length;i++)r.push(this.m_handlers[i]);for(s=!1,i=0;i<e.length;i++)if(t._responseTraceIds[e[i].id]){s=!0;switch(e[i].operation){case 0:r.push(e[i].handler);break;case 1:for(o=r.length-1;o>=0;o--)if(r[o]===e[i].handler){r.splice(o,1);break}break;case 2:r=[];break}}return s&&(!this.m_registered&&r.length>0?u=u.then(function(){return f.m_eventInfo.registerFunc(f.m_callback)}).then(function(){return f.m_registered=!0}):this.m_registered&&r.length==0&&(u=u.then(function(){return f.m_eventInfo.unregisterFunc(f.m_callback)}).catch(function(t){n.Utility.log("Error when unregister event: "+JSON.stringify(t))}).then(function(){return f.m_registered=!1})),u=u.then(function(){return f.m_handlers=r})),u},t.prototype.fireEvent=function(t){for(var u,f,r=[],i=0;i<this.m_handlers.length;i++)u=this.m_handlers[i],f=n.Utility._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(u,t)).catch(function(t){n.Utility.log("Error when invoke handler: "+JSON.stringify(t))}),r.push(f);n.Promise.all(r)},t.prototype.createFireOneEventHandlerFunc=function(n,t){return function(){return n(t)}},t}();n.EventHandlers=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(n,t,i){this.m_context=n;this.m_allHandlers=t;this.m_handler=i}return n.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},n}();n.EventHandlerResult=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.prototype.executeAsync=function(i,r,u){var s=JSON.stringify(u.Body),f,e,o;if(n.Utility.log("Request:"),n.Utility.log(s),f=u.Url,f.charAt(f.length-1)!="/"&&(f=f+"/"),f=f+"ProcessQuery",e={method:"POST",url:f,headers:{},body:s},e.headers[n.Constants.sourceLibHeader]=t.SourceLibHeaderValue,e.headers[n.Constants.requestInfoHeader]="flags="+r.toString(),e.headers["CONTENT-TYPE"]="application/json",u.Headers)for(o in u.Headers)e.headers[o]=u.Headers[o];return n.HttpUtility.sendRequest(e).then(function(t){var u,i,f,e,r;if(t.statusCode===200)u={ErrorCode:null,ErrorMessage:null,Headers:t.headers,Body:JSON.parse(t.body)};else{if(i=null,n.Utility.log("Error Response:"+t.body),!n.Utility.isNullOrEmptyString(t.body)){f=n.Utility.trim(t.body);try{i=JSON.parse(f)}catch(o){n.Utility.log("Error when parse "+f)}}!n.Utility.isNullOrUndefined(i)&&typeof i=="object"&&i.error?(r=i.error.code,e=n.Utility._getResourceString(n.ResourceStrings.connectionFailureWithDetails,[t.statusCode.toString(),i.error.code,i.error.message])):e=n.Utility._getResourceString(n.ResourceStrings.connectionFailureWithStatus,t.statusCode.toString());n.Utility.isNullOrEmptyString(r)&&(r=n.ErrorCodes.connectionFailure);u={ErrorCode:r,ErrorMessage:e,Headers:t.headers,Body:null}}return u})},t.SourceLibHeaderValue="officejs-rest",t}();n.HttpRequestExecutor=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.setCustomSendRequestFunc=function(n){t.s_customSendRequestFunc=n},t.xhrSendRequestFunc=function(t){return new n.Promise(function(i,r){var u=new XMLHttpRequest,f;if(u.open(t.method,t.url),u.onload=function(){var t={statusCode:u.status,headers:n.Utility._parseHttpResponseHeaders(u.getAllResponseHeaders()),body:u.responseText};i(t)},u.onerror=function(){r(n.Utility.createRuntimeError(n.ErrorCodes.connectionFailure,n.Utility._getResourceString(n.ResourceStrings.connectionFailureWithStatus,u.statusText),null))},t.headers)for(f in t.headers)u.setRequestHeader(f,t.headers[f]);u.send(t.body)})},t.sendRequest=function(n){t.validateAndNormalizeRequest(n);var i;return i=t.s_customSendRequestFunc||t.xhrSendRequestFunc,i(n)},t.setCustomSendLocalDocumentRequestFunc=function(n){t.s_customSendLocalDocumentRequestFunc=n},t.sendLocalDocumentRequest=function(n){t.validateAndNormalizeRequest(n);var i;return i=t.s_customSendLocalDocumentRequestFunc||t.officeJsSendLocalDocumentRequestFunc,i(n)},t.officeJsSendLocalDocumentRequestFunc=function(t){t=n.Utility._validateLocalDocumentRequest(t);var i=n.Utility._buildRequestMessageSafeArray(t);return new n.Promise(function(t,r){OSF.DDA.RichApi.executeRichApiRequestAsync(i,function(i){var r;r=i.status=="succeeded"?{statusCode:n.RichApiMessageUtility.getResponseStatusCode(i),headers:n.RichApiMessageUtility.getResponseHeaders(i),body:n.RichApiMessageUtility.getResponseBody(i)}:n.RichApiMessageUtility.buildHttpResponseFromOfficeJsError(i.error.code,i.error.message);n.Utility.log(JSON.stringify(r));t(r)})})},t.validateAndNormalizeRequest=function(t){if(n.Utility.isNullOrUndefined(t))throw n.Utility.createInvalidArgumentException("request");n.Utility.isNullOrEmptyString(t.method)&&(t.method="GET");t.method=t.method.toUpperCase()},t}();n.HttpUtility=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(n){this.m_clientObject=n}return n.prototype._handleResult=function(n){this.m_clientObject._handleIdResult(n)},n}();n.InstantiateActionResultHandler=t}(OfficeExtension||(OfficeExtension={})),function(n){}(OfficeExtension||(OfficeExtension={})),function(n){var t,i,r,u;(function(n){n[n.CustomData=0]="CustomData";n[n.Method=1]="Method";n[n.PathAndQuery=2]="PathAndQuery";n[n.Headers=3]="Headers";n[n.Body=4]="Body";n[n.AppPermission=5]="AppPermission";n[n.RequestFlags=6]="RequestFlags"})(n.RichApiRequestMessageIndex||(n.RichApiRequestMessageIndex={}));t=n.RichApiRequestMessageIndex,function(n){n[n.StatusCode=0]="StatusCode";n[n.Headers=1]="Headers";n[n.Body=2]="Body"}(n.RichApiResponseMessageIndex||(n.RichApiResponseMessageIndex={}));i=n.RichApiResponseMessageIndex,function(n){n[n.Instantiate=1]="Instantiate";n[n.Query=2]="Query";n[n.Method=3]="Method";n[n.SetProperty=4]="SetProperty";n[n.Trace=5]="Trace";n[n.RecursiveQuery=6]="RecursiveQuery"}(n.ActionType||(n.ActionType={}));r=n.ActionType,function(n){n[n.GlobalObject=1]="GlobalObject";n[n.NewObject=2]="NewObject";n[n.Method=3]="Method";n[n.Property=4]="Property";n[n.Indexer=5]="Indexer";n[n.ReferenceId=6]="ReferenceId";n[n.NullObject=7]="NullObject"}(n.ObjectPathType||(n.ObjectPathType={}));u=n.ObjectPathType}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n,t,i,r){this.m_objectPathInfo=n;this.m_parentObjectPath=t;this.m_isWriteOperation=!1;this.m_isCollection=i;this.m_isInvalidAfterRequest=r;this.m_isValid=!0}return Object.defineProperty(t.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWriteOperation",{get:function(){return this.m_isWriteOperation},set:function(n){this.m_isWriteOperation=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(n){this.m_argumentObjectPaths=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this.m_isValid},set:function(n){this.m_isValid=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(n){this.m_getByIdMethodName=n},enumerable:!0,configurable:!0}),t.prototype._updateAsNullObject=function(){this.m_isInvalidAfterRequest=!1;this.m_isValid=!0;this.m_objectPathInfo.ObjectPathType=7;this.m_objectPathInfo.Name="";this.m_objectPathInfo.ArgumentInfo={};this.m_parentObjectPath=null;this.m_argumentObjectPaths=null},t.prototype.updateUsingObjectData=function(t){var f=t[n.Constants.referenceId],r,u,i;if(!n.Utility.isNullOrEmptyString(f)){this.m_isInvalidAfterRequest=!1;this.m_isValid=!0;this.m_objectPathInfo.ObjectPathType=6;this.m_objectPathInfo.Name=f;this.m_objectPathInfo.ArgumentInfo={};this.m_parentObjectPath=null;this.m_argumentObjectPaths=null;return}if(r=this.parentObjectPath&&this.parentObjectPath.isCollection,u=this.getByIdMethodName,(r||!n.Utility.isNullOrEmptyString(u))&&(i=t[n.Constants.id],n.Utility.isNullOrUndefined(i)&&(i=t[n.Constants.idPrivate]),!n.Utility.isNullOrUndefined(i))){this.m_isInvalidAfterRequest=!1;this.m_isValid=!0;r?(this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name=""):(this.m_objectPathInfo.ObjectPathType=3,this.m_objectPathInfo.Name=u,this.m_getByIdMethodName=null);this.isWriteOperation=!1;this.m_objectPathInfo.ArgumentInfo={};this.m_objectPathInfo.ArgumentInfo.Arguments=[i];this.m_argumentObjectPaths=null;return}},t}();n.ObjectPath=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.createGlobalObjectObjectPath=function(t){var i={Id:t._nextId(),ObjectPathType:1,Name:""};return new n.ObjectPath(i,null,!1,!1)},t.createNewObjectObjectPath=function(t,i,r){var u={Id:t._nextId(),ObjectPathType:2,Name:i};return new n.ObjectPath(u,null,r,!1)},t.createPropertyObjectPath=function(t,i,r,u,f){var e={Id:t._nextId(),ObjectPathType:4,Name:r,ParentObjectPathId:i._objectPath.objectPathInfo.Id};return new n.ObjectPath(e,i._objectPath,u,f)},t.createIndexerObjectPath=function(t,i,r){var u={Id:t._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return u.ArgumentInfo.Arguments=r,new n.ObjectPath(u,i._objectPath,!1,!1)},t.createIndexerObjectPathUsingParentPath=function(t,i,r){var u={Id:t._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:i.objectPathInfo.Id,ArgumentInfo:{}};return u.ArgumentInfo.Arguments=r,new n.ObjectPath(u,i,!1,!1)},t.createMethodObjectPath=function(t,i,r,u,f,e,o,s){var c={Id:t._nextId(),ObjectPathType:3,Name:r,ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},l=n.Utility.setMethodArguments(t,c.ArgumentInfo,f),h=new n.ObjectPath(c,i._objectPath,e,o);return h.argumentObjectPaths=l,h.isWriteOperation=u!=1,h.getByIdMethodName=s,h},t.createChildItemObjectPathUsingIndexerOrGetItemAt=function(i,r,u,f,e){var o=f[n.Constants.id];return n.Utility.isNullOrUndefined(o)&&(o=f[n.Constants.idPrivate]),i&&!n.Utility.isNullOrUndefined(o)?t.createChildItemObjectPathUsingIndexer(r,u,f):t.createChildItemObjectPathUsingGetItemAt(r,u,f,e)},t.createChildItemObjectPathUsingIndexer=function(t,i,r){var f=r[n.Constants.id],u;return n.Utility.isNullOrUndefined(f)&&(f=r[n.Constants.idPrivate]),u=u={Id:t._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},u.ArgumentInfo.Arguments=[f],new n.ObjectPath(u,i._objectPath,!1,!1)},t.createChildItemObjectPathUsingGetItemAt=function(t,i,r,u){var e=r[n.Constants.index],f;return e&&(u=e),f={Id:t._nextId(),ObjectPathType:3,Name:n.Constants.getItemAt,ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},f.ArgumentInfo.Arguments=[u],new n.ObjectPath(f,i._objectPath,!1,!1)},t}();n.ObjectPathFactory=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.prototype.executeAsync=function(i,r,u){var f=n.RichApiMessageUtility.buildMessageArrayForIRequestExecutor(i,r,u,t.SourceLibHeaderValue);return new n.Promise(function(t,i){OSF.DDA.RichApi.executeRichApiRequestAsync(f,function(i){n.Utility.log("Response:");n.Utility.log(JSON.stringify(i));var r;r=i.status=="succeeded"?n.RichApiMessageUtility.buildResponseOnSuccess(n.RichApiMessageUtility.getResponseBody(i),n.RichApiMessageUtility.getResponseHeaders(i)):n.RichApiMessageUtility.buildResponseOnError(i.error.code,i.error.message);t(r)})})},t.SourceLibHeaderValue="officejs",t}();n.OfficeJsRequestExecutor=t}(OfficeExtension||(OfficeExtension={})),function(n){var t;(function(t){var i;(function(i){function r(){(function(){"use strict";function bt(n){return typeof n=="function"||typeof n=="object"&&n!==null}function k(n){return typeof n=="function"}function kt(n){return typeof n=="object"&&n!==null}function dt(n){d=n}function gt(n){e=n}function ii(){var t=process.nextTick,n=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&n[1]==="0"&&n[2]==="10"&&(t=setImmediate),function(){t(l)}}function ri(){return function(){it(l)}}function ui(){var n=0,i=new ft(l),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function fi(){var n=new MessageChannel;return n.port1.onmessage=l,function(){n.port2.postMessage(0)}}function et(){return function(){setTimeout(l,1)}}function l(){for(var t,i,n=0;n<c;n+=2)t=o[n],i=o[n+1],t(i),o[n]=undefined,o[n+1]=undefined;c=0}function ei(){try{var t=require,n=t("vertx");return it=n.runOnLoop||n.runOnContext,ri()}catch(i){return et()}}function a(){}function oi(){return new TypeError("You cannot resolve a promise with itself")}function si(){return new TypeError("A promises callback cannot return that same promise.")}function hi(n){try{return n.then}catch(t){return p.error=t,p}}function ci(n,t,i,r){try{n.call(t,i,r)}catch(u){return u}}function li(n,t,r){e(function(n){var f=!1,e=ci(r,t,function(i){f||(f=!0,t!==i?y(n,i):u(n,i))},function(t){f||(f=!0,i(n,t))},"Settle: "+(n._label||" unknown promise"));!f&&e&&(f=!0,i(n,e))},n)}function ai(n,t){t._state===v?u(n,t._result):t._state===h?i(n,t._result):w(t,undefined,function(t){y(n,t)},function(t){i(n,t)})}function vi(n,t){if(t.constructor===n.constructor)ai(n,t);else{var r=hi(t);r===p?i(n,p.error):r===undefined?u(n,t):k(r)?li(n,t,r):u(n,t)}}function y(n,t){n===t?i(n,oi()):bt(t)?vi(n,t):u(n,t)}function yi(n){n._onerror&&n._onerror(n._result);g(n)}function u(n,t){n._state===s&&(n._result=t,n._state=v,n._subscribers.length!==0&&e(g,n))}function i(n,t){n._state===s&&(n._state=h,n._result=t,e(yi,n))}function w(n,t,i,r){var u=n._subscribers,f=u.length;n._onerror=null;u[f]=t;u[f+v]=i;u[f+h]=r;f===0&&n._state&&e(g,n)}function g(n){var i=n._subscribers,e=n._state,r,u,f,t;if(i.length!==0){for(f=n._result,t=0;t<i.length;t+=3)r=i[t],u=i[t+e],r?ht(e,r,u,f):u(f);n._subscribers.length=0}}function st(){this.error=null}function pi(n,t){try{return n(t)}catch(i){return b.error=i,b}}function ht(n,t,r,f){var c=k(r),e,l,o,a;if(c){if(e=pi(r,f),e===b?(a=!0,l=e.error,e=null):o=!0,t===e){i(t,si());return}}else e=f,o=!0;t._state!==s||(c&&o?y(t,e):a?i(t,l):n===v?u(t,e):n===h&&i(t,e))}function wi(n,t){try{t(function(t){y(n,t)},function(t){i(n,t)})}catch(r){i(n,r)}}function f(n,t){var r=this;r._instanceConstructor=n;r.promise=new n(a);r._validateInput(t)?(r._input=t,r.length=t.length,r._remaining=t.length,r._init(),r.length===0?u(r.promise,r._result):(r.length=r.length||0,r._enumerate(),r._remaining===0&&u(r.promise,r._result))):i(r.promise,r._validationError())}function bi(n){return new ct(this,n).promise}function ki(n){function e(n){y(t,n)}function o(n){i(t,n)}var u=this,t=new u(a),f,r;if(!tt(n))return i(t,new TypeError("You must pass an array to race.")),t;for(f=n.length,r=0;t._state===s&&r<f;r++)w(u.resolve(n[r]),undefined,e,o);return t}function di(n){var i=this,t;return n&&typeof n=="object"&&n.constructor===i?n:(t=new i(a),y(t,n),t)}function gi(n){var r=this,t=new r(a);return i(t,n),t}function nr(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function tr(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function r(n){this._id=pt++;this._state=undefined;this._result=undefined;this._subscribers=[];a!==n&&(k(n)||nr(),this instanceof r||tr(),wi(this,n))}var nt,o,ot,b,ct,lt,at,vt,yt,pt,wt;nt=Array.isArray?Array.isArray:function(n){return Object.prototype.toString.call(n)==="[object Array]"};var tt=nt,c=0,ir={}.toString,it,d,e=function(n,t){o[c]=n;o[c+1]=t;c+=2;c===2&&(d?d(l):ot())};var rt=typeof window!="undefined"?window:undefined,ut=rt||{},ft=ut.MutationObserver||ut.WebKitMutationObserver,ni=typeof process!="undefined"&&{}.toString.call(process)==="[object process]",ti=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";o=new Array(1e3);ot=ni?ii():ft?ui():ti?fi():rt===undefined&&typeof require=="function"?ei():et();var s=void 0,v=1,h=2,p=new st;b=new st;f.prototype._validateInput=function(n){return tt(n)};f.prototype._validationError=function(){return new t.Error("Array Methods must be provided an Array")};f.prototype._init=function(){this._result=new Array(this.length)};ct=f;f.prototype._enumerate=function(){for(var n=this,i=n.length,r=n.promise,u=n._input,t=0;r._state===s&&t<i;t++)n._eachEntry(u[t],t)};f.prototype._eachEntry=function(n,t){var i=this,r=i._instanceConstructor;kt(n)?n.constructor===r&&n._state!==s?(n._onerror=null,i._settledAt(n._state,t,n._result)):i._willSettleAt(r.resolve(n),t):(i._remaining--,i._result[t]=n)};f.prototype._settledAt=function(n,t,r){var f=this,e=f.promise;e._state===s&&(f._remaining--,n===h?i(e,r):f._result[t]=r);f._remaining===0&&u(e,f._result)};f.prototype._willSettleAt=function(n,t){var i=this;w(n,undefined,function(n){i._settledAt(v,t,n)},function(n){i._settledAt(h,t,n)})};lt=bi;at=ki;vt=di;yt=gi;pt=0;wt=r;r.all=lt;r.race=at;r.resolve=vt;r.reject=yt;r._setScheduler=dt;r._setAsap=gt;r._asap=e;r.prototype={constructor:r,then:function(n,t){var u=this,i=u._state,r,f,o;return i===v&&!n||i===h&&!t?this:(r=new this.constructor(a),f=u._result,i?(o=arguments[i-1],e(function(){ht(i,r,o,f)})):w(u,r,n,t),r)},"catch":function(n){return this.then(null,n)}};n.Promise=wt}).call(this)}i.Init=r})(i=t.PromiseImpl||(t.PromiseImpl={}))})(t=n._Internal||(n._Internal={}));n.Promise||(typeof window!="undefined"&&window.Promise?IsEdgeLessThan14()?t.PromiseImpl.Init():n.Promise=window.Promise:t.PromiseImpl.Init())}(OfficeExtension||(OfficeExtension={})),function(n){(function(n){n[n.Default=0]="Default";n[n.Read=1]="Read"})(n.OperationType||(n.OperationType={}));var t=n.OperationType}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n){this._autoCleanupList={};this.m_context=n}return t.prototype.add=function(n){var t=this;Array.isArray(n)?n.forEach(function(n){return t._addCommon(n,!0)}):this._addCommon(n,!0)},t.prototype._autoAdd=function(n){this._addCommon(n,!1);this._autoCleanupList[n._objectPath.objectPathInfo.Id]=n},t.prototype._addCommon=function(t,i){if(t[n.Constants.isTracked]){i&&this.m_context._autoCleanup&&delete this._autoCleanupList[t._objectPath.objectPathInfo.Id];return}var r=t[n.Constants.referenceId];n.Utility.isNullOrEmptyString(r)&&t._KeepReference&&(t._KeepReference(),n.ActionFactory.createInstantiateAction(this.m_context,t),i&&this.m_context._autoCleanup&&delete this._autoCleanupList[t._objectPath.objectPathInfo.Id],t[n.Constants.isTracked]=!0)},t.prototype.remove=function(n){var t=this;Array.isArray(n)?n.forEach(function(n){return t._removeCommon(n)}):this._removeCommon(n)},t.prototype._removeCommon=function(t){var r=t[n.Constants.referenceId],i;n.Utility.isNullOrEmptyString(r)||(i=this.m_context._rootObject,i._RemoveReference&&i._RemoveReference(r),delete t[n.Constants.isTracked])},t.prototype._retrieveAndClearAutoCleanupList=function(){var n=this._autoCleanupList;return this._autoCleanupList={},n},t}();n.TrackedObjects=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(){}return n.invalidObjectPath="InvalidObjectPath",n.propertyNotLoaded="PropertyNotLoaded",n.valueNotLoaded="ValueNotLoaded",n.invalidRequestContext="InvalidRequestContext",n.invalidArgument="InvalidArgument",n.runMustReturnPromise="RunMustReturnPromise",n.cannotRegisterEvent="CannotRegisterEvent",n.connectionFailureWithStatus="ConnectionFailureWithStatus",n.connectionFailureWithDetails="ConnectionFailureWithDetails",n}();n.ResourceStrings=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.buildMessageArrayForIRequestExecutor=function(i,r,u,f){var o=JSON.stringify(u.Body),e;return n.Utility.log("Request:"),n.Utility.log(o),e={},e[n.Constants.sourceLibHeader]=f,t.buildRequestMessageSafeArray(i,r,"POST","ProcessQuery",e,o)},t.buildResponseOnSuccess=function(n,t){var i={ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return i.Body=JSON.parse(n),i.Headers=t,i},t.buildResponseOnError=function(i,r){var u={ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return u.ErrorCode=n.ErrorCodes.generalException,i==t.OfficeJsErrorCode_ooeNoCapability?u.ErrorCode=n.ErrorCodes.accessDenied:i==t.OfficeJsErrorCode_ooeActivityLimitReached&&(u.ErrorCode=n.ErrorCodes.activityLimitReached),u.ErrorMessage=r,u},t.buildHttpResponseFromOfficeJsError=function(i,r){var f=500,u={};return u.error={},u.error.code=n.ErrorCodes.generalException,u.error.message=r,i===t.OfficeJsErrorCode_ooeNoCapability?(f=403,u.error.code=n.ErrorCodes.accessDenied):i===t.OfficeJsErrorCode_ooeActivityLimitReached&&(f=429,u.error.code=n.ErrorCodes.activityLimitReached),{statusCode:f,headers:{},body:JSON.stringify(u)}},t.buildRequestMessageSafeArray=function(n,t,i,r,u,f){var e=[],o;if(u)for(o in u)e.push(o),e.push(u[o]);var s=0,h="",c="",l="";return[n,i,r,e,f,s,t,h,c,l]},t.getResponseBody=function(n){return t.getResponseBodyFromSafeArray(n.value.data)},t.getResponseHeaders=function(n){return t.getResponseHeadersFromSafeArray(n.value.data)},t.getResponseBodyFromSafeArray=function(n){var t=n[2],i;return typeof t=="string"?t:(i=t,i.join(""))},t.getResponseHeadersFromSafeArray=function(n){var i=n[1],r,t;if(!i)return null;for(r={},t=0;t<i.length-1;t+=2)r[i[t]]=i[t+1];return r},t.getResponseStatusCode=function(n){return t.getResponseStatusCodeFromSafeArray(n.value.data)},t.getResponseStatusCodeFromSafeArray=function(n){return n[0]},t.OfficeJsErrorCode_ooeNoCapability=7e3,t.OfficeJsErrorCode_ooeActivityLimitReached=5102,t}();n.RichApiMessageUtility=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.checkArgumentNull=function(i,r){t.isNullOrUndefined(i)&&t.throwError(n.ResourceStrings.invalidArgument,r)},t.isNullOrUndefined=function(n){return n===null?!0:typeof n=="undefined"?!0:!1},t.isUndefined=function(n){return typeof n=="undefined"?!0:!1},t.isNullOrEmptyString=function(n){return n===null?!0:typeof n=="undefined"?!0:n.length==0?!0:!1},t.isPlainJsonObject=function(n){return t.isNullOrUndefined(n)?!1:typeof n!="object"?!1:Object.getPrototypeOf(n)===Object.getPrototypeOf({})},t.trim=function(n){return n.replace(new RegExp("^\\s+|\\s+$","g"),"")},t.caseInsensitiveCompareString=function(n,i){return t.isNullOrUndefined(n)?t.isNullOrUndefined(i):t.isNullOrUndefined(i)?!1:n.toUpperCase()==i.toUpperCase()},t.adjustToDateTime=function(i){var r,u;if(t.isNullOrUndefined(i))return null;if(typeof i=="string")return new Date(i);if(Array.isArray(i)){for(r=i,u=0;u<r.length;u++)r[u]=t.adjustToDateTime(r[u]);return r}throw t.createRuntimeError(n.ErrorCodes.invalidArgument,t._getResourceString(n.ResourceStrings.invalidArgument,"date"),null);},t.isReadonlyRestRequest=function(n){return t.caseInsensitiveCompareString(n,"GET")},t.setMethodArguments=function(n,i,r){if(t.isNullOrUndefined(r))return null;var u=[],f=[],e=t.collectObjectPathInfos(n,r,u,f);return(i.Arguments=r,e)?(i.ReferencedObjectPathIds=f,u):null},t.collectObjectPathInfos=function(i,r,u,f){for(var o,h,c,s=!1,e=0;e<r.length;e++)r[e]instanceof n.ClientObject?(o=r[e],t.validateContext(i,o),r[e]=o._objectPath.objectPathInfo.Id,f.push(o._objectPath.objectPathInfo.Id),u.push(o._objectPath),s=!0):Array.isArray(r[e])?(h=[],c=t.collectObjectPathInfos(i,r[e],u,h),c?(f.push(h),s=!0):f.push(0)):f.push(0);return s},t.fixObjectPathIfNecessary=function(n,t){n&&n._objectPath&&t&&n._objectPath.updateUsingObjectData(t)},t.validateObjectPath=function(i){for(var r=i._objectPath,u;r;)r.isValid||(u=t.getObjectPathExpression(r),t.throwError(n.ResourceStrings.invalidObjectPath,u)),r=r.parentObjectPath},t.validateReferencedObjectPaths=function(i){var u,r,f;if(i)for(u=0;u<i.length;u++)for(r=i[u];r;)r.isValid||(f=t.getObjectPathExpression(r),t.throwError(n.ResourceStrings.invalidObjectPath,f)),r=r.parentObjectPath},t.validateContext=function(i,r){r&&r.context!==i&&t.throwError(n.ResourceStrings.invalidRequestContext)},t.log=function(n){t._logEnabled&&typeof console!="undefined"&&console.log&&console.log(n)},t.load=function(n,t){n.context.load(n,t)},t._parseSelectExpand=function(n){function e(n){var t=n.toLowerCase(),i;return t==="items"||t==="items/"?"*":(i=6,t.substr(0,i)==="items/"&&(n=n.substr(i)),n.replace(new RegExp("/items/","gi"),"/"))}var f=[],u,r,i;if(!t.isNullOrEmptyString(n))for(u=n.split(","),r=0;r<u.length;r++)i=u[r],i=e(i.trim()),i.length>0&&f.push(i);return f},t.throwError=function(i,r,u){throw new n._Internal.RuntimeError(i,t._getResourceString(i,r),[],u?{errorLocation:u}:{});},t.createRuntimeError=function(t,i,r){return new n._Internal.RuntimeError(t,i,[],{errorLocation:r})},t.createInvalidArgumentException=function(i,r){return t.createRuntimeError(n.ErrorCodes.invalidArgument,t._getResourceString(n.ResourceStrings.invalidArgument,i),r)},t._getResourceString=function(n,i){var r=n,f,u,e;return typeof window!="undefined"&&window.Strings&&window.Strings.OfficeOM&&(f="L_"+n,u=window.Strings.OfficeOM[f],u&&(r=u)),t.isNullOrUndefined(i)||(Array.isArray(i)?(e=i,r=t._formatString(r,e)):r=r.replace("{0}",i)),r},t._formatString=function(i,r){return i.replace(/\{\d\}/g,function(i){var u=parseInt(i.substr(1,i.length-2));if(u<r.length)return r[u];else throw t.createRuntimeError(n.ErrorCodes.invalidArgument,t._getResourceString(n.ResourceStrings.invalidArgument,"format"),null);return""})},t.throwIfNotLoaded=function(i,r,u,f){!f&&t.isUndefined(r)&&i.charCodeAt(0)!=t.s_underscoreCharCode&&t.throwError(n.ResourceStrings.propertyNotLoaded,i,u?u+"."+i:null)},t.getObjectPathExpression=function(n){for(var i="";n;){switch(n.objectPathInfo.ObjectPathType){case 1:i=i;break;case 2:i="new()"+(i.length>0?".":"")+i;break;case 3:i=t.normalizeName(n.objectPathInfo.Name)+"()"+(i.length>0?".":"")+i;break;case 4:i=t.normalizeName(n.objectPathInfo.Name)+(i.length>0?".":"")+i;break;case 5:i="getItem()"+(i.length>0?".":"")+i;break;case 6:i="_reference()"+(i.length>0?".":"")+i;break}n=n.parentObjectPath}return i},t._createPromiseFromResult=function(t){return new n.Promise(function(n,i){n(t)})},t._createTimeoutPromise=function(t){return new n.Promise(function(n,i){setTimeout(function(){n(null)},t)})},t.promisify=function(t){return new n.Promise(function(n,i){var r=function(t){t.status=="failed"?i(t.error):n(t.value)};t(r)})},t._addActionResultHandler=function(n,t,i){n.context._pendingRequest.addActionResultHandler(t,i)},t._handleNavigationPropertyResults=function(n,i,r){for(var u=0;u<r.length-1;u+=2)t.isUndefined(i[r[u+1]])||n[r[u]]._handleResult(i[r[u+1]])},t.normalizeName=function(n){return n.substr(0,1).toLowerCase()+n.substr(1)},t._isLocalDocumentUrl=function(n){return t._getLocalDocumentUrlPrefixLength(n)>0},t._getLocalDocumentUrlPrefixLength=function(n){for(var i=["http://document.localhost","https://document.localhost","//document.localhost"],r=n.toLowerCase().trim(),t=0;t<i.length;t++)if(r===i[t])return i[t].length;else if(r.substr(0,i[t].length+1)===i[t]+"/")return i[t].length+1;return 0},t._validateLocalDocumentRequest=function(n){var u=t._getLocalDocumentUrlPrefixLength(n.url),i,r;if(u<=0)throw t.createInvalidArgumentException("request");return i=n.url.substr(u),r=i.toLowerCase(),r==="_api"?i="":r.substr(0,5)==="_api/"&&(i=i.substr(5)),{method:n.method,url:i,headers:n.headers,body:n.body}},t._buildRequestMessageSafeArray=function(i){var f=0,r,e,u,o,s;if(t.isReadonlyRestRequest(i.method)||(f=1),r="",i.headers&&(r=i.headers[n.Constants.requestInfoHeader],!t.isNullOrEmptyString(r)))for(e=r.split("&"),u=0;u<e.length;u++)if(o=e[u].split("="),o[0]=="flags"){s=parseInt(o[1]);f=s;break}return n.RichApiMessageUtility.buildRequestMessageSafeArray("",f,i.method,i.url,i.headers,i.body)},t._parseHttpResponseHeaders=function(n){var s={},h,o,r,i,u,f,e;if(!t.isNullOrEmptyString(n))for(h=new RegExp("\r?\n"),o=n.split(h),r=0;r<o.length;r++)i=o[r],i!=null&&(u=i.indexOf(":"),u>0&&(f=i.substr(0,u),e=i.substr(u+1),f=t.trim(f),e=t.trim(e),s[f.toUpperCase()]=e));return s},t._logEnabled=!1,t.s_underscoreCharCode="_".charCodeAt(0),t}();n.Utility=t}(OfficeExtension||(OfficeExtension={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){function k(n){return n[0].toLowerCase()+n.slice(1)}function w(n,t,i){var s=1500,e,r,u,o,h;if(Array.isArray(i)&&i.length>0&&Array.isArray(i[0])&&i.length*i[0].length>s&&p()){for(e=Math.max(1,Math.round(s/i[0].length)),n._ValidateArraySize(i.length,i[0].length),r=0;r<i.length;r+=e)u=e,r+u>i.length&&(u=i.length-r),o=n.getRow(r).getBoundingRect(n.getRow(r+u-1)),h=i.slice(r,r+u),f(o.context,o,t,h);return!0}return!1}function p(){return typeof window!="undefined"&&window.Office&&window.Office.context&&window.Office.context.requirements?window.Office.context.requirements.isSetSupported("ExcelApi",1.3):!0}var lr=["ThreeArrows","ThreeArrowsGray","ThreeFlags","ThreeTrafficLights1","ThreeTrafficLights2","ThreeSigns","ThreeSymbols","ThreeSymbols2","FourArrows","FourArrowsGray","FourRedToBlack","FourRating","FourTrafficLights","FiveArrows","FiveArrowsGray","FiveRating","FiveQuarters","ThreeStars","ThreeTriangles","FiveBoxes"],ar=[["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"],],d,g,nt,tt,b,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,wt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai,vi,yi,pi,wi,bi,ki,di,gi,nr,tr,ir,rr,ur,fr,er,or,sr,hr,yr,pr,wr,br,kr,dr,gr,nu,tu,iu,ru,uu,fu,eu,ou,su,hu,cu,lu,au,vu,yu,pu,wu,bu,ku,du,gu,nf,tf,i,cr,rf;n.icons={};lr.map(function(t,i){var r=k(t);n.icons[r]=[];ar[i].map(function(i,u){i=k(i);var f={set:t,index:u};n.icons[r].push(f);n.icons[r][i]=f})});var s=OfficeExtension.ObjectPathFactory.createPropertyObjectPath,t=OfficeExtension.ObjectPathFactory.createMethodObjectPath,y=OfficeExtension.ObjectPathFactory.createIndexerObjectPath,uf=OfficeExtension.ObjectPathFactory.createNewObjectObjectPath,ff=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexer,ef=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingGetItemAt,v=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexerOrGetItemAt,o=OfficeExtension.ActionFactory.createMethodAction,f=OfficeExtension.ActionFactory.createSetPropertyAction,e=OfficeExtension.Utility.isNullOrUndefined,u=OfficeExtension.Utility.isUndefined,r=OfficeExtension.Utility.throwIfNotLoaded,c=OfficeExtension.Utility.load,h=OfficeExtension.Utility.fixObjectPathIfNecessary,a=OfficeExtension.Utility._addActionResultHandler,l=OfficeExtension.Utility._handleNavigationPropertyResults,of=OfficeExtension.Utility.adjustToDateTime,vr=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"calculationMode",{get:function(){return r("calculationMode",this.m_calculationMode,"Application",this._isNull),this.m_calculationMode},enumerable:!0,configurable:!0}),t.prototype.calculate=function(n){o(this.context,this,"Calculate",OfficeExtension.OperationType.Default,[n])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.CalculationMode)||(this.m_calculationMode=i.CalculationMode)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{calculationMode:this.m_calculationMode}},t}(OfficeExtension.ClientObject);n.Application=vr;d=function(i){function r(){i.apply(this,arguments)}return __extends(r,i),Object.defineProperty(r.prototype,"application",{get:function(){return this.m_application||(this.m_application=new n.Application(this.context,s(this.context,this,"Application",!1,!1))),this.m_application},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bindings",{get:function(){return this.m_bindings||(this.m_bindings=new n.BindingCollection(this.context,s(this.context,this,"Bindings",!0,!1))),this.m_bindings},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"functions",{get:function(){return this.m_functions||(this.m_functions=new n.Functions(this.context,s(this.context,this,"Functions",!1,!1))),this.m_functions},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"names",{get:function(){return this.m_names||(this.m_names=new n.NamedItemCollection(this.context,s(this.context,this,"Names",!0,!1))),this.m_names},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pivotTables",{get:function(){return this.m_pivotTables||(this.m_pivotTables=new n.PivotTableCollection(this.context,s(this.context,this,"PivotTables",!0,!1))),this.m_pivotTables},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tables",{get:function(){return this.m_tables||(this.m_tables=new n.TableCollection(this.context,s(this.context,this,"Tables",!0,!1))),this.m_tables},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"worksheets",{get:function(){return this.m_worksheets||(this.m_worksheets=new n.WorksheetCollection(this.context,s(this.context,this,"Worksheets",!0,!1))),this.m_worksheets},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_V1Api",{get:function(){return this.m__V1Api||(this.m__V1Api=new n._V1Api(this.context,s(this.context,this,"_V1Api",!1,!1))),this.m__V1Api},enumerable:!0,configurable:!0}),r.prototype.getSelectedRange=function(){return new n.Range(this.context,t(this.context,this,"GetSelectedRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},r.prototype._GetObjectByReferenceId=function(n){var i=o(this.context,this,"_GetObjectByReferenceId",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},r.prototype._GetObjectTypeNameByReferenceId=function(n){var i=o(this.context,this,"_GetObjectTypeNameByReferenceId",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},r.prototype._GetReferenceCount=function(){var t=o(this.context,this,"_GetReferenceCount",OfficeExtension.OperationType.Read,[]),n=new OfficeExtension.ClientResult;return a(this,t,n),n},r.prototype._RemoveAllReferences=function(){o(this.context,this,"_RemoveAllReferences",OfficeExtension.OperationType.Read,[])},r.prototype._RemoveReference=function(n){o(this.context,this,"_RemoveReference",OfficeExtension.OperationType.Read,[n])},r.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);l(this,t,["application","Application","bindings","Bindings","functions","Functions","names","Names","pivotTables","PivotTables","tables","Tables","worksheets","Worksheets","_V1Api","_V1Api"])}},r.prototype.load=function(n){return c(this,n),this},Object.defineProperty(r.prototype,"onSelectionChanged",{get:function(){var n=this;return this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(n){return OfficeExtension.Utility.promisify(function(t){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,n,t)})},unregisterFunc:function(n){return OfficeExtension.Utility.promisify(function(t){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:n},t)})},eventArgsTransformFunc:function(t){return OfficeExtension.Utility._createPromiseFromResult({workbook:n})}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),r.prototype.toJSON=function(){return{}},r}(OfficeExtension.ClientObject);n.Workbook=d;g=function(i){function a(){i.apply(this,arguments)}return __extends(a,i),Object.defineProperty(a.prototype,"charts",{get:function(){return this.m_charts||(this.m_charts=new n.ChartCollection(this.context,s(this.context,this,"Charts",!0,!1))),this.m_charts},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pivotTables",{get:function(){return this.m_pivotTables||(this.m_pivotTables=new n.PivotTableCollection(this.context,s(this.context,this,"PivotTables",!0,!1))),this.m_pivotTables},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"protection",{get:function(){return this.m_protection||(this.m_protection=new n.WorksheetProtection(this.context,s(this.context,this,"Protection",!1,!1))),this.m_protection},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tables",{get:function(){return this.m_tables||(this.m_tables=new n.TableCollection(this.context,s(this.context,this,"Tables",!0,!1))),this.m_tables},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"id",{get:function(){return r("id",this.m_id,"Worksheet",this._isNull),this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"name",{get:function(){return r("name",this.m_name,"Worksheet",this._isNull),this.m_name},set:function(n){this.m_name=n;f(this.context,this,"Name",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"position",{get:function(){return r("position",this.m_position,"Worksheet",this._isNull),this.m_position},set:function(n){this.m_position=n;f(this.context,this,"Position",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"visibility",{get:function(){return r("visibility",this.m_visibility,"Worksheet",this._isNull),this.m_visibility},set:function(n){this.m_visibility=n;f(this.context,this,"Visibility",n)},enumerable:!0,configurable:!0}),a.prototype.activate=function(){o(this.context,this,"Activate",OfficeExtension.OperationType.Read,[])},a.prototype.delete=function(){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[])},a.prototype.getCell=function(i,r){return new n.Range(this.context,t(this.context,this,"GetCell",OfficeExtension.OperationType.Read,[i,r],!1,!0,null))},a.prototype.getRange=function(i){return new n.Range(this.context,t(this.context,this,"GetRange",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getUsedRange=function(i){return new n.Range(this.context,t(this.context,this,"GetUsedRange",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.Id)||(this.m_id=t.Id);u(t.Name)||(this.m_name=t.Name);u(t.Position)||(this.m_position=t.Position);u(t.Visibility)||(this.m_visibility=t.Visibility);l(this,t,["charts","Charts","pivotTables","PivotTables","protection","Protection","tables","Tables"])}},a.prototype.load=function(n){return c(this,n),this},a.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),e(n))||u(n.Id)||(this.m_id=n.Id)},a.prototype.toJSON=function(){return{id:this.m_id,name:this.m_name,position:this.m_position,protection:this.m_protection,visibility:this.m_visibility}},a}(OfficeExtension.ClientObject);n.Worksheet=g;nt=function(i){function u(){i.apply(this,arguments)}return __extends(u,i),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,"WorksheetCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.add=function(i){return new n.Worksheet(this.context,t(this.context,this,"Add",OfficeExtension.OperationType.Default,[i],!1,!0,null))},u.prototype.getActiveWorksheet=function(){return new n.Worksheet(this.context,t(this.context,this,"GetActiveWorksheet",OfficeExtension.OperationType.Read,[],!1,!1,null))},u.prototype.getItem=function(t){return new n.Worksheet(this.context,y(this.context,this,[t]))},u.prototype._handleResult=function(t){var u,f,r,o;if((i.prototype._handleResult.call(this,t),!e(t))&&(u=t,h(this,u),!e(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)o=new n.Worksheet(this.context,v(!0,this.context,this,f[r],r)),o._handleResult(f[r]),this.m__items.push(o)},u.prototype.load=function(n){return c(this,n),this},u.prototype.toJSON=function(){return{}},u}(OfficeExtension.ClientObject);n.WorksheetCollection=nt;tt=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"options",{get:function(){return r("options",this.m_options,"WorksheetProtection",this._isNull),this.m_options},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protected",{get:function(){return r("protected",this.m_protected,"WorksheetProtection",this._isNull),this.m_protected},enumerable:!0,configurable:!0}),t.prototype.protect=function(n){o(this.context,this,"Protect",OfficeExtension.OperationType.Default,[n])},t.prototype.unprotect=function(){o(this.context,this,"Unprotect",OfficeExtension.OperationType.Default,[])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Options)||(this.m_options=i.Options);u(i.Protected)||(this.m_protected=i.Protected)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{options:this.m_options,protected:this.m_protected}},t}(OfficeExtension.ClientObject);n.WorksheetProtection=tt;b=function(i){function a(){i.apply(this,arguments)}return __extends(a,i),a.prototype._ensureInteger=function(t,i){if(!(typeof t=="number"&&isFinite(t)&&Math.floor(t)===t))throw new OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,t,i);},a.prototype._getAdjacentRange=function(n,t,i,r,u){t==null&&(t=1);this._ensureInteger(t,n);var f,e=0,o=0;return(t>0?f=i.getOffsetRange(r,u):(f=i,e=r,o=u),Math.abs(t)==1)?f:f.getBoundingRect(i.getOffsetRange(r*t+e,u*t+o))},Object.defineProperty(a.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.RangeFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"sort",{get:function(){return this.m_sort||(this.m_sort=new n.RangeSort(this.context,s(this.context,this,"Sort",!1,!1))),this.m_sort},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"worksheet",{get:function(){return this.m_worksheet||(this.m_worksheet=new n.Worksheet(this.context,s(this.context,this,"Worksheet",!1,!1))),this.m_worksheet},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"address",{get:function(){return r("address",this.m_address,"Range",this._isNull),this.m_address},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"addressLocal",{get:function(){return r("addressLocal",this.m_addressLocal,"Range",this._isNull),this.m_addressLocal},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"cellCount",{get:function(){return r("cellCount",this.m_cellCount,"Range",this._isNull),this.m_cellCount},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columnCount",{get:function(){return r("columnCount",this.m_columnCount,"Range",this._isNull),this.m_columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columnHidden",{get:function(){return r("columnHidden",this.m_columnHidden,"Range",this._isNull),this.m_columnHidden},set:function(n){this.m_columnHidden=n;f(this.context,this,"ColumnHidden",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columnIndex",{get:function(){return r("columnIndex",this.m_columnIndex,"Range",this._isNull),this.m_columnIndex},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"formulas",{get:function(){return r("formulas",this.m_formulas,"Range",this._isNull),this.m_formulas},set:function(n){(this.m_formulas=n,w(this,"Formulas",n))||(this.m_formulas=n,f(this.context,this,"Formulas",n))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"formulasLocal",{get:function(){return r("formulasLocal",this.m_formulasLocal,"Range",this._isNull),this.m_formulasLocal},set:function(n){(this.m_formulasLocal=n,w(this,"FormulasLocal",n))||(this.m_formulasLocal=n,f(this.context,this,"FormulasLocal",n))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"formulasR1C1",{get:function(){return r("formulasR1C1",this.m_formulasR1C1,"Range",this._isNull),this.m_formulasR1C1},set:function(n){(this.m_formulasR1C1=n,w(this,"FormulasR1C1",n))||(this.m_formulasR1C1=n,f(this.context,this,"FormulasR1C1",n))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hidden",{get:function(){return r("hidden",this.m_hidden,"Range",this._isNull),this.m_hidden},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"numberFormat",{get:function(){return r("numberFormat",this.m_numberFormat,"Range",this._isNull),this.m_numberFormat},set:function(n){(this.m_numberFormat=n,w(this,"NumberFormat",n))||(this.m_numberFormat=n,f(this.context,this,"NumberFormat",n))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rowCount",{get:function(){return r("rowCount",this.m_rowCount,"Range",this._isNull),this.m_rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rowHidden",{get:function(){return r("rowHidden",this.m_rowHidden,"Range",this._isNull),this.m_rowHidden},set:function(n){this.m_rowHidden=n;f(this.context,this,"RowHidden",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rowIndex",{get:function(){return r("rowIndex",this.m_rowIndex,"Range",this._isNull),this.m_rowIndex},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"text",{get:function(){return r("text",this.m_text,"Range",this._isNull),this.m_text},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valueTypes",{get:function(){return r("valueTypes",this.m_valueTypes,"Range",this._isNull),this.m_valueTypes},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"values",{get:function(){return r("values",this.m_values,"Range",this._isNull),this.m_values},set:function(n){(this.m_values=n,w(this,"Values",n))||(this.m_values=n,f(this.context,this,"Values",n))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"_ReferenceId",{get:function(){return r("_ReferenceId",this.m__ReferenceId,"Range",this._isNull),this.m__ReferenceId},enumerable:!0,configurable:!0}),a.prototype.clear=function(n){o(this.context,this,"Clear",OfficeExtension.OperationType.Default,[n])},a.prototype.delete=function(n){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[n])},a.prototype.getBoundingRect=function(i){return new n.Range(this.context,t(this.context,this,"GetBoundingRect",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getCell=function(i,r){return new n.Range(this.context,t(this.context,this,"GetCell",OfficeExtension.OperationType.Read,[i,r],!1,!0,null))},a.prototype.getColumn=function(i){return new n.Range(this.context,t(this.context,this,"GetColumn",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getColumnsAfter=function(i){if(!p()){if(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i==0)throw new OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getColumnsAfter",i,this.getLastColumn(),0,1)}return new n.Range(this.context,t(this.context,this,"GetColumnsAfter",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getColumnsBefore=function(i){if(!p()){if(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i==0)throw new OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getColumnsBefore",i,this.getColumn(0),0,-1)}return new n.Range(this.context,t(this.context,this,"GetColumnsBefore",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getEntireColumn=function(){return new n.Range(this.context,t(this.context,this,"GetEntireColumn",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getEntireRow=function(){return new n.Range(this.context,t(this.context,this,"GetEntireRow",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getIntersection=function(i){return new n.Range(this.context,t(this.context,this,"GetIntersection",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getLastCell=function(){return new n.Range(this.context,t(this.context,this,"GetLastCell",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getLastColumn=function(){return new n.Range(this.context,t(this.context,this,"GetLastColumn",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getLastRow=function(){return new n.Range(this.context,t(this.context,this,"GetLastRow",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getOffsetRange=function(i,r){return new n.Range(this.context,t(this.context,this,"GetOffsetRange",OfficeExtension.OperationType.Read,[i,r],!1,!0,null))},a.prototype.getResizedRange=function(i,r){if(!p()){this._ensureInteger(i,"getResizedRange");this._ensureInteger(r,"getResizedRange");var u=i>=0&&r>=0?this:this.getCell(0,0);return u.getBoundingRect(this.getLastCell().getOffsetRange(i,r))}return new n.Range(this.context,t(this.context,this,"GetResizedRange",OfficeExtension.OperationType.Read,[i,r],!1,!0,null))},a.prototype.getRow=function(i){return new n.Range(this.context,t(this.context,this,"GetRow",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getRowsAbove=function(i){if(!p()){if(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i==0)throw new OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getRowsAbove",i,this.getRow(0),-1,0)}return new n.Range(this.context,t(this.context,this,"GetRowsAbove",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getRowsBelow=function(i){if(!p()){if(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i==0)throw new OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove");return this._getAdjacentRange("getRowsBelow",i,this.getLastRow(),1,0)}return new n.Range(this.context,t(this.context,this,"GetRowsBelow",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getUsedRange=function(i){return new n.Range(this.context,t(this.context,this,"GetUsedRange",OfficeExtension.OperationType.Read,[i],!1,!0,null))},a.prototype.getVisibleView=function(){return new n.RangeView(this.context,t(this.context,this,"GetVisibleView",OfficeExtension.OperationType.Read,[],!1,!1,null))},a.prototype.insert=function(i){return new n.Range(this.context,t(this.context,this,"Insert",OfficeExtension.OperationType.Default,[i],!1,!0,null))},a.prototype.merge=function(n){o(this.context,this,"Merge",OfficeExtension.OperationType.Default,[n])},a.prototype.select=function(){o(this.context,this,"Select",OfficeExtension.OperationType.Read,[])},a.prototype.unmerge=function(){o(this.context,this,"Unmerge",OfficeExtension.OperationType.Default,[])},a.prototype._KeepReference=function(){o(this.context,this,"_KeepReference",OfficeExtension.OperationType.Read,[])},a.prototype._ValidateArraySize=function(n,t){o(this.context,this,"_ValidateArraySize",OfficeExtension.OperationType.Read,[n,t])},a.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.Address)||(this.m_address=t.Address);u(t.AddressLocal)||(this.m_addressLocal=t.AddressLocal);u(t.CellCount)||(this.m_cellCount=t.CellCount);u(t.ColumnCount)||(this.m_columnCount=t.ColumnCount);u(t.ColumnHidden)||(this.m_columnHidden=t.ColumnHidden);u(t.ColumnIndex)||(this.m_columnIndex=t.ColumnIndex);u(t.Formulas)||(this.m_formulas=t.Formulas);u(t.FormulasLocal)||(this.m_formulasLocal=t.FormulasLocal);u(t.FormulasR1C1)||(this.m_formulasR1C1=t.FormulasR1C1);u(t.Hidden)||(this.m_hidden=t.Hidden);u(t.NumberFormat)||(this.m_numberFormat=t.NumberFormat);u(t.RowCount)||(this.m_rowCount=t.RowCount);u(t.RowHidden)||(this.m_rowHidden=t.RowHidden);u(t.RowIndex)||(this.m_rowIndex=t.RowIndex);u(t.Text)||(this.m_text=t.Text);u(t.ValueTypes)||(this.m_valueTypes=t.ValueTypes);u(t.Values)||(this.m_values=t.Values);u(t._ReferenceId)||(this.m__ReferenceId=t._ReferenceId);l(this,t,["format","Format","sort","Sort","worksheet","Worksheet"])}},a.prototype.load=function(n){return c(this,n),this},a.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),e(n))||u(n._ReferenceId)||(this.m__ReferenceId=n._ReferenceId)},a.prototype.track=function(){return this.context.trackedObjects.add(this),this},a.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},a.prototype.toJSON=function(){return{address:this.m_address,addressLocal:this.m_addressLocal,cellCount:this.m_cellCount,columnCount:this.m_columnCount,columnHidden:this.m_columnHidden,columnIndex:this.m_columnIndex,format:this.m_format,formulas:this.m_formulas,formulasLocal:this.m_formulasLocal,formulasR1C1:this.m_formulasR1C1,hidden:this.m_hidden,numberFormat:this.m_numberFormat,rowCount:this.m_rowCount,rowHidden:this.m_rowHidden,rowIndex:this.m_rowIndex,text:this.m_text,values:this.m_values,valueTypes:this.m_valueTypes}},a}(OfficeExtension.ClientObject);n.Range=b;it=function(i){function o(){i.apply(this,arguments)}return __extends(o,i),Object.defineProperty(o.prototype,"rows",{get:function(){return this.m_rows||(this.m_rows=new n.RangeViewCollection(this.context,s(this.context,this,"Rows",!0,!1))),this.m_rows},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"cellAddresses",{get:function(){return r("cellAddresses",this.m_cellAddresses,"RangeView",this._isNull),this.m_cellAddresses},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"columnCount",{get:function(){return r("columnCount",this.m_columnCount,"RangeView",this._isNull),this.m_columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formulas",{get:function(){return r("formulas",this.m_formulas,"RangeView",this._isNull),this.m_formulas},set:function(n){this.m_formulas=n;f(this.context,this,"Formulas",n)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formulasLocal",{get:function(){return r("formulasLocal",this.m_formulasLocal,"RangeView",this._isNull),this.m_formulasLocal},set:function(n){this.m_formulasLocal=n;f(this.context,this,"FormulasLocal",n)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formulasR1C1",{get:function(){return r("formulasR1C1",this.m_formulasR1C1,"RangeView",this._isNull),this.m_formulasR1C1},set:function(n){this.m_formulasR1C1=n;f(this.context,this,"FormulasR1C1",n)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"index",{get:function(){return r("index",this.m_index,"RangeView",this._isNull),this.m_index},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"numberFormat",{get:function(){return r("numberFormat",this.m_numberFormat,"RangeView",this._isNull),this.m_numberFormat},set:function(n){this.m_numberFormat=n;f(this.context,this,"NumberFormat",n)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rowCount",{get:function(){return r("rowCount",this.m_rowCount,"RangeView",this._isNull),this.m_rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"text",{get:function(){return r("text",this.m_text,"RangeView",this._isNull),this.m_text},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"valueTypes",{get:function(){return r("valueTypes",this.m_valueTypes,"RangeView",this._isNull),this.m_valueTypes},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"values",{get:function(){return r("values",this.m_values,"RangeView",this._isNull),this.m_values},set:function(n){this.m_values=n;f(this.context,this,"Values",n)},enumerable:!0,configurable:!0}),o.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},o.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.CellAddresses)||(this.m_cellAddresses=t.CellAddresses);u(t.ColumnCount)||(this.m_columnCount=t.ColumnCount);u(t.Formulas)||(this.m_formulas=t.Formulas);u(t.FormulasLocal)||(this.m_formulasLocal=t.FormulasLocal);u(t.FormulasR1C1)||(this.m_formulasR1C1=t.FormulasR1C1);u(t.Index)||(this.m_index=t.Index);u(t.NumberFormat)||(this.m_numberFormat=t.NumberFormat);u(t.RowCount)||(this.m_rowCount=t.RowCount);u(t.Text)||(this.m_text=t.Text);u(t.ValueTypes)||(this.m_valueTypes=t.ValueTypes);u(t.Values)||(this.m_values=t.Values);l(this,t,["rows","Rows"])}},o.prototype.load=function(n){return c(this,n),this},o.prototype.toJSON=function(){return{cellAddresses:this.m_cellAddresses,columnCount:this.m_columnCount,formulas:this.m_formulas,formulasLocal:this.m_formulasLocal,formulasR1C1:this.m_formulasR1C1,index:this.m_index,numberFormat:this.m_numberFormat,rowCount:this.m_rowCount,text:this.m_text,values:this.m_values,valueTypes:this.m_valueTypes}},o}(OfficeExtension.ClientObject);n.RangeView=it;rt=function(i){function u(){i.apply(this,arguments)}return __extends(u,i),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,"RangeViewCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.getItemAt=function(i){return new n.RangeView(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},u.prototype._handleResult=function(t){var u,f,r,o;if((i.prototype._handleResult.call(this,t),!e(t))&&(u=t,h(this,u),!e(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)o=new n.RangeView(this.context,v(!1,this.context,this,f[r],r)),o._handleResult(f[r]),this.m__items.push(o)},u.prototype.load=function(n){return c(this,n),this},u.prototype.toJSON=function(){return{}},u}(OfficeExtension.ClientObject);n.RangeViewCollection=rt;ut=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return JSON.parse(this._Value)},set:function(n){this._Value=JSON.stringify(n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return r("key",this.m_key,"Setting",this._isNull),this.m_key},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_Value",{get:function(){return r("_Value",this.m__Value,"Setting",this._isNull),this.m__Value},set:function(n){this.m__Value=n;f(this.context,this,"_Value",n)},enumerable:!0,configurable:!0}),t.prototype.delete=function(){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Key)||(this.m_key=i.Key);u(i._Value)||(this.m__Value=i._Value)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{key:this.m_key}},t}(OfficeExtension.ClientObject);n.Setting=ut;ft=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"items",{get:function(){return r("items",this.m__items,"NamedItemCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),i.prototype.getItem=function(t){return new n.NamedItem(this.context,y(this.context,this,[t]))},i.prototype._handleResult=function(i){var u,f,r,o;if((t.prototype._handleResult.call(this,i),!e(i))&&(u=i,h(this,u),!e(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)o=new n.NamedItem(this.context,v(!0,this.context,this,f[r],r)),o._handleResult(f[r]),this.m__items.push(o)},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{}},i}(OfficeExtension.ClientObject);n.NamedItemCollection=ft;et=function(i){function o(){i.apply(this,arguments)}return __extends(o,i),Object.defineProperty(o.prototype,"name",{get:function(){return r("name",this.m_name,"NamedItem",this._isNull),this.m_name},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"type",{get:function(){return r("type",this.m_type,"NamedItem",this._isNull),this.m_type},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"value",{get:function(){return r("value",this.m_value,"NamedItem",this._isNull),this.m_value},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"visible",{get:function(){return r("visible",this.m_visible,"NamedItem",this._isNull),this.m_visible},set:function(n){this.m_visible=n;f(this.context,this,"Visible",n)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_Id",{get:function(){return r("_Id",this.m__Id,"NamedItem",this._isNull),this.m__Id},enumerable:!0,configurable:!0}),o.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},o.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.Name)||(this.m_name=t.Name);u(t.Type)||(this.m_type=t.Type);u(t.Value)||(this.m_value=t.Value);u(t.Visible)||(this.m_visible=t.Visible);u(t._Id)||(this.m__Id=t._Id)}},o.prototype.load=function(n){return c(this,n),this},o.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),e(n))||u(n._Id)||(this.m__Id=n._Id)},o.prototype.toJSON=function(){return{name:this.m_name,type:this.m_type,value:this.m_value,visible:this.m_visible}},o}(OfficeExtension.ClientObject);n.NamedItem=et;ot=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"id",{get:function(){return r("id",this.m_id,"Binding",this._isNull),this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"type",{get:function(){return r("type",this.m_type,"Binding",this._isNull),this.m_type},enumerable:!0,configurable:!0}),f.prototype.delete=function(){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[])},f.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",OfficeExtension.OperationType.Read,[],!1,!1,null))},f.prototype.getTable=function(){return new n.Table(this.context,t(this.context,this,"GetTable",OfficeExtension.OperationType.Read,[],!1,!1,null))},f.prototype.getText=function(){var t=o(this.context,this,"GetText",OfficeExtension.OperationType.Read,[]),n=new OfficeExtension.ClientResult;return a(this,t,n),n},f.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.Id)||(this.m_id=t.Id);u(t.Type)||(this.m_type=t.Type)}},f.prototype.load=function(n){return c(this,n),this},f.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),e(n))||u(n.Id)||(this.m_id=n.Id)},Object.defineProperty(f.prototype,"onDataChanged",{get:function(){var n=this;return this.m_dataChanged||(this.m_dataChanged=new OfficeExtension.EventHandlers(this.context,this,"DataChanged",{registerFunc:function(t){return OfficeExtension.Utility.promisify(function(t){return Office.context.document.bindings.getByIdAsync(n.id,t)}).then(function(n){return OfficeExtension.Utility.promisify(function(i){return n.addHandlerAsync(Office.EventType.BindingDataChanged,t,i)})})},unregisterFunc:function(t){return OfficeExtension.Utility.promisify(function(t){return Office.context.document.bindings.getByIdAsync(n.id,t)}).then(function(n){return OfficeExtension.Utility.promisify(function(i){return n.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:t},i)})})},eventArgsTransformFunc:function(t){var i={binding:n};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_dataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onSelectionChanged",{get:function(){var n=this;return this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(t){return OfficeExtension.Utility.promisify(function(t){return Office.context.document.bindings.getByIdAsync(n.id,t)}).then(function(n){return OfficeExtension.Utility.promisify(function(i){return n.addHandlerAsync(Office.EventType.BindingSelectionChanged,t,i)})})},unregisterFunc:function(t){return OfficeExtension.Utility.promisify(function(t){return Office.context.document.bindings.getByIdAsync(n.id,t)}).then(function(n){return OfficeExtension.Utility.promisify(function(i){return n.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:t},i)})})},eventArgsTransformFunc:function(t){var i={binding:n,columnCount:t.columnCount,rowCount:t.rowCount,startColumn:t.startColumn,startRow:t.startRow};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),f.prototype.toJSON=function(){return{id:this.m_id,type:this.m_type}},f}(OfficeExtension.ClientObject);n.Binding=ot;st=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"BindingCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"BindingCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.add=function(i,r,u){return new n.Binding(this.context,t(this.context,this,"Add",OfficeExtension.OperationType.Default,[i,r,u],!1,!0,null))},f.prototype.addFromNamedItem=function(i,r,u){return new n.Binding(this.context,t(this.context,this,"AddFromNamedItem",OfficeExtension.OperationType.Default,[i,r,u],!1,!1,null))},f.prototype.addFromSelection=function(i,r){return new n.Binding(this.context,t(this.context,this,"AddFromSelection",OfficeExtension.OperationType.Default,[i,r],!1,!1,null))},f.prototype.getItem=function(t){return new n.Binding(this.context,y(this.context,this,[t]))},f.prototype.getItemAt=function(i){return new n.Binding(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.Binding(this.context,v(!0,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.BindingCollection=st;ht=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"TableCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"TableCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.add=function(i,r){return new n.Table(this.context,t(this.context,this,"Add",OfficeExtension.OperationType.Default,[i,r],!1,!0,null))},f.prototype.getItem=function(t){return new n.Table(this.context,y(this.context,this,[t]))},f.prototype.getItemAt=function(i){return new n.Table(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.Table(this.context,v(!0,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.TableCollection=ht;ct=function(i){function a(){i.apply(this,arguments)}return __extends(a,i),Object.defineProperty(a.prototype,"columns",{get:function(){return this.m_columns||(this.m_columns=new n.TableColumnCollection(this.context,s(this.context,this,"Columns",!0,!1))),this.m_columns},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rows",{get:function(){return this.m_rows||(this.m_rows=new n.TableRowCollection(this.context,s(this.context,this,"Rows",!0,!1))),this.m_rows},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"sort",{get:function(){return this.m_sort||(this.m_sort=new n.TableSort(this.context,s(this.context,this,"Sort",!1,!1))),this.m_sort},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"worksheet",{get:function(){return this.m_worksheet||(this.m_worksheet=new n.Worksheet(this.context,s(this.context,this,"Worksheet",!1,!1))),this.m_worksheet},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"highlightFirstColumn",{get:function(){return r("highlightFirstColumn",this.m_highlightFirstColumn,"Table",this._isNull),this.m_highlightFirstColumn},set:function(n){this.m_highlightFirstColumn=n;f(this.context,this,"HighlightFirstColumn",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"highlightLastColumn",{get:function(){return r("highlightLastColumn",this.m_highlightLastColumn,"Table",this._isNull),this.m_highlightLastColumn},set:function(n){this.m_highlightLastColumn=n;f(this.context,this,"HighlightLastColumn",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"id",{get:function(){return r("id",this.m_id,"Table",this._isNull),this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"name",{get:function(){return r("name",this.m_name,"Table",this._isNull),this.m_name},set:function(n){this.m_name=n;f(this.context,this,"Name",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showBandedColumns",{get:function(){return r("showBandedColumns",this.m_showBandedColumns,"Table",this._isNull),this.m_showBandedColumns},set:function(n){this.m_showBandedColumns=n;f(this.context,this,"ShowBandedColumns",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showBandedRows",{get:function(){return r("showBandedRows",this.m_showBandedRows,"Table",this._isNull),this.m_showBandedRows},set:function(n){this.m_showBandedRows=n;f(this.context,this,"ShowBandedRows",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showFilterButton",{get:function(){return r("showFilterButton",this.m_showFilterButton,"Table",this._isNull),this.m_showFilterButton},set:function(n){this.m_showFilterButton=n;f(this.context,this,"ShowFilterButton",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showHeaders",{get:function(){return r("showHeaders",this.m_showHeaders,"Table",this._isNull),this.m_showHeaders},set:function(n){this.m_showHeaders=n;f(this.context,this,"ShowHeaders",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showTotals",{get:function(){return r("showTotals",this.m_showTotals,"Table",this._isNull),this.m_showTotals},set:function(n){this.m_showTotals=n;f(this.context,this,"ShowTotals",n)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"style",{get:function(){return r("style",this.m_style,"Table",this._isNull),this.m_style},set:function(n){this.m_style=n;f(this.context,this,"Style",n)},enumerable:!0,configurable:!0}),a.prototype.clearFilters=function(){o(this.context,this,"ClearFilters",OfficeExtension.OperationType.Default,[])},a.prototype.convertToRange=function(){return new n.Range(this.context,t(this.context,this,"ConvertToRange",OfficeExtension.OperationType.Default,[],!1,!0,null))},a.prototype.delete=function(){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[])},a.prototype.getDataBodyRange=function(){return new n.Range(this.context,t(this.context,this,"GetDataBodyRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getHeaderRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetHeaderRowRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getTotalRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetTotalRowRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.reapplyFilters=function(){o(this.context,this,"ReapplyFilters",OfficeExtension.OperationType.Default,[])},a.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.HighlightFirstColumn)||(this.m_highlightFirstColumn=t.HighlightFirstColumn);u(t.HighlightLastColumn)||(this.m_highlightLastColumn=t.HighlightLastColumn);u(t.Id)||(this.m_id=t.Id);u(t.Name)||(this.m_name=t.Name);u(t.ShowBandedColumns)||(this.m_showBandedColumns=t.ShowBandedColumns);u(t.ShowBandedRows)||(this.m_showBandedRows=t.ShowBandedRows);u(t.ShowFilterButton)||(this.m_showFilterButton=t.ShowFilterButton);u(t.ShowHeaders)||(this.m_showHeaders=t.ShowHeaders);u(t.ShowTotals)||(this.m_showTotals=t.ShowTotals);u(t.Style)||(this.m_style=t.Style);l(this,t,["columns","Columns","rows","Rows","sort","Sort","worksheet","Worksheet"])}},a.prototype.load=function(n){return c(this,n),this},a.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),e(n))||u(n.Id)||(this.m_id=n.Id)},a.prototype.toJSON=function(){return{highlightFirstColumn:this.m_highlightFirstColumn,highlightLastColumn:this.m_highlightLastColumn,id:this.m_id,name:this.m_name,showBandedColumns:this.m_showBandedColumns,showBandedRows:this.m_showBandedRows,showFilterButton:this.m_showFilterButton,showHeaders:this.m_showHeaders,showTotals:this.m_showTotals,style:this.m_style}},a}(OfficeExtension.ClientObject);n.Table=ct;lt=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"TableColumnCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"TableColumnCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.add=function(i,r){return new n.TableColumn(this.context,t(this.context,this,"Add",OfficeExtension.OperationType.Default,[i,r],!1,!0,null))},f.prototype.getItem=function(t){return new n.TableColumn(this.context,y(this.context,this,[t]))},f.prototype.getItemAt=function(i){return new n.TableColumn(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.TableColumn(this.context,v(!0,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.TableColumnCollection=lt;at=function(i){function a(){i.apply(this,arguments)}return __extends(a,i),Object.defineProperty(a.prototype,"filter",{get:function(){return this.m_filter||(this.m_filter=new n.Filter(this.context,s(this.context,this,"Filter",!1,!1))),this.m_filter},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"id",{get:function(){return r("id",this.m_id,"TableColumn",this._isNull),this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"index",{get:function(){return r("index",this.m_index,"TableColumn",this._isNull),this.m_index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"name",{get:function(){return r("name",this.m_name,"TableColumn",this._isNull),this.m_name},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"values",{get:function(){return r("values",this.m_values,"TableColumn",this._isNull),this.m_values},set:function(n){this.m_values=n;f(this.context,this,"Values",n)},enumerable:!0,configurable:!0}),a.prototype.delete=function(){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[])},a.prototype.getDataBodyRange=function(){return new n.Range(this.context,t(this.context,this,"GetDataBodyRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getHeaderRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetHeaderRowRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype.getTotalRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetTotalRowRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},a.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.Id)||(this.m_id=t.Id);u(t.Index)||(this.m_index=t.Index);u(t.Name)||(this.m_name=t.Name);u(t.Values)||(this.m_values=t.Values);l(this,t,["filter","Filter"])}},a.prototype.load=function(n){return c(this,n),this},a.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),e(n))||u(n.Id)||(this.m_id=n.Id)},a.prototype.toJSON=function(){return{id:this.m_id,index:this.m_index,name:this.m_name,values:this.m_values}},a}(OfficeExtension.ClientObject);n.TableColumn=at;vt=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"TableRowCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"TableRowCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.add=function(i,r){return new n.TableRow(this.context,t(this.context,this,"Add",OfficeExtension.OperationType.Default,[i,r],!1,!0,null))},f.prototype.getItemAt=function(i){return new n.TableRow(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.TableRow(this.context,v(!1,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.TableRowCollection=vt;yt=function(i){function s(){i.apply(this,arguments)}return __extends(s,i),Object.defineProperty(s.prototype,"index",{get:function(){return r("index",this.m_index,"TableRow",this._isNull),this.m_index},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"values",{get:function(){return r("values",this.m_values,"TableRow",this._isNull),this.m_values},set:function(n){this.m_values=n;f(this.context,this,"Values",n)},enumerable:!0,configurable:!0}),s.prototype.delete=function(){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[])},s.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",OfficeExtension.OperationType.Read,[],!1,!0,null))},s.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!e(n)){var t=n;h(this,t);u(t.Index)||(this.m_index=t.Index);u(t.Values)||(this.m_values=t.Values)}},s.prototype.load=function(n){return c(this,n),this},s.prototype.toJSON=function(){return{index:this.m_index,values:this.m_values}},s}(OfficeExtension.ClientObject);n.TableRow=yt;pt=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"borders",{get:function(){return this.m_borders||(this.m_borders=new n.RangeBorderCollection(this.context,s(this.context,this,"Borders",!0,!1))),this.m_borders},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.m_fill||(this.m_fill=new n.RangeFill(this.context,s(this.context,this,"Fill",!1,!1))),this.m_fill},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this.m_font||(this.m_font=new n.RangeFont(this.context,s(this.context,this,"Font",!1,!1))),this.m_font},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"protection",{get:function(){return this.m_protection||(this.m_protection=new n.FormatProtection(this.context,s(this.context,this,"Protection",!1,!1))),this.m_protection},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"columnWidth",{get:function(){return r("columnWidth",this.m_columnWidth,"RangeFormat",this._isNull),this.m_columnWidth},set:function(n){this.m_columnWidth=n;f(this.context,this,"ColumnWidth",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalAlignment",{get:function(){return r("horizontalAlignment",this.m_horizontalAlignment,"RangeFormat",this._isNull),this.m_horizontalAlignment},set:function(n){this.m_horizontalAlignment=n;f(this.context,this,"HorizontalAlignment",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rowHeight",{get:function(){return r("rowHeight",this.m_rowHeight,"RangeFormat",this._isNull),this.m_rowHeight},set:function(n){this.m_rowHeight=n;f(this.context,this,"RowHeight",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlignment",{get:function(){return r("verticalAlignment",this.m_verticalAlignment,"RangeFormat",this._isNull),this.m_verticalAlignment},set:function(n){this.m_verticalAlignment=n;f(this.context,this,"VerticalAlignment",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wrapText",{get:function(){return r("wrapText",this.m_wrapText,"RangeFormat",this._isNull),this.m_wrapText},set:function(n){this.m_wrapText=n;f(this.context,this,"WrapText",n)},enumerable:!0,configurable:!0}),i.prototype.autofitColumns=function(){o(this.context,this,"AutofitColumns",OfficeExtension.OperationType.Default,[])},i.prototype.autofitRows=function(){o(this.context,this,"AutofitRows",OfficeExtension.OperationType.Default,[])},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.ColumnWidth)||(this.m_columnWidth=i.ColumnWidth);u(i.HorizontalAlignment)||(this.m_horizontalAlignment=i.HorizontalAlignment);u(i.RowHeight)||(this.m_rowHeight=i.RowHeight);u(i.VerticalAlignment)||(this.m_verticalAlignment=i.VerticalAlignment);u(i.WrapText)||(this.m_wrapText=i.WrapText);l(this,i,["borders","Borders","fill","Fill","font","Font","protection","Protection"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{columnWidth:this.m_columnWidth,fill:this.m_fill,font:this.m_font,horizontalAlignment:this.m_horizontalAlignment,protection:this.m_protection,rowHeight:this.m_rowHeight,verticalAlignment:this.m_verticalAlignment,wrapText:this.m_wrapText}},i}(OfficeExtension.ClientObject);n.RangeFormat=pt;wt=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"formulaHidden",{get:function(){return r("formulaHidden",this.m_formulaHidden,"FormatProtection",this._isNull),this.m_formulaHidden},set:function(n){this.m_formulaHidden=n;f(this.context,this,"FormulaHidden",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locked",{get:function(){return r("locked",this.m_locked,"FormatProtection",this._isNull),this.m_locked},set:function(n){this.m_locked=n;f(this.context,this,"Locked",n)},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.FormulaHidden)||(this.m_formulaHidden=i.FormulaHidden);u(i.Locked)||(this.m_locked=i.Locked)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{formulaHidden:this.m_formulaHidden,locked:this.m_locked}},t}(OfficeExtension.ClientObject);n.FormatProtection=wt;bt=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this.m_color,"RangeFill",this._isNull),this.m_color},set:function(n){this.m_color=n;f(this.context,this,"Color",n)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){o(this.context,this,"Clear",OfficeExtension.OperationType.Default,[])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Color)||(this.m_color=i.Color)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{color:this.m_color}},t}(OfficeExtension.ClientObject);n.RangeFill=bt;kt=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this.m_color,"RangeBorder",this._isNull),this.m_color},set:function(n){this.m_color=n;f(this.context,this,"Color",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sideIndex",{get:function(){return r("sideIndex",this.m_sideIndex,"RangeBorder",this._isNull),this.m_sideIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return r("style",this.m_style,"RangeBorder",this._isNull),this.m_style},set:function(n){this.m_style=n;f(this.context,this,"Style",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return r("weight",this.m_weight,"RangeBorder",this._isNull),this.m_weight},set:function(n){this.m_weight=n;f(this.context,this,"Weight",n)},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Color)||(this.m_color=i.Color);u(i.SideIndex)||(this.m_sideIndex=i.SideIndex);u(i.Style)||(this.m_style=i.Style);u(i.Weight)||(this.m_weight=i.Weight)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{color:this.m_color,sideIndex:this.m_sideIndex,style:this.m_style,weight:this.m_weight}},t}(OfficeExtension.ClientObject);n.RangeBorder=kt;dt=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"RangeBorderCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"RangeBorderCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.getItem=function(t){return new n.RangeBorder(this.context,y(this.context,this,[t]))},f.prototype.getItemAt=function(i){return new n.RangeBorder(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.RangeBorder(this.context,v(!0,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.RangeBorderCollection=dt;gt=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"bold",{get:function(){return r("bold",this.m_bold,"RangeFont",this._isNull),this.m_bold},set:function(n){this.m_bold=n;f(this.context,this,"Bold",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this.m_color,"RangeFont",this._isNull),this.m_color},set:function(n){this.m_color=n;f(this.context,this,"Color",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return r("italic",this.m_italic,"RangeFont",this._isNull),this.m_italic},set:function(n){this.m_italic=n;f(this.context,this,"Italic",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return r("name",this.m_name,"RangeFont",this._isNull),this.m_name},set:function(n){this.m_name=n;f(this.context,this,"Name",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return r("size",this.m_size,"RangeFont",this._isNull),this.m_size},set:function(n){this.m_size=n;f(this.context,this,"Size",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return r("underline",this.m_underline,"RangeFont",this._isNull),this.m_underline},set:function(n){this.m_underline=n;f(this.context,this,"Underline",n)},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Bold)||(this.m_bold=i.Bold);u(i.Color)||(this.m_color=i.Color);u(i.Italic)||(this.m_italic=i.Italic);u(i.Name)||(this.m_name=i.Name);u(i.Size)||(this.m_size=i.Size);u(i.Underline)||(this.m_underline=i.Underline)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{bold:this.m_bold,color:this.m_color,italic:this.m_italic,name:this.m_name,size:this.m_size,underline:this.m_underline}},t}(OfficeExtension.ClientObject);n.RangeFont=gt;ni=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"ChartCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"ChartCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.add=function(i,r,u){if(!(r instanceof b))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Charts.Add");return new n.Chart(this.context,t(this.context,this,"Add",OfficeExtension.OperationType.Default,[i,r,u],!1,!0,null))},f.prototype.getItem=function(i){return new n.Chart(this.context,t(this.context,this,"GetItem",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype.getItemAt=function(i){return new n.Chart(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._GetItem=function(t){return new n.Chart(this.context,y(this.context,this,[t]))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.Chart(this.context,v(!0,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.ChartCollection=ni;ti=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"axes",{get:function(){return this.m_axes||(this.m_axes=new n.ChartAxes(this.context,s(this.context,this,"Axes",!1,!1))),this.m_axes},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataLabels",{get:function(){return this.m_dataLabels||(this.m_dataLabels=new n.ChartDataLabels(this.context,s(this.context,this,"DataLabels",!1,!1))),this.m_dataLabels},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartAreaFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"legend",{get:function(){return this.m_legend||(this.m_legend=new n.ChartLegend(this.context,s(this.context,this,"Legend",!1,!1))),this.m_legend},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this.m_series||(this.m_series=new n.ChartSeriesCollection(this.context,s(this.context,this,"Series",!0,!1))),this.m_series},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this.m_title||(this.m_title=new n.ChartTitle(this.context,s(this.context,this,"Title",!1,!1))),this.m_title},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"worksheet",{get:function(){return this.m_worksheet||(this.m_worksheet=new n.Worksheet(this.context,s(this.context,this,"Worksheet",!1,!1))),this.m_worksheet},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return r("height",this.m_height,"Chart",this._isNull),this.m_height},set:function(n){this.m_height=n;f(this.context,this,"Height",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return r("left",this.m_left,"Chart",this._isNull),this.m_left},set:function(n){this.m_left=n;f(this.context,this,"Left",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this.m_name,"Chart",this._isNull),this.m_name},set:function(n){this.m_name=n;f(this.context,this,"Name",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return r("top",this.m_top,"Chart",this._isNull),this.m_top},set:function(n){this.m_top=n;f(this.context,this,"Top",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return r("width",this.m_width,"Chart",this._isNull),this.m_width},set:function(n){this.m_width=n;f(this.context,this,"Width",n)},enumerable:!0,configurable:!0}),i.prototype.delete=function(){o(this.context,this,"Delete",OfficeExtension.OperationType.Default,[])},i.prototype.getImage=function(n,t,i){var u=o(this.context,this,"GetImage",OfficeExtension.OperationType.Read,[n,t,i]),r=new OfficeExtension.ClientResult;return a(this,u,r),r},i.prototype.setData=function(n,t){if(!(n instanceof b))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Chart.setData");o(this.context,this,"SetData",OfficeExtension.OperationType.Default,[n,t])},i.prototype.setPosition=function(n,t){o(this.context,this,"SetPosition",OfficeExtension.OperationType.Default,[n,t])},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Height)||(this.m_height=i.Height);u(i.Left)||(this.m_left=i.Left);u(i.Name)||(this.m_name=i.Name);u(i.Top)||(this.m_top=i.Top);u(i.Width)||(this.m_width=i.Width);l(this,i,["axes","Axes","dataLabels","DataLabels","format","Format","legend","Legend","series","Series","title","Title","worksheet","Worksheet"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{axes:this.m_axes,dataLabels:this.m_dataLabels,format:this.m_format,height:this.m_height,left:this.m_left,legend:this.m_legend,name:this.m_name,title:this.m_title,top:this.m_top,width:this.m_width}},i}(OfficeExtension.ClientObject);n.Chart=ti;ii=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"fill",{get:function(){return this.m_fill||(this.m_fill=new n.ChartFill(this.context,s(this.context,this,"Fill",!1,!1))),this.m_fill},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this.m_font||(this.m_font=new n.ChartFont(this.context,s(this.context,this,"Font",!1,!1))),this.m_font},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["fill","Fill","font","Font"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{fill:this.m_fill,font:this.m_font}},i}(OfficeExtension.ClientObject);n.ChartAreaFormat=ii;ri=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"ChartSeriesCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"ChartSeriesCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.getItemAt=function(i){return new n.ChartSeries(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.ChartSeries(this.context,v(!1,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.ChartSeriesCollection=ri;ui=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartSeriesFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"points",{get:function(){return this.m_points||(this.m_points=new n.ChartPointsCollection(this.context,s(this.context,this,"Points",!0,!1))),this.m_points},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this.m_name,"ChartSeries",this._isNull),this.m_name},set:function(n){this.m_name=n;f(this.context,this,"Name",n)},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Name)||(this.m_name=i.Name);l(this,i,["format","Format","points","Points"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,name:this.m_name}},i}(OfficeExtension.ClientObject);n.ChartSeries=ui;fi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"fill",{get:function(){return this.m_fill||(this.m_fill=new n.ChartFill(this.context,s(this.context,this,"Fill",!1,!1))),this.m_fill},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"line",{get:function(){return this.m_line||(this.m_line=new n.ChartLineFormat(this.context,s(this.context,this,"Line",!1,!1))),this.m_line},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["fill","Fill","line","Line"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{fill:this.m_fill,line:this.m_line}},i}(OfficeExtension.ClientObject);n.ChartSeriesFormat=fi;ei=function(i){function f(){i.apply(this,arguments)}return __extends(f,i),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,"ChartPointsCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this.m_count,"ChartPointsCollection",this._isNull),this.m_count},enumerable:!0,configurable:!0}),f.prototype.getItemAt=function(i){return new n.ChartPoint(this.context,t(this.context,this,"GetItemAt",OfficeExtension.OperationType.Read,[i],!1,!1,null))},f.prototype._handleResult=function(t){var r,o,f,s;if((i.prototype._handleResult.call(this,t),!e(t))&&(r=t,h(this,r),u(r.Count)||(this.m_count=r.Count),!e(r[OfficeExtension.Constants.items])))for(this.m__items=[],o=r[OfficeExtension.Constants.items],f=0;f<o.length;f++)s=new n.ChartPoint(this.context,v(!1,this.context,this,o[f],f)),s._handleResult(o[f]),this.m__items.push(s)},f.prototype.load=function(n){return c(this,n),this},f.prototype.toJSON=function(){return{count:this.m_count}},f}(OfficeExtension.ClientObject);n.ChartPointsCollection=ei;oi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartPointFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return r("value",this.m_value,"ChartPoint",this._isNull),this.m_value},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Value)||(this.m_value=i.Value);l(this,i,["format","Format"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,value:this.m_value}},i}(OfficeExtension.ClientObject);n.ChartPoint=oi;si=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"fill",{get:function(){return this.m_fill||(this.m_fill=new n.ChartFill(this.context,s(this.context,this,"Fill",!1,!1))),this.m_fill},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["fill","Fill"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{fill:this.m_fill}},i}(OfficeExtension.ClientObject);n.ChartPointFormat=si;hi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"categoryAxis",{get:function(){return this.m_categoryAxis||(this.m_categoryAxis=new n.ChartAxis(this.context,s(this.context,this,"CategoryAxis",!1,!1))),this.m_categoryAxis},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"seriesAxis",{get:function(){return this.m_seriesAxis||(this.m_seriesAxis=new n.ChartAxis(this.context,s(this.context,this,"SeriesAxis",!1,!1))),this.m_seriesAxis},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueAxis",{get:function(){return this.m_valueAxis||(this.m_valueAxis=new n.ChartAxis(this.context,s(this.context,this,"ValueAxis",!1,!1))),this.m_valueAxis},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["categoryAxis","CategoryAxis","seriesAxis","SeriesAxis","valueAxis","ValueAxis"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{categoryAxis:this.m_categoryAxis,seriesAxis:this.m_seriesAxis,valueAxis:this.m_valueAxis}},i}(OfficeExtension.ClientObject);n.ChartAxes=hi;ci=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartAxisFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"majorGridlines",{get:function(){return this.m_majorGridlines||(this.m_majorGridlines=new n.ChartGridlines(this.context,s(this.context,this,"MajorGridlines",!1,!1))),this.m_majorGridlines},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minorGridlines",{get:function(){return this.m_minorGridlines||(this.m_minorGridlines=new n.ChartGridlines(this.context,s(this.context,this,"MinorGridlines",!1,!1))),this.m_minorGridlines},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this.m_title||(this.m_title=new n.ChartAxisTitle(this.context,s(this.context,this,"Title",!1,!1))),this.m_title},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"majorUnit",{get:function(){return r("majorUnit",this.m_majorUnit,"ChartAxis",this._isNull),this.m_majorUnit},set:function(n){this.m_majorUnit=n;f(this.context,this,"MajorUnit",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maximum",{get:function(){return r("maximum",this.m_maximum,"ChartAxis",this._isNull),this.m_maximum},set:function(n){this.m_maximum=n;f(this.context,this,"Maximum",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minimum",{get:function(){return r("minimum",this.m_minimum,"ChartAxis",this._isNull),this.m_minimum},set:function(n){this.m_minimum=n;f(this.context,this,"Minimum",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minorUnit",{get:function(){return r("minorUnit",this.m_minorUnit,"ChartAxis",this._isNull),this.m_minorUnit},set:function(n){this.m_minorUnit=n;f(this.context,this,"MinorUnit",n)},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.MajorUnit)||(this.m_majorUnit=i.MajorUnit);u(i.Maximum)||(this.m_maximum=i.Maximum);u(i.Minimum)||(this.m_minimum=i.Minimum);u(i.MinorUnit)||(this.m_minorUnit=i.MinorUnit);l(this,i,["format","Format","majorGridlines","MajorGridlines","minorGridlines","MinorGridlines","title","Title"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,majorGridlines:this.m_majorGridlines,majorUnit:this.m_majorUnit,maximum:this.m_maximum,minimum:this.m_minimum,minorGridlines:this.m_minorGridlines,minorUnit:this.m_minorUnit,title:this.m_title}},i}(OfficeExtension.ClientObject);n.ChartAxis=ci;li=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"font",{get:function(){return this.m_font||(this.m_font=new n.ChartFont(this.context,s(this.context,this,"Font",!1,!1))),this.m_font},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"line",{get:function(){return this.m_line||(this.m_line=new n.ChartLineFormat(this.context,s(this.context,this,"Line",!1,!1))),this.m_line},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["font","Font","line","Line"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{font:this.m_font,line:this.m_line}},i}(OfficeExtension.ClientObject);n.ChartAxisFormat=li;ai=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartAxisTitleFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return r("text",this.m_text,"ChartAxisTitle",this._isNull),this.m_text},set:function(n){this.m_text=n;f(this.context,this,"Text",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this.m_visible,"ChartAxisTitle",this._isNull),this.m_visible},set:function(n){this.m_visible=n;f(this.context,this,"Visible",n)},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Text)||(this.m_text=i.Text);u(i.Visible)||(this.m_visible=i.Visible);l(this,i,["format","Format"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,text:this.m_text,visible:this.m_visible}},i}(OfficeExtension.ClientObject);n.ChartAxisTitle=ai;vi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"font",{get:function(){return this.m_font||(this.m_font=new n.ChartFont(this.context,s(this.context,this,"Font",!1,!1))),this.m_font},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["font","Font"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{font:this.m_font}},i}(OfficeExtension.ClientObject);n.ChartAxisTitleFormat=vi;yi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartDataLabelFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return r("position",this.m_position,"ChartDataLabels",this._isNull),this.m_position},set:function(n){this.m_position=n;f(this.context,this,"Position",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"separator",{get:function(){return r("separator",this.m_separator,"ChartDataLabels",this._isNull),this.m_separator},set:function(n){this.m_separator=n;f(this.context,this,"Separator",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showBubbleSize",{get:function(){return r("showBubbleSize",this.m_showBubbleSize,"ChartDataLabels",this._isNull),this.m_showBubbleSize},set:function(n){this.m_showBubbleSize=n;f(this.context,this,"ShowBubbleSize",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showCategoryName",{get:function(){return r("showCategoryName",this.m_showCategoryName,"ChartDataLabels",this._isNull),this.m_showCategoryName},set:function(n){this.m_showCategoryName=n;f(this.context,this,"ShowCategoryName",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showLegendKey",{get:function(){return r("showLegendKey",this.m_showLegendKey,"ChartDataLabels",this._isNull),this.m_showLegendKey},set:function(n){this.m_showLegendKey=n;f(this.context,this,"ShowLegendKey",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showPercentage",{get:function(){return r("showPercentage",this.m_showPercentage,"ChartDataLabels",this._isNull),this.m_showPercentage},set:function(n){this.m_showPercentage=n;f(this.context,this,"ShowPercentage",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showSeriesName",{get:function(){return r("showSeriesName",this.m_showSeriesName,"ChartDataLabels",this._isNull),this.m_showSeriesName},set:function(n){this.m_showSeriesName=n;f(this.context,this,"ShowSeriesName",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showValue",{get:function(){return r("showValue",this.m_showValue,"ChartDataLabels",this._isNull),this.m_showValue},set:function(n){this.m_showValue=n;f(this.context,this,"ShowValue",n)},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Position)||(this.m_position=i.Position);u(i.Separator)||(this.m_separator=i.Separator);u(i.ShowBubbleSize)||(this.m_showBubbleSize=i.ShowBubbleSize);u(i.ShowCategoryName)||(this.m_showCategoryName=i.ShowCategoryName);u(i.ShowLegendKey)||(this.m_showLegendKey=i.ShowLegendKey);u(i.ShowPercentage)||(this.m_showPercentage=i.ShowPercentage);u(i.ShowSeriesName)||(this.m_showSeriesName=i.ShowSeriesName);u(i.ShowValue)||(this.m_showValue=i.ShowValue);l(this,i,["format","Format"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,position:this.m_position,separator:this.m_separator,showBubbleSize:this.m_showBubbleSize,showCategoryName:this.m_showCategoryName,showLegendKey:this.m_showLegendKey,showPercentage:this.m_showPercentage,showSeriesName:this.m_showSeriesName,showValue:this.m_showValue}},i}(OfficeExtension.ClientObject);n.ChartDataLabels=yi;pi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"fill",{get:function(){return this.m_fill||(this.m_fill=new n.ChartFill(this.context,s(this.context,this,"Fill",!1,!1))),this.m_fill},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this.m_font||(this.m_font=new n.ChartFont(this.context,s(this.context,this,"Font",!1,!1))),this.m_font},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["fill","Fill","font","Font"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{fill:this.m_fill,font:this.m_font}},i}(OfficeExtension.ClientObject);n.ChartDataLabelFormat=pi;wi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartGridlinesFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this.m_visible,"ChartGridlines",this._isNull),this.m_visible},set:function(n){this.m_visible=n;f(this.context,this,"Visible",n)},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Visible)||(this.m_visible=i.Visible);l(this,i,["format","Format"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,visible:this.m_visible}},i}(OfficeExtension.ClientObject);n.ChartGridlines=wi;bi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"line",{get:function(){return this.m_line||(this.m_line=new n.ChartLineFormat(this.context,s(this.context,this,"Line",!1,!1))),this.m_line},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["line","Line"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{line:this.m_line}},i}(OfficeExtension.ClientObject);n.ChartGridlinesFormat=bi;ki=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartLegendFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overlay",{get:function(){return r("overlay",this.m_overlay,"ChartLegend",this._isNull),this.m_overlay},set:function(n){this.m_overlay=n;f(this.context,this,"Overlay",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return r("position",this.m_position,"ChartLegend",this._isNull),this.m_position},set:function(n){this.m_position=n;f(this.context,this,"Position",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this.m_visible,"ChartLegend",this._isNull),this.m_visible},set:function(n){this.m_visible=n;f(this.context,this,"Visible",n)},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Overlay)||(this.m_overlay=i.Overlay);u(i.Position)||(this.m_position=i.Position);u(i.Visible)||(this.m_visible=i.Visible);l(this,i,["format","Format"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,overlay:this.m_overlay,position:this.m_position,visible:this.m_visible}},i}(OfficeExtension.ClientObject);n.ChartLegend=ki;di=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"fill",{get:function(){return this.m_fill||(this.m_fill=new n.ChartFill(this.context,s(this.context,this,"Fill",!1,!1))),this.m_fill},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this.m_font||(this.m_font=new n.ChartFont(this.context,s(this.context,this,"Font",!1,!1))),this.m_font},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["fill","Fill","font","Font"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{fill:this.m_fill,font:this.m_font}},i}(OfficeExtension.ClientObject);n.ChartLegendFormat=di;gi=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"format",{get:function(){return this.m_format||(this.m_format=new n.ChartTitleFormat(this.context,s(this.context,this,"Format",!1,!1))),this.m_format},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overlay",{get:function(){return r("overlay",this.m_overlay,"ChartTitle",this._isNull),this.m_overlay},set:function(n){this.m_overlay=n;f(this.context,this,"Overlay",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return r("text",this.m_text,"ChartTitle",this._isNull),this.m_text},set:function(n){this.m_text=n;f(this.context,this,"Text",n)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this.m_visible,"ChartTitle",this._isNull),this.m_visible},set:function(n){this.m_visible=n;f(this.context,this,"Visible",n)},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Overlay)||(this.m_overlay=i.Overlay);u(i.Text)||(this.m_text=i.Text);u(i.Visible)||(this.m_visible=i.Visible);l(this,i,["format","Format"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{format:this.m_format,overlay:this.m_overlay,text:this.m_text,visible:this.m_visible}},i}(OfficeExtension.ClientObject);n.ChartTitle=gi;nr=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"fill",{get:function(){return this.m_fill||(this.m_fill=new n.ChartFill(this.context,s(this.context,this,"Fill",!1,!1))),this.m_fill},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this.m_font||(this.m_font=new n.ChartFont(this.context,s(this.context,this,"Font",!1,!1))),this.m_font},enumerable:!0,configurable:!0}),i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);l(this,i,["fill","Fill","font","Font"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{fill:this.m_fill,font:this.m_font}},i}(OfficeExtension.ClientObject);n.ChartTitleFormat=nr;tr=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),t.prototype.load=function(n){return c(this,n),this},t.prototype.clear=function(){o(this.context,this,"Clear",OfficeExtension.OperationType.Default,[])},t.prototype.setSolidColor=function(n){o(this.context,this,"SetSolidColor",OfficeExtension.OperationType.Default,[n])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i)}},t.prototype.toJSON=function(){return{}},t}(OfficeExtension.ClientObject);n.ChartFill=tr;ir=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this.m_color,"ChartLineFormat",this._isNull),this.m_color},set:function(n){this.m_color=n;f(this.context,this,"Color",n)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){o(this.context,this,"Clear",OfficeExtension.OperationType.Default,[])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Color)||(this.m_color=i.Color)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{color:this.m_color}},t}(OfficeExtension.ClientObject);n.ChartLineFormat=ir;rr=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"bold",{get:function(){return r("bold",this.m_bold,"ChartFont",this._isNull),this.m_bold},set:function(n){this.m_bold=n;f(this.context,this,"Bold",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this.m_color,"ChartFont",this._isNull),this.m_color},set:function(n){this.m_color=n;f(this.context,this,"Color",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return r("italic",this.m_italic,"ChartFont",this._isNull),this.m_italic},set:function(n){this.m_italic=n;f(this.context,this,"Italic",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return r("name",this.m_name,"ChartFont",this._isNull),this.m_name},set:function(n){this.m_name=n;f(this.context,this,"Name",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return r("size",this.m_size,"ChartFont",this._isNull),this.m_size},set:function(n){this.m_size=n;f(this.context,this,"Size",n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return r("underline",this.m_underline,"ChartFont",this._isNull),this.m_underline},set:function(n){this.m_underline=n;f(this.context,this,"Underline",n)},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Bold)||(this.m_bold=i.Bold);u(i.Color)||(this.m_color=i.Color);u(i.Italic)||(this.m_italic=i.Italic);u(i.Name)||(this.m_name=i.Name);u(i.Size)||(this.m_size=i.Size);u(i.Underline)||(this.m_underline=i.Underline)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{bold:this.m_bold,color:this.m_color,italic:this.m_italic,name:this.m_name,size:this.m_size,underline:this.m_underline}},t}(OfficeExtension.ClientObject);n.ChartFont=rr;ur=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),t.prototype.apply=function(n,t,i,r,u){o(this.context,this,"Apply",OfficeExtension.OperationType.Default,[n,t,i,r,u])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i)}},t.prototype.toJSON=function(){return{}},t}(OfficeExtension.ClientObject);n.RangeSort=ur;fr=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"fields",{get:function(){return r("fields",this.m_fields,"TableSort",this._isNull),this.m_fields},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchCase",{get:function(){return r("matchCase",this.m_matchCase,"TableSort",this._isNull),this.m_matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"method",{get:function(){return r("method",this.m_method,"TableSort",this._isNull),this.m_method},enumerable:!0,configurable:!0}),t.prototype.apply=function(n,t,i){o(this.context,this,"Apply",OfficeExtension.OperationType.Default,[n,t,i])},t.prototype.clear=function(){o(this.context,this,"Clear",OfficeExtension.OperationType.Default,[])},t.prototype.reapply=function(){o(this.context,this,"Reapply",OfficeExtension.OperationType.Default,[])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Fields)||(this.m_fields=i.Fields);u(i.MatchCase)||(this.m_matchCase=i.MatchCase);u(i.Method)||(this.m_method=i.Method)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{fields:this.m_fields,matchCase:this.m_matchCase,method:this.m_method}},t}(OfficeExtension.ClientObject);n.TableSort=fr;er=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"criteria",{get:function(){return r("criteria",this.m_criteria,"Filter",this._isNull),this.m_criteria},enumerable:!0,configurable:!0}),t.prototype.apply=function(n){o(this.context,this,"Apply",OfficeExtension.OperationType.Default,[n])},t.prototype.applyBottomItemsFilter=function(n){o(this.context,this,"ApplyBottomItemsFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyBottomPercentFilter=function(n){o(this.context,this,"ApplyBottomPercentFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyCellColorFilter=function(n){o(this.context,this,"ApplyCellColorFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyCustomFilter=function(n,t,i){o(this.context,this,"ApplyCustomFilter",OfficeExtension.OperationType.Default,[n,t,i])},t.prototype.applyDynamicFilter=function(n){o(this.context,this,"ApplyDynamicFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyFontColorFilter=function(n){o(this.context,this,"ApplyFontColorFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyIconFilter=function(n){o(this.context,this,"ApplyIconFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyTopItemsFilter=function(n){o(this.context,this,"ApplyTopItemsFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyTopPercentFilter=function(n){o(this.context,this,"ApplyTopPercentFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.applyValuesFilter=function(n){o(this.context,this,"ApplyValuesFilter",OfficeExtension.OperationType.Default,[n])},t.prototype.clear=function(){o(this.context,this,"Clear",OfficeExtension.OperationType.Default,[])},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Criteria)||(this.m_criteria=i.Criteria)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{criteria:this.m_criteria}},t}(OfficeExtension.ClientObject);n.Filter=er;or=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),t.prototype.bindingAddColumns=function(n){var i=o(this.context,this,"BindingAddColumns",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingAddFromNamedItem=function(n){var i=o(this.context,this,"BindingAddFromNamedItem",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingAddFromPrompt=function(n){var i=o(this.context,this,"BindingAddFromPrompt",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingAddFromSelection=function(n){var i=o(this.context,this,"BindingAddFromSelection",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingAddRows=function(n){var i=o(this.context,this,"BindingAddRows",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingClearFormats=function(n){var i=o(this.context,this,"BindingClearFormats",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingDeleteAllDataValues=function(n){var i=o(this.context,this,"BindingDeleteAllDataValues",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingGetAll=function(){var t=o(this.context,this,"BindingGetAll",OfficeExtension.OperationType.Read,[]),n=new OfficeExtension.ClientResult;return a(this,t,n),n},t.prototype.bindingGetById=function(n){var i=o(this.context,this,"BindingGetById",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingGetData=function(n){var i=o(this.context,this,"BindingGetData",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingReleaseById=function(n){var i=o(this.context,this,"BindingReleaseById",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingSetData=function(n){var i=o(this.context,this,"BindingSetData",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingSetFormats=function(n){var i=o(this.context,this,"BindingSetFormats",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.bindingSetTableOptions=function(n){var i=o(this.context,this,"BindingSetTableOptions",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.getSelectedData=function(n){var i=o(this.context,this,"GetSelectedData",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.gotoById=function(n){var i=o(this.context,this,"GotoById",OfficeExtension.OperationType.Read,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype.setSelectedData=function(n){var i=o(this.context,this,"SetSelectedData",OfficeExtension.OperationType.Default,[n]),t=new OfficeExtension.ClientResult;return a(this,i,t),t},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i)}},t.prototype.toJSON=function(){return{}},t}(OfficeExtension.ClientObject);n._V1Api=or;sr=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"items",{get:function(){return r("items",this.m__items,"PivotTableCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),i.prototype.getItem=function(t){return new n.PivotTable(this.context,y(this.context,this,[t]))},i.prototype.refreshAll=function(){o(this.context,this,"RefreshAll",OfficeExtension.OperationType.Default,[])},i.prototype._handleResult=function(i){var u,f,r,o;if((t.prototype._handleResult.call(this,i),!e(i))&&(u=i,h(this,u),!e(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)o=new n.PivotTable(this.context,v(!0,this.context,this,f[r],r)),o._handleResult(f[r]),this.m__items.push(o)},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{}},i}(OfficeExtension.ClientObject);n.PivotTableCollection=sr;hr=function(t){function i(){t.apply(this,arguments)}return __extends(i,t),Object.defineProperty(i.prototype,"worksheet",{get:function(){return this.m_worksheet||(this.m_worksheet=new n.Worksheet(this.context,s(this.context,this,"Worksheet",!1,!1))),this.m_worksheet},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this.m_name,"PivotTable",this._isNull),this.m_name},set:function(n){this.m_name=n;f(this.context,this,"Name",n)},enumerable:!0,configurable:!0}),i.prototype.refresh=function(){o(this.context,this,"Refresh",OfficeExtension.OperationType.Default,[])},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!e(n)){var i=n;h(this,i);u(i.Name)||(this.m_name=i.Name);l(this,i,["worksheet","Worksheet"])}},i.prototype.load=function(n){return c(this,n),this},i.prototype.toJSON=function(){return{name:this.m_name}},i}(OfficeExtension.ClientObject);n.PivotTable=hr,function(n){n.range="Range";n.table="Table";n.text="Text"}(yr=n.BindingType||(n.BindingType={})),function(n){n.edgeTop="EdgeTop";n.edgeBottom="EdgeBottom";n.edgeLeft="EdgeLeft";n.edgeRight="EdgeRight";n.insideVertical="InsideVertical";n.insideHorizontal="InsideHorizontal";n.diagonalDown="DiagonalDown";n.diagonalUp="DiagonalUp"}(pr=n.BorderIndex||(n.BorderIndex={})),function(n){n.none="None";n.continuous="Continuous";n.dash="Dash";n.dashDot="DashDot";n.dashDotDot="DashDotDot";n.dot="Dot";n.double="Double";n.slantDashDot="SlantDashDot"}(wr=n.BorderLineStyle||(n.BorderLineStyle={})),function(n){n.hairline="Hairline";n.thin="Thin";n.medium="Medium";n.thick="Thick"}(br=n.BorderWeight||(n.BorderWeight={})),function(n){n.automatic="Automatic";n.automaticExceptTables="AutomaticExceptTables";n.manual="Manual"}(kr=n.CalculationMode||(n.CalculationMode={})),function(n){n.recalculate="Recalculate";n.full="Full";n.fullRebuild="FullRebuild"}(dr=n.CalculationType||(n.CalculationType={})),function(n){n.all="All";n.formats="Formats";n.contents="Contents"}(gr=n.ClearApplyTo||(n.ClearApplyTo={})),function(n){n.invalid="Invalid";n.none="None";n.center="Center";n.insideEnd="InsideEnd";n.insideBase="InsideBase";n.outsideEnd="OutsideEnd";n.left="Left";n.right="Right";n.top="Top";n.bottom="Bottom";n.bestFit="BestFit";n.callout="Callout"}(nu=n.ChartDataLabelPosition||(n.ChartDataLabelPosition={})),function(n){n.invalid="Invalid";n.top="Top";n.bottom="Bottom";n.left="Left";n.right="Right";n.corner="Corner";n.custom="Custom"}(tu=n.ChartLegendPosition||(n.ChartLegendPosition={})),function(n){n.auto="Auto";n.columns="Columns";n.rows="Rows"}(iu=n.ChartSeriesBy||(n.ChartSeriesBy={})),function(n){n.invalid="Invalid";n.columnClustered="ColumnClustered";n.columnStacked="ColumnStacked";n.columnStacked100="ColumnStacked100";n._3DColumnClustered="3DColumnClustered";n._3DColumnStacked="3DColumnStacked";n._3DColumnStacked100="3DColumnStacked100";n.barClustered="BarClustered";n.barStacked="BarStacked";n.barStacked100="BarStacked100";n._3DBarClustered="3DBarClustered";n._3DBarStacked="3DBarStacked";n._3DBarStacked100="3DBarStacked100";n.lineStacked="LineStacked";n.lineStacked100="LineStacked100";n.lineMarkers="LineMarkers";n.lineMarkersStacked="LineMarkersStacked";n.lineMarkersStacked100="LineMarkersStacked100";n.pieOfPie="PieOfPie";n.pieExploded="PieExploded";n._3DPieExploded="3DPieExploded";n.barOfPie="BarOfPie";n.xyscatterSmooth="XYScatterSmooth";n.xyscatterSmoothNoMarkers="XYScatterSmoothNoMarkers";n.xyscatterLines="XYScatterLines";n.xyscatterLinesNoMarkers="XYScatterLinesNoMarkers";n.areaStacked="AreaStacked";n.areaStacked100="AreaStacked100";n._3DAreaStacked="3DAreaStacked";n._3DAreaStacked100="3DAreaStacked100";n.doughnutExploded="DoughnutExploded";n.radarMarkers="RadarMarkers";n.radarFilled="RadarFilled";n.surface="Surface";n.surfaceWireframe="SurfaceWireframe";n.surfaceTopView="SurfaceTopView";n.surfaceTopViewWireframe="SurfaceTopViewWireframe";n.bubble="Bubble";n.bubble3DEffect="Bubble3DEffect";n.stockHLC="StockHLC";n.stockOHLC="StockOHLC";n.stockVHLC="StockVHLC";n.stockVOHLC="StockVOHLC";n.cylinderColClustered="CylinderColClustered";n.cylinderColStacked="CylinderColStacked";n.cylinderColStacked100="CylinderColStacked100";n.cylinderBarClustered="CylinderBarClustered";n.cylinderBarStacked="CylinderBarStacked";n.cylinderBarStacked100="CylinderBarStacked100";n.cylinderCol="CylinderCol";n.coneColClustered="ConeColClustered";n.coneColStacked="ConeColStacked";n.coneColStacked100="ConeColStacked100";n.coneBarClustered="ConeBarClustered";n.coneBarStacked="ConeBarStacked";n.coneBarStacked100="ConeBarStacked100";n.coneCol="ConeCol";n.pyramidColClustered="PyramidColClustered";n.pyramidColStacked="PyramidColStacked";n.pyramidColStacked100="PyramidColStacked100";n.pyramidBarClustered="PyramidBarClustered";n.pyramidBarStacked="PyramidBarStacked";n.pyramidBarStacked100="PyramidBarStacked100";n.pyramidCol="PyramidCol";n._3DColumn="3DColumn";n.line="Line";n._3DLine="3DLine";n._3DPie="3DPie";n.pie="Pie";n.xyscatter="XYScatter";n._3DArea="3DArea";n.area="Area";n.doughnut="Doughnut";n.radar="Radar"}(ru=n.ChartType||(n.ChartType={})),function(n){n.none="None";n.single="Single"}(uu=n.ChartUnderlineStyle||(n.ChartUnderlineStyle={})),function(n){n.up="Up";n.left="Left"}(fu=n.DeleteShiftDirection||(n.DeleteShiftDirection={})),function(n){n.unknown="Unknown";n.aboveAverage="AboveAverage";n.allDatesInPeriodApril="AllDatesInPeriodApril";n.allDatesInPeriodAugust="AllDatesInPeriodAugust";n.allDatesInPeriodDecember="AllDatesInPeriodDecember";n.allDatesInPeriodFebruray="AllDatesInPeriodFebruray";n.allDatesInPeriodJanuary="AllDatesInPeriodJanuary";n.allDatesInPeriodJuly="AllDatesInPeriodJuly";n.allDatesInPeriodJune="AllDatesInPeriodJune";n.allDatesInPeriodMarch="AllDatesInPeriodMarch";n.allDatesInPeriodMay="AllDatesInPeriodMay";n.allDatesInPeriodNovember="AllDatesInPeriodNovember";n.allDatesInPeriodOctober="AllDatesInPeriodOctober";n.allDatesInPeriodQuarter1="AllDatesInPeriodQuarter1";n.allDatesInPeriodQuarter2="AllDatesInPeriodQuarter2";n.allDatesInPeriodQuarter3="AllDatesInPeriodQuarter3";n.allDatesInPeriodQuarter4="AllDatesInPeriodQuarter4";n.allDatesInPeriodSeptember="AllDatesInPeriodSeptember";n.belowAverage="BelowAverage";n.lastMonth="LastMonth";n.lastQuarter="LastQuarter";n.lastWeek="LastWeek";n.lastYear="LastYear";n.nextMonth="NextMonth";n.nextQuarter="NextQuarter";n.nextWeek="NextWeek";n.nextYear="NextYear";n.thisMonth="ThisMonth";n.thisQuarter="ThisQuarter";n.thisWeek="ThisWeek";n.thisYear="ThisYear";n.today="Today";n.tomorrow="Tomorrow";n.yearToDate="YearToDate";n.yesterday="Yesterday"}(eu=n.DynamicFilterCriteria||(n.DynamicFilterCriteria={})),function(n){n.year="Year";n.month="Month";n.day="Day";n.hour="Hour";n.minute="Minute";n.second="Second"}(ou=n.FilterDatetimeSpecificity||(n.FilterDatetimeSpecificity={})),function(n){n.bottomItems="BottomItems";n.bottomPercent="BottomPercent";n.cellColor="CellColor";n.dynamic="Dynamic";n.fontColor="FontColor";n.values="Values";n.topItems="TopItems";n.topPercent="TopPercent";n.icon="Icon";n.custom="Custom"}(su=n.FilterOn||(n.FilterOn={})),function(n){n.and="And";n.or="Or"}(hu=n.FilterOperator||(n.FilterOperator={})),function(n){n.general="General";n.left="Left";n.center="Center";n.right="Right";n.fill="Fill";n.justify="Justify";n.centerAcrossSelection="CenterAcrossSelection";n.distributed="Distributed"}(cu=n.HorizontalAlignment||(n.HorizontalAlignment={})),function(n){n.invalid="Invalid";n.threeArrows="ThreeArrows";n.threeArrowsGray="ThreeArrowsGray";n.threeFlags="ThreeFlags";n.threeTrafficLights1="ThreeTrafficLights1";n.threeTrafficLights2="ThreeTrafficLights2";n.threeSigns="ThreeSigns";n.threeSymbols="ThreeSymbols";n.threeSymbols2="ThreeSymbols2";n.fourArrows="FourArrows";n.fourArrowsGray="FourArrowsGray";n.fourRedToBlack="FourRedToBlack";n.fourRating="FourRating";n.fourTrafficLights="FourTrafficLights";n.fiveArrows="FiveArrows";n.fiveArrowsGray="FiveArrowsGray";n.fiveRating="FiveRating";n.fiveQuarters="FiveQuarters";n.threeStars="ThreeStars";n.threeTriangles="ThreeTriangles";n.fiveBoxes="FiveBoxes"}(lu=n.IconSet||(n.IconSet={})),function(n){n.fit="Fit";n.fitAndCenter="FitAndCenter";n.fill="Fill"}(au=n.ImageFittingMode||(n.ImageFittingMode={})),function(n){n.down="Down";n.right="Right"}(vu=n.InsertShiftDirection||(n.InsertShiftDirection={})),function(n){n.string="String";n.integer="Integer";n.double="Double";n.boolean="Boolean";n.range="Range"}(yu=n.NamedItemType||(n.NamedItemType={})),function(n){n.none="None";n.single="Single";n.double="Double";n.singleAccountant="SingleAccountant";n.doubleAccountant="DoubleAccountant"}(pu=n.RangeUnderlineStyle||(n.RangeUnderlineStyle={})),function(n){n.visible="Visible";n.hidden="Hidden";n.veryHidden="VeryHidden"}(wu=n.SheetVisibility||(n.SheetVisibility={})),function(n){n.unknown="Unknown";n.empty="Empty";n.string="String";n.integer="Integer";n.double="Double";n.boolean="Boolean";n.error="Error"}(bu=n.RangeValueType||(n.RangeValueType={})),function(n){n.rows="Rows";n.columns="Columns"}(ku=n.SortOrientation||(n.SortOrientation={})),function(n){n.value="Value";n.cellColor="CellColor";n.fontColor="FontColor";n.icon="Icon"}(du=n.SortOn||(n.SortOn={})),function(n){n.normal="Normal";n.textAsNumber="TextAsNumber"}(gu=n.SortDataOption||(n.SortDataOption={})),function(n){n.pinYin="PinYin";n.strokeCount="StrokeCount"}(nf=n.SortMethod||(n.SortMethod={})),function(n){n.top="Top";n.center="Center";n.bottom="Bottom";n.justify="Justify";n.distributed="Distributed"}(tf=n.VerticalAlignment||(n.VerticalAlignment={}));i=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),Object.defineProperty(t.prototype,"error",{get:function(){return r("error",this.m_error,"FunctionResult",this._isNull),this.m_error},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return r("value",this.m_value,"FunctionResult",this._isNull),this.m_value},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i);u(i.Error)||(this.m_error=i.Error);u(i.Value)||(this.m_value=i.Value)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{error:this.m_error,value:this.m_value}},t}(OfficeExtension.ClientObject);n.FunctionResult=i;cr=function(n){function r(){n.apply(this,arguments)}return __extends(r,n),r.prototype.abs=function(n){return new i(this.context,t(this.context,this,"Abs",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.accrInt=function(n,r,u,f,e,o,s,h){return new i(this.context,t(this.context,this,"AccrInt",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s,h],!1,!0,null))},r.prototype.accrIntM=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"AccrIntM",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.acos=function(n){return new i(this.context,t(this.context,this,"Acos",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.acosh=function(n){return new i(this.context,t(this.context,this,"Acosh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.acot=function(n){return new i(this.context,t(this.context,this,"Acot",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.acoth=function(n){return new i(this.context,t(this.context,this,"Acoth",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.amorDegrc=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"AmorDegrc",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s],!1,!0,null))},r.prototype.amorLinc=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"AmorLinc",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s],!1,!0,null))},r.prototype.and=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"And",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.arabic=function(n){return new i(this.context,t(this.context,this,"Arabic",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.areas=function(n){return new i(this.context,t(this.context,this,"Areas",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.asc=function(n){return new i(this.context,t(this.context,this,"Asc",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.asin=function(n){return new i(this.context,t(this.context,this,"Asin",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.asinh=function(n){return new i(this.context,t(this.context,this,"Asinh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.atan=function(n){return new i(this.context,t(this.context,this,"Atan",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.atan2=function(n,r){return new i(this.context,t(this.context,this,"Atan2",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.atanh=function(n){return new i(this.context,t(this.context,this,"Atanh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.aveDev=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"AveDev",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.average=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Average",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.averageA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"AverageA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.averageIf=function(n,r,u){return new i(this.context,t(this.context,this,"AverageIf",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.averageIfs=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"AverageIfs",OfficeExtension.OperationType.Default,[n,u],!1,!0,null))},r.prototype.bahtText=function(n){return new i(this.context,t(this.context,this,"BahtText",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.base=function(n,r,u){return new i(this.context,t(this.context,this,"Base",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.besselI=function(n,r){return new i(this.context,t(this.context,this,"BesselI",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.besselJ=function(n,r){return new i(this.context,t(this.context,this,"BesselJ",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.besselK=function(n,r){return new i(this.context,t(this.context,this,"BesselK",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.besselY=function(n,r){return new i(this.context,t(this.context,this,"BesselY",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.beta_Dist=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Beta_Dist",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.beta_Inv=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Beta_Inv",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.bin2Dec=function(n){return new i(this.context,t(this.context,this,"Bin2Dec",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.bin2Hex=function(n,r){return new i(this.context,t(this.context,this,"Bin2Hex",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.bin2Oct=function(n,r){return new i(this.context,t(this.context,this,"Bin2Oct",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.binom_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Binom_Dist",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.binom_Dist_Range=function(n,r,u,f){return new i(this.context,t(this.context,this,"Binom_Dist_Range",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.binom_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"Binom_Inv",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.bitand=function(n,r){return new i(this.context,t(this.context,this,"Bitand",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.bitlshift=function(n,r){return new i(this.context,t(this.context,this,"Bitlshift",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.bitor=function(n,r){return new i(this.context,t(this.context,this,"Bitor",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.bitrshift=function(n,r){return new i(this.context,t(this.context,this,"Bitrshift",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.bitxor=function(n,r){return new i(this.context,t(this.context,this,"Bitxor",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.ceiling_Math=function(n,r,u){return new i(this.context,t(this.context,this,"Ceiling_Math",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.ceiling_Precise=function(n,r){return new i(this.context,t(this.context,this,"Ceiling_Precise",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.char=function(n){return new i(this.context,t(this.context,this,"Char",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.chiSq_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"ChiSq_Dist",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.chiSq_Dist_RT=function(n,r){return new i(this.context,t(this.context,this,"ChiSq_Dist_RT",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.chiSq_Inv=function(n,r){return new i(this.context,t(this.context,this,"ChiSq_Inv",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.chiSq_Inv_RT=function(n,r){return new i(this.context,t(this.context,this,"ChiSq_Inv_RT",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.choose=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"Choose",OfficeExtension.OperationType.Default,[n,u],!1,!0,null))},r.prototype.clean=function(n){return new i(this.context,t(this.context,this,"Clean",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.code=function(n){return new i(this.context,t(this.context,this,"Code",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.columns=function(n){return new i(this.context,t(this.context,this,"Columns",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.combin=function(n,r){return new i(this.context,t(this.context,this,"Combin",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.combina=function(n,r){return new i(this.context,t(this.context,this,"Combina",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.complex=function(n,r,u){return new i(this.context,t(this.context,this,"Complex",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.concatenate=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Concatenate",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.confidence_Norm=function(n,r,u){return new i(this.context,t(this.context,this,"Confidence_Norm",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.confidence_T=function(n,r,u){return new i(this.context,t(this.context,this,"Confidence_T",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.convert=function(n,r,u){return new i(this.context,t(this.context,this,"Convert",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.cos=function(n){return new i(this.context,t(this.context,this,"Cos",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.cosh=function(n){return new i(this.context,t(this.context,this,"Cosh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.cot=function(n){return new i(this.context,t(this.context,this,"Cot",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.coth=function(n){return new i(this.context,t(this.context,this,"Coth",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.count=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Count",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.countA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"CountA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.countBlank=function(n){return new i(this.context,t(this.context,this,"CountBlank",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.countIf=function(n,r){return new i(this.context,t(this.context,this,"CountIf",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.countIfs=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"CountIfs",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.coupDayBs=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupDayBs",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.coupDays=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupDays",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.coupDaysNc=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupDaysNc",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.coupNcd=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupNcd",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.coupNum=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupNum",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.coupPcd=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupPcd",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.csc=function(n){return new i(this.context,t(this.context,this,"Csc",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.csch=function(n){return new i(this.context,t(this.context,this,"Csch",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.cumIPmt=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"CumIPmt",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.cumPrinc=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"CumPrinc",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.daverage=function(n,r,u){return new i(this.context,t(this.context,this,"DAverage",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dcount=function(n,r,u){return new i(this.context,t(this.context,this,"DCount",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dcountA=function(n,r,u){return new i(this.context,t(this.context,this,"DCountA",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dget=function(n,r,u){return new i(this.context,t(this.context,this,"DGet",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dmax=function(n,r,u){return new i(this.context,t(this.context,this,"DMax",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dmin=function(n,r,u){return new i(this.context,t(this.context,this,"DMin",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dproduct=function(n,r,u){return new i(this.context,t(this.context,this,"DProduct",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dstDev=function(n,r,u){return new i(this.context,t(this.context,this,"DStDev",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dstDevP=function(n,r,u){return new i(this.context,t(this.context,this,"DStDevP",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dsum=function(n,r,u){return new i(this.context,t(this.context,this,"DSum",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dvar=function(n,r,u){return new i(this.context,t(this.context,this,"DVar",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.dvarP=function(n,r,u){return new i(this.context,t(this.context,this,"DVarP",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.date=function(n,r,u){return new i(this.context,t(this.context,this,"Date",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.datevalue=function(n){return new i(this.context,t(this.context,this,"Datevalue",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.day=function(n){return new i(this.context,t(this.context,this,"Day",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.days=function(n,r){return new i(this.context,t(this.context,this,"Days",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.days360=function(n,r,u){return new i(this.context,t(this.context,this,"Days360",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.db=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Db",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.dbcs=function(n){return new i(this.context,t(this.context,this,"Dbcs",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.ddb=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Ddb",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.dec2Bin=function(n,r){return new i(this.context,t(this.context,this,"Dec2Bin",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.dec2Hex=function(n,r){return new i(this.context,t(this.context,this,"Dec2Hex",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.dec2Oct=function(n,r){return new i(this.context,t(this.context,this,"Dec2Oct",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.decimal=function(n,r){return new i(this.context,t(this.context,this,"Decimal",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.degrees=function(n){return new i(this.context,t(this.context,this,"Degrees",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.delta=function(n,r){return new i(this.context,t(this.context,this,"Delta",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.devSq=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"DevSq",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.disc=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Disc",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.dollar=function(n,r){return new i(this.context,t(this.context,this,"Dollar",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.dollarDe=function(n,r){return new i(this.context,t(this.context,this,"DollarDe",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.dollarFr=function(n,r){return new i(this.context,t(this.context,this,"DollarFr",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.duration=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Duration",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.ecma_Ceiling=function(n,r){return new i(this.context,t(this.context,this,"ECMA_Ceiling",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.edate=function(n,r){return new i(this.context,t(this.context,this,"EDate",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.effect=function(n,r){return new i(this.context,t(this.context,this,"Effect",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.eoMonth=function(n,r){return new i(this.context,t(this.context,this,"EoMonth",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.erf=function(n,r){return new i(this.context,t(this.context,this,"Erf",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.erfC=function(n){return new i(this.context,t(this.context,this,"ErfC",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.erfC_Precise=function(n){return new i(this.context,t(this.context,this,"ErfC_Precise",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.erf_Precise=function(n){return new i(this.context,t(this.context,this,"Erf_Precise",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.error_Type=function(n){return new i(this.context,t(this.context,this,"Error_Type",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.even=function(n){return new i(this.context,t(this.context,this,"Even",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.exact=function(n,r){return new i(this.context,t(this.context,this,"Exact",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.exp=function(n){return new i(this.context,t(this.context,this,"Exp",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.expon_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"Expon_Dist",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.fvschedule=function(n,r){return new i(this.context,t(this.context,this,"FVSchedule",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.f_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"F_Dist",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.f_Dist_RT=function(n,r,u){return new i(this.context,t(this.context,this,"F_Dist_RT",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.f_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"F_Inv",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.f_Inv_RT=function(n,r,u){return new i(this.context,t(this.context,this,"F_Inv_RT",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.fact=function(n){return new i(this.context,t(this.context,this,"Fact",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.factDouble=function(n){return new i(this.context,t(this.context,this,"FactDouble",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.false=function(){return new i(this.context,t(this.context,this,"False",OfficeExtension.OperationType.Default,[],!1,!0,null))},r.prototype.find=function(n,r,u){return new i(this.context,t(this.context,this,"Find",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.findB=function(n,r,u){return new i(this.context,t(this.context,this,"FindB",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.fisher=function(n){return new i(this.context,t(this.context,this,"Fisher",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.fisherInv=function(n){return new i(this.context,t(this.context,this,"FisherInv",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.fixed=function(n,r,u){return new i(this.context,t(this.context,this,"Fixed",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.floor_Math=function(n,r,u){return new i(this.context,t(this.context,this,"Floor_Math",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.floor_Precise=function(n,r){return new i(this.context,t(this.context,this,"Floor_Precise",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.fv=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Fv",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.gamma=function(n){return new i(this.context,t(this.context,this,"Gamma",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.gammaLn=function(n){return new i(this.context,t(this.context,this,"GammaLn",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.gammaLn_Precise=function(n){return new i(this.context,t(this.context,this,"GammaLn_Precise",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.gamma_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Gamma_Dist",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.gamma_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"Gamma_Inv",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.gauss=function(n){return new i(this.context,t(this.context,this,"Gauss",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.gcd=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Gcd",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.geStep=function(n,r){return new i(this.context,t(this.context,this,"GeStep",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.geoMean=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"GeoMean",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.hlookup=function(n,r,u,f){return new i(this.context,t(this.context,this,"HLookup",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.harMean=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"HarMean",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.hex2Bin=function(n,r){return new i(this.context,t(this.context,this,"Hex2Bin",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.hex2Dec=function(n){return new i(this.context,t(this.context,this,"Hex2Dec",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.hex2Oct=function(n,r){return new i(this.context,t(this.context,this,"Hex2Oct",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.hour=function(n){return new i(this.context,t(this.context,this,"Hour",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.hypGeom_Dist=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"HypGeom_Dist",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.hyperlink=function(n,r){return new i(this.context,t(this.context,this,"Hyperlink",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.iso_Ceiling=function(n,r){return new i(this.context,t(this.context,this,"ISO_Ceiling",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.if=function(n,r,u){return new i(this.context,t(this.context,this,"If",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.imAbs=function(n){return new i(this.context,t(this.context,this,"ImAbs",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imArgument=function(n){return new i(this.context,t(this.context,this,"ImArgument",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imConjugate=function(n){return new i(this.context,t(this.context,this,"ImConjugate",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imCos=function(n){return new i(this.context,t(this.context,this,"ImCos",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imCosh=function(n){return new i(this.context,t(this.context,this,"ImCosh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imCot=function(n){return new i(this.context,t(this.context,this,"ImCot",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imCsc=function(n){return new i(this.context,t(this.context,this,"ImCsc",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imCsch=function(n){return new i(this.context,t(this.context,this,"ImCsch",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imDiv=function(n,r){return new i(this.context,t(this.context,this,"ImDiv",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.imExp=function(n){return new i(this.context,t(this.context,this,"ImExp",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imLn=function(n){return new i(this.context,t(this.context,this,"ImLn",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imLog10=function(n){return new i(this.context,t(this.context,this,"ImLog10",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imLog2=function(n){return new i(this.context,t(this.context,this,"ImLog2",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imPower=function(n,r){return new i(this.context,t(this.context,this,"ImPower",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.imProduct=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"ImProduct",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.imReal=function(n){return new i(this.context,t(this.context,this,"ImReal",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imSec=function(n){return new i(this.context,t(this.context,this,"ImSec",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imSech=function(n){return new i(this.context,t(this.context,this,"ImSech",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imSin=function(n){return new i(this.context,t(this.context,this,"ImSin",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imSinh=function(n){return new i(this.context,t(this.context,this,"ImSinh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imSqrt=function(n){return new i(this.context,t(this.context,this,"ImSqrt",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imSub=function(n,r){return new i(this.context,t(this.context,this,"ImSub",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.imSum=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"ImSum",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.imTan=function(n){return new i(this.context,t(this.context,this,"ImTan",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.imaginary=function(n){return new i(this.context,t(this.context,this,"Imaginary",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.int=function(n){return new i(this.context,t(this.context,this,"Int",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.intRate=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"IntRate",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.ipmt=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Ipmt",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.irr=function(n,r){return new i(this.context,t(this.context,this,"Irr",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.isErr=function(n){return new i(this.context,t(this.context,this,"IsErr",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isError=function(n){return new i(this.context,t(this.context,this,"IsError",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isEven=function(n){return new i(this.context,t(this.context,this,"IsEven",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isFormula=function(n){return new i(this.context,t(this.context,this,"IsFormula",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isLogical=function(n){return new i(this.context,t(this.context,this,"IsLogical",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isNA=function(n){return new i(this.context,t(this.context,this,"IsNA",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isNonText=function(n){return new i(this.context,t(this.context,this,"IsNonText",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isNumber=function(n){return new i(this.context,t(this.context,this,"IsNumber",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isOdd=function(n){return new i(this.context,t(this.context,this,"IsOdd",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isText=function(n){return new i(this.context,t(this.context,this,"IsText",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.isoWeekNum=function(n){return new i(this.context,t(this.context,this,"IsoWeekNum",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.ispmt=function(n,r,u,f){return new i(this.context,t(this.context,this,"Ispmt",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.isref=function(n){return new i(this.context,t(this.context,this,"Isref",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.kurt=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Kurt",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.large=function(n,r){return new i(this.context,t(this.context,this,"Large",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.lcm=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Lcm",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.left=function(n,r){return new i(this.context,t(this.context,this,"Left",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.leftb=function(n,r){return new i(this.context,t(this.context,this,"Leftb",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.len=function(n){return new i(this.context,t(this.context,this,"Len",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.lenb=function(n){return new i(this.context,t(this.context,this,"Lenb",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.ln=function(n){return new i(this.context,t(this.context,this,"Ln",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.log=function(n,r){return new i(this.context,t(this.context,this,"Log",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.log10=function(n){return new i(this.context,t(this.context,this,"Log10",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.logNorm_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"LogNorm_Dist",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.logNorm_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"LogNorm_Inv",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.lookup=function(n,r,u){return new i(this.context,t(this.context,this,"Lookup",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.lower=function(n){return new i(this.context,t(this.context,this,"Lower",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.mduration=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"MDuration",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.mirr=function(n,r,u){return new i(this.context,t(this.context,this,"MIrr",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.mround=function(n,r){return new i(this.context,t(this.context,this,"MRound",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.match=function(n,r,u){return new i(this.context,t(this.context,this,"Match",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.max=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Max",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.maxA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"MaxA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.median=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Median",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.mid=function(n,r,u){return new i(this.context,t(this.context,this,"Mid",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.midb=function(n,r,u){return new i(this.context,t(this.context,this,"Midb",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.min=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Min",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.minA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"MinA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.minute=function(n){return new i(this.context,t(this.context,this,"Minute",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.mod=function(n,r){return new i(this.context,t(this.context,this,"Mod",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.month=function(n){return new i(this.context,t(this.context,this,"Month",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.multiNomial=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"MultiNomial",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.n=function(n){return new i(this.context,t(this.context,this,"N",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.nper=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"NPer",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.na=function(){return new i(this.context,t(this.context,this,"Na",OfficeExtension.OperationType.Default,[],!1,!0,null))},r.prototype.negBinom_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"NegBinom_Dist",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.networkDays=function(n,r,u){return new i(this.context,t(this.context,this,"NetworkDays",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.networkDays_Intl=function(n,r,u,f){return new i(this.context,t(this.context,this,"NetworkDays_Intl",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.nominal=function(n,r){return new i(this.context,t(this.context,this,"Nominal",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.norm_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Norm_Dist",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.norm_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"Norm_Inv",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.norm_S_Dist=function(n,r){return new i(this.context,t(this.context,this,"Norm_S_Dist",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.norm_S_Inv=function(n){return new i(this.context,t(this.context,this,"Norm_S_Inv",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.not=function(n){return new i(this.context,t(this.context,this,"Not",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.now=function(){return new i(this.context,t(this.context,this,"Now",OfficeExtension.OperationType.Default,[],!1,!0,null))},r.prototype.npv=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"Npv",OfficeExtension.OperationType.Default,[n,u],!1,!0,null))},r.prototype.numberValue=function(n,r,u){return new i(this.context,t(this.context,this,"NumberValue",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.oct2Bin=function(n,r){return new i(this.context,t(this.context,this,"Oct2Bin",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.oct2Dec=function(n){return new i(this.context,t(this.context,this,"Oct2Dec",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.oct2Hex=function(n,r){return new i(this.context,t(this.context,this,"Oct2Hex",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.odd=function(n){return new i(this.context,t(this.context,this,"Odd",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.oddFPrice=function(n,r,u,f,e,o,s,h,c){return new i(this.context,t(this.context,this,"OddFPrice",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s,h,c],!1,!0,null))},r.prototype.oddFYield=function(n,r,u,f,e,o,s,h,c){return new i(this.context,t(this.context,this,"OddFYield",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s,h,c],!1,!0,null))},r.prototype.oddLPrice=function(n,r,u,f,e,o,s,h){return new i(this.context,t(this.context,this,"OddLPrice",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s,h],!1,!0,null))},r.prototype.oddLYield=function(n,r,u,f,e,o,s,h){return new i(this.context,t(this.context,this,"OddLYield",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s,h],!1,!0,null))},r.prototype.or=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Or",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.pduration=function(n,r,u){return new i(this.context,t(this.context,this,"PDuration",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.percentRank_Exc=function(n,r,u){return new i(this.context,t(this.context,this,"PercentRank_Exc",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.percentRank_Inc=function(n,r,u){return new i(this.context,t(this.context,this,"PercentRank_Inc",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.percentile_Exc=function(n,r){return new i(this.context,t(this.context,this,"Percentile_Exc",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.percentile_Inc=function(n,r){return new i(this.context,t(this.context,this,"Percentile_Inc",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.permut=function(n,r){return new i(this.context,t(this.context,this,"Permut",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.permutationa=function(n,r){return new i(this.context,t(this.context,this,"Permutationa",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.phi=function(n){return new i(this.context,t(this.context,this,"Phi",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.pi=function(){return new i(this.context,t(this.context,this,"Pi",OfficeExtension.OperationType.Default,[],!1,!0,null))},r.prototype.pmt=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Pmt",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.poisson_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"Poisson_Dist",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.power=function(n,r){return new i(this.context,t(this.context,this,"Power",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.ppmt=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Ppmt",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.price=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"Price",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s],!1,!0,null))},r.prototype.priceDisc=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"PriceDisc",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.priceMat=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"PriceMat",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.product=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Product",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.proper=function(n){return new i(this.context,t(this.context,this,"Proper",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.pv=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Pv",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.quartile_Exc=function(n,r){return new i(this.context,t(this.context,this,"Quartile_Exc",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.quartile_Inc=function(n,r){return new i(this.context,t(this.context,this,"Quartile_Inc",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.quotient=function(n,r){return new i(this.context,t(this.context,this,"Quotient",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.radians=function(n){return new i(this.context,t(this.context,this,"Radians",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.rand=function(){return new i(this.context,t(this.context,this,"Rand",OfficeExtension.OperationType.Default,[],!1,!0,null))},r.prototype.randBetween=function(n,r){return new i(this.context,t(this.context,this,"RandBetween",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.rank_Avg=function(n,r,u){return new i(this.context,t(this.context,this,"Rank_Avg",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.rank_Eq=function(n,r,u){return new i(this.context,t(this.context,this,"Rank_Eq",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.rate=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Rate",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.received=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Received",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.replace=function(n,r,u,f){return new i(this.context,t(this.context,this,"Replace",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.replaceB=function(n,r,u,f){return new i(this.context,t(this.context,this,"ReplaceB",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.rept=function(n,r){return new i(this.context,t(this.context,this,"Rept",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.right=function(n,r){return new i(this.context,t(this.context,this,"Right",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.rightb=function(n,r){return new i(this.context,t(this.context,this,"Rightb",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.roman=function(n,r){return new i(this.context,t(this.context,this,"Roman",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.round=function(n,r){return new i(this.context,t(this.context,this,"Round",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.roundDown=function(n,r){return new i(this.context,t(this.context,this,"RoundDown",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.roundUp=function(n,r){return new i(this.context,t(this.context,this,"RoundUp",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.rows=function(n){return new i(this.context,t(this.context,this,"Rows",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.rri=function(n,r,u){return new i(this.context,t(this.context,this,"Rri",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.sec=function(n){return new i(this.context,t(this.context,this,"Sec",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.sech=function(n){return new i(this.context,t(this.context,this,"Sech",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.second=function(n){return new i(this.context,t(this.context,this,"Second",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.seriesSum=function(n,r,u,f){return new i(this.context,t(this.context,this,"SeriesSum",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.sheet=function(n){return new i(this.context,t(this.context,this,"Sheet",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.sheets=function(n){return new i(this.context,t(this.context,this,"Sheets",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.sign=function(n){return new i(this.context,t(this.context,this,"Sign",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.sin=function(n){return new i(this.context,t(this.context,this,"Sin",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.sinh=function(n){return new i(this.context,t(this.context,this,"Sinh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.skew=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Skew",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.skew_p=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Skew_p",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.sln=function(n,r,u){return new i(this.context,t(this.context,this,"Sln",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.small=function(n,r){return new i(this.context,t(this.context,this,"Small",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.sqrt=function(n){return new i(this.context,t(this.context,this,"Sqrt",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.sqrtPi=function(n){return new i(this.context,t(this.context,this,"SqrtPi",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.stDevA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"StDevA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.stDevPA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"StDevPA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.stDev_P=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"StDev_P",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.stDev_S=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"StDev_S",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.standardize=function(n,r,u){return new i(this.context,t(this.context,this,"Standardize",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.substitute=function(n,r,u,f){return new i(this.context,t(this.context,this,"Substitute",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.subtotal=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"Subtotal",OfficeExtension.OperationType.Default,[n,u],!1,!0,null))},r.prototype.sum=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Sum",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.sumIf=function(n,r,u){return new i(this.context,t(this.context,this,"SumIf",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.sumIfs=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"SumIfs",OfficeExtension.OperationType.Default,[n,u],!1,!0,null))},r.prototype.sumSq=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"SumSq",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.syd=function(n,r,u,f){return new i(this.context,t(this.context,this,"Syd",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.t=function(n){return new i(this.context,t(this.context,this,"T",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.tbillEq=function(n,r,u){return new i(this.context,t(this.context,this,"TBillEq",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.tbillPrice=function(n,r,u){return new i(this.context,t(this.context,this,"TBillPrice",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.tbillYield=function(n,r,u){return new i(this.context,t(this.context,this,"TBillYield",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.t_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"T_Dist",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.t_Dist_2T=function(n,r){return new i(this.context,t(this.context,this,"T_Dist_2T",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.t_Dist_RT=function(n,r){return new i(this.context,t(this.context,this,"T_Dist_RT",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.t_Inv=function(n,r){return new i(this.context,t(this.context,this,"T_Inv",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.t_Inv_2T=function(n,r){return new i(this.context,t(this.context,this,"T_Inv_2T",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.tan=function(n){return new i(this.context,t(this.context,this,"Tan",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.tanh=function(n){return new i(this.context,t(this.context,this,"Tanh",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.text=function(n,r){return new i(this.context,t(this.context,this,"Text",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.time=function(n,r,u){return new i(this.context,t(this.context,this,"Time",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.timevalue=function(n){return new i(this.context,t(this.context,this,"Timevalue",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.today=function(){return new i(this.context,t(this.context,this,"Today",OfficeExtension.OperationType.Default,[],!1,!0,null))},r.prototype.trim=function(n){return new i(this.context,t(this.context,this,"Trim",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.trimMean=function(n,r){return new i(this.context,t(this.context,this,"TrimMean",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.true=function(){return new i(this.context,t(this.context,this,"True",OfficeExtension.OperationType.Default,[],!1,!0,null))},r.prototype.trunc=function(n,r){return new i(this.context,t(this.context,this,"Trunc",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.type=function(n){return new i(this.context,t(this.context,this,"Type",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.usdollar=function(n,r){return new i(this.context,t(this.context,this,"USDollar",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.unichar=function(n){return new i(this.context,t(this.context,this,"Unichar",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.unicode=function(n){return new i(this.context,t(this.context,this,"Unicode",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.upper=function(n){return new i(this.context,t(this.context,this,"Upper",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.vlookup=function(n,r,u,f){return new i(this.context,t(this.context,this,"VLookup",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.value=function(n){return new i(this.context,t(this.context,this,"Value",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.varA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"VarA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.varPA=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"VarPA",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.var_P=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Var_P",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.var_S=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Var_S",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.vdb=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"Vdb",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s],!1,!0,null))},r.prototype.weekNum=function(n,r){return new i(this.context,t(this.context,this,"WeekNum",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.weekday=function(n,r){return new i(this.context,t(this.context,this,"Weekday",OfficeExtension.OperationType.Default,[n,r],!1,!0,null))},r.prototype.weibull_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Weibull_Dist",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.workDay=function(n,r,u){return new i(this.context,t(this.context,this,"WorkDay",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.workDay_Intl=function(n,r,u,f){return new i(this.context,t(this.context,this,"WorkDay_Intl",OfficeExtension.OperationType.Default,[n,r,u,f],!1,!0,null))},r.prototype.xirr=function(n,r,u){return new i(this.context,t(this.context,this,"Xirr",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.xnpv=function(n,r,u){return new i(this.context,t(this.context,this,"Xnpv",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.xor=function(){for(var r=[],n=0;n<arguments.length;n++)r[+n]=arguments[n];return new i(this.context,t(this.context,this,"Xor",OfficeExtension.OperationType.Default,[r],!1,!0,null))},r.prototype.year=function(n){return new i(this.context,t(this.context,this,"Year",OfficeExtension.OperationType.Default,[n],!1,!0,null))},r.prototype.yearFrac=function(n,r,u){return new i(this.context,t(this.context,this,"YearFrac",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype.yield=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"Yield",OfficeExtension.OperationType.Default,[n,r,u,f,e,o,s],!1,!0,null))},r.prototype.yieldDisc=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"YieldDisc",OfficeExtension.OperationType.Default,[n,r,u,f,e],!1,!0,null))},r.prototype.yieldMat=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"YieldMat",OfficeExtension.OperationType.Default,[n,r,u,f,e,o],!1,!0,null))},r.prototype.z_Test=function(n,r,u){return new i(this.context,t(this.context,this,"Z_Test",OfficeExtension.OperationType.Default,[n,r,u],!1,!0,null))},r.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!e(t)){var i=t;h(this,i)}},r.prototype.toJSON=function(){return{}},r}(OfficeExtension.ClientObject);n.Functions=cr,function(n){n.accessDenied="AccessDenied";n.apiNotFound="ApiNotFound";n.generalException="GeneralException";n.insertDeleteConflict="InsertDeleteConflict";n.invalidArgument="InvalidArgument";n.invalidBinding="InvalidBinding";n.invalidOperation="InvalidOperation";n.invalidReference="InvalidReference";n.invalidSelection="InvalidSelection";n.itemAlreadyExists="ItemAlreadyExists";n.itemNotFound="ItemNotFound";n.notImplemented="NotImplemented";n.unsupportedOperation="UnsupportedOperation"}(rf=n.ErrorCodes||(n.ErrorCodes={}))}(Excel||(Excel={})),function(n){function i(t,i,r){return OfficeExtension.ClientRequestContext._runBatch("Excel.run",arguments,function(t){var r=new n.RequestContext(t?t.url:null),i;if(t&&t.headers)for(i in t.headers)r.requestHeaders[i]=t.headers[i];return r})}var t=function(t){function i(i){t.call(this,i);this.m_workbook=new n.Workbook(this,OfficeExtension.ObjectPathFactory.createGlobalObjectObjectPath(this));this._rootObject=this.m_workbook}return __extends(i,t),Object.defineProperty(i.prototype,"workbook",{get:function(){return this.m_workbook},enumerable:!0,configurable:!0}),i}(OfficeExtension.ClientRequestContext);n.RequestContext=t;n.run=i}(Excel||(Excel={})),function(n){function t(n){var t={BindingColumnCount:n.bindingColumnCount,BindingId:n.bindingId,BindingRowCount:n.bindingRowCount,bindingType:n.bindingType,HasHeaders:n.hasHeaders};return window.OSF.DDA.OMFactory.manufactureBinding(t,window.Microsoft.Office.WebExtension.context.document)}function i(n,t){var r=n.headers==null,i;return i=r?n.rows:n,i=window.OSF.DDA.DataCoercion.coerceData(i,t[window.Microsoft.Office.WebExtension.Parameters.CoercionType]),i==undefined?null:i}n._RedirectV1APIs=!1;n._V1APIMap={GetDataAsync:{call:function(n,t){return n.workbook._V1Api.bindingGetData(t)},postprocess:i},GetSelectedDataAsync:{call:function(n,t){return n.workbook._V1Api.getSelectedData(t)},postprocess:i},GoToByIdAsync:{call:function(n,t){return n.workbook._V1Api.gotoById(t)}},AddColumnsAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddColumns(t)}},AddFromSelectionAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddFromSelection(t)},postprocess:t},AddFromNamedItemAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddFromNamedItem(t)},postprocess:t},AddFromPromptAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddFromPrompt(t)},postprocess:t},AddRowsAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddRows(t)}},GetByIdAsync:{call:function(n,t){return n.workbook._V1Api.bindingGetById(t)},postprocess:t},ReleaseByIdAsync:{call:function(n,t){return n.workbook._V1Api.bindingReleaseById(t)}},GetAllAsync:{call:function(n){return n.workbook._V1Api.bindingGetAll()},postprocess:function(n){return n.bindings.map(function(n){return t(n)})}},DeleteAllDataValuesAsync:{call:function(n,t){return n.workbook._V1Api.bindingDeleteAllDataValues(t)}},SetSelectedDataAsync:{preprocess:function(n){var t=n.cellFormat;return window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),n},call:function(n,t){return n.workbook._V1Api.setSelectedData(t)}},SetDataAsync:{preprocess:function(n){var t=n.cellFormat;return window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),n},call:function(n,t){return n.workbook._V1Api.bindingSetData(t)}},SetFormatsAsync:{preprocess:function(n){var t=n.cellFormat;return window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),n},call:function(n,t){return n.workbook._V1Api.bindingSetFormats(t)}},SetTableOptionsAsync:{call:function(n,t){return n.workbook._V1Api.bindingSetTableOptions(t)}},ClearFormatsAsync:{call:function(n,t){return n.workbook._V1Api.bindingClearFormats(t)}}}}(Excel||(Excel={}))