!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.e?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=30)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unspecified=0]="Unspecified",e[e.String=1]="String",e[e.Int64=2]="Int64",e[e.Double=3]="Double",e[e.Boolean=4]="Boolean",e[e.Date=5]="Date"}(t.AWTPropertyType||(t.AWTPropertyType={}));!function(e){e[e.NotSet=0]="NotSet",e[e.DistinguishedName=1]="DistinguishedName",e[e.GenericData=2]="GenericData",e[e.IPV4Address=3]="IPV4Address",e[e.IPv6Address=4]="IPv6Address",e[e.MailSubject=5]="MailSubject",e[e.PhoneNumber=6]="PhoneNumber",e[e.QueryString=7]="QueryString",e[e.SipAddress=8]="SipAddress",e[e.SmtpAddress=9]="SmtpAddress",e[e.Identity=10]="Identity",e[e.Uri=11]="Uri",e[e.Fqdn=12]="Fqdn",e[e.IPV4AddressLegacy=13]="IPV4AddressLegacy"}(t.AWTPiiKind||(t.AWTPiiKind={}));!function(e){e[e.NotSet=0]="NotSet",e[e.GenericContent=1]="GenericContent"}(t.AWTCustomerContentKind||(t.AWTCustomerContentKind={}));!function(e){e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Immediate_sync=5]="Immediate_sync"}(t.AWTEventPriority||(t.AWTEventPriority={}));!function(e){e[e.NonRetryableStatus=1]="NonRetryableStatus",e[e.QueueFull=3]="QueueFull"}(t.AWTEventsDroppedReason||(t.AWTEventsDroppedReason={}));!function(e){e[e.InvalidEvent=1]="InvalidEvent",e[e.SizeLimitExceeded=2]="SizeLimitExceeded",e[e.KillSwitch=3]="KillSwitch"}(t.AWTEventsRejectedReason||(t.AWTEventsRejectedReason={}))},function(e,t,i){"use strict";function n(e){var t=new B.Int64("0");return t.low=4294967295&e,t.high=Math.floor(e/4294967296),t}function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(C,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function o(e){return"string"==typeof e}function s(e){return"number"==typeof e}function a(e){return"boolean"==typeof e}function u(e){return e instanceof Date}function d(e){return(e+b)*R}function c(e){var t=e.indexOf("-");return t>-1?e.substring(0,t):""}function _(){return O===D&&(O="undefined"!=typeof navigator&&Boolean(navigator.sendBeacon)),O}function l(){return N===D&&(N="undefined"!=typeof Uint8Array&&!W()&&!y()),N}function p(e){return!(!s(e)||!(e>=1&&e<=3||5===e))}function f(e,i){return!t.PropertyNameRegex.test(e)||P(i)?D:(P(i.value)&&(i={value:i,type:w.AWTPropertyType.Unspecified}),i.type=m(i.value,i.type),i.type?(u(i.value)&&(i.value=d(i.value.getTime())),i.pii>0&&i.cc>0?D:i.pii?A(i.pii)?i:D:i.cc?I(i.cc)?i:D:i):D)}function h(e){return e.getUTCFullYear()+"-"+T(e.getUTCMonth()+1)+"-"+T(e.getUTCDate())+"T"+T(e.getUTCHours())+":"+T(e.getUTCMinutes())+":"+T(e.getUTCSeconds())+"."+g(e.getUTCMilliseconds())+"Z"}function v(){if(M===D){var e=new XMLHttpRequest;M=void 0===e.withCredentials&&"undefined"!=typeof XDomainRequest}return M}function y(){return!("undefined"==typeof navigator||!navigator.product)&&"ReactNative"===navigator.product}function T(e){return e<10?"0"+e:e.toString()}function g(e){return e<10?"00"+e:e<100?"0"+e:e.toString()}function m(e,t){switch(t=E(t)?t:w.AWTPropertyType.Unspecified){case w.AWTPropertyType.Unspecified:return S(e);case w.AWTPropertyType.String:return o(e)?t:D;case w.AWTPropertyType.Boolean:return a(e)?t:D;case w.AWTPropertyType.Date:return u(e)&&NaN!==e.getTime()?t:D;case w.AWTPropertyType.Int64:return s(e)&&e%1==0?t:D;case w.AWTPropertyType.Double:return s(e)?t:D}return D}function S(e){switch(typeof e){case"string":return w.AWTPropertyType.String;case"boolean":return w.AWTPropertyType.Boolean;case"number":return w.AWTPropertyType.Double;case"object":return u(e)?w.AWTPropertyType.Date:D}return D}function A(e){return!!(s(e)&&e>=0&&e<=13)}function I(e){return!!(s(e)&&e>=0&&e<=1)}function E(e){return!!(s(e)&&e>=0&&e<=4)}function W(){if("undefined"!=typeof navigator&&navigator.userAgent){var e=navigator.userAgent.toLowerCase();if((e.indexOf("safari")>=0||e.indexOf("firefox")>=0)&&e.indexOf("chrome")<0)return!0}return!1}function P(e){return void 0===e||e===D||""===e}Object.defineProperty(t,"__esModule",{value:!0});var B=i(4),w=i(0),C=/[xy]/g,b=621355968e5,R=1e4,D=null;t.EventNameAndTypeRegex=/^[a-zA-Z]([a-zA-Z0-9]|_){2,98}[a-zA-Z0-9]$/,t.EventNameDotRegex=/\./g,t.PropertyNameRegex=/^[a-zA-Z](([a-zA-Z0-9|_|\.]){0,98}[a-zA-Z0-9])?$/,t.StatsApiKey="a387cfcf60114a43a7699f9fbb49289e-9bceb9fe-1c06-460f-96c5-6a0b247358bc-7238";var O=D,N=D,M=D;t.numberToBondInt64=n,t.newGuid=r,t.isString=o,t.isNumber=s,t.isBoolean=a,t.isDate=u,t.msToTicks=d,t.getTenantId=c,t.isBeaconsSupported=_,t.isUint8ArrayAvailable=l,t.isPriority=p,t.sanitizeProperty=f,t.getISOString=h,t.useXDomainRequest=v,t.isReactNative=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.addNotificationListener=function(e){this.listeners.push(e)},e.removeNotificationListener=function(e){for(var t=this.listeners.indexOf(e);t>-1;)this.listeners.splice(t,1),t=this.listeners.indexOf(e)},e.eventsSent=function(e){for(var t=this,i=this,n=0;n=0&&!this._&&(this.t.hasEvents()?(0===t&&this.f>0&&(t=1),this.u=setTimeout(function(){return e.h()},t*(1<=0;--i)if(e[t][i]<0){for(var n=i;n>=0;--n)e[t][n]=-1;break}for(var i=2;i>0;--i)if(e[t][i]>0&&e[t][i-1]>0){var r=e[t][i-1]/e[t][i];e[t][i-1]=Math.ceil(r)*e[t][i]}this.r[t]=e[t]}},e.sendEvent=function(e){this.y&&(this.f>0&&e.priority===r.AWTEventPriority.Immediate_sync&&(e.priority=r.AWTEventPriority.High),this.t.addEvent(e),this.scheduleTimer())},e.flush=function(e){var t=(new Date).getTime();!this._&&this.A+3e4-1&&(clearTimeout(this.u),this.u=-1),this.t.uploadNow(e))},e.pauseTransmission=function(){this._||(this.clearTimeout(),this.t.pauseTransmission(),this._=!0)},e.resumeTransmision=function(){this._&&(this._=!1,this.t.resumeTransmission(),this.scheduleTimer())},e.flushAndTeardown=function(){s.default.teardown(),this.y=!1,this.clearTimeout(),this.t.teardown()},e.backOffTransmission=function(){this.f<4&&(this.f++,this.clearTimeout(),this.scheduleTimer())},e.clearBackOff=function(){this.f>0&&(this.f=0,this.clearTimeout(),this.scheduleTimer())},e.S=function(){this.clearTimeout(),this.g(),this.a=n.AWT_REAL_TIME,this.scheduleTimer()},e.clearTimeout=function(){this.u>0&&(clearTimeout(this.u),this.u=-1,this.v=0)},e.h=function(){var e=r.AWTEventPriority.High;this.v++,this.v*this.r[this.a][2]===this.r[this.a][0]?(e=r.AWTEventPriority.Low,this.v=0):this.v*this.r[this.a][2]===this.r[this.a][1]&&(e=r.AWTEventPriority.Normal),this.t.sendEventsForPriorityAndAbove(e),this.u=-1,this.scheduleTimer()},e.g=function(){this.r={},this.r[n.AWT_REAL_TIME]=[4,2,1],this.r[n.AWT_NEAR_REAL_TIME]=[12,6,3],this.r[n.AWT_BEST_EFFORT]=[36,18,9]},e.y=!1,e.a=n.AWT_REAL_TIME,e.u=-1,e.f=0,e._=!1,e.v=0,e.A=0,e}();t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10),this.low<0&&(this.high=-1)}return e.prototype.I=function(t){var i=new e(t);return this.low===i.low&&this.high===i.high},e}();t.Int64=n;var r=function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10)}return e.prototype.I=function(t){var i=new e(t);return this.low===i.low&&this.high===i.high},e}();t.UInt64=r;var o=function(){function e(){}return e.W=function(e){return this.P(e)},e.P=function(e){return 255&e},e.B=function(e){return 2147483647&e|2147483648&e},e.w=function(e){return 4294967295&e},e}();t.Number=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=i(0),o=function(){function e(e){this.C={name:"",properties:{}},e&&this.setName(e)}return e.prototype.setName=function(e){this.C.name=e},e.prototype.getName=function(){return this.C.name},e.prototype.setType=function(e){this.C.type=e},e.prototype.getType=function(){return this.C.type},e.prototype.setTimestamp=function(e){this.C.timestamp=e},e.prototype.getTimestamp=function(){return this.C.timestamp},e.prototype.setEventPriority=function(e){this.C.priority=e},e.prototype.getEventPriority=function(){return this.C.priority},e.prototype.setProperty=function(e,t,i){void 0===i&&(i=r.AWTPropertyType.Unspecified);var o={value:t,type:i,pii:r.AWTPiiKind.NotSet,cc:r.AWTCustomerContentKind.NotSet};if(null===(o=n.sanitizeProperty(e,o)))return void delete this.C.properties[e];this.C.properties[e]=o},e.prototype.setPropertyWithPii=function(e,t,i,o){void 0===o&&(o=r.AWTPropertyType.Unspecified);var s={value:t,type:o,pii:i,cc:r.AWTCustomerContentKind.NotSet};if(null===(s=n.sanitizeProperty(e,s)))return void delete this.C.properties[e];this.C.properties[e]=s},e.prototype.setPropertyWithCustomerContent=function(e,t,i,o){void 0===o&&(o=r.AWTPropertyType.Unspecified);var s={value:t,type:o,pii:r.AWTPiiKind.NotSet,cc:i};if(null===(s=n.sanitizeProperty(e,s)))return void delete this.C.properties[e];this.C.properties[e]=s},e.prototype.getPropertyMap=function(){return this.C.properties},e.prototype.getEvent=function(){return this.C},e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.MSACID=1]="MSACID",e[e.MSAPUID=2]="MSAPUID",e[e.ANID=3]="ANID",e[e.OrgIdCID=4]="OrgIdCID",e[e.OrgIdPUID=5]="OrgIdPUID",e[e.UserObjectId=6]="UserObjectId",e[e.Skype=7]="Skype",e[e.Yammer=8]="Yammer",e[e.EmailAddress=9]="EmailAddress",e[e.PhoneNumber=10]="PhoneNumber",e[e.SipAddress=11]="SipAddress",e[e.MUID=12]="MUID"}(t.AWTUserIdType||(t.AWTUserIdType={}));!function(e){e[e.Started=0]="Started",e[e.Ended=1]="Ended"}(t.AWTSessionState||(t.AWTSessionState={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r="MicrosoftApplicationsTelemetryDeviceId",o="MicrosoftApplicationsTelemetryFirstLaunchTime",s={MSIE:"MSIE",CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",EDGE:"Edge",ELECTRON:"Electron",SKYPE_SHELL:"SkypeShell",PHANTOMJS:"PhantomJS",OPERA:"Opera"},a={WINDOWS:"Windows",MACOSX:"Mac OS X",WINDOWS_PHONE:"Windows Phone",WINDOWS_RT:"Windows RT",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",CROS:"Chrome OS",UNKNOWN:"Unknown"},u={WIN:/(windows|win32)/i,WINRT:/ arm;/i,WINPHONE:/windows\sphone\s\d+\.\d+/i,OSX:/(macintosh|mac os x)/i,IOS:/(iPad|iPhone|iPod)(?=.*like Mac OS X)/i,LINUX:/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,ANDROID:/android/i,CROS:/CrOS/i},d={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},c=function(){function e(){}return e.addPropertyStorageOverride=function(e){return!!e&&(this.b=e,!0)},e.autoCollect=function(e,t,i){if(this.R=e,this.D=t,this.O(),i||"undefined"==typeof navigator||(i=navigator.userAgent||""),this.N(i),this.D&&!this.b)return this.M(r),void this.M(o);(this.b||this.k&&!this.D)&&this.U()},e.checkAndSaveDeviceId=function(e){if(e){var t=this.x(r),i=this.x(o);t!==e&&(i=n.getISOString(new Date)),this.L(r,e),this.L(o,i),this.F(i)}},e.U=function(){var e=this.x(r);e||(e=n.newGuid()),this.R.setDeviceId(e)},e.O=function(){"undefined"!=typeof document&&document.documentElement&&this.R.setAppLanguage(document.documentElement.lang),"undefined"!=typeof navigator&&this.R.setUserLanguage(navigator.userLanguage||navigator.language);var e=(new Date).getTimezoneOffset(),t=e%60,i=(e-t)/60,n="+";i>0&&(n="-"),i=Math.abs(i),t=Math.abs(t),this.R.setUserTimeZone(n+(i<10?"0"+i:i.toString())+":"+(t<10?"0"+t:t.toString()))},e.N=function(e){if(e){var t=this.q(e);this.R.setDeviceBrowserName(t),this.R.setDeviceBrowserVersion(this.H(e,t));var i=this.Q(e);this.R.setDeviceOsName(i),this.R.setDeviceOsVersion(this.j(e,i))}},e.q=function(e){return this.z("OPR/",e)?s.OPERA:this.z(s.PHANTOMJS,e)?s.PHANTOMJS:this.z(s.EDGE,e)?s.EDGE:this.z(s.ELECTRON,e)?s.ELECTRON:this.z(s.CHROME,e)?s.CHROME:this.z("Trident",e)?s.MSIE:this.z(s.FIREFOX,e)?s.FIREFOX:this.z(s.SAFARI,e)?s.SAFARI:this.z(s.SKYPE_SHELL,e)?s.SKYPE_SHELL:"Unknown"},e.F=function(e){if(!isNaN(e)){var t=new Date;t.setTime(parseInt(e,10)),e=n.getISOString(t)}this.firstLaunchTime=e},e.z=function(e,t){return t.indexOf(e)>-1},e.H=function(e,t){return t===s.MSIE?this.K(e):this.G(t,e)},e.K=function(e){var t=e.match(new RegExp(s.MSIE+" ([\\d,.]+)"));if(t)return t[1];var i=e.match(new RegExp("rv:([\\d,.]+)"));return i?i[1]:void 0},e.G=function(e,t){e===s.SAFARI&&(e="Version");var i=t.match(new RegExp(e+"/([\\d,.]+)"));return i?i[1]:"Unknown"},e.Q=function(e){return e.match(u.WINPHONE)?a.WINDOWS_PHONE:e.match(u.WINRT)?a.WINDOWS_RT:e.match(u.IOS)?a.IOS:e.match(u.ANDROID)?a.ANDROID:e.match(u.LINUX)?a.LINUX:e.match(u.OSX)?a.MACOSX:e.match(u.WIN)?a.WINDOWS:e.match(u.CROS)?a.CROS:"Unknown"},e.j=function(e,t){return t===a.WINDOWS?this.V(e,"Windows NT"):t===a.ANDROID?this.V(e,t):t===a.MACOSX?this.X(e):"Unknown"},e.V=function(e,t){var i=e.match(new RegExp(t+" ([\\d,.]+)"));return i?d[i[1]]?d[i[1]]:i[1]:"Unknown"},e.X=function(e){var t=e.match(new RegExp(a.MACOSX+" ([\\d,_,.]+)"));if(t){var i=t[1].replace(/_/g,".");if(i){var n=this.Z(i);if(n){return i.split(n)[0]}return i}}return"Unknown"},e.Z=function(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null},e.L=function(e,t){if(this.b)this.b.setProperty(e,t);else if(this.k){var i=new Date;i.setTime(i.getTime()+31536e6);var n="expires="+i.toUTCString();document.cookie=e+"="+t+"; "+n}},e.x=function(e){if(this.b)return this.b.getProperty(e)||"";if(this.k){e+="=";for(var t=document.cookie.split(";"),i=0;i=0&&i<=12)this.$("UserInfo.IdType",i.toString());else{var n=void 0;switch(t){case r.AWTPiiKind.SipAddress:n=o.AWTUserIdType.SipAddress;break;case r.AWTPiiKind.PhoneNumber:n=o.AWTUserIdType.PhoneNumber;break;case r.AWTPiiKind.SmtpAddress:n=o.AWTUserIdType.EmailAddress;break;default:n=o.AWTUserIdType.Unknown}this.$("UserInfo.IdType",n.toString())}if(isNaN(t)||null===t||t===r.AWTPiiKind.NotSet||t>13)switch(i){case o.AWTUserIdType.Skype:t=r.AWTPiiKind.Identity;break;case o.AWTUserIdType.EmailAddress:t=r.AWTPiiKind.SmtpAddress;break;case o.AWTUserIdType.PhoneNumber:t=r.AWTPiiKind.PhoneNumber;break;case o.AWTUserIdType.SipAddress:t=r.AWTPiiKind.SipAddress;break;default:t=r.AWTPiiKind.NotSet}this.ee("UserInfo.Id",e,t)},e.prototype.setUserAdvertisingId=function(e){this.$("UserInfo.AdvertisingId",e)},e.prototype.setUserTimeZone=function(e){this.$("UserInfo.TimeZone",e)},e.prototype.setUserLanguage=function(e){this.$("UserInfo.Language",e)},e.prototype.$=function(e,t){"string"==typeof t&&this.Y.setProperty(e,t)},e.prototype.ee=function(e,t,i){"string"==typeof t&&this.Y.setPropertyWithPii(e,t,i)},e}();t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(21),r=i(0),o=i(2),s=i(1),a=function(){function e(){}return e.getPayloadBlob=function(e,t){var i,a=!1,u=new n.IO.MemoryStream,d=new n.CompactBinaryProtocolWriter(u);d.te(n.ne.ie,3,null),d.re(t,n.ne.oe,n.ne.se);for(var c in e)if(a)i||(i={}),i[c]=e[c],delete e[c];else if(e.hasOwnProperty(c)){d.ae(c);var _=e[c];d.ue(1,n.ne.de),d.te(n.ne.oe,2,null),d.ae("act_default_source"),d.te(n.ne.oe,5,null),d.ae(s.newGuid()),d.te(n.ne.ce,6,null),d._e(s.numberToBondInt64(Date.now())),d.te(n.ne.se,8,null);var l=u.le().length+1;d.ue(e[c].length,n.ne.de);for(var p=u.le().length-l,f=0;f<_.length;++f){var h=u.le().length;if(this.writeEvent(_[f],d),u.le().length-h>2936012)o.default.eventsRejected([_[f]],r.AWTEventsRejectedReason.SizeLimitExceeded),_.splice(f--,1),u.le().splice(h),this.pe(_.length,u,p,l);else if(u.le().length>2936012){u.le().splice(h),i||(i={}),e[c]=_.splice(0,f),i[c]=_,this.pe(e[c].length,u,p,l),a=!0;break}}d.fe(!1)}return d.fe(!1),{payloadBlob:u.le(),remainingRequest:i}},e.pe=function(e,t,i,r){for(var o=n.ve.he(n.Number.w(e)),s=0;s0)y[g]=m,T++;else if(m.pii>0)h[g]=m,v++;else switch(m.type){case r.AWTPropertyType.String:i[g]=m.value,o++;break;case r.AWTPropertyType.Int64:a[g]=m.value,u++;break;case r.AWTPropertyType.Double:d[g]=m.value,c++;break;case r.AWTPropertyType.Boolean:_[g]=m.value,l++;break;case r.AWTPropertyType.Date:p[g]=m.value,f++}}if(o){t.te(n.ne.ie,13,null),t.re(o,n.ne.oe,n.ne.oe);for(var g in i)if(i.hasOwnProperty(g)){var S=i[g];t.ae(g),t.ae(S.toString())}}if(v){t.te(n.ne.ie,30,null),t.re(v,n.ne.oe,n.ne.de);for(var g in h)if(h.hasOwnProperty(g)){var m=h[g];t.ae(g),t.te(n.ne.ye,1,null),t.Te(1),t.te(n.ne.ye,2,null),t.Te(m.pii),t.te(n.ne.oe,3,null),t.ae(m.value.toString()),t.fe(!1)}}if(l){t.te(n.ne.ie,31,null),t.re(l,n.ne.oe,n.ne.ge);for(var g in _)if(_.hasOwnProperty(g)){var S=_[g];t.ae(g),t.me(S)}}if(f){t.te(n.ne.ie,32,null),t.re(f,n.ne.oe,n.ne.ce);for(var g in p)if(p.hasOwnProperty(g)){var S=p[g];t.ae(g),t._e(s.numberToBondInt64(S))}}if(u){t.te(n.ne.ie,33,null),t.re(u,n.ne.oe,n.ne.ce);for(var g in a)if(a.hasOwnProperty(g)){var S=a[g];t.ae(g),t._e(s.numberToBondInt64(S))}}if(c){t.te(n.ne.ie,34,null),t.re(c,n.ne.oe,n.ne.Se);for(var g in d)if(d.hasOwnProperty(g)){var S=d[g];t.ae(g),t.Ae(S)}}if(T){t.te(n.ne.ie,36,null),t.re(T,n.ne.oe,n.ne.de);for(var g in y)if(y.hasOwnProperty(g)){var m=y[g];t.ae(g),t.te(n.ne.ye,1,null),t.Te(m.cc),t.te(n.ne.oe,2,null),t.ae(m.value.toString()),t.fe(!1)}}t.fe(!1)},e.base64Encode=function(e){return n.ve.Ie(e)},e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=i(2),o=i(0),s=function(){function e(){}return e.initialize=function(e){var t=this;this.Ee=e,this.We=!0,r.default.addNotificationListener({eventsSent:function(e){t.Pe("records_sent_count",e.length,e[0].apiKey)},eventsDropped:function(e,i){switch(i){case o.AWTEventsDroppedReason.NonRetryableStatus:t.Pe("d_send_fail",e.length,e[0].apiKey),t.Pe("records_dropped_count",e.length,e[0].apiKey);break;case o.AWTEventsDroppedReason.QueueFull:t.Pe("d_queue_full",e.length,e[0].apiKey)}},eventsRejected:function(e,i){switch(i){case o.AWTEventsRejectedReason.InvalidEvent:t.Pe("r_inv",e.length,e[0].apiKey);break;case o.AWTEventsRejectedReason.KillSwitch:t.Pe("r_kl",e.length,e[0].apiKey);break;case o.AWTEventsRejectedReason.SizeLimitExceeded:t.Pe("r_size",e.length,e[0].apiKey)}t.Pe("r_count",e.length,e[0].apiKey)},eventsRetrying:null}),setTimeout(function(){return t.flush()},6e4)},e.teardown=function(){this.We&&(this.flush(),this.We=!1)},e.eventReceived=function(t){e.Pe("records_received_count",1,t)},e.flush=function(){var e=this;if(this.We){for(var t in this.Be)this.Be.hasOwnProperty(t)&&this.Ee(this.Be[t],t);this.Be={},setTimeout(function(){return e.flush()},6e4)}},e.Pe=function(e,t,i){if(this.We&&i!==n.StatsApiKey){var r=n.getTenantId(i);this.Be[r]||(this.Be[r]={}),this.Be[r][e]?this.Be[r][e]=this.Be[r][e]+t:this.Be[r][e]=t}},e.We=!1,e.Be={},e}();t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(6),o=i(12),s=i(13),a=i(3),u=i(2),d=i(7),c=function(){function e(){}return e.initialize=function(e,t){if(void 0===t&&(t={}),!this.we)return this.we=!0,o.default.defaultTenantToken=e,this.Ce(t),this.T.disableCookiesUsage&&!this.T.propertyStorageOverride&&(o.default.sessionEnabled=!1),d.default.addPropertyStorageOverride(this.T.propertyStorageOverride),d.default.autoCollect(o.default.semanticContext,this.T.disableCookiesUsage,this.T.userAgent),a.default.initialize(this.T),o.default.loggingEnabled=!0,this.T.enableAutoUserSession&&(this.getLogger().logSession(r.AWTSessionState.Started),window.addEventListener("beforeunload",this.flushAndTeardown)),this.getLogger()},e.getSemanticContext=function(){return o.default.semanticContext},e.flush=function(e){this.we&&!this.be&&a.default.flush(e)},e.flushAndTeardown=function(){this.we&&!this.be&&(this.T.enableAutoUserSession&&this.getLogger().logSession(r.AWTSessionState.Ended),a.default.flushAndTeardown(),o.default.loggingEnabled=!1,this.be=!0)},e.pauseTransmission=function(){this.we&&!this.be&&a.default.pauseTransmission()},e.resumeTransmision=function(){this.we&&!this.be&&a.default.resumeTransmision()},e.setTransmitProfile=function(e){this.we&&!this.be&&a.default.setTransmitProfile(e)},e.loadTransmitProfiles=function(e){this.we&&!this.be&&a.default.loadTransmitProfiles(e)},e.setContext=function(e,t,i){void 0===i&&(i=n.AWTPropertyType.Unspecified),o.default.logManagerContext.setProperty(e,t,i)},e.setContextWithPii=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),o.default.logManagerContext.setPropertyWithPii(e,t,i,r)},e.setContextWithCustomerContent=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),o.default.logManagerContext.setPropertyWithCustomerContent(e,t,i,r)},e.getLogger=function(e){var t=e;return t&&t!==o.default.defaultTenantToken||(t=""),this.Re[t]||(this.Re[t]=new s.default(t)),this.Re[t]},e.addNotificationListener=function(e){u.default.addNotificationListener(e)},e.removeNotificationListener=function(e){u.default.removeNotificationListener(e)},e.Ce=function(e){e.collectorUri&&(this.T.collectorUri=e.collectorUri),e.cacheMemorySizeLimitInNumberOfEvents>0&&(this.T.cacheMemorySizeLimitInNumberOfEvents=e.cacheMemorySizeLimitInNumberOfEvents),e.httpXHROverride&&e.httpXHROverride.sendPOST&&(this.T.httpXHROverride=e.httpXHROverride),e.propertyStorageOverride&&e.propertyStorageOverride.getProperty&&e.propertyStorageOverride.setProperty&&(this.T.propertyStorageOverride=e.propertyStorageOverride),e.userAgent&&(this.T.userAgent=e.userAgent),e.disableCookiesUsage&&(this.T.disableCookiesUsage=e.disableCookiesUsage),e.canSendStatEvent&&(this.T.canSendStatEvent=e.canSendStatEvent),e.enableAutoUserSession&&"undefined"!=typeof window&&window.addEventListener&&(this.T.enableAutoUserSession=e.enableAutoUserSession),e.clockSkewRefreshDurationInMins>0&&(this.T.clockSkewRefreshDurationInMins=e.clockSkewRefreshDurationInMins)},e.Re={},e.we=!1,e.be=!1,e.T={collectorUri:"https://browser.pipe.aria.microsoft.com/Collector/3.0/",cacheMemorySizeLimitInNumberOfEvents:1e4,disableCookiesUsage:!1,canSendStatEvent:function(e){return!0},clockSkewRefreshDurationInMins:0},e}();t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i(8),o=function(){function e(){}return e.logManagerContext=new n.default,e.sessionEnabled=!0,e.loggingEnabled=!1,e.defaultTenantToken="",e.semanticContext=new r.default(!0,e.logManagerContext),e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(6),o=i(5),s=i(1),a=i(10),u=i(2),d=i(3),c=i(12),_=i(15),l=i(8),p=i(7),f=function(){function e(e){this.De=e,this.Oe=new o.default,this.R=new l.default(!1,this.Oe),this.Ne=0,this.Me()}return e.prototype.setContext=function(e,t,i){void 0===i&&(i=n.AWTPropertyType.Unspecified),this.Oe.setProperty(e,t,i)},e.prototype.setContextWithPii=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),this.Oe.setPropertyWithPii(e,t,i,r)},e.prototype.setContextWithCustomerContent=function(e,t,i,r){void 0===r&&(r=n.AWTPropertyType.Unspecified),this.Oe.setPropertyWithCustomerContent(e,t,i,r)},e.prototype.getSemanticContext=function(){return this.R},e.prototype.logEvent=function(t){if(c.default.loggingEnabled){this.De||(this.De=c.default.defaultTenantToken,this.Me());var i=!0;s.isString(t)?t={name:t}:t instanceof o.default&&(t=t.getEvent(),i=!1),a.default.eventReceived(this.De),e.ke(e.Ue(t,this.De,i),this.Oe)}},e.prototype.logSession=function(t,i){if(c.default.sessionEnabled){var o={name:"session",type:"session",properties:{}};if(e.xe(o,i),o.priority=n.AWTEventPriority.High,t===r.AWTSessionState.Started){if(this.Ne>0)return;this.Ne=(new Date).getTime(),this.Le=s.newGuid(),this.setContext("Session.Id",this.Le),o.properties["Session.State"]="Started"}else{if(t!==r.AWTSessionState.Ended)return;if(0===this.Ne)return;var a=Math.floor(((new Date).getTime()-this.Ne)/1e3);o.properties["Session.Id"]=this.Le,o.properties["Session.State"]="Ended",o.properties["Session.Duration"]=a.toString(),o.properties["Session.DurationBucket"]=e.Fe(a),this.Ne=0,this.setContext("Session.Id",null),this.Le=void 0}o.properties["Session.FirstLaunchTime"]=p.default.firstLaunchTime,this.logEvent(o)}},e.prototype.getSessionId=function(){return this.Le},e.prototype.logFailure=function(t,i,r,o,s){if(t&&i){var a={name:"failure",type:"failure",properties:{}};e.xe(a,s),a.properties["Failure.Signature"]=t,a.properties["Failure.Detail"]=i,r&&(a.properties["Failure.Category"]=r),o&&(a.properties["Failure.Id"]=o),a.priority=n.AWTEventPriority.High,this.logEvent(a)}},e.prototype.logPageView=function(t,i,n,r,o,s){if(t&&i){var a={name:"pageview",type:"pageview",properties:{}};e.xe(a,s),a.properties["PageView.Id"]=t,a.properties["PageView.Name"]=i,n&&(a.properties["PageView.Category"]=n),r&&(a.properties["PageView.Uri"]=r),o&&(a.properties["PageView.ReferrerUri"]=o),this.logEvent(a)}},e.prototype.Me=function(){!e.qe[this.De]&&this.De&&(e.qe[this.De]=s.newGuid())},e.xe=function(e,t){if(t){t instanceof o.default&&(t=t.getEvent()),t.name&&(e.name=t.name),t.priority&&(e.priority=t.priority);for(var i in t.properties)t.properties.hasOwnProperty(i)&&(e.properties[i]=t.properties[i])}},e.Fe=function(e){return e<0?"Undefined":e<=3?"UpTo3Sec":e<=10?"UpTo10Sec":e<=30?"UpTo30Sec":e<=60?"UpTo60Sec":e<=180?"UpTo3Min":e<=600?"UpTo10Min":e<=1800?"UpTo30Min":"Above30Min"},e.ke=function(e,t){return e.name&&s.isString(e.name)?(e.name=e.name.toLowerCase(),e.name=e.name.replace(s.EventNameDotRegex,"_"),e.type&&s.isString(e.type)?e.type=e.type.toLowerCase():e.type="custom",s.EventNameAndTypeRegex.test(e.name)&&s.EventNameAndTypeRegex.test(e.type)?((!s.isNumber(e.timestamp)||e.timestamp<0)&&(e.timestamp=(new Date).getTime()),e.properties||(e.properties={}),this.He(e,t.getPropertyMap()),this.He(e,c.default.logManagerContext.getPropertyMap()),this.Qe(e,"EventInfo.InitId",this.je(e.apiKey)),this.Qe(e,"EventInfo.Sequence",this.ze(e.apiKey)),this.Qe(e,"EventInfo.SdkVersion",_.FullVersionString),this.Qe(e,"EventInfo.Name",e.name),this.Qe(e,"EventInfo.Time",new Date(e.timestamp).toISOString()),s.isPriority(e.priority)||(e.priority=n.AWTEventPriority.Normal),void this.Ke(e)):void u.default.eventsRejected([e],n.AWTEventsRejectedReason.InvalidEvent)):void u.default.eventsRejected([e],n.AWTEventsRejectedReason.InvalidEvent)},e.He=function(e,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(e.properties[i]||(e.properties[i]=t[i]))},e.Qe=function(e,t,i){e.properties[t]={value:i,pii:n.AWTPiiKind.NotSet,type:n.AWTPropertyType.String}},e.Ke=function(e){d.default.sendEvent(e)},e.Ue=function(e,t,i){if(e.properties=e.properties||{},i)for(var n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=s.sanitizeProperty(n,e.properties[n]),null===e.properties[n]&&delete e.properties[n]);var r=e;return r.id=s.newGuid(),r.apiKey=t,r},e.je=function(t){return e.qe[t]},e.ze=function(t){return void 0===e.Ge[t]&&(e.Ge[t]=0),(++e.Ge[t]).toString()},e.Ge={},e.qe={},e}();t.default=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AWT_REAL_TIME="REAL_TIME",t.AWT_NEAR_REAL_TIME="NEAR_REAL_TIME",t.AWT_BEST_EFFORT="BEST_EFFORT"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.8.3",t.FullVersionString="AWT-Web-JS-"+t.Version},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);t.AWTPropertyType=n.AWTPropertyType,t.AWTPiiKind=n.AWTPiiKind,t.AWTEventPriority=n.AWTEventPriority,t.AWTEventsDroppedReason=n.AWTEventsDroppedReason,t.AWTEventsRejectedReason=n.AWTEventsRejectedReason,t.AWTCustomerContentKind=n.AWTCustomerContentKind;var r=i(6);t.AWTUserIdType=r.AWTUserIdType,t.AWTSessionState=r.AWTSessionState;var o=i(14);t.AWT_BEST_EFFORT=o.AWT_BEST_EFFORT,t.AWT_NEAR_REAL_TIME=o.AWT_NEAR_REAL_TIME,t.AWT_REAL_TIME=o.AWT_REAL_TIME;var s=i(5);t.AWTEventProperties=s.default;var a=i(13);t.AWTLogger=a.default;var u=i(11);t.AWTLogManager=u.default;var d=i(29);t.AWTTransmissionManager=d.default;var c=i(9);t.AWTSerializer=c.default;var _=i(8);t.AWTSemanticContext=_.default,t.AWT_COLLECTOR_URL_UNITED_STATES="https://us.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_GERMANY="https://de.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_JAPAN="https://jp.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_AUSTRALIA="https://au.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_EUROPE="https://eu.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_USGOV_DOD="https://pf.pipe.aria.microsoft.com/Collector/3.0",t.AWT_COLLECTOR_URL_USGOV_DOJ="https://tb.pipe.aria.microsoft.com/Collector/3.0"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Ve=0]="_BT_STOP",e[e.Xe=1]="_BT_STOP_BASE",e[e.ge=2]="_BT_BOOL",e[e.Se=8]="_BT_DOUBLE",e[e.oe=9]="_BT_STRING",e[e.de=10]="_BT_STRUCT",e[e.se=11]="_BT_LIST",e[e.ie=13]="_BT_MAP",e[e.ye=16]="_BT_INT32",e[e.ce=17]="_BT_INT64"}(t.ne||(t.ne={}))},function(e,t,i){"use strict";function n(e){for(var t=[],i=0;i>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}function r(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],n=e.length%3,r=0,o=e.length-n;r>18&63),t.charAt(e>>12&63),t.charAt(e>>6&63),t.charAt(63&e)].join("")}(s))}switch(n){case 1:var s=e[e.length-1];i.push(t.charAt(s>>2)),i.push(t.charAt(s<<4&63)),i.push("==");break;case 2:var a=(e[e.length-2]<<8)+e[e.length-1];i.push(t.charAt(a>>10)),i.push(t.charAt(a>>4&63)),i.push(t.charAt(a<<2&63)),i.push("=")}return i.join("")}function o(e){for(var t=[];4294967168&e;)t.push(127&e|128),e>>>=7;return t.push(127&e),t}function s(e){for(var t=e.low,i=e.high,n=[];i||4294967168&t;)n.push(127&t|128),t=(127&i)<<25|t>>>7,i>>>=7;return n.push(127&t),n}function a(e){if(l.BrowserChecker.Ze()){var t=new DataView(new ArrayBuffer(8));t.setFloat64(0,e,!0);for(var i=[],n=0;n<8;++n)i.push(t.getUint8(n));return i}return _.FloatUtils.Je(e,!0)}function u(e){return(e=c.Number.B(e))<<1^e>>31}function d(e){var t=e.low,i=e.high,n=i<<1|t>>>31,r=t<<1;2147483648&i&&(n=~n,r=~r);var o=new c.UInt64("0");return o.low=r,o.high=n,o}Object.defineProperty(t,"__esModule",{value:!0});var c=i(4),_=i(19),l=i(22);t.Ye=n,t.Ie=r,t.he=o,t.$e=s,t.et=a,t.tt=u,t.it=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.Je=function(e,t){if(!e)return t?this.nt:this.rt;var i=t?11:8,n=t?52:23,r=(1<0;)d*=2,d>=1?(_[++l]=1,--d):_[++l]=0;for(var p=0;pp&&(_[l]=1-_[l],!_);--l);l===p&&++f}if(f>s||u)return a?t?this.ot:this.st:t?this.at:this.ut;if(f>8&255,y>>16&255,y>>>24,255&v,v>>8&255,v>>16&255,v>>>24];return T}var g=0;for(l=0;l<23;++l)g=g<<1|_[++p];g|=f+r<<23,g=a<<31|2147483647&g;var T=[255&g,g>>8&255,g>>16&255,g>>>24];return T},e.rt=[0,0,0,0],e.nt=[0,0,0,0,0,0,0,0],e.ut=[0,0,128,127],e.st=[0,0,128,255],e.at=[0,0,0,0,0,0,240,127],e.ot=[0,0,0,0,0,0,240,255],e}();t.FloatUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),r=function(){function e(){this.dt=[]}return e.prototype.ct=function(e){this.dt.push(n.Number.W(e))},e.prototype._t=function(e,t,i){for(;i--;)this.ct(e[t++])},e.prototype.le=function(){return this.dt},e}();t.MemoryStream=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(17);t.ne=n.ne;var r=i(18);t.ve=r;var o=i(20);t.IO=o;var s=i(4);t.Int64=s.Int64,t.UInt64=s.UInt64,t.Number=s.Number;var a=function(){function e(e){this.lt=e}return e.prototype.pt=function(e){this.lt._t(e,0,e.length)},e.prototype.me=function(e){this.lt.ct(e?1:0)},e.prototype.ue=function(e,t){this.ft(t),this.ht(e)},e.prototype.re=function(e,t,i){this.ft(t),this.ft(i),this.ht(e)},e.prototype.Ae=function(e){var t=r.et(e);this.lt._t(t,0,t.length)},e.prototype.te=function(e,t,i){t<=5?this.lt.ct(e|t<<5):t<=255?(this.lt.ct(192|e),this.lt.ct(t)):(this.lt.ct(224|e),this.lt.ct(t),this.lt.ct(t>>8))},e.prototype.Te=function(e){e=r.tt(e),this.ht(e)},e.prototype._e=function(e){this.vt(r.it(e))},e.prototype.ae=function(e){if(""===e)this.ht(0);else{var t=r.Ye(e);this.ht(t.length),this.lt._t(t,0,t.length)}},e.prototype.fe=function(e){this.ft(e?n.ne.Xe:n.ne.Ve)},e.prototype.ht=function(e){var t=r.he(s.Number.w(e));this.lt._t(t,0,t.length)},e.prototype.vt=function(e){var t=r.$e(e);this.lt._t(t,0,t.length)},e.prototype.ft=function(e){this.lt.ct(s.Number.P(e))},e}();t.CompactBinaryProtocolWriter=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.Ze=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},e}();t.BrowserChecker=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.clockSkewRefreshDurationInMins=e,this.yt()}return e.prototype.allowRequestSending=function(){return this.Tt&&!this.gt?(this.Tt=!1,this.mt=!1,!0):this.mt},e.prototype.shouldAddClockSkewHeaders=function(){return this.St},e.prototype.getClockSkewHeaderValue=function(){return this.At},e.prototype.setClockSkew=function(e){this.gt||(e?this.At=e:this.St=!1,this.gt=!0,this.mt=!0)},e.prototype.yt=function(){var e=this;this.Tt=!0,this.gt=!1,this.mt=!0,this.St=!0,this.At="use-collector-delta",this.clockSkewRefreshDurationInMins>0&&setTimeout(function(){return e.yt()},6e4*this.clockSkewRefreshDurationInMins)},e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.It={}}return e.prototype.setKillSwitchTenants=function(e,t){if(e&&t)try{var i=e.split(",");if("this-request-only"===t)return i;for(var n=1e3*parseInt(t,10),r=0;rDate.now()||(delete this.It[e],!1)},e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(){function e(e,t){this.Et=e,this.Wt=t,this.Pt={},this.Bt=0}return e.prototype.addEventToBatch=function(e){if(e.priority===n.AWTEventPriority.Immediate_sync){var t={};return t[e.apiKey]=[e],t}return this.Bt>=this.Wt&&this.flushBatch(),void 0===this.Pt[e.apiKey]&&(this.Pt[e.apiKey]=[]),this.Pt[e.apiKey].push(e),this.Bt++,null},e.prototype.flushBatch=function(){this.Bt>0&&(this.Et.push(this.Pt),this.Pt={},this.Bt=0)},e.prototype.hasBatch=function(){return this.Bt>0},e}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.shouldRetryForStatus=function(e){return!(e>=300&&e<500&&408!==e||501===e||505===e)},e.getMillisToBackoffForRetry=function(e){var t=0,i=Math.floor(1200*Math.random())+2400;return t=Math.pow(4,e)*i,Math.min(t,12e4)},e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(9),o=i(26),s=i(24),a=i(23),u=i(15),d=i(1),c=i(2),_=i(3),l="POST",p=function(){function e(e,t,i,n,r){var o=this;this.wt=e,this.Ct=i,this.bt=n,this.Rt="?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version="+u.FullVersionString,this.Dt=new s.default,this._=!1,this.Ot=!1,this.Nt=0,this.Mt=new a.default(r),d.isUint8ArrayAvailable()||(this.Rt+="&content-encoding=base64"),this.Rt=t+this.Rt,this.bt||(this.Ot=!d.isReactNative(),this.bt={sendPOST:function(e,t,i,n,r,s){try{if(d.useXDomainRequest()){var a=new XDomainRequest;a.open(l,e),a.onload=function(){r(200,null)},a.onerror=function(){n(400,null)},a.ontimeout=function(){i(500,null)},a.send(t)}else if(d.isReactNative())fetch(e,{body:t,method:l}).then(function(e){var t={};e.headers&&e.headers.forEach(function(e,i){t[i]=e}),r(e.status,t)}).catch(function(e){n(0,{})});else{var u=new XMLHttpRequest;u.open(l,e,!s),u.onload=function(){r(u.status,o.kt(u.getAllResponseHeaders()))},u.onerror=function(){n(u.status,o.kt(u.getAllResponseHeaders()))},u.ontimeout=function(){i(u.status,o.kt(u.getAllResponseHeaders()))},u.send(t)}}catch(e){n(400,null)}}})}return e.prototype.hasIdleConnection=function(){return this.Nt<2},e.prototype.sendQueuedRequests=function(){for(;this.hasIdleConnection()&&!this._&&this.wt.length>0&&this.Mt.allowRequestSending();)this.Nt++,this.Ut(this.wt.shift(),0,!1);this.hasIdleConnection()&&_.default.scheduleTimer()},e.prototype.isCompletelyIdle=function(){return 0===this.Nt},e.prototype.teardown=function(){for(;this.wt.length>0;)this.Ut(this.wt.shift(),0,!0)},e.prototype.pause=function(){this._=!0},e.prototype.resume=function(){this._=!1,this.sendQueuedRequests()},e.prototype.removeQueuedRequests=function(){this.wt.length=0},e.prototype.sendSynchronousRequest=function(e,t){this._&&(e[t][0].priority=n.AWTEventPriority.High),this.Nt++,this.Ut(e,0,!1,!0)},e.prototype.Ut=function(e,t,i,o){var s=this;void 0===o&&(o=!1);try{if(this._)return this.Nt--,void this.Ct.addBackRequest(e);var a=0,u="";for(var _ in e)e.hasOwnProperty(_)&&(this.Dt.isTenantKilled(_)?(c.default.eventsRejected(e[_],n.AWTEventsRejectedReason.KillSwitch),delete e[_]):(u.length>0&&(u+=","),u+=_,a++));if(a>0){var l=r.default.getPayloadBlob(e,a);l.remainingRequest&&this.wt.push(l.remainingRequest);var p=this.Rt+"&x-apikey="+u+"&client-time-epoch-millis="+Date.now().toString();this.Mt.shouldAddClockSkewHeaders()&&(p=p+"&time-delta-to-apply-millis="+this.Mt.getClockSkewHeaderValue());var f=void 0;f=d.isUint8ArrayAvailable()?new Uint8Array(l.payloadBlob):r.default.base64Encode(l.payloadBlob);for(var _ in e)if(e.hasOwnProperty(_))for(var h=0;h0?e[_][h].sendAttempt++:e[_][h].sendAttempt=1;if(this.Ot&&i&&d.isBeaconsSupported()&&navigator.sendBeacon(p,f))return;this.bt.sendPOST(p,f,function(n,r){s.xt(n,r,e,a,u,t,i,o)},function(n,r){s.xt(n,r,e,a,u,t,i,o)},function(n,r){s.xt(n,r,e,a,u,t,i,o)},i||o)}else i||this.Lt(!1,{},i,o)}catch(e){this.Lt(!1,{},i,o)}},e.prototype.xt=function(e,t,i,r,s,a,u,d){var l=this,p=!0;if(void 0!==e){if(t){var f=this.Dt.setKillSwitchTenants(t["kill-tokens"],t["kill-duration-seconds"]);this.Mt.setClockSkew(t["time-delta-millis"]);for(var h=0;h0||this.zt[n.AWTEventPriority.Normal][0].length>0||this.zt[n.AWTEventPriority.Low][0].length>0||this.Gt.hasBatch())&&this.Vt.hasIdleConnection()},e.prototype.addBackRequest=function(e){if(!this._||!this.Qt){for(var t in e)if(e.hasOwnProperty(t))for(var i=0;i0)return a.default.eventsDropped([this.zt[t][this.zt[t].length-1].shift()],n.AWTEventsDroppedReason.QueueFull),!0;t++}return!1},e.prototype.Jt=function(e){for(var t=n.AWTEventPriority.High;t>=e;){for(;this.zt[t][0].length>0;){var i=this.zt[t][0].pop();this.jt--,this.Gt.addEventToBatch(i)}t--}this.Gt.flushBatch()},e.prototype.Yt=function(e){var t=this;this.hasEvents()&&this.sendEventsForPriorityAndAbove(n.AWTEventPriority.Low),this.ei(function(){t.$t(),null!==e&&void 0!==e&&e(),t.Ht.length>0?setTimeout(function(){return t.Yt(t.Ht.shift())},0):(t.qt=!1,t.hasEvents()&&o.default.scheduleTimer())})},e.prototype.ei=function(e){var t=this;this.Vt.isCompletelyIdle()?e():setTimeout(function(){return t.ei(e)},250)},e}();t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),r=function(){function e(){}return e.setEventsHandler=function(e){n.default.setEventsHandler(e)},e.getEventsHandler=function(){return n.default.getEventsHandler()},e.scheduleTimer=function(){n.default.scheduleTimer()},e}();t.default=r},function(e,t,i){e.exports=i(16)}])}); //# sourceMappingURL=aria-webjs-sdk-1.8.3.min.js.map /*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0 0 && i.value.length >= n ? o.resolve(i) : s = Z.readRange(e, t).then(function (u) { u["@odata.context"] && !i["@odata.context"] && (i["@odata.context"] = u["@odata.context"]); for (var s = 0, l = u.value.length; s < l && (n < 0 || i.value.length < n); s++) { var d = a ? l - s - 1 : s, f = u.value[d]; if (r(f)) { var p = { index: e + d, item: f }; a ? i.value.unshift(p) : i.value.push(p) } } if (!a && u.value.length < t || a && e <= 0) o.resolve(i); else { var m = a ? Math.max(e - K, 0) : e + t; c(m, K) } }, function (e) { o.reject(e) })) }, f = D(e, e, K), m = a ? f.i : e, h = a ? e - f.i + 1 : f.i + f.c - e; return c(m, h), l(o.promise(), { cancel: function () { s && s.cancel(), u = !0 } }) }, oe = function () { Z.onidle && 0 === $ && Z.onidle() }, ie = function (e, t) { e.oncomplete = re, t.push(e), $++, e.run(n) }, ue = function (e, t) { var n = { actualCacheSize: B, allDataLocal: q, cacheSize: H, collectionCount: V, highestSavedPage: z, highestSavedPageSize: F, pageSize: K, sourceId: Q.identifier, version: X }; W.addOrUpdate("__settings", n, e, t) }, se = function (e) { return function () { e.resolve(!1) } }, le = function (e, t) { var n = e.c, r = e.i; 0 === n ? z === r - K && (V = z + F) : ((z = Math.max(z, r)) === r && (F = n), B += t, n < K && !V && (V = r + n)), q || V !== z + F || (q = !0) }, ce = function (e, t, n, r) { var a = e.canceled && t !== A; return a && t === C && r && r.cancel && r.cancel(), a }, de = function (e, t, n) { var r = e.transition; if (n !== S) return te(S), !0; switch (t) { case M: r(R); break; case A: oe(); break; case R: ne().then(function () { e.complete() }), e.wait(); break; default: return !1 }return !0 }, fe = function (e, t, n, r) { if (!ce(e, t, 0, r)) { var a = e.transition; if (n !== x) return n === S ? t !== C && e.cancel() : n === O && te(x), !0; switch (t) { case M: _[0] === e && a(j, e.i); break; case G: var o = e.pending; o > 0 && (o -= Math.min(o, r.c)), q || 0 === o || r.c < K || J ? e.complete() : (e.pending = o, a(j, r.i + K)); break; default: return me(e, t, n, r, !0) } } return !0 }, pe = function (e, t, r, o) { if (!ce(e, t, 0, o)) { var i = e.transition; if (r !== N && t !== M) return r === S ? t !== M && e.cancel() : r !== P && (c(n == O || n === x, "DataCache.readStateMachine() - cache is not on the read or idle state."), te(N)), !0; switch (t) { case M: if (r === O || r === x) if (te(N), e.c >= 0) { var u = D(e.i, e.c, K); i(j, u.i) } else i(G, e); break; case G: !function (e, t) { var n = (o = e, i = t, s = o.i + o.c, l = i.i + i.c, c = o.i > i.i ? o.i : i.i, d = s < l ? s : l, d >= c && (u = { i: c, c: d - c }), u), r = 0, a = 0; var o, i, u, s, l, c, d; n && (a = (r = n.i - t.i) + (e.c - h(e.d))), e.d = v(e.d, y(t.d, r, a)) }(e, o); var s = h(e.d); e.c === s || o.c < K ? (a.cacheReads++, function (e) { if (!q && 0 !== Y && !J && (c(n === N, "DataCache.prefetch() - cache is not on the read state, current state: " + n), 0 === _.length || _[0] && -1 !== _[0].c)) { var t = new U(fe, null, !0, e, Y, null, Y); ie(t, _) } }(o.i + o.c), e.complete()) : i(j, o.i + K); break; default: return me(e, t, r, o, !1) } } return !0 }, me = function (e, t, r, o, i) { var u, s = e.error, d = e.transition, f = e.wait; switch (t) { case A: oe(); break; case j: u = function (e) { c(n !== S, "DataCache.readPage() - cache is on the destroy state"); var t = !1, r = l(new m, { cancel: function () { t = !0 } }), a = se(r, "Read page from store failure"); return W.contains(e, function (n) { t || (n ? W.read(e, function (e, n) { t || r.resolve(void 0 !== n, n) }, a) : r.resolve(!1)) }, a), r }(o).then(function (t, n) { e.canceled || (t ? d(G, n) : d(k, o)) }); break; case k: u = function (e) { c(n !== S, "DataCache.fetchPage() - cache is on the destroy state"), c(n !== O, "DataCache.fetchPage() - cache is on the idle state"); var t = new m, r = Q.read(e, K, function (n) { var r = h(n), a = { i: e, c: r, d: n }; t.resolve(a) }, function (e) { t.reject(e) }); return l(t, { cancel: function () { r && (r.abort(), r = null) } }) }(o).then(function (t) { e.canceled || (i ? a.prefetches++ : a.netReads++, d(L, t)) }, s); break; case L: r !== P && (te(P), u = function (e, t) { c(n !== S, "DataCache.savePage() - cache is on the destroy state"), c(n !== O, "DataCache.savePage() - cache is on the idle state"); var r = l(new m, { cancel: function () { } }), a = se(r, "Save page to store failure"), o = function () { r.resolve(!0) }; if (t.c > 0) { var i = T(t); (J = H >= 0 && H < B + i) ? o() : W.addOrUpdate(e, t, function () { le(t, i), ue(o, a) }, a) } else le(t, 0), ue(o, a); return r }(o.i, o).then(function (t) { e.canceled || (!t && i && (e.pending = 0), d(G, o)), te(O) })); break; default: return !1 }return u && (e.canceled ? u.cancel() : e.s === t && f(u)), !0 }; return W.read("__settings", function (e, t) { if (u(t)) { var n = t.version; if (!n || 0 !== n.indexOf("1.")) return void ee("Unsupported cache store version " + n)(); K !== t.pageSize || Q.identifier !== t.sourceId ? ne().then(function () { te(O) }, ee("Unable to clear store during initialization")) : (B = t.actualCacheSize, q = t.allDataLocal, H = t.cacheSize, V = t.collectionCount, z = t.highestSavedPage, F = t.highestSavedPageSize, X = n, te(O)) } else ue(function () { te(O) }, ee("Unable to write settings during initialization.")) }, ee("Unable to read settings from store.")), Z } U.prototype.fireResolved = function () { var e = this.p; e && (this.p = null, e.resolve(this.d)) }, U.prototype.fireRejected = function (e) { var t = this.p; t && (this.p = null, t.reject(e)) }, U.prototype.fireCanceled = function () { this.fireRejected({ canceled: !0, message: "Operation canceled" }) }, e.estimateSize = T, e.createDataCache = function (e) { if (function (e, t) { if (void 0 !== e) { if ("number" != typeof e) throw { message: "'" + t + "' must be a number." }; if (isNaN(e) || e <= 0 || !isFinite(e)) throw { message: "'" + t + "' must be greater than zero." } } }(e.pageSize, "pageSize"), E(e.cacheSize, "cacheSize"), E(e.prefetchSize, "prefetchSize"), !u(e.name)) throw { message: "Undefined or null name", options: e }; if (!u(e.source)) throw { message: "Undefined source", options: e }; return new B(e) } }, source: function (e, t, n) { "use strict"; var r = n("./../utils.js"), a = n("./../odata.js"), o = r.parseInt10, i = r.normalizeURICase; function u(e, t) { return { method: "GET", requestUri: e, user: t.user, password: t.password, enableJsonpCallback: t.enableJsonpCallback, callbackParameterName: t.callbackParameterName, formatQueryString: t.formatQueryString } } function s(e, t, n, r) { return function e(t, n, r, o, i) { var s = u(t, n); var l = a.request(s, function (a) { var u = a["@odata.nextLink"]; if (u) { var s = t.indexOf(".svc/", 0); -1 != s && (u = t.substring(0, s + 5) + u) } if (r.value && a.value) r.value = r.value.concat(a.value); else for (var c in a) "@odata.nextLink" != c && (r[c] = a[c]); u ? l = e(u, n, r, o, i) : o(r) }, i, void 0, n.httpClient, n.metadata); return { abort: function () { l.abort() } } }(e, t, {}, n, r) } e.ODataCacheSource = function (e) { var t = this, n = e.source; return t.identifier = i(encodeURI(decodeURI(n))), t.options = e, t.count = function (e, r) { var i = t.options; return a.request(u(function (e, t) { var n = e.indexOf("?"), r = ""; return n >= 0 && (r = e.substr(n), e = e.substr(0, n)), "/" !== e[e.length - 1] && (e += "/"), e + t + r }(n, "$count"), i), function (t) { var n = o(t.toString()); isNaN(n) ? r({ message: "Count is NaN", count: n }) : e(n) }, r, void 0, i.httpClient, i.metadata) }, t.read = function (e, r, a, o) { return s(function (e, t) { return e + (e.indexOf("?") >= 0 ? "&" : "?") + t }(n, "$skip=" + e + "&$top=" + r), t.options, a, o) }, t } }, deferred: function (e, t, n) { "use strict"; function r() { this._arguments = void 0, this._done = void 0, this._fail = void 0, this._resolved = !1, this._rejected = !1 } r.prototype = { then: function (e, t) { return e && (this._done ? this._done.push(e) : this._done = [e]), t && (this._fail ? this._fail.push(t) : this._fail = [t]), this._resolved ? this.resolve.apply(this, this._arguments) : this._rejected && this.reject.apply(this, this._arguments), this }, resolve: function () { if (this._done) { var e, t; for (e = 0, t = this._done.length; e < t; e++)this._done[e].apply(null, arguments); this._done = void 0, this._resolved = !1, this._arguments = void 0 } else this._resolved = !0, this._arguments = arguments }, reject: function () { if (this._fail) { var e, t; for (e = 0, t = this._fail.length; e < t; e++)this._fail[e].apply(null, arguments); this._fail = void 0, this._rejected = !1, this._arguments = void 0 } else this._rejected = !0, this._arguments = arguments }, promise: function () { var e, t, n, r = {}; return r.then = (e = this, t = "then", n = r, function () { return e[t].apply(e, arguments), n }), r } }, e.createDeferred = function () { return window.jQuery && window.jQuery.Deferred ? new window.jQuery.Deferred : new r }, e.DjsDeferred = r }, odata: function (e, t, n) { "use strict"; var r = e.utils = n("./odata/odatautils.js"), a = e.handler = n("./odata/handler.js"), o = e.metadata = n("./odata/metadata.js"), i = e.net = n("./odata/net.js"), u = e.json = n("./odata/json.js"); e.batch = n("./odata/batch.js"); var s = n("./utils.js"), l = s.assigned, c = (s.defined, s.throwErrorCallback), d = (r.invokeRequest, a.MAX_DATA_SERVICE_VERSION), f = (r.prepareRequest, o.metadataParser), p = [u.jsonHandler, a.textHandler]; function m(e, t, n) { var r, a; for (r = 0, a = p.length; r < a && !p[r][e](t, n); r++); if (r === a) throw { message: "no handler for data" } } e.defaultSuccess = function (e) { window.alert(window.JSON.stringify(e)) }, e.defaultError = c, e.defaultHandler = { read: function (e, t) { e && l(e.body) && e.headers["Content-Type"] && m("read", e, t) }, write: function (e, t) { m("write", e, t) }, maxDataServiceVersion: d, accept: "application/json;q=0.9, */*;q=0.1" }, e.defaultMetadata = [], e.read = function (t, n, r, a, o, i) { var u; return u = t instanceof String || "string" == typeof t ? { requestUri: t } : t, e.request(u, n, r, a, o, i) }, e.request = function (t, n, a, o, l, c) { n = n || e.defaultSuccess, a = a || e.defaultError, o = o || e.defaultHandler, l = l || i.defaultHttpClient, c = c || e.defaultMetadata, t.recognizeDates = s.defined(t.recognizeDates, u.jsonHandler.recognizeDates), t.callbackParameterName = s.defined(t.callbackParameterName, i.defaultHttpClient.callbackParameterName), t.formatQueryString = s.defined(t.formatQueryString, i.defaultHttpClient.formatQueryString), t.enableJsonpCallback = s.defined(t.enableJsonpCallback, i.defaultHttpClient.enableJsonpCallback); var d = { metadata: c, recognizeDates: t.recognizeDates, callbackParameterName: t.callbackParameterName, formatQueryString: t.formatQueryString, enableJsonpCallback: t.enableJsonpCallback }; try { return r.prepareRequest(t, o, d), r.invokeRequest(t, n, a, o, l, d) } catch (e) { if (e.bIsSuccessHandlerError) throw e; a(e) } }, e.parseMetadata = function (e) { return f(null, e) }, e.batch.batchHandler.partHandler = e.defaultHandler, e.metadataHandler = o.metadataHandler, e.jsonHandler = u.jsonHandler }, batch: function (e, t, n) { "use strict"; var r = n("./../utils.js"), a = n("./odatautils.js"), o = n("./handler.js"), i = r.extend, u = r.isArray, s = (r.trimString, o.contentType), l = o.handler, c = a.isBatch, d = o.MAX_DATA_SERVICE_VERSION, f = a.normalizeHeaders, p = a.prepareRequest, m = "multipart/mixed", h = /^HTTP\/1\.\d (\d{3}) (.*)$/i, y = /^([^()<>@,;:\\"\/[\]?={} \t]+)\s?:\s?(.*)/; function v() { return Math.floor(65536 * (1 + Math.random())).toString(16).substr(1) } function g(e) { return e + v() + "-" + v() + "-" + v() } function E(e) { return e.handler.partHandler } function b(e) { var t = e.boundaries; return t[t.length - 1] } function T(e, t, n) { if ((n.contentType = n.contentType || s(m)).mediaType === m) return function (e, t) { if (!c(e)) throw { message: "Data is not a batch object." }; var n, r, a = g("batch_"), o = e.__batchRequests, i = ""; for (n = 0, r = o.length; n < r; n++)i += N(a, !1) + x(o[n], t); return i += N(a, !0), t.contentType.properties.boundary = a, i }(t, n) } function D(e, t) { var n, r, a, o = {}; do { a = t.position, r = O(e, t), null !== (n = y.exec(r)) ? o[n[1]] = n[2] : t.position = a } while (r && n); return f(o), o } function S(e, t, n) { var r, a, o, i = t.position, u = h.exec(O(e, t)); return u ? (r = u[1], a = u[2], o = D(e, t), O(e, t)) : t.position = i, { statusCode: r, statusText: a, headers: o, body: w(e, t, "\r\n" + n) } } function O(e, t) { return w(e, t, "\r\n") } function w(e, t, n) { var r = t.position || 0, a = e.length; if (n) { if (-1 === (a = e.indexOf(n, r))) return null; t.position = a + n.length } else t.position = a; return e.substring(r, a) } function N(e, t) { var n = "\r\n--" + e; return t && (n += "--"), n + "\r\n" } function x(e, t, n) { var r, a = e.__changeRequests; if (u(a)) { if (n) throw { message: "Not Supported: change set nested in other change set" }; var o, s, c = g("changeset_"); for (r = "Content-Type: " + m + "; boundary=" + c + "\r\n", o = 0, s = a.length; o < s; o++)r += N(c, !1) + x(a[o], t, !0); r += N(c, !0) } else { r = "Content-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\n"; var d = i({}, t); d.handler = l, d.request = e, d.contentType = null, p(e, E(t), d), r += P(e) } return r } function P(e) { var t = (e.method ? e.method : "GET") + " " + e.requestUri + " HTTP/1.1\r\n"; for (var n in e.headers) e.headers[n] && (t = t + n + ": " + e.headers[n] + "\r\n"); return t += "\r\n", e.body && (t += e.body), t } e.batchHandler = l(function (e, t, n) { return { __batchResponses: function e(t, n) { var r = "--" + b(n); w(t, n, r), O(t, n); for (var a = [], o = null; "--" !== o && n.position < t.length;) { var i, u = D(t, n), l = s(u["Content-Type"]); if (l && l.mediaType === m) { n.boundaries.push(l.properties.boundary); try { i = e(t, n) } catch (e) { e.response = S(t, n, r), i = [e] } a.push({ __changeResponses: i }), n.boundaries.pop(), w(t, n, "--" + b(n)) } else { if (!l || "application/http" !== l.mediaType) throw { message: "invalid MIME part type " }; O(t, n); var c = S(t, n, r); try { c.statusCode >= 200 && c.statusCode <= 299 ? E(n.handlerContext).read(c, n.handlerContext) : c = { message: "HTTP request failed", response: c } } catch (e) { c = e } a.push(c) } o = t.substr(n.position, 2), O(t, n) } return a }(t, { boundaries: [n.contentType.properties.boundary], handlerContext: n }) } }, T, m, d), e.batchSerializer = T, e.writeRequest = P }, handler: function (e, t, n) { "use strict"; var r = n("./../utils.js"), a = n("./odatautils.js"), o = r.assigned, i = r.extend, u = r.trimString, s = a.maxVersion; function l(e) { if (!e) return null; var t, n, r = e.split(";"), a = {}; for (t = 1, n = r.length; t < n; t++) { var o = r[t].split("="); a[u(o[0])] = o[1] } return { mediaType: u(r[0]), properties: a } } function c(e) { if (e) { var t, n = e.mediaType; for (t in e.properties) n += ";" + t + "=" + e.properties[t]; return n } } function d(e, t, n, r) { var a = {}; return i(a, n), i(a, { contentType: e, dataServiceVersion: t, handler: r }), a } function f(e, t, n) { if (e) { var r = e.headers; r[t] || (r[t] = n) } } function p(e, t) { var n = e.headers; return n && n[t] || void 0 } function m(e) { return l(p(e, "Content-Type")) } var h = /^\s?(\d+\.\d+);?.*$/; function y(e) { var t = p(e, "OData-Version"); if (t) { var n = h.exec(t); if (n && n.length) return n[1] } } function v(e, t) { return e.accept.indexOf(t.mediaType) >= 0 } function g(e, t, n, r) { if (!n || !n.headers) return !1; var a = m(n), o = y(n); if (!a || v(e, a)) { var i = d(a, o, r, e); if (i.request = n, n.body = t(e, n.data, i), void 0 !== n.body) return function (e, t) { if (e) { var n = e.headers, r = n["OData-Version"]; n["OData-Version"] = r ? s(r, t) : t } }(n, i.dataServiceVersion || "4.0"), f(n, "Content-Type", c(i.contentType)), f(n, "OData-MaxVersion", e.maxDataServiceVersion), !0 } return !1 } function E(e, t, n, r) { return { accept: n, maxDataServiceVersion: r, read: function (t, n) { return function (e, t, n, r) { if (!n || !n.headers) return !1; var a = m(n), i = y(n) || "", u = n.body; if (!o(u)) return !1; if (v(e, a)) { var s = d(a, i, r, e); return s.response = n, n.data = t(e, u, s), void 0 !== n.data } return !1 }(this, e, t, n) }, write: function (e, n) { return g(this, t, e, n) } } } e.textHandler = E(function (e, t) { return t }, function (e, t) { return o(t) ? t.toString() : void 0 }, "text/plain", "4.0"), e.contentType = l, e.contentTypeToString = c, e.handler = E, e.createReadWriteContext = d, e.fixRequestHeader = f, e.getRequestOrResponseHeader = p, e.getContentType = m, e.getDataServiceVersion = y, e.MAX_DATA_SERVICE_VERSION = "4.0" }, json: function (e, t, n) { var r = n("./../utils.js"), a = n("./odatautils.js"), o = n("./handler.js"), i = "@odata.context", u = r.assigned, s = r.defined, l = r.isArray, c = r.isObject, d = r.parseInt10, f = r.getFormatKind, p = r.convertByteArrayToHexString, m = (a.formatDateTimeOffset, a.formatDuration), h = a.formatNumberWidth, y = (a.getCanonicalTimezone, a.handler, a.isComplex, a.isPrimitive), v = a.isCollectionType, g = a.lookupComplexType, E = a.lookupEntityType, b = a.lookupSingleton, T = a.lookupEntitySet, D = a.lookupDefaultEntityContainer, S = a.lookupProperty, O = a.MAX_DATA_SERVICE_VERSION, w = a.maxVersion, N = a.isPrimitiveEdmType, x = a.isGeographyEdmType, P = a.isGeometryEdmType, C = "f", A = "e", I = "p", M = "c", _ = "s", R = "erl", G = "erls", j = "v", L = "f", k = "de", U = "l", B = "dl", q = o.contentType("application/json"), H = ["@odata.id", "@odata.type"]; function V(e, t, n) { var a, o = s(n.recognizeDates, e.recognizeDates), c = n.metadata, d = "string" == typeof t ? JSON.parse(t) : t; u(n.contentType) && u(n.contentType.properties) && (a = n.contentType.properties["odata.metadata"]); var p = f(a, 1); return 0 === p ? d : 1 === p ? function (e, t, n) { if (!u(t) || l(t)) return e; var r = e[i], a = re(e, t); switch (a.detectedPayloadKind) { case j: return null !== a.type ? X(e, a, r, t, n) : Z(e, "value", a.typeName); case C: return function (e, t, n, r, a) { var o, i, u, l = [], c = e.value; for (o = 0, i = c.length; o < i; o++) { var d = c[o]; if (s(d["@odata.type"])) { var f = d["@odata.type"].substring(1), p = E(f, t), m = { contentTypeOdata: n.contentTypeOdata, detectedPayloadKind: n.detectedPayloadKind, name: n.name, type: p, typeName: f }; u = X(d, m, r, t, a) } else u = X(d, n, r, t, a); l.push(u) } return e.value = l, e }(e, t, a, r, n); case A: return X(e, a, r, t, n); case M: return function (e, t, n, r, a) { if (W(e, "", n.typeName), null !== n.type) { var o, i, u, l = [], c = e.value; for (o = 0, i = c.length; o < i; o++) { var d = c[o]; if (s(d["@odata.type"])) { var f = d["@odata.type"].substring(1), p = E(f, t), m = { contentTypeOdata: n.contentTypeOdata, detectedPayloadKind: n.detectedPayloadKind, name: n.name, type: p, typeName: f }; u = X(d, m, r, t, a) } else u = X(d, n, r, t, a); l.push(u) } e.value = l } return e }(e, t, a, r, n); case I: return null !== a.type ? X(e, a, r, t, n) : Z(e, "value", a.typeName); case _: case PAYLOADTYPE_LINKS: return e }return e }(d, c, o) : 2 === p ? function e(t, n, a) { var o; if (r.isObject(t)) for (var i in t) if (t.hasOwnProperty(i) && -1 === i.indexOf("@")) if (r.isArray(t[i])) for (var s = 0; s < t[i].length; ++s)e(t[i][s], n, a); else if (r.isObject(t[i])) null !== t[i] && ((o = t[i + "@odata.type"]) ? (o = o.substring(1), x(o) || P(o) || e(t[i], n, a)) : e(t[i], n, a)); else if (o = t[i + "@odata.type"], u(o)) a && te(t, i, o.substring(1)); else { var l = typeof t[i]; "string" === l ? Q(t, i, "String") : "boolean" === l ? Q(t, i, "Boolean") : "number" === l && (t[i] % 1 == 0 ? Q(t, i, "Int32") : Q(t, i, "Decimal")) } return t }(d, c, o) : d } var z = /^\/Date\((-?\d+)(\+|-)?(\d+)?\)\/$/, F = function (e, t) { return t && "Edm.Time" === t.__edmType ? m(t) : t }; function J(e, t, n) { var r = n.dataServiceVersion || "4.0", a = n.contentType = n.contentType || q; if (a && a.mediaType === q.mediaType) { n.dataServiceVersion = w(r, "4.0"); var o = function e(t) { if (!t) return t; if (y(t)) return t; if (l(t)) { var n, r, a = []; for (n = 0, r = t.length; n < r; n++)a[n] = e(t[n]); return a } var o = {}; for (var i in t) K(i) && (o[i] = e(t[i])); return o }(t); if (o) return JSON.stringify(o, F) } } function K(e) { if (!e) return !1; if (-1 == e.indexOf("@odata.")) return !0; var t, n; for (t = 0, n = H.length; t < n; t++) { var r = H[t]; if (-1 != e.indexOf(r)) return !0 } return !1 } function Y(e, t, n, r, a) { for (var o in e) if (-1 === o.indexOf("@")) { for (var i = t, u = e[o], s = S(i.property, o); null === s && void 0 !== i.baseType;)i = E(i.baseType, r), s = S(i.property, o); if (l(u)) { v(s.type) ? W(e, o, s.type.substring(11, s.type.length - 1)) : Z(e, o, s.type); for (var d = 0; d < u.length; d++)$(u[d], s, n, r, a) } else c(u) && null !== u ? $(u, s, n, r, a) : (Z(e, o, s.type), a && ee(e, o, s.type)) } } function X(e, t, n, r, a) { Q(e, "", t.typeName); for (var o = t.type; s(o) && void 0 === o.key && void 0 !== o.baseType;)o = E(o.baseType, r); if (void 0 !== o.key) { var i = t.name + function (e, t) { var n, r, a = t.key[0].propertyRef; if (n = "(", 1 == a.length) r = S(t.property, a[0].name).type, n += ne(e[a[0].name], r); else for (var o = !0, i = 0; i < a.length; i++)o ? o = !1 : n += ",", r = S(t.property, a[i].name).type, n += a[i].name + "=" + ne(e[a[i].name], r); return n += ")" }(e, o); e["@odata.id"] = n.substring(0, n.lastIndexOf("$metadata")) + i, e["@odata.editLink"] = i } return Y(e, t.type, n, r, a), e } function $(e, t, n, r, a) { var o = t.type; v(t.type) && (o = t.type.substring(11, t.type.length - 1)), Q(e, "", t.type); var i = g(o, r); null !== i && Y(e, i, n, r, a) } function Q(e, t, n) { var r = t + "@odata.type"; void 0 === e[r] && (e[r] = "#" + n) } function W(e, t, n) { var r = t + "@odata.type"; void 0 === e[r] && ("Edm." === n.substring(0, 4) ? e[r] = "#Collection(" + n.substring(4) + ")" : e[r] = "#Collection(" + n + ")") } function Z(e, t, n) { var r = t + "@odata.type"; return void 0 === e[r] && ("Edm." === n.substring(0, 4) ? e[r] = "#" + n.substring(4) : e[r] = "#" + n), e } function ee(e, t, n) { "Edm.Date" === n ? e[t] = a.parseDate(e[t], !0) : "Edm.DateTimeOffset" === n ? e[t] = a.parseDateTimeOffset(e[t], !0) : "Edm.Duration" === n ? e[t] = a.parseDuration(e[t], !0) : "Edm.Time" === n && (e[t] = a.parseTime(e[t], !0)) } function te(e, t, n) { "Date" === n ? e[t] = a.parseDate(e[t], !0) : "DateTimeOffset" === n ? e[t] = a.parseDateTimeOffset(e[t], !0) : "Duration" === n ? e[t] = a.parseDuration(e[t], !0) : "Time" === n && (e[t] = a.parseTime(e[t], !0)) } function ne(e, t) { switch (e = "" + function (e, t) { switch (t) { case "Edm.Binary": return p(e); default: return e } }(e, t), e = encodeURIComponent(e.replace("'", "''")), t) { case "Edm.Binary": return "X'" + e + "'"; case "Edm.DateTime": return "datetime'" + e + "'"; case "Edm.DateTimeOffset": return "datetimeoffset'" + e + "'"; case "Edm.Decimal": return e + "M"; case "Edm.Guid": return "guid'" + e + "'"; case "Edm.Int64": return e + "L"; case "Edm.Float": return e + "f"; case "Edm.Double": return e + "D"; case "Edm.Geography": return "geography'" + e + "'"; case "Edm.Geometry": return "geometry'" + e + "'"; case "Edm.Time": return "time'" + e + "'"; case "Edm.String": return "'" + e + "'"; default: return e } } function re(e, t) { var n = e[i]; if (!n || "string" != typeof n) return null; var a, o = n.lastIndexOf("#"); return -1 === o ? { kind: _, type: a || null } : function (e, t) { var n = {}; if (-1 === e.indexOf("/")) { if (0 === e.length) return n.detectedPayloadKind = _, n; if ("Edm.Null" === e) return n.detectedPayloadKind = j, n.isNullProperty = !0, n; if ("Collection($ref)" === e) return n.detectedPayloadKind = G, n; if ("$ref" === e) return n.detectedPayloadKind = R, n } n.type = void 0, n.typeName = void 0; for (var a, o, i = e.split("/"), u = 0; u < i.length; ++u) { var s = i[u]; if (void 0 === n.typeName) { if (-1 !== s.indexOf("(")) { for (var l = s.length - 2, c = 1; c > 0 && l > 0; --l)"(" == s.charAt(l) ? c-- : ")" == s.charAt(l) && c++; var d = s.substring(l + 2, s.length - 1); if (s = s.substring(0, l + 1), r.startsWith(s, "Collection")) { if (n.detectedPayloadKind = M, n.typeName = d, null !== (a = E(n.typeName, t))) { n.type = a; continue } if (null !== (a = g(n.typeName, t))) { n.type = a; continue } n.type = null; continue } n.projection = d } if (N(o = s) || x(o) || P(o)) { n.typeName = s, n.type = null, n.detectedPayloadKind = j; continue } var f = D(t), p = T(f.entitySet, s); if (null !== p) { n.typeName = p.entityType, n.type = E(n.typeName, t), n.name = s, n.detectedPayloadKind = C; continue } var m = b(f.singleton, s); if (null !== m) { n.typeName = m.entityType, n.type = E(n.typeName, t), n.name = s, n.detectedPayloadKind = A; continue } } else { if (r.endsWith(s, "$entity") && n.detectedPayloadKind === C) { n.detectedPayloadKind = A; continue } if (-1 !== s.indexOf(".")) { if (n.typeName = s, null !== (a = E(n.typeName, t))) { n.type = a; continue } if (null !== (a = g(n.typeName, t))) { n.type = a; continue } } if (n.detectedPayloadKind === C || n.detectedPayloadKind === A) { var h = S(n.type.property, s); if (null !== h) { if (n.typeName = h.type, r.startsWith(h.type, "Collection")) { n.detectedPayloadKind = M; var y = h.type.substring(11, h.type.length - 1); n.typeName = y, n.type = g(y, t), n.detectedPayloadKind = M } else n.type = g(h.type, t), n.detectedPayloadKind = I; n.name = s } continue } if ("$delta" === s) { n.deltaKind = L; continue } if (r.endsWith(s, "/$deletedEntity")) { n.deltaKind = k; continue } if (r.endsWith(s, "/$link")) { n.deltaKind = U; continue } if (r.endsWith(s, "/$deletedLink")) { n.deltaKind = B; continue } } } return n }(n.substring(o + 1), t) } var ae = o.handler(V, J, "application/json", O); ae.recognizeDates = !1, e.createPayloadInfo = re, e.jsonHandler = ae, e.jsonParser = V, e.jsonSerializer = J, e.parseJsonDateString = function (e) { var t = e && z.exec(e); if (t) { var n = new Date(d(t[1])); if (t[2]) { var r = d(t[3]); "-" === t[2] && (r = -r); var a = n.getUTCMinutes(); n.setUTCMinutes(a - r), n.__edmType = "Edm.DateTimeOffset", n.__offset = function (e) { var t; e < 0 ? (t = "-", e = -e) : t = "+"; var n = Math.floor(e / 60); return e -= 60 * n, t + h(n, 2) + ":" + h(e, 2) }(r) } if (!isNaN(n.valueOf())) return n } } }, metadata: function (e, t, n) { "use strict"; var r = n("./../utils.js"), a = n("./../xml.js"), o = n("./handler.js"), i = r.contains, u = (r.normalizeURI, a.xmlAttributes), s = a.xmlChildElements, l = a.xmlFirstChildElement, c = a.xmlInnerText, d = a.xmlLocalName, f = a.xmlNamespaceURI, p = (a.xmlNS, a.xmlnsNS), m = a.xmlParse, h = a.http + "docs.oasis-open.org/odata/" + "ns", y = h + "/edmx", v = h + "/edm", g = h + "/metadata", E = o.MAX_DATA_SERVICE_VERSION; function b(e, t, n, r) { return { attributes: e, elements: t, text: n || !1, ns: r } } var T = { elements: { Action: b(["Name", "IsBound", "EntitySetPath"], ["ReturnType", "Parameter*", "Annotation*"]), ActionImport: b(["Name", "Action", "EntitySet", "Annotation*"]), Annotation: b(["Term", "Qualifier", "Binary", "Bool", "Date", "DateTimeOffset", "Decimal", "Duration", "EnumMember", "Float", "Guid", "Int", "String", "TimeOfDay", "AnnotationPath", "NavigationPropertyPath", "Path", "PropertyPath", "UrlRef"], ["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*", "Annotation*"]), AnnotationPath: b(null, null, !0), Annotations: b(["Target", "Qualifier"], ["Annotation*"]), Apply: b(["Function"], ["String*", "Path*", "LabeledElement*", "Annotation*"]), And: b(null, null, !0), Or: b(null, null, !0), Not: b(null, null, !0), Eq: b(null, null, !0), Ne: b(null, null, !0), Gt: b(null, null, !0), Ge: b(null, null, !0), Lt: b(null, null, !0), Le: b(null, null, !0), Binary: b(null, null, !0), Bool: b(null, null, !0), Cast: b(["Type"], ["Path*", "Annotation*"]), Collection: b(null, ["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*"]), ComplexType: b(["Name", "BaseType", "Abstract", "OpenType"], ["Property*", "NavigationProperty*", "Annotation*"]), Date: b(null, null, !0), DateTimeOffset: b(null, null, !0), Decimal: b(null, null, !0), Duration: b(null, null, !0), EntityContainer: b(["Name", "Extends"], ["EntitySet*", "Singleton*", "ActionImport*", "FunctionImport*", "Annotation*"]), EntitySet: b(["Name", "EntityType", "IncludeInServiceDocument"], ["NavigationPropertyBinding*", "Annotation*"]), EntityType: b(["Name", "BaseType", "Abstract", "OpenType", "HasStream"], ["Key*", "Property*", "NavigationProperty*", "Annotation*"]), EnumMember: b(null, null, !0), EnumType: b(["Name", "UnderlyingType", "IsFlags"], ["Member*"]), Float: b(null, null, !0), Function: b(["Name", "IsBound", "IsComposable", "EntitySetPath"], ["ReturnType", "Parameter*", "Annotation*"]), FunctionImport: b(["Name", "Function", "EntitySet", "IncludeInServiceDocument", "Annotation*"]), Guid: b(null, null, !0), If: b(null, ["Path*", "String*", "Annotation*"]), Int: b(null, null, !0), IsOf: b(["Type", "MaxLength", "Precision", "Scale", "Unicode", "SRID", "DefaultValue", "Annotation*"], ["Path*"]), Key: b(null, ["PropertyRef*"]), LabeledElement: b(["Name"], ["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*", "Annotation*"]), LabeledElementReference: b(["Term"], ["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*"]), Member: b(["Name", "Value"], ["Annotation*"]), NavigationProperty: b(["Name", "Type", "Nullable", "Partner", "ContainsTarget"], ["ReferentialConstraint*", "OnDelete*", "Annotation*"]), NavigationPropertyBinding: b(["Path", "Target"]), NavigationPropertyPath: b(null, null, !0), Null: b(null, ["Annotation*"]), OnDelete: b(["Action"], ["Annotation*"]), Path: b(null, null, !0), Parameter: b(["Name", "Type", "Nullable", "MaxLength", "Precision", "Scale", "SRID"], ["Annotation*"]), Property: b(["Name", "Type", "Nullable", "MaxLength", "Precision", "Scale", "Unicode", "SRID", "DefaultValue"], ["Annotation*"]), PropertyPath: b(null, null, !0), PropertyRef: b(["Name", "Alias"]), PropertyValue: b(["Property", "Path"], ["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*", "Annotation*"]), Record: b(null, ["PropertyValue*", "Property*", "Annotation*"]), ReferentialConstraint: b(["Property", "ReferencedProperty", "Annotation*"]), ReturnType: b(["Type", "Nullable", "MaxLength", "Precision", "Scale", "SRID"]), String: b(null, null, !0), Schema: b(["Namespace", "Alias"], ["Action*", "Annotations*", "Annotation*", "ComplexType*", "EntityContainer", "EntityType*", "EnumType*", "Function*", "Term*", "TypeDefinition*", "Annotation*"]), Singleton: b(["Name", "Type"], ["NavigationPropertyBinding*", "Annotation*"]), Term: b(["Name", "Type", "BaseTerm", "DefaultValue ", "AppliesTo", "Nullable", "MaxLength", "Precision", "Scale", "SRID"], ["Annotation*"]), TimeOfDay: b(null, null, !0), TypeDefinition: b(["Name", "UnderlyingType", "MaxLength", "Unicode", "Precision", "Scale", "SRID"], ["Annotation*"]), UrlRef: b(null, ["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*", "Annotation*"]), Edmx: b(["Version"], ["DataServices", "Reference*"], !1, y), DataServices: b(["m:MaxDataServiceVersion", "m:DataServiceVersion"], ["Schema*"], !1, y), Reference: b(["Uri"], ["Include*", "IncludeAnnotations*", "Annotation*"]), Include: b(["Namespace", "Alias"]), IncludeAnnotations: b(["TermNamespace", "Qualifier", "TargetNamespace"]) } }; function D(e) { if (!e) return e; if (e.length > 1) { var t = e.substr(0, 2); return t === t.toUpperCase() ? e : e.charAt(0).toLowerCase() + e.substr(1) } return e.charAt(0).toLowerCase() } function S(e, t) { var n, r, a = e.elements; if (!a) return null; for (n = 0, r = a.length; n < r; n++) { var o = a[n], i = !1; if ("*" === o.charAt(o.length - 1) && (i = !0, o = o.substr(0, o.length - 1)), t === o) return { isArray: i, propertyName: D(o) } } return null } function O(e) { return e === v } function w(e) { var t = d(e), n = f(e), r = T.elements[t]; if (!r) return null; if (r.ns) { if (n !== r.ns) return null } else if (!O(n)) return null; var a = {}, o = r.attributes || []; return u(e, function (e) { var t = d(e), n = f(e), r = e.value; if (n !== p) { var u = null; O(n) || null === n ? u = "" : n === g && (u = "m:"), null !== u && i(o, u += t) && (a[D(t)] = r) } }), s(e, function (e) { var t = d(e), n = S(r, t); if (n) if (n.isArray) { var o = a[n.propertyName]; o || (o = [], a[n.propertyName] = o), o.push(w(e)) } else a[n.propertyName] = w(e) }), r.text && (a.text = c(e)), a } function N(e, t) { var n = m(t); return w(l(n)) || void 0 } e.metadataHandler = o.handler(N, null, "application/xml", E), e.schema = T, e.scriptCase = D, e.getChildSchema = S, e.parseConceptualModelElement = w, e.metadataParser = N }, net: function (e, t, n) { var r = n("./../utils.js"), a = r.defined, o = r.delay, i = 0; function u(e) { return !(e.method && "GET" !== e.method) } function s(e) { return 0 === e.indexOf("http://") || 0 === e.indexOf("https://") || 0 === e.indexOf("file://") } function l(e) { if (!s(e)) return !0; var t = window.location, n = t.protocol + "//" + t.host + "/"; return 0 === e.indexOf(n) } function c(e) { return e && (d(e, ""), e.parentNode.removeChild(e)), null } function d(e, t) { var n = e.contentWindow ? e.contentWindow.document : e.contentDocument.document; n.open(), n.write(t), n.close() } e.defaultHttpClient = { callbackParameterName: "$callback", formatQueryString: "$format=json", enableJsonpCallback: !1, request: function () { var e = this; return function (t, n, r) { var s, f = {}, p = null, m = !1; f.abort = function () { s = c(s), m || (m = !0, p && (p.abort(), p = null), r({ message: "Request aborted" })) }; var h, y = function () { s = c(s), m || (m = !0, p = null, r({ message: "Request timed out" })) }, v = t.requestUri, g = a(t.enableJsonpCallback, e.enableJsonpCallback), E = a(t.callbackParameterName, e.callbackParameterName), b = a(t.formatQueryString, e.formatQueryString); if (!g || l(v)) { if ((p = function () { if (window.XMLHttpRequest) return new window.XMLHttpRequest; var e; if (window.ActiveXObject) try { return new window.ActiveXObject("Msxml2.XMLHTTP.6.0") } catch (t) { try { return new window.ActiveXObject("Msxml2.XMLHTTP.3.0") } catch (t) { e = t } } else e = { message: "XMLHttpRequest not supported" }; throw e }()).onreadystatechange = function () { if (!m && null !== p && 4 === p.readyState) { var e = p.statusText, a = p.status; 1223 === a && (a = 204, e = "No Content"); var o = []; !function (e, t) { var n, r, a = e.getAllResponseHeaders().split(/\r?\n/); for (n = 0, r = a.length; n < r; n++)if (a[n]) { var o = a[n].indexOf(": "), i = a[n].substring(0, o), u = a[n].substring(o + 2); t[i] = u } }(p, o); var i = { requestUri: v, statusCode: a, statusText: e, headers: o, body: p.responseText }; m = !0, p = null, a >= 200 && a <= 299 ? n(i) : r({ message: "HTTP request failed", request: t, response: i }) } }, p.open(t.method || "GET", v, !0, t.user, t.password), t.headers) for (h in t.headers) p.setRequestHeader(h, t.headers[h]); t.timeoutMS && (p.timeout = t.timeoutMS, p.ontimeout = y), p.send(t.body) } else { if (!u(t)) throw { message: "Request is not local and cannot be done through JSONP." }; var T = i; i += 1; var D, S = T.toString(); h = "handleJSONP_" + S, window[h] = function (e) { var t; (s = c(s), m) || (!0, window.clearTimeout(D), function (e, t) { try { delete window[e] } catch (n) { window[e] = void 0, t === i - 1 && (i -= 1) } }(h, T), window.ActiveXObject && (e = window.JSON.parse(window.JSON.stringify(e))), t = b && "$format=json" != b ? { "Content-Type": b.substring(8), "OData-Version": "4.0" } : { "Content-Type": "application/json;odata.metadata=minimal", "OData-Version": "4.0" }, o(function () { c(s), n({ body: e, statusCode: 200, headers: t }) })) }; var O = t.timeoutMS ? t.timeoutMS : 12e4; D = window.setTimeout(y, O); var w = E + "=parent." + h; b && (w += "&" + b); var N = v.indexOf("?"); -1 === N ? v = v + "?" + w : N === v.length - 1 ? v += w : v = v + "&" + w, s = function (e) { var t = window.document.createElement("IFRAME"); t.style.display = "none"; var n = '