@20minutes/hela 0.0.5 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ (function(){"use strict";var rr=Object.create,Gt=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyNames,or=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty,J=(i,n)=>function(){return n||(0,i[zt(i)[0]])((n={exports:{}}).exports,n),n.exports},sr=(i,n,e,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of zt(n))!ar.call(i,o)&&o!==e&&Gt(i,o,{get:()=>n[o],enumerable:!(t=ir(n,o))||t.enumerable});return i},Ke=(i,n,e)=>(e=i!=null?rr(or(i)):{},sr(n||!i||!i.__esModule?Gt(e,"default",{value:i,enumerable:!0}):e,i)),ur=J({"node_modules/tslib/tslib.js"(i,n){var e,t,o,r,a,u,f,s,c,l,h,m,g,w,b,R,L,P,A,j,F,W,K,k,X;(function(y){var S=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(d){y(E(S,E(d)))}):typeof n=="object"&&typeof n.exports=="object"?y(E(S,E(n.exports))):y(E(S));function E(d,p){return d!==S&&(typeof Object.create=="function"?Object.defineProperty(d,"__esModule",{value:!0}):d.__esModule=!0),function(v,_){return d[v]=p?p(v,_):_}}})(function(y){var S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(d[v]=p[v])};e=function(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");S(d,p);function v(){this.constructor=d}d.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)},t=Object.assign||function(d){for(var p,v=1,_=arguments.length;v<_;v++){p=arguments[v];for(var T in p)Object.prototype.hasOwnProperty.call(p,T)&&(d[T]=p[T])}return d},o=function(d,p){var v={};for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&p.indexOf(_)<0&&(v[_]=d[_]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,_=Object.getOwnPropertySymbols(d);T<_.length;T++)p.indexOf(_[T])<0&&Object.prototype.propertyIsEnumerable.call(d,_[T])&&(v[_[T]]=d[_[T]]);return v},r=function(d,p,v,_){var T=arguments.length,C=T<3?p:_===null?_=Object.getOwnPropertyDescriptor(p,v):_,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(d,p,v,_);else for(var M=d.length-1;M>=0;M--)(O=d[M])&&(C=(T<3?O(C):T>3?O(p,v,C):O(p,v))||C);return T>3&&C&&Object.defineProperty(p,v,C),C},a=function(d,p){return function(v,_){p(v,_,d)}},u=function(d,p){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(d,p)},f=function(d,p,v,_){function T(C){return C instanceof v?C:new v(function(O){O(C)})}return new(v||(v=Promise))(function(C,O){function M(B){try{I(_.next(B))}catch(ne){O(ne)}}function G(B){try{I(_.throw(B))}catch(ne){O(ne)}}function I(B){B.done?C(B.value):T(B.value).then(M,G)}I((_=_.apply(d,p||[])).next())})},s=function(d,p){var v={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},_,T,C,O;return O={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function M(I){return function(B){return G([I,B])}}function G(I){if(_)throw new TypeError("Generator is already executing.");for(;v;)try{if(_=1,T&&(C=I[0]&2?T.return:I[0]?T.throw||((C=T.return)&&C.call(T),0):T.next)&&!(C=C.call(T,I[1])).done)return C;switch(T=0,C&&(I=[I[0]&2,C.value]),I[0]){case 0:case 1:C=I;break;case 4:return v.label++,{value:I[1],done:!1};case 5:v.label++,T=I[1],I=[0];continue;case 7:I=v.ops.pop(),v.trys.pop();continue;default:if(C=v.trys,!(C=C.length>0&&C[C.length-1])&&(I[0]===6||I[0]===2)){v=0;continue}if(I[0]===3&&(!C||I[1]>C[0]&&I[1]<C[3])){v.label=I[1];break}if(I[0]===6&&v.label<C[1]){v.label=C[1],C=I;break}if(C&&v.label<C[2]){v.label=C[2],v.ops.push(I);break}C[2]&&v.ops.pop(),v.trys.pop();continue}I=p.call(d,v)}catch(B){I=[6,B],T=0}finally{_=C=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}},c=function(d,p){for(var v in d)v!=="default"&&!Object.prototype.hasOwnProperty.call(p,v)&&X(p,d,v)},X=Object.create?function(d,p,v,_){_===void 0&&(_=v);var T=Object.getOwnPropertyDescriptor(p,v);(!T||("get"in T?!p.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return p[v]}}),Object.defineProperty(d,_,T)}:function(d,p,v,_){_===void 0&&(_=v),d[_]=p[v]},l=function(d){var p=typeof Symbol=="function"&&Symbol.iterator,v=p&&d[p],_=0;if(v)return v.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&_>=d.length&&(d=void 0),{value:d&&d[_++],done:!d}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(d,p){var v=typeof Symbol=="function"&&d[Symbol.iterator];if(!v)return d;var _=v.call(d),T,C=[],O;try{for(;(p===void 0||p-- >0)&&!(T=_.next()).done;)C.push(T.value)}catch(M){O={error:M}}finally{try{T&&!T.done&&(v=_.return)&&v.call(_)}finally{if(O)throw O.error}}return C},m=function(){for(var d=[],p=0;p<arguments.length;p++)d=d.concat(h(arguments[p]));return d},g=function(){for(var d=0,p=0,v=arguments.length;p<v;p++)d+=arguments[p].length;for(var _=Array(d),T=0,p=0;p<v;p++)for(var C=arguments[p],O=0,M=C.length;O<M;O++,T++)_[T]=C[O];return _},w=function(d,p,v){if(v||arguments.length===2)for(var _=0,T=p.length,C;_<T;_++)(C||!(_ in p))&&(C||(C=Array.prototype.slice.call(p,0,_)),C[_]=p[_]);return d.concat(C||Array.prototype.slice.call(p))},b=function(d){return this instanceof b?(this.v=d,this):new b(d)},R=function(d,p,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=v.apply(d,p||[]),T,C=[];return T={},O("next"),O("throw"),O("return"),T[Symbol.asyncIterator]=function(){return this},T;function O(V){_[V]&&(T[V]=function(le){return new Promise(function(Ge,Le){C.push([V,le,Ge,Le])>1||M(V,le)})})}function M(V,le){try{G(_[V](le))}catch(Ge){ne(C[0][3],Ge)}}function G(V){V.value instanceof b?Promise.resolve(V.value.v).then(I,B):ne(C[0][2],V)}function I(V){M("next",V)}function B(V){M("throw",V)}function ne(V,le){V(le),C.shift(),C.length&&M(C[0][0],C[0][1])}},L=function(d){var p,v;return p={},_("next"),_("throw",function(T){throw T}),_("return"),p[Symbol.iterator]=function(){return this},p;function _(T,C){p[T]=d[T]?function(O){return(v=!v)?{value:b(d[T](O)),done:T==="return"}:C?C(O):O}:C}},P=function(d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=d[Symbol.asyncIterator],v;return p?p.call(d):(d=typeof l=="function"?l(d):d[Symbol.iterator](),v={},_("next"),_("throw"),_("return"),v[Symbol.asyncIterator]=function(){return this},v);function _(C){v[C]=d[C]&&function(O){return new Promise(function(M,G){O=d[C](O),T(M,G,O.done,O.value)})}}function T(C,O,M,G){Promise.resolve(G).then(function(I){C({value:I,done:M})},O)}},A=function(d,p){return Object.defineProperty?Object.defineProperty(d,"raw",{value:p}):d.raw=p,d};var E=Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p};j=function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var v in d)v!=="default"&&Object.prototype.hasOwnProperty.call(d,v)&&X(p,d,v);return E(p,d),p},F=function(d){return d&&d.__esModule?d:{default:d}},W=function(d,p,v,_){if(v==="a"&&!_)throw new TypeError("Private accessor was defined without a getter");if(typeof p=="function"?d!==p||!_:!p.has(d))throw new TypeError("Cannot read private member from an object whose class did not declare it");return v==="m"?_:v==="a"?_.call(d):_?_.value:p.get(d)},K=function(d,p,v,_,T){if(_==="m")throw new TypeError("Private method is not writable");if(_==="a"&&!T)throw new TypeError("Private accessor was defined without a setter");if(typeof p=="function"?d!==p||!T:!p.has(d))throw new TypeError("Cannot write private member to an object whose class did not declare it");return _==="a"?T.call(d,v):T?T.value=v:p.set(d,v),v},k=function(d,p){if(p===null||typeof p!="object"&&typeof p!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof d=="function"?p===d:d.has(p)},y("__extends",e),y("__assign",t),y("__rest",o),y("__decorate",r),y("__param",a),y("__metadata",u),y("__awaiter",f),y("__generator",s),y("__exportStar",c),y("__createBinding",X),y("__values",l),y("__read",h),y("__spread",m),y("__spreadArrays",g),y("__spreadArray",w),y("__await",b),y("__asyncGenerator",R),y("__asyncDelegator",L),y("__asyncValues",P),y("__makeTemplateObject",A),y("__importStar",j),y("__importDefault",F),y("__classPrivateFieldGet",W),y("__classPrivateFieldSet",K),y("__classPrivateFieldIn",k)})}}),cr=J({"node_modules/ua-parser-js/src/ua-parser.js"(i,n){(function(e,t){var o="0.7.31",r="",a="?",u="function",f="undefined",s="object",c="string",l="major",h="model",m="name",g="type",w="vendor",b="version",R="architecture",L="console",P="mobile",A="tablet",j="smarttv",F="wearable",W="embedded",K=255,k="Amazon",X="Apple",y="ASUS",S="BlackBerry",E="Browser",d="Chrome",p="Edge",v="Firefox",_="Google",T="Huawei",C="LG",O="Microsoft",M="Motorola",G="Opera",I="Samsung",B="Sony",ne="Xiaomi",V="Zebra",le="Facebook",Ge=function(H,x){var U={};for(var z in H)x[z]&&x[z].length%2===0?U[z]=x[z].concat(H[z]):U[z]=H[z];return U},Le=function(H){for(var x={},U=0;U<H.length;U++)x[H[U].toUpperCase()]=H[U];return x},Qn=function(H,x){return typeof H===c?ze(x).indexOf(ze(H))!==-1:!1},ze=function(H){return H.toLowerCase()},oa=function(H){return typeof H===c?H.replace(/[^\d\.]/g,r).split(".")[0]:t},Ft=function(H,x){if(typeof H===c)return H=H.replace(/^\s\s*/,r).replace(/\s\s*$/,r),typeof x===f?H:H.substring(0,K)},Xe=function(H,x){for(var U=0,z,D,mt,q,We,fe;U<x.length&&!We;){var tr=x[U],nr=x[U+1];for(z=D=0;z<tr.length&&!We;)if(We=tr[z++].exec(H),We)for(mt=0;mt<nr.length;mt++)fe=We[++D],q=nr[mt],typeof q===s&&q.length>0?q.length===2?typeof q[1]==u?this[q[0]]=q[1].call(this,fe):this[q[0]]=q[1]:q.length===3?typeof q[1]===u&&!(q[1].exec&&q[1].test)?this[q[0]]=fe?q[1].call(this,fe,q[2]):t:this[q[0]]=fe?fe.replace(q[1],q[2]):t:q.length===4&&(this[q[0]]=fe?q[3].call(this,fe.replace(q[1],q[2])):t):this[q]=fe||t;U+=2}},Vt=function(H,x){for(var U in x)if(typeof x[U]===s&&x[U].length>0){for(var z=0;z<x[U].length;z++)if(Qn(x[U][z],H))return U===a?t:U}else if(Qn(x[U],H))return U===a?t:U;return H},aa={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},$n={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},er={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,b],[/opios[\/ ]+([\w\.]+)/i],[b,[m,G+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[m,G]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[m,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[m,"UC"+E]],[/\bqbcore\/([\w\.]+)/i],[b,[m,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[m,"IE"]],[/yabrowser\/([\w\.]+)/i],[b,[m,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+E],b],[/\bfocus\/([\w\.]+)/i],[b,[m,v+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[m,G+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[m,G+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[m,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[b,[m,v]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+E]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+E],b],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[m,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,le],b],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[m,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[m,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[m,d+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,d+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[m,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,b],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[b,[m,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[b,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[b,Vt,aa]],[/(webkit|khtml)\/([\w\.]+)/i],[m,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[m,v+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[m,b]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[R,"amd64"]],[/(ia32(?=;))/i],[[R,ze]],[/((?:i[346]|x)86)[;\)]/i],[[R,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[R,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[R,"armhf"]],[/windows (ce|mobile); ppc;/i],[[R,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[R,/ower/,r,ze]],[/(sun4\w)[;\)]/i],[[R,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[R,ze]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[w,I],[g,A]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[w,I],[g,P]],[/\((ip(?:hone|od)[\w ]*);/i],[h,[w,X],[g,P]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[w,X],[g,A]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[w,T],[g,A]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[h,[w,T],[g,P]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[w,ne],[g,P]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[w,ne],[g,A]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[w,"OPPO"],[g,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[w,"Vivo"],[g,P]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[h,[w,"Realme"],[g,P]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[w,M],[g,P]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[w,M],[g,A]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[w,C],[g,A]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[w,C],[g,P]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[w,"Lenovo"],[g,A]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[w,"Nokia"],[g,P]],[/(pixel c)\b/i],[h,[w,_],[g,A]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[w,_],[g,P]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[w,B],[g,P]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[w,B],[g,A]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[w,"OnePlus"],[g,P]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[w,k],[g,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[w,k],[g,P]],[/(playbook);[-\w\),; ]+(rim)/i],[h,w,[g,A]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[w,S],[g,P]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[w,y],[g,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[w,y],[g,P]],[/(nexus 9)/i],[h,[w,"HTC"],[g,A]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[w,[h,/_/g," "],[g,P]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[w,"Acer"],[g,A]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[w,"Meizu"],[g,P]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[w,"Sharp"],[g,P]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,h,[g,P]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[w,h,[g,A]],[/(surface duo)/i],[h,[w,O],[g,A]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[w,"Fairphone"],[g,P]],[/(u304aa)/i],[h,[w,"AT&T"],[g,P]],[/\bsie-(\w*)/i],[h,[w,"Siemens"],[g,P]],[/\b(rct\w+) b/i],[h,[w,"RCA"],[g,A]],[/\b(venue[\d ]{2,7}) b/i],[h,[w,"Dell"],[g,A]],[/\b(q(?:mv|ta)\w+) b/i],[h,[w,"Verizon"],[g,A]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[w,"Barnes & Noble"],[g,A]],[/\b(tm\d{3}\w+) b/i],[h,[w,"NuVision"],[g,A]],[/\b(k88) b/i],[h,[w,"ZTE"],[g,A]],[/\b(nx\d{3}j) b/i],[h,[w,"ZTE"],[g,P]],[/\b(gen\d{3}) b.+49h/i],[h,[w,"Swiss"],[g,P]],[/\b(zur\d{3}) b/i],[h,[w,"Swiss"],[g,A]],[/\b((zeki)?tb.*\b) b/i],[h,[w,"Zeki"],[g,A]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],h,[g,A]],[/\b(ns-?\w{0,9}) b/i],[h,[w,"Insignia"],[g,A]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[w,"NextBook"],[g,A]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],h,[g,P]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],h,[g,P]],[/\b(ph-1) /i],[h,[w,"Essential"],[g,P]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[w,"Envizen"],[g,A]],[/\b(trio[-\w\. ]+) b/i],[h,[w,"MachSpeed"],[g,A]],[/\btu_(1491) b/i],[h,[w,"Rotor"],[g,A]],[/(shield[\w ]+) b/i],[h,[w,"Nvidia"],[g,A]],[/(sprint) (\w+)/i],[w,h,[g,P]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[w,O],[g,P]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[w,V],[g,A]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[w,V],[g,P]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,h,[g,L]],[/droid.+; (shield) bui/i],[h,[w,"Nvidia"],[g,L]],[/(playstation [345portablevi]+)/i],[h,[w,B],[g,L]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[w,O],[g,L]],[/smart-tv.+(samsung)/i],[w,[g,j]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[w,I],[g,j]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,C],[g,j]],[/(apple) ?tv/i],[w,[h,X+" TV"],[g,j]],[/crkey/i],[[h,d+"cast"],[w,_],[g,j]],[/droid.+aft(\w)( bui|\))/i],[h,[w,k],[g,j]],[/\(dtv[\);].+(aquos)/i],[h,[w,"Sharp"],[g,j]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[w,Ft],[h,Ft],[g,j]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,j]],[/((pebble))app/i],[w,h,[g,F]],[/droid.+; (glass) \d/i],[h,[w,_],[g,F]],[/droid.+; (wt63?0{2,3})\)/i],[h,[w,V],[g,F]],[/(quest( 2)?)/i],[h,[w,le],[g,F]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[g,W]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[h,[g,P]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[g,A]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,A]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[g,P]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[m,p+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[m,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[m,[b,Vt,$n]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,"Windows"],[b,Vt,$n]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,"Mac OS"],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[b,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,b],[/\(bb(10);/i],[b,[m,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[m,v+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[m,"webOS"]],[/crkey\/([\d\.]+)/i],[b,[m,d+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[m,"Chromium OS"],b],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,b],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[m,b]]},re=function(H,x){if(typeof H===s&&(x=H,H=t),!(this instanceof re))return new re(H,x).getResult();var U=H||(typeof e!==f&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:r),z=x?Ge(er,x):er;return this.getBrowser=function(){var D={};return D[m]=t,D[b]=t,Xe.call(D,U,z.browser),D.major=oa(D.version),D},this.getCPU=function(){var D={};return D[R]=t,Xe.call(D,U,z.cpu),D},this.getDevice=function(){var D={};return D[w]=t,D[h]=t,D[g]=t,Xe.call(D,U,z.device),D},this.getEngine=function(){var D={};return D[m]=t,D[b]=t,Xe.call(D,U,z.engine),D},this.getOS=function(){var D={};return D[m]=t,D[b]=t,Xe.call(D,U,z.os),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return U},this.setUA=function(D){return U=typeof D===c&&D.length>K?Ft(D,K):D,this},this.setUA(U),this};re.VERSION=o,re.BROWSER=Le([m,b,l]),re.CPU=Le([R]),re.DEVICE=Le([h,w,g,L,P,j,A,F,W]),re.ENGINE=re.OS=Le([m,b]),typeof i!==f?(typeof n!==f&&n.exports&&(i=n.exports=re),i.UAParser=re):typeof define===u&&define.amd?define(function(){return re}):typeof e!==f&&(e.UAParser=re);var je=typeof e!==f&&(e.jQuery||e.Zepto);if(je&&!je.ua){var yt=new re;je.ua=yt.getResult(),je.ua.get=function(){return yt.getUA()},je.ua.set=function(H){yt.setUA(H);var x=yt.getResult();for(var U in x)je.ua[U]=x[U]}}})(typeof window=="object"?window:i)}}),fr=J({"node_modules/shimmer/index.js"(i,n){function e(c){return typeof c=="function"}var t=console.error.bind(console);function o(c,l,h){var m=!!c[l]&&c.propertyIsEnumerable(l);Object.defineProperty(c,l,{configurable:!0,enumerable:m,writable:!0,value:h})}function r(c){c&&c.logger&&(e(c.logger)?t=c.logger:t("new logger isn't a function, not replacing"))}function a(c,l,h){if(!c||!c[l]){t("no original function "+l+" to wrap");return}if(!h){t("no wrapper function"),t(new Error().stack);return}if(!e(c[l])||!e(h)){t("original object and wrapper must be functions");return}var m=c[l],g=h(m,l);return o(g,"__original",m),o(g,"__unwrap",function(){c[l]===g&&o(c,l,m)}),o(g,"__wrapped",!0),o(c,l,g),g}function u(c,l,h){if(c)Array.isArray(c)||(c=[c]);else{t("must provide one or more modules to patch"),t(new Error().stack);return}if(!(l&&Array.isArray(l))){t("must provide one or more functions to wrap on modules");return}c.forEach(function(m){l.forEach(function(g){a(m,g,h)})})}function f(c,l){if(!c||!c[l]){t("no function to unwrap."),t(new Error().stack);return}if(!c[l].__unwrap)t("no original to unwrap to -- has "+l+" already been unwrapped?");else return c[l].__unwrap()}function s(c,l){if(c)Array.isArray(c)||(c=[c]);else{t("must provide one or more modules to patch"),t(new Error().stack);return}if(!(l&&Array.isArray(l))){t("must provide one or more functions to unwrap on modules");return}c.forEach(function(h){l.forEach(function(m){f(h,m)})})}r.wrap=a,r.massWrap=u,r.unwrap=f,r.massUnwrap=s,n.exports=r}}),Xt=J({"node_modules/aws-rum-web/node_modules/tslib/tslib.js"(i,n){var e,t,o,r,a,u,f,s,c,l,h,m,g,w,b,R,L,P,A,j,F,W,K;(function(k){var X=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(S){k(y(X,y(S)))}):typeof n=="object"&&typeof n.exports=="object"?k(y(X,y(n.exports))):k(y(X));function y(S,E){return S!==X&&(typeof Object.create=="function"?Object.defineProperty(S,"__esModule",{value:!0}):S.__esModule=!0),function(d,p){return S[d]=E?E(d,p):p}}})(function(k){var X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var E in S)S.hasOwnProperty(E)&&(y[E]=S[E])};e=function(y,S){X(y,S);function E(){this.constructor=y}y.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)},t=Object.assign||function(y){for(var S,E=1,d=arguments.length;E<d;E++){S=arguments[E];for(var p in S)Object.prototype.hasOwnProperty.call(S,p)&&(y[p]=S[p])}return y},o=function(y,S){var E={};for(var d in y)Object.prototype.hasOwnProperty.call(y,d)&&S.indexOf(d)<0&&(E[d]=y[d]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,d=Object.getOwnPropertySymbols(y);p<d.length;p++)S.indexOf(d[p])<0&&Object.prototype.propertyIsEnumerable.call(y,d[p])&&(E[d[p]]=y[d[p]]);return E},r=function(y,S,E,d){var p=arguments.length,v=p<3?S:d===null?d=Object.getOwnPropertyDescriptor(S,E):d,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(y,S,E,d);else for(var T=y.length-1;T>=0;T--)(_=y[T])&&(v=(p<3?_(v):p>3?_(S,E,v):_(S,E))||v);return p>3&&v&&Object.defineProperty(S,E,v),v},a=function(y,S){return function(E,d){S(E,d,y)}},u=function(y,S){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(y,S)},f=function(y,S,E,d){function p(v){return v instanceof E?v:new E(function(_){_(v)})}return new(E||(E=Promise))(function(v,_){function T(M){try{O(d.next(M))}catch(G){_(G)}}function C(M){try{O(d.throw(M))}catch(G){_(G)}}function O(M){M.done?v(M.value):p(M.value).then(T,C)}O((d=d.apply(y,S||[])).next())})},s=function(y,S){var E={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},d,p,v,_;return _={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function T(O){return function(M){return C([O,M])}}function C(O){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,p&&(v=O[0]&2?p.return:O[0]?p.throw||((v=p.return)&&v.call(p),0):p.next)&&!(v=v.call(p,O[1])).done)return v;switch(p=0,v&&(O=[O[0]&2,v.value]),O[0]){case 0:case 1:v=O;break;case 4:return E.label++,{value:O[1],done:!1};case 5:E.label++,p=O[1],O=[0];continue;case 7:O=E.ops.pop(),E.trys.pop();continue;default:if(v=E.trys,!(v=v.length>0&&v[v.length-1])&&(O[0]===6||O[0]===2)){E=0;continue}if(O[0]===3&&(!v||O[1]>v[0]&&O[1]<v[3])){E.label=O[1];break}if(O[0]===6&&E.label<v[1]){E.label=v[1],v=O;break}if(v&&E.label<v[2]){E.label=v[2],E.ops.push(O);break}v[2]&&E.ops.pop(),E.trys.pop();continue}O=S.call(y,E)}catch(M){O=[6,M],p=0}finally{d=v=0}if(O[0]&5)throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}},K=function(y,S,E,d){d===void 0&&(d=E),y[d]=S[E]},c=function(y,S){for(var E in y)E!=="default"&&!S.hasOwnProperty(E)&&(S[E]=y[E])},l=function(y){var S=typeof Symbol=="function"&&Symbol.iterator,E=S&&y[S],d=0;if(E)return E.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&d>=y.length&&(y=void 0),{value:y&&y[d++],done:!y}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(y,S){var E=typeof Symbol=="function"&&y[Symbol.iterator];if(!E)return y;var d=E.call(y),p,v=[],_;try{for(;(S===void 0||S-- >0)&&!(p=d.next()).done;)v.push(p.value)}catch(T){_={error:T}}finally{try{p&&!p.done&&(E=d.return)&&E.call(d)}finally{if(_)throw _.error}}return v},m=function(){for(var y=[],S=0;S<arguments.length;S++)y=y.concat(h(arguments[S]));return y},g=function(){for(var y=0,S=0,E=arguments.length;S<E;S++)y+=arguments[S].length;for(var d=Array(y),p=0,S=0;S<E;S++)for(var v=arguments[S],_=0,T=v.length;_<T;_++,p++)d[p]=v[_];return d},w=function(y){return this instanceof w?(this.v=y,this):new w(y)},b=function(y,S,E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=E.apply(y,S||[]),p,v=[];return p={},_("next"),_("throw"),_("return"),p[Symbol.asyncIterator]=function(){return this},p;function _(I){d[I]&&(p[I]=function(B){return new Promise(function(ne,V){v.push([I,B,ne,V])>1||T(I,B)})})}function T(I,B){try{C(d[I](B))}catch(ne){G(v[0][3],ne)}}function C(I){I.value instanceof w?Promise.resolve(I.value.v).then(O,M):G(v[0][2],I)}function O(I){T("next",I)}function M(I){T("throw",I)}function G(I,B){I(B),v.shift(),v.length&&T(v[0][0],v[0][1])}},R=function(y){var S,E;return S={},d("next"),d("throw",function(p){throw p}),d("return"),S[Symbol.iterator]=function(){return this},S;function d(p,v){S[p]=y[p]?function(_){return(E=!E)?{value:w(y[p](_)),done:p==="return"}:v?v(_):_}:v}},L=function(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S=y[Symbol.asyncIterator],E;return S?S.call(y):(y=typeof l=="function"?l(y):y[Symbol.iterator](),E={},d("next"),d("throw"),d("return"),E[Symbol.asyncIterator]=function(){return this},E);function d(v){E[v]=y[v]&&function(_){return new Promise(function(T,C){_=y[v](_),p(T,C,_.done,_.value)})}}function p(v,_,T,C){Promise.resolve(C).then(function(O){v({value:O,done:T})},_)}},P=function(y,S){return Object.defineProperty?Object.defineProperty(y,"raw",{value:S}):y.raw=S,y},A=function(y){if(y&&y.__esModule)return y;var S={};if(y!=null)for(var E in y)Object.hasOwnProperty.call(y,E)&&(S[E]=y[E]);return S.default=y,S},j=function(y){return y&&y.__esModule?y:{default:y}},F=function(y,S){if(!S.has(y))throw new TypeError("attempted to get private field on non-instance");return S.get(y)},W=function(y,S,E){if(!S.has(y))throw new TypeError("attempted to set private field on non-instance");return S.set(y,E),E},k("__extends",e),k("__assign",t),k("__rest",o),k("__decorate",r),k("__param",a),k("__metadata",u),k("__awaiter",f),k("__generator",s),k("__exportStar",c),k("__createBinding",K),k("__values",l),k("__read",h),k("__spread",m),k("__spreadArrays",g),k("__await",w),k("__asyncGenerator",b),k("__asyncDelegator",R),k("__asyncValues",L),k("__makeTemplateObject",P),k("__importStar",A),k("__importDefault",j),k("__classPrivateFieldGet",F),k("__classPrivateFieldSet",W)})}}),Wt=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/constants.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.MAX_HASHABLE_LENGTH=i.INIT=i.KEY=i.DIGEST_LENGTH=i.BLOCK_SIZE=void 0,i.BLOCK_SIZE=64,i.DIGEST_LENGTH=32,i.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]),i.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1}}),lr=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.RawSha256=void 0;var n=Wt(),e=function(){function t(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(o){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,a=o.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>n.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=o[r++],a--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var o=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(r.setUint8(this.bufferLength++,128),a%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var u=this.bufferLength;u<n.BLOCK_SIZE;u++)r.setUint8(u,0);this.hashBuffer(),this.bufferLength=0}for(var u=this.bufferLength;u<n.BLOCK_SIZE-8;u++)r.setUint8(u,0);r.setUint32(n.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),r.setUint32(n.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}for(var f=new Uint8Array(n.DIGEST_LENGTH),u=0;u<8;u++)f[u*4]=this.state[u]>>>24&255,f[u*4+1]=this.state[u]>>>16&255,f[u*4+2]=this.state[u]>>>8&255,f[u*4+3]=this.state[u]>>>0&255;return f},t.prototype.hashBuffer=function(){for(var o=this,r=o.buffer,a=o.state,u=a[0],f=a[1],s=a[2],c=a[3],l=a[4],h=a[5],m=a[6],g=a[7],w=0;w<n.BLOCK_SIZE;w++){if(w<16)this.temp[w]=(r[w*4]&255)<<24|(r[w*4+1]&255)<<16|(r[w*4+2]&255)<<8|r[w*4+3]&255;else{var b=this.temp[w-2],R=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10;b=this.temp[w-15];var L=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3;this.temp[w]=(R+this.temp[w-7]|0)+(L+this.temp[w-16]|0)}var P=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&m)|0)+(g+(n.KEY[w]+this.temp[w]|0)|0)|0,A=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&f^u&s^f&s)|0;g=m,m=h,h=l,l=c+P|0,c=s,s=f,f=u,u=P+A|0}a[0]+=u,a[1]+=f,a[2]+=s,a[3]+=c,a[4]+=l,a[5]+=h,a[6]+=m,a[7]+=g},t}();i.RawSha256=e}}),dr=J({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.toUtf8=i.fromUtf8=void 0;var n=t=>{const o=[];for(let r=0,a=t.length;r<a;r++){const u=t.charCodeAt(r);if(u<128)o.push(u);else if(u<2048)o.push(u>>6|192,u&63|128);else if(r+1<t.length&&(u&64512)===55296&&(t.charCodeAt(r+1)&64512)===56320){const f=65536+((u&1023)<<10)+(t.charCodeAt(++r)&1023);o.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else o.push(u>>12|224,u>>6&63|128,u&63|128)}return Uint8Array.from(o)};i.fromUtf8=n;var e=t=>{let o="";for(let r=0,a=t.length;r<a;r++){const u=t[r];if(u<128)o+=String.fromCharCode(u);else if(192<=u&&u<224){const f=t[++r];o+=String.fromCharCode((u&31)<<6|f&63)}else if(240<=u&&u<365){const f=[u,t[++r],t[++r],t[++r]],s="%"+f.map(c=>c.toString(16)).join("%");o+=decodeURIComponent(s)}else o+=String.fromCharCode((u&15)<<12|(t[++r]&63)<<6|t[++r]&63)}return o};i.toUtf8=e}}),hr=J({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.toUtf8=i.fromUtf8=void 0;function n(t){return new TextEncoder().encode(t)}i.fromUtf8=n;function e(t){return new TextDecoder("utf-8").decode(t)}i.toUtf8=e}}),vr=J({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.toUtf8=i.fromUtf8=void 0;var n=dr(),e=hr(),t=r=>typeof TextEncoder=="function"?(0,e.fromUtf8)(r):(0,n.fromUtf8)(r);i.fromUtf8=t;var o=r=>typeof TextDecoder=="function"?(0,e.toUtf8)(r):(0,n.toUtf8)(r);i.toUtf8=o}}),pr=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/convertToBuffer.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.convertToBuffer=void 0;var n=vr(),e=typeof Buffer<"u"&&Buffer.from?function(o){return Buffer.from(o,"utf8")}:n.fromUtf8;function t(o){return o instanceof Uint8Array?o:typeof o=="string"?e(o):ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(o)}i.convertToBuffer=t}}),gr=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/isEmptyData.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.isEmptyData=void 0;function n(e){return typeof e=="string"?e.length===0:e.byteLength===0}i.isEmptyData=n}}),yr=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/numToUint8.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.numToUint8=void 0;function n(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}i.numToUint8=n}}),mr=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=void 0;function n(e){if(!Array.from){for(var t=new Uint32Array(e.length),o=0;o<e.length;)t[o]=e[o];return t}return Uint32Array.from(e)}i.uint32ArrayFrom=n}}),wr=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/index.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=pr();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var e=gr();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var t=yr();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return t.numToUint8}});var o=mr();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),br=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(i){Object.defineProperty(i,"__esModule",{value:!0}),i.Sha256=void 0;var n=Xt(),e=Wt(),t=lr(),o=wr(),r=function(){function u(f){if(this.hash=new t.RawSha256,f){this.outer=new t.RawSha256;var s=a(f),c=new Uint8Array(e.BLOCK_SIZE);c.set(s);for(var l=0;l<e.BLOCK_SIZE;l++)s[l]^=54,c[l]^=92;this.hash.update(s),this.outer.update(c);for(var l=0;l<s.byteLength;l++)s[l]=0}}return u.prototype.update=function(f){if(!((0,o.isEmptyData)(f)||this.error))try{this.hash.update((0,o.convertToBuffer)(f))}catch(s){this.error=s}},u.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},u.prototype.digest=function(){return(0,n.__awaiter)(this,void 0,void 0,function(){return(0,n.__generator)(this,function(f){return[2,this.digestSync()]})})},u}();i.Sha256=r;function a(u){var f=(0,o.convertToBuffer)(u);if(f.byteLength>e.BLOCK_SIZE){var s=new t.RawSha256;s.update(f),f=s.digest()}var c=new Uint8Array(e.BLOCK_SIZE);return c.set(f),c}}}),_r=J({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/index.js"(i){Object.defineProperty(i,"__esModule",{value:!0});var n=Xt();(0,n.__exportStar)(br(),i)}}),Er=Ke(ur(),1),{__extends:sa,__assign:ie,__rest:Sr,__decorate:ua,__param:ca,__metadata:fa,__awaiter:ae,__generator:se,__exportStar:la,__createBinding:da,__values:ue,__read:Kt,__spread:ha,__spreadArrays:va,__spreadArray:Yt,__await:pa,__asyncGenerator:ga,__asyncDelegator:ya,__asyncValues:ma,__makeTemplateObject:wa,__importStar:ba,__importDefault:_a,__classPrivateFieldGet:Ea,__classPrivateFieldSet:Sa,__classPrivateFieldIn:Ta}=Er.default,be=function(){function i(n){this.method=n.method||"GET",this.hostname=n.hostname||"localhost",this.port=n.port,this.query=n.query||{},this.headers=n.headers||{},this.body=n.body,this.protocol=n.protocol?n.protocol.slice(-1)!==":"?"".concat(n.protocol,":"):n.protocol:"https:",this.path=n.path?n.path.charAt(0)!=="/"?"/".concat(n.path):n.path:"/"}return i.isInstance=function(n){if(!n)return!1;var e=n;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query=="object"&&typeof e.headers=="object"},i.prototype.clone=function(){var n=new i(ie(ie({},this),{headers:ie({},this.headers)}));return n.query&&(n.query=Tr(n.query)),n},i}();function Tr(i){return Object.keys(i).reduce(function(n,e){var t,o=i[e];return ie(ie({},n),(t={},t[e]=Array.isArray(o)?Yt([],Kt(o),!1):o,t))},{})}var ke=function(){function i(n){this.statusCode=n.statusCode,this.headers=n.headers||{},this.body=n.body}return i.isInstance=function(n){if(!n)return!1;var e=n;return typeof e.statusCode=="number"&&typeof e.headers=="object"},i}(),wt=function(i,n,e,t){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function u(c){try{s(t.next(c))}catch(l){a(l)}}function f(c){try{s(t.throw(c))}catch(l){a(l)}}function s(c){c.done?r(c.value):o(c.value).then(u,f)}s((t=t.apply(i,n||[])).next())})},bt=function(i,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return f([s,c])}}function f(s){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,o&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=n.call(i,e)}catch(c){s=[6,c],o=0}finally{t=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Cr="POST",Or="application/x-amz-json-1.1",Pr="https:",Ar="AWSCognitoIdentityService.GetId",Ir="AWSCognitoIdentityService.GetOpenIdToken",Rr="AWSCognitoIdentityService.GetCredentialsForIdentity",Lr=function(i){return function(){return i.client.getCredentialsForIdentity(i.identityPoolId)}},Jt=function(){function i(n){var e=this;this.getId=function(t){return wt(e,void 0,void 0,function(){var o,r;return bt(this,function(a){return o=JSON.stringify(t),r=this.getHttpRequest(Ar,o),[2,this.fetchRequestHandler.handle(r).then(function(u){var f=u.response;return f.body.getReader().read().then(function(s){var c=s.value;return JSON.parse(String.fromCharCode.apply(null,c))})}).catch(function(){throw new Error("CWR: Failed to retrieve Cognito identity")})]})})},this.getOpenIdToken=function(t){return wt(e,void 0,void 0,function(){var o,r;return bt(this,function(a){return o=JSON.stringify(t),r=this.getHttpRequest(Ir,o),[2,this.fetchRequestHandler.handle(r).then(function(u){var f=u.response;return f.body.getReader().read().then(function(s){var c=s.value;return JSON.parse(String.fromCharCode.apply(null,c))})}).catch(function(){throw new Error("CWR: Failed to retrieve Cognito OpenId token")})]})})},this.getCredentialsForIdentity=function(t){return wt(e,void 0,void 0,function(){var o,r;return bt(this,function(a){return o=JSON.stringify({IdentityId:t}),r=this.getHttpRequest(Rr,o),[2,this.fetchRequestHandler.handle(r).then(function(u){var f=u.response;return f.body.getReader().read().then(function(s){var c=s.value,l=JSON.parse(String.fromCharCode.apply(null,c)),h=l.IdentityId,m=l.Credentials,g=m.AccessKeyId,w=m.Expiration,b=m.SecretAccessKey,R=m.SessionToken;return{identityId:h,accessKeyId:g,secretAccessKey:b,sessionToken:R,expiration:new Date(w*1e3)}})}).catch(function(){throw new Error("CWR: Failed to retrieve credentials for Cognito identity")})]})})},this.getHttpRequest=function(t,o){return new be({method:Cr,headers:{"content-type":Or,"x-amz-target":t},protocol:Pr,hostname:e.hostname,body:o})},this.hostname="cognito-identity."+n.region+".amazonaws.com",this.fetchRequestHandler=n.fetchRequestHandler}return i}(),ve=function(i){return encodeURIComponent(i).replace(/[!'()*]/g,jr)},jr=function(i){return"%".concat(i.charCodeAt(0).toString(16).toUpperCase())};function _t(i){var n,e,t=[];try{for(var o=ue(Object.keys(i).sort()),r=o.next();!r.done;r=o.next()){var a=r.value,u=i[a];if(a=ve(a),Array.isArray(u))for(var f=0,s=u.length;f<s;f++)t.push("".concat(a,"=").concat(ve(u[f])));else{var c=a;(u||typeof u=="string")&&(c+="=".concat(ve(u))),t.push(c)}}}catch(l){n={error:l}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return t.join("&")}function kr(i){return i===void 0&&(i=0),new Promise(function(n,e){i&&setTimeout(function(){var t=new Error("Request did not complete within ".concat(i," ms"));t.name="TimeoutError",e(t)},i)})}var Et=function(){function i(n){typeof n=="function"?this.configProvider=n().then(function(e){return e||{}}):(this.config=n??{},this.configProvider=Promise.resolve(this.config))}return i.prototype.destroy=function(){},i.prototype.handle=function(n,e){var t=e===void 0?{}:e,o=t.abortSignal;return ae(this,void 0,void 0,function(){var r,a,u,f,s,c,l,h,m,g,w,b;return se(this,function(R){switch(R.label){case 0:return this.config?[3,2]:(r=this,[4,this.configProvider]);case 1:r.config=R.sent(),R.label=2;case 2:return a=this.config.requestTimeout,o?.aborted?(u=new Error("Request aborted"),u.name="AbortError",[2,Promise.reject(u)]):(f=n.path,n.query&&(s=_t(n.query),s&&(f+="?".concat(s))),c=n.port,l=n.method,h="".concat(n.protocol,"//").concat(n.hostname).concat(c?":".concat(c):"").concat(f),m=l==="GET"||l==="HEAD"?void 0:n.body,g={body:m,headers:new Headers(n.headers),method:l},typeof AbortController<"u"&&(g.signal=o),w=new Request(h,g),b=[fetch(w).then(function(L){var P,A,j=L.headers,F={};try{for(var W=ue(j.entries()),K=W.next();!K.done;K=W.next()){var k=K.value;F[k[0]]=k[1]}}catch(y){P={error:y}}finally{try{K&&!K.done&&(A=W.return)&&A.call(W)}finally{if(P)throw P.error}}var X=L.body!==void 0;return X?{response:new ke({headers:F,statusCode:L.status,body:L.body})}:L.blob().then(function(y){return{response:new ke({headers:F,statusCode:L.status,body:y})}})}),kr(a)],o&&b.push(new Promise(function(L,P){o.onabort=function(){var A=new Error("Request aborted");A.name="AbortError",P(A)}})),[2,Promise.race(b)])}})})},i}(),_e={},Me=new Array(64);for(N=0,pe="A".charCodeAt(0),Ne="Z".charCodeAt(0);N+pe<=Ne;N++)oe=String.fromCharCode(N+pe),_e[oe]=N,Me[N]=oe;var oe,N,pe,Ne;for(N=0,pe="a".charCodeAt(0),Ne="z".charCodeAt(0);N+pe<=Ne;N++)oe=String.fromCharCode(N+pe),ge=N+26,_e[oe]=ge,Me[ge]=oe;var oe,ge,N,pe,Ne;for(N=0;N<10;N++)_e[N.toString(10)]=N+52,oe=N.toString(10),ge=N+52,_e[oe]=ge,Me[ge]=oe;var oe,ge,N;_e["+"]=62,Me[62]="+",_e["/"]=63,Me[63]="/";var Ye=function(){return Ye=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},Ye.apply(this,arguments)},Mr=function(i,n,e,t){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function u(c){try{s(t.next(c))}catch(l){a(l)}}function f(c){try{s(t.throw(c))}catch(l){a(l)}}function s(c){c.done?r(c.value):o(c.value).then(u,f)}s((t=t.apply(i,n||[])).next())})},Nr=function(i,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return f([s,c])}}function f(s){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,o&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=n.call(i,e)}catch(c){s=[6,c],o=0}finally{t=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Hr="POST",Ur="application/x-www-form-urlencoded",Dr="https:",xr="AssumeRoleWithWebIdentity",qr="2011-06-15",Br=function(){function i(n){var e=this;this.assumeRoleWithWebIdentity=function(t){return Mr(e,void 0,void 0,function(){var o,r,a;return Nr(this,function(u){return o=Ye(Ye({},t),{Action:xr,Version:qr}),r=new URLSearchParams(Object.entries(o)).toString(),a=new be({method:Hr,headers:{"content-type":Ur,host:this.hostname},protocol:Dr,hostname:this.hostname,body:r}),[2,this.fetchRequestHandler.handle(a).then(function(f){var s=f.response;return s.body.getReader().read().then(function(c){var l=c.value,h=String.fromCharCode.apply(null,l);return{accessKeyId:h.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:h.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:h.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(h.split("<Expiration>")[1].split("</Expiration>")[0])}})}).catch(function(){throw new Error("CWR: Failed to retrieve credentials from STS")})]})})},this.hostname="sts."+n.region+".amazonaws.com",this.fetchRequestHandler=n.fetchRequestHandler}return i}(),Je="cwr_c",Zt="cwr_s",Qt="cwr_u",$t=3e4,Ze=function(i,n,e,t){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function u(c){try{s(t.next(c))}catch(l){a(l)}}function f(c){try{s(t.throw(c))}catch(l){a(l)}}function s(c){c.done?r(c.value):o(c.value).then(u,f)}s((t=t.apply(i,n||[])).next())})},Qe=function(i,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return f([s,c])}}function f(s){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,o&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=n.call(i,e)}catch(c){s=[6,c],o=0}finally{t=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Fr=function(){function i(n){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Ze(e,void 0,void 0,function(){return Qe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Ze(e,void 0,void 0,function(){var o=this;return Qe(this,function(r){return[2,new Promise(function(a,u){if(o.renewCredentials())return u();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Ze(e,void 0,void 0,function(){var o=this;return Qe(this,function(r){return[2,new Promise(function(a,u){var f;try{f=JSON.parse(localStorage.getItem(Je))}catch{return u()}if(f.expiration=new Date(f.expiration),o.credentials=f,o.renewCredentials())return u();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ze(e,void 0,void 0,function(){var o=this;return Qe(this,function(r){return[2,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}).then(function(a){return o.cognitoIdentityClient.getOpenIdToken(a)}).then(function(a){return o.stsClient.assumeRoleWithWebIdentity({RoleArn:o.config.guestRoleArn,RoleSessionName:"cwr",WebIdentityToken:a.Token})}).then(function(a){o.credentials=a;try{localStorage.setItem(Je,JSON.stringify(a))}catch{}return a})]})})};var t=n.identityPoolId.split(":")[0];this.config=n,this.stsClient=new Br({fetchRequestHandler:new Et,region:t}),this.cognitoIdentityClient=new Jt({fetchRequestHandler:new Et,region:t})}return i.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var n=new Date(this.credentials.expiration.getTime()-$t);return new Date>n},i}(),$e=function(i,n,e,t){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function u(c){try{s(t.next(c))}catch(l){a(l)}}function f(c){try{s(t.throw(c))}catch(l){a(l)}}function s(c){c.done?r(c.value):o(c.value).then(u,f)}s((t=t.apply(i,n||[])).next())})},et=function(i,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return f([s,c])}}function f(s){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,o&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=n.call(i,e)}catch(c){s=[6,c],o=0}finally{t=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Vr=function(){function i(n){var e=this;this.ChainAnonymousCredentialsProvider=function(){return $e(e,void 0,void 0,function(){return et(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return $e(e,void 0,void 0,function(){var o=this;return et(this,function(r){return[2,new Promise(function(a,u){if(o.renewCredentials())return u();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return $e(e,void 0,void 0,function(){var o=this;return et(this,function(r){return[2,new Promise(function(a,u){var f;try{f=JSON.parse(localStorage.getItem(Je))}catch{u()}if(f.expiration=new Date(f.expiration),o.credentials=f,o.renewCredentials())return u();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return $e(e,void 0,void 0,function(){var o,r=this;return et(this,function(a){return o=Lr({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(u){r.credentials=u;try{localStorage.setItem(Je,JSON.stringify(u))}catch{}return u})]})})};var t=n.identityPoolId.split(":")[0];this.config=n,this.cognitoIdentityClient=new Jt({fetchRequestHandler:new Et,region:t})}return i.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var n=new Date(this.credentials.expiration.getTime()-$t);return new Date>n},i}(),ce="com.amazon.rum",Gr="com.amazonaws.rum",tt=ce+".http_event",en=ce+".xray_trace_event",zr=ce+".largest_contentful_paint_event",Xr=ce+".first_input_delay_event",Wr=ce+".cumulative_layout_shift_event",St=ce+".performance_navigation_event",Kr=ce+".performance_resource_event",Yr=ce+".dom_event",Jr=ce+".js_error_event",Zr=ce+".page_view_event",ye=function(){function i(n){this.enabled=!0,this.pluginId=i.generatePluginId(n)}return i.generatePluginId=function(n){return i.idPrefix+"."+n},i.prototype.load=function(n){var e;this.context=n,(e=this.onload)===null||e===void 0||e.call(this)},i.prototype.getPluginId=function(){return this.pluginId},i.idPrefix=Gr,i}(),Qr=function(){function i(n){this.context=n,this.plugins=new Map}return i.prototype.addPlugin=function(n){var e=n.getPluginId();if(this.hasPlugin(e))throw new Error('Plugin "'+e+'" already defined in the PluginManager');this.plugins.set(e,n),n.load(this.context)},i.prototype.updatePlugin=function(n,e){var t,o=this.getPlugin(n);(t=o?.update)===null||t===void 0||t.call(o,e)},i.prototype.enable=function(){this.plugins.forEach(function(n){return n.enable()})},i.prototype.disable=function(){this.plugins.forEach(function(n){return n.disable()})},i.prototype.hasPlugin=function(n){return Boolean(this.getPlugin(n))},i.prototype.record=function(n,e){var t=this.getPlugin(n);if(t?.record instanceof Function)t.record(e);else throw new Error("AWS RUM Client record: Invalid plugin ID")},i.prototype.getPlugin=function(n){var e;return(e=this.plugins.get(n))!==null&&e!==void 0?e:this.plugins.get(ye.generatePluginId(n))},i}(),$r=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),me=function(){return me=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},me.apply(this,arguments)},tn="dom-event",ei={interactionId:function(){},enableMutationObserver:!1,events:[]},ti=function(i){$r(n,i);function n(e){var t=i.call(this,tn)||this;return t.enabled=!1,t.eventListenerMap=new Map,t.config=me(me({},ei),e),t}return n.getElementInfo=function(e){var t={name:"UNKNOWN"};return e.target instanceof Node&&(t.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(t.id=e.target.id),t},n.prototype.enable=function(){var e=this;if(document.readyState!=="complete"){window.addEventListener("load",function(){return e.enable()});return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)},n.prototype.disable=function(){!this.enabled||(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},n.prototype.update=function(e){var t=this;e.forEach(function(o){t.addEventHandler(o),t.config.events.push(o)})},n.prototype.onload=function(){this.enable()},n.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(t){return e.removeEventHandler(t)})},n.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(t){return e.addEventHandler(t)})},n.prototype.getEventListener=function(e){var t=this;return function(o){var r,a=n.getElementInfo(o),u=t.config.interactionId(o),f=me(me(me({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),u?{interactionId:u}:{}),e?{cssLocator:e}:{});!((r=t.context)===null||r===void 0)&&r.record&&t.context.record(Yr,f)}},n.prototype.addEventHandler=function(e){var t=e.event,o=this.getEventListener(e.cssLocator),r=[],a=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator){var u=document.querySelectorAll(e.cssLocator);u.forEach(function(s){r.push(s)})}else if(e.elementId){var f=document.getElementById(e.elementId);f&&r.push(f)}else e.element&&r.push(e.element);r.forEach(function(s){s.addEventListener(t,o),a.push({element:s,eventListener:o})}),this.eventListenerMap.set(e,a)},n.prototype.removeEventHandler=function(e){var t=this.eventListenerMap.get(e);t&&(t.forEach(function(o){var r=o.element,a=o.eventListener;r.removeEventListener(e.event,a)}),this.eventListenerMap.delete(e))},n.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},n}(ye),ni=function(i){var n=typeof i;return(n==="object"||n==="function")&&!!i},ri=function(i){var n={version:"1.0.0",type:"undefined",message:"undefined"};return i.type!==void 0&&(n.type=i.type),i.message!==void 0&&(n.message=i.message),i.filename!==void 0&&(n.filename=i.filename),i.lineno!==void 0&&(n.lineno=i.lineno),i.colno!==void 0&&(n.colno=i.colno),n},ii=function(i,n){i.type!=="unhandledrejection"&&(i.type=n.toString()),i.message=n.toString()},oi=function(i,n,e){n.name&&(i.type=n.name),n.message&&(i.message=n.message),n.fileName&&(i.filename=n.fileName),n.lineNumber&&(i.lineno=n.lineNumber),n.columnNumber&&(i.colno=n.columnNumber),e&&n.stack&&(i.stack=n.stack.length>e?n.stack.substring(0,e)+"...":n.stack)},nn=function(i){return i!==Object(i)&&i!==void 0&&i!==null},Tt=function(i,n){var e=ri(i),t=i.error;return ni(t)?oi(e,t,n):nn(t)&&ii(e,t),e},ai=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),nt=function(){return nt=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},nt.apply(this,arguments)},rn="js-error",si={stackTraceLength:200,ignore:function(){return!1}},ui=function(i){ai(n,i);function n(e){var t=i.call(this,rn)||this;return t.eventHandler=function(o){t.config.ignore(o)||t.recordJsErrorEvent(o)},t.promiseRejectEventHandler=function(o){t.config.ignore(o)||t.recordJsErrorEvent({type:o.type,error:o.reason})},t.config=nt(nt({},si),e),t}return n.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},n.prototype.disable=function(){!this.enabled||(this.removeEventHandler(),this.enabled=!1)},n.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},n.prototype.onload=function(){this.addEventHandler()},n.prototype.recordJsErrorEvent=function(e){var t;(t=this.context)===null||t===void 0||t.record(Jr,Tt(e,this.config.stackTraceLength))},n.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},n.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},n}(ye),on=function(i,n,e,t,o){var r=i+"=";r+=n||"",o!==void 0?r+="; Expires="+o.toUTCString():t!==void 0&&(r+="; Expires="+ci(t).toUTCString()),r+="; Domain="+e.domain,r+="; Path="+e.path,r+="; SameSite="+e.sameSite,r+=e.secure?"; Secure":"",document.cookie=r},ci=function(i){return new Date(new Date().getTime()+i*1e3)},an=function(i){for(var n=document.cookie.split("; "),e=0,t=n;e<t.length;e++){var o=t[e],r=o.split("=");if(r[0]===i)return r[1]}return""},rt,fi=new Uint8Array(16);function li(){if(!rt&&(rt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!rt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rt(fi)}var di=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function hi(i){return typeof i=="string"&&di.test(i)}var sn=hi,Y=[];for(N=0;N<256;++N)Y.push((N+256).toString(16).substr(1));var N;function vi(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(Y[i[n+0]]+Y[i[n+1]]+Y[i[n+2]]+Y[i[n+3]]+"-"+Y[i[n+4]]+Y[i[n+5]]+"-"+Y[i[n+6]]+Y[i[n+7]]+"-"+Y[i[n+8]]+Y[i[n+9]]+"-"+Y[i[n+10]]+Y[i[n+11]]+Y[i[n+12]]+Y[i[n+13]]+Y[i[n+14]]+Y[i[n+15]]).toLowerCase();if(!sn(e))throw TypeError("Stringified UUID is invalid");return e}var un=vi;function pi(i){if(!sn(i))throw TypeError("Invalid UUID");var n,e=new Uint8Array(16);return e[0]=(n=parseInt(i.slice(0,8),16))>>>24,e[1]=n>>>16&255,e[2]=n>>>8&255,e[3]=n&255,e[4]=(n=parseInt(i.slice(9,13),16))>>>8,e[5]=n&255,e[6]=(n=parseInt(i.slice(14,18),16))>>>8,e[7]=n&255,e[8]=(n=parseInt(i.slice(19,23),16))>>>8,e[9]=n&255,e[10]=(n=parseInt(i.slice(24,36),16))/1099511627776&255,e[11]=n/4294967296&255,e[12]=n>>>24&255,e[13]=n>>>16&255,e[14]=n>>>8&255,e[15]=n&255,e}var gi=pi;function yi(i){i=unescape(encodeURIComponent(i));for(var n=[],e=0;e<i.length;++e)n.push(i.charCodeAt(e));return n}var mi="6ba7b810-9dad-11d1-80b4-00c04fd430c8",wi="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function cn(i,n,e){function t(o,r,a,u){if(typeof o=="string"&&(o=yi(o)),typeof r=="string"&&(r=gi(r)),r.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var f=new Uint8Array(16+o.length);if(f.set(r),f.set(o,r.length),f=e(f),f[6]=f[6]&15|n,f[8]=f[8]&63|128,a){u=u||0;for(var s=0;s<16;++s)a[u+s]=f[s];return a}return un(f)}try{t.name=i}catch{}return t.DNS=mi,t.URL=wi,t}function bi(i){if(typeof i=="string"){var n=unescape(encodeURIComponent(i));i=new Uint8Array(n.length);for(var e=0;e<n.length;++e)i[e]=n.charCodeAt(e)}return _i(Ei(Si(i),i.length*8))}function _i(i){for(var n=[],e=i.length*32,t="0123456789abcdef",o=0;o<e;o+=8){var r=i[o>>5]>>>o%32&255,a=parseInt(t.charAt(r>>>4&15)+t.charAt(r&15),16);n.push(a)}return n}function fn(i){return(i+64>>>9<<4)+14+1}function Ei(i,n){i[n>>5]|=128<<n%32,i[fn(n)-1]=n;for(var e=1732584193,t=-271733879,o=-1732584194,r=271733878,a=0;a<i.length;a+=16){var u=e,f=t,s=o,c=r;e=Z(e,t,o,r,i[a],7,-680876936),r=Z(r,e,t,o,i[a+1],12,-389564586),o=Z(o,r,e,t,i[a+2],17,606105819),t=Z(t,o,r,e,i[a+3],22,-1044525330),e=Z(e,t,o,r,i[a+4],7,-176418897),r=Z(r,e,t,o,i[a+5],12,1200080426),o=Z(o,r,e,t,i[a+6],17,-1473231341),t=Z(t,o,r,e,i[a+7],22,-45705983),e=Z(e,t,o,r,i[a+8],7,1770035416),r=Z(r,e,t,o,i[a+9],12,-1958414417),o=Z(o,r,e,t,i[a+10],17,-42063),t=Z(t,o,r,e,i[a+11],22,-1990404162),e=Z(e,t,o,r,i[a+12],7,1804603682),r=Z(r,e,t,o,i[a+13],12,-40341101),o=Z(o,r,e,t,i[a+14],17,-1502002290),t=Z(t,o,r,e,i[a+15],22,1236535329),e=Q(e,t,o,r,i[a+1],5,-165796510),r=Q(r,e,t,o,i[a+6],9,-1069501632),o=Q(o,r,e,t,i[a+11],14,643717713),t=Q(t,o,r,e,i[a],20,-373897302),e=Q(e,t,o,r,i[a+5],5,-701558691),r=Q(r,e,t,o,i[a+10],9,38016083),o=Q(o,r,e,t,i[a+15],14,-660478335),t=Q(t,o,r,e,i[a+4],20,-405537848),e=Q(e,t,o,r,i[a+9],5,568446438),r=Q(r,e,t,o,i[a+14],9,-1019803690),o=Q(o,r,e,t,i[a+3],14,-187363961),t=Q(t,o,r,e,i[a+8],20,1163531501),e=Q(e,t,o,r,i[a+13],5,-1444681467),r=Q(r,e,t,o,i[a+2],9,-51403784),o=Q(o,r,e,t,i[a+7],14,1735328473),t=Q(t,o,r,e,i[a+12],20,-1926607734),e=$(e,t,o,r,i[a+5],4,-378558),r=$(r,e,t,o,i[a+8],11,-2022574463),o=$(o,r,e,t,i[a+11],16,1839030562),t=$(t,o,r,e,i[a+14],23,-35309556),e=$(e,t,o,r,i[a+1],4,-1530992060),r=$(r,e,t,o,i[a+4],11,1272893353),o=$(o,r,e,t,i[a+7],16,-155497632),t=$(t,o,r,e,i[a+10],23,-1094730640),e=$(e,t,o,r,i[a+13],4,681279174),r=$(r,e,t,o,i[a],11,-358537222),o=$(o,r,e,t,i[a+3],16,-722521979),t=$(t,o,r,e,i[a+6],23,76029189),e=$(e,t,o,r,i[a+9],4,-640364487),r=$(r,e,t,o,i[a+12],11,-421815835),o=$(o,r,e,t,i[a+15],16,530742520),t=$(t,o,r,e,i[a+2],23,-995338651),e=ee(e,t,o,r,i[a],6,-198630844),r=ee(r,e,t,o,i[a+7],10,1126891415),o=ee(o,r,e,t,i[a+14],15,-1416354905),t=ee(t,o,r,e,i[a+5],21,-57434055),e=ee(e,t,o,r,i[a+12],6,1700485571),r=ee(r,e,t,o,i[a+3],10,-1894986606),o=ee(o,r,e,t,i[a+10],15,-1051523),t=ee(t,o,r,e,i[a+1],21,-2054922799),e=ee(e,t,o,r,i[a+8],6,1873313359),r=ee(r,e,t,o,i[a+15],10,-30611744),o=ee(o,r,e,t,i[a+6],15,-1560198380),t=ee(t,o,r,e,i[a+13],21,1309151649),e=ee(e,t,o,r,i[a+4],6,-145523070),r=ee(r,e,t,o,i[a+11],10,-1120210379),o=ee(o,r,e,t,i[a+2],15,718787259),t=ee(t,o,r,e,i[a+9],21,-343485551),e=de(e,u),t=de(t,f),o=de(o,s),r=de(r,c)}return[e,t,o,r]}function Si(i){if(i.length===0)return[];for(var n=i.length*8,e=new Uint32Array(fn(n)),t=0;t<n;t+=8)e[t>>5]|=(i[t/8]&255)<<t%32;return e}function de(i,n){var e=(i&65535)+(n&65535),t=(i>>16)+(n>>16)+(e>>16);return t<<16|e&65535}function Ti(i,n){return i<<n|i>>>32-n}function it(i,n,e,t,o,r){return de(Ti(de(de(n,i),de(t,r)),o),e)}function Z(i,n,e,t,o,r,a){return it(n&e|~n&t,i,n,o,r,a)}function Q(i,n,e,t,o,r,a){return it(n&t|e&~t,i,n,o,r,a)}function $(i,n,e,t,o,r,a){return it(n^e^t,i,n,o,r,a)}function ee(i,n,e,t,o,r,a){return it(e^(n|~t),i,n,o,r,a)}var Ci=bi;cn("v3",48,Ci);function Oi(i,n,e){i=i||{};var t=i.random||(i.rng||li)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=t[o];return n}return un(t)}var He=Oi;function Pi(i,n,e,t){switch(i){case 0:return n&e^~n&t;case 1:return n^e^t;case 2:return n&e^n&t^e&t;case 3:return n^e^t}}function Ct(i,n){return i<<n|i>>>32-n}function Ai(i){var n=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){var t=unescape(encodeURIComponent(i));i=[];for(var o=0;o<t.length;++o)i.push(t.charCodeAt(o))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);for(var r=i.length/4+2,a=Math.ceil(r/16),u=new Array(a),f=0;f<a;++f){for(var s=new Uint32Array(16),c=0;c<16;++c)s[c]=i[f*64+c*4]<<24|i[f*64+c*4+1]<<16|i[f*64+c*4+2]<<8|i[f*64+c*4+3];u[f]=s}u[a-1][14]=(i.length-1)*8/Math.pow(2,32),u[a-1][14]=Math.floor(u[a-1][14]),u[a-1][15]=(i.length-1)*8&4294967295;for(var l=0;l<a;++l){for(var h=new Uint32Array(80),m=0;m<16;++m)h[m]=u[l][m];for(var g=16;g<80;++g)h[g]=Ct(h[g-3]^h[g-8]^h[g-14]^h[g-16],1);for(var w=e[0],b=e[1],R=e[2],L=e[3],P=e[4],A=0;A<80;++A){var j=Math.floor(A/20),F=Ct(w,5)+Pi(j,b,R,L)+P+n[j]+h[A]>>>0;P=L,L=R,R=Ct(b,30)>>>0,b=w,w=F}e[0]=e[0]+w>>>0,e[1]=e[1]+b>>>0,e[2]=e[2]+R>>>0,e[3]=e[3]+L>>>0,e[4]=e[4]+P>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var Ii=Ai;cn("v5",80,Ii);var Ri=Ke(cr()),Ee="00000000-0000-0000-0000-000000000000",ot="unknown",Li="desktop",ji="web",ki="com.amazon.rum.session_start_event",Mi=function(){function i(n,e,t,o){this.appMonitorDetails=n,this.config=e,this.record=t,this.pageManager=o,this.session={sessionId:Ee,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.getSessionFromCookie()}return i.prototype.getSession=function(){return this.session.sessionId!==Ee&&!this.useCookies()?this.session={sessionId:Ee,record:this.sample(),eventCount:0,page:this.session.page}:this.session.sessionId===Ee&&this.useCookies()?this.createSession():this.session.sessionId!==Ee&&new Date>this.sessionExpiry&&this.createSession(),this.session},i.prototype.getAttributes=function(){return this.attributes},i.prototype.getUserId=function(){return this.useCookies()?this.userId:Ee},i.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},i.prototype.initializeUser=function(){var n="";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()?(n=this.getUserIdCookie(),this.userId=n||He(),this.createOrRenewUserCookie(n,this.userExpiry)):this.userId=He()},i.prototype.createOrRenewSessionCookie=function(n,e){btoa&&on(this.sessionCookieName(),btoa(JSON.stringify(n)),this.config.cookieAttributes,void 0,e)},i.prototype.createOrRenewUserCookie=function(n,e){on(Qt,n,this.config.cookieAttributes,void 0,e)},i.prototype.getUserIdCookie=function(){return an(Qt)},i.prototype.getSessionFromCookie=function(){if(this.useCookies()){var n=an(this.sessionCookieName());if(n&&atob)try{this.session=JSON.parse(atob(n)),this.pageManager.resumeSession(this.session.page.pageId,this.session.page.interaction)}catch{}}},i.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},i.prototype.createSession=function(){this.session={sessionId:He(),record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),this.record(this.session,ki,{version:"1.0.0"})},i.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},i.prototype.collectAttributes=function(){var n=new Ri.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:n.browser.name?n.browser.name:ot,browserVersion:n.browser.version?n.browser.version:ot,osName:n.os.name?n.os.name:ot,osVersion:n.os.version?n.os.version:ot,deviceType:n.device.type?n.device.type:Li,platformType:ji,domain:window.location.hostname}},i.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},i.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},i.prototype.sessionCookieName=function(){return this.config.cookieAttributes.unique?Zt+"_"+this.appMonitorDetails.id:Zt},i}(),at=Ke(fr()),Ni=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),st=function(i){Ni(n,i);function n(){var e=i!==null&&i.apply(this,arguments)||this;return e.enable=e.patch.bind(e,!0),e.disable=e.patch.bind(e,!1),e.enabled=!1,e}return n.prototype.patch=function(e){if(e===void 0&&(e=!0),this.enabled!==e){this.enabled=e;for(var t=e?at.wrap.bind(at):at.unwrap.bind(at),o=0,r=this.patches;o<r.length;o++){var a=r[o];t(a.nodule,a.name,e?a.wrapper():void 0)}}},n}(ye),Hi=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ui=function(i){Hi(n,i);function n(e,t,o){var r=i.call(this,"virtual-page-load-timer")||this;return r.sendWrapper=function(){var a=r;return function(u){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),u.apply(this,arguments)}}},r.endTracking=function(a){var u=Date.now(),f=a.target;f.removeEventListener("loadend",r.endTracking),r.removeXhr(f,u)},r.fetch=function(a,u,f,s,c){return a.apply(u,f).catch(function(l){throw l}).finally(r.decrementFetchCounter)},r.fetchWrapper=function(){var a=r;return function(u){return function(f,s){return a.fetchCounter+=1,a.fetch(u,this,arguments,f,s)}}},r.decrementFetchCounter=function(){r.isPageLoaded||(r.latestEndTime=Date.now()),r.fetchCounter-=1},r.checkLoadStatus=function(){r.ongoingRequests.size===0&&r.fetchCounter===0&&(clearInterval(r.periodicCheckerId),clearTimeout(r.timeoutCheckerId),r.domMutationObserver.disconnect(),r.recordRouteChangeNavigationEvent(r.pageManager.getPage()),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.isPageLoaded=!0)},r.declareTimeout=function(){clearInterval(r.periodicCheckerId),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver.disconnect(),r.isPageLoaded=!0},r.resetInterval=function(){r.latestEndTime=Date.now(),clearInterval(r.periodicCheckerId),r.periodicCheckerId=setInterval(r.checkLoadStatus,r.config.routeChangeComplete)},r.moveItemsFromBuffer=function(a){r.ongoingRequests.add(a)},r.updateLatestInteractionTime=function(a){r.latestInteractionTime=Date.now()},r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver=new MutationObserver(r.resetInterval),r.ongoingRequests=new Set,r.requestBuffer=new Set,r.fetchCounter=0,r.isPageLoaded=!0,r.latestEndTime=0,r.latestInteractionTime=0,r.config=t,r.pageManager=e,r.record=o,r.enable(),document.addEventListener("mousedown",r.updateLatestInteractionTime),document.addEventListener("keydown",r.updateLatestInteractionTime),r}return Object.defineProperty(n.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),n.prototype.startTiming=function(){this.latestEndTime=Date.now(),this.periodicCheckerId&&clearInterval(this.periodicCheckerId),this.timeoutCheckerId&&clearTimeout(this.timeoutCheckerId),this.domMutationObserver.disconnect(),this.periodicCheckerId=setInterval(this.checkLoadStatus,this.config.routeChangeComplete),this.timeoutCheckerId=setTimeout(this.declareTimeout,this.config.routeChangeTimeout),this.domMutationObserver.observe(document,{subtree:!0,childList:!0,attributes:!1,characterData:!1}),this.isPageLoaded=!1,this.requestBuffer.forEach(this.moveItemsFromBuffer),this.requestBuffer.clear()},n.prototype.recordXhr=function(e){var t=this.pageManager.getPage();t&&this.isPageLoaded===!1?this.ongoingRequests.add(e):this.requestBuffer.add(e)},n.prototype.removeXhr=function(e,t){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=t):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},n.prototype.recordRouteChangeNavigationEvent=function(e){var t={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(St,t)},n}(st),Di=function(){function i(n,e){this.TIMEOUT=1e3,this.config=n,this.record=e,this.page=void 0,this.resumed=void 0,this.recordInteraction=!1,this.virtualPageLoadTimer=new Ui(this,n,e)}return i.prototype.getPage=function(){return this.page},i.prototype.getAttributes=function(){return this.attributes},i.prototype.resumeSession=function(n,e){this.recordInteraction=!0,this.resumed={pageId:n,interaction:e,start:0}},i.prototype.recordPageView=function(n){var e;if(typeof n=="string"?e=n:e=n.pageId,this.useCookies()&&(this.recordInteraction=!0),!this.page&&this.resumed)this.createResumedPage(e);else if(!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(e);else return;this.collectAttributes(typeof n=="object"?n:void 0),this.recordPageViewEvent()},i.prototype.createResumedPage=function(n){this.page={pageId:n,parentPageId:this.resumed.pageId,interaction:this.resumed.interaction+1,start:Date.now()},this.resumed=void 0},i.prototype.createNextPage=function(n){var e=Date.now(),t=this.virtualPageLoadTimer.latestInteractionTime;e-t<=this.TIMEOUT&&(e=t,this.virtualPageLoadTimer.startTiming()),this.page={pageId:n,parentPageId:this.page.pageId,interaction:this.page.interaction+1,start:e}},i.prototype.createLandingPage=function(n){this.page={pageId:n,interaction:0,start:Date.now()}},i.prototype.collectAttributes=function(n){var e=this;this.attributes={title:document.title,pageId:this.page.pageId},this.recordInteraction&&(this.attributes.interaction=this.page.interaction,this.page.parentPageId!==void 0&&(this.attributes.parentPageId=this.page.parentPageId)),n&&Object.keys(n).forEach(function(t){e.attributes[t]=n[t]})},i.prototype.createPageViewEvent=function(){var n={version:"1.0.0",pageId:this.page.pageId};return this.recordInteraction&&(n.interaction=this.page.interaction,n.pageInteractionId=this.page.pageId+"-"+this.page.interaction,this.page.parentPageId!==void 0&&(n.parentPageInteractionId=this.page.parentPageId+"-"+(this.page.interaction-1))),n},i.prototype.recordPageViewEvent=function(){this.record(Zr,this.createPageViewEvent())},i.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},i}(),ut=function(){return ut=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},ut.apply(this,arguments)},xi=function(){function i(n,e){var t=this;this.events=[],this.recordPageView=function(o){t.isCurrentUrlAllowed()&&t.pageManager.recordPageView(o)},this.recordEvent=function(o,r){if(!!t.enabled&&t.isCurrentUrlAllowed()){var a=t.sessionManager.getSession();t.sessionManager.incrementSessionEventCount(),t.canRecord(a)&&t.addRecordToCache(o,r)}},this.getSession=function(){if(t.isCurrentUrlAllowed())return t.sessionManager.getSession()},this.recordSessionInitEvent=function(o,r,a){!t.enabled||(t.sessionManager.incrementSessionEventCount(),t.canRecord(o)&&t.addRecordToCache(r,a))},this.canRecord=function(o){return o.record&&(o.eventCount<=t.config.sessionEventLimit||t.config.sessionEventLimit<=0)},this.addRecordToCache=function(o,r){if(!!t.enabled){t.events.length===t.config.eventCacheSize&&t.events.shift();var a=ut(ut({version:"1.0.0"},t.sessionManager.getAttributes()),t.pageManager.getAttributes());t.events.push({details:JSON.stringify(r),id:He(),metadata:JSON.stringify(a),timestamp:new Date,type:o})}},this.appMonitorDetails=n,this.config=e,this.enabled=!0,this.pageManager=new Di(e,this.recordEvent),this.sessionManager=new Mi(n,e,this.recordSessionInitEvent,this.pageManager)}return i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.hasEvents=function(){return this.events.length!==0},i.prototype.getEventBatch=function(){var n=[];return this.events.length===0||(this.events.length<=this.config.batchLimit?(n=this.events,this.events=[]):n=this.events.splice(0,this.config.batchLimit)),n},i.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},i.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},i.prototype.isCurrentUrlAllowed=function(){var n=document.location.toString(),e=this.config.pagesToExclude.some(function(o){return o.test(n)}),t=this.config.pagesToInclude.some(function(o){return o.test(n)});return t&&!e},i}(),ln={};for(N=0;N<256;N++)Ue=N.toString(16).toLowerCase(),Ue.length===1&&(Ue="0".concat(Ue)),ln[N]=Ue;var Ue,N;function we(i){for(var n="",e=0;e<i.byteLength;e++)n+=ln[i[e]];return n}var dn=function(i){if(typeof i=="function")return i;var n=Promise.resolve(i);return function(){return n}},qi="X-Amz-Algorithm",Bi="X-Amz-Credential",hn="X-Amz-Date",Fi="X-Amz-SignedHeaders",Vi="X-Amz-Expires",vn="X-Amz-Signature",pn="X-Amz-Security-Token",gn="authorization",yn=hn.toLowerCase(),Gi="date",zi=[gn,yn,Gi],Xi=vn.toLowerCase(),Ot="x-amz-content-sha256",Wi=pn.toLowerCase(),Ki={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},Yi=/^proxy-/,Ji=/^sec-/,Pt="AWS4-HMAC-SHA256",Zi="AWS4-HMAC-SHA256-PAYLOAD",Qi="UNSIGNED-PAYLOAD",$i=50,mn="aws4_request",eo=60*60*24*7,ct={},At=[],It=function(i,n,e){return"".concat(i,"/").concat(n,"/").concat(e,"/").concat(mn)},to=function(i,n,e,t,o){return ae(void 0,void 0,void 0,function(){var r,a,u,f,s,c,l,h,m;return se(this,function(g){switch(g.label){case 0:return[4,wn(i,n.secretAccessKey,n.accessKeyId)];case 1:if(r=g.sent(),a="".concat(e,":").concat(t,":").concat(o,":").concat(we(r),":").concat(n.sessionToken),a in ct)return[2,ct[a]];for(At.push(a);At.length>$i;)delete ct[At.shift()];u="AWS4".concat(n.secretAccessKey),g.label=2;case 2:g.trys.push([2,7,8,9]),f=ue([e,t,o,mn]),s=f.next(),g.label=3;case 3:return s.done?[3,6]:(c=s.value,[4,wn(i,u,c)]);case 4:u=g.sent(),g.label=5;case 5:return s=f.next(),[3,3];case 6:return[3,9];case 7:return l=g.sent(),h={error:l},[3,9];case 8:try{s&&!s.done&&(m=f.return)&&m.call(f)}finally{if(h)throw h.error}return[7];case 9:return[2,ct[a]=u]}})})},wn=function(i,n,e){var t=new i(n);return t.update(e),t.digest()},bn=function(i,n,e){var t,o,r=i.headers,a={};try{for(var u=ue(Object.keys(r).sort()),f=u.next();!f.done;f=u.next()){var s=f.value;if(r[s]!=null){var c=s.toLowerCase();(c in Ki||n?.has(c)||Yi.test(c)||Ji.test(c))&&(!e||e&&!e.has(c))||(a[c]=r[s].trim().replace(/\s+/g," "))}}}catch(l){t={error:l}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}return a},no=function(i){var n,e,t=i.query,o=t===void 0?{}:t,r=[],a={},u=function(l){if(l.toLowerCase()===Xi)return"continue";r.push(l);var h=o[l];typeof h=="string"?a[l]="".concat(ve(l),"=").concat(ve(h)):Array.isArray(h)&&(a[l]=h.slice(0).sort().reduce(function(m,g){return m.concat(["".concat(ve(l),"=").concat(ve(g))])},[]).join("&"))};try{for(var f=ue(Object.keys(o).sort()),s=f.next();!s.done;s=f.next()){var c=s.value;u(c)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(e=f.return)&&e.call(f)}finally{if(n)throw n.error}}return r.map(function(l){return a[l]}).filter(function(l){return l}).join("&")},ro=function(i){return typeof ArrayBuffer=="function"&&i instanceof ArrayBuffer||Object.prototype.toString.call(i)==="[object ArrayBuffer]"},Rt=function(i,n){var e=i.headers,t=i.body;return ae(void 0,void 0,void 0,function(){var o,r,a,u,f,s,c;return se(this,function(l){switch(l.label){case 0:try{for(o=ue(Object.keys(e)),r=o.next();!r.done;r=o.next())if(a=r.value,a.toLowerCase()===Ot)return[2,e[a]]}catch(h){s={error:h}}finally{try{r&&!r.done&&(c=o.return)&&c.call(o)}finally{if(s)throw s.error}}return t!=null?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return typeof t=="string"||ArrayBuffer.isView(t)||ro(t)?(u=new n,u.update(t),f=we,[4,u.digest()]):[3,3];case 2:return[2,f.apply(void 0,[l.sent()])];case 3:return[2,Qi]}})})},io=function(i,n){var e,t;i=i.toLowerCase();try{for(var o=ue(Object.keys(n)),r=o.next();!r.done;r=o.next()){var a=r.value;if(i===a.toLowerCase())return!0}}catch(u){e={error:u}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return!1},_n=function(i){var n=i.headers,e=i.query,t=Sr(i,["headers","query"]);return ie(ie({},t),{headers:ie({},n),query:e?oo(e):void 0})},oo=function(i){return Object.keys(i).reduce(function(n,e){var t,o=i[e];return ie(ie({},n),(t={},t[e]=Array.isArray(o)?Yt([],Kt(o),!1):o,t))},{})},ao=function(i,n){var e,t,o;n===void 0&&(n={});var r=typeof i.clone=="function"?i.clone():_n(i),a=r.headers,u=r.query,f=u===void 0?{}:u;try{for(var s=ue(Object.keys(a)),c=s.next();!c.done;c=s.next()){var l=c.value,h=l.toLowerCase();h.slice(0,6)==="x-amz-"&&!(!((o=n.unhoistableHeaders)===null||o===void 0)&&o.has(h))&&(f[l]=a[l],delete a[l])}}catch(m){e={error:m}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return ie(ie({},i),{headers:a,query:f})},En=function(i){var n,e;i=typeof i.clone=="function"?i.clone():_n(i);try{for(var t=ue(Object.keys(i.headers)),o=t.next();!o.done;o=t.next()){var r=o.value;zi.indexOf(r.toLowerCase())>-1&&delete i.headers[r]}}catch(a){n={error:a}}finally{try{o&&!o.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}return i},so=function(i){return uo(i).toISOString().replace(/\.\d{3}Z$/,"Z")},uo=function(i){return typeof i=="number"?new Date(i*1e3):typeof i=="string"?Number(i)?new Date(Number(i)*1e3):new Date(i):i},co=function(){function i(n){var e=n.applyChecksum,t=n.credentials,o=n.region,r=n.service,a=n.sha256,u=n.uriEscapePath,f=u===void 0?!0:u;this.service=r,this.sha256=a,this.uriEscapePath=f,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=dn(o),this.credentialProvider=dn(t)}return i.prototype.presign=function(n,e){return e===void 0&&(e={}),ae(this,void 0,void 0,function(){var t,o,r,a,u,f,s,c,l,h,m,g,w,b,R,L,P,A,j,F,W,K,k,X;return se(this,function(y){switch(y.label){case 0:return t=e.signingDate,o=t===void 0?new Date:t,r=e.expiresIn,a=r===void 0?3600:r,u=e.unsignableHeaders,f=e.unhoistableHeaders,s=e.signableHeaders,c=e.signingRegion,l=e.signingService,[4,this.credentialProvider()];case 1:return h=y.sent(),c==null?[3,2]:(g=c,[3,4]);case 2:return[4,this.regionProvider()];case 3:g=y.sent(),y.label=4;case 4:return m=g,w=ft(o),b=w.longDate,R=w.shortDate,a>eo?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(L=It(R,m,l??this.service),P=ao(En(n),{unhoistableHeaders:f}),h.sessionToken&&(P.query[pn]=h.sessionToken),P.query[qi]=Pt,P.query[Bi]="".concat(h.accessKeyId,"/").concat(L),P.query[hn]=b,P.query[Vi]=a.toString(10),A=bn(P,u,s),P.query[Fi]=Sn(A),j=P.query,F=vn,W=this.getSignature,K=[b,L,this.getSigningKey(h,m,R,l)],k=this.createCanonicalRequest,X=[P,A],[4,Rt(n,this.sha256)]);case 5:return[4,W.apply(this,K.concat([k.apply(this,X.concat([y.sent()]))]))];case 6:return j[F]=y.sent(),[2,P]}})})},i.prototype.sign=function(n,e){return ae(this,void 0,void 0,function(){return se(this,function(t){return typeof n=="string"?[2,this.signString(n,e)]:n.headers&&n.payload?[2,this.signEvent(n,e)]:[2,this.signRequest(n,e)]})})},i.prototype.signEvent=function(n,e){var t=n.headers,o=n.payload,r=e.signingDate,a=r===void 0?new Date:r,u=e.priorSignature,f=e.signingRegion,s=e.signingService;return ae(this,void 0,void 0,function(){var c,l,h,m,g,w,b,R,L,P,A;return se(this,function(j){switch(j.label){case 0:return f==null?[3,1]:(l=f,[3,3]);case 1:return[4,this.regionProvider()];case 2:l=j.sent(),j.label=3;case 3:return c=l,h=ft(a),m=h.shortDate,g=h.longDate,w=It(m,c,s??this.service),[4,Rt({headers:{},body:o},this.sha256)];case 4:return b=j.sent(),R=new this.sha256,R.update(t),P=we,[4,R.digest()];case 5:return L=P.apply(void 0,[j.sent()]),A=[Zi,g,w,u,L,b].join(`
2
+ `),[2,this.signString(A,{signingDate:a,signingRegion:c,signingService:s})]}})})},i.prototype.signString=function(n,e){var t=e===void 0?{}:e,o=t.signingDate,r=o===void 0?new Date:o,a=t.signingRegion,u=t.signingService;return ae(this,void 0,void 0,function(){var f,s,c,l,h,m,g,w;return se(this,function(b){switch(b.label){case 0:return[4,this.credentialProvider()];case 1:return f=b.sent(),a==null?[3,2]:(c=a,[3,4]);case 2:return[4,this.regionProvider()];case 3:c=b.sent(),b.label=4;case 4:return s=c,l=ft(r).shortDate,g=(m=this.sha256).bind,[4,this.getSigningKey(f,s,l,u)];case 5:return h=new(g.apply(m,[void 0,b.sent()])),h.update(n),w=we,[4,h.digest()];case 6:return[2,w.apply(void 0,[b.sent()])]}})})},i.prototype.signRequest=function(n,e){var t=e===void 0?{}:e,o=t.signingDate,r=o===void 0?new Date:o,a=t.signableHeaders,u=t.unsignableHeaders,f=t.signingRegion,s=t.signingService;return ae(this,void 0,void 0,function(){var c,l,h,m,g,w,b,R,L,P,A;return se(this,function(j){switch(j.label){case 0:return[4,this.credentialProvider()];case 1:return c=j.sent(),f==null?[3,2]:(h=f,[3,4]);case 2:return[4,this.regionProvider()];case 3:h=j.sent(),j.label=4;case 4:return l=h,m=En(n),g=ft(r),w=g.longDate,b=g.shortDate,R=It(b,l,s??this.service),m.headers[yn]=w,c.sessionToken&&(m.headers[Wi]=c.sessionToken),[4,Rt(m,this.sha256)];case 5:return L=j.sent(),!io(Ot,m.headers)&&this.applyChecksum&&(m.headers[Ot]=L),P=bn(m,u,a),[4,this.getSignature(w,R,this.getSigningKey(c,l,b,s),this.createCanonicalRequest(m,P,L))];case 6:return A=j.sent(),m.headers[gn]="".concat(Pt," ")+"Credential=".concat(c.accessKeyId,"/").concat(R,", ")+"SignedHeaders=".concat(Sn(P),", ")+"Signature=".concat(A),[2,m]}})})},i.prototype.createCanonicalRequest=function(n,e,t){var o=Object.keys(e).sort();return"".concat(n.method,`
3
+ `).concat(this.getCanonicalPath(n),`
4
+ `).concat(no(n),`
5
+ `).concat(o.map(function(r){return"".concat(r,":").concat(e[r])}).join(`
6
+ `),`
7
+
8
+ `).concat(o.join(";"),`
9
+ `).concat(t)},i.prototype.createStringToSign=function(n,e,t){return ae(this,void 0,void 0,function(){var o,r;return se(this,function(a){switch(a.label){case 0:return o=new this.sha256,o.update(t),[4,o.digest()];case 1:return r=a.sent(),[2,"".concat(Pt,`
10
+ `).concat(n,`
11
+ `).concat(e,`
12
+ `).concat(we(r))]}})})},i.prototype.getCanonicalPath=function(n){var e,t,o=n.path;if(this.uriEscapePath){var r=[];try{for(var a=ue(o.split("/")),u=a.next();!u.done;u=a.next()){var f=u.value;f?.length!==0&&f!=="."&&(f===".."?r.pop():r.push(f))}}catch(l){e={error:l}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}var s="".concat(o?.startsWith("/")?"/":"").concat(r.join("/")).concat(r.length>0&&o?.endsWith("/")?"/":""),c=encodeURIComponent(s);return c.replace(/%2F/g,"/")}return o},i.prototype.getSignature=function(n,e,t,o){return ae(this,void 0,void 0,function(){var r,a,u,f,s;return se(this,function(c){switch(c.label){case 0:return[4,this.createStringToSign(n,e,o)];case 1:return r=c.sent(),f=(u=this.sha256).bind,[4,t];case 2:return a=new(f.apply(u,[void 0,c.sent()])),a.update(r),s=we,[4,a.digest()];case 3:return[2,s.apply(void 0,[c.sent()])]}})})},i.prototype.getSigningKey=function(n,e,t,o){return to(this.sha256,n,t,e,o||this.service)},i}(),ft=function(i){var n=so(i).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},Sn=function(i){return Object.keys(i).sort().join(";")},Tn=Ke(_r()),Lt=function(i,n,e,t){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function u(c){try{s(t.next(c))}catch(l){a(l)}}function f(c){try{s(t.throw(c))}catch(l){a(l)}}function s(c){c.done?r(c.value):o(c.value).then(u,f)}s((t=t.apply(i,n||[])).next())})},jt=function(i,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return f([s,c])}}function f(s){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,o&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=n.call(i,e)}catch(c){s=[6,c],o=0}finally{t=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},fo="rum",Cn="POST",lo="application/json",ho="text/plain;charset=UTF-8",vo={expiresIn:60},po=function(){function i(n){var e=this;this.sendFetch=function(t){return Lt(e,void 0,void 0,function(){var o,r,a,u,f,s,c,l,h;return jt(this,function(m){switch(m.label){case 0:return o=JSON.stringify(On(t)),r=this.config.endpoint.pathname.replace(/\/$/,""),u=be.bind,l={method:Cn},h={"content-type":lo},f="X-Amz-Content-Sha256",[4,Pn(o)];case 1:return a=new(u.apply(be,[void 0,(l.headers=(h[f]=m.sent(),h.host=this.config.endpoint.host,h),l.protocol=this.config.endpoint.protocol,l.hostname=this.config.endpoint.hostname,l.path=r+"/appmonitors/"+t.AppMonitorDetails.id+"/",l.body=o,l)])),[4,this.awsSigV4.sign(a)];case 2:return s=m.sent(),c=this.config.fetchRequestHandler.handle(s),[2,c]}})})},this.sendBeacon=function(t){return Lt(e,void 0,void 0,function(){var o,r,a,u,f,s,c,l,h;return jt(this,function(m){switch(m.label){case 0:return o=JSON.stringify(On(t)),r=this.config.endpoint.pathname.replace(/\/$/,""),u=be.bind,l={method:Cn},h={"content-type":ho},f="X-Amz-Content-Sha256",[4,Pn(o)];case 1:return a=new(u.apply(be,[void 0,(l.headers=(h[f]=m.sent(),h.host=this.config.endpoint.host,h),l.protocol=this.config.endpoint.protocol,l.hostname=this.config.endpoint.hostname,l.path=r+"/appmonitors/"+t.AppMonitorDetails.id,l.body=o,l)])),[4,this.awsSigV4.presign(a,vo)];case 2:return s=m.sent(),c=this.config.beaconRequestHandler.handle(s),[2,c]}})})},this.config=n,this.awsSigV4=new co({applyChecksum:!0,credentials:n.credentials,region:n.region,service:fo,uriEscapePath:!0,sha256:Tn.Sha256})}return i}(),On=function(i){var n=[];i.RumEvents.forEach(function(t){return n.push(go(t))});var e={BatchId:i.BatchId,AppMonitorDetails:i.AppMonitorDetails,UserDetails:i.UserDetails,RumEvents:n};return e},go=function(i){return{id:i.id,timestamp:Math.round(i.timestamp.getTime()/1e3),type:i.type,metadata:i.metadata,details:i.details}},Pn=function(i){return Lt(void 0,void 0,void 0,function(){var n,e;return jt(this,function(t){switch(t.label){case 0:return n=new Tn.Sha256,n.update(i),e=we,[4,n.digest()];case 1:return[2,e.apply(void 0,[t.sent()]).toLowerCase()]}})})},yo=function(){function i(){}return i.prototype.handle=function(n){var e=this.sendBeacon(n);return new Promise(function(t,o){e?t({response:new ke({statusCode:200})}):o()})},i.prototype.sendBeacon=function(n){var e=n.path;if(n.query){var t=_t(n.query);t&&(e+="?"+t)}var o=n.port,r=n.protocol+"//"+n.hostname+(o?":"+o:"")+e;return navigator.sendBeacon(r,n.body)},i}(),mo=function(i){return i===void 0&&(i=0),new Promise(function(n,e){i&&setTimeout(function(){var t=new Error("Request did not complete within "+i+" ms");t.name="TimeoutError",e(t)},i)})},wo=function(){function i(n){var e=n===void 0?{}:n,t=e.fetchFunction,o=e.requestTimeout;this.requestTimeout=o,this.fetchFunction=t}return i.prototype.destroy=function(){},i.prototype.handle=function(n,e){var t=e===void 0?{}:e,o=t.abortSignal,r=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var u=n.path;if(n.query){var f=_t(n.query);f&&(u+="?"+f)}var s=n.port,c=n.method,l=n.protocol+"//"+n.hostname+(s?":"+s:"")+u,h=c==="GET"||c==="HEAD"?void 0:n.body,m={body:h,headers:new Headers(n.headers),method:c};typeof AbortController<"u"&&(m.signal=o);var g=new Request(l,m),w=[this.fetchFunction.apply(window,[g]).then(function(b){for(var R=b.headers,L={},P=0,A=R.entries();P<A.length;P++){var j=A[P];L[j[0]]=j[1]}var F=b.body!==void 0;return F?{response:new ke({headers:L,statusCode:b.status,body:b.body})}:b.blob().then(function(W){return{response:new ke({headers:L,statusCode:b.status,body:W})}})}),mo(r)];return o&&w.push(new Promise(function(b,R){o.onabort=function(){var L=new Error("Request aborted");L.name="AbortError",R(L)}})),Promise.race(w)},i}(),An=function(i,n,e,t){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function u(c){try{s(t.next(c))}catch(l){a(l)}}function f(c){try{s(t.throw(c))}catch(l){a(l)}}function s(c){c.done?r(c.value):o(c.value).then(u,f)}s((t=t.apply(i,n||[])).next())})},In=function(i,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return f([s,c])}}function f(s){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,o&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=n.call(i,e)}catch(c){s=[6,c],o=0}finally{t=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},bo=function(){function i(n,e,t){t===void 0&&(t=function(o){return o*2e3}),this.isStatusCode2xx=function(o){return o>=200&&o<300},this.handler=n,this.retries=e,this.backoff=t}return i.prototype.handle=function(n){return An(this,void 0,void 0,function(){var e,t,o;return In(this,function(r){switch(r.label){case 0:e=this.retries,r.label=1;case 1:r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.handler.handle(n)];case 3:if(t=r.sent(),this.isStatusCode2xx(t.response.statusCode))return[2,t];throw new Error(""+t.response.statusCode);case 4:if(o=r.sent(),!e)throw o;return e--,[4,this.sleep(this.backoff(this.retries-e))];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},i.prototype.sleep=function(n){return An(this,void 0,void 0,function(){return In(this,function(e){return[2,new Promise(function(t){return setTimeout(t,n)})]})})},i}(),De=function(i,n,e,t){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function u(c){try{s(t.next(c))}catch(l){a(l)}}function f(c){try{s(t.throw(c))}catch(l){a(l)}}function s(c){c.done?r(c.value):o(c.value).then(u,f)}s((t=t.apply(i,n||[])).next())})},xe=function(i,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return f([s,c])}}function f(s){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,o&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=n.call(i,e)}catch(c){s=[6,c],o=0}finally{t=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Rn="CWR: Cannot dispatch; no AWS credentials.",_o=function(){function i(n,e,t,o){var r=this;this.dispatchFetch=function(){return De(r,void 0,void 0,function(){return xe(this,function(a){return[2,this.dispatch(this.rum.sendFetch).catch(this.handleReject)]})})},this.dispatchBeacon=function(){return De(r,void 0,void 0,function(){return xe(this,function(a){return[2,this.dispatch(this.rum.sendBeacon)]})})},this.dispatchFetchFailSilent=function(){return De(r,void 0,void 0,function(){return xe(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return De(r,void 0,void 0,function(){return xe(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw r.disable(),a},this.defaultClientBuilder=function(a,u,f){return new po({fetchRequestHandler:new bo(new wo({fetchFunction:r.config.fetchFunction}),r.config.retries),beaconRequestHandler:new yo,endpoint:a,region:u,credentials:f})},this.region=n,this.endpoint=e,this.eventCache=t,this.enabled=!0,this.buildClient=o.clientBuilder||this.defaultClientBuilder,this.config=o,this.startDispatchTimer(),this.rum={sendFetch:function(){return Promise.reject(new Error(Rn))},sendBeacon:function(){return Promise.reject(new Error(Rn))}}}return i.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},i.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1},i.prototype.setAwsCredentials=function(n){this.rum=this.buildClient(this.endpoint,this.region,n),typeof n=="function"&&n()},i.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.dispatchBeaconFailSilent),document.addEventListener("pagehide",this.dispatchBeaconFailSilent),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},i.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.dispatchBeaconFailSilent),document.removeEventListener("pagehide",this.dispatchBeaconFailSilent),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},i.prototype.dispatch=function(n){return De(this,void 0,void 0,function(){var e;return xe(this,function(t){return this.enabled?this.eventCache.hasEvents()?(e={BatchId:He(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()},[2,n(e)]):[2]:[2]})})},i}(),Eo=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),So="navigation",Se="navigation",kt="load",To=function(i){Eo(n,i);function n(){var e=i.call(this,So)||this;return e.eventListener=function(){if(performance.getEntriesByType(Se).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var t=new PerformanceObserver(function(o){o.getEntries().forEach(function(r){r.entryType===Se&&e.performanceNavigationEventHandlerTimingLevel2(r)})});t.observe({entryTypes:[Se]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var t=function(){var o,r=performance.timing,a=r.navigationStart,u={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:r.unloadEventStart>0?r.unloadEventStart-a:0,promptForUnload:r.unloadEventEnd-r.unloadEventStart,redirectStart:r.redirectStart>0?r.redirectStart-a:0,redirectTime:r.redirectEnd-r.redirectStart,fetchStart:r.fetchStart>0?r.fetchStart-a:0,domainLookupStart:r.domainLookupStart>0?r.domainLookupStart-a:0,dns:r.domainLookupEnd-r.domainLookupStart,connectStart:r.connectStart>0?r.connectStart-a:0,connect:r.connectEnd-r.connectStart,secureConnectionStart:r.secureConnectionStart>0?r.secureConnectionStart-a:0,tlsTime:r.secureConnectionStart>0?r.connectEnd-r.secureConnectionStart:0,requestStart:r.requestStart>0?r.requestStart-a:0,timeToFirstByte:r.responseStart-r.requestStart,responseStart:r.responseStart>0?r.responseStart-a:0,responseTime:r.responseStart>0?r.responseEnd-r.responseStart:0,domInteractive:r.domInteractive>0?r.domInteractive-a:0,domContentLoadedEventStart:r.domContentLoadedEventStart>0?r.domContentLoadedEventStart-a:0,domContentLoaded:r.domContentLoadedEventEnd-r.domContentLoadedEventStart,domComplete:r.domComplete>0?r.domComplete-a:0,domProcessingTime:r.loadEventStart-r.responseEnd,loadEventStart:r.loadEventStart>0?r.loadEventStart-a:0,loadEventTime:r.loadEventEnd-r.loadEventStart,duration:r.loadEventEnd-r.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(St,u)};setTimeout(t,0)},e.performanceNavigationEventHandlerTimingLevel2=function(t){var o,r={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};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(St,r)},e}return n.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(kt,this.eventListener))},n.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.eventListener&&window.removeEventListener(kt,this.eventListener))},n.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(Se).length){var e=window.performance.getEntriesByType(Se)[0];return Boolean(e.loadEventEnd)}return!1},n.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(Se)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(kt,this.eventListener)},n}(ye),te;(function(i){i.OTHER="other",i.STYLESHEET="stylesheet",i.DOCUMENT="document",i.SCRIPT="script",i.IMAGE="image",i.FONT="font"})(te||(te={}));var Co=[{name:te.STYLESHEET,list:["css","less"]},{name:te.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:te.SCRIPT,list:["js"]},{name:te.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:te.FONT,list:["fnt","fon","otf","ttf","woff"]}],Ln=function(i){for(var n=i.length-1;n>0;n--){var e=Math.floor(Math.random()*(n+1)),t=i[n];i[n]=i[e],i[e]=t}},Mt=function(i){var n=i.substring(i.lastIndexOf("/")+1),e=n.substring(n.lastIndexOf(".")+1).split(/[?#]/)[0],t=te.OTHER;return Co.forEach(function(o){o.list.indexOf(e)>-1&&(t=o.name)}),t},Oo=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),lt=function(){return lt=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},lt.apply(this,arguments)},Po="resource",Nt="resource",Ht="load",Ao={eventLimit:10,recordAllTypes:[te.DOCUMENT,te.SCRIPT],sampleTypes:[te.STYLESHEET,te.IMAGE,te.FONT,te.OTHER]},Io=function(i){Oo(n,i);function n(e){var t=i.call(this,Po)||this;return t.resourceEventListener=function(o){var r=[],a=[],u=0,f=new PerformanceObserver(function(c){c.getEntries().filter(function(l){return l.entryType===Nt}).forEach(function(l){var h=Mt(l.name);t.config.recordAllTypes.includes(h)?r.push(l):t.config.sampleTypes.includes(h)&&a.push(l)})});f.observe({entryTypes:[Nt]});var s=performance.getEntriesByType(Nt);for(s!==void 0&&s.length>0&&s.forEach(function(c){var l=Mt(c.name);t.config.recordAllTypes.includes(l)?r.push(c):t.config.sampleTypes.includes(l)&&a.push(c)}),Ln(r);r.length>0&&u<t.config.eventLimit;)t.recordResourceEvent(r.pop()),u++;for(Ln(a);a.length>0&&u<t.config.eventLimit;)t.recordResourceEvent(a.pop()),u++},t.recordResourceEvent=function(o){var r;if(new URL(o.name).host!==t.context.config.endpointUrl.host&&!((r=t.context)===null||r===void 0)&&r.record){var a={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:Mt(o.name),transferSize:o.transferSize};t.context.config.recordResourceUrl&&(a.targetUrl=o.name),t.context.record(Kr,a)}},t.config=lt(lt({},Ao),e),t}return n.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Ht,this.resourceEventListener))},n.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(Ht,this.resourceEventListener))},n.prototype.onload=function(){window.addEventListener(Ht,this.resourceEventListener)},n}(ye),he,qe,jn,dt,Te=function(i,n){return{name:i,value:n===void 0?-1:n,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Ut=function(i,n){try{if(PerformanceObserver.supportedEntryTypes.includes(i)){if(i==="first-input"&&!("PerformanceEventTiming"in self))return;var e=new PerformanceObserver(function(t){return t.getEntries().map(n)});return e.observe({type:i,buffered:!0}),e}}catch{}},ht=function(i,n){var e=function t(o){o.type!=="pagehide"&&document.visibilityState!=="hidden"||(i(o),n&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},vt=function(i){addEventListener("pageshow",function(n){n.persisted&&i(n)},!0)},Be=typeof WeakSet=="function"?new WeakSet:new Set,Ce=function(i,n,e){var t;return function(){n.value>=0&&(e||Be.has(n)||document.visibilityState==="hidden")&&(n.delta=n.value-(t||0),(n.delta||t===void 0)&&(t=n.value,i(n)))}},Ro=function(i,n){var e,t=Te("CLS",0),o=function(a){a.hadRecentInput||(t.value+=a.value,t.entries.push(a),e())},r=Ut("layout-shift",o);r&&(e=Ce(i,t,n),ht(function(){r.takeRecords().map(o),e()}),vt(function(){t=Te("CLS",0),e=Ce(i,t,n)}))},Fe=-1,kn=function(){return document.visibilityState==="hidden"?0:1/0},Mn=function(){ht(function(i){var n=i.timeStamp;Fe=n},!0)},Nn=function(){return Fe<0&&(Fe=kn(),Mn(),vt(function(){setTimeout(function(){Fe=kn(),Mn()},0)})),{get timeStamp(){return Fe}}},Ve={passive:!0,capture:!0},Lo=new Date,Hn=function(i,n){he||(he=n,qe=i,jn=new Date,Dn(removeEventListener),Un())},Un=function(){if(qe>=0&&qe<jn-Lo){var i={entryType:"first-input",name:he.type,target:he.target,cancelable:he.cancelable,startTime:he.timeStamp,processingStart:he.timeStamp+qe};dt.forEach(function(n){n(i)}),dt=[]}},jo=function(i){if(i.cancelable){var n=(i.timeStamp>1e12?new Date:performance.now())-i.timeStamp;i.type=="pointerdown"?function(e,t){var o=function(){Hn(e,t),a()},r=function(){a()},a=function(){removeEventListener("pointerup",o,Ve),removeEventListener("pointercancel",r,Ve)};addEventListener("pointerup",o,Ve),addEventListener("pointercancel",r,Ve)}(n,i):Hn(n,i)}},Dn=function(i){["mousedown","keydown","touchstart","pointerdown"].forEach(function(n){return i(n,jo,Ve)})},ko=function(i,n){var e,t=Nn(),o=Te("FID"),r=function(u){u.startTime<t.timeStamp&&(o.value=u.processingStart-u.startTime,o.entries.push(u),Be.add(o),e())},a=Ut("first-input",r);e=Ce(i,o,n),a&&ht(function(){a.takeRecords().map(r),a.disconnect()},!0),a&&vt(function(){var u;o=Te("FID"),e=Ce(i,o,n),dt=[],qe=-1,he=null,Dn(addEventListener),u=r,dt.push(u),Un()})},Mo=function(i,n){var e,t=Nn(),o=Te("LCP"),r=function(f){var s=f.startTime;s<t.timeStamp&&(o.value=s,o.entries.push(f)),e()},a=Ut("largest-contentful-paint",r);if(a){e=Ce(i,o,n);var u=function(){Be.has(o)||(a.takeRecords().map(r),a.disconnect(),Be.add(o),e())};["keydown","click"].forEach(function(f){addEventListener(f,u,{once:!0,capture:!0})}),ht(u,!0),vt(function(f){o=Te("LCP"),e=Ce(i,o,n),requestAnimationFrame(function(){requestAnimationFrame(function(){o.value=performance.now()-f.timeStamp,Be.add(o),e()})})})}},No=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ho="web-vitals",Uo=function(i){No(n,i);function n(){return i.call(this,Ho)||this}return n.prototype.enable=function(){},n.prototype.disable=function(){},n.prototype.configure=function(e){},n.prototype.getWebVitalData=function(e,t){var o,r={version:"1.0.0",value:e.value};(o=this.context)===null||o===void 0||o.record(t,r)},n.prototype.onload=function(){var e=this;Mo(function(t){return e.getWebVitalData(t,zr)}),ko(function(t){return e.getWebVitalData(t,Xr)}),Ro(function(t){return e.getWebVitalData(t,Wr)})},n}(ye),xn=function(i){if(crypto)return crypto.getRandomValues(i);if(msCrypto)return msCrypto.getRandomValues(i);throw new Error("No crypto library found.")},qn=[];for(N=0;N<256;N++)qn[N]=(N+256).toString(16).substr(1);var N,Dt="X-Amzn-Trace-Id",Bn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Fn=function(i){return Math.floor(i/100)===4},Vn=function(i){return Math.floor(i/100)===5},Gn=function(i){return i===429},zn=function(i,n){var e=n.urlsToInclude.some(function(o){return o.test(i)}),t=n.urlsToExclude.some(function(o){return o.test(i)});return e&&!t},Oe=function(){return Date.now()/1e3},Do=function(i,n,e){var t={request:{}};return t.request.method=n?.method?n.method:"GET",t.request.traced=e,t.request.url=qt(i),t},Xn=function(i,n,e){var t={version:"1.0.0",name:i,origin:"AWS::RUM::AppMonitor",id:Yn(),start_time:n,trace_id:Bo(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(t.http=e),t},Wn=function(i,n,e){var t={id:Yn(),name:i,start_time:n,end_time:void 0,in_progress:!1,namespace:i.endsWith("amazonaws.com")?"aws":"remote"};return e&&(t.http=e),t},Kn=function(i){try{return i.hostname?i.hostname:i.url?new URL(i.url).hostname:new URL(i.toString()).hostname}catch{return window.location.hostname}},xo=function(i,n,e){i.headers||(i.headers={}),i.headers[Dt]=xt(n,e)},qo=function(i,n,e){i.set(Dt,xt(n,e))},xt=function(i,n){return"Root="+i+";Parent="+n+";Sampled=1"},qt=function(i){return i.url?i.url:i.toString()},Bo=function(){return"1-"+Fo()+"-"+Vo()},Yn=function(){var i=new Uint8Array(8);return xn(i),Jn(i)},Fo=function(){return Math.floor(Date.now()/1e3).toString(16)},Vo=function(){var i=new Uint8Array(12);return xn(i),Jn(i)},Jn=function(i){for(var n="",e=0;e<i.length;e++)n+=qn[i[e]];return n},Go=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),zo=function(i){Go(n,i);function n(e){var t=i.call(this,e)||this;return t.name="XMLHttpRequest error",t}return n}(Error),Xo=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),pt=function(){return pt=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},pt.apply(this,arguments)},Wo="xhr",Ko=function(i){Xo(n,i);function n(e){var t=i.call(this,Wo)||this;return t.addXRayTraceIdHeader=function(){return t.config.addXRayTraceIdHeader},t.isTracingEnabled=function(){return t.context.config.enableXRay},t.isSessionRecorded=function(){var o;return((o=t.context.getSession())===null||o===void 0?void 0:o.record)||!1},t.handleXhrLoadEvent=function(o){var r=o.target,a=t.xhrMap.get(r);if(a){var u=Oe();a.trace.end_time=u,a.trace.subsegments[0].end_time=u,a.trace.subsegments[0].http.response={status:r.status},Gn(r.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Fn(r.status)?a.trace.subsegments[0].error=!0:Vn(r.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var f=parseInt(r.getResponseHeader("Content-Length"),10);isNaN(f)||(a.trace.subsegments[0].http.response.content_length=parseInt(r.getResponseHeader("Content-Length"),10)),t.recordTraceEvent(a.trace),t.recordHttpEventWithResponse(a,r)}},t.handleXhrErrorEvent=function(o){var r=o.target,a=t.xhrMap.get(r),u="XMLHttpRequest error",f=r.statusText?r.status.toString()+": "+r.statusText:r.status.toString();if(a){var s=Oe();a.trace.fault=!0,a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:u,message:f}]},t.recordTraceEvent(a.trace),t.recordHttpEventWithError(a,new zo(f))}},t.handleXhrAbortEvent=function(o){var r=o.target,a=t.xhrMap.get(r),u="XMLHttpRequest abort";t.handleXhrDetailsOnError(a,u)},t.handleXhrTimeoutEvent=function(o){var r=o.target,a=t.xhrMap.get(r),u="XMLHttpRequest timeout";t.handleXhrDetailsOnError(a,u)},t.initializeTrace=function(o){var r=Oe();o.trace=Xn(t.config.logicalServiceName,r),o.trace.subsegments.push(Wn(Kn(o.url),r,{request:{method:o.method,url:o.url,traced:!0}}))},t.sendWrapper=function(){var o=t;return function(r){return function(){var a=o.xhrMap.get(this);return a&&(this.addEventListener("load",o.handleXhrLoadEvent),this.addEventListener("error",o.handleXhrErrorEvent),this.addEventListener("abort",o.handleXhrAbortEvent),this.addEventListener("timeout",o.handleXhrTimeoutEvent),o.initializeTrace(a),o.isTracingEnabled()&&o.addXRayTraceIdHeader()&&o.isSessionRecorded()&&this.setRequestHeader(Dt,xt(a.trace.trace_id,a.trace.subsegments[0].id))),r.apply(this,arguments)}}},t.openWrapper=function(){var o=t;return function(r){return function(a,u,f){return zn(u,o.config)&&o.xhrMap.set(this,{url:u,method:a,async:f}),r.apply(this,arguments)}}},t.config=pt(pt({},Bn),e),t.xhrMap=new Map,t}return n.prototype.onload=function(){this.enable()},Object.defineProperty(n.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]},enumerable:!1,configurable:!0}),n.prototype.handleXhrDetailsOnError=function(e,t){if(e){var o=Oe();e.trace.end_time=o,e.trace.subsegments[0].end_time=o,e.trace.subsegments[0].error=!0,e.trace.subsegments[0].cause={exceptions:[{type:t}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,t)}},n.prototype.statusOk=function(e){return e>=200&&e<300},n.prototype.recordHttpEventWithResponse=function(e,t){(this.config.recordAllRequests||!this.statusOk(t.status))&&this.context.record(tt,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:t.status,statusText:t.statusText}})},n.prototype.recordHttpEventWithError=function(e,t){var o={version:"1.0.0",request:{method:e.method,url:e.url}};o.error=Tt({type:"error",error:t},this.config.stackTraceLength),this.context.record(tt,o)},n.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(en,e)},n}(st),Yo=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),gt=function(){return gt=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},gt.apply(this,arguments)},Jo="fetch",Zo=function(i){Yo(n,i);function n(e){var t=i.call(this,Jo)||this;return t.isTracingEnabled=function(){return t.context.config.enableXRay},t.isSessionRecorded=function(){var o;return((o=t.context.getSession())===null||o===void 0?void 0:o.record)||!1},t.beginTrace=function(o,r,a){var u=Oe(),f=Do(o,r,!0),s=Xn(t.config.logicalServiceName,u),c=Wn(Kn(o),u,f);return s.subsegments.push(c),t.config.addXRayTraceIdHeader&&t.addXRayTraceIdHeader(o,r,a,s),s},t.addXRayTraceIdHeader=function(o,r,a,u){if(o.headers)return qo(o.headers,u.trace_id,u.subsegments[0].id);r||(r={},[].push.call(a,r)),xo(r,u.trace_id,u.subsegments[0].id)},t.endTrace=function(o,r,a){if(o){var u=Oe();if(o.subsegments[0].end_time=u,o.end_time=u,r){o.subsegments[0].http.response={status:r.status},Gn(r.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Fn(r.status)?o.subsegments[0].error=!0:Vn(r.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var f=parseInt(r.headers.get("Content-Length"),10);isNaN(f)||(o.subsegments[0].http.response.content_length=f)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?t.appendErrorCauseFromObject(o.subsegments[0],a):nn(a)&&t.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),t.context.record(en,o)}},t.createHttpEvent=function(o,r){return{version:"1.0.0",request:{url:qt(o),method:r?.method?r.method:"GET"}}},t.recordHttpEventWithResponse=function(o,r){(t.config.recordAllRequests||!r.ok)&&(o.response={status:r.status,statusText:r.statusText},t.context.record(tt,o))},t.recordHttpEventWithError=function(o,r){o.error=Tt({type:"error",error:r},t.config.stackTraceLength),t.context.record(tt,o)},t.fetch=function(o,r,a,u,f){var s=t.createHttpEvent(u,f),c;return zn(qt(u),t.config)?(t.isTracingEnabled()&&t.isSessionRecorded()&&(c=t.beginTrace(u,f,a)),o.apply(r,a).then(function(l){return t.endTrace(c,l,void 0),t.recordHttpEventWithResponse(s,l),l}).catch(function(l){throw t.endTrace(c,void 0,l),t.recordHttpEventWithError(s,l),l})):o.apply(r,a)},t.fetchWrapper=function(){var o=t;return function(r){return function(a,u){return o.fetch(r,this,arguments,a,u)}}},t.config=gt(gt({},Bn),e),t}return Object.defineProperty(n.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),n.prototype.onload=function(){this.enable()},n.prototype.appendErrorCauseFromPrimitive=function(e,t){e.cause={exceptions:[{type:t}]}},n.prototype.appendErrorCauseFromObject=function(e,t){e.cause={exceptions:[{type:t.name,message:t.message}]}},n}(st),Qo=function(){var i=function(n,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},i(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),$o="page-view",ea=function(i){Qo(n,i);function n(){var e=i.call(this,$o)||this;return e.pushState=function(){var t=e;return function(o){return function(r,a,u){var f=o.apply(this,arguments);return t.recordPageView(),f}}},e.replaceState=function(){var t=e;return function(o){return function(r,a,u){var f=o.apply(this,arguments);return t.recordPageView(),f}}},e.popstateListener=function(t){e.recordPageView()},e.recordPageView=function(){e.context.recordPageView(e.createIdForCurrentPage())},e.enable(),e}return n.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(n.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),n.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},n.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,t=window.location.hash;switch(this.context.config.pageIdFormat){case Re.PathAndHash:return e&&t?e+t:e||t||"";case Re.Hash:return t||"";case Re.Path:default:return e||""}},n}(st),Pe=function(){return Pe=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},Pe.apply(this,arguments)},ta=function(i,n){var e={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&n.indexOf(t)<0&&(e[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(e[t[o]]=i[t[o]]);return e},Ae=function(i,n,e){if(e||arguments.length===2)for(var t=0,o=n.length,r;t<o;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return i.concat(r||Array.prototype.slice.call(n))},Zn="us-west-2",Bt="https://dataplane.rum."+Zn+".amazonaws.com",Ie;(function(i){i.Errors="errors",i.Performance="performance",i.Interaction="interaction",i.Http="http"})(Ie||(Ie={}));var Re;(function(i){i.Path="PATH",i.Hash="HASH",i.PathAndHash="PATH_AND_HASH"})(Re||(Re={}));var na=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},ra=function(i){return{allowCookies:!1,batchLimit:100,cookieAttributes:i,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Bt,endpointUrl:new URL(Bt),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:Re.Path,pagesToExclude:[],pagesToInclude:[/.*/],recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionEventLimit:200,sessionLengthSeconds:60*30,sessionSampleRate:1,telemetries:[],userIdRetentionDays:30}},ia=function(){function i(n,e,t,o){o===void 0&&(o={});var r=o.cookieAttributes,a=ta(o,["cookieAttributes"]);typeof t>"u"&&(t="us-west-2");var u=Pe(Pe({},na()),r);this.config=Pe(Pe({fetchFunction:fetch},ra(u)),a),this.config.endpoint=this.getDataPlaneEndpoint(t,a),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(n,e),this.dispatchManager=this.initDispatch(t),this.pluginManager=this.initPluginManager(n,e),this.config.enableRumClient?this.enable():this.disable()}return i.prototype.setAwsCredentials=function(n){this.dispatchManager.setAwsCredentials(n)},i.prototype.addPlugin=function(n){this.pluginManager.addPlugin(n)},i.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},i.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},i.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},i.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},i.prototype.allowCookies=function(n){this.config.allowCookies=n},i.prototype.recordPageView=function(n){this.eventCache.recordPageView(n)},i.prototype.recordError=function(n){this.pluginManager.record(rn,n)},i.prototype.registerDomEvents=function(n){this.pluginManager.updatePlugin(tn,n)},i.prototype.initEventCache=function(n,e){return new xi({id:n,version:e},this.config)},i.prototype.initDispatch=function(n){var e=new _o(n,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new Fr(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new Vr(this.config).ChainAnonymousCredentialsProvider),e},i.prototype.initPluginManager=function(n,e){var t=this.constructBuiltinPlugins(),o=Ae(Ae([],t,!0),this.config.eventPluginsToLoad,!0),r={applicationId:n,applicationVersion:e,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession},a=new Qr(r);return this.config.disableAutoPageView||a.addPlugin(new ea),o.forEach(function(u){a.addPlugin(u)}),a},i.prototype.constructBuiltinPlugins=function(){var n=[],e=this.telemetryFunctor();return this.config.telemetries.forEach(function(t){typeof t=="string"&&e[t.toLowerCase()]?n=Ae(Ae([],n,!0),e[t.toLowerCase()]({}),!0):Array.isArray(t)&&e[t[0].toLowerCase()]&&(n=Ae(Ae([],n,!0),e[t[0].toLowerCase()](t[1]),!0))}),n},i.prototype.getDataPlaneEndpoint=function(n,e){return e.endpoint?e.endpoint:Bt.replace(Zn,n)},i.prototype.telemetryFunctor=function(){var n;return n={},n[Ie.Errors]=function(e){return[new ui(e)]},n[Ie.Performance]=function(e){return[new To,new Io(e),new Uo]},n[Ie.Interaction]=function(e){return[new ti(e)]},n[Ie.Http]=function(e){return[new Ko(e),new Zo(e)]},n},i}();/*! *****************************************************************************
13
+ Copyright (c) Microsoft Corporation.
14
+
15
+ Permission to use, copy, modify, and/or distribute this software for any
16
+ purpose with or without fee is hereby granted.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
+ PERFORMANCE OF THIS SOFTWARE.
25
+ ***************************************************************************** */try{window.awsRum=new ia(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/hela",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@20minutes/eslint-config": "^1.2.3",
30
- "@babel/core": "^7.18.13",
30
+ "@babel/core": "^7.19.0",
31
31
  "@babel/eslint-parser": "^7.18.9",
32
- "@babel/plugin-transform-typescript": "^7.18.0",
32
+ "@babel/plugin-transform-typescript": "^7.19.0",
33
33
  "@storybook/addon-essentials": "^6.5.10",
34
34
  "@storybook/addon-links": "^6.5.10",
35
35
  "@storybook/builder-vite": "^0.2.2",
@@ -39,12 +39,12 @@
39
39
  "@types/draft-js": "^0.11.9",
40
40
  "@types/gulp": "^4.0.9",
41
41
  "@types/gulp-sass": "^5.0.0",
42
- "@types/node": "^18.7.13",
43
- "@types/react": "^18.0.17",
42
+ "@types/node": "^18.7.15",
43
+ "@types/react": "^18.0.18",
44
44
  "@types/react-dom": "^18.0.6",
45
- "@typescript-eslint/eslint-plugin": "^5.35.1",
46
- "@typescript-eslint/parser": "^5.35.1",
47
- "@vitejs/plugin-react": "^2.0.1",
45
+ "@typescript-eslint/eslint-plugin": "^5.36.2",
46
+ "@typescript-eslint/parser": "^5.36.2",
47
+ "@vitejs/plugin-react": "^2.1.0",
48
48
  "babel-loader": "^8.2.5",
49
49
  "babel-preset-env": "^1.7.0",
50
50
  "babel-preset-react": "^6.24.1",
@@ -72,18 +72,19 @@
72
72
  "rollup-plugin-dts": "^4.2.2",
73
73
  "rollup-plugin-esbuild": "^4.10.1",
74
74
  "rollup-plugin-scss": "^3.0.0",
75
- "sass": "^1.54.5",
75
+ "sass": "^1.54.8",
76
76
  "size-limit": "^8.0.1",
77
77
  "stylelint": "^14.11.0",
78
78
  "stylelint-config-standard-scss": "^5.0.0",
79
79
  "svg-sprite": "next",
80
80
  "typescript": "^4.8.2",
81
- "vite": "^3.0.9"
81
+ "vite": "^3.1.0"
82
82
  },
83
83
  "engines": {
84
84
  "node": ">=16"
85
85
  },
86
86
  "dependencies": {
87
+ "aws-rum-web": "^1.8.2",
87
88
  "classnames": "^2.3.1",
88
89
  "draft-convert": "^2.1.12",
89
90
  "draft-js": "^0.11.7",