/*! For license information please see cwr.js.LICENSE.txt */ !function(){var e={914:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=n(945),o=function(){function e(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],d=0;d>>17|f<<15)^(f>>>19|f<<13)^f>>>10,h=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var v=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(r.KEY[d]+this.temp[d]|0)|0)|0,y=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&i^o&i)|0;l=u,u=c,c=a,a=s+v|0,s=i,i=o,o=n,n=v+y|0}t[0]+=n,t[1]+=o,t[2]+=i,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}();t.RawSha256=o},945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,n(655).__exportStar)(n(430),t)},430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(655),o=n(945),i=n(914),s=n(658),a=function(){function e(e){if(this.hash=new i.RawSha256,e){this.outer=new i.RawSha256;var t=function(e){var t=(0,s.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var n=new i.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(o.BLOCK_SIZE);return r.set(t),r}(e),n=new Uint8Array(o.BLOCK_SIZE);n.set(t);for(var r=0;r>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},668:function(e,t,n){"use strict";n.r(t),n.d(t,{fromUtf8:function(){return r},toUtf8:function(){return o}});var r=function(e){return"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&o|128);else if(n+1>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(o>>12|224,o>>6&63|128,63&o|128)}return Uint8Array.from(t)}(e)},o=function(e){return"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof m?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},238:function(e,t,n){var r;!function(o,i){"use strict";var s="function",a="undefined",c="object",u="string",l="model",d="name",f="type",p="vendor",h="version",v="architecture",y="console",g="mobile",m="tablet",w="smarttv",b="wearable",S="embedded",E={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return typeof e===u&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===u?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===a?e:e.substring(0,255)}},C={rgx:function(e,t){for(var n,r,o,a,u,l,d=0;d0?2==a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,l):this[a[0]]=a[1]:3==a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=l?l.replace(a[1],a[2]):i:this[a[0]]=l?a[1].call(this,l,a[2]):i:4==a.length&&(this[a[0]]=l?a[3].call(this,l.replace(a[1],a[2])):i):this[a]=l||i;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r255?E.trim(e,255):e,this},this.setUA(n),this};A.VERSION="0.7.28",A.BROWSER={NAME:d,MAJOR:"major",VERSION:h},A.CPU={ARCHITECTURE:v},A.DEVICE={MODEL:l,VENDOR:p,TYPE:f,CONSOLE:y,MOBILE:g,SMARTTV:w,TABLET:m,WEARABLE:b,EMBEDDED:S},A.ENGINE={NAME:d,VERSION:h},A.OS={NAME:d,VERSION:h},typeof t!==a?(e.exports&&(t=e.exports=A),t.UAParser=A):(r=function(){return A}.call(t,n,t,e))===i||(e.exports=r);var I=void 0!==o&&(o.jQuery||o.Zepto);if(I&&!I.ua){var O=new A;I.ua=O.getResult(),I.ua.get=function(){return O.getUA()},I.ua.set=function(e){O.setUA(e);var t=O.getResult();for(var n in t)I.ua[n]=t[n]}}}("object"==typeof window?window:this)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}();var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}Object.create;var o=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var n,o=new e(t(t({},this),{headers:t({},this.headers)}));return o.query&&(o.query=(n=o.query,Object.keys(n).reduce((function(e,o){var i,s=n[o];return t(t({},e),((i={})[o]=Array.isArray(s)?function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;Object.create;function u(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var l=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,d)},d=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};function f(e){var t,n,r=[];try{for(var o=u(Object.keys(e).sort()),i=o.next();!i.done;i=o.next()){var s=i.value,a=e[s];if(s=l(s),Array.isArray(a))for(var c=0,d=a.length;c0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]")[1].split("")[0],secretAccessKey:n.split("")[1].split("")[0],sessionToken:n.split("")[1].split("")[0],expiration:new Date(n.split("")[1].split("")[0])}}))})).catch((function(){throw new Error("CWR: Failed to retrieve credentials from STS")}))]}))}))},this.hostname="sts."+e.region+".amazonaws.com",this.fetchRequestHandler=e.fetchRequestHandler},T="cwr_c",A="cwr_s",I="cwr_u",O=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},_=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]e},e}(),k=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},L=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]e},e}(),j=function(){function e(e){this.plugins=new Map,this.context=e}return e.prototype.addPlugin=function(e){var t=e.getPluginId();if(!t)throw new Error("InvalidPluginIdException");this.plugins.set(t,e),e.load(this.context)},e.prototype.enable=function(){this.plugins.forEach((function(e){return e.enable()}))},e.prototype.disable=function(){this.plugins.forEach((function(e){return e.disable()}))},e.prototype.hasPlugin=function(e){return this.plugins.has(e)},e.prototype.record=function(e,t){var n=this.plugins.get(e);if(!(n&&n.record instanceof Function))throw new Error("AWS RUM Client record: Invalid plugin ID");n.record(t)},e}(),H="com.amazon.rum.http_event",D="com.amazon.rum.xray_trace_event",M="com.amazon.rum.performance_navigation_event",q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn?t.stack.substring(0,n)+"...":t.stack)}(n,r,t),n},W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:0,n=(ne[e[t+0]]+ne[e[t+1]]+ne[e[t+2]]+ne[e[t+3]]+"-"+ne[e[t+4]]+ne[e[t+5]]+"-"+ne[e[t+6]]+ne[e[t+7]]+"-"+ne[e[t+8]]+ne[e[t+9]]+"-"+ne[e[t+10]]+ne[e[t+11]]+ne[e[t+12]]+ne[e[t+13]]+ne[e[t+14]]+ne[e[t+15]]).toLowerCase();if(!te(n))throw TypeError("Stringified UUID is invalid");return n};for(var ie=function(e,t,n){var r=(e=e||{}).random||(e.rng||Q)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return oe(r)},se=n(238),ae="00000000-0000-0000-0000-000000000000",ce="unknown",ue=function(){function e(e,t,n){this.config=e,this.record=t,this.pageManager=n,this.session={sessionId:ae,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.getSessionFromCookie()}return e.prototype.getSession=function(){return this.session.sessionId===ae||this.useCookies()?(this.session.sessionId===ae&&this.useCookies()||this.session.sessionId!==ae&&new Date>this.sessionExpiry)&&this.createSession():this.session={sessionId:ae,record:this.sample(),eventCount:0,page:this.session.page},this.session},e.prototype.getAttributes=function(){return this.attributes},e.prototype.getUserId=function(){return this.useCookies()?this.userId:ae},e.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},e.prototype.initializeUser=function(){var e="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(e=this.getUserIdCookie(),this.userId=e||ie(),this.createOrRenewUserCookie(e,this.userExpiry)):this.userId=ie()},e.prototype.createOrRenewSessionCookie=function(e,t){btoa&&Z(A,btoa(JSON.stringify(e)),this.config.cookieAttributes,void 0,t)},e.prototype.createOrRenewUserCookie=function(e,t){Z(I,e,this.config.cookieAttributes,void 0,t)},e.prototype.getUserIdCookie=function(){return Y(I)},e.prototype.getSessionFromCookie=function(){if(this.useCookies()){var e=Y(A);if(e&&atob)try{this.session=JSON.parse(atob(e)),this.pageManager.resumeSession(this.session.page.pageId,this.session.page.interaction)}catch(e){}}},e.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},e.prototype.createSession=function(){this.session={sessionId:ie(),record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.storeSessionAsCookie(),this.record(this.session,"com.amazon.rum.session_start_event",{version:"1.0.0"})},e.prototype.renewSession=function(){this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},e.prototype.collectAttributes=function(){var e=new se.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:e.browser.name?e.browser.name:ce,browserVersion:e.browser.version?e.browser.version:ce,osName:e.os.name?e.os.name:ce,osVersion:e.os.version?e.os.version:ce,deviceType:e.device.type?e.device.type:"desktop",platformType:"web",domain:window.location.hostname}},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.sample=function(){return Math.random()0&&this.config.pagesToExclude.some((function(t){return t.test(e)})))&&(!(this.config.pagesToInclude.length&&!this.config.pagesToInclude.some((function(t){return t.test(e)})))||void 0)},e}(),pe={},he={},ve=0;ve<256;ve++){var ye=ve.toString(16).toLowerCase();1===ye.length&&(ye="0"+ye),pe[ve]=ye,he[ye]=ve}function ge(e){for(var t="",n=0;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}Object.create;var Ce,xe="X-Amz-Date",Te="X-Amz-Signature",Ae="X-Amz-Security-Token",Ie="authorization",Oe=xe.toLowerCase(),_e=[Ie,Oe,"date"],Pe=Te.toLowerCase(),ke="x-amz-content-sha256",Le=Ae.toLowerCase(),Re={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},je=/^proxy-/,He=/^sec-/,De="AWS4-HMAC-SHA256",Me="AWS4-HMAC-SHA256-PAYLOAD",qe="aws4_request",Ne={},Be=[],ze=function(e,t,n){return e+"/"+t+"/"+n+"/"+qe},Ue=function(e,t,n){var r=new e(t);return r.update(n),r.digest()},Fe=function(e,t,n){var r,o,i=e.headers,s={};try{for(var a=Se(Object.keys(i).sort()),c=a.next();!c.done;c=a.next()){var u=c.value,l=u.toLowerCase();(l in Re||(null==t?void 0:t.has(l))||je.test(l)||He.test(l))&&(!n||n&&!n.has(l))||(s[l]=i[u].trim().replace(/\s+/g," "))}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return s},Ve=function(e,t){var n=e.headers,r=e.body;return we(void 0,void 0,void 0,(function(){var e,o,i,s,a,c,u;return be(this,(function(l){switch(l.label){case 0:try{for(e=Se(Object.keys(n)),o=e.next();!o.done;o=e.next())if((i=o.value).toLowerCase()===ke)return[2,n[i]]}catch(e){c={error:e}}finally{try{o&&!o.done&&(u=e.return)&&u.call(e)}finally{if(c)throw c.error}}return null!=r?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof r||ArrayBuffer.isView(r)||(d=r,"function"==typeof ArrayBuffer&&d instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(d))?((s=new t).update(r),a=ge,[4,s.digest()]):[3,3];case 2:return[2,a.apply(void 0,[l.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}var d}))}))},We=function(e){var t=e.headers,n=e.query,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o-1&&delete e.headers[i]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e},Ke=function(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e},Ze=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,o=e.service,i=e.sha256,s=e.uriEscapePath,a=void 0===s||s;this.service=o,this.sha256=i,this.uriEscapePath=a,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}(r),this.credentialProvider=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),we(this,void 0,void 0,(function(){var n,r,o,i,s,a,c,u,l,d,f,p,h,v,y,g,m,w,b,S,E,C,x,T;return be(this,(function(A){switch(A.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,o=t.expiresIn,i=void 0===o?3600:o,s=t.unsignableHeaders,a=t.unhoistableHeaders,c=t.signableHeaders,u=t.signingRegion,l=t.signingService,[4,this.credentialProvider()];case 1:return d=A.sent(),null==u?[3,2]:(p=u,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=A.sent(),A.label=4;case 4:return f=p,h=Je(r),v=h.longDate,y=h.shortDate,i>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(g=ze(y,f,null!=l?l:this.service),m=function(e,t){var n,r,o;void 0===t&&(t={});var i="function"==typeof e.clone?e.clone():We(e),s=i.headers,a=i.query,c=void 0===a?{}:a;try{for(var u=Se(Object.keys(s)),l=u.next();!l.done;l=u.next()){var d=l.value,f=d.toLowerCase();"x-amz-"!==f.substr(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(f))||(c[d]=s[d],delete s[d])}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return me(me({},e),{headers:s,query:c})}(Xe(e),{unhoistableHeaders:a}),d.sessionToken&&(m.query[Ae]=d.sessionToken),m.query["X-Amz-Algorithm"]=De,m.query["X-Amz-Credential"]=d.accessKeyId+"/"+g,m.query["X-Amz-Date"]=v,m.query["X-Amz-Expires"]=i.toString(10),w=Fe(m,s,c),m.query["X-Amz-SignedHeaders"]=Ye(w),b=m.query,S=Te,E=this.getSignature,C=[v,g,this.getSigningKey(d,f,y,l)],x=this.createCanonicalRequest,T=[m,w],[4,Ve(e,this.sha256)]);case 5:return[4,E.apply(this,C.concat([x.apply(this,T.concat([A.sent()]))]))];case 6:return b[S]=A.sent(),[2,m]}}))}))},e.prototype.sign=function(e,t){return we(this,void 0,void 0,(function(){return be(this,(function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,o=t.signingDate,i=void 0===o?new Date:o,s=t.priorSignature,a=t.signingRegion,c=t.signingService;return we(this,void 0,void 0,(function(){var e,t,o,u,l,d,f,p,h,v,y;return be(this,(function(g){switch(g.label){case 0:return null==a?[3,1]:(t=a,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=g.sent(),g.label=3;case 3:return e=t,o=Je(i),u=o.shortDate,l=o.longDate,d=ze(u,e,null!=c?c:this.service),[4,Ve({headers:{},body:r},this.sha256)];case 4:return f=g.sent(),(p=new this.sha256).update(n),v=ge,[4,p.digest()];case 5:return h=v.apply(void 0,[g.sent()]),y=[Me,l,d,s,h,f].join("\n"),[2,this.signString(y,{signingDate:i,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,i=n.signingRegion,s=n.signingService;return we(this,void 0,void 0,(function(){var t,n,r,a,c,u,l,d;return be(this,(function(f){switch(f.label){case 0:return[4,this.credentialProvider()];case 1:return t=f.sent(),null==i?[3,2]:(r=i,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=f.sent(),f.label=4;case 4:return n=r,a=Je(o).shortDate,l=(u=this.sha256).bind,[4,this.getSigningKey(t,n,a,s)];case 5:return(c=new(l.apply(u,[void 0,f.sent()]))).update(e),d=ge,[4,c.digest()];case 6:return[2,d.apply(void 0,[f.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,i=n.signableHeaders,s=n.unsignableHeaders,a=n.signingRegion,c=n.signingService;return we(this,void 0,void 0,(function(){var t,n,r,u,l,d,f,p,h,v,y;return be(this,(function(g){switch(g.label){case 0:return[4,this.credentialProvider()];case 1:return t=g.sent(),null==a?[3,2]:(r=a,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=g.sent(),g.label=4;case 4:return n=r,u=Xe(e),l=Je(o),d=l.longDate,f=l.shortDate,p=ze(f,n,null!=c?c:this.service),u.headers[Oe]=d,t.sessionToken&&(u.headers[Le]=t.sessionToken),[4,Ve(u,this.sha256)];case 5:return h=g.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var o=Se(Object.keys(t)),i=o.next();!i.done;i=o.next())if(e===i.value.toLowerCase())return!0}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(ke,u.headers)&&this.applyChecksum&&(u.headers[ke]=h),v=Fe(u,s,i),[4,this.getSignature(d,p,this.getSigningKey(t,n,f,c),this.createCanonicalRequest(u,v,h))];case 6:return y=g.sent(),u.headers[Ie]="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+p+", SignedHeaders="+Ye(v)+", Signature="+y,[2,u]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,o=void 0===r?{}:r,i=[],s={},a=function(e){if(e.toLowerCase()===Pe)return"continue";i.push(e);var t=o[e];"string"==typeof t?s[e]=l(e)+"="+l(t):Array.isArray(t)&&(s[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([l(e)+"="+l(n)])}),[]).join("&"))};try{for(var c=Se(Object.keys(o).sort()),u=c.next();!u.done;u=c.next())a(u.value)}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return i.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+r.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return we(this,void 0,void 0,(function(){var r,o;return be(this,(function(i){switch(i.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return o=i.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+ge(o)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return we(this,void 0,void 0,(function(){var o,i,s,a,c;return be(this,(function(u){switch(u.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return o=u.sent(),a=(s=this.sha256).bind,[4,n];case 2:return(i=new(a.apply(s,[void 0,u.sent()]))).update(o),c=ge,[4,i.digest()];case 3:return[2,c.apply(void 0,[u.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,o){return we(void 0,void 0,void 0,(function(){var i,s,a,c,u,l,d,f,p;return be(this,(function(h){switch(h.label){case 0:return[4,Ue(e,t.secretAccessKey,t.accessKeyId)];case 1:if(i=h.sent(),(s=n+":"+r+":"+o+":"+ge(i)+":"+t.sessionToken)in Ne)return[2,Ne[s]];for(Be.push(s);Be.length>50;)delete Ne[Be.shift()];a="AWS4"+t.secretAccessKey,h.label=2;case 2:h.trys.push([2,7,8,9]),c=Se([n,r,o,qe]),u=c.next(),h.label=3;case 3:return u.done?[3,6]:(l=u.value,[4,Ue(e,a,l)]);case 4:a=h.sent(),h.label=5;case 5:return u=c.next(),[3,3];case 6:return[3,9];case 7:return d=h.sent(),f={error:d},[3,9];case 8:try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}return[7];case 9:return[2,Ne[s]=a]}}))}))}(this.sha256,e,n,t,r||this.service)},e}(),Je=function(e){var t,n=(t=e,Ke(t).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.substr(0,8)}},Ye=function(e){return Object.keys(e).sort().join(";")},$e=n(938);!function(e){e.OTHER="other",e.STYLESHEET="stylesheet",e.DOCUMENT="document",e.SCRIPT="script",e.IMAGE="image",e.FONT="font"}(Ce||(Ce={}));for(var Qe,et,tt,nt,rt=[{name:Ce.STYLESHEET,list:["css","less"]},{name:Ce.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:Ce.SCRIPT,list:["js"]},{name:Ce.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:Ce.FONT,list:["fnt","fon","otf","ttf","woff"]}],ot=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}},it=function(e){var t=e.substring(e.lastIndexOf("/")+1),n=t.substring(t.lastIndexOf(".")+1).split(/[?#]/)[0],r=Ce.OTHER;return rt.forEach((function(e){e.list.indexOf(n)>-1&&(r=e.name)})),r},st=function(e){var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);return t&&t[4]?t[4]:""},at=function(e){var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);return t&&t[2]?t[2]:""},ct=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},ut=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?t.unloadEventStart-n:0,promptForUnload:t.unloadEventEnd-t.unloadEventStart,redirectStart:t.redirectStart>0?t.redirectStart-n:0,redirectTime:t.redirectEnd-t.redirectStart,fetchStart:t.fetchStart>0?t.fetchStart-n:0,domainLookupStart:t.domainLookupStart>0?t.domainLookupStart-n:0,dns:t.domainLookupEnd-t.domainLookupStart,connectStart:t.connectStart>0?t.connectStart-n:0,connect:t.connectEnd-t.connectStart,secureConnectionStart:t.secureConnectionStart>0?t.secureConnectionStart-n:0,tlsTime:t.secureConnectionStart>0?t.connectEnd-t.secureConnectionStart:0,requestStart:t.requestStart>0?t.requestStart-n:0,timeToFirstByte:t.responseStart-t.requestStart,responseStart:t.responseStart>0?t.responseStart-n:0,responseTime:t.responseStart>0?t.responseEnd-t.responseStart:0,domInteractive:t.domInteractive>0?t.domInteractive-n:0,domContentLoadedEventStart:t.domContentLoadedEventStart>0?t.domContentLoadedEventStart-n:0,domContentLoaded:t.domContentLoadedEventEnd-t.domContentLoadedEventStart,domComplete:t.domComplete>0?t.domComplete-n:0,domProcessingTime:t.loadEventStart-t.responseEnd,loadEventStart:t.loadEventStart>0?t.loadEventStart-n:0,loadEventTime:t.loadEventEnd-t.loadEventStart,duration:t.loadEventEnd-t.navigationStart,navigationTimingLevel:1};e.recordEvent&&e.recordEvent(M,r)}),0)},this.performanceNavigationEventHandlerTimingLevel2=function(t){var n={version:"1.0.0",initiatorType:t.initiatorType,navigationType:t.type,startTime:t.startTime,unloadEventStart:t.unloadEventStart,promptForUnload:t.unloadEventEnd-t.unloadEventStart,redirectCount:t.redirectCount,redirectStart:t.redirectStart,redirectTime:t.redirectEnd-t.redirectStart,workerStart:t.workerStart,workerTime:t.workerStart>0?t.fetchStart-t.workerStart:0,fetchStart:t.fetchStart,domainLookupStart:t.domainLookupStart,dns:t.domainLookupEnd-t.domainLookupStart,nextHopProtocol:t.nextHopProtocol,connectStart:t.connectStart,connect:t.connectEnd-t.connectStart,secureConnectionStart:t.secureConnectionStart,tlsTime:t.secureConnectionStart>0?t.connectEnd-t.secureConnectionStart:0,requestStart:t.requestStart,timeToFirstByte:t.responseStart-t.requestStart,responseStart:t.responseStart,responseTime:t.responseStart>0?t.responseEnd-t.responseStart:0,domInteractive:t.domInteractive,domContentLoadedEventStart:t.domContentLoadedEventStart,domContentLoaded:t.domContentLoadedEventEnd-t.domContentLoadedEventStart,domComplete:t.domComplete,domProcessingTime:t.loadEventStart-t.responseEnd,loadEventStart:t.loadEventStart,loadEventTime:t.loadEventEnd-t.loadEventStart,duration:t.duration,headerSize:t.transferSize-t.encodedBodySize,transferSize:t.transferSize,compressionRatio:t.encodedBodySize>0?t.decodedBodySize/t.encodedBodySize:0,navigationTimingLevel:2};e.recordEvent&&e.recordEvent(M,n)},this.pluginId="com.amazonaws.rum.navigation",this.enabled=!0}return e.prototype.load=function(e){this.recordEvent=e.record,this.enabled&&window.addEventListener(Ct,this.eventListener)},e.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Ct,this.eventListener))},e.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(Ct,this.eventListener))},e.prototype.getPluginId=function(){return this.pluginId},e}(),Tt=function(){return Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&s.forEach((function(e){var o=it(e.name);t.config.recordAllTypes.includes(o)?n.push(e):t.config.sampleTypes.includes(o)&&r.push(e)})),ot(n);n.length>0&&o0&&o=0&&(n||jt.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Dt=-1,Mt=function(){return"hidden"===document.visibilityState?0:1/0},qt=function(){Lt((function(e){var t=e.timeStamp;Dt=t}),!0)},Nt=function(){return Dt<0&&(Dt=Mt(),qt(),Rt((function(){setTimeout((function(){Dt=Mt(),qt()}),0)}))),{get timeStamp(){return Dt}}},Bt={passive:!0,capture:!0},zt=new Date,Ut=function(e,t){Qe||(Qe=t,et=e,tt=new Date,Wt(removeEventListener),Ft())},Ft=function(){if(et>=0&&et1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Ut(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,Bt),removeEventListener("pointercancel",r,Bt)};addEventListener("pointerup",n,Bt),addEventListener("pointercancel",r,Bt)}(t,e):Ut(t,e)}},Wt=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Vt,Bt)}))},Gt=function(){function e(){this.pluginId="com.amazonaws.rum.web-vitals"}return e.prototype.load=function(e){var t=this;this.recordEvent=e.record,function(e,t){var n,r=Nt(),o=Pt("LCP"),i=function(e){var t=e.startTime;t=200&&e<300},t.prototype.recordHttpEventWithResponse=function(e,t){!this.config.recordAllRequests&&this.statusOk(t.status)||this.context.record(H,{version:"1.0.0",request:{method:e.method},response:{status:t.status,statusText:t.statusText}})},t.prototype.recordHttpEventWithError=function(e,t){var n={version:"1.0.0",request:{method:e.method}};n.error=V({type:"error",error:t},this.config.stackTraceLength),this.context.record(H,n)},t.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(D,e)},t}(Kt),bn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sn=function(){return Sn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]