gd-sprest
Advanced tools
Comparing version 0.7.6 to 0.7.7
@@ -1,2 +0,2 @@ | ||
var $REST;!function(e){e.DefaultRequestToHostWebFl=!1,e.Library={};var t=function(){function t(e){this.targetInfo=e||{},this.requestType=0}return Object.defineProperty(t.prototype,"response",{get:function(){return this.request?this.request.response:null},enumerable:!0,configurable:!0}),t.prototype.execute=function(t){var s=this,r="boolean"==typeof t?null:t,a="boolean"==typeof t&&t;return this.base.responses.push(this),a?this.executeRequest(!a,r):(this.promise=new e.Utils.Promise(r||this.targetInfo.callback),this.executeRequest(!a,function(){s.waitForRequestsToComplete(function(){var e=s.base.responses;s.base.responses=[],s.promise.resolve.apply(s.promise,e)})}))},t.prototype.next=function(){return this.base.responses.push(this),this.executeRequest(!0,null),this.base},t.prototype.addMethods=function(t,s){var r=s.results&&s.results.length>0,a=r?s.results[0].__metadata:s.__metadata,i=a&&a.type?a.type:this.targetInfo.endpoint;i=i.split("/"),i=i[i.length-1],i=i.split("."),i=i[i.length-1].toLowerCase(),i+=r&&s.results.length>1?"s":"",(/^field/.test(i)||/field$/.test(i))&&"fieldlinks"!=i&&"fields"!=i?i="field"+(r?"s":""):/item$/.test(i)?i="listitem":/items$/.test(i)&&(i="items");var n=e.Library[i];if(n)for(var o in n){var u=n[o]?n[o]:{};if("properties"!=o)"function"==typeof u.metadataType&&(u=JSON.parse(JSON.stringify(u)),u.metadataType=n[o].metadataType(t)),t[o]=new Function("return this.executeMethod('"+o+"', "+JSON.stringify(u)+", arguments);");else for(var p=0,l=u;p<l.length;p++){var y=l[p],d=y.split("|"),T=d[0],g=d.length>1?d[1]:null,c=d.length>2?d[2]:null,h=d.length>3?d[3]:null;4==d.length?(c=c.replace(/'/g,"\\'"),t[T]=new Function("name","name = name ? '"+T+c+"'.replace(/\\[Name\\]/g, name) : null;return this.getProperty(name ? name : '"+T+"', name ? '"+h+"' : '"+g+"');")):t[T]=new Function("return this.getProperty('"+T+"', '"+g+"');")}}},t.prototype.addProperties=function(e,t){for(var s in t){var r=t[s];"__metadata"!=s&&"results"!=s&&(r&&r.__deferred&&r.__deferred.uri?e["get_"+s]=e["get_"+s]?e["get_"+s]:new Function("return this.getCollection('"+s+"', arguments);"):e[s]=r)}},t.prototype.executeMethod=function(s,r,a){var i=null==this.request&&this.parent&&this.parent.request?this.parent:this,n=null,o=this.d?this.d.__metadata:this.__metadata;o&&o.uri?(n={url:o.uri},r.inheritMetadataType&&(r.metadataType=o.type),i.updateMetadataUri(o,n)):n=Object.create(this.targetInfo);var u=new e.Utils.MethodInfo(s,r,a);n.bufferFl=r.requestType==e.Types.RequestType.GetBuffer,n.data=u.body,n.method=u.requestMethod,u.replaceEndpointFl?n.endpoint=u.url:u.url&&u.url.length>0&&(n.endpoint=(n.endpoint?n.endpoint+"/":"")+u.url);var p=new t(n);return p.base=this.base?this.base:this,p.parent=this,p.requestType=r.requestType,r.returnType?p.addMethods(p,{__metadata:{type:r.returnType}}):null,p},t.prototype.executeRequest=function(t,s){var r=this;return t?void(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo),function(){r.updateDataObject(),s?s():null})):(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo)),this.updateDataObject()||this)},t.prototype.getCollection=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e,r.callback=s&&"function"==typeof s[0]?s[0]:null;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,i},t.prototype.getProperty=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,s?this.addMethods(i,{__metadata:{type:s}}):null,i},t.prototype.updateDataCollection=function(e){var t=this;e&&(this.results=e,this.existsFl=e.length>0,1==e.length?(this.updateMetadata(e[0]),this.addProperties(this,e[0]),this.addMethods(e[0],e[0]),e[0].executeMethod=this.executeMethod,e[0].parent=this,this.d.__metadata=e[0].__metadata):setTimeout(function(){for(var e=t.results,s=0,r=e;s<r.length;s++){var a=r[s];a.executeMethod=t.executeMethod,a.parent=t,t.updateMetadata(a),t.addMethods(a,a)}},10))},t.prototype.updateDataObject=function(){if(this.request.request.status<400)if(this.requestType==e.Types.RequestType.GetBuffer)this.existsFl=null!=this.request.response;else{var t=this.request.response;t=""===t?"{}":t;var s=JSON.parse(t);this.existsFl="boolean"==typeof this.Exists?this.Exists:null==s.error,s.d&&(this.d=s.d,this.updateMetadata(s.d),this.addProperties(this,s.d),this.addMethods(this,s.d),this.updateDataCollection(s.d.results))}},t.prototype.updateMetadata=function(e){if(window._spPageContextInfo.isAppWeb){var t=window._spPageContextInfo.webAbsoluteUrl.toLowerCase(),s=e&&e.__metadata&&e.__metadata.uri?e.__metadata.uri.toLowerCase():null,r=this.targetInfo&&this.targetInfo.url?this.targetInfo.url.toLowerCase():null;null!=t&&null!=s&&null!=r&&(e.__metadata.uri=s.replace(t,r))}},t.prototype.updateMetadataUri=function(e,t){/^SP.Field/.test(e.type)||/^SP\..*Field$/.test(e.type)?t.url=t.url.replace(/AvailableFields/,"fields"):/SP.EventReceiverDefinition/.test(e.type)&&(t.url=t.url.replace(/\/EventReceiver\//,"/EventReceivers/"))},t.prototype.waitForRequestsToComplete=function(e){var t=this,s=window.setInterval(function(){for(var r=0,a=t.base.responses;r<a.length;r++){var i=a[r];if(null==i.request||!i.request.completedFl)return}window.clearInterval(s),e()},10)},t}();e.Base=t}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Custom=0]="Custom",e[e.Delete=1]="Delete",e[e.Merge=2]="Merge",e[e.OData=3]="OData",e[e.Get=10]="Get",e[e.GetWithArgs=11]="GetWithArgs",e[e.GetWithArgsInBody=12]="GetWithArgsInBody",e[e.GetWithArgsInQS=13]="GetWithArgsInQS",e[e.GetWithArgsValueOnly=14]="GetWithArgsValueOnly",e[e.GetReplace=15]="GetReplace",e[e.Post=20]="Post",e[e.PostWithArgs=21]="PostWithArgs",e[e.PostWithArgsInBody=22]="PostWithArgsInBody",e[e.PostWithArgsInQS=23]="PostWithArgsInQS",e[e.PostWithArgsValueOnly=24]="PostWithArgsValueOnly",e[e.PostReplace=25]="PostReplace",e[e.GetAppendMethodToEndPoint=30]="GetAppendMethodToEndPoint",e[e.GetBuffer=31]="GetBuffer",e[e.GetDataAsParameter=32]="GetDataAsParameter",e[e.GetDataInBody=33]="GetDataInBody",e[e.GetDataInBodyNoArgs=34]="GetDataInBodyNoArgs",e[e.PostAppendMethodToEndPoint=35]="PostAppendMethodToEndPoint",e[e.PostDataAsParameter=36]="PostDataAsParameter",e[e.PostDataInBody=37]="PostDataInBody",e[e.PostDataInBodyNoArgs=38]="PostDataInBodyNoArgs"}(e.RequestType||(e.RequestType={}));e.RequestType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Invalid=0]="Invalid",e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(e.ControlMode||(e.ControlMode={}));e.ControlMode;!function(e){e[e.Approver=2]="Approver",e[e.Author=1]="Author",e[e.Reader=0]="Reader"}(e.DraftVisibilityType||(e.DraftVisibilityType={}));e.DraftVisibilityType;!function(e){e[e.ItemAdding=1]="ItemAdding",e[e.ItemUpdating=2]="ItemUpdating",e[e.ItemDeleting=3]="ItemDeleting",e[e.ItemCheckingIn=4]="ItemCheckingIn",e[e.ItemCheckingOut=5]="ItemCheckingOut",e[e.ItemUncheckingOut=6]="ItemUncheckingOut",e[e.ItemAttachmentAdding=7]="ItemAttachmentAdding",e[e.ItemAttachmentDeleting=8]="ItemAttachmentDeleting",e[e.ItemFileMoving=9]="ItemFileMoving",e[e.ItemVersionDeleting=11]="ItemVersionDeleting",e[e.FieldAdding=101]="FieldAdding",e[e.FieldUpdating=102]="FieldUpdating",e[e.FieldDeleting=103]="FieldDeleting",e[e.ListAdding=104]="ListAdding",e[e.ListDeleting=105]="ListDeleting",e[e.SiteDeleting=201]="SiteDeleting",e[e.WebDeleting=202]="WebDeleting",e[e.WebMoving=203]="WebMoving",e[e.WebAdding=204]="WebAdding",e[e.GroupAdding=301]="GroupAdding",e[e.GroupUpdating=302]="GroupUpdating",e[e.GroupDeleting=303]="GroupDeleting",e[e.GroupUserAdding=304]="GroupUserAdding",e[e.GroupUserDeleting=305]="GroupUserDeleting",e[e.RoleDefinitionAdding=306]="RoleDefinitionAdding",e[e.RoleDefinitionUpdating=307]="RoleDefinitionUpdating",e[e.RoleDefinitionDeleting=308]="RoleDefinitionDeleting",e[e.RoleAssignmentAdding=309]="RoleAssignmentAdding",e[e.RoleAssignmentDeleting=310]="RoleAssignmentDeleting",e[e.InheritanceBreaking=311]="InheritanceBreaking",e[e.InheritanceResetting=312]="InheritanceResetting",e[e.WorkflowStarting=501]="WorkflowStarting",e[e.ItemAdded=10001]="ItemAdded",e[e.ItemUpdated=10002]="ItemUpdated",e[e.ItemDeleted=10003]="ItemDeleted",e[e.ItemCheckedIn=10004]="ItemCheckedIn",e[e.ItemCheckedOut=10005]="ItemCheckedOut",e[e.ItemUncheckedOut=10006]="ItemUncheckedOut",e[e.ItemAttachmentAdded=10007]="ItemAttachmentAdded",e[e.ItemAttachmentDeleted=10008]="ItemAttachmentDeleted",e[e.ItemFileMoved=10009]="ItemFileMoved",e[e.ItemFileConverted=10010]="ItemFileConverted",e[e.ItemVersionDeleted=10011]="ItemVersionDeleted",e[e.FieldAdded=10101]="FieldAdded",e[e.FieldUpdated=10102]="FieldUpdated",e[e.FieldDeleted=10103]="FieldDeleted",e[e.ListAdded=10104]="ListAdded",e[e.ListDeleted=10105]="ListDeleted",e[e.SiteDeleted=10201]="SiteDeleted",e[e.WebDeleted=10202]="WebDeleted",e[e.WebMoved=10203]="WebMoved",e[e.WebProvisioned=10204]="WebProvisioned",e[e.GroupAdded=10301]="GroupAdded",e[e.GroupUpdated=10302]="GroupUpdated",e[e.GroupDeleted=10303]="GroupDeleted",e[e.GroupUserAdded=10304]="GroupUserAdded",e[e.GroupUserDeleted=10305]="GroupUserDeleted",e[e.RoleDefinitionAdded=10306]="RoleDefinitionAdded",e[e.RoleDefinitionUpdated=10307]="RoleDefinitionUpdated",e[e.RoleDefinitionDeleted=10308]="RoleDefinitionDeleted",e[e.RoleAssignmentAdded=10309]="RoleAssignmentAdded",e[e.RoleAssignmentDeleted=10310]="RoleAssignmentDeleted",e[e.InheritanceBroken=10311]="InheritanceBroken",e[e.InheritanceReset=10312]="InheritanceReset",e[e.WorkflowStarted=10501]="WorkflowStarted",e[e.WorkflowPostponed=10502]="WorkflowPostponed",e[e.WorkflowCompleted=10503]="WorkflowCompleted",e[e.EntityInstanceAdded=10601]="EntityInstanceAdded",e[e.EntityInstanceUpdated=10602]="EntityInstanceUpdated",e[e.EntityInstanceDeleted=10603]="EntityInstanceDeleted",e[e.AppInstalled=10701]="AppInstalled",e[e.AppUpgraded=10702]="AppUpgraded",e[e.AppUninstalling=10703]="AppUninstalling",e[e.EmailReceived=2e4]="EmailReceived",e[e.ContextEvent=32766]="ContextEvent"}(e.EventReceiverType||(e.EventReceiverType={}));e.EventReceiverType;!function(e){e[e.Asynchronous=2]="Asynchronous",e[e.Synchronization=1]="Synchronization"}(e.EventReceiverSynchronizationType||(e.EventReceiverSynchronizationType={}));e.EventReceiverSynchronizationType;!function(e){e[e.AllDayEvent=29]="AllDayEvent",e[e.Attachments=19]="Attachments",e[e.Boolean=8]="Boolean",e[e.Calculated=17]="Calculated",e[e.Choice=6]="Choice",e[e.Computed=12]="Computed",e[e.ContentTypeId=25]="ContentTypeId",e[e.Counter=5]="Counter",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.Currency=10]="Currency",e[e.DateTime=4]="DateTime",e[e.Error=24]="Error",e[e.File=18]="File",e[e.Geolocation=31]="Geolocation",e[e.GridChoice=16]="GridChoice",e[e.Guid=14]="Guid",e[e.Integer=1]="Integer",e[e.Invalid=0]="Invalid",e[e.Lookup=7]="Lookup",e[e.MaxItems=31]="MaxItems",e[e.ModStat=23]="ModStat",e[e.MultiChoice=15]="MultiChoice",e[e.Note=3]="Note",e[e.Number=9]="Number",e[e.PageSeparator=26]="PageSeparator",e[e.Recurrence=21]="Recurrence",e[e.Text=2]="Text",e[e.ThreadIndex=27]="ThreadIndex",e[e.Threading=13]="Threading",e[e.URL=11]="URL",e[e.User=20]="User",e[e.WorkflowEventType=30]="WorkflowEventType",e[e.WorkflowStatus=28]="WorkflowStatus"}(e.FieldType||(e.FieldType={}));e.FieldType;!function(e){e[e.FormPage=2]="FormPage",e[e.StandardPage=0]="StandardPage",e[e.WikiPage=1]="WikiPage"}(e.FileTemplateType||(e.FileTemplateType={}));e.FileTemplateType;!function(e){e[e.AccessRequest=160]="AccessRequest",e[e.AdminTasks=1200]="AdminTasks",e[e.Agenda=201]="Agenda",e[e.AppDataCatalog=125]="AppDataCatalog",e[e.Announcements=104]="Announcements",e[e.CallTrack=404]="CallTrack",e[e.Categories=303]="Categories",e[e.Circulation=405]="Circulation",e[e.Comments=302]="Comments",e[e.Contacts=105]="Contacts",e[e.CustomGrid=120]="CustomGrid",e[e.DataConnectionLibrary=130]="DataConnectionLibrary",e[e.DataSources=110]="DataSources",e[e.Decision=204]="Decision",e[e.DesignCatalog=124]="DesignCatalog",e[e.DeveloperSiteDraftApps=1230]="DeveloperSiteDraftApps",e[e.DiscussionBoard=108]="DiscussionBoard",e[e.DocumentLibrary=101]="DocumentLibrary",e[e.Events=106]="Events",e[e.ExternalList=600]="ExternalList",e[e.Facility=402]="Facility",e[e.GanttTasks=150]="GanttTasks",e[e.GenericList=100]="GenericList",e[e.HealthReports=1221]="HealthReports",e[e.HealthRules=1220]="HealthRules",e[e.HelpLibrary=151]="HelpLibrary",e[e.Holidays=421]="Holidays",e[e.HomePageLibrary=212]="HomePageLibrary",e[e.IMEDic=499]="IMEDic",e[e.IssueTracking=1100]="IssueTracking",e[e.Links=103]="Links",e[e.ListTemplateCatalog=114]="ListTemplateCatalog",e[e.MasterPageCatalog=116]="MasterPageCatalog",e[e.MaintenanceLogs=175]="MaintenanceLogs",e[e.MeetingObjective=207]="MeetingObjective",e[e.Meetings=200]="Meetings",e[e.MeetingUser=202]="MeetingUser",e[e.MySiteDocumentLibrary=700]="MySiteDocumentLibrary",e[e.Posts=301]="Posts",e[e.NoCodePublic=122]="NoCodePublic",e[e.NoCodeWorkflows=117]="NoCodeWorkflows",e[e.PictureLibrary=109]="PictureLibrary",e[e.SolutionCatalog=121]="SolutionCatalog",e[e.Survey=102]="Survey",e[e.Tasks=107]="Tasks",e[e.TasksWithTimelineAndHierarchy=171]="TasksWithTimelineAndHierarchy",e[e.TextBox=210]="TextBox",e[e.ThemeCatalog=123]="ThemeCatalog",e[e.ThingsToBring=211]="ThingsToBring",e[e.Timecard=420]="Timecard",e[e.UserInformation=112]="UserInformation",e[e.WebPageLibrary=119]="WebPageLibrary",e[e.WebPartCatalog=113]="WebPartCatalog",e[e.WebTemplateCatalog=111]="WebTemplateCatalog",e[e.Whereabouts=403]="Whereabouts",e[e.WorkflowHistory=140]="WorkflowHistory",e[e.WorkflowProcess=118]="WorkflowProcess",e[e.XMLForm=115]="XMLForm"}(e.ListTemplateType||(e.ListTemplateType={}));e.ListTemplateType;!function(e){e[e.DefaultView=0]="DefaultView",e[e.DialogView=2]="DialogView",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.Invalid=-1]="Invalid",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.NormalView=1]="NormalView",e[e.Page_MAXITEMS=11]="Page_MAXITEMS",e[e.SolutionForm=10]="SolutionForm",e[e.View=3]="View"}(e.PageType||(e.PageType={}));e.PageType;!function(e){e[e.Administrator=5]="Administrator",e[e.Contributor=3]="Contributor",e[e.Editor=6]="Editor",e[e.Guest=1]="Guest",e[e.None=0]="None",e[e.Reader=2]="Reader",e[e.WebDesigner=4]="WebDesigner"}(e.RoleType||(e.RoleType={}));e.RoleType;!function(e){e[e.None=0]="None",e[e.List=1]="List",e[e.ContentType=2]="ContentType",e[e.ProgId=3]="ProgId",e[e.FileType=4]="FileType"}(e.UserCustomActionRegistrationType||(e.UserCustomActionRegistrationType={}));e.UserCustomActionRegistrationType;!function(e){e[e.Calendar=524288]="Calendar",e[e.Chart=131072]="Chart",e[e.Gantt=67108864]="Gantt",e[e.Grid=2048]="Grid",e[e.Html=1]="Html",e[e.Recurrence=8193]="Recurrence"}(e.ViewType||(e.ViewType={}));e.ViewType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t=function(){function t(t){this.promise=new e.Utils.Promise(t),this.loadDependencies()}return Object.defineProperty(t.prototype,"MAX_WAIT",{get:function(){return 5},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"SCRIPTS",{get:function(){return["MicrosoftAjax.js","init.js","sp.runtime.js","sp.js","sp.core.js","core.js"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageContextExistsFl",{get:function(){return window.hasOwnProperty("_spPageContextInfo")},enumerable:!0,configurable:!0}),t.prototype.loadDependencies=function(){if(this.pageContextExistsFl)this.promise.resolve();else{for(var e in this.SCRIPTS){var t=document.createElement("script");t.setAttribute("src","/_layouts/15/"+e),t.setAttribute("type","text/javascript"),document.head.appendChild(t)}this.waitForPageContext()}},t.prototype.waitForPageContext=function(){var e=0,t=window.setInterval(function(){(this.pageContextExists()||++e>=this.MAX_WAIT)&&(window.clearInterval(t),this.promise.resolve())},10)},t}();e.Dependencies=t}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function s(e,t,s){this.methodInfo=t,this.methodInfo.argValues=s,this.methodInfo.name="string"==typeof this.methodInfo.name?this.methodInfo.name:e,this.generateParams(),this.methodUrl=this.generateUrl()}return Object.defineProperty(s.prototype,"body",{get:function(){return this.methodData},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replaceEndpointFl",{get:function(){return!!this.methodInfo.replaceEndpointFl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"requestMethod",{get:function(){if("string"==typeof this.methodInfo.requestMethod)return this.methodInfo.requestMethod;switch(this.methodInfo.requestType){case e.Types.RequestType.Delete:case e.Types.RequestType.Post:case e.Types.RequestType.PostWithArgs:case e.Types.RequestType.PostWithArgsInBody:case e.Types.RequestType.PostWithArgsInQS:case e.Types.RequestType.PostWithArgsValueOnly:case e.Types.RequestType.PostReplace:return"POST";default:return"GET"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this.methodUrl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInBody",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInBody||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInBody},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInQS",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInQS||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInQS},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isTemplate",{get:function(){return!!this.methodInfo.data},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replace",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetReplace||this.methodInfo.requestType==e.Types.RequestType.PostReplace},enumerable:!0,configurable:!0}),s.prototype.generateParams=function(){var e={};if(null!=this.methodInfo.argValues){if(this.methodInfo.argNames)for(var t=0;t<this.methodInfo.argNames.length&&t<this.methodInfo.argValues.length;t++){var s=this.methodInfo.argNames[t],r=this.methodInfo.argValues[t];switch(typeof this.methodInfo.argValues[t]){case"boolean":e[s]=this.methodInfo.argValues[t]?"true":"false";break;case"number":e[s]=this.methodInfo.argValues[t];break;default:e[s]=r}}var a=!0;for(var i in e){a=!1;break}if(this.methodParams=a?null:e,this.methodParams&&this.isTemplate){"string"!=typeof this.methodInfo.data&&(this.methodInfo.data=JSON.stringify(this.methodInfo.data));for(var n in this.methodParams)this.methodInfo.data=this.methodInfo.data.replace("[["+n+"]]",this.methodParams[n].replace(/"/g,'\\"').replace(/\n/g,""));this.methodData=JSON.parse(this.methodInfo.data)}this.methodInfo.argValues&&this.methodInfo.argValues.length>0&&(null==this.methodInfo.argNames?this.methodData=this.methodInfo.argValues[0]:this.methodInfo.argValues.length>this.methodInfo.argNames.length&&(this.methodData=this.methodInfo.argValues[this.methodInfo.argNames.length])),this.methodInfo.metadataType&&(this.methodInfo.argNames?(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata={type:this.methodInfo.metadataType}:(this.methodData||this.methodParams).__metadata={type:this.methodInfo.metadataType})}},s.prototype.generateUrl=function(){var s=this.methodInfo.name;if(this.methodInfo.requestType==e.Types.RequestType.Delete&&(s="deleteObject"),this.passDataInBody){var r=this.methodData||this.methodParams;this.methodData=JSON.stringify(r)}if(this.passDataInQS){var r=this.methodParams||this.methodData;s+="(@v)?@v="+("string"==typeof r?"'"+encodeURIComponent(r)+"'":JSON.stringify(r))}if(this.replace)for(var a in this.methodParams)s=s.replace("[["+a+"]]",encodeURIComponent(this.methodParams[a]));else if(this.methodInfo.requestType==e.Types.RequestType.OData){var i=new t.OData(this.methodParams.oData);s="?"+i.QueryString}else if(!this.passDataInBody&&!this.passDataInQS){var n="",r=this.methodParams||this.methodData;if(r){r=r&&"object"==typeof r?r:{value:r};for(var o in r){var u=r[o];switch(u="string"==typeof u?"'"+u+"'":u,this.methodInfo.requestType){case e.Types.RequestType.GetWithArgsValueOnly:case e.Types.RequestType.PostWithArgsValueOnly:n+=u+", ";break;default:n+=o+"="+u+", "}}}s+=n.length>0?"("+n.replace(/, $/,"")+")":""}return s},s}();t.MethodInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this._expand=e&&e.Expand?e.Expand:[],this._filter=e&&e.Filter?e.Filter:null,this._orderBy=e&&e.OrderBy?e.OrderBy:[],this._select=e&&e.Select?e.Select:[],this._skip=e&&e.Skip?e.Skip:null,this._top=e&&e.Top?e.Top:null}return Object.defineProperty(e.prototype,"Expand",{get:function(){return this._expand},set:function(e){this._expand=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OrderBy",{get:function(){return this._orderBy},set:function(e){this._orderBy=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"QueryString",{get:function(){var e="",t=[];t.push(this.getQSValue("$select",this._select)),t.push(this.getQSValue("$orderby",this._orderBy)),this._top?t.push("$top="+this._top):null,this._skip?t.push("$skip="+this._skip):null,this._filter?t.push("$filter="+this._filter):null,t.push(this.getQSValue("$expand",this._expand));for(var s=0,r=t;s<r.length;s++){var a=r[s];a&&""!=a&&(e+=(""==e?"":"&")+a)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Select",{get:function(){return this._select},set:function(e){this._select=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Skip",{get:function(){return this._skip},set:function(e){this._skip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Top",{get:function(){return this._top},set:function(e){this._top=e},enumerable:!0,configurable:!0}),e.prototype.getQSValue=function(e,t){return t.length>0?e+"="+t.join(","):""},e}();e.OData=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this.callback=e,this.resolvedFl=!1}return e.prototype.done=function(e){this.callback=e||this.callback,this.resolvedFl&&this.executeMethod()},e.prototype.resolve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];this.args=e,this.resolvedFl=!0,this.executeMethod()},e.prototype.executeMethod=function(){this.callback&&"function"==typeof this.callback&&this.callback.apply(this,this.args)},e}();e.Promise=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function t(t,s,r){this.asyncFl=t,this.promise=new e.Promise(r||s.callback),this.targetInfo=s,this.xhr=this.createXHR(),this.execute()}return Object.defineProperty(t.prototype,"completedFl",{get:function(){return!!this.xhr&&4==this.xhr.readyState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"response",{get:function(){return this.xhr?this.xhr.response:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"request",{get:function(){return this.xhr?this.xhr:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestData",{get:function(){return this.targetInfo.requestData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestUrl",{get:function(){return this.xhr?this.xhr.responseURL:null},enumerable:!0,configurable:!0}),t.prototype.createXHR=function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("This browser does not support xml http requests.")},t.prototype.defaultHeaders=function(){var e=document.querySelector("#__REQUESTDIGEST");if(e=e?e.value:"",this.xhr.setRequestHeader("Accept","application/json;odata=verbose"),this.xhr.setRequestHeader("Content-Type","application/json;odata=verbose"),this.xhr.setRequestHeader("X-HTTP-Method",this.targetInfo.requestMethod),this.xhr.setRequestHeader("X-RequestDigest",e),"DELETE"!=this.targetInfo.requestMethod&&"MERGE"!=this.targetInfo.requestMethod||this.xhr.setRequestHeader("IF-MATCH","*"),this.targetInfo.requestHeaders)for(var t in this.targetInfo.requestHeaders)this.xhr.setRequestHeader(t,this.targetInfo.requestHeaders[t])},t.prototype.execute=function(){var e=this;return null==this.xhr?null:(this.xhr.open("GET"==this.targetInfo.requestMethod?"GET":"POST",this.targetInfo.requestUrl,this.asyncFl),this.asyncFl&&(this.xhr.onreadystatechange=function(){4==e.xhr.readyState&&e.promise.resolve(e)}),this.targetInfo.bufferFl&&this.asyncFl?this.xhr.responseType="arraybuffer":(this.defaultHeaders(),this.targetInfo.requestData&&"string"!=typeof this.targetInfo.requestData&&(this.targetInfo.requestData=this.targetInfo.requestData.byteLength?this.targetInfo.requestData:JSON.stringify(this.targetInfo.requestData))),void(this.targetInfo.bufferFl||null==this.targetInfo.requestData?this.xhr.send():this.xhr.send(this.targetInfo.requestData)))},t}();e.Request=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function t(e){this.targetInfo=e||{},this.requestData=this.targetInfo.data,this.requestMethod=this.targetInfo.method?this.targetInfo.method:"GET",this.setRequestUrl()}return Object.defineProperty(t.prototype,"bufferFl",{get:function(){return this.targetInfo.bufferFl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callback",{get:function(){return this.targetInfo.callback},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return window._spPageContextInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAppWeb",{get:function(){return this.context.isAppWeb},enumerable:!0,configurable:!0}),t.prototype.getDomainUrl=function(){var e=document.location.href;return this.isAppWeb&&(e=this.getQueryStringValue("SPHostUrl")+""),e=e.split("/"),e&&e.length>=2&&(e=e[0]+"//"+e[2]),e},t.prototype.getQueryStringValue=function(e){var t=document.location.href.split("?");t=t.length>1?t[1]:t[0];for(var s=t.split("&"),r=0;r<s.length;r++){var a=s[r].split("=");if(1!=a.length&&decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null},t.prototype.setRequestUrl=function(){var t=this.getQueryStringValue("SPHostUrl"),s="{{Url}}/_api/{{EndPoint}}{{TargetUrl}}";if(e.DefaultRequestToHostWebFl&&this.isAppWeb&&null==this.targetInfo.url&&(this.targetInfo.url=t),null==this.targetInfo.url)this.targetInfo.url=this.context[0==this.targetInfo.defaultToWebFl?"siteAbsoluteUrl":"webAbsoluteUrl"];else if(/\/_api\//.test(this.targetInfo.url)){var r=this.targetInfo.url.split("/_api/");return void(this.isAppWeb&&r[0]!=this.context.webAbsoluteUrl?this.requestUrl=this.context.webAbsoluteUrl+"/_api/SP.AppContextSite(@target)/"+r[1]+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:"")+"?@target='"+r[0]+"'":this.requestUrl=this.targetInfo.url+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:""))}if(0!=this.targetInfo.url.indexOf("http")&&(this.targetInfo.url=this.getDomainUrl()+this.targetInfo.url),this.isAppWeb&&this.targetInfo.url!=this.context.webAbsoluteUrl){var a=this.targetInfo.endpoint+(this.targetInfo.endpoint.indexOf("?")>0?"&":"?");this.requestUrl=s.replace(/{{Url}}/g,this.context.webAbsoluteUrl).replace(/{{EndPoint}}/g,"SP.AppContextSite(@target)/"+a).replace(/{{TargetUrl}}/g,"@target='"+this.targetInfo.url+"'")}else this.requestUrl=s.replace(/{{Url}}/g,this.targetInfo.url).replace(/{{EndPoint}}/g,this.targetInfo.endpoint).replace(/{{TargetUrl}}/g,"")},t}();t.TargetInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){e.Library.attachmentfiles={add:{argNames:["name"],name:"",requestType:e.Types.RequestType.PostWithArgs},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttype={properties:["FieldLinks|fieldlinks|('[Name]')|fieldlink","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","WorkflowAssociations"],delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.ContentType",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttypes={add:{metadataType:"SP.ContentType",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addAvailableContentType:{argNames:["contentTypeId"],requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"contenttype"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(t){function s(e){t.call(this,e),this.defaultToWebFl=!0,this.targetInfo.endpoint="SP.Utilities.Utility.SendEmail"}return __extends(s,t),s.prototype.send=function(t){t.To&&("string"==typeof t.To?t.To={results:[t.To]}:t.To={results:t.To}),this.executeMethod("send",{argNames:["properties"],name:"",metadataType:"SP.Utilities.EmailProperties",requestType:e.Types.RequestType.PostWithArgsInBody},[t])},s}(e.Base);e.Email=t}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinition={delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.EventReceiverDefinition",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinitions={add:{metadataType:"SP.EventReceiverDefinition",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"eventreceiver"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.field={delete:{requestType:e.Types.RequestType.Delete},setShowInDisplayForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInEditForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInNewForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.fieldlinks={add:{argNames:["data"],metadataType:"SP.FieldLink",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"fieldlink"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.fields={add:{metadataType:"SP.Field",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addField:{argNames:["parameters"],metadataType:"SP.FieldCreationInformation",name:"addField",requestType:e.Types.RequestType.PostWithArgsInBody},addDependentLookupField:{argNames:["displayname","primarylookupfieldid","showfield"],requestType:e.Types.RequestType.PostWithArgs},createFieldAsXml:{argNames:["schemaXml"],requestType:e.Types.RequestType.PostWithArgsInBody,data:{parameters:{__metadata:{type:"SP.XmlSchemaFieldCreationInformation" | ||
var $REST;!function(e){e.DefaultRequestToHostWebFl=!1,e.Library={};var t=function(){function t(e){this.targetInfo=e||{},this.requestType=0}return Object.defineProperty(t.prototype,"response",{get:function(){return this.request?this.request.response:null},enumerable:!0,configurable:!0}),t.prototype.execute=function(t){var s=this,r="boolean"==typeof t?null:t,a="boolean"==typeof t&&t;return this.base.responses.push(this),a?this.executeRequest(!a,r):(this.promise=new e.Utils.Promise(r||this.targetInfo.callback),this.executeRequest(!a,function(){s.waitForRequestsToComplete(function(){var e=s.base.responses;s.base.responses=[],s.promise.resolve.apply(s.promise,e)})}))},t.prototype.next=function(e){return this.base.responses.push(this),this.executeRequest(!0,e),this.base},t.prototype.addMethods=function(t,s){var r=s.results&&s.results.length>0,a=r?s.results[0].__metadata:s.__metadata,i=a&&a.type?a.type:this.targetInfo.endpoint;i=i.split("/"),i=i[i.length-1],i=i.split("."),i=i[i.length-1].toLowerCase(),i+=r&&s.results.length>1?"s":"",(/^field/.test(i)||/field$/.test(i))&&"fieldlinks"!=i&&"fields"!=i?i="field"+(r?"s":""):/item$/.test(i)?i="listitem":/items$/.test(i)&&(i="items");var n=e.Library[i];if(n)for(var o in n){var u=n[o]?n[o]:{};if("properties"!=o)"function"==typeof u.metadataType&&(u=JSON.parse(JSON.stringify(u)),u.metadataType=n[o].metadataType(t)),t[o]=new Function("return this.executeMethod('"+o+"', "+JSON.stringify(u)+", arguments);");else for(var p=0,l=u;p<l.length;p++){var y=l[p],d=y.split("|"),T=d[0],g=d.length>1?d[1]:null,c=d.length>2?d[2]:null,h=d.length>3?d[3]:null;4==d.length?(c=c.replace(/'/g,"\\'"),t[T]=new Function("name","name = name ? '"+T+c+"'.replace(/\\[Name\\]/g, name) : null;return this.getProperty(name ? name : '"+T+"', name ? '"+h+"' : '"+g+"');")):t[T]=new Function("return this.getProperty('"+T+"', '"+g+"');")}}},t.prototype.addProperties=function(e,t){for(var s in t){var r=t[s];"__metadata"!=s&&"results"!=s&&(r&&r.__deferred&&r.__deferred.uri?e["get_"+s]=e["get_"+s]?e["get_"+s]:new Function("return this.getCollection('"+s+"', arguments);"):e[s]=r)}},t.prototype.executeMethod=function(s,r,a){var i=null==this.request&&this.parent&&this.parent.request?this.parent:this,n=null,o=this.d?this.d.__metadata:this.__metadata;o&&o.uri?(n={url:o.uri},r.inheritMetadataType&&(r.metadataType=o.type),i.updateMetadataUri(o,n)):n=Object.create(this.targetInfo);var u=new e.Utils.MethodInfo(s,r,a);n.bufferFl=r.requestType==e.Types.RequestType.GetBuffer,n.data=u.body,n.method=u.requestMethod,u.replaceEndpointFl?n.endpoint=u.url:u.url&&u.url.length>0&&(n.endpoint=(n.endpoint?n.endpoint+"/":"")+u.url);var p=new t(n);return p.base=this.base?this.base:this,p.parent=this,p.requestType=r.requestType,r.returnType?p.addMethods(p,{__metadata:{type:r.returnType}}):null,p},t.prototype.executeRequest=function(t,s){var r=this;return t?void(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo),function(){r.updateDataObject(),s?s(r):null})):(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo)),this.updateDataObject()||this)},t.prototype.getCollection=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e,r.callback=s&&"function"==typeof s[0]?s[0]:null;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,i},t.prototype.getProperty=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,s?this.addMethods(i,{__metadata:{type:s}}):null,i},t.prototype.updateDataCollection=function(e){var t=this;e&&(this.results=e,this.existsFl=e.length>0,1==e.length?(this.updateMetadata(e[0]),this.addProperties(this,e[0]),this.addMethods(e[0],e[0]),e[0].executeMethod=this.executeMethod,e[0].parent=this,this.d.__metadata=e[0].__metadata):setTimeout(function(){for(var e=t.results,s=0,r=e;s<r.length;s++){var a=r[s];a.executeMethod=t.executeMethod,a.parent=t,t.updateMetadata(a),t.addMethods(a,a)}},10))},t.prototype.updateDataObject=function(){if(this.request.request.status<400)if(this.requestType==e.Types.RequestType.GetBuffer)this.existsFl=null!=this.request.response;else{var t=this.request.response;t=""===t?"{}":t;var s=JSON.parse(t);this.existsFl="boolean"==typeof this.Exists?this.Exists:null==s.error,s.d&&(this.d=s.d,this.updateMetadata(s.d),this.addProperties(this,s.d),this.addMethods(this,s.d),this.updateDataCollection(s.d.results))}},t.prototype.updateMetadata=function(e){if(window._spPageContextInfo.isAppWeb){var t=window._spPageContextInfo.webAbsoluteUrl.toLowerCase(),s=e&&e.__metadata&&e.__metadata.uri?e.__metadata.uri.toLowerCase():null,r=this.targetInfo&&this.targetInfo.url?this.targetInfo.url.toLowerCase():null;null!=t&&null!=s&&null!=r&&(e.__metadata.uri=s.replace(t,r))}},t.prototype.updateMetadataUri=function(e,t){/^SP.Field/.test(e.type)||/^SP\..*Field$/.test(e.type)?t.url=t.url.replace(/AvailableFields/,"fields"):/SP.EventReceiverDefinition/.test(e.type)&&(t.url=t.url.replace(/\/EventReceiver\//,"/EventReceivers/"))},t.prototype.waitForRequestsToComplete=function(e){var t=this,s=window.setInterval(function(){for(var r=0,a=t.base.responses;r<a.length;r++){var i=a[r];if(null==i.request||!i.request.completedFl)return}window.clearInterval(s),e()},10)},t}();e.Base=t}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Custom=0]="Custom",e[e.Delete=1]="Delete",e[e.Merge=2]="Merge",e[e.OData=3]="OData",e[e.Get=10]="Get",e[e.GetWithArgs=11]="GetWithArgs",e[e.GetWithArgsInBody=12]="GetWithArgsInBody",e[e.GetWithArgsInQS=13]="GetWithArgsInQS",e[e.GetWithArgsValueOnly=14]="GetWithArgsValueOnly",e[e.GetReplace=15]="GetReplace",e[e.Post=20]="Post",e[e.PostWithArgs=21]="PostWithArgs",e[e.PostWithArgsInBody=22]="PostWithArgsInBody",e[e.PostWithArgsInQS=23]="PostWithArgsInQS",e[e.PostWithArgsValueOnly=24]="PostWithArgsValueOnly",e[e.PostReplace=25]="PostReplace",e[e.GetAppendMethodToEndPoint=30]="GetAppendMethodToEndPoint",e[e.GetBuffer=31]="GetBuffer",e[e.GetDataAsParameter=32]="GetDataAsParameter",e[e.GetDataInBody=33]="GetDataInBody",e[e.GetDataInBodyNoArgs=34]="GetDataInBodyNoArgs",e[e.PostAppendMethodToEndPoint=35]="PostAppendMethodToEndPoint",e[e.PostDataAsParameter=36]="PostDataAsParameter",e[e.PostDataInBody=37]="PostDataInBody",e[e.PostDataInBodyNoArgs=38]="PostDataInBodyNoArgs"}(e.RequestType||(e.RequestType={}));e.RequestType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Invalid=0]="Invalid",e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(e.ControlMode||(e.ControlMode={}));e.ControlMode;!function(e){e[e.Approver=2]="Approver",e[e.Author=1]="Author",e[e.Reader=0]="Reader"}(e.DraftVisibilityType||(e.DraftVisibilityType={}));e.DraftVisibilityType;!function(e){e[e.ItemAdding=1]="ItemAdding",e[e.ItemUpdating=2]="ItemUpdating",e[e.ItemDeleting=3]="ItemDeleting",e[e.ItemCheckingIn=4]="ItemCheckingIn",e[e.ItemCheckingOut=5]="ItemCheckingOut",e[e.ItemUncheckingOut=6]="ItemUncheckingOut",e[e.ItemAttachmentAdding=7]="ItemAttachmentAdding",e[e.ItemAttachmentDeleting=8]="ItemAttachmentDeleting",e[e.ItemFileMoving=9]="ItemFileMoving",e[e.ItemVersionDeleting=11]="ItemVersionDeleting",e[e.FieldAdding=101]="FieldAdding",e[e.FieldUpdating=102]="FieldUpdating",e[e.FieldDeleting=103]="FieldDeleting",e[e.ListAdding=104]="ListAdding",e[e.ListDeleting=105]="ListDeleting",e[e.SiteDeleting=201]="SiteDeleting",e[e.WebDeleting=202]="WebDeleting",e[e.WebMoving=203]="WebMoving",e[e.WebAdding=204]="WebAdding",e[e.GroupAdding=301]="GroupAdding",e[e.GroupUpdating=302]="GroupUpdating",e[e.GroupDeleting=303]="GroupDeleting",e[e.GroupUserAdding=304]="GroupUserAdding",e[e.GroupUserDeleting=305]="GroupUserDeleting",e[e.RoleDefinitionAdding=306]="RoleDefinitionAdding",e[e.RoleDefinitionUpdating=307]="RoleDefinitionUpdating",e[e.RoleDefinitionDeleting=308]="RoleDefinitionDeleting",e[e.RoleAssignmentAdding=309]="RoleAssignmentAdding",e[e.RoleAssignmentDeleting=310]="RoleAssignmentDeleting",e[e.InheritanceBreaking=311]="InheritanceBreaking",e[e.InheritanceResetting=312]="InheritanceResetting",e[e.WorkflowStarting=501]="WorkflowStarting",e[e.ItemAdded=10001]="ItemAdded",e[e.ItemUpdated=10002]="ItemUpdated",e[e.ItemDeleted=10003]="ItemDeleted",e[e.ItemCheckedIn=10004]="ItemCheckedIn",e[e.ItemCheckedOut=10005]="ItemCheckedOut",e[e.ItemUncheckedOut=10006]="ItemUncheckedOut",e[e.ItemAttachmentAdded=10007]="ItemAttachmentAdded",e[e.ItemAttachmentDeleted=10008]="ItemAttachmentDeleted",e[e.ItemFileMoved=10009]="ItemFileMoved",e[e.ItemFileConverted=10010]="ItemFileConverted",e[e.ItemVersionDeleted=10011]="ItemVersionDeleted",e[e.FieldAdded=10101]="FieldAdded",e[e.FieldUpdated=10102]="FieldUpdated",e[e.FieldDeleted=10103]="FieldDeleted",e[e.ListAdded=10104]="ListAdded",e[e.ListDeleted=10105]="ListDeleted",e[e.SiteDeleted=10201]="SiteDeleted",e[e.WebDeleted=10202]="WebDeleted",e[e.WebMoved=10203]="WebMoved",e[e.WebProvisioned=10204]="WebProvisioned",e[e.GroupAdded=10301]="GroupAdded",e[e.GroupUpdated=10302]="GroupUpdated",e[e.GroupDeleted=10303]="GroupDeleted",e[e.GroupUserAdded=10304]="GroupUserAdded",e[e.GroupUserDeleted=10305]="GroupUserDeleted",e[e.RoleDefinitionAdded=10306]="RoleDefinitionAdded",e[e.RoleDefinitionUpdated=10307]="RoleDefinitionUpdated",e[e.RoleDefinitionDeleted=10308]="RoleDefinitionDeleted",e[e.RoleAssignmentAdded=10309]="RoleAssignmentAdded",e[e.RoleAssignmentDeleted=10310]="RoleAssignmentDeleted",e[e.InheritanceBroken=10311]="InheritanceBroken",e[e.InheritanceReset=10312]="InheritanceReset",e[e.WorkflowStarted=10501]="WorkflowStarted",e[e.WorkflowPostponed=10502]="WorkflowPostponed",e[e.WorkflowCompleted=10503]="WorkflowCompleted",e[e.EntityInstanceAdded=10601]="EntityInstanceAdded",e[e.EntityInstanceUpdated=10602]="EntityInstanceUpdated",e[e.EntityInstanceDeleted=10603]="EntityInstanceDeleted",e[e.AppInstalled=10701]="AppInstalled",e[e.AppUpgraded=10702]="AppUpgraded",e[e.AppUninstalling=10703]="AppUninstalling",e[e.EmailReceived=2e4]="EmailReceived",e[e.ContextEvent=32766]="ContextEvent"}(e.EventReceiverType||(e.EventReceiverType={}));e.EventReceiverType;!function(e){e[e.Asynchronous=2]="Asynchronous",e[e.Synchronization=1]="Synchronization"}(e.EventReceiverSynchronizationType||(e.EventReceiverSynchronizationType={}));e.EventReceiverSynchronizationType;!function(e){e[e.AllDayEvent=29]="AllDayEvent",e[e.Attachments=19]="Attachments",e[e.Boolean=8]="Boolean",e[e.Calculated=17]="Calculated",e[e.Choice=6]="Choice",e[e.Computed=12]="Computed",e[e.ContentTypeId=25]="ContentTypeId",e[e.Counter=5]="Counter",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.Currency=10]="Currency",e[e.DateTime=4]="DateTime",e[e.Error=24]="Error",e[e.File=18]="File",e[e.Geolocation=31]="Geolocation",e[e.GridChoice=16]="GridChoice",e[e.Guid=14]="Guid",e[e.Integer=1]="Integer",e[e.Invalid=0]="Invalid",e[e.Lookup=7]="Lookup",e[e.MaxItems=31]="MaxItems",e[e.ModStat=23]="ModStat",e[e.MultiChoice=15]="MultiChoice",e[e.Note=3]="Note",e[e.Number=9]="Number",e[e.PageSeparator=26]="PageSeparator",e[e.Recurrence=21]="Recurrence",e[e.Text=2]="Text",e[e.ThreadIndex=27]="ThreadIndex",e[e.Threading=13]="Threading",e[e.URL=11]="URL",e[e.User=20]="User",e[e.WorkflowEventType=30]="WorkflowEventType",e[e.WorkflowStatus=28]="WorkflowStatus"}(e.FieldType||(e.FieldType={}));e.FieldType;!function(e){e[e.FormPage=2]="FormPage",e[e.StandardPage=0]="StandardPage",e[e.WikiPage=1]="WikiPage"}(e.FileTemplateType||(e.FileTemplateType={}));e.FileTemplateType;!function(e){e[e.AccessRequest=160]="AccessRequest",e[e.AdminTasks=1200]="AdminTasks",e[e.Agenda=201]="Agenda",e[e.AppDataCatalog=125]="AppDataCatalog",e[e.Announcements=104]="Announcements",e[e.CallTrack=404]="CallTrack",e[e.Categories=303]="Categories",e[e.Circulation=405]="Circulation",e[e.Comments=302]="Comments",e[e.Contacts=105]="Contacts",e[e.CustomGrid=120]="CustomGrid",e[e.DataConnectionLibrary=130]="DataConnectionLibrary",e[e.DataSources=110]="DataSources",e[e.Decision=204]="Decision",e[e.DesignCatalog=124]="DesignCatalog",e[e.DeveloperSiteDraftApps=1230]="DeveloperSiteDraftApps",e[e.DiscussionBoard=108]="DiscussionBoard",e[e.DocumentLibrary=101]="DocumentLibrary",e[e.Events=106]="Events",e[e.ExternalList=600]="ExternalList",e[e.Facility=402]="Facility",e[e.GanttTasks=150]="GanttTasks",e[e.GenericList=100]="GenericList",e[e.HealthReports=1221]="HealthReports",e[e.HealthRules=1220]="HealthRules",e[e.HelpLibrary=151]="HelpLibrary",e[e.Holidays=421]="Holidays",e[e.HomePageLibrary=212]="HomePageLibrary",e[e.IMEDic=499]="IMEDic",e[e.IssueTracking=1100]="IssueTracking",e[e.Links=103]="Links",e[e.ListTemplateCatalog=114]="ListTemplateCatalog",e[e.MasterPageCatalog=116]="MasterPageCatalog",e[e.MaintenanceLogs=175]="MaintenanceLogs",e[e.MeetingObjective=207]="MeetingObjective",e[e.Meetings=200]="Meetings",e[e.MeetingUser=202]="MeetingUser",e[e.MySiteDocumentLibrary=700]="MySiteDocumentLibrary",e[e.Posts=301]="Posts",e[e.NoCodePublic=122]="NoCodePublic",e[e.NoCodeWorkflows=117]="NoCodeWorkflows",e[e.PictureLibrary=109]="PictureLibrary",e[e.SolutionCatalog=121]="SolutionCatalog",e[e.Survey=102]="Survey",e[e.Tasks=107]="Tasks",e[e.TasksWithTimelineAndHierarchy=171]="TasksWithTimelineAndHierarchy",e[e.TextBox=210]="TextBox",e[e.ThemeCatalog=123]="ThemeCatalog",e[e.ThingsToBring=211]="ThingsToBring",e[e.Timecard=420]="Timecard",e[e.UserInformation=112]="UserInformation",e[e.WebPageLibrary=119]="WebPageLibrary",e[e.WebPartCatalog=113]="WebPartCatalog",e[e.WebTemplateCatalog=111]="WebTemplateCatalog",e[e.Whereabouts=403]="Whereabouts",e[e.WorkflowHistory=140]="WorkflowHistory",e[e.WorkflowProcess=118]="WorkflowProcess",e[e.XMLForm=115]="XMLForm"}(e.ListTemplateType||(e.ListTemplateType={}));e.ListTemplateType;!function(e){e[e.DefaultView=0]="DefaultView",e[e.DialogView=2]="DialogView",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.Invalid=-1]="Invalid",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.NormalView=1]="NormalView",e[e.Page_MAXITEMS=11]="Page_MAXITEMS",e[e.SolutionForm=10]="SolutionForm",e[e.View=3]="View"}(e.PageType||(e.PageType={}));e.PageType;!function(e){e[e.Administrator=5]="Administrator",e[e.Contributor=3]="Contributor",e[e.Editor=6]="Editor",e[e.Guest=1]="Guest",e[e.None=0]="None",e[e.Reader=2]="Reader",e[e.WebDesigner=4]="WebDesigner"}(e.RoleType||(e.RoleType={}));e.RoleType;!function(e){e[e.None=0]="None",e[e.List=1]="List",e[e.ContentType=2]="ContentType",e[e.ProgId=3]="ProgId",e[e.FileType=4]="FileType"}(e.UserCustomActionRegistrationType||(e.UserCustomActionRegistrationType={}));e.UserCustomActionRegistrationType;!function(e){e[e.Calendar=524288]="Calendar",e[e.Chart=131072]="Chart",e[e.Gantt=67108864]="Gantt",e[e.Grid=2048]="Grid",e[e.Html=1]="Html",e[e.Recurrence=8193]="Recurrence"}(e.ViewType||(e.ViewType={}));e.ViewType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t=function(){function t(t){this.promise=new e.Utils.Promise(t),this.loadDependencies()}return Object.defineProperty(t.prototype,"MAX_WAIT",{get:function(){return 5},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"SCRIPTS",{get:function(){return["MicrosoftAjax.js","init.js","sp.runtime.js","sp.js","sp.core.js","core.js"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageContextExistsFl",{get:function(){return window.hasOwnProperty("_spPageContextInfo")},enumerable:!0,configurable:!0}),t.prototype.loadDependencies=function(){if(this.pageContextExistsFl)this.promise.resolve();else{for(var e in this.SCRIPTS){var t=document.createElement("script");t.setAttribute("src","/_layouts/15/"+e),t.setAttribute("type","text/javascript"),document.head.appendChild(t)}this.waitForPageContext()}},t.prototype.waitForPageContext=function(){var e=0,t=window.setInterval(function(){(this.pageContextExists()||++e>=this.MAX_WAIT)&&(window.clearInterval(t),this.promise.resolve())},10)},t}();e.Dependencies=t}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function s(e,t,s){this.methodInfo=t,this.methodInfo.argValues=s,this.methodInfo.name="string"==typeof this.methodInfo.name?this.methodInfo.name:e,this.generateParams(),this.methodUrl=this.generateUrl()}return Object.defineProperty(s.prototype,"body",{get:function(){return this.methodData},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replaceEndpointFl",{get:function(){return!!this.methodInfo.replaceEndpointFl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"requestMethod",{get:function(){if("string"==typeof this.methodInfo.requestMethod)return this.methodInfo.requestMethod;switch(this.methodInfo.requestType){case e.Types.RequestType.Delete:case e.Types.RequestType.Post:case e.Types.RequestType.PostWithArgs:case e.Types.RequestType.PostWithArgsInBody:case e.Types.RequestType.PostWithArgsInQS:case e.Types.RequestType.PostWithArgsValueOnly:case e.Types.RequestType.PostReplace:return"POST";default:return"GET"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this.methodUrl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInBody",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInBody||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInBody},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInQS",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInQS||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInQS},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isTemplate",{get:function(){return!!this.methodInfo.data},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replace",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetReplace||this.methodInfo.requestType==e.Types.RequestType.PostReplace},enumerable:!0,configurable:!0}),s.prototype.generateParams=function(){var e={};if(null!=this.methodInfo.argValues){if(this.methodInfo.argNames)for(var t=0;t<this.methodInfo.argNames.length&&t<this.methodInfo.argValues.length;t++){var s=this.methodInfo.argNames[t],r=this.methodInfo.argValues[t];switch(typeof this.methodInfo.argValues[t]){case"boolean":e[s]=this.methodInfo.argValues[t]?"true":"false";break;case"number":e[s]=this.methodInfo.argValues[t];break;default:e[s]=r}}var a=!0;for(var i in e){a=!1;break}if(this.methodParams=a?null:e,this.methodParams&&this.isTemplate){"string"!=typeof this.methodInfo.data&&(this.methodInfo.data=JSON.stringify(this.methodInfo.data));for(var n in this.methodParams)this.methodInfo.data=this.methodInfo.data.replace("[["+n+"]]",this.methodParams[n].replace(/"/g,'\\"').replace(/\n/g,""));this.methodData=JSON.parse(this.methodInfo.data)}this.methodInfo.argValues&&this.methodInfo.argValues.length>0&&(null==this.methodInfo.argNames?this.methodData=this.methodInfo.argValues[0]:this.methodInfo.argValues.length>this.methodInfo.argNames.length&&(this.methodData=this.methodInfo.argValues[this.methodInfo.argNames.length])),this.methodInfo.metadataType&&(this.methodInfo.argNames?(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata={type:this.methodInfo.metadataType}:(this.methodData||this.methodParams).__metadata={type:this.methodInfo.metadataType})}},s.prototype.generateUrl=function(){var s=this.methodInfo.name;if(this.methodInfo.requestType==e.Types.RequestType.Delete&&(s="deleteObject"),this.passDataInBody){var r=this.methodData||this.methodParams;this.methodData=JSON.stringify(r)}if(this.passDataInQS){var r=this.methodParams||this.methodData;s+="(@v)?@v="+("string"==typeof r?"'"+encodeURIComponent(r)+"'":JSON.stringify(r))}if(this.replace)for(var a in this.methodParams)s=s.replace("[["+a+"]]",encodeURIComponent(this.methodParams[a]));else if(this.methodInfo.requestType==e.Types.RequestType.OData){var i=new t.OData(this.methodParams.oData);s="?"+i.QueryString}else if(!this.passDataInBody&&!this.passDataInQS){var n="",r=this.methodParams||this.methodData;if(r){r=r&&"object"==typeof r?r:{value:r};for(var o in r){var u=r[o];switch(u="string"==typeof u?"'"+u+"'":u,this.methodInfo.requestType){case e.Types.RequestType.GetWithArgsValueOnly:case e.Types.RequestType.PostWithArgsValueOnly:n+=u+", ";break;default:n+=o+"="+u+", "}}}s+=n.length>0?"("+n.replace(/, $/,"")+")":""}return s},s}();t.MethodInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this._expand=e&&e.Expand?e.Expand:[],this._filter=e&&e.Filter?e.Filter:null,this._orderBy=e&&e.OrderBy?e.OrderBy:[],this._select=e&&e.Select?e.Select:[],this._skip=e&&e.Skip?e.Skip:null,this._top=e&&e.Top?e.Top:null}return Object.defineProperty(e.prototype,"Expand",{get:function(){return this._expand},set:function(e){this._expand=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OrderBy",{get:function(){return this._orderBy},set:function(e){this._orderBy=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"QueryString",{get:function(){var e="",t=[];t.push(this.getQSValue("$select",this._select)),t.push(this.getQSValue("$orderby",this._orderBy)),this._top?t.push("$top="+this._top):null,this._skip?t.push("$skip="+this._skip):null,this._filter?t.push("$filter="+this._filter):null,t.push(this.getQSValue("$expand",this._expand));for(var s=0,r=t;s<r.length;s++){var a=r[s];a&&""!=a&&(e+=(""==e?"":"&")+a)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Select",{get:function(){return this._select},set:function(e){this._select=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Skip",{get:function(){return this._skip},set:function(e){this._skip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Top",{get:function(){return this._top},set:function(e){this._top=e},enumerable:!0,configurable:!0}),e.prototype.getQSValue=function(e,t){return t.length>0?e+"="+t.join(","):""},e}();e.OData=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this.callback=e,this.resolvedFl=!1}return e.prototype.done=function(e){this.callback=e||this.callback,this.resolvedFl&&this.executeMethod()},e.prototype.resolve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];this.args=e,this.resolvedFl=!0,this.executeMethod()},e.prototype.executeMethod=function(){this.callback&&"function"==typeof this.callback&&this.callback.apply(this,this.args)},e}();e.Promise=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function t(t,s,r){this.asyncFl=t,this.promise=new e.Promise(r||s.callback),this.targetInfo=s,this.xhr=this.createXHR(),this.execute()}return Object.defineProperty(t.prototype,"completedFl",{get:function(){return!!this.xhr&&4==this.xhr.readyState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"response",{get:function(){return this.xhr?this.xhr.response:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"request",{get:function(){return this.xhr?this.xhr:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestData",{get:function(){return this.targetInfo.requestData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestUrl",{get:function(){return this.xhr?this.xhr.responseURL:null},enumerable:!0,configurable:!0}),t.prototype.createXHR=function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("This browser does not support xml http requests.")},t.prototype.defaultHeaders=function(){var e=document.querySelector("#__REQUESTDIGEST");if(e=e?e.value:"",this.xhr.setRequestHeader("Accept","application/json;odata=verbose"),this.xhr.setRequestHeader("Content-Type","application/json;odata=verbose"),this.xhr.setRequestHeader("X-HTTP-Method",this.targetInfo.requestMethod),this.xhr.setRequestHeader("X-RequestDigest",e),"DELETE"!=this.targetInfo.requestMethod&&"MERGE"!=this.targetInfo.requestMethod||this.xhr.setRequestHeader("IF-MATCH","*"),this.targetInfo.requestHeaders)for(var t in this.targetInfo.requestHeaders)this.xhr.setRequestHeader(t,this.targetInfo.requestHeaders[t])},t.prototype.execute=function(){var e=this;return null==this.xhr?null:(this.xhr.open("GET"==this.targetInfo.requestMethod?"GET":"POST",this.targetInfo.requestUrl,this.asyncFl),this.asyncFl&&(this.xhr.onreadystatechange=function(){4==e.xhr.readyState&&e.promise.resolve(e)}),this.targetInfo.bufferFl&&this.asyncFl?this.xhr.responseType="arraybuffer":(this.defaultHeaders(),this.targetInfo.requestData&&"string"!=typeof this.targetInfo.requestData&&(this.targetInfo.requestData=this.targetInfo.requestData.byteLength?this.targetInfo.requestData:JSON.stringify(this.targetInfo.requestData))),void(this.targetInfo.bufferFl||null==this.targetInfo.requestData?this.xhr.send():this.xhr.send(this.targetInfo.requestData)))},t}();e.Request=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function t(e){this.targetInfo=e||{},this.requestData=this.targetInfo.data,this.requestMethod=this.targetInfo.method?this.targetInfo.method:"GET",this.setRequestUrl()}return Object.defineProperty(t.prototype,"bufferFl",{get:function(){return this.targetInfo.bufferFl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callback",{get:function(){return this.targetInfo.callback},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return window._spPageContextInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAppWeb",{get:function(){return this.context.isAppWeb},enumerable:!0,configurable:!0}),t.prototype.getDomainUrl=function(){var e=document.location.href;return this.isAppWeb&&(e=this.getQueryStringValue("SPHostUrl")+""),e=e.split("/"),e&&e.length>=2&&(e=e[0]+"//"+e[2]),e},t.prototype.getQueryStringValue=function(e){var t=document.location.href.split("?");t=t.length>1?t[1]:t[0];for(var s=t.split("&"),r=0;r<s.length;r++){var a=s[r].split("=");if(1!=a.length&&decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null},t.prototype.setRequestUrl=function(){var t=this.getQueryStringValue("SPHostUrl"),s="{{Url}}/_api/{{EndPoint}}{{TargetUrl}}";if(e.DefaultRequestToHostWebFl&&this.isAppWeb&&null==this.targetInfo.url&&(this.targetInfo.url=t),null==this.targetInfo.url)this.targetInfo.url=this.context[0==this.targetInfo.defaultToWebFl?"siteAbsoluteUrl":"webAbsoluteUrl"];else if(/\/_api\//.test(this.targetInfo.url)){var r=this.targetInfo.url.split("/_api/");return void(this.isAppWeb&&r[0]!=this.context.webAbsoluteUrl?this.requestUrl=this.context.webAbsoluteUrl+"/_api/SP.AppContextSite(@target)/"+r[1]+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:"")+"?@target='"+r[0]+"'":this.requestUrl=this.targetInfo.url+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:""))}if(0!=this.targetInfo.url.indexOf("http")&&(this.targetInfo.url=this.getDomainUrl()+this.targetInfo.url),this.isAppWeb&&this.targetInfo.url!=this.context.webAbsoluteUrl){var a=this.targetInfo.endpoint+(this.targetInfo.endpoint.indexOf("?")>0?"&":"?");this.requestUrl=s.replace(/{{Url}}/g,this.context.webAbsoluteUrl).replace(/{{EndPoint}}/g,"SP.AppContextSite(@target)/"+a).replace(/{{TargetUrl}}/g,"@target='"+this.targetInfo.url+"'")}else this.requestUrl=s.replace(/{{Url}}/g,this.targetInfo.url).replace(/{{EndPoint}}/g,this.targetInfo.endpoint).replace(/{{TargetUrl}}/g,"")},t}();t.TargetInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){e.Library.attachmentfiles={add:{argNames:["name"],name:"",requestType:e.Types.RequestType.PostWithArgs},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttype={properties:["FieldLinks|fieldlinks|('[Name]')|fieldlink","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","WorkflowAssociations"],delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.ContentType",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttypes={add:{metadataType:"SP.ContentType",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addAvailableContentType:{argNames:["contentTypeId"],requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"contenttype"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(t){function s(e){t.call(this,e),this.defaultToWebFl=!0,this.targetInfo.endpoint="SP.Utilities.Utility.SendEmail"}return __extends(s,t),s.prototype.send=function(t){t.To&&("string"==typeof t.To?t.To={results:[t.To]}:t.To={results:t.To}),this.executeMethod("send",{argNames:["properties"],name:"",metadataType:"SP.Utilities.EmailProperties",requestType:e.Types.RequestType.PostWithArgsInBody},[t])},s}(e.Base);e.Email=t}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinition={delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.EventReceiverDefinition",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinitions={add:{metadataType:"SP.EventReceiverDefinition",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"eventreceiver"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.field={delete:{requestType:e.Types.RequestType.Delete},setShowInDisplayForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInEditForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInNewForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.fieldlinks={add:{argNames:["data"],metadataType:"SP.FieldLink",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"fieldlink"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.fields={add:{metadataType:"SP.Field",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addField:{argNames:["parameters"],metadataType:"SP.FieldCreationInformation",name:"addField",requestType:e.Types.RequestType.PostWithArgsInBody},addDependentLookupField:{argNames:["displayname","primarylookupfieldid","showfield"],requestType:e.Types.RequestType.PostWithArgs},createFieldAsXml:{argNames:["schemaXml"],requestType:e.Types.RequestType.PostWithArgsInBody,data:{parameters:{__metadata:{type:"SP.XmlSchemaFieldCreationInformation" | ||
},Options:8,SchemaXml:"[[schemaXml]]"}}},getById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly,returnType:"field"},getByInternalNameOrTitle:{argNames:["internalNameOrTitle"],requestType:e.Types.RequestType.PostWithArgsValueOnly,returnType:"field"},getByTitle:{argNames:["title"],requestType:e.Types.RequestType.PostWithArgsValueOnly,returnType:"field"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.file={properties:["Author|user","CheckedOutByUser|user","EffectiveInformationRightsManagementSettings","InformationRightsManagementSettings","ListItemAllFields","LockedByUser|user","ModifiedBy|user","Properties","VersionEvents","Versions|fileversions"],approve:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},cancelupload:{argNames:["uploadId"],name:"cancelupload(guid'[[uploadId]]')",requestType:e.Types.RequestType.PostReplace},checkin:{argNames:["comment","checkInType"],requestType:e.Types.RequestType.PostWithArgs},checkout:{requestType:e.Types.RequestType.Post},content:{name:"$value",requestType:e.Types.RequestType.GetBuffer},continueUpload:{argNames:["uploadId","fileOffset"],name:"continueUpload(uploadId=guid'[[uploadId]]', fileOffset=[[fileOffset]])",requestType:e.Types.RequestType.PostReplace},copyTo:{argNames:["strNewUrl","bOverWrite"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},deny:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},finishUpload:{argNames:["uploadId","fileOffset"],name:"finishUpload(uploadId=guid'[[uploadId]]', fileOffset=[[fileOffset]])",requestType:e.Types.RequestType.PostReplace},getlimitedwebpartmanager:{argNames:["scope"],name:"getLimitedWebPartManager(scope=[[scope]])",requestType:e.Types.RequestType.GetReplace},moveTo:{argNames:["newUrl","flags"],name:"moveTo(newUrl='[[newUrl]]', flags=[[flags]])",requestType:e.Types.RequestType.PostReplace},openBinaryStream:{requestType:e.Types.RequestType.GetBuffer},publish:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},recycle:{requestType:e.Types.RequestType.Get},saveBinaryStream:{requestType:e.Types.RequestType.PostWithArgsInBody},startUpload:{argNames:["uploadId"],name:"startupload(uploadId=guid'[[uploadId]]')",requestType:e.Types.RequestType.PostReplace},undoCheckOut:{requestType:e.Types.RequestType.Post},unpublish:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},update:{metadataType:"SP.File",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.files={add:{argNames:["overwrite","url"],requestType:e.Types.RequestType.PostWithArgs},addTemplateFile:{argNames:["urlOfFile","templateFileType"],requestType:e.Types.RequestType.PostWithArgs},getByUrl:{argNames:["serverRelativeUrl"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"file"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.fileversion={properties:[],delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.fileversions={delete:{requestType:e.Types.RequestType.Delete},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.folder={properties:["Files|files|/getByUrl('[Name]')|file","Folders|folders|/getByUrl('[Name]')|folder","ListItemAllFields","ParentFolder|folder","Properties","StorageMetrics"],delete:{requestType:e.Types.RequestType.Delete},getByUrl:{argNames:["serverRelativeUrl"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"folder"},recycle:{requestType:e.Types.RequestType.Post},update:{metadataType:"SP.Folder",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.folders={properties:["Files|files|/getByUrl('[Name]')|file","Folders|folders|/getByUrl('[Name]')|folder","ListItemAllFields","ParentFolder","Properties","StorageMetrics"],add:{argNames:["url"],requestType:e.Types.RequestType.PostWithArgs},getbyurl:{argNames:["serverRelativeUrl"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"folder"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.group={properties:["Users|users|/getById([Name])|user"]}}($REST||($REST={}));var $REST;!function(e){e.Library.items={add:{metadataType:function(e){return e.Parent&&e.Parent.ListItemEntityTypeFullName?e.Parent.ListItemEntityTypeFullName:"SP.ListItem"},name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"listitem"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.limitedwebpartmanager={get_WebParts:{argNames:["id"],name:"webparts?expand=WebPart",requestType:e.Types.RequestType.GetReplace}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(e){function t(t,s){e.call(this,s),this.defaultToWebFl=!0,this.responses=[],this.targetInfo.endpoint="lists/getByTitle('"+t+"')",this.addMethods(this,{__metadata:{type:"list"}})}return __extends(t,e),t}(e.Base);e.List=t,e.Library.list={properties:["BrowserFileHandling","ContentTypes|contenttypes|([Name])|contenttype","CreatablesInfo","DefaultView|view","DescriptionResource","EventReceivers|eventreceivers|('[Name]')|eventreceiver","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","FirstUniqueAncestorSecurableObject","Forms|forms|('[Name]')|form","InformationRightsManagementSettings","Items|items|([Name])|item","ParentWeb","RoleAssignments|roleassignments|([Name])|roleassignment","RootFolder|folder|/getByUrl('[Name]')|file","Subscriptions","TitleResource","UserCustomActions|usercustomactions|('[Name]')|usercustomaction","Views|views||('[Name]')|view","WorkflowAssociations"],breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getItemById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"item"},getItems:{argNames:["viewXml"],requestType:e.Types.RequestType.PostWithArgsInBody,data:{query:{__metadata:{type:"SP.CamlQuery"},ViewXml:"[[viewXml]]"}}},getItemsByQuery:{argNames:["camlQuery"],name:"getItems",requestType:e.Types.RequestType.PostWithArgsInBody,data:{query:{__metadata:{type:"SP.CamlQuery"},ViewXml:"<View>[[camlQuery]]</View>"}}},getListItemChangesSinceToken:{argNames:["query"],metadataType:"SP.ChangeLogItemQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getRelatedFields:{requestType:e.Types.RequestType.Get},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:e.Types.RequestType.GetReplace},getViewById:{argNames:["viewId"],name:"getView",requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"view"},recycle:{requestType:e.Types.RequestType.Post},renderListData:{argNames:["viewXml"],name:"renderListData(@v)?@v='<View>[[viewXml]]</View>'",requestType:e.Types.RequestType.PostReplace},renderListFormData:{argNames:["itemid","formid","mode"],requestType:e.Types.RequestType.PostWithArgs},reserveListItemId:{requestType:e.Types.RequestType.Post},resetRoleInheritance:{requestType:e.Types.RequestType.Post},update:{metadataType:"SP.List",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.listitem={properties:["AttachmentFiles|attachmentfiles","ContentType|contenttype","FieldValuesAsHtml","FieldValuesAsText","FieldValuesForEdit","File|file","FirstUniqueAncestorSecurableObject","Folder|folder","GetDlpPolicyTip","ParentList|list","RoleAssignments|roleassignments|roleassignments|([Name])|roleassignment"],breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:e.Types.RequestType.GetReplace},recycle:{requestType:e.Types.RequestType.Post},resetRoleInheritance:{requestType:e.Types.RequestType.Post},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody},validateUpdateListItem:{argNames:["formValues","bNewDocumentUpdate"],requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.lists={add:{metadataType:"SP.List",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},ensureSiteAssetsLibrary:{requestType:e.Types.RequestType.Post},ensureSitePagesLibrary:{requestType:e.Types.RequestType.Post},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"list"},getByTitle:{argNames:["title"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"list"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.peoplemanager={},e.Library.peoplemanager[e.Types.RequestType.Get]=["amlFollowedBy","amlFollowing","getFollowedTags","getFollowersFor","getMyFollowers","getMyProperties","getMySuggestions","getPeopleFollowedBy","getPeopleFollowedByMe","getPropertiesFor","getUserProfilePropertyFor"],e.Library.peoplemanager[e.Types.RequestType.GetAppendMethodToEndPoint]=["getTrendingTags","isFollowing"],e.Library.peoplemanager[e.Types.RequestType.Post]=["follow","followTag","hideSuggestion","stopFollowing","stopFollowingTag"],e.Library.peoplemanager[e.Types.RequestType.PostDataInBody]=["setMyProfilePicture"]}($REST||($REST={}));var $REST;!function(e){e.Library.profileloader={}}($REST||($REST={}));var $REST;!function(e){e.Library.roleAssignment={properties:["Member","RoleDefinitionBindings|roledefinitions"],delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.roleAssignments={addRoleAssignment:{argNames:["principalId","roleDefId"],requestType:e.Types.RequestType.PostWithArgs},getByPrincipalId:{argNames:["principalId"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roleassignment"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeRoleAssignment:{argNames:["principalId","roleDefId"],requestType:e.Types.RequestType.PostWithArgs}}}($REST||($REST={}));var $REST;!function(e){e.Library.roledefinition={delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.roledefinitions={getById:{argNames:["roleDefId"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByName:{argNames:["name"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByType:{argNames:["roleType"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roledefinitions"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.searchservice={}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(t){function s(e,s){t.call(this,s),this.defaultToWebFl=!0,this.responses=[],this.targetInfo.endpoint="site",e&&(this.targetInfo.url=e),this.addMethods(this,{__metadata:{type:"site"}})}return __extends(s,t),s.prototype.getRootWeb=function(){return new e.Web(null,this.targetInfo)},s.prototype.hasAccess=function(e){return!0},s}(e.Base);e.Site=t,e.Library.site={properties:["EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Owner|user","RootWeb|web","UserCustomActions|usercustomactions|('[Name]')|usercustomaction"],createPreviewSPSite:{argNames:["upgrade","sendemail"],requestType:e.Types.RequestType.PostWithArgs},extendUpgradeReminderDate:{requestType:e.Types.RequestType.Post},getCatalog:{argNames:["typeCatalog"],requestType:e.Types.RequestType.PostWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getCustomListTemplates:{argNames:["web"],requestType:e.Types.RequestType.PostWithArgs},getWebTemplates:{argNames:["LCID","overrideCompatLevel"],requestType:e.Types.RequestType.PostWithArgs},invalidate:{requestType:e.Types.RequestType.Post},needsUpgradeByType:{argNames:["versionUpgrade","recursive"],requestType:e.Types.RequestType.PostWithArgs},openWeb:{argNames:["strUrl"],requestType:e.Types.RequestType.PostWithArgsValueOnly},openWebById:{argNames:["gWebId"],requestType:e.Types.RequestType.PostWithArgsValueOnly},runHealthCheck:{argNames:["ruleId","bRepair","bRunAlways"],requestType:e.Types.RequestType.PostWithArgs},runUpgradeSiteSession:{argNames:["versionUpgrade","queueOnly","sendEmail"],requestType:e.Types.RequestType.PostWithArgs},update:{metadataType:"SP.Site",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody},updateClientObjectModelUseRemoteAPIsPermissionSetting:{argNames:["requireUseRemoteAPIs"],requestType:e.Types.RequestType.PostWithArgs}}}($REST||($REST={}));var $REST;!function(e){e.Library.siteGroups={getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"group"},getByName:{argNames:["name"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"group"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["name"],requestType:e.Types.RequestType.PostWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.socialrestactor={},e.Library.socialrestactor[e.Types.RequestType.Custom]=[{name:"createPost",function:function(e){return e={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:null,creationData:e}},e.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("feed/post",null,e,!0)}},{name:"getFeed",function:function(){return this.executeGet("feed")}}]}($REST||($REST={}));var $REST;!function(e){e.Library.socialrestfeedmanager={},e.Library.socialrestfeedmanager[e.Types.RequestType.Custom]=[{name:"createPost",function:function(e){return e={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:null,creationData:e}},e.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("my/feed/post",null,e,!0)}},{name:"deletePost",function:function(e){return this.executePost("post/delete",null,{ID:e},!0)}},{name:"getMyFeed",function:function(){return this.executeGet("my/feed")}},{name:"getMyInfo",function:function(){return this.executeGet("my")}},{name:"getMyLikes",function:function(){return this.executeGet("my/likes")}},{name:"getMyMentionFeed",function:function(){return this.executeGet("my/mentionfeed")}},{name:"getMyNews",function:function(){return this.executeGet("my/news")}},{name:"getMyTimeLineFeed",function:function(){return this.executeGet("my/timelinefeed")}},{name:"getMyUnreadMentionCount",function:function(){return this.executeGet("my/unreadmentioncount")}},{name:"getPost",function:function(e){return this.executePost("post",null,{ID:e},!0)}},{name:"getPostLikers",function:function(e){return this.executePost("post/likers",null,{ID:e},!0)}},{name:"getUser",function:function(e){return 0==e.indexOf("i:0#.f|")?this.executeGet("actor",null,e):this.executeGet("actor",e)}},{name:"likePost",function:function(e){return this.executePost("post/like",null,{ID:e},!0)}},{name:"lockPost",function:function(e){return this.executePost("post/lock",null,{ID:e},!0)}},{name:"replyToPost",function:function(e,t){return t={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:e,creationData:t}},t.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("post/reply",null,t,!0)}},{name:"unlikePost",function:function(e){return this.executePost("post/unlike",null,{ID:e},!0)}},{name:"unlockPost",function:function(e){return this.executePost("post/unlock",null,{ID:e},!0)}}]}($REST||($REST={}));var $REST;!function(e){e.Library.socialrestthread={},e.Library.socialrestthread[e.Types.RequestType.Custom]=[{name:"delete",function:function(e){return this.executePost("delete",null,{ID:e||this.ID},!0)}},{name:"like",function:function(e){return this.executePost("like",null,{ID:e||this.ID},!0)}},{name:"lock",function:function(e){return this.executePost("lock",null,{ID:e||this.ID},!0)}},{name:"reply",function:function(e,t){return e={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:t||this.ID,creationData:e}},e.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("reply",null,e,!0)}},{name:"unlike",function:function(e){return this.executePost("unlike",null,{ID:e||this.ID},!0)}},{name:"unlock",function:function(e){return this.executePost("unlock",null,{ID:e||this.ID},!0)}}]}($REST||($REST={}));var $REST;!function(e){e.Library.user={properties:["Groups|sitegroups|([Name])|group"],delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.usercustomaction={delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.usercustomactions={add:{metadataType:"SP.UserCustomAction",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},clear:{requestType:e.Types.RequestType.Post},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"usercustomaction"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.userprofile={},e.Library.userprofile[e.Types.RequestType.Post]=["createPersonalSiteEnque","shareAllSocialData"],e.Library.userprofile[e.Types.RequestType.Custom]=[{name:"getOneDriveUrl",function:function(){return this.FollowPersonalSiteUrl+"_layouts/15/onedrive.aspx"}}]}($REST||($REST={}));var $REST;!function(e){e.Library.users={getByEmail:{argNames:["email"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"user"},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"user"},getByLoginName:{argNames:["loginName"],requestType:e.Types.RequestType.GetWithArgsInQS,returnType:"user"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["loginName"],requestType:e.Types.RequestType.PostWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.versions={getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"version"},deleteAll:{requestType:e.Types.RequestType.Post},deleteById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},deleteByLabel:{argNames:["label"],requestType:e.Types.RequestType.PostWithArgsValueOnly},restoreByLabel:{argNames:["label"],requestType:e.Types.RequestType.PostWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.view={properties:["ViewFields|viewfieldcollection"],delete:{requestType:e.Types.RequestType.Delete},renderAsHtml:{requestType:e.Types.RequestType.Get},update:{metadataType:"SP.View",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.viewfieldcollection={addViewField:{argNames:["fieldName"],requestType:e.Types.RequestType.PostWithArgsValueOnly},moveViewFieldTo:{argNames:["field","index"],requestType:e.Types.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeAllViewFields:{requestType:e.Types.RequestType.Post},removeViewField:{argNames:["fieldName"],requestType:e.Types.RequestType.GetWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.views={add:{metadataType:"SP.View",name:"",requestType:e.Types.RequestType.PostWithArgs},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"view"},getByTitle:{argNames:["title"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"view"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(e){function t(t,s){e.call(this,s),this.defaultToWebFl=!0,this.responses=[],this.targetInfo.endpoint="web",t&&(this.targetInfo.url=t),this.addMethods(this,{__metadata:{type:"web"}})}return __extends(t,e),t.prototype.hasAccess=function(e){return!0},t}(e.Base);e.Web=t,e.Library.web={properties:["AllProperties","AppTiles","AssociatedMemberGroup|group","AssociatedOwnerGroup|group","AssociatedVisitorGroup|group","Author|user","AvailableContentTypes|contenttypes","AvailableFields|fields","ClientWebParts","ContentTypes|contenttypes|('[Name]')|contenttype","CurrentUser|user","DataLeakagePreventionStatusInfo","DescriptionResource","EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","FirstUniqueAncestorSecurableObject","Folders|folders|/getByUrl('[Name]')|folder","Lists|lists|/getByTitle('[Name]')|list","ListTemplates|listtemplates|('[Name]')|listtemplate","Navigation","ParentWeb","PushNotificationSubscribers","RecycleBin","RegionalSettings","RoleAssignments|roleassignments|([Name])|roleassignment","RoleDefinitions|roledefinitions|([Name])|roledefinition","RootFolder|folder|/getByUrl('[Name]')|file","SiteGroups|sitegroups|([Name])|group","SiteUserInfoList","SiteUsers|users|/getById([Name])|user","ThemeInfo","TitleResource","UserCustomActions|usercustomactions|('[Name]')|usercustomaction","WebInfos","Webs|webs","WorkflowAssociations","WorkflowTemplates"],applyTheme:{argNames:["colorpaletteurl","fontschemeurl","backgroundimageurl","sharegenerated"],requestType:e.Types.RequestType.PostWithArgs},applyWebTemplate:{argName:["name"],requestType:e.Types.RequestType.PostWithArgsInQS},breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},doesPushNotificationSubscriberExist:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},doesUserHavePermissions:{argNames:["High","Low"],requestType:e.Types.RequestType.GetWithArgsInQS},ensureUser:{argNames:["logonName"],requestType:e.Types.RequestType.PostWithArgsInBody},executeRemoteLOB:{requestType:e.Types.RequestType.PostWithArgsInBody},getAppBdcCatalog:{requestType:e.Types.RequestType.Post},getAppBdcCatalogForAppInstance:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},getAppInstanceById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getAppInstancesByProductId:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getAvailableWebTemplates:{argNames:["lcid","doincludecrosslanguage"],requestType:e.Types.RequestType.GetWithArgs},getCatalog:{argNames:["galleryType"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getContextWebInformation:{name:"contextInfo",replaceEndpointFl:!0,requestType:e.Types.RequestType.Post},getCustomListTemplates:{requestType:e.Types.RequestType.Get},getDocumentLibraries:{argNames:["url"],name:"sp.web.getDocumentLibraries",requestType:e.Types.RequestType.GetWithArgsInQS},getEntity:{argNames:["namespace","name"],requestType:e.Types.RequestType.PostWithArgs},getFileByServerRelativeUrl:{argNames:["url"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"file"},getFolderByServerRelativeUrl:{argNames:["url"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"folder"},getList:{argNames:["url"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"list"},getPushNotificationSubscriber:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByArgs:{argNames:["args"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByUser:{argNames:["loginName"],requestType:e.Types.RequestType.GetWithArgsInQS},getSubwebsFilteredForCurrentUser:{argNames:["nwebtemplatefilter","nconfigurationfilter"],requestType:e.Types.RequestType.GetWithArgs},getUserById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"user"},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:e.Types.RequestType.GetReplace},getWebUrlFromPageUrl:{name:"sp.web.getWebUrlFromPageUrl",requestType:e.Types.RequestType.GetWithArgsInQS},loadAndInstallApp:{requestType:e.Types.RequestType.PostWithArgsInBody},loadAndInstallAppInSpecifiedLocale:{argNames:["appPackageStream","installationLocaleLCID"],requestType:e.Types.RequestType.PostWithArgsInBody},loadApp:{argNames:["appPackageStream","installationLocaleLCID"],requestType:e.Types.RequestType.PostWithArgsInBody},mapToIcon:{argNames:["filename","progid","size"],requestType:e.Types.RequestType.GetWithArgs},processExternalNotification:{requestType:e.Types.RequestType.PostWithArgsInBody},registerPushNotificationSubscriber:{argNames:["deviceappinstanceid","servicetoken"],requestType:e.Types.RequestType.PostWithArgs},resetRoleInheritance:{requestType:e.Types.RequestType.Post},unregisterPushNotificationSubscriber:{requestType:e.Types.RequestType.PostWithArgsValueOnly},update:{metadataType:"SP.Web",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.webs={add:{argNames:["parameters"],metadataType:"SP.WebCreationInformation",requestType:e.Types.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={})); |
{ | ||
"name": "gd-sprest", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "An easy way to develop against the SharePoint REST API.", | ||
@@ -5,0 +5,0 @@ "author": "Gunjan Datta <me@dattabase.com> (https://github.com/gunjandatta/sprest)", |
@@ -76,3 +76,3 @@ module $REST { | ||
// Method to execute this method before the next method executes | ||
public next(): Base { | ||
public next(callback?:(...args) => void): Base { | ||
// Add this object to the responses | ||
@@ -82,3 +82,3 @@ this.base.responses.push(this); | ||
// Execute the request | ||
this.executeRequest(true, null); | ||
this.executeRequest(true, callback); | ||
@@ -283,3 +283,3 @@ // Return the base object | ||
// Method to execute the request | ||
protected executeRequest(asyncFl: boolean, callback?:() => void) { | ||
protected executeRequest(asyncFl: boolean, callback?:(...args) => void) { | ||
// See if this is an asynchronous request | ||
@@ -293,3 +293,3 @@ if(asyncFl) { | ||
// Execute the callback | ||
callback ? callback() : null; | ||
callback ? callback(this) : null; | ||
}); | ||
@@ -296,0 +296,0 @@ } |
@@ -34,3 +34,3 @@ declare module $REST.Types { | ||
*/ | ||
next<IList>(): IList; | ||
next<IList>(callback?:(...args) => void): IList; | ||
@@ -40,3 +40,3 @@ /** | ||
*/ | ||
next<ISite>(): ISite; | ||
next<ISite>(callback?:(...args) => void): ISite; | ||
@@ -46,4 +46,4 @@ /** | ||
*/ | ||
next<IWeb>(): IWeb; | ||
next<IWeb>(callback?:(...args) => void): IWeb; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
var $REST;!function(e){e.DefaultRequestToHostWebFl=!1,e.Library={};var t=function(){function t(e){this.targetInfo=e||{},this.requestType=0}return Object.defineProperty(t.prototype,"response",{get:function(){return this.request?this.request.response:null},enumerable:!0,configurable:!0}),t.prototype.execute=function(t){var s=this,r="boolean"==typeof t?null:t,a="boolean"==typeof t&&t;return this.base.responses.push(this),a?this.executeRequest(!a,r):(this.promise=new e.Utils.Promise(r||this.targetInfo.callback),this.executeRequest(!a,function(){s.waitForRequestsToComplete(function(){var e=s.base.responses;s.base.responses=[],s.promise.resolve.apply(s.promise,e)})}))},t.prototype.next=function(){return this.base.responses.push(this),this.executeRequest(!0,null),this.base},t.prototype.addMethods=function(t,s){var r=s.results&&s.results.length>0,a=r?s.results[0].__metadata:s.__metadata,i=a&&a.type?a.type:this.targetInfo.endpoint;i=i.split("/"),i=i[i.length-1],i=i.split("."),i=i[i.length-1].toLowerCase(),i+=r&&s.results.length>1?"s":"",(/^field/.test(i)||/field$/.test(i))&&"fieldlinks"!=i&&"fields"!=i?i="field"+(r?"s":""):/item$/.test(i)?i="listitem":/items$/.test(i)&&(i="items");var n=e.Library[i];if(n)for(var o in n){var u=n[o]?n[o]:{};if("properties"!=o)"function"==typeof u.metadataType&&(u=JSON.parse(JSON.stringify(u)),u.metadataType=n[o].metadataType(t)),t[o]=new Function("return this.executeMethod('"+o+"', "+JSON.stringify(u)+", arguments);");else for(var p=0,l=u;p<l.length;p++){var y=l[p],d=y.split("|"),T=d[0],g=d.length>1?d[1]:null,c=d.length>2?d[2]:null,h=d.length>3?d[3]:null;4==d.length?(c=c.replace(/'/g,"\\'"),t[T]=new Function("name","name = name ? '"+T+c+"'.replace(/\\[Name\\]/g, name) : null;return this.getProperty(name ? name : '"+T+"', name ? '"+h+"' : '"+g+"');")):t[T]=new Function("return this.getProperty('"+T+"', '"+g+"');")}}},t.prototype.addProperties=function(e,t){for(var s in t){var r=t[s];"__metadata"!=s&&"results"!=s&&(r&&r.__deferred&&r.__deferred.uri?e["get_"+s]=e["get_"+s]?e["get_"+s]:new Function("return this.getCollection('"+s+"', arguments);"):e[s]=r)}},t.prototype.executeMethod=function(s,r,a){var i=null==this.request&&this.parent&&this.parent.request?this.parent:this,n=null,o=this.d?this.d.__metadata:this.__metadata;o&&o.uri?(n={url:o.uri},r.inheritMetadataType&&(r.metadataType=o.type),i.updateMetadataUri(o,n)):n=Object.create(this.targetInfo);var u=new e.Utils.MethodInfo(s,r,a);n.bufferFl=r.requestType==e.Types.RequestType.GetBuffer,n.data=u.body,n.method=u.requestMethod,u.replaceEndpointFl?n.endpoint=u.url:u.url&&u.url.length>0&&(n.endpoint=(n.endpoint?n.endpoint+"/":"")+u.url);var p=new t(n);return p.base=this.base?this.base:this,p.parent=this,p.requestType=r.requestType,r.returnType?p.addMethods(p,{__metadata:{type:r.returnType}}):null,p},t.prototype.executeRequest=function(t,s){var r=this;return t?void(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo),function(){r.updateDataObject(),s?s():null})):(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo)),this.updateDataObject()||this)},t.prototype.getCollection=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e,r.callback=s&&"function"==typeof s[0]?s[0]:null;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,i},t.prototype.getProperty=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,s?this.addMethods(i,{__metadata:{type:s}}):null,i},t.prototype.updateDataCollection=function(e){var t=this;e&&(this.results=e,this.existsFl=e.length>0,1==e.length?(this.updateMetadata(e[0]),this.addProperties(this,e[0]),this.addMethods(e[0],e[0]),e[0].executeMethod=this.executeMethod,e[0].parent=this,this.d.__metadata=e[0].__metadata):setTimeout(function(){for(var e=t.results,s=0,r=e;s<r.length;s++){var a=r[s];a.executeMethod=t.executeMethod,a.parent=t,t.updateMetadata(a),t.addMethods(a,a)}},10))},t.prototype.updateDataObject=function(){if(this.request.request.status<400)if(this.requestType==e.Types.RequestType.GetBuffer)this.existsFl=null!=this.request.response;else{var t=this.request.response;t=""===t?"{}":t;var s=JSON.parse(t);this.existsFl="boolean"==typeof this.Exists?this.Exists:null==s.error,s.d&&(this.d=s.d,this.updateMetadata(s.d),this.addProperties(this,s.d),this.addMethods(this,s.d),this.updateDataCollection(s.d.results))}},t.prototype.updateMetadata=function(e){if(window._spPageContextInfo.isAppWeb){var t=window._spPageContextInfo.webAbsoluteUrl.toLowerCase(),s=e&&e.__metadata&&e.__metadata.uri?e.__metadata.uri.toLowerCase():null,r=this.targetInfo&&this.targetInfo.url?this.targetInfo.url.toLowerCase():null;null!=t&&null!=s&&null!=r&&(e.__metadata.uri=s.replace(t,r))}},t.prototype.updateMetadataUri=function(e,t){/^SP.Field/.test(e.type)||/^SP\..*Field$/.test(e.type)?t.url=t.url.replace(/AvailableFields/,"fields"):/SP.EventReceiverDefinition/.test(e.type)&&(t.url=t.url.replace(/\/EventReceiver\//,"/EventReceivers/"))},t.prototype.waitForRequestsToComplete=function(e){var t=this,s=window.setInterval(function(){for(var r=0,a=t.base.responses;r<a.length;r++){var i=a[r];if(null==i.request||!i.request.completedFl)return}window.clearInterval(s),e()},10)},t}();e.Base=t}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Custom=0]="Custom",e[e.Delete=1]="Delete",e[e.Merge=2]="Merge",e[e.OData=3]="OData",e[e.Get=10]="Get",e[e.GetWithArgs=11]="GetWithArgs",e[e.GetWithArgsInBody=12]="GetWithArgsInBody",e[e.GetWithArgsInQS=13]="GetWithArgsInQS",e[e.GetWithArgsValueOnly=14]="GetWithArgsValueOnly",e[e.GetReplace=15]="GetReplace",e[e.Post=20]="Post",e[e.PostWithArgs=21]="PostWithArgs",e[e.PostWithArgsInBody=22]="PostWithArgsInBody",e[e.PostWithArgsInQS=23]="PostWithArgsInQS",e[e.PostWithArgsValueOnly=24]="PostWithArgsValueOnly",e[e.PostReplace=25]="PostReplace",e[e.GetAppendMethodToEndPoint=30]="GetAppendMethodToEndPoint",e[e.GetBuffer=31]="GetBuffer",e[e.GetDataAsParameter=32]="GetDataAsParameter",e[e.GetDataInBody=33]="GetDataInBody",e[e.GetDataInBodyNoArgs=34]="GetDataInBodyNoArgs",e[e.PostAppendMethodToEndPoint=35]="PostAppendMethodToEndPoint",e[e.PostDataAsParameter=36]="PostDataAsParameter",e[e.PostDataInBody=37]="PostDataInBody",e[e.PostDataInBodyNoArgs=38]="PostDataInBodyNoArgs"}(e.RequestType||(e.RequestType={}));e.RequestType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Invalid=0]="Invalid",e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(e.ControlMode||(e.ControlMode={}));e.ControlMode;!function(e){e[e.Approver=2]="Approver",e[e.Author=1]="Author",e[e.Reader=0]="Reader"}(e.DraftVisibilityType||(e.DraftVisibilityType={}));e.DraftVisibilityType;!function(e){e[e.ItemAdding=1]="ItemAdding",e[e.ItemUpdating=2]="ItemUpdating",e[e.ItemDeleting=3]="ItemDeleting",e[e.ItemCheckingIn=4]="ItemCheckingIn",e[e.ItemCheckingOut=5]="ItemCheckingOut",e[e.ItemUncheckingOut=6]="ItemUncheckingOut",e[e.ItemAttachmentAdding=7]="ItemAttachmentAdding",e[e.ItemAttachmentDeleting=8]="ItemAttachmentDeleting",e[e.ItemFileMoving=9]="ItemFileMoving",e[e.ItemVersionDeleting=11]="ItemVersionDeleting",e[e.FieldAdding=101]="FieldAdding",e[e.FieldUpdating=102]="FieldUpdating",e[e.FieldDeleting=103]="FieldDeleting",e[e.ListAdding=104]="ListAdding",e[e.ListDeleting=105]="ListDeleting",e[e.SiteDeleting=201]="SiteDeleting",e[e.WebDeleting=202]="WebDeleting",e[e.WebMoving=203]="WebMoving",e[e.WebAdding=204]="WebAdding",e[e.GroupAdding=301]="GroupAdding",e[e.GroupUpdating=302]="GroupUpdating",e[e.GroupDeleting=303]="GroupDeleting",e[e.GroupUserAdding=304]="GroupUserAdding",e[e.GroupUserDeleting=305]="GroupUserDeleting",e[e.RoleDefinitionAdding=306]="RoleDefinitionAdding",e[e.RoleDefinitionUpdating=307]="RoleDefinitionUpdating",e[e.RoleDefinitionDeleting=308]="RoleDefinitionDeleting",e[e.RoleAssignmentAdding=309]="RoleAssignmentAdding",e[e.RoleAssignmentDeleting=310]="RoleAssignmentDeleting",e[e.InheritanceBreaking=311]="InheritanceBreaking",e[e.InheritanceResetting=312]="InheritanceResetting",e[e.WorkflowStarting=501]="WorkflowStarting",e[e.ItemAdded=10001]="ItemAdded",e[e.ItemUpdated=10002]="ItemUpdated",e[e.ItemDeleted=10003]="ItemDeleted",e[e.ItemCheckedIn=10004]="ItemCheckedIn",e[e.ItemCheckedOut=10005]="ItemCheckedOut",e[e.ItemUncheckedOut=10006]="ItemUncheckedOut",e[e.ItemAttachmentAdded=10007]="ItemAttachmentAdded",e[e.ItemAttachmentDeleted=10008]="ItemAttachmentDeleted",e[e.ItemFileMoved=10009]="ItemFileMoved",e[e.ItemFileConverted=10010]="ItemFileConverted",e[e.ItemVersionDeleted=10011]="ItemVersionDeleted",e[e.FieldAdded=10101]="FieldAdded",e[e.FieldUpdated=10102]="FieldUpdated",e[e.FieldDeleted=10103]="FieldDeleted",e[e.ListAdded=10104]="ListAdded",e[e.ListDeleted=10105]="ListDeleted",e[e.SiteDeleted=10201]="SiteDeleted",e[e.WebDeleted=10202]="WebDeleted",e[e.WebMoved=10203]="WebMoved",e[e.WebProvisioned=10204]="WebProvisioned",e[e.GroupAdded=10301]="GroupAdded",e[e.GroupUpdated=10302]="GroupUpdated",e[e.GroupDeleted=10303]="GroupDeleted",e[e.GroupUserAdded=10304]="GroupUserAdded",e[e.GroupUserDeleted=10305]="GroupUserDeleted",e[e.RoleDefinitionAdded=10306]="RoleDefinitionAdded",e[e.RoleDefinitionUpdated=10307]="RoleDefinitionUpdated",e[e.RoleDefinitionDeleted=10308]="RoleDefinitionDeleted",e[e.RoleAssignmentAdded=10309]="RoleAssignmentAdded",e[e.RoleAssignmentDeleted=10310]="RoleAssignmentDeleted",e[e.InheritanceBroken=10311]="InheritanceBroken",e[e.InheritanceReset=10312]="InheritanceReset",e[e.WorkflowStarted=10501]="WorkflowStarted",e[e.WorkflowPostponed=10502]="WorkflowPostponed",e[e.WorkflowCompleted=10503]="WorkflowCompleted",e[e.EntityInstanceAdded=10601]="EntityInstanceAdded",e[e.EntityInstanceUpdated=10602]="EntityInstanceUpdated",e[e.EntityInstanceDeleted=10603]="EntityInstanceDeleted",e[e.AppInstalled=10701]="AppInstalled",e[e.AppUpgraded=10702]="AppUpgraded",e[e.AppUninstalling=10703]="AppUninstalling",e[e.EmailReceived=2e4]="EmailReceived",e[e.ContextEvent=32766]="ContextEvent"}(e.EventReceiverType||(e.EventReceiverType={}));e.EventReceiverType;!function(e){e[e.Asynchronous=2]="Asynchronous",e[e.Synchronization=1]="Synchronization"}(e.EventReceiverSynchronizationType||(e.EventReceiverSynchronizationType={}));e.EventReceiverSynchronizationType;!function(e){e[e.AllDayEvent=29]="AllDayEvent",e[e.Attachments=19]="Attachments",e[e.Boolean=8]="Boolean",e[e.Calculated=17]="Calculated",e[e.Choice=6]="Choice",e[e.Computed=12]="Computed",e[e.ContentTypeId=25]="ContentTypeId",e[e.Counter=5]="Counter",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.Currency=10]="Currency",e[e.DateTime=4]="DateTime",e[e.Error=24]="Error",e[e.File=18]="File",e[e.Geolocation=31]="Geolocation",e[e.GridChoice=16]="GridChoice",e[e.Guid=14]="Guid",e[e.Integer=1]="Integer",e[e.Invalid=0]="Invalid",e[e.Lookup=7]="Lookup",e[e.MaxItems=31]="MaxItems",e[e.ModStat=23]="ModStat",e[e.MultiChoice=15]="MultiChoice",e[e.Note=3]="Note",e[e.Number=9]="Number",e[e.PageSeparator=26]="PageSeparator",e[e.Recurrence=21]="Recurrence",e[e.Text=2]="Text",e[e.ThreadIndex=27]="ThreadIndex",e[e.Threading=13]="Threading",e[e.URL=11]="URL",e[e.User=20]="User",e[e.WorkflowEventType=30]="WorkflowEventType",e[e.WorkflowStatus=28]="WorkflowStatus"}(e.FieldType||(e.FieldType={}));e.FieldType;!function(e){e[e.FormPage=2]="FormPage",e[e.StandardPage=0]="StandardPage",e[e.WikiPage=1]="WikiPage"}(e.FileTemplateType||(e.FileTemplateType={}));e.FileTemplateType;!function(e){e[e.AccessRequest=160]="AccessRequest",e[e.AdminTasks=1200]="AdminTasks",e[e.Agenda=201]="Agenda",e[e.AppDataCatalog=125]="AppDataCatalog",e[e.Announcements=104]="Announcements",e[e.CallTrack=404]="CallTrack",e[e.Categories=303]="Categories",e[e.Circulation=405]="Circulation",e[e.Comments=302]="Comments",e[e.Contacts=105]="Contacts",e[e.CustomGrid=120]="CustomGrid",e[e.DataConnectionLibrary=130]="DataConnectionLibrary",e[e.DataSources=110]="DataSources",e[e.Decision=204]="Decision",e[e.DesignCatalog=124]="DesignCatalog",e[e.DeveloperSiteDraftApps=1230]="DeveloperSiteDraftApps",e[e.DiscussionBoard=108]="DiscussionBoard",e[e.DocumentLibrary=101]="DocumentLibrary",e[e.Events=106]="Events",e[e.ExternalList=600]="ExternalList",e[e.Facility=402]="Facility",e[e.GanttTasks=150]="GanttTasks",e[e.GenericList=100]="GenericList",e[e.HealthReports=1221]="HealthReports",e[e.HealthRules=1220]="HealthRules",e[e.HelpLibrary=151]="HelpLibrary",e[e.Holidays=421]="Holidays",e[e.HomePageLibrary=212]="HomePageLibrary",e[e.IMEDic=499]="IMEDic",e[e.IssueTracking=1100]="IssueTracking",e[e.Links=103]="Links",e[e.ListTemplateCatalog=114]="ListTemplateCatalog",e[e.MasterPageCatalog=116]="MasterPageCatalog",e[e.MaintenanceLogs=175]="MaintenanceLogs",e[e.MeetingObjective=207]="MeetingObjective",e[e.Meetings=200]="Meetings",e[e.MeetingUser=202]="MeetingUser",e[e.MySiteDocumentLibrary=700]="MySiteDocumentLibrary",e[e.Posts=301]="Posts",e[e.NoCodePublic=122]="NoCodePublic",e[e.NoCodeWorkflows=117]="NoCodeWorkflows",e[e.PictureLibrary=109]="PictureLibrary",e[e.SolutionCatalog=121]="SolutionCatalog",e[e.Survey=102]="Survey",e[e.Tasks=107]="Tasks",e[e.TasksWithTimelineAndHierarchy=171]="TasksWithTimelineAndHierarchy",e[e.TextBox=210]="TextBox",e[e.ThemeCatalog=123]="ThemeCatalog",e[e.ThingsToBring=211]="ThingsToBring",e[e.Timecard=420]="Timecard",e[e.UserInformation=112]="UserInformation",e[e.WebPageLibrary=119]="WebPageLibrary",e[e.WebPartCatalog=113]="WebPartCatalog",e[e.WebTemplateCatalog=111]="WebTemplateCatalog",e[e.Whereabouts=403]="Whereabouts",e[e.WorkflowHistory=140]="WorkflowHistory",e[e.WorkflowProcess=118]="WorkflowProcess",e[e.XMLForm=115]="XMLForm"}(e.ListTemplateType||(e.ListTemplateType={}));e.ListTemplateType;!function(e){e[e.DefaultView=0]="DefaultView",e[e.DialogView=2]="DialogView",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.Invalid=-1]="Invalid",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.NormalView=1]="NormalView",e[e.Page_MAXITEMS=11]="Page_MAXITEMS",e[e.SolutionForm=10]="SolutionForm",e[e.View=3]="View"}(e.PageType||(e.PageType={}));e.PageType;!function(e){e[e.Administrator=5]="Administrator",e[e.Contributor=3]="Contributor",e[e.Editor=6]="Editor",e[e.Guest=1]="Guest",e[e.None=0]="None",e[e.Reader=2]="Reader",e[e.WebDesigner=4]="WebDesigner"}(e.RoleType||(e.RoleType={}));e.RoleType;!function(e){e[e.None=0]="None",e[e.List=1]="List",e[e.ContentType=2]="ContentType",e[e.ProgId=3]="ProgId",e[e.FileType=4]="FileType"}(e.UserCustomActionRegistrationType||(e.UserCustomActionRegistrationType={}));e.UserCustomActionRegistrationType;!function(e){e[e.Calendar=524288]="Calendar",e[e.Chart=131072]="Chart",e[e.Gantt=67108864]="Gantt",e[e.Grid=2048]="Grid",e[e.Html=1]="Html",e[e.Recurrence=8193]="Recurrence"}(e.ViewType||(e.ViewType={}));e.ViewType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t=function(){function t(t){this.promise=new e.Utils.Promise(t),this.loadDependencies()}return Object.defineProperty(t.prototype,"MAX_WAIT",{get:function(){return 5},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"SCRIPTS",{get:function(){return["MicrosoftAjax.js","init.js","sp.runtime.js","sp.js","sp.core.js","core.js"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageContextExistsFl",{get:function(){return window.hasOwnProperty("_spPageContextInfo")},enumerable:!0,configurable:!0}),t.prototype.loadDependencies=function(){if(this.pageContextExistsFl)this.promise.resolve();else{for(var e in this.SCRIPTS){var t=document.createElement("script");t.setAttribute("src","/_layouts/15/"+e),t.setAttribute("type","text/javascript"),document.head.appendChild(t)}this.waitForPageContext()}},t.prototype.waitForPageContext=function(){var e=0,t=window.setInterval(function(){(this.pageContextExists()||++e>=this.MAX_WAIT)&&(window.clearInterval(t),this.promise.resolve())},10)},t}();e.Dependencies=t}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function s(e,t,s){this.methodInfo=t,this.methodInfo.argValues=s,this.methodInfo.name="string"==typeof this.methodInfo.name?this.methodInfo.name:e,this.generateParams(),this.methodUrl=this.generateUrl()}return Object.defineProperty(s.prototype,"body",{get:function(){return this.methodData},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replaceEndpointFl",{get:function(){return!!this.methodInfo.replaceEndpointFl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"requestMethod",{get:function(){if("string"==typeof this.methodInfo.requestMethod)return this.methodInfo.requestMethod;switch(this.methodInfo.requestType){case e.Types.RequestType.Delete:case e.Types.RequestType.Post:case e.Types.RequestType.PostWithArgs:case e.Types.RequestType.PostWithArgsInBody:case e.Types.RequestType.PostWithArgsInQS:case e.Types.RequestType.PostWithArgsValueOnly:case e.Types.RequestType.PostReplace:return"POST";default:return"GET"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this.methodUrl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInBody",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInBody||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInBody},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInQS",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInQS||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInQS},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isTemplate",{get:function(){return!!this.methodInfo.data},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replace",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetReplace||this.methodInfo.requestType==e.Types.RequestType.PostReplace},enumerable:!0,configurable:!0}),s.prototype.generateParams=function(){var e={};if(null!=this.methodInfo.argValues){if(this.methodInfo.argNames)for(var t=0;t<this.methodInfo.argNames.length&&t<this.methodInfo.argValues.length;t++){var s=this.methodInfo.argNames[t],r=this.methodInfo.argValues[t];switch(typeof this.methodInfo.argValues[t]){case"boolean":e[s]=this.methodInfo.argValues[t]?"true":"false";break;case"number":e[s]=this.methodInfo.argValues[t];break;default:e[s]=r}}var a=!0;for(var i in e){a=!1;break}if(this.methodParams=a?null:e,this.methodParams&&this.isTemplate){"string"!=typeof this.methodInfo.data&&(this.methodInfo.data=JSON.stringify(this.methodInfo.data));for(var n in this.methodParams)this.methodInfo.data=this.methodInfo.data.replace("[["+n+"]]",this.methodParams[n].replace(/"/g,'\\"').replace(/\n/g,""));this.methodData=JSON.parse(this.methodInfo.data)}this.methodInfo.argValues&&this.methodInfo.argValues.length>0&&(null==this.methodInfo.argNames?this.methodData=this.methodInfo.argValues[0]:this.methodInfo.argValues.length>this.methodInfo.argNames.length&&(this.methodData=this.methodInfo.argValues[this.methodInfo.argNames.length])),this.methodInfo.metadataType&&(this.methodInfo.argNames?(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata={type:this.methodInfo.metadataType}:(this.methodData||this.methodParams).__metadata={type:this.methodInfo.metadataType})}},s.prototype.generateUrl=function(){var s=this.methodInfo.name;if(this.methodInfo.requestType==e.Types.RequestType.Delete&&(s="deleteObject"),this.passDataInBody){var r=this.methodData||this.methodParams;this.methodData=JSON.stringify(r)}if(this.passDataInQS){var r=this.methodParams||this.methodData;s+="(@v)?@v="+("string"==typeof r?"'"+encodeURIComponent(r)+"'":JSON.stringify(r))}if(this.replace)for(var a in this.methodParams)s=s.replace("[["+a+"]]",encodeURIComponent(this.methodParams[a]));else if(this.methodInfo.requestType==e.Types.RequestType.OData){var i=new t.OData(this.methodParams.oData);s="?"+i.QueryString}else if(!this.passDataInBody&&!this.passDataInQS){var n="",r=this.methodParams||this.methodData;if(r){r=r&&"object"==typeof r?r:{value:r};for(var o in r){var u=r[o];switch(u="string"==typeof u?"'"+u+"'":u,this.methodInfo.requestType){case e.Types.RequestType.GetWithArgsValueOnly:case e.Types.RequestType.PostWithArgsValueOnly:n+=u+", ";break;default:n+=o+"="+u+", "}}}s+=n.length>0?"("+n.replace(/, $/,"")+")":""}return s},s}();t.MethodInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this._expand=e&&e.Expand?e.Expand:[],this._filter=e&&e.Filter?e.Filter:null,this._orderBy=e&&e.OrderBy?e.OrderBy:[],this._select=e&&e.Select?e.Select:[],this._skip=e&&e.Skip?e.Skip:null,this._top=e&&e.Top?e.Top:null}return Object.defineProperty(e.prototype,"Expand",{get:function(){return this._expand},set:function(e){this._expand=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OrderBy",{get:function(){return this._orderBy},set:function(e){this._orderBy=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"QueryString",{get:function(){var e="",t=[];t.push(this.getQSValue("$select",this._select)),t.push(this.getQSValue("$orderby",this._orderBy)),this._top?t.push("$top="+this._top):null,this._skip?t.push("$skip="+this._skip):null,this._filter?t.push("$filter="+this._filter):null,t.push(this.getQSValue("$expand",this._expand));for(var s=0,r=t;s<r.length;s++){var a=r[s];a&&""!=a&&(e+=(""==e?"":"&")+a)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Select",{get:function(){return this._select},set:function(e){this._select=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Skip",{get:function(){return this._skip},set:function(e){this._skip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Top",{get:function(){return this._top},set:function(e){this._top=e},enumerable:!0,configurable:!0}),e.prototype.getQSValue=function(e,t){return t.length>0?e+"="+t.join(","):""},e}();e.OData=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this.callback=e,this.resolvedFl=!1}return e.prototype.done=function(e){this.callback=e||this.callback,this.resolvedFl&&this.executeMethod()},e.prototype.resolve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];this.args=e,this.resolvedFl=!0,this.executeMethod()},e.prototype.executeMethod=function(){this.callback&&"function"==typeof this.callback&&this.callback.apply(this,this.args)},e}();e.Promise=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function t(t,s,r){this.asyncFl=t,this.promise=new e.Promise(r||s.callback),this.targetInfo=s,this.xhr=this.createXHR(),this.execute()}return Object.defineProperty(t.prototype,"completedFl",{get:function(){return!!this.xhr&&4==this.xhr.readyState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"response",{get:function(){return this.xhr?this.xhr.response:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"request",{get:function(){return this.xhr?this.xhr:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestData",{get:function(){return this.targetInfo.requestData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestUrl",{get:function(){return this.xhr?this.xhr.responseURL:null},enumerable:!0,configurable:!0}),t.prototype.createXHR=function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("This browser does not support xml http requests.")},t.prototype.defaultHeaders=function(){var e=document.querySelector("#__REQUESTDIGEST");if(e=e?e.value:"",this.xhr.setRequestHeader("Accept","application/json;odata=verbose"),this.xhr.setRequestHeader("Content-Type","application/json;odata=verbose"),this.xhr.setRequestHeader("X-HTTP-Method",this.targetInfo.requestMethod),this.xhr.setRequestHeader("X-RequestDigest",e),"DELETE"!=this.targetInfo.requestMethod&&"MERGE"!=this.targetInfo.requestMethod||this.xhr.setRequestHeader("IF-MATCH","*"),this.targetInfo.requestHeaders)for(var t in this.targetInfo.requestHeaders)this.xhr.setRequestHeader(t,this.targetInfo.requestHeaders[t])},t.prototype.execute=function(){var e=this;return null==this.xhr?null:(this.xhr.open("GET"==this.targetInfo.requestMethod?"GET":"POST",this.targetInfo.requestUrl,this.asyncFl),this.asyncFl&&(this.xhr.onreadystatechange=function(){4==e.xhr.readyState&&e.promise.resolve(e)}),this.targetInfo.bufferFl&&this.asyncFl?this.xhr.responseType="arraybuffer":(this.defaultHeaders(),this.targetInfo.requestData&&"string"!=typeof this.targetInfo.requestData&&(this.targetInfo.requestData=this.targetInfo.requestData.byteLength?this.targetInfo.requestData:JSON.stringify(this.targetInfo.requestData))),void(this.targetInfo.bufferFl||null==this.targetInfo.requestData?this.xhr.send():this.xhr.send(this.targetInfo.requestData)))},t}();e.Request=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function t(e){this.targetInfo=e||{},this.requestData=this.targetInfo.data,this.requestMethod=this.targetInfo.method?this.targetInfo.method:"GET",this.setRequestUrl()}return Object.defineProperty(t.prototype,"bufferFl",{get:function(){return this.targetInfo.bufferFl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callback",{get:function(){return this.targetInfo.callback},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return window._spPageContextInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAppWeb",{get:function(){return this.context.isAppWeb},enumerable:!0,configurable:!0}),t.prototype.getDomainUrl=function(){var e=document.location.href;return this.isAppWeb&&(e=this.getQueryStringValue("SPHostUrl")+""),e=e.split("/"),e&&e.length>=2&&(e=e[0]+"//"+e[2]),e},t.prototype.getQueryStringValue=function(e){var t=document.location.href.split("?");t=t.length>1?t[1]:t[0];for(var s=t.split("&"),r=0;r<s.length;r++){var a=s[r].split("=");if(1!=a.length&&decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null},t.prototype.setRequestUrl=function(){var t=this.getQueryStringValue("SPHostUrl"),s="{{Url}}/_api/{{EndPoint}}{{TargetUrl}}";if(e.DefaultRequestToHostWebFl&&this.isAppWeb&&null==this.targetInfo.url&&(this.targetInfo.url=t),null==this.targetInfo.url)this.targetInfo.url=this.context[0==this.targetInfo.defaultToWebFl?"siteAbsoluteUrl":"webAbsoluteUrl"];else if(/\/_api\//.test(this.targetInfo.url)){var r=this.targetInfo.url.split("/_api/");return void(this.isAppWeb&&r[0]!=this.context.webAbsoluteUrl?this.requestUrl=this.context.webAbsoluteUrl+"/_api/SP.AppContextSite(@target)/"+r[1]+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:"")+"?@target='"+r[0]+"'":this.requestUrl=this.targetInfo.url+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:""))}if(0!=this.targetInfo.url.indexOf("http")&&(this.targetInfo.url=this.getDomainUrl()+this.targetInfo.url),this.isAppWeb&&this.targetInfo.url!=this.context.webAbsoluteUrl){var a=this.targetInfo.endpoint+(this.targetInfo.endpoint.indexOf("?")>0?"&":"?");this.requestUrl=s.replace(/{{Url}}/g,this.context.webAbsoluteUrl).replace(/{{EndPoint}}/g,"SP.AppContextSite(@target)/"+a).replace(/{{TargetUrl}}/g,"@target='"+this.targetInfo.url+"'")}else this.requestUrl=s.replace(/{{Url}}/g,this.targetInfo.url).replace(/{{EndPoint}}/g,this.targetInfo.endpoint).replace(/{{TargetUrl}}/g,"")},t}();t.TargetInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){e.Library.attachmentfiles={add:{argNames:["name"],name:"",requestType:e.Types.RequestType.PostWithArgs},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttype={properties:["FieldLinks|fieldlinks|('[Name]')|fieldlink","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","WorkflowAssociations"],delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.ContentType",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttypes={add:{metadataType:"SP.ContentType",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addAvailableContentType:{argNames:["contentTypeId"],requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"contenttype"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(t){function s(e){t.call(this,e),this.defaultToWebFl=!0,this.targetInfo.endpoint="SP.Utilities.Utility.SendEmail"}return __extends(s,t),s.prototype.send=function(t){t.To&&("string"==typeof t.To?t.To={results:[t.To]}:t.To={results:t.To}),this.executeMethod("send",{argNames:["properties"],name:"",metadataType:"SP.Utilities.EmailProperties",requestType:e.Types.RequestType.PostWithArgsInBody},[t])},s}(e.Base);e.Email=t}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinition={delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.EventReceiverDefinition",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinitions={add:{metadataType:"SP.EventReceiverDefinition",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"eventreceiver"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.field={delete:{requestType:e.Types.RequestType.Delete},setShowInDisplayForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInEditForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInNewForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.fieldlinks={add:{argNames:["data"],metadataType:"SP.FieldLink",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"fieldlink"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.fields={add:{metadataType:"SP.Field",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addField:{argNames:["parameters"],metadataType:"SP.FieldCreationInformation",name:"addField",requestType:e.Types.RequestType.PostWithArgsInBody},addDependentLookupField:{argNames:["displayname","primarylookupfieldid","showfield"],requestType:e.Types.RequestType.PostWithArgs},createFieldAsXml:{argNames:["schemaXml"],requestType:e.Types.RequestType.PostWithArgsInBody,data:{parameters:{__metadata:{type:"SP.XmlSchemaFieldCreationInformation" | ||
var $REST;!function(e){e.DefaultRequestToHostWebFl=!1,e.Library={};var t=function(){function t(e){this.targetInfo=e||{},this.requestType=0}return Object.defineProperty(t.prototype,"response",{get:function(){return this.request?this.request.response:null},enumerable:!0,configurable:!0}),t.prototype.execute=function(t){var s=this,r="boolean"==typeof t?null:t,a="boolean"==typeof t&&t;return this.base.responses.push(this),a?this.executeRequest(!a,r):(this.promise=new e.Utils.Promise(r||this.targetInfo.callback),this.executeRequest(!a,function(){s.waitForRequestsToComplete(function(){var e=s.base.responses;s.base.responses=[],s.promise.resolve.apply(s.promise,e)})}))},t.prototype.next=function(e){return this.base.responses.push(this),this.executeRequest(!0,e),this.base},t.prototype.addMethods=function(t,s){var r=s.results&&s.results.length>0,a=r?s.results[0].__metadata:s.__metadata,i=a&&a.type?a.type:this.targetInfo.endpoint;i=i.split("/"),i=i[i.length-1],i=i.split("."),i=i[i.length-1].toLowerCase(),i+=r&&s.results.length>1?"s":"",(/^field/.test(i)||/field$/.test(i))&&"fieldlinks"!=i&&"fields"!=i?i="field"+(r?"s":""):/item$/.test(i)?i="listitem":/items$/.test(i)&&(i="items");var n=e.Library[i];if(n)for(var o in n){var u=n[o]?n[o]:{};if("properties"!=o)"function"==typeof u.metadataType&&(u=JSON.parse(JSON.stringify(u)),u.metadataType=n[o].metadataType(t)),t[o]=new Function("return this.executeMethod('"+o+"', "+JSON.stringify(u)+", arguments);");else for(var p=0,l=u;p<l.length;p++){var y=l[p],d=y.split("|"),T=d[0],g=d.length>1?d[1]:null,c=d.length>2?d[2]:null,h=d.length>3?d[3]:null;4==d.length?(c=c.replace(/'/g,"\\'"),t[T]=new Function("name","name = name ? '"+T+c+"'.replace(/\\[Name\\]/g, name) : null;return this.getProperty(name ? name : '"+T+"', name ? '"+h+"' : '"+g+"');")):t[T]=new Function("return this.getProperty('"+T+"', '"+g+"');")}}},t.prototype.addProperties=function(e,t){for(var s in t){var r=t[s];"__metadata"!=s&&"results"!=s&&(r&&r.__deferred&&r.__deferred.uri?e["get_"+s]=e["get_"+s]?e["get_"+s]:new Function("return this.getCollection('"+s+"', arguments);"):e[s]=r)}},t.prototype.executeMethod=function(s,r,a){var i=null==this.request&&this.parent&&this.parent.request?this.parent:this,n=null,o=this.d?this.d.__metadata:this.__metadata;o&&o.uri?(n={url:o.uri},r.inheritMetadataType&&(r.metadataType=o.type),i.updateMetadataUri(o,n)):n=Object.create(this.targetInfo);var u=new e.Utils.MethodInfo(s,r,a);n.bufferFl=r.requestType==e.Types.RequestType.GetBuffer,n.data=u.body,n.method=u.requestMethod,u.replaceEndpointFl?n.endpoint=u.url:u.url&&u.url.length>0&&(n.endpoint=(n.endpoint?n.endpoint+"/":"")+u.url);var p=new t(n);return p.base=this.base?this.base:this,p.parent=this,p.requestType=r.requestType,r.returnType?p.addMethods(p,{__metadata:{type:r.returnType}}):null,p},t.prototype.executeRequest=function(t,s){var r=this;return t?void(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo),function(){r.updateDataObject(),s?s(r):null})):(this.request=new e.Utils.Request(t,new e.Utils.TargetInfo(this.targetInfo)),this.updateDataObject()||this)},t.prototype.getCollection=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e,r.callback=s&&"function"==typeof s[0]?s[0]:null;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,i},t.prototype.getProperty=function(e,s){var r=Object.create(this.targetInfo),a=this.d?this.d.__metadata:this.__metadata;a&&a.uri?(r.url=a.uri,this.updateMetadataUri(a,r),r.endpoint=e):r.endpoint+="/"+e;var i=new t(r);return i.base=this.base?this.base:this,i.parent=this,s?this.addMethods(i,{__metadata:{type:s}}):null,i},t.prototype.updateDataCollection=function(e){var t=this;e&&(this.results=e,this.existsFl=e.length>0,1==e.length?(this.updateMetadata(e[0]),this.addProperties(this,e[0]),this.addMethods(e[0],e[0]),e[0].executeMethod=this.executeMethod,e[0].parent=this,this.d.__metadata=e[0].__metadata):setTimeout(function(){for(var e=t.results,s=0,r=e;s<r.length;s++){var a=r[s];a.executeMethod=t.executeMethod,a.parent=t,t.updateMetadata(a),t.addMethods(a,a)}},10))},t.prototype.updateDataObject=function(){if(this.request.request.status<400)if(this.requestType==e.Types.RequestType.GetBuffer)this.existsFl=null!=this.request.response;else{var t=this.request.response;t=""===t?"{}":t;var s=JSON.parse(t);this.existsFl="boolean"==typeof this.Exists?this.Exists:null==s.error,s.d&&(this.d=s.d,this.updateMetadata(s.d),this.addProperties(this,s.d),this.addMethods(this,s.d),this.updateDataCollection(s.d.results))}},t.prototype.updateMetadata=function(e){if(window._spPageContextInfo.isAppWeb){var t=window._spPageContextInfo.webAbsoluteUrl.toLowerCase(),s=e&&e.__metadata&&e.__metadata.uri?e.__metadata.uri.toLowerCase():null,r=this.targetInfo&&this.targetInfo.url?this.targetInfo.url.toLowerCase():null;null!=t&&null!=s&&null!=r&&(e.__metadata.uri=s.replace(t,r))}},t.prototype.updateMetadataUri=function(e,t){/^SP.Field/.test(e.type)||/^SP\..*Field$/.test(e.type)?t.url=t.url.replace(/AvailableFields/,"fields"):/SP.EventReceiverDefinition/.test(e.type)&&(t.url=t.url.replace(/\/EventReceiver\//,"/EventReceivers/"))},t.prototype.waitForRequestsToComplete=function(e){var t=this,s=window.setInterval(function(){for(var r=0,a=t.base.responses;r<a.length;r++){var i=a[r];if(null==i.request||!i.request.completedFl)return}window.clearInterval(s),e()},10)},t}();e.Base=t}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Custom=0]="Custom",e[e.Delete=1]="Delete",e[e.Merge=2]="Merge",e[e.OData=3]="OData",e[e.Get=10]="Get",e[e.GetWithArgs=11]="GetWithArgs",e[e.GetWithArgsInBody=12]="GetWithArgsInBody",e[e.GetWithArgsInQS=13]="GetWithArgsInQS",e[e.GetWithArgsValueOnly=14]="GetWithArgsValueOnly",e[e.GetReplace=15]="GetReplace",e[e.Post=20]="Post",e[e.PostWithArgs=21]="PostWithArgs",e[e.PostWithArgsInBody=22]="PostWithArgsInBody",e[e.PostWithArgsInQS=23]="PostWithArgsInQS",e[e.PostWithArgsValueOnly=24]="PostWithArgsValueOnly",e[e.PostReplace=25]="PostReplace",e[e.GetAppendMethodToEndPoint=30]="GetAppendMethodToEndPoint",e[e.GetBuffer=31]="GetBuffer",e[e.GetDataAsParameter=32]="GetDataAsParameter",e[e.GetDataInBody=33]="GetDataInBody",e[e.GetDataInBodyNoArgs=34]="GetDataInBodyNoArgs",e[e.PostAppendMethodToEndPoint=35]="PostAppendMethodToEndPoint",e[e.PostDataAsParameter=36]="PostDataAsParameter",e[e.PostDataInBody=37]="PostDataInBody",e[e.PostDataInBodyNoArgs=38]="PostDataInBodyNoArgs"}(e.RequestType||(e.RequestType={}));e.RequestType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){!function(e){e[e.Invalid=0]="Invalid",e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(e.ControlMode||(e.ControlMode={}));e.ControlMode;!function(e){e[e.Approver=2]="Approver",e[e.Author=1]="Author",e[e.Reader=0]="Reader"}(e.DraftVisibilityType||(e.DraftVisibilityType={}));e.DraftVisibilityType;!function(e){e[e.ItemAdding=1]="ItemAdding",e[e.ItemUpdating=2]="ItemUpdating",e[e.ItemDeleting=3]="ItemDeleting",e[e.ItemCheckingIn=4]="ItemCheckingIn",e[e.ItemCheckingOut=5]="ItemCheckingOut",e[e.ItemUncheckingOut=6]="ItemUncheckingOut",e[e.ItemAttachmentAdding=7]="ItemAttachmentAdding",e[e.ItemAttachmentDeleting=8]="ItemAttachmentDeleting",e[e.ItemFileMoving=9]="ItemFileMoving",e[e.ItemVersionDeleting=11]="ItemVersionDeleting",e[e.FieldAdding=101]="FieldAdding",e[e.FieldUpdating=102]="FieldUpdating",e[e.FieldDeleting=103]="FieldDeleting",e[e.ListAdding=104]="ListAdding",e[e.ListDeleting=105]="ListDeleting",e[e.SiteDeleting=201]="SiteDeleting",e[e.WebDeleting=202]="WebDeleting",e[e.WebMoving=203]="WebMoving",e[e.WebAdding=204]="WebAdding",e[e.GroupAdding=301]="GroupAdding",e[e.GroupUpdating=302]="GroupUpdating",e[e.GroupDeleting=303]="GroupDeleting",e[e.GroupUserAdding=304]="GroupUserAdding",e[e.GroupUserDeleting=305]="GroupUserDeleting",e[e.RoleDefinitionAdding=306]="RoleDefinitionAdding",e[e.RoleDefinitionUpdating=307]="RoleDefinitionUpdating",e[e.RoleDefinitionDeleting=308]="RoleDefinitionDeleting",e[e.RoleAssignmentAdding=309]="RoleAssignmentAdding",e[e.RoleAssignmentDeleting=310]="RoleAssignmentDeleting",e[e.InheritanceBreaking=311]="InheritanceBreaking",e[e.InheritanceResetting=312]="InheritanceResetting",e[e.WorkflowStarting=501]="WorkflowStarting",e[e.ItemAdded=10001]="ItemAdded",e[e.ItemUpdated=10002]="ItemUpdated",e[e.ItemDeleted=10003]="ItemDeleted",e[e.ItemCheckedIn=10004]="ItemCheckedIn",e[e.ItemCheckedOut=10005]="ItemCheckedOut",e[e.ItemUncheckedOut=10006]="ItemUncheckedOut",e[e.ItemAttachmentAdded=10007]="ItemAttachmentAdded",e[e.ItemAttachmentDeleted=10008]="ItemAttachmentDeleted",e[e.ItemFileMoved=10009]="ItemFileMoved",e[e.ItemFileConverted=10010]="ItemFileConverted",e[e.ItemVersionDeleted=10011]="ItemVersionDeleted",e[e.FieldAdded=10101]="FieldAdded",e[e.FieldUpdated=10102]="FieldUpdated",e[e.FieldDeleted=10103]="FieldDeleted",e[e.ListAdded=10104]="ListAdded",e[e.ListDeleted=10105]="ListDeleted",e[e.SiteDeleted=10201]="SiteDeleted",e[e.WebDeleted=10202]="WebDeleted",e[e.WebMoved=10203]="WebMoved",e[e.WebProvisioned=10204]="WebProvisioned",e[e.GroupAdded=10301]="GroupAdded",e[e.GroupUpdated=10302]="GroupUpdated",e[e.GroupDeleted=10303]="GroupDeleted",e[e.GroupUserAdded=10304]="GroupUserAdded",e[e.GroupUserDeleted=10305]="GroupUserDeleted",e[e.RoleDefinitionAdded=10306]="RoleDefinitionAdded",e[e.RoleDefinitionUpdated=10307]="RoleDefinitionUpdated",e[e.RoleDefinitionDeleted=10308]="RoleDefinitionDeleted",e[e.RoleAssignmentAdded=10309]="RoleAssignmentAdded",e[e.RoleAssignmentDeleted=10310]="RoleAssignmentDeleted",e[e.InheritanceBroken=10311]="InheritanceBroken",e[e.InheritanceReset=10312]="InheritanceReset",e[e.WorkflowStarted=10501]="WorkflowStarted",e[e.WorkflowPostponed=10502]="WorkflowPostponed",e[e.WorkflowCompleted=10503]="WorkflowCompleted",e[e.EntityInstanceAdded=10601]="EntityInstanceAdded",e[e.EntityInstanceUpdated=10602]="EntityInstanceUpdated",e[e.EntityInstanceDeleted=10603]="EntityInstanceDeleted",e[e.AppInstalled=10701]="AppInstalled",e[e.AppUpgraded=10702]="AppUpgraded",e[e.AppUninstalling=10703]="AppUninstalling",e[e.EmailReceived=2e4]="EmailReceived",e[e.ContextEvent=32766]="ContextEvent"}(e.EventReceiverType||(e.EventReceiverType={}));e.EventReceiverType;!function(e){e[e.Asynchronous=2]="Asynchronous",e[e.Synchronization=1]="Synchronization"}(e.EventReceiverSynchronizationType||(e.EventReceiverSynchronizationType={}));e.EventReceiverSynchronizationType;!function(e){e[e.AllDayEvent=29]="AllDayEvent",e[e.Attachments=19]="Attachments",e[e.Boolean=8]="Boolean",e[e.Calculated=17]="Calculated",e[e.Choice=6]="Choice",e[e.Computed=12]="Computed",e[e.ContentTypeId=25]="ContentTypeId",e[e.Counter=5]="Counter",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.Currency=10]="Currency",e[e.DateTime=4]="DateTime",e[e.Error=24]="Error",e[e.File=18]="File",e[e.Geolocation=31]="Geolocation",e[e.GridChoice=16]="GridChoice",e[e.Guid=14]="Guid",e[e.Integer=1]="Integer",e[e.Invalid=0]="Invalid",e[e.Lookup=7]="Lookup",e[e.MaxItems=31]="MaxItems",e[e.ModStat=23]="ModStat",e[e.MultiChoice=15]="MultiChoice",e[e.Note=3]="Note",e[e.Number=9]="Number",e[e.PageSeparator=26]="PageSeparator",e[e.Recurrence=21]="Recurrence",e[e.Text=2]="Text",e[e.ThreadIndex=27]="ThreadIndex",e[e.Threading=13]="Threading",e[e.URL=11]="URL",e[e.User=20]="User",e[e.WorkflowEventType=30]="WorkflowEventType",e[e.WorkflowStatus=28]="WorkflowStatus"}(e.FieldType||(e.FieldType={}));e.FieldType;!function(e){e[e.FormPage=2]="FormPage",e[e.StandardPage=0]="StandardPage",e[e.WikiPage=1]="WikiPage"}(e.FileTemplateType||(e.FileTemplateType={}));e.FileTemplateType;!function(e){e[e.AccessRequest=160]="AccessRequest",e[e.AdminTasks=1200]="AdminTasks",e[e.Agenda=201]="Agenda",e[e.AppDataCatalog=125]="AppDataCatalog",e[e.Announcements=104]="Announcements",e[e.CallTrack=404]="CallTrack",e[e.Categories=303]="Categories",e[e.Circulation=405]="Circulation",e[e.Comments=302]="Comments",e[e.Contacts=105]="Contacts",e[e.CustomGrid=120]="CustomGrid",e[e.DataConnectionLibrary=130]="DataConnectionLibrary",e[e.DataSources=110]="DataSources",e[e.Decision=204]="Decision",e[e.DesignCatalog=124]="DesignCatalog",e[e.DeveloperSiteDraftApps=1230]="DeveloperSiteDraftApps",e[e.DiscussionBoard=108]="DiscussionBoard",e[e.DocumentLibrary=101]="DocumentLibrary",e[e.Events=106]="Events",e[e.ExternalList=600]="ExternalList",e[e.Facility=402]="Facility",e[e.GanttTasks=150]="GanttTasks",e[e.GenericList=100]="GenericList",e[e.HealthReports=1221]="HealthReports",e[e.HealthRules=1220]="HealthRules",e[e.HelpLibrary=151]="HelpLibrary",e[e.Holidays=421]="Holidays",e[e.HomePageLibrary=212]="HomePageLibrary",e[e.IMEDic=499]="IMEDic",e[e.IssueTracking=1100]="IssueTracking",e[e.Links=103]="Links",e[e.ListTemplateCatalog=114]="ListTemplateCatalog",e[e.MasterPageCatalog=116]="MasterPageCatalog",e[e.MaintenanceLogs=175]="MaintenanceLogs",e[e.MeetingObjective=207]="MeetingObjective",e[e.Meetings=200]="Meetings",e[e.MeetingUser=202]="MeetingUser",e[e.MySiteDocumentLibrary=700]="MySiteDocumentLibrary",e[e.Posts=301]="Posts",e[e.NoCodePublic=122]="NoCodePublic",e[e.NoCodeWorkflows=117]="NoCodeWorkflows",e[e.PictureLibrary=109]="PictureLibrary",e[e.SolutionCatalog=121]="SolutionCatalog",e[e.Survey=102]="Survey",e[e.Tasks=107]="Tasks",e[e.TasksWithTimelineAndHierarchy=171]="TasksWithTimelineAndHierarchy",e[e.TextBox=210]="TextBox",e[e.ThemeCatalog=123]="ThemeCatalog",e[e.ThingsToBring=211]="ThingsToBring",e[e.Timecard=420]="Timecard",e[e.UserInformation=112]="UserInformation",e[e.WebPageLibrary=119]="WebPageLibrary",e[e.WebPartCatalog=113]="WebPartCatalog",e[e.WebTemplateCatalog=111]="WebTemplateCatalog",e[e.Whereabouts=403]="Whereabouts",e[e.WorkflowHistory=140]="WorkflowHistory",e[e.WorkflowProcess=118]="WorkflowProcess",e[e.XMLForm=115]="XMLForm"}(e.ListTemplateType||(e.ListTemplateType={}));e.ListTemplateType;!function(e){e[e.DefaultView=0]="DefaultView",e[e.DialogView=2]="DialogView",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.Invalid=-1]="Invalid",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.NormalView=1]="NormalView",e[e.Page_MAXITEMS=11]="Page_MAXITEMS",e[e.SolutionForm=10]="SolutionForm",e[e.View=3]="View"}(e.PageType||(e.PageType={}));e.PageType;!function(e){e[e.Administrator=5]="Administrator",e[e.Contributor=3]="Contributor",e[e.Editor=6]="Editor",e[e.Guest=1]="Guest",e[e.None=0]="None",e[e.Reader=2]="Reader",e[e.WebDesigner=4]="WebDesigner"}(e.RoleType||(e.RoleType={}));e.RoleType;!function(e){e[e.None=0]="None",e[e.List=1]="List",e[e.ContentType=2]="ContentType",e[e.ProgId=3]="ProgId",e[e.FileType=4]="FileType"}(e.UserCustomActionRegistrationType||(e.UserCustomActionRegistrationType={}));e.UserCustomActionRegistrationType;!function(e){e[e.Calendar=524288]="Calendar",e[e.Chart=131072]="Chart",e[e.Gantt=67108864]="Gantt",e[e.Grid=2048]="Grid",e[e.Html=1]="Html",e[e.Recurrence=8193]="Recurrence"}(e.ViewType||(e.ViewType={}));e.ViewType}(t=e.Types||(e.Types={}))}($REST||($REST={}));var $REST;!function(e){var t=function(){function t(t){this.promise=new e.Utils.Promise(t),this.loadDependencies()}return Object.defineProperty(t.prototype,"MAX_WAIT",{get:function(){return 5},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"SCRIPTS",{get:function(){return["MicrosoftAjax.js","init.js","sp.runtime.js","sp.js","sp.core.js","core.js"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageContextExistsFl",{get:function(){return window.hasOwnProperty("_spPageContextInfo")},enumerable:!0,configurable:!0}),t.prototype.loadDependencies=function(){if(this.pageContextExistsFl)this.promise.resolve();else{for(var e in this.SCRIPTS){var t=document.createElement("script");t.setAttribute("src","/_layouts/15/"+e),t.setAttribute("type","text/javascript"),document.head.appendChild(t)}this.waitForPageContext()}},t.prototype.waitForPageContext=function(){var e=0,t=window.setInterval(function(){(this.pageContextExists()||++e>=this.MAX_WAIT)&&(window.clearInterval(t),this.promise.resolve())},10)},t}();e.Dependencies=t}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function s(e,t,s){this.methodInfo=t,this.methodInfo.argValues=s,this.methodInfo.name="string"==typeof this.methodInfo.name?this.methodInfo.name:e,this.generateParams(),this.methodUrl=this.generateUrl()}return Object.defineProperty(s.prototype,"body",{get:function(){return this.methodData},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replaceEndpointFl",{get:function(){return!!this.methodInfo.replaceEndpointFl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"requestMethod",{get:function(){if("string"==typeof this.methodInfo.requestMethod)return this.methodInfo.requestMethod;switch(this.methodInfo.requestType){case e.Types.RequestType.Delete:case e.Types.RequestType.Post:case e.Types.RequestType.PostWithArgs:case e.Types.RequestType.PostWithArgsInBody:case e.Types.RequestType.PostWithArgsInQS:case e.Types.RequestType.PostWithArgsValueOnly:case e.Types.RequestType.PostReplace:return"POST";default:return"GET"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this.methodUrl},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInBody",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInBody||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInBody},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"passDataInQS",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetWithArgsInQS||this.methodInfo.requestType==e.Types.RequestType.PostWithArgsInQS},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isTemplate",{get:function(){return!!this.methodInfo.data},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"replace",{get:function(){return this.methodInfo.requestType==e.Types.RequestType.GetReplace||this.methodInfo.requestType==e.Types.RequestType.PostReplace},enumerable:!0,configurable:!0}),s.prototype.generateParams=function(){var e={};if(null!=this.methodInfo.argValues){if(this.methodInfo.argNames)for(var t=0;t<this.methodInfo.argNames.length&&t<this.methodInfo.argValues.length;t++){var s=this.methodInfo.argNames[t],r=this.methodInfo.argValues[t];switch(typeof this.methodInfo.argValues[t]){case"boolean":e[s]=this.methodInfo.argValues[t]?"true":"false";break;case"number":e[s]=this.methodInfo.argValues[t];break;default:e[s]=r}}var a=!0;for(var i in e){a=!1;break}if(this.methodParams=a?null:e,this.methodParams&&this.isTemplate){"string"!=typeof this.methodInfo.data&&(this.methodInfo.data=JSON.stringify(this.methodInfo.data));for(var n in this.methodParams)this.methodInfo.data=this.methodInfo.data.replace("[["+n+"]]",this.methodParams[n].replace(/"/g,'\\"').replace(/\n/g,""));this.methodData=JSON.parse(this.methodInfo.data)}this.methodInfo.argValues&&this.methodInfo.argValues.length>0&&(null==this.methodInfo.argNames?this.methodData=this.methodInfo.argValues[0]:this.methodInfo.argValues.length>this.methodInfo.argNames.length&&(this.methodData=this.methodInfo.argValues[this.methodInfo.argNames.length])),this.methodInfo.metadataType&&(this.methodInfo.argNames?(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata={type:this.methodInfo.metadataType}:(this.methodData||this.methodParams).__metadata={type:this.methodInfo.metadataType})}},s.prototype.generateUrl=function(){var s=this.methodInfo.name;if(this.methodInfo.requestType==e.Types.RequestType.Delete&&(s="deleteObject"),this.passDataInBody){var r=this.methodData||this.methodParams;this.methodData=JSON.stringify(r)}if(this.passDataInQS){var r=this.methodParams||this.methodData;s+="(@v)?@v="+("string"==typeof r?"'"+encodeURIComponent(r)+"'":JSON.stringify(r))}if(this.replace)for(var a in this.methodParams)s=s.replace("[["+a+"]]",encodeURIComponent(this.methodParams[a]));else if(this.methodInfo.requestType==e.Types.RequestType.OData){var i=new t.OData(this.methodParams.oData);s="?"+i.QueryString}else if(!this.passDataInBody&&!this.passDataInQS){var n="",r=this.methodParams||this.methodData;if(r){r=r&&"object"==typeof r?r:{value:r};for(var o in r){var u=r[o];switch(u="string"==typeof u?"'"+u+"'":u,this.methodInfo.requestType){case e.Types.RequestType.GetWithArgsValueOnly:case e.Types.RequestType.PostWithArgsValueOnly:n+=u+", ";break;default:n+=o+"="+u+", "}}}s+=n.length>0?"("+n.replace(/, $/,"")+")":""}return s},s}();t.MethodInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this._expand=e&&e.Expand?e.Expand:[],this._filter=e&&e.Filter?e.Filter:null,this._orderBy=e&&e.OrderBy?e.OrderBy:[],this._select=e&&e.Select?e.Select:[],this._skip=e&&e.Skip?e.Skip:null,this._top=e&&e.Top?e.Top:null}return Object.defineProperty(e.prototype,"Expand",{get:function(){return this._expand},set:function(e){this._expand=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OrderBy",{get:function(){return this._orderBy},set:function(e){this._orderBy=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"QueryString",{get:function(){var e="",t=[];t.push(this.getQSValue("$select",this._select)),t.push(this.getQSValue("$orderby",this._orderBy)),this._top?t.push("$top="+this._top):null,this._skip?t.push("$skip="+this._skip):null,this._filter?t.push("$filter="+this._filter):null,t.push(this.getQSValue("$expand",this._expand));for(var s=0,r=t;s<r.length;s++){var a=r[s];a&&""!=a&&(e+=(""==e?"":"&")+a)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Select",{get:function(){return this._select},set:function(e){this._select=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Skip",{get:function(){return this._skip},set:function(e){this._skip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Top",{get:function(){return this._top},set:function(e){this._top=e},enumerable:!0,configurable:!0}),e.prototype.getQSValue=function(e,t){return t.length>0?e+"="+t.join(","):""},e}();e.OData=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function e(e){this.callback=e,this.resolvedFl=!1}return e.prototype.done=function(e){this.callback=e||this.callback,this.resolvedFl&&this.executeMethod()},e.prototype.resolve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];this.args=e,this.resolvedFl=!0,this.executeMethod()},e.prototype.executeMethod=function(){this.callback&&"function"==typeof this.callback&&this.callback.apply(this,this.args)},e}();e.Promise=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(e){var t=function(){function t(t,s,r){this.asyncFl=t,this.promise=new e.Promise(r||s.callback),this.targetInfo=s,this.xhr=this.createXHR(),this.execute()}return Object.defineProperty(t.prototype,"completedFl",{get:function(){return!!this.xhr&&4==this.xhr.readyState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"response",{get:function(){return this.xhr?this.xhr.response:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"request",{get:function(){return this.xhr?this.xhr:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestData",{get:function(){return this.targetInfo.requestData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestUrl",{get:function(){return this.xhr?this.xhr.responseURL:null},enumerable:!0,configurable:!0}),t.prototype.createXHR=function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("This browser does not support xml http requests.")},t.prototype.defaultHeaders=function(){var e=document.querySelector("#__REQUESTDIGEST");if(e=e?e.value:"",this.xhr.setRequestHeader("Accept","application/json;odata=verbose"),this.xhr.setRequestHeader("Content-Type","application/json;odata=verbose"),this.xhr.setRequestHeader("X-HTTP-Method",this.targetInfo.requestMethod),this.xhr.setRequestHeader("X-RequestDigest",e),"DELETE"!=this.targetInfo.requestMethod&&"MERGE"!=this.targetInfo.requestMethod||this.xhr.setRequestHeader("IF-MATCH","*"),this.targetInfo.requestHeaders)for(var t in this.targetInfo.requestHeaders)this.xhr.setRequestHeader(t,this.targetInfo.requestHeaders[t])},t.prototype.execute=function(){var e=this;return null==this.xhr?null:(this.xhr.open("GET"==this.targetInfo.requestMethod?"GET":"POST",this.targetInfo.requestUrl,this.asyncFl),this.asyncFl&&(this.xhr.onreadystatechange=function(){4==e.xhr.readyState&&e.promise.resolve(e)}),this.targetInfo.bufferFl&&this.asyncFl?this.xhr.responseType="arraybuffer":(this.defaultHeaders(),this.targetInfo.requestData&&"string"!=typeof this.targetInfo.requestData&&(this.targetInfo.requestData=this.targetInfo.requestData.byteLength?this.targetInfo.requestData:JSON.stringify(this.targetInfo.requestData))),void(this.targetInfo.bufferFl||null==this.targetInfo.requestData?this.xhr.send():this.xhr.send(this.targetInfo.requestData)))},t}();e.Request=t}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){var t;!function(t){var s=function(){function t(e){this.targetInfo=e||{},this.requestData=this.targetInfo.data,this.requestMethod=this.targetInfo.method?this.targetInfo.method:"GET",this.setRequestUrl()}return Object.defineProperty(t.prototype,"bufferFl",{get:function(){return this.targetInfo.bufferFl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callback",{get:function(){return this.targetInfo.callback},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return window._spPageContextInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAppWeb",{get:function(){return this.context.isAppWeb},enumerable:!0,configurable:!0}),t.prototype.getDomainUrl=function(){var e=document.location.href;return this.isAppWeb&&(e=this.getQueryStringValue("SPHostUrl")+""),e=e.split("/"),e&&e.length>=2&&(e=e[0]+"//"+e[2]),e},t.prototype.getQueryStringValue=function(e){var t=document.location.href.split("?");t=t.length>1?t[1]:t[0];for(var s=t.split("&"),r=0;r<s.length;r++){var a=s[r].split("=");if(1!=a.length&&decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null},t.prototype.setRequestUrl=function(){var t=this.getQueryStringValue("SPHostUrl"),s="{{Url}}/_api/{{EndPoint}}{{TargetUrl}}";if(e.DefaultRequestToHostWebFl&&this.isAppWeb&&null==this.targetInfo.url&&(this.targetInfo.url=t),null==this.targetInfo.url)this.targetInfo.url=this.context[0==this.targetInfo.defaultToWebFl?"siteAbsoluteUrl":"webAbsoluteUrl"];else if(/\/_api\//.test(this.targetInfo.url)){var r=this.targetInfo.url.split("/_api/");return void(this.isAppWeb&&r[0]!=this.context.webAbsoluteUrl?this.requestUrl=this.context.webAbsoluteUrl+"/_api/SP.AppContextSite(@target)/"+r[1]+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:"")+"?@target='"+r[0]+"'":this.requestUrl=this.targetInfo.url+(this.targetInfo.endpoint?"/"+this.targetInfo.endpoint:""))}if(0!=this.targetInfo.url.indexOf("http")&&(this.targetInfo.url=this.getDomainUrl()+this.targetInfo.url),this.isAppWeb&&this.targetInfo.url!=this.context.webAbsoluteUrl){var a=this.targetInfo.endpoint+(this.targetInfo.endpoint.indexOf("?")>0?"&":"?");this.requestUrl=s.replace(/{{Url}}/g,this.context.webAbsoluteUrl).replace(/{{EndPoint}}/g,"SP.AppContextSite(@target)/"+a).replace(/{{TargetUrl}}/g,"@target='"+this.targetInfo.url+"'")}else this.requestUrl=s.replace(/{{Url}}/g,this.targetInfo.url).replace(/{{EndPoint}}/g,this.targetInfo.endpoint).replace(/{{TargetUrl}}/g,"")},t}();t.TargetInfo=s}(t=e.Utils||(e.Utils={}))}($REST||($REST={}));var $REST;!function(e){e.Library.attachmentfiles={add:{argNames:["name"],name:"",requestType:e.Types.RequestType.PostWithArgs},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttype={properties:["FieldLinks|fieldlinks|('[Name]')|fieldlink","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","WorkflowAssociations"],delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.ContentType",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.contenttypes={add:{metadataType:"SP.ContentType",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addAvailableContentType:{argNames:["contentTypeId"],requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"contenttype"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(t){function s(e){t.call(this,e),this.defaultToWebFl=!0,this.targetInfo.endpoint="SP.Utilities.Utility.SendEmail"}return __extends(s,t),s.prototype.send=function(t){t.To&&("string"==typeof t.To?t.To={results:[t.To]}:t.To={results:t.To}),this.executeMethod("send",{argNames:["properties"],name:"",metadataType:"SP.Utilities.EmailProperties",requestType:e.Types.RequestType.PostWithArgsInBody},[t])},s}(e.Base);e.Email=t}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinition={delete:{requestType:e.Types.RequestType.Delete},update:{metadataType:"SP.EventReceiverDefinition",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.eventreceiverdefinitions={add:{metadataType:"SP.EventReceiverDefinition",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"eventreceiver"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.field={delete:{requestType:e.Types.RequestType.Delete},setShowInDisplayForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInEditForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},setShowInNewForm:{argNames:["showInForm"],requestType:e.Types.RequestType.PostWithArgsValueOnly},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.fieldlinks={add:{argNames:["data"],metadataType:"SP.FieldLink",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"fieldlink"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.fields={add:{metadataType:"SP.Field",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},addField:{argNames:["parameters"],metadataType:"SP.FieldCreationInformation",name:"addField",requestType:e.Types.RequestType.PostWithArgsInBody},addDependentLookupField:{argNames:["displayname","primarylookupfieldid","showfield"],requestType:e.Types.RequestType.PostWithArgs},createFieldAsXml:{argNames:["schemaXml"],requestType:e.Types.RequestType.PostWithArgsInBody,data:{parameters:{__metadata:{type:"SP.XmlSchemaFieldCreationInformation" | ||
},Options:8,SchemaXml:"[[schemaXml]]"}}},getById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly,returnType:"field"},getByInternalNameOrTitle:{argNames:["internalNameOrTitle"],requestType:e.Types.RequestType.PostWithArgsValueOnly,returnType:"field"},getByTitle:{argNames:["title"],requestType:e.Types.RequestType.PostWithArgsValueOnly,returnType:"field"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.file={properties:["Author|user","CheckedOutByUser|user","EffectiveInformationRightsManagementSettings","InformationRightsManagementSettings","ListItemAllFields","LockedByUser|user","ModifiedBy|user","Properties","VersionEvents","Versions|fileversions"],approve:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},cancelupload:{argNames:["uploadId"],name:"cancelupload(guid'[[uploadId]]')",requestType:e.Types.RequestType.PostReplace},checkin:{argNames:["comment","checkInType"],requestType:e.Types.RequestType.PostWithArgs},checkout:{requestType:e.Types.RequestType.Post},content:{name:"$value",requestType:e.Types.RequestType.GetBuffer},continueUpload:{argNames:["uploadId","fileOffset"],name:"continueUpload(uploadId=guid'[[uploadId]]', fileOffset=[[fileOffset]])",requestType:e.Types.RequestType.PostReplace},copyTo:{argNames:["strNewUrl","bOverWrite"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},deny:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},finishUpload:{argNames:["uploadId","fileOffset"],name:"finishUpload(uploadId=guid'[[uploadId]]', fileOffset=[[fileOffset]])",requestType:e.Types.RequestType.PostReplace},getlimitedwebpartmanager:{argNames:["scope"],name:"getLimitedWebPartManager(scope=[[scope]])",requestType:e.Types.RequestType.GetReplace},moveTo:{argNames:["newUrl","flags"],name:"moveTo(newUrl='[[newUrl]]', flags=[[flags]])",requestType:e.Types.RequestType.PostReplace},openBinaryStream:{requestType:e.Types.RequestType.GetBuffer},publish:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},recycle:{requestType:e.Types.RequestType.Get},saveBinaryStream:{requestType:e.Types.RequestType.PostWithArgsInBody},startUpload:{argNames:["uploadId"],name:"startupload(uploadId=guid'[[uploadId]]')",requestType:e.Types.RequestType.PostReplace},undoCheckOut:{requestType:e.Types.RequestType.Post},unpublish:{argNames:["comment"],requestType:e.Types.RequestType.PostWithArgs},update:{metadataType:"SP.File",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.files={add:{argNames:["overwrite","url"],requestType:e.Types.RequestType.PostWithArgs},addTemplateFile:{argNames:["urlOfFile","templateFileType"],requestType:e.Types.RequestType.PostWithArgs},getByUrl:{argNames:["serverRelativeUrl"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"file"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.fileversion={properties:[],delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.fileversions={delete:{requestType:e.Types.RequestType.Delete},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.folder={properties:["Files|files|/getByUrl('[Name]')|file","Folders|folders|/getByUrl('[Name]')|folder","ListItemAllFields","ParentFolder|folder","Properties","StorageMetrics"],delete:{requestType:e.Types.RequestType.Delete},getByUrl:{argNames:["serverRelativeUrl"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"folder"},recycle:{requestType:e.Types.RequestType.Post},update:{metadataType:"SP.Folder",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.folders={properties:["Files|files|/getByUrl('[Name]')|file","Folders|folders|/getByUrl('[Name]')|folder","ListItemAllFields","ParentFolder","Properties","StorageMetrics"],add:{argNames:["url"],requestType:e.Types.RequestType.PostWithArgs},getbyurl:{argNames:["serverRelativeUrl"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"folder"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.group={properties:["Users|users|/getById([Name])|user"]}}($REST||($REST={}));var $REST;!function(e){e.Library.items={add:{metadataType:function(e){return e.Parent&&e.Parent.ListItemEntityTypeFullName?e.Parent.ListItemEntityTypeFullName:"SP.ListItem"},name:"",requestType:e.Types.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"listitem"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.limitedwebpartmanager={get_WebParts:{argNames:["id"],name:"webparts?expand=WebPart",requestType:e.Types.RequestType.GetReplace}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(e){function t(t,s){e.call(this,s),this.defaultToWebFl=!0,this.responses=[],this.targetInfo.endpoint="lists/getByTitle('"+t+"')",this.addMethods(this,{__metadata:{type:"list"}})}return __extends(t,e),t}(e.Base);e.List=t,e.Library.list={properties:["BrowserFileHandling","ContentTypes|contenttypes|([Name])|contenttype","CreatablesInfo","DefaultView|view","DescriptionResource","EventReceivers|eventreceivers|('[Name]')|eventreceiver","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","FirstUniqueAncestorSecurableObject","Forms|forms|('[Name]')|form","InformationRightsManagementSettings","Items|items|([Name])|item","ParentWeb","RoleAssignments|roleassignments|([Name])|roleassignment","RootFolder|folder|/getByUrl('[Name]')|file","Subscriptions","TitleResource","UserCustomActions|usercustomactions|('[Name]')|usercustomaction","Views|views||('[Name]')|view","WorkflowAssociations"],breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getItemById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"item"},getItems:{argNames:["viewXml"],requestType:e.Types.RequestType.PostWithArgsInBody,data:{query:{__metadata:{type:"SP.CamlQuery"},ViewXml:"[[viewXml]]"}}},getItemsByQuery:{argNames:["camlQuery"],name:"getItems",requestType:e.Types.RequestType.PostWithArgsInBody,data:{query:{__metadata:{type:"SP.CamlQuery"},ViewXml:"<View>[[camlQuery]]</View>"}}},getListItemChangesSinceToken:{argNames:["query"],metadataType:"SP.ChangeLogItemQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getRelatedFields:{requestType:e.Types.RequestType.Get},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:e.Types.RequestType.GetReplace},getViewById:{argNames:["viewId"],name:"getView",requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"view"},recycle:{requestType:e.Types.RequestType.Post},renderListData:{argNames:["viewXml"],name:"renderListData(@v)?@v='<View>[[viewXml]]</View>'",requestType:e.Types.RequestType.PostReplace},renderListFormData:{argNames:["itemid","formid","mode"],requestType:e.Types.RequestType.PostWithArgs},reserveListItemId:{requestType:e.Types.RequestType.Post},resetRoleInheritance:{requestType:e.Types.RequestType.Post},update:{metadataType:"SP.List",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.listitem={properties:["AttachmentFiles|attachmentfiles","ContentType|contenttype","FieldValuesAsHtml","FieldValuesAsText","FieldValuesForEdit","File|file","FirstUniqueAncestorSecurableObject","Folder|folder","GetDlpPolicyTip","ParentList|list","RoleAssignments|roleassignments|roleassignments|([Name])|roleassignment"],breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:e.Types.RequestType.GetReplace},recycle:{requestType:e.Types.RequestType.Post},resetRoleInheritance:{requestType:e.Types.RequestType.Post},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody},validateUpdateListItem:{argNames:["formValues","bNewDocumentUpdate"],requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.lists={add:{metadataType:"SP.List",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},ensureSiteAssetsLibrary:{requestType:e.Types.RequestType.Post},ensureSitePagesLibrary:{requestType:e.Types.RequestType.Post},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"list"},getByTitle:{argNames:["title"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"list"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.peoplemanager={},e.Library.peoplemanager[e.Types.RequestType.Get]=["amlFollowedBy","amlFollowing","getFollowedTags","getFollowersFor","getMyFollowers","getMyProperties","getMySuggestions","getPeopleFollowedBy","getPeopleFollowedByMe","getPropertiesFor","getUserProfilePropertyFor"],e.Library.peoplemanager[e.Types.RequestType.GetAppendMethodToEndPoint]=["getTrendingTags","isFollowing"],e.Library.peoplemanager[e.Types.RequestType.Post]=["follow","followTag","hideSuggestion","stopFollowing","stopFollowingTag"],e.Library.peoplemanager[e.Types.RequestType.PostDataInBody]=["setMyProfilePicture"]}($REST||($REST={}));var $REST;!function(e){e.Library.profileloader={}}($REST||($REST={}));var $REST;!function(e){e.Library.roleAssignment={properties:["Member","RoleDefinitionBindings|roledefinitions"],delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.roleAssignments={addRoleAssignment:{argNames:["principalId","roleDefId"],requestType:e.Types.RequestType.PostWithArgs},getByPrincipalId:{argNames:["principalId"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roleassignment"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeRoleAssignment:{argNames:["principalId","roleDefId"],requestType:e.Types.RequestType.PostWithArgs}}}($REST||($REST={}));var $REST;!function(e){e.Library.roledefinition={delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.roledefinitions={getById:{argNames:["roleDefId"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByName:{argNames:["name"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByType:{argNames:["roleType"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"roledefinitions"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.searchservice={}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(t){function s(e,s){t.call(this,s),this.defaultToWebFl=!0,this.responses=[],this.targetInfo.endpoint="site",e&&(this.targetInfo.url=e),this.addMethods(this,{__metadata:{type:"site"}})}return __extends(s,t),s.prototype.getRootWeb=function(){return new e.Web(null,this.targetInfo)},s.prototype.hasAccess=function(e){return!0},s}(e.Base);e.Site=t,e.Library.site={properties:["EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Owner|user","RootWeb|web","UserCustomActions|usercustomactions|('[Name]')|usercustomaction"],createPreviewSPSite:{argNames:["upgrade","sendemail"],requestType:e.Types.RequestType.PostWithArgs},extendUpgradeReminderDate:{requestType:e.Types.RequestType.Post},getCatalog:{argNames:["typeCatalog"],requestType:e.Types.RequestType.PostWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getCustomListTemplates:{argNames:["web"],requestType:e.Types.RequestType.PostWithArgs},getWebTemplates:{argNames:["LCID","overrideCompatLevel"],requestType:e.Types.RequestType.PostWithArgs},invalidate:{requestType:e.Types.RequestType.Post},needsUpgradeByType:{argNames:["versionUpgrade","recursive"],requestType:e.Types.RequestType.PostWithArgs},openWeb:{argNames:["strUrl"],requestType:e.Types.RequestType.PostWithArgsValueOnly},openWebById:{argNames:["gWebId"],requestType:e.Types.RequestType.PostWithArgsValueOnly},runHealthCheck:{argNames:["ruleId","bRepair","bRunAlways"],requestType:e.Types.RequestType.PostWithArgs},runUpgradeSiteSession:{argNames:["versionUpgrade","queueOnly","sendEmail"],requestType:e.Types.RequestType.PostWithArgs},update:{metadataType:"SP.Site",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody},updateClientObjectModelUseRemoteAPIsPermissionSetting:{argNames:["requireUseRemoteAPIs"],requestType:e.Types.RequestType.PostWithArgs}}}($REST||($REST={}));var $REST;!function(e){e.Library.siteGroups={getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"group"},getByName:{argNames:["name"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"group"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["name"],requestType:e.Types.RequestType.PostWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.socialrestactor={},e.Library.socialrestactor[e.Types.RequestType.Custom]=[{name:"createPost",function:function(e){return e={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:null,creationData:e}},e.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("feed/post",null,e,!0)}},{name:"getFeed",function:function(){return this.executeGet("feed")}}]}($REST||($REST={}));var $REST;!function(e){e.Library.socialrestfeedmanager={},e.Library.socialrestfeedmanager[e.Types.RequestType.Custom]=[{name:"createPost",function:function(e){return e={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:null,creationData:e}},e.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("my/feed/post",null,e,!0)}},{name:"deletePost",function:function(e){return this.executePost("post/delete",null,{ID:e},!0)}},{name:"getMyFeed",function:function(){return this.executeGet("my/feed")}},{name:"getMyInfo",function:function(){return this.executeGet("my")}},{name:"getMyLikes",function:function(){return this.executeGet("my/likes")}},{name:"getMyMentionFeed",function:function(){return this.executeGet("my/mentionfeed")}},{name:"getMyNews",function:function(){return this.executeGet("my/news")}},{name:"getMyTimeLineFeed",function:function(){return this.executeGet("my/timelinefeed")}},{name:"getMyUnreadMentionCount",function:function(){return this.executeGet("my/unreadmentioncount")}},{name:"getPost",function:function(e){return this.executePost("post",null,{ID:e},!0)}},{name:"getPostLikers",function:function(e){return this.executePost("post/likers",null,{ID:e},!0)}},{name:"getUser",function:function(e){return 0==e.indexOf("i:0#.f|")?this.executeGet("actor",null,e):this.executeGet("actor",e)}},{name:"likePost",function:function(e){return this.executePost("post/like",null,{ID:e},!0)}},{name:"lockPost",function:function(e){return this.executePost("post/lock",null,{ID:e},!0)}},{name:"replyToPost",function:function(e,t){return t={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:e,creationData:t}},t.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("post/reply",null,t,!0)}},{name:"unlikePost",function:function(e){return this.executePost("post/unlike",null,{ID:e},!0)}},{name:"unlockPost",function:function(e){return this.executePost("post/unlock",null,{ID:e},!0)}}]}($REST||($REST={}));var $REST;!function(e){e.Library.socialrestthread={},e.Library.socialrestthread[e.Types.RequestType.Custom]=[{name:"delete",function:function(e){return this.executePost("delete",null,{ID:e||this.ID},!0)}},{name:"like",function:function(e){return this.executePost("like",null,{ID:e||this.ID},!0)}},{name:"lock",function:function(e){return this.executePost("lock",null,{ID:e||this.ID},!0)}},{name:"reply",function:function(e,t){return e={restCreationData:{__metadata:{type:"SP.Social.SocialRestPostCreationData"},ID:t||this.ID,creationData:e}},e.restCreationData.creationData.__metadata={type:"SP.Social.SocialPostCreationData"},this.executePost("reply",null,e,!0)}},{name:"unlike",function:function(e){return this.executePost("unlike",null,{ID:e||this.ID},!0)}},{name:"unlock",function:function(e){return this.executePost("unlock",null,{ID:e||this.ID},!0)}}]}($REST||($REST={}));var $REST;!function(e){e.Library.user={properties:["Groups|sitegroups|([Name])|group"],delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.usercustomaction={delete:{requestType:e.Types.RequestType.Delete}}}($REST||($REST={}));var $REST;!function(e){e.Library.usercustomactions={add:{metadataType:"SP.UserCustomAction",name:"",requestType:e.Types.RequestType.PostWithArgsInBody},clear:{requestType:e.Types.RequestType.Post},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"usercustomaction"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var $REST;!function(e){e.Library.userprofile={},e.Library.userprofile[e.Types.RequestType.Post]=["createPersonalSiteEnque","shareAllSocialData"],e.Library.userprofile[e.Types.RequestType.Custom]=[{name:"getOneDriveUrl",function:function(){return this.FollowPersonalSiteUrl+"_layouts/15/onedrive.aspx"}}]}($REST||($REST={}));var $REST;!function(e){e.Library.users={getByEmail:{argNames:["email"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"user"},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"user"},getByLoginName:{argNames:["loginName"],requestType:e.Types.RequestType.GetWithArgsInQS,returnType:"user"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["loginName"],requestType:e.Types.RequestType.PostWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.versions={getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"version"},deleteAll:{requestType:e.Types.RequestType.Post},deleteById:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},deleteByLabel:{argNames:["label"],requestType:e.Types.RequestType.PostWithArgsValueOnly},restoreByLabel:{argNames:["label"],requestType:e.Types.RequestType.PostWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.view={properties:["ViewFields|viewfieldcollection"],delete:{requestType:e.Types.RequestType.Delete},renderAsHtml:{requestType:e.Types.RequestType.Get},update:{metadataType:"SP.View",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.viewfieldcollection={addViewField:{argNames:["fieldName"],requestType:e.Types.RequestType.PostWithArgsValueOnly},moveViewFieldTo:{argNames:["field","index"],requestType:e.Types.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:e.Types.RequestType.OData},removeAllViewFields:{requestType:e.Types.RequestType.Post},removeViewField:{argNames:["fieldName"],requestType:e.Types.RequestType.GetWithArgsValueOnly}}}($REST||($REST={}));var $REST;!function(e){e.Library.views={add:{metadataType:"SP.View",name:"",requestType:e.Types.RequestType.PostWithArgs},getById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"view"},getByTitle:{argNames:["title"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"view"},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={}));var __extends=this&&this.__extends||function(e,t){function s(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)},$REST;!function(e){var t=function(e){function t(t,s){e.call(this,s),this.defaultToWebFl=!0,this.responses=[],this.targetInfo.endpoint="web",t&&(this.targetInfo.url=t),this.addMethods(this,{__metadata:{type:"web"}})}return __extends(t,e),t.prototype.hasAccess=function(e){return!0},t}(e.Base);e.Web=t,e.Library.web={properties:["AllProperties","AppTiles","AssociatedMemberGroup|group","AssociatedOwnerGroup|group","AssociatedVisitorGroup|group","Author|user","AvailableContentTypes|contenttypes","AvailableFields|fields","ClientWebParts","ContentTypes|contenttypes|('[Name]')|contenttype","CurrentUser|user","DataLeakagePreventionStatusInfo","DescriptionResource","EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","FirstUniqueAncestorSecurableObject","Folders|folders|/getByUrl('[Name]')|folder","Lists|lists|/getByTitle('[Name]')|list","ListTemplates|listtemplates|('[Name]')|listtemplate","Navigation","ParentWeb","PushNotificationSubscribers","RecycleBin","RegionalSettings","RoleAssignments|roleassignments|([Name])|roleassignment","RoleDefinitions|roledefinitions|([Name])|roledefinition","RootFolder|folder|/getByUrl('[Name]')|file","SiteGroups|sitegroups|([Name])|group","SiteUserInfoList","SiteUsers|users|/getById([Name])|user","ThemeInfo","TitleResource","UserCustomActions|usercustomactions|('[Name]')|usercustomaction","WebInfos","Webs|webs","WorkflowAssociations","WorkflowTemplates"],applyTheme:{argNames:["colorpaletteurl","fontschemeurl","backgroundimageurl","sharegenerated"],requestType:e.Types.RequestType.PostWithArgs},applyWebTemplate:{argName:["name"],requestType:e.Types.RequestType.PostWithArgsInQS},breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:e.Types.RequestType.PostWithArgs},delete:{requestType:e.Types.RequestType.Delete},doesPushNotificationSubscriberExist:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},doesUserHavePermissions:{argNames:["High","Low"],requestType:e.Types.RequestType.GetWithArgsInQS},ensureUser:{argNames:["logonName"],requestType:e.Types.RequestType.PostWithArgsInBody},executeRemoteLOB:{requestType:e.Types.RequestType.PostWithArgsInBody},getAppBdcCatalog:{requestType:e.Types.RequestType.Post},getAppBdcCatalogForAppInstance:{argNames:["id"],requestType:e.Types.RequestType.PostWithArgsValueOnly},getAppInstanceById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getAppInstancesByProductId:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getAvailableWebTemplates:{argNames:["lcid","doincludecrosslanguage"],requestType:e.Types.RequestType.GetWithArgs},getCatalog:{argNames:["galleryType"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:e.Types.RequestType.PostWithArgsInBody},getContextWebInformation:{name:"contextInfo",replaceEndpointFl:!0,requestType:e.Types.RequestType.Post},getCustomListTemplates:{requestType:e.Types.RequestType.Get},getDocumentLibraries:{argNames:["url"],name:"sp.web.getDocumentLibraries",requestType:e.Types.RequestType.GetWithArgsInQS},getEntity:{argNames:["namespace","name"],requestType:e.Types.RequestType.PostWithArgs},getFileByServerRelativeUrl:{argNames:["url"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"file"},getFolderByServerRelativeUrl:{argNames:["url"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"folder"},getList:{argNames:["url"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"list"},getPushNotificationSubscriber:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByArgs:{argNames:["args"],requestType:e.Types.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByUser:{argNames:["loginName"],requestType:e.Types.RequestType.GetWithArgsInQS},getSubwebsFilteredForCurrentUser:{argNames:["nwebtemplatefilter","nconfigurationfilter"],requestType:e.Types.RequestType.GetWithArgs},getUserById:{argNames:["id"],requestType:e.Types.RequestType.GetWithArgsValueOnly,returnType:"user"},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:e.Types.RequestType.GetReplace},getWebUrlFromPageUrl:{name:"sp.web.getWebUrlFromPageUrl",requestType:e.Types.RequestType.GetWithArgsInQS},loadAndInstallApp:{requestType:e.Types.RequestType.PostWithArgsInBody},loadAndInstallAppInSpecifiedLocale:{argNames:["appPackageStream","installationLocaleLCID"],requestType:e.Types.RequestType.PostWithArgsInBody},loadApp:{argNames:["appPackageStream","installationLocaleLCID"],requestType:e.Types.RequestType.PostWithArgsInBody},mapToIcon:{argNames:["filename","progid","size"],requestType:e.Types.RequestType.GetWithArgs},processExternalNotification:{requestType:e.Types.RequestType.PostWithArgsInBody},registerPushNotificationSubscriber:{argNames:["deviceappinstanceid","servicetoken"],requestType:e.Types.RequestType.PostWithArgs},resetRoleInheritance:{requestType:e.Types.RequestType.Post},unregisterPushNotificationSubscriber:{requestType:e.Types.RequestType.PostWithArgsValueOnly},update:{metadataType:"SP.Web",name:"",requestMethod:"MERGE",requestType:e.Types.RequestType.PostWithArgsInBody}}}($REST||($REST={}));var $REST;!function(e){e.Library.webs={add:{argNames:["parameters"],metadataType:"SP.WebCreationInformation",requestType:e.Types.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:e.Types.RequestType.OData}}}($REST||($REST={})); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1165062