@20minutes/tyr 0.1.78 → 0.1.80
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.
- package/dist/components/organisms/ArticlePage/ReadAlsoBlock/ReadAlsoBlock.d.ts +7 -0
- package/dist/components/organisms/ArticlePage/ReadAlsoBlock/index.d.ts +1 -0
- package/dist/components/organisms/ArticlePage/index.d.ts +1 -0
- package/dist/css/articlePage-desktop-critical.css +1 -1
- package/dist/css/articlePage-mobile-critical.css +1 -1
- package/dist/css/articlePage-mobile-no-critical.css +1 -1
- package/dist/css/errorPage-desktop-critical.css +1 -1
- package/dist/css/errorPage-desktop-no-critical.css +1 -1
- package/dist/css/errorPage-mobile-critical.css +1 -1
- package/dist/css/errorPage-mobile-no-critical.css +1 -1
- package/dist/css/global.css +1 -1
- package/dist/css/horoscopePage-desktop-critical.css +1 -1
- package/dist/css/horoscopePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-mobile-critical.css +1 -1
- package/dist/css/horoscopehomePage-mobile-no-critical.css +1 -1
- package/dist/css/searchPage-desktop-critical.css +1 -1
- package/dist/css/searchPage-desktop-no-critical.css +1 -1
- package/dist/css/searchPage-mobile-critical.css +1 -1
- package/dist/css/searchPage-mobile-no-critical.css +1 -1
- package/dist/css/tagPage-desktop-critical.css +1 -1
- package/dist/css/tagPage-desktop-no-critical.css +1 -1
- package/dist/css/tagPage-mobile-critical.css +1 -1
- package/dist/css/tagPage-mobile-no-critical.css +1 -1
- package/dist/index.es.js +11004 -10907
- package/dist/index.umd.js +127 -127
- package/dist/js/ads.min.js +1 -1
- package/dist/js/awsRum.min.js +5 -5
- package/dist/templates/HtmlTemplate/HtmlTemplate.d.ts +3 -3
- package/dist/templates/PageTemplate/PageTemplate.d.ts +0 -2
- package/dist/types/ComponentConfig.d.ts +5 -2
- package/package.json +8 -8
package/dist/js/awsRum.min.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(){"use strict";var lr=Object.create,we=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,hr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty,pr=(t,r)=>function(){return t&&(r=(0,t[at(t)[0]])(t=0)),r},N=(t,r)=>function(){return r||(0,t[at(t)[0]])((r={exports:{}}).exports,r),r.exports},gr=(t,r)=>{for(var e in r)we(t,e,{get:r[e],enumerable:!0})},Wt=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of at(r))!vr.call(t,o)&&o!==e&&we(t,o,{get:()=>r[o],enumerable:!(n=dr(r,o))||n.enumerable});return t},st=(t,r,e)=>(e=t!=null?lr(hr(t)):{},Wt(r||!t||!t.__esModule?we(e,"default",{value:t,enumerable:!0}):e,t)),Kt=t=>Wt(we({},"__esModule",{value:!0}),t),mr=N({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.33",i="",a="?",c="function",f="undefined",s="object",u="string",d="major",l="model",p="name",h="type",v="vendor",g="version",T="architecture",A="console",m="mobile",y="tablet",O="smarttv",D="wearable",Ye="embedded",xt=350,Dt="Amazon",Je="Apple",er="ASUS",tr="BlackBerry",ie="Browser",Ze="Chrome",Ua="Edge",Qe="Firefox",et="Google",nr="Huawei",qt="LG",Bt="Microsoft",rr="Motorola",tt="Opera",Ft="Samsung",ir="Sharp",nt="Sony",Vt="Xiaomi",Gt="Zebra",or="Facebook",xa=function(w,E){var b={};for(var C in w)E[C]&&E[C].length%2===0?b[C]=E[C].concat(w[C]):b[C]=w[C];return b},rt=function(w){for(var E={},b=0;b<w.length;b++)E[w[b].toUpperCase()]=w[b];return E},ar=function(w,E){return typeof w===u?ge(E).indexOf(ge(w))!==-1:!1},ge=function(w){return w.toLowerCase()},Da=function(w){return typeof w===u?w.replace(/[^\d\.]/g,i).split(".")[0]:n},zt=function(w,E){if(typeof w===u)return w=w.replace(/^\s\s*/,i),typeof E===f?w:w.substring(0,xt)},me=function(w,E){for(var b=0,C,_,ot,S,ye,x;b<E.length&&!ye;){var ur=E[b],fr=E[b+1];for(C=_=0;C<ur.length&&!ye;)if(ye=ur[C++].exec(w),ye)for(ot=0;ot<fr.length;ot++)x=ye[++_],S=fr[ot],typeof S===s&&S.length>0?S.length===2?typeof S[1]==c?this[S[0]]=S[1].call(this,x):this[S[0]]=S[1]:S.length===3?typeof S[1]===c&&!(S[1].exec&&S[1].test)?this[S[0]]=x?S[1].call(this,x,S[2]):n:this[S[0]]=x?x.replace(S[1],S[2]):n:S.length===4&&(this[S[0]]=x?S[3].call(this,x.replace(S[1],S[2])):n):this[S]=x||n;b+=2}},Xt=function(w,E){for(var b in E)if(typeof E[b]===s&&E[b].length>0){for(var C=0;C<E[b].length;C++)if(ar(E[b][C],w))return b===a?n:b}else if(ar(E[b],w))return b===a?n:b;return w},qa={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},sr={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"},cr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,tt+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[p,tt]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,"UC"+ie]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[g,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+ie],g],[/\bfocus\/([\w\.]+)/i],[g,[p,Qe+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[p,tt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[p,tt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[p,"MIUI "+ie]],[/fxios\/([-\w\.]+)/i],[g,[p,Qe]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+ie]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+ie],g],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,or],g],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,Ze+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,Ze+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,"Android "+ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,Xt,qa]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,Qe+" 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],[p,g],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,ge]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,i,ge]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[v,Ft],[h,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[v,Ft],[h,m]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[v,Je],[h,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[v,Je],[h,y]],[/(macintosh);/i],[l,[v,Je]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[v,nr],[h,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[v,nr],[h,m]],[/\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|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[v,Vt],[h,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[v,Vt],[h,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[v,"OPPO"],[h,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[v,"Vivo"],[h,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[v,"Realme"],[h,m]],[/\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],[l,[v,rr],[h,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[v,rr],[h,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[v,qt],[h,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[v,qt],[h,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[v,"Lenovo"],[h,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[v,"Nokia"],[h,m]],[/(pixel c)\b/i],[l,[v,et],[h,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[v,et],[h,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[v,nt],[h,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[v,nt],[h,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[v,"OnePlus"],[h,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[v,Dt],[h,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[v,Dt],[h,m]],[/(playbook);[-\w\),; ]+(rim)/i],[l,v,[h,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[v,tr],[h,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[v,er],[h,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[v,er],[h,m]],[/(nexus 9)/i],[l,[v,"HTC"],[h,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[l,/_/g," "],[h,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[v,"Acer"],[h,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[v,"Meizu"],[h,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[v,ir],[h,m]],[/(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],[v,l,[h,m]],[/(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],[v,l,[h,y]],[/(surface duo)/i],[l,[v,Bt],[h,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[v,"Fairphone"],[h,m]],[/(u304aa)/i],[l,[v,"AT&T"],[h,m]],[/\bsie-(\w*)/i],[l,[v,"Siemens"],[h,m]],[/\b(rct\w+) b/i],[l,[v,"RCA"],[h,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[v,"Dell"],[h,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[v,"Verizon"],[h,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[v,"Barnes & Noble"],[h,y]],[/\b(tm\d{3}\w+) b/i],[l,[v,"NuVision"],[h,y]],[/\b(k88) b/i],[l,[v,"ZTE"],[h,y]],[/\b(nx\d{3}j) b/i],[l,[v,"ZTE"],[h,m]],[/\b(gen\d{3}) b.+49h/i],[l,[v,"Swiss"],[h,m]],[/\b(zur\d{3}) b/i],[l,[v,"Swiss"],[h,y]],[/\b((zeki)?tb.*\b) b/i],[l,[v,"Zeki"],[h,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],l,[h,y]],[/\b(ns-?\w{0,9}) b/i],[l,[v,"Insignia"],[h,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[v,"NextBook"],[h,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],l,[h,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],l,[h,m]],[/\b(ph-1) /i],[l,[v,"Essential"],[h,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[v,"Envizen"],[h,y]],[/\b(trio[-\w\. ]+) b/i],[l,[v,"MachSpeed"],[h,y]],[/\btu_(1491) b/i],[l,[v,"Rotor"],[h,y]],[/(shield[\w ]+) b/i],[l,[v,"Nvidia"],[h,y]],[/(sprint) (\w+)/i],[v,l,[h,m]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[v,Bt],[h,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[v,Gt],[h,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[v,Gt],[h,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,l,[h,A]],[/droid.+; (shield) bui/i],[l,[v,"Nvidia"],[h,A]],[/(playstation [345portablevi]+)/i],[l,[v,nt],[h,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[v,Bt],[h,A]],[/smart-tv.+(samsung)/i],[v,[h,O]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[v,Ft],[h,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,qt],[h,O]],[/(apple) ?tv/i],[v,[l,Je+" TV"],[h,O]],[/crkey/i],[[l,Ze+"cast"],[v,et],[h,O]],[/droid.+aft(\w)( bui|\))/i],[l,[v,Dt],[h,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[v,ir],[h,O]],[/(bravia[\w ]+)( bui|\))/i],[l,[v,nt],[h,O]],[/(mitv-\w{5}) bui/i],[l,[v,Vt],[h,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[v,zt],[l,zt],[h,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,O]],[/((pebble))app/i],[v,l,[h,D]],[/droid.+; (glass) \d/i],[l,[v,et],[h,D]],[/droid.+; (wt63?0{2,3})\)/i],[l,[v,Gt],[h,D]],[/(quest( 2)?)/i],[l,[v,or],[h,D]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[h,Ye]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[h,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[h,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,m]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,Ua+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,"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],[p,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[g,Xt,sr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[g,Xt,sr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,"Mac OS"],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,g],[/\(bb(10);/i],[g,[p,tr]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,Qe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,"webOS"]],[/crkey\/([\d\.]+)/i],[g,[p,Ze+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[p,"Chromium OS"],g],[/(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],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,g]]},j=function(w,E){if(typeof w===s&&(E=w,w=n),!(this instanceof j))return new j(w,E).getResult();var b=w||(typeof e!==f&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:i),C=E?xa(cr,E):cr;return this.getBrowser=function(){var _={};return _[p]=n,_[g]=n,me.call(_,b,C.browser),_.major=Da(_.version),_},this.getCPU=function(){var _={};return _[T]=n,me.call(_,b,C.cpu),_},this.getDevice=function(){var _={};return _[v]=n,_[l]=n,_[h]=n,me.call(_,b,C.device),_},this.getEngine=function(){var _={};return _[p]=n,_[g]=n,me.call(_,b,C.engine),_},this.getOS=function(){var _={};return _[p]=n,_[g]=n,me.call(_,b,C.os),_},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 b},this.setUA=function(_){return b=typeof _===u&&_.length>xt?zt(_,xt):_,this},this.setUA(b),this};j.VERSION=o,j.BROWSER=rt([p,g,d]),j.CPU=rt([T]),j.DEVICE=rt([l,v,h,A,m,O,y,D,Ye]),j.ENGINE=j.OS=rt([p,g]),typeof t!==f?(typeof r!==f&&r.exports&&(t=r.exports=j),t.UAParser=j):typeof define===c&&define.amd?define(function(){return j}):typeof e!==f&&(e.UAParser=j);var oe=typeof e!==f&&(e.jQuery||e.Zepto);if(oe&&!oe.ua){var it=new j;oe.ua=it.getResult(),oe.ua.get=function(){return it.getUA()},oe.ua.set=function(w){it.setUA(w);var E=it.getResult();for(var b in E)oe.ua[b]=E[b]}}})(typeof window=="object"?window:t)}}),yr=N({"node_modules/shimmer/index.js"(t,r){function e(u){return typeof u=="function"}var n=console.error.bind(console);function o(u,d,l){var p=!!u[d]&&u.propertyIsEnumerable(d);Object.defineProperty(u,d,{configurable:!0,enumerable:p,writable:!0,value:l})}function i(u){u&&u.logger&&(e(u.logger)?n=u.logger:n("new logger isn't a function, not replacing"))}function a(u,d,l){if(!u||!u[d]){n("no original function "+d+" to wrap");return}if(!l){n("no wrapper function"),n(new Error().stack);return}if(!e(u[d])||!e(l)){n("original object and wrapper must be functions");return}var p=u[d],h=l(p,d);return o(h,"__original",p),o(h,"__unwrap",function(){u[d]===h&&o(u,d,p)}),o(h,"__wrapped",!0),o(u,d,h),h}function c(u,d,l){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(d&&Array.isArray(d))){n("must provide one or more functions to wrap on modules");return}u.forEach(function(p){d.forEach(function(h){a(p,h,l)})})}function f(u,d){if(!u||!u[d]){n("no function to unwrap."),n(new Error().stack);return}if(!u[d].__unwrap)n("no original to unwrap to -- has "+d+" already been unwrapped?");else return u[d].__unwrap()}function s(u,d){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(d&&Array.isArray(d))){n("must provide one or more functions to unwrap on modules");return}u.forEach(function(l){d.forEach(function(p){f(l,p)})})}i.wrap=a,i.massWrap=c,i.unwrap=f,i.massUnwrap=s,r.exports=i}}),ct={};gr(ct,{__assign:()=>_e,__asyncDelegator:()=>Lr,__asyncGenerator:()=>Rr,__asyncValues:()=>kr,__await:()=>ae,__awaiter:()=>Tr,__classPrivateFieldGet:()=>Hr,__classPrivateFieldSet:()=>Ur,__createBinding:()=>Ar,__decorate:()=>_r,__exportStar:()=>Or,__extends:()=>wr,__generator:()=>Cr,__importDefault:()=>jr,__importStar:()=>Mr,__makeTemplateObject:()=>Nr,__metadata:()=>Sr,__param:()=>Er,__read:()=>$t,__rest:()=>br,__spread:()=>Pr,__spreadArrays:()=>Ir,__values:()=>ut});function wr(t,r){be(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function br(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e}function _r(t,r,e,n){var o=arguments.length,i=o<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,e,n);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(i=(o<3?a(i):o>3?a(r,e,i):a(r,e))||i);return o>3&&i&&Object.defineProperty(r,e,i),i}function Er(t,r){return function(e,n){r(e,n,t)}}function Sr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function Tr(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})}function Cr(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Ar(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}function Or(t,r){for(var e in t)e!=="default"&&!r.hasOwnProperty(e)&&(r[e]=t[e])}function ut(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){a={error:c}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return i}function Pr(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat($t(arguments[r]));return t}function Ir(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;for(var n=Array(t),o=0,r=0;r<e;r++)for(var i=arguments[r],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}function ae(t){return this instanceof ae?(this.v=t,this):new ae(t)}function Rr(t,r,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,r||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(l){n[l]&&(o[l]=function(p){return new Promise(function(h,v){i.push([l,p,h,v])>1||c(l,p)})})}function c(l,p){try{f(n[l](p))}catch(h){d(i[0][3],h)}}function f(l){l.value instanceof ae?Promise.resolve(l.value.v).then(s,u):d(i[0][2],l)}function s(l){c("next",l)}function u(l){c("throw",l)}function d(l,p){l(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Lr(t){var r,e;return r={},n("next"),n("throw",function(o){throw o}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(o,i){r[o]=t[o]?function(a){return(e=!e)?{value:ae(t[o](a)),done:o==="return"}:i?i(a):a}:i}}function kr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],e;return r?r.call(t):(t=typeof ut=="function"?ut(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(a){return new Promise(function(c,f){a=t[i](a),o(c,f,a.done,a.value)})}}function o(i,a,c,f){Promise.resolve(f).then(function(s){i({value:s,done:c})},a)}}function Nr(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function Mr(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)Object.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r.default=t,r}function jr(t){return t&&t.__esModule?t:{default:t}}function Hr(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function Ur(t,r,e){if(!r.has(t))throw new TypeError("attempted to set private field on non-instance");return r.set(t,e),e}var be,_e,Yt=pr({"node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js"(){be=function(t,r){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])},be(t,r)},_e=function(){return _e=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},_e.apply(this,arguments)}}}),Jt=N({"node_modules/@aws-crypto/sha256-js/build/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1}}),xr=N({"node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=Jt(),e=function(){function n(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return n.prototype.update=function(o){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,a=o.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=o[i++],a--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var o=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(i.setUint8(this.bufferLength++,128),a%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var c=this.bufferLength;c<r.BLOCK_SIZE;c++)i.setUint8(c,0);this.hashBuffer(),this.bufferLength=0}for(var c=this.bufferLength;c<r.BLOCK_SIZE-8;c++)i.setUint8(c,0);i.setUint32(r.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),i.setUint32(r.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}for(var f=new Uint8Array(r.DIGEST_LENGTH),c=0;c<8;c++)f[c*4]=this.state[c]>>>24&255,f[c*4+1]=this.state[c]>>>16&255,f[c*4+2]=this.state[c]>>>8&255,f[c*4+3]=this.state[c]>>>0&255;return f},n.prototype.hashBuffer=function(){for(var o=this,i=o.buffer,a=o.state,c=a[0],f=a[1],s=a[2],u=a[3],d=a[4],l=a[5],p=a[6],h=a[7],v=0;v<r.BLOCK_SIZE;v++){if(v<16)this.temp[v]=(i[v*4]&255)<<24|(i[v*4+1]&255)<<16|(i[v*4+2]&255)<<8|i[v*4+3]&255;else{var g=this.temp[v-2],T=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[v-15];var A=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[v]=(T+this.temp[v-7]|0)+(A+this.temp[v-16]|0)}var m=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&l^~d&p)|0)+(h+(r.KEY[v]+this.temp[v]|0)|0)|0,y=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&f^c&s^f&s)|0;h=p,p=l,l=d,d=u+m|0,u=s,s=f,f=c,c=m+y|0}a[0]+=c,a[1]+=f,a[2]+=s,a[3]+=u,a[4]+=d,a[5]+=l,a[6]+=p,a[7]+=h},n}();t.RawSha256=e}}),Dr=N({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=n=>{const o=[];for(let i=0,a=n.length;i<a;i++){const c=n.charCodeAt(i);if(c<128)o.push(c);else if(c<2048)o.push(c>>6|192,c&63|128);else if(i+1<n.length&&(c&64512)===55296&&(n.charCodeAt(i+1)&64512)===56320){const f=65536+((c&1023)<<10)+(n.charCodeAt(++i)&1023);o.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else o.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(o)};t.fromUtf8=r;var e=n=>{let o="";for(let i=0,a=n.length;i<a;i++){const c=n[i];if(c<128)o+=String.fromCharCode(c);else if(192<=c&&c<224){const f=n[++i];o+=String.fromCharCode((c&31)<<6|f&63)}else if(240<=c&&c<365){const s="%"+[c,n[++i],n[++i],n[++i]].map(u=>u.toString(16)).join("%");o+=decodeURIComponent(s)}else o+=String.fromCharCode((c&15)<<12|(n[++i]&63)<<6|n[++i]&63)}return o};t.toUtf8=e}}),qr=N({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;function r(n){return new TextEncoder().encode(n)}t.fromUtf8=r;function e(n){return new TextDecoder("utf-8").decode(n)}t.toUtf8=e}}),Br=N({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=Dr(),e=qr(),n=i=>typeof TextEncoder=="function"?(0,e.fromUtf8)(i):(0,r.fromUtf8)(i);t.fromUtf8=n;var o=i=>typeof TextDecoder=="function"?(0,e.toUtf8)(i):(0,r.toUtf8)(i);t.toUtf8=o}}),Fr=N({"node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=Br(),e=typeof Buffer<"u"&&Buffer.from?function(o){return Buffer.from(o,"utf8")}:r.fromUtf8;function n(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)}t.convertToBuffer=n}}),Vr=N({"node_modules/@aws-crypto/util/build/isEmptyData.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0;function r(e){return typeof e=="string"?e.length===0:e.byteLength===0}t.isEmptyData=r}}),Gr=N({"node_modules/@aws-crypto/util/build/numToUint8.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0;function r(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=r}}),zr=N({"node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0;function r(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),o=0;o<e.length;)n[o]=e[o],o+=1;return n}return Uint32Array.from(e)}t.uint32ArrayFrom=r}}),Xr=N({"node_modules/@aws-crypto/util/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=Fr();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=Vr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=Gr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=zr();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),Wr=N({"node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=(Yt(),Kt(ct)),e=Jt(),n=xr(),o=Xr(),i=function(){function c(f){if(this.hash=new n.RawSha256,f){this.outer=new n.RawSha256;var s=a(f),u=new Uint8Array(e.BLOCK_SIZE);u.set(s);for(var d=0;d<e.BLOCK_SIZE;d++)s[d]^=54,u[d]^=92;this.hash.update(s),this.outer.update(u);for(var d=0;d<s.byteLength;d++)s[d]=0}}return c.prototype.update=function(f){if(!((0,o.isEmptyData)(f)||this.error))try{this.hash.update((0,o.convertToBuffer)(f))}catch(s){this.error=s}},c.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()},c.prototype.digest=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(f){return[2,this.digestSync()]})})},c}();t.Sha256=i;function a(c){var f=(0,o.convertToBuffer)(c);if(f.byteLength>e.BLOCK_SIZE){var s=new n.RawSha256;s.update(f),f=s.digest()}var u=new Uint8Array(e.BLOCK_SIZE);return u.set(f),u}}}),Kr=N({"node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=(Yt(),Kt(ct));r.__exportStar(Wr(),t)}}),se=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const t=new se({...this,headers:{...this.headers}});return t.query&&(t.query=$r(t.query)),t}};function $r(t){return Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{})}var ce=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}},Zt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Qt=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ft=function(t){return Zt(void 0,void 0,void 0,function(){var r;return Qt(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,r))]}})})},Yr=function(t){return Zt(void 0,void 0,void 0,function(){var r;return Qt(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,String.fromCharCode.apply(null,r)]}})})},lt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},dt=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Jr="POST",Zr="application/x-amz-json-1.1",Qr="https:",ei="AWSCognitoIdentityService.GetId",ti="AWSCognitoIdentityService.GetOpenIdToken",ni="AWSCognitoIdentityService.GetCredentialsForIdentity",ri=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},en=function(){function t(r){var e=this;this.getId=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ei,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=f.sent().response,[4,ft(a)];case 2:return[2,f.sent()];case 3:throw c=f.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(c));case 4:return[2]}})})},this.getOpenIdToken=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ti,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=f.sent().response,[4,ft(a)];case 2:return[2,f.sent()];case 3:throw c=f.sent(),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(c));case 4:return[2]}})})},this.getCredentialsForIdentity=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c,f,s,u,d,l;return dt(this,function(p){switch(p.label){case 0:return p.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(ni,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=p.sent().response,[4,ft(a)];case 2:return c=p.sent().Credentials,f=c.AccessKeyId,s=c.Expiration,u=c.SecretAccessKey,d=c.SessionToken,[2,{accessKeyId:f,secretAccessKey:u,sessionToken:d,expiration:new Date(s*1e3)}];case 3:throw l=p.sent(),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(l));case 4:return[2]}})})},this.getHttpRequest=function(n,o){return new se({method:Jr,headers:{"content-type":Zr,"x-amz-target":n},protocol:Qr,hostname:e.hostname,body:o})},this.hostname="cognito-identity.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),G=t=>encodeURIComponent(t).replace(/[!'()*]/g,ii),ii=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function ht(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=G(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${G(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${G(n)}`),r.push(o)}}return r.join("&")}function oi(t=0){return new Promise((r,e)=>{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",e(n)},t)})}var vt=class{constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const e=this.config.requestTimeout;if(r?.aborted){const d=new Error("Request aborted");return d.name="AbortError",Promise.reject(d)}let n=t.path;if(t.query){const d=ht(t.query);d&&(n+=`?${d}`)}const{port:o,method:i}=t,a=`${t.protocol}//${t.hostname}${o?`:${o}`:""}${n}`,f={body:i==="GET"||i==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:i};typeof AbortController<"u"&&(f.signal=r);const s=new Request(a,f),u=[fetch(s).then(d=>{const l=d.headers,p={};for(const v of l.entries())p[v[0]]=v[1];return d.body!==void 0?{response:new ce({headers:p,statusCode:d.status,body:d.body})}:d.blob().then(v=>({response:new ce({headers:p,statusCode:d.status,body:v})}))}),oi(e)];return r&&u.push(new Promise((d,l)=>{r.onabort=()=>{const p=new Error("Request aborted");p.name="AbortError",l(p)}})),Promise.race(u)}},K={},ue=new Array(64);for(let t=0,r="A".charCodeAt(0),e="Z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r);K[n]=t,ue[t]=n}for(let t=0,r="a".charCodeAt(0),e="z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r),o=t+26;K[n]=o,ue[o]=n}for(let t=0;t<10;t++){K[t.toString(10)]=t+52;const r=t.toString(10),e=t+52;K[r]=e,ue[e]=r}K["+"]=62,ue[62]="+",K["/"]=63,ue[63]="/";var Ee=function(){return Ee=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ee.apply(this,arguments)},ai=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},si=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ci="POST",ui="application/x-www-form-urlencoded",fi="https:",li="AssumeRoleWithWebIdentity",di="2011-06-15",hi=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return ai(e,void 0,void 0,function(){var o,i,a,c,f,s;return si(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=Ee(Ee({},n),{Action:li,Version:di}),i=new URLSearchParams(Object.entries(o)).toString(),a=new se({method:ci,headers:{"content-type":ui,host:this.hostname},protocol:fi,hostname:this.hostname,body:i}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=u.sent().response,[4,Yr(c)];case 2:return f=u.sent(),[2,{accessKeyId:f.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:f.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:f.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(f.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw s=u.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(s));case 4:return[2]}})})},this.hostname="sts.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),Se="cwr_c",tn="cwr_s",nn="cwr_u",rn=3e4,Te=function(){return Te=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Te.apply(this,arguments)},Ce=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Ae=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},vi=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Ce(e,void 0,void 0,function(){return Ae(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Ce(e,void 0,void 0,function(){var o=this;return Ae(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Ce(e,void 0,void 0,function(){var o=this;return Ae(this,function(i){return[2,new Promise(function(a,c){var f;try{f=JSON.parse(localStorage.getItem(Se))}catch{return c()}if(o.credentials=Te(Te({},f),{expiration:new Date(f.expiration)}),o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ce(e,void 0,void 0,function(){var o=this;return Ae(this,function(i){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(Se,JSON.stringify(a))}catch{}return a})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.stsClient=new hi({fetchRequestHandler:new vt,region:n}),this.cognitoIdentityClient=new en({fetchRequestHandler:new vt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-rn);return new Date>r},t}(),Oe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Pe=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},pi=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Oe(e,void 0,void 0,function(){return Pe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Oe(e,void 0,void 0,function(){var o=this;return Pe(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Oe(e,void 0,void 0,function(){var o=this;return Pe(this,function(i){return[2,new Promise(function(a,c){var f;try{f=JSON.parse(localStorage.getItem(Se))}catch{c()}if(f.expiration=new Date(f.expiration),o.credentials=f,o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Oe(e,void 0,void 0,function(){var o,i=this;return Pe(this,function(a){return o=ri({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(c){i.credentials=c;try{localStorage.setItem(Se,JSON.stringify(c))}catch{}return c})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.cognitoIdentityClient=new en({fetchRequestHandler:new vt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-rn);return new Date>r},t}(),H="com.amazon.rum",gi="com.amazonaws.rum",Ie="".concat(H,".http_event"),on="".concat(H,".xray_trace_event"),mi="".concat(H,".largest_contentful_paint_event"),yi="".concat(H,".first_input_delay_event"),wi="".concat(H,".cumulative_layout_shift_event"),pt="".concat(H,".performance_navigation_event"),bi="".concat(H,".performance_resource_event"),_i="".concat(H,".dom_event"),Ei="".concat(H,".js_error_event"),Si="".concat(H,".page_view_event"),z=function(){function t(r){this.enabled=!0,this.pluginId=t.generatePluginId(r)}return t.generatePluginId=function(r){return"".concat(t.idPrefix,".").concat(r)},t.prototype.load=function(r){var e;this.context=r,(e=this.onload)===null||e===void 0||e.call(this)},t.prototype.getPluginId=function(){return this.pluginId},t.idPrefix=gi,t}(),Ti=function(){function t(r){this.context=r,this.plugins=new Map}return t.prototype.addPlugin=function(r){var e=r.getPluginId();if(this.hasPlugin(e))throw new Error('Plugin "'.concat(e,'" already defined in the PluginManager'));this.plugins.set(e,r),r.load(this.context)},t.prototype.updatePlugin=function(r,e){var n,o=this.getPlugin(r);(n=o?.update)===null||n===void 0||n.call(o,e)},t.prototype.enable=function(){this.plugins.forEach(function(r){return r.enable()})},t.prototype.disable=function(){this.plugins.forEach(function(r){return r.disable()})},t.prototype.hasPlugin=function(r){return Boolean(this.getPlugin(r))},t.prototype.record=function(r,e){var n=this.getPlugin(r);if(n?.record instanceof Function)n.record(e);else throw new Error("AWS RUM Client record: Invalid plugin ID")},t.prototype.getPlugin=function(r){var e;return(e=this.plugins.get(r))!==null&&e!==void 0?e:this.plugins.get(z.generatePluginId(r))},t}(),Ci=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),X=function(){return X=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},X.apply(this,arguments)},an="dom-event",Ai={interactionId:function(){return""},enableMutationObserver:!1,events:[]},Oi=function(t){Ci(r,t);function r(e){var n=t.call(this,an)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=X(X({},Ai),e),n}return r.getElementInfo=function(e){var n={name:"UNKNOWN"};return e.target instanceof Node&&(n.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(n.id=e.target.id),n},r.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)},r.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},r.prototype.update=function(e){var n=this;e.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},r.prototype.onload=function(){this.enable()},r.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(n){return e.removeEventHandler(n)})},r.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(n){return e.addEventHandler(n)})},r.prototype.getEventListener=function(e){var n=this;return function(o){var i,a=r.getElementInfo(o),c=n.config.interactionId(o),f=X(X(X({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),c?{interactionId:c}:{}),e?{cssLocator:e}:{});!((i=n.context)===null||i===void 0)&&i.record&&n.context.record(_i,f)}},r.prototype.addEventHandler=function(e){var n=e.event,o=this.getEventListener(e.cssLocator),i=[],a=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator){var c=document.querySelectorAll(e.cssLocator);c.forEach(function(s){i.push(s)})}else if(e.elementId){var f=document.getElementById(e.elementId);f&&i.push(f)}else e.element&&i.push(e.element);i.forEach(function(s){s.addEventListener(n,o),a.push({element:s,eventListener:o})}),this.eventListenerMap.set(e,a)},r.prototype.removeEventHandler=function(e){var n=this.eventListenerMap.get(e);n&&(n.forEach(function(o){var i=o.element,a=o.eventListener;i.removeEventListener(e.event,a)}),this.eventListenerMap.delete(e))},r.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},r}(z),Pi=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},Ii=function(t){var r={version:"1.0.0",type:"undefined",message:"undefined"};return t.type!==void 0&&(r.type=t.type),t.message!==void 0&&(r.message=t.message),t.filename!==void 0&&(r.filename=t.filename),t.lineno!==void 0&&(r.lineno=t.lineno),t.colno!==void 0&&(r.colno=t.colno),r},Ri=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},Li=function(t,r,e){r.name&&(t.type=r.name),r.message&&(t.message=r.message),r.fileName&&(t.filename=r.fileName),r.lineNumber&&(t.lineno=r.lineNumber),r.columnNumber&&(t.colno=r.columnNumber),e&&r.stack&&(t.stack=r.stack.length>e?r.stack.substring(0,e)+"...":r.stack)},sn=function(t){return t!==Object(t)&&t!==void 0&&t!==null},gt=function(t,r){var e=Ii(t),n=t.error;return Pi(n)?Li(e,n,r):sn(n)&&Ri(e,n),e},ki=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Re=function(){return Re=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Re.apply(this,arguments)},cn="js-error",Ni={stackTraceLength:200,ignore:function(){return!1}},Mi=function(t){ki(r,t);function r(e){var n=t.call(this,cn)||this;return n.eventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent(o)},n.promiseRejectEventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent({type:o.type,error:o.reason})},n.config=Re(Re({},Ni),e),n}return r.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},r.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},r.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},r.prototype.onload=function(){this.addEventHandler()},r.prototype.recordJsErrorEvent=function(e){var n;(n=this.context)===null||n===void 0||n.record(Ei,gt(e,this.config.stackTraceLength))},r.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},r.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},r}(z),un=function(t,r,e,n,o){var i=t+"=";i+=r||"",o!==void 0?i+="; Expires=".concat(o.toUTCString()):n!==void 0&&(i+="; Expires=".concat(ji(n).toUTCString())),i+="; Domain=".concat(e.domain),i+="; Path=".concat(e.path),i+="; SameSite=".concat(e.sameSite),i+=e.secure?"; Secure":"",document.cookie=i},ji=function(t){return new Date(new Date().getTime()+t*1e3)},fn=function(t){for(var r=document.cookie.split("; "),e=0,n=r;e<n.length;e++){var o=n[e],i=o.split("=");if(i[0]===t)return i[1]}return""},Le,Hi=new Uint8Array(16);function Ui(){if(!Le&&(Le=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Le))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Le(Hi)}var xi=/^(?:[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 Di(t){return typeof t=="string"&&xi.test(t)}var ln=Di,P=[];for(U=0;U<256;++U)P.push((U+256).toString(16).substr(1));var U;function qi(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(P[t[r+0]]+P[t[r+1]]+P[t[r+2]]+P[t[r+3]]+"-"+P[t[r+4]]+P[t[r+5]]+"-"+P[t[r+6]]+P[t[r+7]]+"-"+P[t[r+8]]+P[t[r+9]]+"-"+P[t[r+10]]+P[t[r+11]]+P[t[r+12]]+P[t[r+13]]+P[t[r+14]]+P[t[r+15]]).toLowerCase();if(!ln(e))throw TypeError("Stringified UUID is invalid");return e}var dn=qi;function Bi(t){if(!ln(t))throw TypeError("Invalid UUID");var r,e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}var Fi=Bi;function Vi(t){t=unescape(encodeURIComponent(t));for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var Gi="6ba7b810-9dad-11d1-80b4-00c04fd430c8",zi="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function hn(t,r,e){function n(o,i,a,c){if(typeof o=="string"&&(o=Vi(o)),typeof i=="string"&&(i=Fi(i)),i.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(i),f.set(o,i.length),f=e(f),f[6]=f[6]&15|r,f[8]=f[8]&63|128,a){c=c||0;for(var s=0;s<16;++s)a[c+s]=f[s];return a}return dn(f)}try{n.name=t}catch{}return n.DNS=Gi,n.URL=zi,n}function Xi(t){if(typeof t=="string"){var r=unescape(encodeURIComponent(t));t=new Uint8Array(r.length);for(var e=0;e<r.length;++e)t[e]=r.charCodeAt(e)}return Wi(Ki($i(t),t.length*8))}function Wi(t){for(var r=[],e=t.length*32,n="0123456789abcdef",o=0;o<e;o+=8){var i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);r.push(a)}return r}function vn(t){return(t+64>>>9<<4)+14+1}function Ki(t,r){t[r>>5]|=128<<r%32,t[vn(r)-1]=r;for(var e=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var c=e,f=n,s=o,u=i;e=I(e,n,o,i,t[a],7,-680876936),i=I(i,e,n,o,t[a+1],12,-389564586),o=I(o,i,e,n,t[a+2],17,606105819),n=I(n,o,i,e,t[a+3],22,-1044525330),e=I(e,n,o,i,t[a+4],7,-176418897),i=I(i,e,n,o,t[a+5],12,1200080426),o=I(o,i,e,n,t[a+6],17,-1473231341),n=I(n,o,i,e,t[a+7],22,-45705983),e=I(e,n,o,i,t[a+8],7,1770035416),i=I(i,e,n,o,t[a+9],12,-1958414417),o=I(o,i,e,n,t[a+10],17,-42063),n=I(n,o,i,e,t[a+11],22,-1990404162),e=I(e,n,o,i,t[a+12],7,1804603682),i=I(i,e,n,o,t[a+13],12,-40341101),o=I(o,i,e,n,t[a+14],17,-1502002290),n=I(n,o,i,e,t[a+15],22,1236535329),e=R(e,n,o,i,t[a+1],5,-165796510),i=R(i,e,n,o,t[a+6],9,-1069501632),o=R(o,i,e,n,t[a+11],14,643717713),n=R(n,o,i,e,t[a],20,-373897302),e=R(e,n,o,i,t[a+5],5,-701558691),i=R(i,e,n,o,t[a+10],9,38016083),o=R(o,i,e,n,t[a+15],14,-660478335),n=R(n,o,i,e,t[a+4],20,-405537848),e=R(e,n,o,i,t[a+9],5,568446438),i=R(i,e,n,o,t[a+14],9,-1019803690),o=R(o,i,e,n,t[a+3],14,-187363961),n=R(n,o,i,e,t[a+8],20,1163531501),e=R(e,n,o,i,t[a+13],5,-1444681467),i=R(i,e,n,o,t[a+2],9,-51403784),o=R(o,i,e,n,t[a+7],14,1735328473),n=R(n,o,i,e,t[a+12],20,-1926607734),e=L(e,n,o,i,t[a+5],4,-378558),i=L(i,e,n,o,t[a+8],11,-2022574463),o=L(o,i,e,n,t[a+11],16,1839030562),n=L(n,o,i,e,t[a+14],23,-35309556),e=L(e,n,o,i,t[a+1],4,-1530992060),i=L(i,e,n,o,t[a+4],11,1272893353),o=L(o,i,e,n,t[a+7],16,-155497632),n=L(n,o,i,e,t[a+10],23,-1094730640),e=L(e,n,o,i,t[a+13],4,681279174),i=L(i,e,n,o,t[a],11,-358537222),o=L(o,i,e,n,t[a+3],16,-722521979),n=L(n,o,i,e,t[a+6],23,76029189),e=L(e,n,o,i,t[a+9],4,-640364487),i=L(i,e,n,o,t[a+12],11,-421815835),o=L(o,i,e,n,t[a+15],16,530742520),n=L(n,o,i,e,t[a+2],23,-995338651),e=k(e,n,o,i,t[a],6,-198630844),i=k(i,e,n,o,t[a+7],10,1126891415),o=k(o,i,e,n,t[a+14],15,-1416354905),n=k(n,o,i,e,t[a+5],21,-57434055),e=k(e,n,o,i,t[a+12],6,1700485571),i=k(i,e,n,o,t[a+3],10,-1894986606),o=k(o,i,e,n,t[a+10],15,-1051523),n=k(n,o,i,e,t[a+1],21,-2054922799),e=k(e,n,o,i,t[a+8],6,1873313359),i=k(i,e,n,o,t[a+15],10,-30611744),o=k(o,i,e,n,t[a+6],15,-1560198380),n=k(n,o,i,e,t[a+13],21,1309151649),e=k(e,n,o,i,t[a+4],6,-145523070),i=k(i,e,n,o,t[a+11],10,-1120210379),o=k(o,i,e,n,t[a+2],15,718787259),n=k(n,o,i,e,t[a+9],21,-343485551),e=q(e,c),n=q(n,f),o=q(o,s),i=q(i,u)}return[e,n,o,i]}function $i(t){if(t.length===0)return[];for(var r=t.length*8,e=new Uint32Array(vn(r)),n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function q(t,r){var e=(t&65535)+(r&65535),n=(t>>16)+(r>>16)+(e>>16);return n<<16|e&65535}function Yi(t,r){return t<<r|t>>>32-r}function ke(t,r,e,n,o,i){return q(Yi(q(q(r,t),q(n,i)),o),e)}function I(t,r,e,n,o,i,a){return ke(r&e|~r&n,t,r,o,i,a)}function R(t,r,e,n,o,i,a){return ke(r&n|e&~n,t,r,o,i,a)}function L(t,r,e,n,o,i,a){return ke(r^e^n,t,r,o,i,a)}function k(t,r,e,n,o,i,a){return ke(e^(r|~n),t,r,o,i,a)}var Ji=Xi;hn("v3",48,Ji);function Zi(t,r,e){t=t||{};var n=t.random||(t.rng||Ui)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(var o=0;o<16;++o)r[e+o]=n[o];return r}return dn(n)}var fe=Zi;function Qi(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}}function mt(t,r){return t<<r|t>>>32-r}function eo(t){var r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),c=new Array(a),f=0;f<a;++f){for(var s=new Uint32Array(16),u=0;u<16;++u)s[u]=t[f*64+u*4]<<24|t[f*64+u*4+1]<<16|t[f*64+u*4+2]<<8|t[f*64+u*4+3];c[f]=s}c[a-1][14]=(t.length-1)*8/Math.pow(2,32),c[a-1][14]=Math.floor(c[a-1][14]),c[a-1][15]=(t.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var l=new Uint32Array(80),p=0;p<16;++p)l[p]=c[d][p];for(var h=16;h<80;++h)l[h]=mt(l[h-3]^l[h-8]^l[h-14]^l[h-16],1);for(var v=e[0],g=e[1],T=e[2],A=e[3],m=e[4],y=0;y<80;++y){var O=Math.floor(y/20),D=mt(v,5)+Qi(O,g,T,A)+m+r[O]+l[y]>>>0;m=A,A=T,T=mt(g,30)>>>0,g=v,v=D}e[0]=e[0]+v>>>0,e[1]=e[1]+g>>>0,e[2]=e[2]+T>>>0,e[3]=e[3]+A>>>0,e[4]=e[4]+m>>>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 to=eo;hn("v5",80,to);var no=st(mr()),Ne=function(){return Ne=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ne.apply(this,arguments)},$="00000000-0000-0000-0000-000000000000",Me="unknown",ro="desktop",io="web",oo="com.amazon.rum.session_start_event",ao=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:$,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return t.prototype.getSession=function(){return this.session.sessionId!==$&&!this.useCookies()?this.session={sessionId:$,record:this.sample(),eventCount:0,page:this.session.page}:this.session.sessionId===$&&this.useCookies()?this.createSession():this.session.sessionId!==$&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(r){this.attributes=Ne(Ne({},r),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:$},t.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},t.prototype.initializeUser=function(){var r="";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()?(r=this.getUserIdCookie(),this.userId=r||fe(),this.createOrRenewUserCookie(r,this.userExpiry)):this.userId=fe()},t.prototype.createOrRenewSessionCookie=function(r,e){btoa&&un(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){un(nn,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return fn(nn)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=fn(this.sessionCookieName());if(r&&atob)try{this.session=JSON.parse(atob(r)),this.pageManager.resumeSession(this.session.page.pageId,this.session.page.interaction)}catch{}}},t.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},t.prototype.createSession=function(){this.session={sessionId:fe(),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,oo,{version:"1.0.0"})},t.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},t.prototype.collectAttributes=function(){var r=new no.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:Me,browserVersion:r.browser.version?r.browser.version:Me,osName:r.os.name?r.os.name:Me,osVersion:r.os.version?r.os.version:Me,deviceType:r.device.type?r.device.type:ro,platformType:io,domain:window.location.hostname}},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},t.prototype.sessionCookieName=function(){return this.config.cookieAttributes.unique?"".concat(tn,"_").concat(this.appMonitorDetails.id):tn},t}(),je=st(yr()),so=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),He=function(t){so(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.enable=e.patch.bind(e,!0),e.disable=e.patch.bind(e,!1),e.enabled=!1,e}return r.prototype.patchAll=function(){for(var e=je.wrap.bind(je),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name,i.wrapper())}},r.prototype.unpatchAll=function(){for(var e=je.unwrap.bind(je),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name)}},r.prototype.patch=function(e){e===void 0&&(e=!0),this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())},r}(z),co=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),uo=function(t){co(r,t);function r(e,n,o){var i=t.call(this,"virtual-page-load-timer")||this;return i.sendWrapper=function(){var a=i;return function(c){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),c.apply(this,arguments)}}},i.endTracking=function(a){var c=Date.now(),f=a.target;f.removeEventListener("loadend",i.endTracking),i.removeXhr(f,c)},i.fetch=function(a,c,f){return a.apply(c,f).catch(function(s){throw s}).finally(i.decrementFetchCounter)},i.fetchWrapper=function(){var a=i;return function(c){return function(f,s){return a.fetchCounter+=1,a.fetch(c,this,arguments)}}},i.decrementFetchCounter=function(){i.isPageLoaded||(i.latestEndTime=Date.now()),i.fetchCounter-=1},i.checkLoadStatus=function(){i.ongoingRequests.size===0&&i.fetchCounter===0&&(clearInterval(i.periodicCheckerId),clearTimeout(i.timeoutCheckerId),i.domMutationObserver.disconnect(),i.recordRouteChangeNavigationEvent(i.pageManager.getPage()),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.isPageLoaded=!0)},i.declareTimeout=function(){clearInterval(i.periodicCheckerId),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver.disconnect(),i.isPageLoaded=!0},i.resetInterval=function(){i.latestEndTime=Date.now(),clearInterval(i.periodicCheckerId),i.periodicCheckerId=setInterval(i.checkLoadStatus,i.config.routeChangeComplete)},i.moveItemsFromBuffer=function(a){i.ongoingRequests.add(a)},i.updateLatestInteractionTime=function(a){i.latestInteractionTime=Date.now()},i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver=new MutationObserver(i.resetInterval),i.ongoingRequests=new Set,i.requestBuffer=new Set,i.fetchCounter=0,i.isPageLoaded=!0,i.latestEndTime=0,i.latestInteractionTime=0,i.config=n,i.pageManager=e,i.record=o,i.enable(),document.addEventListener("mousedown",i.updateLatestInteractionTime),document.addEventListener("keydown",i.updateLatestInteractionTime),i}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.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()},r.prototype.recordXhr=function(e){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?this.ongoingRequests.add(e):this.requestBuffer.add(e)},r.prototype.removeXhr=function(e,n){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=n):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},r.prototype.recordRouteChangeNavigationEvent=function(e){var n={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(pt,n)},r}(He),Ue=function(){return Ue=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ue.apply(this,arguments)},fo=function(){function t(r,e){this.TIMEOUT=1e3,this.config=r,this.record=e,this.page=void 0,this.resumed=void 0,this.recordInteraction=!1,this.virtualPageLoadTimer=new uo(this,r,e)}return t.prototype.getPage=function(){return this.page},t.prototype.getAttributes=function(){return this.attributes},t.prototype.resumeSession=function(r,e){this.recordInteraction=!0,this.resumed={pageId:r,interaction:e,start:0}},t.prototype.recordPageView=function(r){var e;if(typeof r=="string"?e=r:e=r.pageId,this.useCookies()&&(this.recordInteraction=!0),!this.page&&this.resumed)this.createResumedPage(e,this.resumed);else if(!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(this.page,e);else return;this.collectAttributes(this.page,typeof r=="object"?r:void 0),this.recordPageViewEvent(this.page)},t.prototype.createResumedPage=function(r,e){this.page={pageId:r,parentPageId:e.pageId,interaction:e.interaction+1,start:Date.now()},this.resumed=void 0},t.prototype.createNextPage=function(r,e){var n=Date.now(),o=this.virtualPageLoadTimer.latestInteractionTime;n-o<=this.TIMEOUT&&(n=o,this.virtualPageLoadTimer.startTiming()),this.page={pageId:e,parentPageId:r.pageId,interaction:r.interaction+1,start:n}},t.prototype.createLandingPage=function(r){this.page={pageId:r,interaction:0,start:Date.now()}},t.prototype.collectAttributes=function(r,e){this.attributes={title:document.title,pageId:r.pageId},this.recordInteraction&&(this.attributes.interaction=r.interaction,r.parentPageId!==void 0&&(this.attributes.parentPageId=r.parentPageId)),e?.pageTags&&(this.attributes.pageTags=e.pageTags),e?.pageAttributes&&(this.attributes=Ue(Ue({},e.pageAttributes),this.attributes))},t.prototype.createPageViewEvent=function(r){var e={version:"1.0.0",pageId:r.pageId};return this.recordInteraction&&(e.interaction=r.interaction,e.pageInteractionId=r.pageId+"-"+r.interaction,r.parentPageId!==void 0&&(e.parentPageInteractionId=r.parentPageId+"-"+(r.interaction-1))),e},t.prototype.recordPageViewEvent=function(r){this.record(Si,this.createPageViewEvent(r))},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t}(),le=function(){return le=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},le.apply(this,arguments)},lo=function(){function t(r,e){var n=this;this.events=[],this.recordPageView=function(o){n.isCurrentUrlAllowed()&&n.pageManager.recordPageView(o)},this.recordEvent=function(o,i){if(n.enabled&&n.isCurrentUrlAllowed()){var a=n.sessionManager.getSession();n.sessionManager.incrementSessionEventCount(),n.canRecord(a)&&n.addRecordToCache(o,i)}},this.getSession=function(){if(n.isCurrentUrlAllowed())return n.sessionManager.getSession()},this.recordSessionInitEvent=function(o,i,a){n.enabled&&(n.sessionManager.incrementSessionEventCount(),n.canRecord(o)&&n.addRecordToCache(i,a))},this.canRecord=function(o){return o.record&&(o.eventCount<=n.config.sessionEventLimit||n.config.sessionEventLimit<=0)},this.addRecordToCache=function(o,i){if(n.enabled){n.events.length===n.config.eventCacheSize&&n.events.shift();var a=le(le(le({},n.sessionManager.getAttributes()),n.pageManager.getAttributes()),{version:"1.0.0"});n.events.push({details:JSON.stringify(i),id:fe(),metadata:JSON.stringify(a),timestamp:new Date,type:o})}},this.appMonitorDetails=r,this.config=e,this.enabled=!0,this.pageManager=new fo(e,this.recordEvent),this.sessionManager=new ao(r,e,this.recordSessionInitEvent,this.pageManager)}return t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.hasEvents=function(){return this.events.length!==0},t.prototype.getEventBatch=function(){var r=[];return this.events.length===0||(this.events.length<=this.config.batchLimit?(r=this.events,this.events=[]):r=this.events.splice(0,this.config.batchLimit)),r},t.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},t.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},t.prototype.addSessionAttributes=function(r){this.sessionManager.addSessionAttributes(r)},t.prototype.isCurrentUrlAllowed=function(){var r=document.location.toString(),e=this.config.pagesToExclude.some(function(o){return o.test(r)}),n=this.config.pagesToInclude.some(function(o){return o.test(r)});return n&&!e},t}(),pn={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),pn[t]=r}function W(t){let r="";for(let e=0;e<t.byteLength;e++)r+=pn[t[e]];return r}var gn=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},ho=t=>new TextEncoder().encode(t),de=t=>typeof t=="string"?ho(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),vo="X-Amz-Algorithm",po="X-Amz-Credential",mn="X-Amz-Date",go="X-Amz-SignedHeaders",mo="X-Amz-Expires",yn="X-Amz-Signature",wn="X-Amz-Security-Token",bn="authorization",_n=mn.toLowerCase(),yo="date",wo=[bn,_n,yo],bo=yn.toLowerCase(),yt="x-amz-content-sha256",_o=wn.toLowerCase(),Eo={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},So=/^proxy-/,To=/^sec-/,wt="AWS4-HMAC-SHA256",Co="AWS4-HMAC-SHA256-PAYLOAD",Ao="UNSIGNED-PAYLOAD",Oo=50,En="aws4_request",Po=60*60*24*7,xe={},bt=[],_t=(t,r,e)=>`${t}/${r}/${e}/${En}`,Io=async(t,r,e,n,o)=>{const i=await Sn(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${W(i)}:${r.sessionToken}`;if(a in xe)return xe[a];for(bt.push(a);bt.length>Oo;)delete xe[bt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const f of[e,n,o,En])c=await Sn(t,c,f);return xe[a]=c},Sn=(t,r,e)=>{const n=new t(r);return n.update(de(e)),n.digest()},Tn=({headers:t},r,e)=>{const n={};for(const o of Object.keys(t).sort()){if(t[o]==null)continue;const i=o.toLowerCase();(i in Eo||r?.has(i)||So.test(i)||To.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},Ro=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===bo)continue;r.push(n);const o=t[n];typeof o=="string"?e[n]=`${G(n)}=${G(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((i,a)=>i.concat([`${G(n)}=${G(a)}`]),[]).join("&"))}return r.map(n=>e[n]).filter(n=>n).join("&")},Lo=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",Et=async({headers:t,body:r},e)=>{for(const n of Object.keys(t))if(n.toLowerCase()===yt)return t[n];if(r==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof r=="string"||ArrayBuffer.isView(r)||Lo(r)){const n=new e;return n.update(de(r)),W(await n.digest())}return Ao},ko=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},Cn=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?No(r):void 0}),No=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Mo=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():Cn(t);for(const o of Object.keys(e)){const i=o.toLowerCase();i.slice(0,6)==="x-amz-"&&!r.unhoistableHeaders?.has(i)&&(n[o]=e[o],delete e[o])}return{...t,headers:e,query:n}},An=t=>{t=typeof t.clone=="function"?t.clone():Cn(t);for(const r of Object.keys(t.headers))wo.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},jo=t=>Ho(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Ho=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,Uo=class{constructor({applyChecksum:t,credentials:r,region:e,service:n,sha256:o,uriEscapePath:i=!0}){this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=gn(e),this.credentialProvider=gn(r)}async presign(t,r={}){const{signingDate:e=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:c,signingService:f}=r,s=await this.credentialProvider();this.validateResolvedCredentials(s);const u=c??await this.regionProvider(),{longDate:d,shortDate:l}=De(e);if(n>Po)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=_t(l,u,f??this.service),h=Mo(An(t),{unhoistableHeaders:i});s.sessionToken&&(h.query[wn]=s.sessionToken),h.query[vo]=wt,h.query[po]=`${s.accessKeyId}/${p}`,h.query[mn]=d,h.query[mo]=n.toString(10);const v=Tn(h,o,a);return h.query[go]=On(v),h.query[yn]=await this.getSignature(d,p,this.getSigningKey(s,u,l,f),this.createCanonicalRequest(h,v,await Et(t,this.sha256))),h}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:e=new Date,priorSignature:n,signingRegion:o,signingService:i}){const a=o??await this.regionProvider(),{shortDate:c,longDate:f}=De(e),s=_t(c,a,i??this.service),u=await Et({headers:{},body:r},this.sha256),d=new this.sha256;d.update(t);const l=W(await d.digest()),p=[Co,f,s,n,l,u].join(`
|
|
2
|
-
`);return this.signString(
|
|
1
|
+
(function(){"use strict";var lr=Object.create,ye=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,hr=Object.getPrototypeOf,pr=Object.prototype.hasOwnProperty,vr=(t,r)=>function(){return t&&(r=(0,t[at(t)[0]])(t=0)),r},k=(t,r)=>function(){return r||(0,t[at(t)[0]])((r={exports:{}}).exports,r),r.exports},gr=(t,r)=>{for(var e in r)ye(t,e,{get:r[e],enumerable:!0})},Xt=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of at(r))!pr.call(t,o)&&o!==e&&ye(t,o,{get:()=>r[o],enumerable:!(n=dr(r,o))||n.enumerable});return t},st=(t,r,e)=>(e=t!=null?lr(hr(t)):{},Xt(r||!t||!t.__esModule?ye(e,"default",{value:t,enumerable:!0}):e,t)),Kt=t=>Xt(ye({},"__esModule",{value:!0}),t),mr=k({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.33",i="",a="?",c="function",f="undefined",s="object",u="string",d="major",l="model",h="name",p="type",v="vendor",g="version",A="architecture",j="console",m="mobile",y="tablet",L="smarttv",W="wearable",Ye="embedded",xt=350,Dt="Amazon",Je="Apple",er="ASUS",tr="BlackBerry",ne="Browser",Ze="Chrome",qa="Edge",Qe="Firefox",et="Google",nr="Huawei",qt="LG",Bt="Microsoft",rr="Motorola",tt="Opera",Ft="Samsung",ir="Sharp",nt="Sony",Vt="Xiaomi",Gt="Zebra",or="Facebook",Ba=function(w,E){var b={};for(var T in w)E[T]&&E[T].length%2===0?b[T]=E[T].concat(w[T]):b[T]=w[T];return b},rt=function(w){for(var E={},b=0;b<w.length;b++)E[w[b].toUpperCase()]=w[b];return E},ar=function(w,E){return typeof w===u?ve(E).indexOf(ve(w))!==-1:!1},ve=function(w){return w.toLowerCase()},Fa=function(w){return typeof w===u?w.replace(/[^\d\.]/g,i).split(".")[0]:n},zt=function(w,E){if(typeof w===u)return w=w.replace(/^\s\s*/,i),typeof E===f?w:w.substring(0,xt)},ge=function(w,E){for(var b=0,T,_,ot,S,me,H;b<E.length&&!me;){var ur=E[b],fr=E[b+1];for(T=_=0;T<ur.length&&!me;)if(me=ur[T++].exec(w),me)for(ot=0;ot<fr.length;ot++)H=me[++_],S=fr[ot],typeof S===s&&S.length>0?S.length===2?typeof S[1]==c?this[S[0]]=S[1].call(this,H):this[S[0]]=S[1]:S.length===3?typeof S[1]===c&&!(S[1].exec&&S[1].test)?this[S[0]]=H?S[1].call(this,H,S[2]):n:this[S[0]]=H?H.replace(S[1],S[2]):n:S.length===4&&(this[S[0]]=H?S[3].call(this,H.replace(S[1],S[2])):n):this[S]=H||n;b+=2}},Wt=function(w,E){for(var b in E)if(typeof E[b]===s&&E[b].length>0){for(var T=0;T<E[b].length;T++)if(ar(E[b][T],w))return b===a?n:b}else if(ar(E[b],w))return b===a?n:b;return w},Va={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},sr={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"},cr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,tt+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,tt]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+ne]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/yabrowser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+ne],g],[/\bfocus\/([\w\.]+)/i],[g,[h,Qe+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,tt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,tt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+ne]],[/fxios\/([-\w\.]+)/i],[g,[h,Qe]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+ne]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+ne],g],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,or],g],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,Ze+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,Ze+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+ne]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,Wt,Va]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,Qe+" 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],[h,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,ve]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,i,ve]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,ve]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[v,Ft],[p,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[v,Ft],[p,m]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[v,Je],[p,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[v,Je],[p,y]],[/(macintosh);/i],[l,[v,Je]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[v,nr],[p,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[v,nr],[p,m]],[/\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|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[v,Vt],[p,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[v,Vt],[p,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[v,"OPPO"],[p,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[v,"Vivo"],[p,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[v,"Realme"],[p,m]],[/\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],[l,[v,rr],[p,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[v,rr],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[v,qt],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[v,qt],[p,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[v,"Lenovo"],[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[v,"Nokia"],[p,m]],[/(pixel c)\b/i],[l,[v,et],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[v,et],[p,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[v,nt],[p,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[v,nt],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[v,"OnePlus"],[p,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[v,Dt],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[v,Dt],[p,m]],[/(playbook);[-\w\),; ]+(rim)/i],[l,v,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[v,tr],[p,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[v,er],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[v,er],[p,m]],[/(nexus 9)/i],[l,[v,"HTC"],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[l,/_/g," "],[p,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[v,"Acer"],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[v,"Meizu"],[p,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[v,ir],[p,m]],[/(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],[v,l,[p,m]],[/(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],[v,l,[p,y]],[/(surface duo)/i],[l,[v,Bt],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[v,"Fairphone"],[p,m]],[/(u304aa)/i],[l,[v,"AT&T"],[p,m]],[/\bsie-(\w*)/i],[l,[v,"Siemens"],[p,m]],[/\b(rct\w+) b/i],[l,[v,"RCA"],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[v,"Dell"],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[v,"Verizon"],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[v,"Barnes & Noble"],[p,y]],[/\b(tm\d{3}\w+) b/i],[l,[v,"NuVision"],[p,y]],[/\b(k88) b/i],[l,[v,"ZTE"],[p,y]],[/\b(nx\d{3}j) b/i],[l,[v,"ZTE"],[p,m]],[/\b(gen\d{3}) b.+49h/i],[l,[v,"Swiss"],[p,m]],[/\b(zur\d{3}) b/i],[l,[v,"Swiss"],[p,y]],[/\b((zeki)?tb.*\b) b/i],[l,[v,"Zeki"],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],l,[p,y]],[/\b(ns-?\w{0,9}) b/i],[l,[v,"Insignia"],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[v,"NextBook"],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],l,[p,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],l,[p,m]],[/\b(ph-1) /i],[l,[v,"Essential"],[p,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[v,"Envizen"],[p,y]],[/\b(trio[-\w\. ]+) b/i],[l,[v,"MachSpeed"],[p,y]],[/\btu_(1491) b/i],[l,[v,"Rotor"],[p,y]],[/(shield[\w ]+) b/i],[l,[v,"Nvidia"],[p,y]],[/(sprint) (\w+)/i],[v,l,[p,m]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[v,Bt],[p,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[v,Gt],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[v,Gt],[p,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,l,[p,j]],[/droid.+; (shield) bui/i],[l,[v,"Nvidia"],[p,j]],[/(playstation [345portablevi]+)/i],[l,[v,nt],[p,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[v,Bt],[p,j]],[/smart-tv.+(samsung)/i],[v,[p,L]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[v,Ft],[p,L]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,qt],[p,L]],[/(apple) ?tv/i],[v,[l,Je+" TV"],[p,L]],[/crkey/i],[[l,Ze+"cast"],[v,et],[p,L]],[/droid.+aft(\w)( bui|\))/i],[l,[v,Dt],[p,L]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[v,ir],[p,L]],[/(bravia[\w ]+)( bui|\))/i],[l,[v,nt],[p,L]],[/(mitv-\w{5}) bui/i],[l,[v,Vt],[p,L]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[v,zt],[l,zt],[p,L]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,L]],[/((pebble))app/i],[v,l,[p,W]],[/droid.+; (glass) \d/i],[l,[v,et],[p,W]],[/droid.+; (wt63?0{2,3})\)/i],[l,[v,Gt],[p,W]],[/(quest( 2)?)/i],[l,[v,or],[p,W]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[p,Ye]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[p,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,m]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,qa+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"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],[h,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[g,Wt,sr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,Wt,sr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,"Mac OS"],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,tr]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,Qe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/crkey\/([\d\.]+)/i],[g,[h,Ze+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[h,"Chromium OS"],g],[/(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],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[h,g]]},M=function(w,E){if(typeof w===s&&(E=w,w=n),!(this instanceof M))return new M(w,E).getResult();var b=w||(typeof e!==f&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:i),T=E?Ba(cr,E):cr;return this.getBrowser=function(){var _={};return _[h]=n,_[g]=n,ge.call(_,b,T.browser),_.major=Fa(_.version),_},this.getCPU=function(){var _={};return _[A]=n,ge.call(_,b,T.cpu),_},this.getDevice=function(){var _={};return _[v]=n,_[l]=n,_[p]=n,ge.call(_,b,T.device),_},this.getEngine=function(){var _={};return _[h]=n,_[g]=n,ge.call(_,b,T.engine),_},this.getOS=function(){var _={};return _[h]=n,_[g]=n,ge.call(_,b,T.os),_},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 b},this.setUA=function(_){return b=typeof _===u&&_.length>xt?zt(_,xt):_,this},this.setUA(b),this};M.VERSION=o,M.BROWSER=rt([h,g,d]),M.CPU=rt([A]),M.DEVICE=rt([l,v,p,j,m,L,y,W,Ye]),M.ENGINE=M.OS=rt([h,g]),typeof t!==f?(typeof r!==f&&r.exports&&(t=r.exports=M),t.UAParser=M):typeof define===c&&define.amd?define(function(){return M}):typeof e!==f&&(e.UAParser=M);var re=typeof e!==f&&(e.jQuery||e.Zepto);if(re&&!re.ua){var it=new M;re.ua=it.getResult(),re.ua.get=function(){return it.getUA()},re.ua.set=function(w){it.setUA(w);var E=it.getResult();for(var b in E)re.ua[b]=E[b]}}})(typeof window=="object"?window:t)}}),yr=k({"node_modules/shimmer/index.js"(t,r){function e(u){return typeof u=="function"}var n=console.error.bind(console);function o(u,d,l){var h=!!u[d]&&u.propertyIsEnumerable(d);Object.defineProperty(u,d,{configurable:!0,enumerable:h,writable:!0,value:l})}function i(u){u&&u.logger&&(e(u.logger)?n=u.logger:n("new logger isn't a function, not replacing"))}function a(u,d,l){if(!u||!u[d]){n("no original function "+d+" to wrap");return}if(!l){n("no wrapper function"),n(new Error().stack);return}if(!e(u[d])||!e(l)){n("original object and wrapper must be functions");return}var h=u[d],p=l(h,d);return o(p,"__original",h),o(p,"__unwrap",function(){u[d]===p&&o(u,d,h)}),o(p,"__wrapped",!0),o(u,d,p),p}function c(u,d,l){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(d&&Array.isArray(d))){n("must provide one or more functions to wrap on modules");return}u.forEach(function(h){d.forEach(function(p){a(h,p,l)})})}function f(u,d){if(!u||!u[d]){n("no function to unwrap."),n(new Error().stack);return}if(!u[d].__unwrap)n("no original to unwrap to -- has "+d+" already been unwrapped?");else return u[d].__unwrap()}function s(u,d){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(d&&Array.isArray(d))){n("must provide one or more functions to unwrap on modules");return}u.forEach(function(l){d.forEach(function(h){f(l,h)})})}i.wrap=a,i.massWrap=c,i.unwrap=f,i.massUnwrap=s,r.exports=i}}),ct={};gr(ct,{__assign:()=>be,__asyncDelegator:()=>Lr,__asyncGenerator:()=>Rr,__asyncValues:()=>kr,__await:()=>ie,__awaiter:()=>Tr,__classPrivateFieldGet:()=>Ur,__classPrivateFieldSet:()=>Hr,__createBinding:()=>Ar,__decorate:()=>_r,__exportStar:()=>Or,__extends:()=>wr,__generator:()=>Cr,__importDefault:()=>Mr,__importStar:()=>jr,__makeTemplateObject:()=>Nr,__metadata:()=>Sr,__param:()=>Er,__read:()=>$t,__rest:()=>br,__spread:()=>Pr,__spreadArrays:()=>Ir,__values:()=>ut});function wr(t,r){we(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function br(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e}function _r(t,r,e,n){var o=arguments.length,i=o<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,e,n);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(i=(o<3?a(i):o>3?a(r,e,i):a(r,e))||i);return o>3&&i&&Object.defineProperty(r,e,i),i}function Er(t,r){return function(e,n){r(e,n,t)}}function Sr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function Tr(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})}function Cr(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Ar(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}function Or(t,r){for(var e in t)e!=="default"&&!r.hasOwnProperty(e)&&(r[e]=t[e])}function ut(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){a={error:c}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return i}function Pr(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat($t(arguments[r]));return t}function Ir(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;for(var n=Array(t),o=0,r=0;r<e;r++)for(var i=arguments[r],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}function ie(t){return this instanceof ie?(this.v=t,this):new ie(t)}function Rr(t,r,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,r||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(l){n[l]&&(o[l]=function(h){return new Promise(function(p,v){i.push([l,h,p,v])>1||c(l,h)})})}function c(l,h){try{f(n[l](h))}catch(p){d(i[0][3],p)}}function f(l){l.value instanceof ie?Promise.resolve(l.value.v).then(s,u):d(i[0][2],l)}function s(l){c("next",l)}function u(l){c("throw",l)}function d(l,h){l(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Lr(t){var r,e;return r={},n("next"),n("throw",function(o){throw o}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(o,i){r[o]=t[o]?function(a){return(e=!e)?{value:ie(t[o](a)),done:o==="return"}:i?i(a):a}:i}}function kr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],e;return r?r.call(t):(t=typeof ut=="function"?ut(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(a){return new Promise(function(c,f){a=t[i](a),o(c,f,a.done,a.value)})}}function o(i,a,c,f){Promise.resolve(f).then(function(s){i({value:s,done:c})},a)}}function Nr(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function jr(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)Object.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r.default=t,r}function Mr(t){return t&&t.__esModule?t:{default:t}}function Ur(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function Hr(t,r,e){if(!r.has(t))throw new TypeError("attempted to set private field on non-instance");return r.set(t,e),e}var we,be,Yt=vr({"node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js"(){we=function(t,r){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])},we(t,r)},be=function(){return be=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},be.apply(this,arguments)}}}),Jt=k({"node_modules/@aws-crypto/sha256-js/build/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1}}),xr=k({"node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=Jt(),e=function(){function n(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return n.prototype.update=function(o){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,a=o.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=o[i++],a--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var o=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(i.setUint8(this.bufferLength++,128),a%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var c=this.bufferLength;c<r.BLOCK_SIZE;c++)i.setUint8(c,0);this.hashBuffer(),this.bufferLength=0}for(var c=this.bufferLength;c<r.BLOCK_SIZE-8;c++)i.setUint8(c,0);i.setUint32(r.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),i.setUint32(r.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}for(var f=new Uint8Array(r.DIGEST_LENGTH),c=0;c<8;c++)f[c*4]=this.state[c]>>>24&255,f[c*4+1]=this.state[c]>>>16&255,f[c*4+2]=this.state[c]>>>8&255,f[c*4+3]=this.state[c]>>>0&255;return f},n.prototype.hashBuffer=function(){for(var o=this,i=o.buffer,a=o.state,c=a[0],f=a[1],s=a[2],u=a[3],d=a[4],l=a[5],h=a[6],p=a[7],v=0;v<r.BLOCK_SIZE;v++){if(v<16)this.temp[v]=(i[v*4]&255)<<24|(i[v*4+1]&255)<<16|(i[v*4+2]&255)<<8|i[v*4+3]&255;else{var g=this.temp[v-2],A=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[v-15];var j=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[v]=(A+this.temp[v-7]|0)+(j+this.temp[v-16]|0)}var m=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&l^~d&h)|0)+(p+(r.KEY[v]+this.temp[v]|0)|0)|0,y=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&f^c&s^f&s)|0;p=h,h=l,l=d,d=u+m|0,u=s,s=f,f=c,c=m+y|0}a[0]+=c,a[1]+=f,a[2]+=s,a[3]+=u,a[4]+=d,a[5]+=l,a[6]+=h,a[7]+=p},n}();t.RawSha256=e}}),Dr=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=n=>{const o=[];for(let i=0,a=n.length;i<a;i++){const c=n.charCodeAt(i);if(c<128)o.push(c);else if(c<2048)o.push(c>>6|192,c&63|128);else if(i+1<n.length&&(c&64512)===55296&&(n.charCodeAt(i+1)&64512)===56320){const f=65536+((c&1023)<<10)+(n.charCodeAt(++i)&1023);o.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else o.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(o)};t.fromUtf8=r;var e=n=>{let o="";for(let i=0,a=n.length;i<a;i++){const c=n[i];if(c<128)o+=String.fromCharCode(c);else if(192<=c&&c<224){const f=n[++i];o+=String.fromCharCode((c&31)<<6|f&63)}else if(240<=c&&c<365){const s="%"+[c,n[++i],n[++i],n[++i]].map(u=>u.toString(16)).join("%");o+=decodeURIComponent(s)}else o+=String.fromCharCode((c&15)<<12|(n[++i]&63)<<6|n[++i]&63)}return o};t.toUtf8=e}}),qr=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;function r(n){return new TextEncoder().encode(n)}t.fromUtf8=r;function e(n){return new TextDecoder("utf-8").decode(n)}t.toUtf8=e}}),Br=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=Dr(),e=qr(),n=i=>typeof TextEncoder=="function"?(0,e.fromUtf8)(i):(0,r.fromUtf8)(i);t.fromUtf8=n;var o=i=>typeof TextDecoder=="function"?(0,e.toUtf8)(i):(0,r.toUtf8)(i);t.toUtf8=o}}),Fr=k({"node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=Br(),e=typeof Buffer<"u"&&Buffer.from?function(o){return Buffer.from(o,"utf8")}:r.fromUtf8;function n(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)}t.convertToBuffer=n}}),Vr=k({"node_modules/@aws-crypto/util/build/isEmptyData.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0;function r(e){return typeof e=="string"?e.length===0:e.byteLength===0}t.isEmptyData=r}}),Gr=k({"node_modules/@aws-crypto/util/build/numToUint8.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0;function r(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=r}}),zr=k({"node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0;function r(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),o=0;o<e.length;)n[o]=e[o],o+=1;return n}return Uint32Array.from(e)}t.uint32ArrayFrom=r}}),Wr=k({"node_modules/@aws-crypto/util/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=Fr();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=Vr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=Gr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=zr();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),Xr=k({"node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=(Yt(),Kt(ct)),e=Jt(),n=xr(),o=Wr(),i=function(){function c(f){if(this.hash=new n.RawSha256,f){this.outer=new n.RawSha256;var s=a(f),u=new Uint8Array(e.BLOCK_SIZE);u.set(s);for(var d=0;d<e.BLOCK_SIZE;d++)s[d]^=54,u[d]^=92;this.hash.update(s),this.outer.update(u);for(var d=0;d<s.byteLength;d++)s[d]=0}}return c.prototype.update=function(f){if(!((0,o.isEmptyData)(f)||this.error))try{this.hash.update((0,o.convertToBuffer)(f))}catch(s){this.error=s}},c.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()},c.prototype.digest=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(f){return[2,this.digestSync()]})})},c}();t.Sha256=i;function a(c){var f=(0,o.convertToBuffer)(c);if(f.byteLength>e.BLOCK_SIZE){var s=new n.RawSha256;s.update(f),f=s.digest()}var u=new Uint8Array(e.BLOCK_SIZE);return u.set(f),u}}}),Kr=k({"node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=(Yt(),Kt(ct));r.__exportStar(Xr(),t)}}),oe=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const t=new oe({...this,headers:{...this.headers}});return t.query&&(t.query=$r(t.query)),t}};function $r(t){return Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{})}var ae=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}},Zt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Qt=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ft=function(t){return Zt(void 0,void 0,void 0,function(){var r;return Qt(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,r))]}})})},Yr=function(t){return Zt(void 0,void 0,void 0,function(){var r;return Qt(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,String.fromCharCode.apply(null,r)]}})})},lt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},dt=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Jr="POST",Zr="application/x-amz-json-1.1",Qr="https:",ei="AWSCognitoIdentityService.GetId",ti="AWSCognitoIdentityService.GetOpenIdToken",ni="AWSCognitoIdentityService.GetCredentialsForIdentity",ri=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},en=function(){function t(r){var e=this;this.getId=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ei,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=f.sent().response,[4,ft(a)];case 2:return[2,f.sent()];case 3:throw c=f.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(c));case 4:return[2]}})})},this.getOpenIdToken=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ti,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=f.sent().response,[4,ft(a)];case 2:return[2,f.sent()];case 3:throw c=f.sent(),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(c));case 4:return[2]}})})},this.getCredentialsForIdentity=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c,f,s,u,d,l;return dt(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(ni,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=h.sent().response,[4,ft(a)];case 2:return c=h.sent().Credentials,f=c.AccessKeyId,s=c.Expiration,u=c.SecretAccessKey,d=c.SessionToken,[2,{accessKeyId:f,secretAccessKey:u,sessionToken:d,expiration:new Date(s*1e3)}];case 3:throw l=h.sent(),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(l));case 4:return[2]}})})},this.getHttpRequest=function(n,o){return new oe({method:Jr,headers:{"content-type":Zr,"x-amz-target":n},protocol:Qr,hostname:e.hostname,body:o})},this.hostname="cognito-identity.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),F=t=>encodeURIComponent(t).replace(/[!'()*]/g,ii),ii=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function ht(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=F(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${F(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${F(n)}`),r.push(o)}}return r.join("&")}function oi(t=0){return new Promise((r,e)=>{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",e(n)},t)})}var pt=class{constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const e=this.config.requestTimeout;if(r?.aborted){const d=new Error("Request aborted");return d.name="AbortError",Promise.reject(d)}let n=t.path;if(t.query){const d=ht(t.query);d&&(n+=`?${d}`)}const{port:o,method:i}=t,a=`${t.protocol}//${t.hostname}${o?`:${o}`:""}${n}`,f={body:i==="GET"||i==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:i};typeof AbortController<"u"&&(f.signal=r);const s=new Request(a,f),u=[fetch(s).then(d=>{const l=d.headers,h={};for(const v of l.entries())h[v[0]]=v[1];return d.body!==void 0?{response:new ae({headers:h,statusCode:d.status,body:d.body})}:d.blob().then(v=>({response:new ae({headers:h,statusCode:d.status,body:v})}))}),oi(e)];return r&&u.push(new Promise((d,l)=>{r.onabort=()=>{const h=new Error("Request aborted");h.name="AbortError",l(h)}})),Promise.race(u)}},X={},se=new Array(64);for(let t=0,r="A".charCodeAt(0),e="Z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r);X[n]=t,se[t]=n}for(let t=0,r="a".charCodeAt(0),e="z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r),o=t+26;X[n]=o,se[o]=n}for(let t=0;t<10;t++){X[t.toString(10)]=t+52;const r=t.toString(10),e=t+52;X[r]=e,se[e]=r}X["+"]=62,se[62]="+",X["/"]=63,se[63]="/";var _e=function(){return _e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},_e.apply(this,arguments)},ai=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},si=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ci="POST",ui="application/x-www-form-urlencoded",fi="https:",li="AssumeRoleWithWebIdentity",di="2011-06-15",hi=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return ai(e,void 0,void 0,function(){var o,i,a,c,f,s;return si(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=_e(_e({},n),{Action:li,Version:di}),i=new URLSearchParams(Object.entries(o)).toString(),a=new oe({method:ci,headers:{"content-type":ui,host:this.hostname},protocol:fi,hostname:this.hostname,body:i}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=u.sent().response,[4,Yr(c)];case 2:return f=u.sent(),[2,{accessKeyId:f.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:f.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:f.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(f.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw s=u.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(s));case 4:return[2]}})})},this.hostname="sts.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),Ee="cwr_c",tn="cwr_s",nn="cwr_u",rn=3e4,pi="arw-module",Se=function(){return Se=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Se.apply(this,arguments)},Te=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Ce=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},vi=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Te(e,void 0,void 0,function(){return Ce(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Te(e,void 0,void 0,function(){var o=this;return Ce(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Te(e,void 0,void 0,function(){var o=this;return Ce(this,function(i){return[2,new Promise(function(a,c){var f;try{f=JSON.parse(localStorage.getItem(Ee))}catch{return c()}if(o.credentials=Se(Se({},f),{expiration:new Date(f.expiration)}),o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Te(e,void 0,void 0,function(){var o=this;return Ce(this,function(i){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(Ee,JSON.stringify(a))}catch{}return a})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.stsClient=new hi({fetchRequestHandler:new pt,region:n}),this.cognitoIdentityClient=new en({fetchRequestHandler:new pt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-rn);return new Date>r},t}(),Ae=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Oe=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},gi=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){return Oe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,new Promise(function(a,c){var f;try{f=JSON.parse(localStorage.getItem(Ee))}catch{c()}if(f.expiration=new Date(f.expiration),o.credentials=f,o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o,i=this;return Oe(this,function(a){return o=ri({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(c){i.credentials=c;try{localStorage.setItem(Ee,JSON.stringify(c))}catch{}return c})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.cognitoIdentityClient=new en({fetchRequestHandler:new pt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-rn);return new Date>r},t}(),U="com.amazon.rum",mi="com.amazonaws.rum",Pe="".concat(U,".http_event"),on="".concat(U,".xray_trace_event"),yi="".concat(U,".largest_contentful_paint_event"),wi="".concat(U,".first_input_delay_event"),bi="".concat(U,".cumulative_layout_shift_event"),vt="".concat(U,".performance_navigation_event"),_i="".concat(U,".performance_resource_event"),Ei="".concat(U,".dom_event"),Si="".concat(U,".js_error_event"),Ti="".concat(U,".page_view_event"),V=function(){function t(r){this.enabled=!0,this.pluginId=t.generatePluginId(r)}return t.generatePluginId=function(r){return"".concat(t.idPrefix,".").concat(r)},t.prototype.load=function(r){var e;this.context=r,(e=this.onload)===null||e===void 0||e.call(this)},t.prototype.getPluginId=function(){return this.pluginId},t.idPrefix=mi,t}(),Ci=function(){function t(r){this.context=r,this.plugins=new Map}return t.prototype.addPlugin=function(r){var e=r.getPluginId();if(this.hasPlugin(e))throw new Error('Plugin "'.concat(e,'" already defined in the PluginManager'));this.plugins.set(e,r),r.load(this.context)},t.prototype.updatePlugin=function(r,e){var n,o=this.getPlugin(r);(n=o?.update)===null||n===void 0||n.call(o,e)},t.prototype.enable=function(){this.plugins.forEach(function(r){return r.enable()})},t.prototype.disable=function(){this.plugins.forEach(function(r){return r.disable()})},t.prototype.hasPlugin=function(r){return Boolean(this.getPlugin(r))},t.prototype.record=function(r,e){var n=this.getPlugin(r);if(n?.record instanceof Function)n.record(e);else throw new Error("AWS RUM Client record: Invalid plugin ID")},t.prototype.getPlugin=function(r){var e;return(e=this.plugins.get(r))!==null&&e!==void 0?e:this.plugins.get(V.generatePluginId(r))},t}(),Ai=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),G=function(){return G=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},G.apply(this,arguments)},an="dom-event",Oi={interactionId:function(){return""},enableMutationObserver:!1,events:[]},Pi=function(t){Ai(r,t);function r(e){var n=t.call(this,an)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=G(G({},Oi),e),n}return r.getElementInfo=function(e){var n={name:"UNKNOWN"};return e.target instanceof Node&&(n.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(n.id=e.target.id),n},r.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)},r.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},r.prototype.update=function(e){var n=this;e.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},r.prototype.onload=function(){this.enable()},r.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(n){return e.removeEventHandler(n)})},r.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(n){return e.addEventHandler(n)})},r.prototype.getEventListener=function(e){var n=this;return function(o){var i,a=r.getElementInfo(o),c=n.config.interactionId(o),f=G(G(G({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),c?{interactionId:c}:{}),e?{cssLocator:e}:{});!((i=n.context)===null||i===void 0)&&i.record&&n.context.record(Ei,f)}},r.prototype.addEventHandler=function(e){var n=e.event,o=this.getEventListener(e.cssLocator),i=[],a=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator){var c=document.querySelectorAll(e.cssLocator);c.forEach(function(s){i.push(s)})}else if(e.elementId){var f=document.getElementById(e.elementId);f&&i.push(f)}else e.element&&i.push(e.element);i.forEach(function(s){s.addEventListener(n,o),a.push({element:s,eventListener:o})}),this.eventListenerMap.set(e,a)},r.prototype.removeEventHandler=function(e){var n=this.eventListenerMap.get(e);n&&(n.forEach(function(o){var i=o.element,a=o.eventListener;i.removeEventListener(e.event,a)}),this.eventListenerMap.delete(e))},r.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},r}(V),Ii=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},Ri=function(t){var r={version:"1.0.0",type:"undefined",message:"undefined"};return t.type!==void 0&&(r.type=t.type),t.message!==void 0&&(r.message=t.message),t.filename!==void 0&&(r.filename=t.filename),t.lineno!==void 0&&(r.lineno=t.lineno),t.colno!==void 0&&(r.colno=t.colno),r},Li=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},ki=function(t,r,e){r.name&&(t.type=r.name),r.message&&(t.message=r.message),r.fileName&&(t.filename=r.fileName),r.lineNumber&&(t.lineno=r.lineNumber),r.columnNumber&&(t.colno=r.columnNumber),e&&r.stack&&(t.stack=r.stack.length>e?r.stack.substring(0,e)+"...":r.stack)},sn=function(t){return t!==Object(t)&&t!==void 0&&t!==null},gt=function(t,r){var e=Ri(t),n=t.error;return Ii(n)?ki(e,n,r):sn(n)&&Li(e,n),e},Ni=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ie=function(){return Ie=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ie.apply(this,arguments)},cn="js-error",ji={stackTraceLength:1e3,ignore:function(){return!1}},Mi=function(t){Ni(r,t);function r(e){var n=t.call(this,cn)||this;return n.eventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent(o)},n.promiseRejectEventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent({type:o.type,error:o.reason})},n.config=Ie(Ie({},ji),e),n}return r.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},r.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},r.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},r.prototype.onload=function(){this.addEventHandler()},r.prototype.recordJsErrorEvent=function(e){var n;(n=this.context)===null||n===void 0||n.record(Si,gt(e,this.config.stackTraceLength))},r.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},r.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},r}(V),un=function(t,r,e,n,o){var i=t+"=";i+=r||"",o!==void 0?i+="; Expires=".concat(o.toUTCString()):n!==void 0&&(i+="; Expires=".concat(Ui(n).toUTCString())),i+="; Domain=".concat(e.domain),i+="; Path=".concat(e.path),i+="; SameSite=".concat(e.sameSite),i+=e.secure?"; Secure":"",document.cookie=i},Ui=function(t){return new Date(new Date().getTime()+t*1e3)},fn=function(t){for(var r=document.cookie.split("; "),e=0,n=r;e<n.length;e++){var o=n[e],i=o.split("=");if(i[0]===t)return i[1]}return""},Re,Hi=new Uint8Array(16);function xi(){if(!Re&&(Re=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Re))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Re(Hi)}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 qi(t){return typeof t=="string"&&Di.test(t)}var Bi=qi,C=[];for(let t=0;t<256;++t)C.push((t+256).toString(16).slice(1));function ln(t,r=0){return(C[t[r+0]]+C[t[r+1]]+C[t[r+2]]+C[t[r+3]]+"-"+C[t[r+4]]+C[t[r+5]]+"-"+C[t[r+6]]+C[t[r+7]]+"-"+C[t[r+8]]+C[t[r+9]]+"-"+C[t[r+10]]+C[t[r+11]]+C[t[r+12]]+C[t[r+13]]+C[t[r+14]]+C[t[r+15]]).toLowerCase()}function Fi(t){if(!Bi(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}var Vi=Fi;function Gi(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var zi="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Wi="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function dn(t,r,e){function n(o,i,a,c){var f;if(typeof o=="string"&&(o=Gi(o)),typeof i=="string"&&(i=Vi(i)),((f=i)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+o.length);if(s.set(i),s.set(o,i.length),s=e(s),s[6]=s[6]&15|r,s[8]=s[8]&63|128,a){c=c||0;for(let u=0;u<16;++u)a[c+u]=s[u];return a}return ln(s)}try{n.name=t}catch{}return n.DNS=zi,n.URL=Wi,n}function Xi(t){if(typeof t=="string"){const r=unescape(encodeURIComponent(t));t=new Uint8Array(r.length);for(let e=0;e<r.length;++e)t[e]=r.charCodeAt(e)}return Ki($i(Yi(t),t.length*8))}function Ki(t){const r=[],e=t.length*32,n="0123456789abcdef";for(let o=0;o<e;o+=8){const i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);r.push(a)}return r}function hn(t){return(t+64>>>9<<4)+14+1}function $i(t,r){t[r>>5]|=128<<r%32,t[hn(r)-1]=r;let e=1732584193,n=-271733879,o=-1732584194,i=271733878;for(let a=0;a<t.length;a+=16){const c=e,f=n,s=o,u=i;e=O(e,n,o,i,t[a],7,-680876936),i=O(i,e,n,o,t[a+1],12,-389564586),o=O(o,i,e,n,t[a+2],17,606105819),n=O(n,o,i,e,t[a+3],22,-1044525330),e=O(e,n,o,i,t[a+4],7,-176418897),i=O(i,e,n,o,t[a+5],12,1200080426),o=O(o,i,e,n,t[a+6],17,-1473231341),n=O(n,o,i,e,t[a+7],22,-45705983),e=O(e,n,o,i,t[a+8],7,1770035416),i=O(i,e,n,o,t[a+9],12,-1958414417),o=O(o,i,e,n,t[a+10],17,-42063),n=O(n,o,i,e,t[a+11],22,-1990404162),e=O(e,n,o,i,t[a+12],7,1804603682),i=O(i,e,n,o,t[a+13],12,-40341101),o=O(o,i,e,n,t[a+14],17,-1502002290),n=O(n,o,i,e,t[a+15],22,1236535329),e=P(e,n,o,i,t[a+1],5,-165796510),i=P(i,e,n,o,t[a+6],9,-1069501632),o=P(o,i,e,n,t[a+11],14,643717713),n=P(n,o,i,e,t[a],20,-373897302),e=P(e,n,o,i,t[a+5],5,-701558691),i=P(i,e,n,o,t[a+10],9,38016083),o=P(o,i,e,n,t[a+15],14,-660478335),n=P(n,o,i,e,t[a+4],20,-405537848),e=P(e,n,o,i,t[a+9],5,568446438),i=P(i,e,n,o,t[a+14],9,-1019803690),o=P(o,i,e,n,t[a+3],14,-187363961),n=P(n,o,i,e,t[a+8],20,1163531501),e=P(e,n,o,i,t[a+13],5,-1444681467),i=P(i,e,n,o,t[a+2],9,-51403784),o=P(o,i,e,n,t[a+7],14,1735328473),n=P(n,o,i,e,t[a+12],20,-1926607734),e=I(e,n,o,i,t[a+5],4,-378558),i=I(i,e,n,o,t[a+8],11,-2022574463),o=I(o,i,e,n,t[a+11],16,1839030562),n=I(n,o,i,e,t[a+14],23,-35309556),e=I(e,n,o,i,t[a+1],4,-1530992060),i=I(i,e,n,o,t[a+4],11,1272893353),o=I(o,i,e,n,t[a+7],16,-155497632),n=I(n,o,i,e,t[a+10],23,-1094730640),e=I(e,n,o,i,t[a+13],4,681279174),i=I(i,e,n,o,t[a],11,-358537222),o=I(o,i,e,n,t[a+3],16,-722521979),n=I(n,o,i,e,t[a+6],23,76029189),e=I(e,n,o,i,t[a+9],4,-640364487),i=I(i,e,n,o,t[a+12],11,-421815835),o=I(o,i,e,n,t[a+15],16,530742520),n=I(n,o,i,e,t[a+2],23,-995338651),e=R(e,n,o,i,t[a],6,-198630844),i=R(i,e,n,o,t[a+7],10,1126891415),o=R(o,i,e,n,t[a+14],15,-1416354905),n=R(n,o,i,e,t[a+5],21,-57434055),e=R(e,n,o,i,t[a+12],6,1700485571),i=R(i,e,n,o,t[a+3],10,-1894986606),o=R(o,i,e,n,t[a+10],15,-1051523),n=R(n,o,i,e,t[a+1],21,-2054922799),e=R(e,n,o,i,t[a+8],6,1873313359),i=R(i,e,n,o,t[a+15],10,-30611744),o=R(o,i,e,n,t[a+6],15,-1560198380),n=R(n,o,i,e,t[a+13],21,1309151649),e=R(e,n,o,i,t[a+4],6,-145523070),i=R(i,e,n,o,t[a+11],10,-1120210379),o=R(o,i,e,n,t[a+2],15,718787259),n=R(n,o,i,e,t[a+9],21,-343485551),e=x(e,c),n=x(n,f),o=x(o,s),i=x(i,u)}return[e,n,o,i]}function Yi(t){if(t.length===0)return[];const r=t.length*8,e=new Uint32Array(hn(r));for(let n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function x(t,r){const e=(t&65535)+(r&65535);return(t>>16)+(r>>16)+(e>>16)<<16|e&65535}function Ji(t,r){return t<<r|t>>>32-r}function Le(t,r,e,n,o,i){return x(Ji(x(x(r,t),x(n,i)),o),e)}function O(t,r,e,n,o,i,a){return Le(r&e|~r&n,t,r,o,i,a)}function P(t,r,e,n,o,i,a){return Le(r&n|e&~n,t,r,o,i,a)}function I(t,r,e,n,o,i,a){return Le(r^e^n,t,r,o,i,a)}function R(t,r,e,n,o,i,a){return Le(e^(r|~n),t,r,o,i,a)}var Zi=Xi;dn("v3",48,Zi);var Qi=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),pn={randomUUID:Qi};function eo(t,r,e){if(pn.randomUUID&&!r&&!t)return pn.randomUUID();t=t||{};const n=t.random||(t.rng||xi)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(let o=0;o<16;++o)r[e+o]=n[o];return r}return ln(n)}var ce=eo;function to(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}}function mt(t,r){return t<<r|t>>>32-r}function no(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const a=unescape(encodeURIComponent(t));t=[];for(let c=0;c<a.length;++c)t.push(a.charCodeAt(c))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const n=t.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let a=0;a<o;++a){const c=new Uint32Array(16);for(let f=0;f<16;++f)c[f]=t[a*64+f*4]<<24|t[a*64+f*4+1]<<16|t[a*64+f*4+2]<<8|t[a*64+f*4+3];i[a]=c}i[o-1][14]=(t.length-1)*8/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=(t.length-1)*8&4294967295;for(let a=0;a<o;++a){const c=new Uint32Array(80);for(let h=0;h<16;++h)c[h]=i[a][h];for(let h=16;h<80;++h)c[h]=mt(c[h-3]^c[h-8]^c[h-14]^c[h-16],1);let f=e[0],s=e[1],u=e[2],d=e[3],l=e[4];for(let h=0;h<80;++h){const p=Math.floor(h/20),v=mt(f,5)+to(p,s,u,d)+l+r[p]+c[h]>>>0;l=d,d=u,u=mt(s,30)>>>0,s=f,f=v}e[0]=e[0]+f>>>0,e[1]=e[1]+s>>>0,e[2]=e[2]+u>>>0,e[3]=e[3]+d>>>0,e[4]=e[4]+l>>>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 ro=no;dn("v5",80,ro);var io=st(mr()),ke=function(){return ke=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ke.apply(this,arguments)},Ne="00000000-0000-0000-0000-000000000000",je="unknown",oo="desktop",ao="web",so="com.amazon.rum.session_start_event",co=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:Ne,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return t.prototype.getSession=function(){return this.session.sessionId===Ne?this.createSession():this.session.sessionId!==Ne&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(r){this.attributes=ke(ke({},r),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:Ne},t.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},t.prototype.initializeUser=function(){var r="";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()?(r=this.getUserIdCookie(),this.userId=r||ce(),this.createOrRenewUserCookie(r,this.userExpiry)):this.userId=ce()},t.prototype.createOrRenewSessionCookie=function(r,e){btoa&&un(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){un(nn,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return fn(nn)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=fn(this.sessionCookieName());if(r&&atob)try{this.session=JSON.parse(atob(r)),this.pageManager.resumeSession(this.session.page)}catch{}}},t.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},t.prototype.createSession=function(){this.session={sessionId:ce(),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,so,{version:"1.0.0"})},t.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},t.prototype.collectAttributes=function(){var r=new io.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:je,browserVersion:r.browser.version?r.browser.version:je,osName:r.os.name?r.os.name:je,osVersion:r.os.version?r.os.version:je,deviceType:r.device.type?r.device.type:oo,platformType:ao,domain:window.location.hostname}},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},t.prototype.sessionCookieName=function(){return this.config.cookieAttributes.unique?"".concat(tn,"_").concat(this.appMonitorDetails.id):tn},t}(),Me=st(yr()),uo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ue=function(t){uo(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.enable=e.patch.bind(e,!0),e.disable=e.patch.bind(e,!1),e.enabled=!1,e}return r.prototype.patchAll=function(){for(var e=Me.wrap.bind(Me),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name,i.wrapper())}},r.prototype.unpatchAll=function(){for(var e=Me.unwrap.bind(Me),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name)}},r.prototype.patch=function(e){e===void 0&&(e=!0),this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())},r}(V),fo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),lo=function(t){fo(r,t);function r(e,n,o){var i=t.call(this,"virtual-page-load-timer")||this;return i.sendWrapper=function(){var a=i;return function(c){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),c.apply(this,arguments)}}},i.endTracking=function(a){var c=Date.now(),f=a.target;f.removeEventListener("loadend",i.endTracking),i.removeXhr(f,c)},i.fetch=function(a,c,f){return a.apply(c,f).catch(function(s){throw s}).finally(i.decrementFetchCounter)},i.fetchWrapper=function(){var a=i;return function(c){return function(f,s){return a.fetchCounter+=1,a.fetch(c,this,arguments)}}},i.decrementFetchCounter=function(){i.isPageLoaded||(i.latestEndTime=Date.now()),i.fetchCounter-=1},i.checkLoadStatus=function(){i.ongoingRequests.size===0&&i.fetchCounter===0&&(clearInterval(i.periodicCheckerId),clearTimeout(i.timeoutCheckerId),i.domMutationObserver.disconnect(),i.recordRouteChangeNavigationEvent(i.pageManager.getPage()),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.isPageLoaded=!0)},i.declareTimeout=function(){clearInterval(i.periodicCheckerId),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver.disconnect(),i.isPageLoaded=!0},i.resetInterval=function(){i.latestEndTime=Date.now(),clearInterval(i.periodicCheckerId),i.periodicCheckerId=setInterval(i.checkLoadStatus,i.config.routeChangeComplete)},i.moveItemsFromBuffer=function(a){i.ongoingRequests.add(a)},i.updateLatestInteractionTime=function(a){i.latestInteractionTime=Date.now()},i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver=new MutationObserver(i.resetInterval),i.ongoingRequests=new Set,i.requestBuffer=new Set,i.fetchCounter=0,i.isPageLoaded=!0,i.latestEndTime=0,i.latestInteractionTime=0,i.config=n,i.pageManager=e,i.record=o,i.enable(),document.addEventListener("mousedown",i.updateLatestInteractionTime),document.addEventListener("keydown",i.updateLatestInteractionTime),i}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.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()},r.prototype.recordXhr=function(e){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?this.ongoingRequests.add(e):this.requestBuffer.add(e)},r.prototype.removeXhr=function(e,n){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=n):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},r.prototype.recordRouteChangeNavigationEvent=function(e){var n={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(vt,n)},r}(Ue),He=function(){return He=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},He.apply(this,arguments)},ho=function(){function t(r,e){this.TIMEOUT=1e3,this.config=r,this.record=e,this.page=void 0,this.resumed=!1,this.recordInteraction=!1,this.virtualPageLoadTimer=new lo(this,r,e)}return t.prototype.getPage=function(){return this.page},t.prototype.getAttributes=function(){return this.attributes},t.prototype.resumeSession=function(r){this.recordInteraction=!0,r&&(this.page=r,this.resumed=!0)},t.prototype.recordPageView=function(r){var e;if(typeof r=="string"?e=r:e=r.pageId,this.useCookies()&&(this.recordInteraction=!0),!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(this.page,e);else return;this.collectAttributes(this.page,typeof r=="object"?r:void 0),this.recordPageViewEvent(this.page)},t.prototype.createNextPage=function(r,e){var n=Date.now(),o=this.virtualPageLoadTimer.latestInteractionTime;!this.resumed&&n-o<=this.TIMEOUT&&(n=o,this.virtualPageLoadTimer.startTiming()),this.timeOnParentPage=n-r.start,this.resumed=!1,this.page={pageId:e,parentPageId:r.pageId,interaction:r.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:n}},t.prototype.createLandingPage=function(r){this.page={pageId:r,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}},t.prototype.collectAttributes=function(r,e){this.attributes={title:document.title,pageId:r.pageId},this.recordInteraction&&(this.attributes.interaction=r.interaction,r.parentPageId!==void 0&&(this.attributes.parentPageId=r.parentPageId)),e?.pageTags&&(this.attributes.pageTags=e.pageTags),e?.pageAttributes&&(this.attributes=He(He({},e.pageAttributes),this.attributes))},t.prototype.createPageViewEvent=function(r){var e={version:"1.0.0",pageId:r.pageId};return this.recordInteraction&&(e.interaction=r.interaction,e.pageInteractionId=r.pageId+"-"+r.interaction,r.parentPageId!==void 0&&(e.parentPageInteractionId=r.parentPageId+"-"+(r.interaction-1),e.timeOnParentPage=this.timeOnParentPage),e.referrer=document.referrer,e.referrerDomain=this.getDomainFromReferrer()),e},t.prototype.recordPageViewEvent=function(r){this.record(Ti,this.createPageViewEvent(r))},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.getDomainFromReferrer=function(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}},t}(),ue=function(){return ue=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ue.apply(this,arguments)},po="1.13.4",vo=function(){function t(r,e){var n=this;this.events=[],this.recordPageView=function(o){n.isCurrentUrlAllowed()&&n.pageManager.recordPageView(o)},this.recordEvent=function(o,i){if(n.enabled&&n.isCurrentUrlAllowed()){var a=n.sessionManager.getSession();n.sessionManager.incrementSessionEventCount(),n.canRecord(a)&&n.addRecordToCache(o,i)}},this.getSession=function(){if(n.isCurrentUrlAllowed())return n.sessionManager.getSession()},this.recordSessionInitEvent=function(o,i,a){n.enabled&&(n.sessionManager.incrementSessionEventCount(),n.canRecord(o)&&n.addRecordToCache(i,a))},this.canRecord=function(o){return o.record&&(o.eventCount<=n.config.sessionEventLimit||n.config.sessionEventLimit<=0)},this.addRecordToCache=function(o,i){if(n.enabled){n.events.length===n.config.eventCacheSize&&n.events.shift();var a=ue(ue(ue({},n.sessionManager.getAttributes()),n.pageManager.getAttributes()),{version:"1.0.0","aws:client":n.installationMethod,"aws:clientVersion":po});n.events.push({details:JSON.stringify(i),id:ce(),metadata:JSON.stringify(a),timestamp:new Date,type:o})}},this.appMonitorDetails=r,this.config=e,this.enabled=!0,this.pageManager=new ho(e,this.recordEvent),this.sessionManager=new co(r,e,this.recordSessionInitEvent,this.pageManager),this.installationMethod=e.client}return t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.hasEvents=function(){return this.events.length!==0},t.prototype.getEventBatch=function(){var r=[];return this.events.length===0||(this.events.length<=this.config.batchLimit?(r=this.events,this.events=[]):r=this.events.splice(0,this.config.batchLimit)),r},t.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},t.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},t.prototype.addSessionAttributes=function(r){this.sessionManager.addSessionAttributes(r)},t.prototype.isCurrentUrlAllowed=function(){var r=document.location.toString(),e=this.config.pagesToExclude.some(function(o){return o.test(r)}),n=this.config.pagesToInclude.some(function(o){return o.test(r)});return n&&!e},t}(),vn={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),vn[t]=r}function z(t){let r="";for(let e=0;e<t.byteLength;e++)r+=vn[t[e]];return r}var gn=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},go=t=>new TextEncoder().encode(t),fe=t=>typeof t=="string"?go(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),mo="X-Amz-Algorithm",yo="X-Amz-Credential",mn="X-Amz-Date",wo="X-Amz-SignedHeaders",bo="X-Amz-Expires",yn="X-Amz-Signature",wn="X-Amz-Security-Token",bn="authorization",_n=mn.toLowerCase(),_o="date",Eo=[bn,_n,_o],So=yn.toLowerCase(),yt="x-amz-content-sha256",To=wn.toLowerCase(),Co={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},Ao=/^proxy-/,Oo=/^sec-/,wt="AWS4-HMAC-SHA256",Po="AWS4-HMAC-SHA256-PAYLOAD",Io="UNSIGNED-PAYLOAD",Ro=50,En="aws4_request",Lo=60*60*24*7,xe={},bt=[],_t=(t,r,e)=>`${t}/${r}/${e}/${En}`,ko=async(t,r,e,n,o)=>{const i=await Sn(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${z(i)}:${r.sessionToken}`;if(a in xe)return xe[a];for(bt.push(a);bt.length>Ro;)delete xe[bt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const f of[e,n,o,En])c=await Sn(t,c,f);return xe[a]=c},Sn=(t,r,e)=>{const n=new t(r);return n.update(fe(e)),n.digest()},Tn=({headers:t},r,e)=>{const n={};for(const o of Object.keys(t).sort()){if(t[o]==null)continue;const i=o.toLowerCase();(i in Co||r?.has(i)||Ao.test(i)||Oo.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},No=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===So)continue;r.push(n);const o=t[n];typeof o=="string"?e[n]=`${F(n)}=${F(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((i,a)=>i.concat([`${F(n)}=${F(a)}`]),[]).join("&"))}return r.map(n=>e[n]).filter(n=>n).join("&")},jo=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",Et=async({headers:t,body:r},e)=>{for(const n of Object.keys(t))if(n.toLowerCase()===yt)return t[n];if(r==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof r=="string"||ArrayBuffer.isView(r)||jo(r)){const n=new e;return n.update(fe(r)),z(await n.digest())}return Io},Mo=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},Cn=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?Uo(r):void 0}),Uo=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Ho=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():Cn(t);for(const o of Object.keys(e)){const i=o.toLowerCase();i.slice(0,6)==="x-amz-"&&!r.unhoistableHeaders?.has(i)&&(n[o]=e[o],delete e[o])}return{...t,headers:e,query:n}},An=t=>{t=typeof t.clone=="function"?t.clone():Cn(t);for(const r of Object.keys(t.headers))Eo.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},xo=t=>Do(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Do=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,qo=class{constructor({applyChecksum:t,credentials:r,region:e,service:n,sha256:o,uriEscapePath:i=!0}){this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=gn(e),this.credentialProvider=gn(r)}async presign(t,r={}){const{signingDate:e=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:c,signingService:f}=r,s=await this.credentialProvider();this.validateResolvedCredentials(s);const u=c??await this.regionProvider(),{longDate:d,shortDate:l}=De(e);if(n>Lo)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const h=_t(l,u,f??this.service),p=Ho(An(t),{unhoistableHeaders:i});s.sessionToken&&(p.query[wn]=s.sessionToken),p.query[mo]=wt,p.query[yo]=`${s.accessKeyId}/${h}`,p.query[mn]=d,p.query[bo]=n.toString(10);const v=Tn(p,o,a);return p.query[wo]=On(v),p.query[yn]=await this.getSignature(d,h,this.getSigningKey(s,u,l,f),this.createCanonicalRequest(p,v,await Et(t,this.sha256))),p}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:e=new Date,priorSignature:n,signingRegion:o,signingService:i}){const a=o??await this.regionProvider(),{shortDate:c,longDate:f}=De(e),s=_t(c,a,i??this.service),u=await Et({headers:{},body:r},this.sha256),d=new this.sha256;d.update(t);const l=z(await d.digest()),h=[Po,f,s,n,l,u].join(`
|
|
2
|
+
`);return this.signString(h,{signingDate:e,signingRegion:a,signingService:i})}async signString(t,{signingDate:r=new Date,signingRegion:e,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=e??await this.regionProvider(),{shortDate:a}=De(r),c=new this.sha256(await this.getSigningKey(o,i,a,n));return c.update(fe(t)),z(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:e,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const c=o??await this.regionProvider(),f=An(t),{longDate:s,shortDate:u}=De(r),d=_t(u,c,i??this.service);f.headers[_n]=s,a.sessionToken&&(f.headers[To]=a.sessionToken);const l=await Et(f,this.sha256);!Mo(yt,f.headers)&&this.applyChecksum&&(f.headers[yt]=l);const h=Tn(f,n,e),p=await this.getSignature(s,d,this.getSigningKey(a,c,u,i),this.createCanonicalRequest(f,h,l));return f.headers[bn]=`${wt} Credential=${a.accessKeyId}/${d}, SignedHeaders=${On(h)}, Signature=${p}`,f}createCanonicalRequest(t,r,e){const n=Object.keys(r).sort();return`${t.method}
|
|
3
3
|
${this.getCanonicalPath(t)}
|
|
4
|
-
${
|
|
4
|
+
${No(t)}
|
|
5
5
|
${n.map(o=>`${o}:${r[o]}`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
|
|
8
8
|
${n.join(";")}
|
|
9
|
-
${e}`}async createStringToSign(t,r,e){const n=new this.sha256;n.update(
|
|
9
|
+
${e}`}async createStringToSign(t,r,e){const n=new this.sha256;n.update(fe(e));const o=await n.digest();return`${wt}
|
|
10
10
|
${t}
|
|
11
11
|
${r}
|
|
12
|
-
${W(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const r=[];for(const o of t.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));const e=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return encodeURIComponent(e).replace(/%2F/g,"/")}return t}async getSignature(t,r,e,n){const o=await this.createStringToSign(t,r,n),i=new this.sha256(await e);return i.update(de(o)),W(await i.digest())}getSigningKey(t,r,e,n){return Io(this.sha256,t,e,r,n||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},De=t=>{const r=jo(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},On=t=>Object.keys(t).sort().join(";"),Pn=st(Kr()),Y=function(){return Y=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Y.apply(this,arguments)},qe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Be=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},xo="rum",Do="POST",qo="application/json",Bo="text/plain;charset=UTF-8",Fo={expiresIn:60},Vo=function(){function t(r){var e=this;this.sendFetch=function(n){return qe(e,void 0,void 0,function(){var o,i,a;return Be(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,qo)];case 1:return o=c.sent(),i=new se(o),this.awsSigV4?[4,this.awsSigV4.sign(i)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.fetchRequestHandler.handle(i),[2,a]}})})},this.sendBeacon=function(n){return qe(e,void 0,void 0,function(){var o,i,a;return Be(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,Bo)];case 1:return o=c.sent(),i=new se(o),this.awsSigV4?[4,this.awsSigV4.presign(i,Fo)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.beaconRequestHandler.handle(i),[2,a]}})})},this.getHttpRequestOptions=function(n,o){return qe(e,void 0,void 0,function(){var i,a,c,f,s,u,d,l;return Be(this,function(p){switch(p.label){case 0:return i=JSON.stringify(Go(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:Do,protocol:this.config.endpoint.protocol,headers:{"content-type":o,host:this.config.endpoint.host},hostname:this.config.endpoint.hostname,path:"".concat(a,"/appmonitors/").concat(n.AppMonitorDetails.id),body:i},this.awsSigV4?(f=[Y({},c)],d={},s=[Y({},c.headers)],l={},u="X-Amz-Content-Sha256",[4,Xo(i)]):[3,2];case 1:return[2,Y.apply(void 0,f.concat([(d.headers=Y.apply(void 0,s.concat([(l[u]=p.sent(),l)])),d)]))];case 2:return[2,c]}})})},this.config=r,r.credentials&&(this.awsSigV4=new Uo({applyChecksum:!0,credentials:r.credentials,region:r.region,service:xo,uriEscapePath:!0,sha256:Pn.Sha256}))}return t}(),Go=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(zo(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},zo=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},Xo=function(t){return qe(void 0,void 0,void 0,function(){var r,e;return Be(this,function(n){switch(n.label){case 0:return r=new Pn.Sha256,r.update(t),e=W,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})},Wo=function(){function t(){}return t.prototype.handle=function(r){var e=this.sendBeacon(r);return new Promise(function(n,o){e?n({response:new ce({statusCode:200})}):o()})},t.prototype.sendBeacon=function(r){var e=r.path;if(r.query){var n=ht(r.query);n&&(e+="?".concat(n))}var o=r.port,i="".concat(r.protocol,"//").concat(r.hostname).concat(o?":".concat(o):"").concat(e);return navigator.sendBeacon(i,r.body)},t}(),Ko=function(t){return t===void 0&&(t=0),new Promise(function(r,e){t&&setTimeout(function(){var n=new Error("Request did not complete within ".concat(t," ms"));n.name="TimeoutError",e(n)},t)})},$o=function(){function t(r){var e=r===void 0?{}:r,n=e.fetchFunction,o=e.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return t.prototype.destroy=function(){},t.prototype.handle=function(r,e){var n=e===void 0?{}:e,o=n.abortSignal,i=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var c=r.path;if(r.query){var f=ht(r.query);f&&(c+="?".concat(f))}var s=r.port,u=r.method,d="".concat(r.protocol,"//").concat(r.hostname).concat(s?":".concat(s):"").concat(c),l=u==="GET"||u==="HEAD"?void 0:r.body,p={body:l,headers:new Headers(r.headers),method:u};typeof AbortController<"u"&&(p.signal=o);var h=new Request(d,p),v=[this.fetchFunction.apply(window,[h]).then(function(g){for(var T=g.headers,A={},m=0,y=T.entries();m<y.length;m++){var O=y[m];A[O[0]]=O[1]}var D=g.body!==void 0;return D?{response:new ce({headers:A,statusCode:g.status,body:g.body})}:g.blob().then(function(Ye){return{response:new ce({headers:A,statusCode:g.status,body:Ye})}})}),Ko(i)];return o&&v.push(new Promise(function(g,T){o.onabort=function(){var A=new Error("Request aborted");A.name="AbortError",T(A)}})),Promise.race(v)},t}(),In=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Rn=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Yo=function(){function t(r,e,n){n===void 0&&(n=function(o){return o*2e3}),this.isStatusCode2xx=function(o){return o>=200&&o<300},this.handler=r,this.retries=e,this.backoff=n}return t.prototype.handle=function(r){return In(this,void 0,void 0,function(){var e,n,o;return Rn(this,function(i){switch(i.label){case 0:e=this.retries,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,4,,6]),[4,this.handler.handle(r)];case 3:if(n=i.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error("".concat(n.response.statusCode));case 4:if(o=i.sent(),!e)throw o;return e--,[4,this.sleep(this.backoff(this.retries-e))];case 5:return i.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},t.prototype.sleep=function(r){return In(this,void 0,void 0,function(){return Rn(this,function(e){return[2,new Promise(function(n){return setTimeout(n,r)})]})})},t}(),Fe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Ve=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ln="CWR: Cannot dispatch; no AWS credentials.",Jo=function(){function t(r,e,n,o){var i=this;this.dispatchFetch=function(){return Fe(i,void 0,void 0,function(){return Ve(this,function(a){return this.doRequest()?[2,this.rum.sendFetch(this.createRequest()).catch(this.handleReject)]:[2]})})},this.dispatchBeacon=function(){return Fe(i,void 0,void 0,function(){var a,c=this;return Ve(this,function(f){return this.doRequest()?(a=this.createRequest(),[2,this.rum.sendBeacon(a).catch(function(){return c.rum.sendFetch(a)})]):[2]})})},this.dispatchFetchFailSilent=function(){return Fe(i,void 0,void 0,function(){return Ve(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return Fe(i,void 0,void 0,function(){return Ve(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw i.disable(),a},this.defaultClientBuilder=function(a,c,f){return new Vo({fetchRequestHandler:new Yo(new $o({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new Wo,endpoint:a,region:c,credentials:f})},this.region=r,this.endpoint=e,this.eventCache=n,this.enabled=!0,this.buildClient=o.clientBuilder||this.defaultClientBuilder,this.config=o,this.startDispatchTimer(),o.signing?this.rum={sendFetch:function(){return Promise.reject(new Error(Ln))},sendBeacon:function(){return Promise.reject(new Error(Ln))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0)}return t.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},t.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1},t.prototype.setAwsCredentials=function(r){this.rum=this.buildClient(this.endpoint,this.region,r),typeof r=="function"&&r()},t.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.addEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},t.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.removeEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},t.prototype.doRequest=function(){return this.enabled&&this.eventCache.hasEvents()},t.prototype.createRequest=function(){return{BatchId:fe(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()}},t}(),Zo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qo="navigation",J="navigation",St="load",ea=function(t){Zo(r,t);function r(){var e=t.call(this,Qo)||this;return e.eventListener=function(){if(performance.getEntriesByType(J).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===J&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[J]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var n=function(){var o,i=performance.timing,a=i.navigationStart,c={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:i.unloadEventStart>0?i.unloadEventStart-a:0,promptForUnload:i.unloadEventEnd-i.unloadEventStart,redirectStart:i.redirectStart>0?i.redirectStart-a:0,redirectTime:i.redirectEnd-i.redirectStart,fetchStart:i.fetchStart>0?i.fetchStart-a:0,domainLookupStart:i.domainLookupStart>0?i.domainLookupStart-a:0,dns:i.domainLookupEnd-i.domainLookupStart,connectStart:i.connectStart>0?i.connectStart-a:0,connect:i.connectEnd-i.connectStart,secureConnectionStart:i.secureConnectionStart>0?i.secureConnectionStart-a:0,tlsTime:i.secureConnectionStart>0?i.connectEnd-i.secureConnectionStart:0,requestStart:i.requestStart>0?i.requestStart-a:0,timeToFirstByte:i.responseStart-i.requestStart,responseStart:i.responseStart>0?i.responseStart-a:0,responseTime:i.responseStart>0?i.responseEnd-i.responseStart:0,domInteractive:i.domInteractive>0?i.domInteractive-a:0,domContentLoadedEventStart:i.domContentLoadedEventStart>0?i.domContentLoadedEventStart-a:0,domContentLoaded:i.domContentLoadedEventEnd-i.domContentLoadedEventStart,domComplete:i.domComplete>0?i.domComplete-a:0,domProcessingTime:i.loadEventStart-i.responseEnd,loadEventStart:i.loadEventStart>0?i.loadEventStart-a:0,loadEventTime:i.loadEventEnd-i.loadEventStart,duration:i.loadEventEnd-i.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(pt,c)};setTimeout(n,0)},e.performanceNavigationEventHandlerTimingLevel2=function(n){var o,i={version:"1.0.0",initiatorType:n.initiatorType,navigationType:n.type,startTime:n.startTime,unloadEventStart:n.unloadEventStart,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectCount:n.redirectCount,redirectStart:n.redirectStart,redirectTime:n.redirectEnd-n.redirectStart,workerStart:n.workerStart,workerTime:n.workerStart>0?n.fetchStart-n.workerStart:0,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,dns:n.domainLookupEnd-n.domainLookupStart,nextHopProtocol:n.nextHopProtocol,connectStart:n.connectStart,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.duration,headerSize:n.transferSize-n.encodedBodySize,transferSize:n.transferSize,compressionRatio:n.encodedBodySize>0?n.decodedBodySize/n.encodedBodySize:0,navigationTimingLevel:2};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(pt,i)},e}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(St,this.eventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(St,this.eventListener))},r.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(J).length){var e=window.performance.getEntriesByType(J)[0];return Boolean(e.loadEventEnd)}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(J)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(St,this.eventListener)},r}(z),M;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(M||(M={}));var ta=[{name:M.STYLESHEET,list:["css","less"]},{name:M.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:M.SCRIPT,list:["js"]},{name:M.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:M.FONT,list:["fnt","fon","otf","ttf","woff"]}],kn=function(t){for(var r=t.length-1;r>0;r--){var e=Math.floor(Math.random()*(r+1)),n=t[r];t[r]=t[e],t[e]=n}},Tt=function(t){var r=t.substring(t.lastIndexOf("/")+1),e=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0],n=M.OTHER;return ta.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},na=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(){return Ge=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ge.apply(this,arguments)},ra="resource",Ct="resource",At="load",ia={eventLimit:10,recordAllTypes:[M.DOCUMENT,M.SCRIPT],sampleTypes:[M.STYLESHEET,M.IMAGE,M.FONT,M.OTHER]},oa=function(t){na(r,t);function r(e){var n=t.call(this,ra)||this;return n.resourceEventListener=function(o){var i=[],a=[],c=0,f=new PerformanceObserver(function(u){u.getEntries().filter(function(d){return d.entryType===Ct}).forEach(function(d){var l=Tt(d.name);n.config.recordAllTypes.includes(l)?i.push(d):n.config.sampleTypes.includes(l)&&a.push(d)})});f.observe({entryTypes:[Ct]});var s=performance.getEntriesByType(Ct);for(s!==void 0&&s.length>0&&s.forEach(function(u){var d=Tt(u.name);n.config.recordAllTypes.includes(d)?i.push(u):n.config.sampleTypes.includes(d)&&a.push(u)}),kn(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(kn(a);a.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(a.pop()),c++},n.recordResourceEvent=function(o){var i,a=/.*\/application\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/events/,c=new URL(o.name);if(!(c.host===n.context.config.endpointUrl.host&&a.test(c.pathname))&&!((i=n.context)===null||i===void 0)&&i.record){var f={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:Tt(o.name),transferSize:o.transferSize};n.context.config.recordResourceUrl&&(f.targetUrl=o.name),n.context.record(bi,f)}},n.config=Ge(Ge({},ia),e),n}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(At,this.resourceEventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(At,this.resourceEventListener))},r.prototype.onload=function(){window.addEventListener(At,this.resourceEventListener)},r}(z),B,he,Nn,ze,Mn=-1,ve=function(t){addEventListener("pageshow",function(r){r.persisted&&(Mn=r.timeStamp,t(r))},!0)},jn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Ot=function(){var t=jn();return t&&t.activationStart||0},F=function(t,r){var e=jn(),n="navigate";return Mn>=0?n="back-forward-cache":e&&(n=document.prerendering||Ot()>0?"prerender":document.wasDiscarded?"restore":e.type.replace(/_/g,"-")),{name:t,value:r===void 0?-1:r,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},Xe=function(t,r,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){r(o.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},e||{})),n}}catch{}},V=function(t,r,e,n){var o,i;return function(a){r.value>=0&&(a||n)&&((i=r.value-(o||0))||o===void 0)&&(o=r.value,r.delta=i,r.rating=function(c,f){return c>f[1]?"poor":c>f[0]?"needs-improvement":"good"}(r.value,e),t(r))}},Pt=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},It=function(t){var r=function(e){e.type!=="pagehide"&&document.visibilityState!=="hidden"||t(e)};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},Rt=function(t){var r=!1;return function(e){r||(t(e),r=!0)}},Z=-1,Hn=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},We=function(t){document.visibilityState==="hidden"&&Z>-1&&(Z=t.type==="visibilitychange"?t.timeStamp:0,aa())},Un=function(){addEventListener("visibilitychange",We,!0),addEventListener("prerenderingchange",We,!0)},aa=function(){removeEventListener("visibilitychange",We,!0),removeEventListener("prerenderingchange",We,!0)},Lt=function(){return Z<0&&(Z=Hn(),Un(),ve(function(){setTimeout(function(){Z=Hn(),Un()},0)})),{get firstHiddenTime(){return Z}}},kt=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},sa=function(t,r){r=r||{},kt(function(){var e,n=[1800,3e3],o=Lt(),i=F("FCP"),a=Xe("paint",function(c){c.forEach(function(f){f.name==="first-contentful-paint"&&(a.disconnect(),f.startTime<o.firstHiddenTime&&(i.value=Math.max(f.startTime-Ot(),0),i.entries.push(f),e(!0)))})});a&&(e=V(t,i,n,r.reportAllChanges),ve(function(c){i=F("FCP"),e=V(t,i,n,r.reportAllChanges),Pt(function(){i.value=performance.now()-c.timeStamp,e(!0)})}))})},ca=function(t,r){r=r||{},sa(Rt(function(){var e,n=[.1,.25],o=F("CLS",0),i=0,a=[],c=function(s){s.forEach(function(u){if(!u.hadRecentInput){var d=a[0],l=a[a.length-1];i&&u.startTime-l.startTime<1e3&&u.startTime-d.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u])}}),i>o.value&&(o.value=i,o.entries=a,e())},f=Xe("layout-shift",c);f&&(e=V(t,o,n,r.reportAllChanges),It(function(){c(f.takeRecords()),e(!0)}),ve(function(){i=0,o=F("CLS",0),e=V(t,o,n,r.reportAllChanges),Pt(function(){return e()})}),setTimeout(e,0))}))},pe={passive:!0,capture:!0},ua=new Date,xn=function(t,r){B||(B=r,he=t,Nn=new Date,qn(removeEventListener),Dn())},Dn=function(){if(he>=0&&he<Nn-ua){var t={entryType:"first-input",name:B.type,target:B.target,cancelable:B.cancelable,startTime:B.timeStamp,processingStart:B.timeStamp+he};ze.forEach(function(r){r(t)}),ze=[]}},fa=function(t){if(t.cancelable){var r=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(e,n){var o=function(){xn(e,n),a()},i=function(){a()},a=function(){removeEventListener("pointerup",o,pe),removeEventListener("pointercancel",i,pe)};addEventListener("pointerup",o,pe),addEventListener("pointercancel",i,pe)}(r,t):xn(r,t)}},qn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,fa,pe)})},la=function(t,r){r=r||{},kt(function(){var e,n=[100,300],o=Lt(),i=F("FID"),a=function(s){s.startTime<o.firstHiddenTime&&(i.value=s.processingStart-s.startTime,i.entries.push(s),e(!0))},c=function(s){s.forEach(a)},f=Xe("first-input",c);e=V(t,i,n,r.reportAllChanges),f&&It(Rt(function(){c(f.takeRecords()),f.disconnect()})),f&&ve(function(){var s;i=F("FID"),e=V(t,i,n,r.reportAllChanges),ze=[],he=-1,B=null,qn(addEventListener),s=a,ze.push(s),Dn()})})},Nt={},da=function(t,r){r=r||{},kt(function(){var e,n=[2500,4e3],o=Lt(),i=F("LCP"),a=function(s){var u=s[s.length-1];if(u){var d=Math.max(u.startTime-Ot(),0);d<o.firstHiddenTime&&(i.value=d,i.entries=[u],e())}},c=Xe("largest-contentful-paint",a);if(c){e=V(t,i,n,r.reportAllChanges);var f=Rt(function(){Nt[i.id]||(a(c.takeRecords()),c.disconnect(),Nt[i.id]=!0,e(!0))});["keydown","click"].forEach(function(s){addEventListener(s,f,!0)}),It(f),ve(function(s){i=F("LCP"),e=V(t,i,n,r.reportAllChanges),Pt(function(){i.value=performance.now()-s.timeStamp,Nt[i.id]=!0,e(!0)})})}})},ha=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),va="web-vitals",pa=function(t){ha(r,t);function r(){return t.call(this,va)||this}return r.prototype.enable=function(){},r.prototype.disable=function(){},r.prototype.configure=function(e){},r.prototype.getWebVitalData=function(e,n){var o,i={version:"1.0.0",value:e.value};(o=this.context)===null||o===void 0||o.record(n,i)},r.prototype.onload=function(){var e=this;da(function(n){return e.getWebVitalData(n,mi)}),la(function(n){return e.getWebVitalData(n,yi)}),ca(function(n){return e.getWebVitalData(n,wi)})},r}(z),Bn=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},Fn=[];for(U=0;U<256;U++)Fn[U]=(U+256).toString(16).substr(1);var U,Mt="X-Amzn-Trace-Id",Vn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Gn=function(t){return Math.floor(t/100)===4},zn=function(t){return Math.floor(t/100)===5},Xn=function(t){return t===429},Wn=function(t,r){var e=r.urlsToInclude.some(function(o){return o.test(t)}),n=r.urlsToExclude.some(function(o){return o.test(t)});return e&&!n},Q=function(){return Date.now()/1e3},ga=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Ht(t),n},Kn=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:Jn(),start_time:r,trace_id:wa(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},$n=function(t,r,e){var n={id:Jn(),name:t,start_time:r,end_time:void 0,in_progress:!1,namespace:t.endsWith("amazonaws.com")?"aws":"remote"};return e&&(n.http=e),n},Yn=function(t){try{return t.hostname?t.hostname:t.url?new URL(t.url).hostname:new URL(t.toString()).hostname}catch{return window.location.hostname}},ma=function(t,r,e){t.headers||(t.headers={}),t.headers[Mt]=jt(r,e)},ya=function(t,r,e){t.set(Mt,jt(r,e))},jt=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Ht=function(t){return t.url?t.url:t.toString()},wa=function(){return"1-".concat(ba(),"-").concat(_a())},Jn=function(){var t=new Uint8Array(8);return Bn(t),Zn(t)},ba=function(){return Math.floor(Date.now()/1e3).toString(16)},_a=function(){var t=new Uint8Array(12);return Bn(t),Zn(t)},Zn=function(t){for(var r="",e=0;e<t.length;e++)r+=Fn[t[e]];return r},Ea=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sa=function(t){Ea(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),Ta=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ke=function(){return Ke=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ke.apply(this,arguments)},Ca="xhr",Aa=function(t){Ta(r,t);function r(e){var n=t.call(this,Ca)||this;return n.addXRayTraceIdHeader=function(){return n.config.addXRayTraceIdHeader},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.handleXhrLoadEvent=function(o){var i=o.target,a=n.xhrMap.get(i);if(a){var c=Q();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:i.status},Xn(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Gn(i.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):zn(i.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var f=i.getResponseHeader("Content-Length"),s=f?parseInt(f,10):NaN;isNaN(s)||(a.trace.subsegments[0].http.response.content_length=s),n.recordTraceEvent(a.trace),n.recordHttpEventWithResponse(a,i)}},n.handleXhrErrorEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest error",f=i.statusText?i.status.toString()+": "+i.statusText:i.status.toString();if(a){var s=Q();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:c,message:f}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,new Sa(f))}},n.handleXhrAbortEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest abort";n.handleXhrDetailsOnError(a,c)},n.handleXhrTimeoutEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,c)},n.initializeTrace=function(o){var i=Q();o.trace=Kn(n.config.logicalServiceName,i),o.trace.subsegments.push($n(Yn(o.url),i,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(i){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(Mt,jt(a.trace.trace_id,a.trace.subsegments[0].id))),i.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(i){return function(a,c,f){return Wn(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:f}),i.apply(this,arguments)}}},n.config=Ke(Ke({},Vn),e),n.xhrMap=new Map,n}return r.prototype.onload=function(){this.enable()},Object.defineProperty(r.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}),r.prototype.handleXhrDetailsOnError=function(e,n){if(e){var o=Q();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:n}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,n)}},r.prototype.statusOk=function(e){return e>=200&&e<300},r.prototype.recordHttpEventWithResponse=function(e,n){(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(Ie,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:n.status,statusText:n.statusText}})},r.prototype.recordHttpEventWithError=function(e,n){var o={version:"1.0.0",request:{method:e.method,url:e.url}};o.error=gt({type:"error",error:n},this.config.stackTraceLength),this.context.record(Ie,o)},r.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(on,e)},r}(He),Oa=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(){return $e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},$e.apply(this,arguments)},Pa="fetch",Ia=function(t){Oa(r,t);function r(e){var n=t.call(this,Pa)||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.beginTrace=function(o,i,a){var c=Q(),f=ga(o,i,!0),s=Kn(n.config.logicalServiceName,c),u=$n(Yn(o),c,f);return s.subsegments.push(u),n.config.addXRayTraceIdHeader&&n.addXRayTraceIdHeader(o,i,a,s),s},n.addXRayTraceIdHeader=function(o,i,a,c){if(o.headers)return ya(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),ma(i,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,i,a){if(o){var c=Q();if(o.subsegments[0].end_time=c,o.end_time=c,i){o.subsegments[0].http.response={status:i.status},Xn(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Gn(i.status)?(o.subsegments[0].error=!0,o.error=!0):zn(i.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var f=i.headers.get("Content-Length"),s=f?parseInt(f,10):NaN;isNaN(s)||(o.subsegments[0].http.response.content_length=s)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?n.appendErrorCauseFromObject(o.subsegments[0],a):sn(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(on,o)}},n.createHttpEvent=function(o,i){var a=o;return{version:"1.0.0",request:{url:Ht(o),method:i?.method?i.method:a.method?a.method:"GET"}}},n.recordHttpEventWithResponse=function(o,i){(n.config.recordAllRequests||!i.ok)&&(o.response={status:i.status,statusText:i.statusText},n.context.record(Ie,o))},n.recordHttpEventWithError=function(o,i){o.error=gt({type:"error",error:i},n.config.stackTraceLength),n.context.record(Ie,o)},n.fetch=function(o,i,a,c,f){var s=n.createHttpEvent(c,f),u;return Wn(Ht(c),n.config)?(n.isTracingEnabled()&&n.isSessionRecorded()&&(u=n.beginTrace(c,f,a)),o.apply(i,a).then(function(d){return n.endTrace(u,d,void 0),n.recordHttpEventWithResponse(s,d),d}).catch(function(d){throw n.endTrace(u,void 0,d),n.recordHttpEventWithError(s,d),d})):o.apply(i,a)},n.fetchWrapper=function(){var o=n;return function(i){return function(a,c){return o.fetch(i,this,arguments,a,c)}}},n.config=$e($e({},Vn),e),n}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.onload=function(){this.enable()},r.prototype.appendErrorCauseFromPrimitive=function(e,n){e.cause={exceptions:[{type:n}]}},r.prototype.appendErrorCauseFromObject=function(e,n){e.cause={exceptions:[{type:n.name,message:n.message}]}},r}(He),Ra=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),La="page-view",ka=function(t){Ra(r,t);function r(){var e=t.call(this,La)||this;return e.pushState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},e.replaceState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},e.popstateListener=function(n){e.recordPageView()},e.recordPageView=function(){e.context.recordPageView(e.createIdForCurrentPage())},e.enable(),e}return r.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(r.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}),r.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},r.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case re.PathAndHash:return e&&n?e+n:e||n||"";case re.Hash:return n||"";case re.Path:default:return e||""}},r}(He),ee=function(){return ee=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ee.apply(this,arguments)},Na=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},te=function(t,r,e){if(e||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},Qn="us-west-2",Ut="https://dataplane.rum.".concat(Qn,".amazonaws.com"),ne;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(ne||(ne={}));var re;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(re||(re={}));var Ma=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},ja=function(t){return{allowCookies:!1,batchLimit:100,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Ut,endpointUrl:new URL(Ut),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:re.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:60*30,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30}},Ha=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=Na(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=ee(ee({},Ma()),i);this.config=ee(ee({fetchFunction:fetch},ja(c)),a),this.config.endpoint=this.getDataPlaneEndpoint(n,a),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(r,e),this.dispatchManager=this.initDispatch(n),this.pluginManager=this.initPluginManager(r,e),this.config.enableRumClient?this.enable():this.disable()}return t.prototype.setAwsCredentials=function(r){this.dispatchManager.setAwsCredentials(r)},t.prototype.addSessionAttributes=function(r){this.eventCache.addSessionAttributes(r)},t.prototype.addPlugin=function(r){this.pluginManager.addPlugin(r)},t.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},t.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},t.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},t.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},t.prototype.allowCookies=function(r){this.config.allowCookies=r},t.prototype.recordPageView=function(r){this.eventCache.recordPageView(r)},t.prototype.recordError=function(r){this.pluginManager.record(cn,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(an,r)},t.prototype.recordEvent=function(r,e){this.eventCache.recordEvent(r,e)},t.prototype.initEventCache=function(r,e){return new lo({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new Jo(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new vi(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new pi(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(r,e){var n=this.constructBuiltinPlugins(),o=te(te([],n,!0),this.config.eventPluginsToLoad,!0),i={applicationId:r,applicationVersion:e,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession},a=new Ti(i);return this.config.disableAutoPageView||a.addPlugin(new ka),o.forEach(function(c){a.addPlugin(c)}),a},t.prototype.constructBuiltinPlugins=function(){var r=[],e=this.telemetryFunctor();return this.config.telemetries.forEach(function(n){typeof n=="string"&&e[n.toLowerCase()]?r=te(te([],r,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(r=te(te([],r,!0),e[n[0].toLowerCase()](n[1]),!0))}),r},t.prototype.getDataPlaneEndpoint=function(r,e){return e.endpoint?e.endpoint:Ut.replace(Qn,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[ne.Errors]=function(e){return[new Mi(e)]},r[ne.Performance]=function(e){return[new ea,new oa(e),new pa]},r[ne.Interaction]=function(e){return[new Oi(e)]},r[ne.Http]=function(e){return[new Aa(e),new Ia(e)]},r},t}();try{window.awsRum=new Ha(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();
|
|
12
|
+
${z(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const r=[];for(const o of t.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));const e=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return encodeURIComponent(e).replace(/%2F/g,"/")}return t}async getSignature(t,r,e,n){const o=await this.createStringToSign(t,r,n),i=new this.sha256(await e);return i.update(fe(o)),z(await i.digest())}getSigningKey(t,r,e,n){return ko(this.sha256,t,e,r,n||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},De=t=>{const r=xo(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},On=t=>Object.keys(t).sort().join(";"),Pn=st(Kr()),K=function(){return K=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},K.apply(this,arguments)},qe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Be=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Bo="rum",Fo="POST",Vo="application/json",Go="text/plain;charset=UTF-8",zo={expiresIn:60},Wo=function(){function t(r){var e=this;this.sendFetch=function(n){return qe(e,void 0,void 0,function(){var o,i,a;return Be(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,Vo)];case 1:return o=c.sent(),i=new oe(o),this.awsSigV4?[4,this.awsSigV4.sign(i)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.fetchRequestHandler.handle(i),[2,a]}})})},this.sendBeacon=function(n){return qe(e,void 0,void 0,function(){var o,i,a;return Be(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,Go)];case 1:return o=c.sent(),i=new oe(o),this.awsSigV4?[4,this.awsSigV4.presign(i,zo)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.beaconRequestHandler.handle(i),[2,a]}})})},this.getHttpRequestOptions=function(n,o){return qe(e,void 0,void 0,function(){var i,a,c,f,s,u,d,l;return Be(this,function(h){switch(h.label){case 0:return i=JSON.stringify(Xo(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:Fo,protocol:this.config.endpoint.protocol,headers:{"content-type":o,host:this.config.endpoint.host},hostname:this.config.endpoint.hostname,path:"".concat(a,"/appmonitors/").concat(n.AppMonitorDetails.id),body:i},this.awsSigV4?(f=[K({},c)],d={},s=[K({},c.headers)],l={},u="X-Amz-Content-Sha256",[4,$o(i)]):[3,2];case 1:return[2,K.apply(void 0,f.concat([(d.headers=K.apply(void 0,s.concat([(l[u]=h.sent(),l)])),d)]))];case 2:return[2,c]}})})},this.config=r,r.credentials&&(this.awsSigV4=new qo({applyChecksum:!0,credentials:r.credentials,region:r.region,service:Bo,uriEscapePath:!0,sha256:Pn.Sha256}))}return t}(),Xo=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(Ko(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},Ko=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},$o=function(t){return qe(void 0,void 0,void 0,function(){var r,e;return Be(this,function(n){switch(n.label){case 0:return r=new Pn.Sha256,r.update(t),e=z,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})},Yo=function(){function t(){}return t.prototype.handle=function(r){var e=this.sendBeacon(r);return new Promise(function(n,o){e?n({response:new ae({statusCode:200})}):o()})},t.prototype.sendBeacon=function(r){var e=r.path;if(r.query){var n=ht(r.query);n&&(e+="?".concat(n))}var o=r.port,i="".concat(r.protocol,"//").concat(r.hostname).concat(o?":".concat(o):"").concat(e);return navigator.sendBeacon(i,r.body)},t}(),Jo=function(t){return t===void 0&&(t=0),new Promise(function(r,e){t&&setTimeout(function(){var n=new Error("Request did not complete within ".concat(t," ms"));n.name="TimeoutError",e(n)},t)})},Zo=function(){function t(r){var e=r===void 0?{}:r,n=e.fetchFunction,o=e.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return t.prototype.destroy=function(){},t.prototype.handle=function(r,e){var n=e===void 0?{}:e,o=n.abortSignal,i=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var c=r.path;if(r.query){var f=ht(r.query);f&&(c+="?".concat(f))}var s=r.port,u=r.method,d="".concat(r.protocol,"//").concat(r.hostname).concat(s?":".concat(s):"").concat(c),l=u==="GET"||u==="HEAD"?void 0:r.body,h={body:l,headers:new Headers(r.headers),method:u};typeof AbortController<"u"&&(h.signal=o);var p=new Request(d,h),v=[this.fetchFunction.apply(window,[p]).then(function(g){for(var A=g.headers,j={},m=0,y=A.entries();m<y.length;m++){var L=y[m];j[L[0]]=L[1]}var W=g.body!==void 0;return W?{response:new ae({headers:j,statusCode:g.status,body:g.body})}:g.blob().then(function(Ye){return{response:new ae({headers:j,statusCode:g.status,body:Ye})}})}),Jo(i)];return o&&v.push(new Promise(function(g,A){o.onabort=function(){var j=new Error("Request aborted");j.name="AbortError",A(j)}})),Promise.race(v)},t}(),In=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Rn=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Qo=function(){function t(r,e,n){n===void 0&&(n=function(o){return o*2e3}),this.isStatusCode2xx=function(o){return o>=200&&o<300},this.handler=r,this.retries=e,this.backoff=n}return t.prototype.handle=function(r){return In(this,void 0,void 0,function(){var e,n,o;return Rn(this,function(i){switch(i.label){case 0:e=this.retries,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,4,,6]),[4,this.handler.handle(r)];case 3:if(n=i.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error("".concat(n.response.statusCode));case 4:if(o=i.sent(),!e)throw o;return e--,[4,this.sleep(this.backoff(this.retries-e))];case 5:return i.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},t.prototype.sleep=function(r){return In(this,void 0,void 0,function(){return Rn(this,function(e){return[2,new Promise(function(n){return setTimeout(n,r)})]})})},t}(),Fe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(d){a(d)}}function f(u){try{s(n.throw(u))}catch(d){a(d)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Ve=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=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(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ln="CWR: Cannot dispatch; no AWS credentials.",ea=function(){function t(r,e,n,o){var i=this;this.dispatchFetch=function(){return Fe(i,void 0,void 0,function(){return Ve(this,function(a){return this.doRequest()?[2,this.rum.sendFetch(this.createRequest()).catch(this.handleReject)]:[2]})})},this.dispatchBeacon=function(){return Fe(i,void 0,void 0,function(){var a,c=this;return Ve(this,function(f){return this.doRequest()?(a=this.createRequest(),[2,this.rum.sendBeacon(a).catch(function(){return c.rum.sendFetch(a)})]):[2]})})},this.dispatchFetchFailSilent=function(){return Fe(i,void 0,void 0,function(){return Ve(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return Fe(i,void 0,void 0,function(){return Ve(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw i.disable(),a},this.defaultClientBuilder=function(a,c,f){return new Wo({fetchRequestHandler:new Qo(new Zo({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new Yo,endpoint:a,region:c,credentials:f})},this.region=r,this.endpoint=e,this.eventCache=n,this.enabled=!0,this.buildClient=o.clientBuilder||this.defaultClientBuilder,this.config=o,this.startDispatchTimer(),o.signing?this.rum={sendFetch:function(){return Promise.reject(new Error(Ln))},sendBeacon:function(){return Promise.reject(new Error(Ln))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0)}return t.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},t.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1},t.prototype.setAwsCredentials=function(r){this.rum=this.buildClient(this.endpoint,this.region,r),typeof r=="function"&&r()},t.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.addEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},t.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.removeEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},t.prototype.doRequest=function(){return this.enabled&&this.eventCache.hasEvents()},t.prototype.createRequest=function(){return{BatchId:ce(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()}},t}(),ta=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),na="navigation",$="navigation",St="load",ra=function(t){ta(r,t);function r(){var e=t.call(this,na)||this;return e.eventListener=function(){if(performance.getEntriesByType($).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===$&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[$]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var n=function(){var o,i=performance.timing,a=i.navigationStart,c={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:i.unloadEventStart>0?i.unloadEventStart-a:0,promptForUnload:i.unloadEventEnd-i.unloadEventStart,redirectStart:i.redirectStart>0?i.redirectStart-a:0,redirectTime:i.redirectEnd-i.redirectStart,fetchStart:i.fetchStart>0?i.fetchStart-a:0,domainLookupStart:i.domainLookupStart>0?i.domainLookupStart-a:0,dns:i.domainLookupEnd-i.domainLookupStart,connectStart:i.connectStart>0?i.connectStart-a:0,connect:i.connectEnd-i.connectStart,secureConnectionStart:i.secureConnectionStart>0?i.secureConnectionStart-a:0,tlsTime:i.secureConnectionStart>0?i.connectEnd-i.secureConnectionStart:0,requestStart:i.requestStart>0?i.requestStart-a:0,timeToFirstByte:i.responseStart-i.requestStart,responseStart:i.responseStart>0?i.responseStart-a:0,responseTime:i.responseStart>0?i.responseEnd-i.responseStart:0,domInteractive:i.domInteractive>0?i.domInteractive-a:0,domContentLoadedEventStart:i.domContentLoadedEventStart>0?i.domContentLoadedEventStart-a:0,domContentLoaded:i.domContentLoadedEventEnd-i.domContentLoadedEventStart,domComplete:i.domComplete>0?i.domComplete-a:0,domProcessingTime:i.loadEventStart-i.responseEnd,loadEventStart:i.loadEventStart>0?i.loadEventStart-a:0,loadEventTime:i.loadEventEnd-i.loadEventStart,duration:i.loadEventEnd-i.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(vt,c)};setTimeout(n,0)},e.performanceNavigationEventHandlerTimingLevel2=function(n){var o,i={version:"1.0.0",initiatorType:n.initiatorType,navigationType:n.type,startTime:n.startTime,unloadEventStart:n.unloadEventStart,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectCount:n.redirectCount,redirectStart:n.redirectStart,redirectTime:n.redirectEnd-n.redirectStart,workerStart:n.workerStart,workerTime:n.workerStart>0?n.fetchStart-n.workerStart:0,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,dns:n.domainLookupEnd-n.domainLookupStart,nextHopProtocol:n.nextHopProtocol,connectStart:n.connectStart,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.duration,headerSize:n.transferSize-n.encodedBodySize,transferSize:n.transferSize,compressionRatio:n.encodedBodySize>0?n.decodedBodySize/n.encodedBodySize:0,navigationTimingLevel:2};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(vt,i)},e}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(St,this.eventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(St,this.eventListener))},r.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType($).length){var e=window.performance.getEntriesByType($)[0];return Boolean(e.loadEventEnd)}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType($)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(St,this.eventListener)},r}(V),N;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(N||(N={}));var ia=[{name:N.STYLESHEET,list:["css","less"]},{name:N.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:N.SCRIPT,list:["js"]},{name:N.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:N.FONT,list:["fnt","fon","otf","ttf","woff"]}],kn=function(t){for(var r=t.length-1;r>0;r--){var e=Math.floor(Math.random()*(r+1)),n=t[r];t[r]=t[e],t[e]=n}},Tt=function(t){var r=t.substring(t.lastIndexOf("/")+1),e=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0],n=N.OTHER;return ia.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},oa=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(){return Ge=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ge.apply(this,arguments)},aa="resource",Ct="resource",At="load",sa={eventLimit:10,recordAllTypes:[N.DOCUMENT,N.SCRIPT],sampleTypes:[N.STYLESHEET,N.IMAGE,N.FONT,N.OTHER]},ca=function(t){oa(r,t);function r(e){var n=t.call(this,aa)||this;return n.resourceEventListener=function(o){var i=[],a=[],c=0,f=new PerformanceObserver(function(u){u.getEntries().filter(function(d){return d.entryType===Ct}).forEach(function(d){var l=Tt(d.name);n.config.recordAllTypes.includes(l)?i.push(d):n.config.sampleTypes.includes(l)&&a.push(d)})});f.observe({entryTypes:[Ct]});var s=performance.getEntriesByType(Ct);for(s!==void 0&&s.length>0&&s.forEach(function(u){var d=Tt(u.name);n.config.recordAllTypes.includes(d)?i.push(u):n.config.sampleTypes.includes(d)&&a.push(u)}),kn(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(kn(a);a.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(a.pop()),c++},n.recordResourceEvent=function(o){var i,a=/.*\/application\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/events/,c=new URL(o.name);if(!(c.host===n.context.config.endpointUrl.host&&a.test(c.pathname))&&!((i=n.context)===null||i===void 0)&&i.record){var f={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:Tt(o.name),transferSize:o.transferSize};n.context.config.recordResourceUrl&&(f.targetUrl=o.name),n.context.record(_i,f)}},n.config=Ge(Ge({},sa),e),n}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(At,this.resourceEventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(At,this.resourceEventListener))},r.prototype.onload=function(){window.addEventListener(At,this.resourceEventListener)},r}(V),D,le,Nn,ze,jn=-1,de=function(t){addEventListener("pageshow",function(r){r.persisted&&(jn=r.timeStamp,t(r))},!0)},Mn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Ot=function(){var t=Mn();return t&&t.activationStart||0},q=function(t,r){var e=Mn(),n="navigate";return jn>=0?n="back-forward-cache":e&&(n=document.prerendering||Ot()>0?"prerender":document.wasDiscarded?"restore":e.type.replace(/_/g,"-")),{name:t,value:r===void 0?-1:r,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},We=function(t,r,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){r(o.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},e||{})),n}}catch{}},B=function(t,r,e,n){var o,i;return function(a){r.value>=0&&(a||n)&&((i=r.value-(o||0))||o===void 0)&&(o=r.value,r.delta=i,r.rating=function(c,f){return c>f[1]?"poor":c>f[0]?"needs-improvement":"good"}(r.value,e),t(r))}},Pt=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},It=function(t){var r=function(e){e.type!=="pagehide"&&document.visibilityState!=="hidden"||t(e)};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},Rt=function(t){var r=!1;return function(e){r||(t(e),r=!0)}},Y=-1,Un=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Xe=function(t){document.visibilityState==="hidden"&&Y>-1&&(Y=t.type==="visibilitychange"?t.timeStamp:0,ua())},Hn=function(){addEventListener("visibilitychange",Xe,!0),addEventListener("prerenderingchange",Xe,!0)},ua=function(){removeEventListener("visibilitychange",Xe,!0),removeEventListener("prerenderingchange",Xe,!0)},Lt=function(){return Y<0&&(Y=Un(),Hn(),de(function(){setTimeout(function(){Y=Un(),Hn()},0)})),{get firstHiddenTime(){return Y}}},kt=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},fa=function(t,r){r=r||{},kt(function(){var e,n=[1800,3e3],o=Lt(),i=q("FCP"),a=We("paint",function(c){c.forEach(function(f){f.name==="first-contentful-paint"&&(a.disconnect(),f.startTime<o.firstHiddenTime&&(i.value=Math.max(f.startTime-Ot(),0),i.entries.push(f),e(!0)))})});a&&(e=B(t,i,n,r.reportAllChanges),de(function(c){i=q("FCP"),e=B(t,i,n,r.reportAllChanges),Pt(function(){i.value=performance.now()-c.timeStamp,e(!0)})}))})},la=function(t,r){r=r||{},fa(Rt(function(){var e,n=[.1,.25],o=q("CLS",0),i=0,a=[],c=function(s){s.forEach(function(u){if(!u.hadRecentInput){var d=a[0],l=a[a.length-1];i&&u.startTime-l.startTime<1e3&&u.startTime-d.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u])}}),i>o.value&&(o.value=i,o.entries=a,e())},f=We("layout-shift",c);f&&(e=B(t,o,n,r.reportAllChanges),It(function(){c(f.takeRecords()),e(!0)}),de(function(){i=0,o=q("CLS",0),e=B(t,o,n,r.reportAllChanges),Pt(function(){return e()})}),setTimeout(e,0))}))},he={passive:!0,capture:!0},da=new Date,xn=function(t,r){D||(D=r,le=t,Nn=new Date,qn(removeEventListener),Dn())},Dn=function(){if(le>=0&&le<Nn-da){var t={entryType:"first-input",name:D.type,target:D.target,cancelable:D.cancelable,startTime:D.timeStamp,processingStart:D.timeStamp+le};ze.forEach(function(r){r(t)}),ze=[]}},ha=function(t){if(t.cancelable){var r=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(e,n){var o=function(){xn(e,n),a()},i=function(){a()},a=function(){removeEventListener("pointerup",o,he),removeEventListener("pointercancel",i,he)};addEventListener("pointerup",o,he),addEventListener("pointercancel",i,he)}(r,t):xn(r,t)}},qn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,ha,he)})},pa=function(t,r){r=r||{},kt(function(){var e,n=[100,300],o=Lt(),i=q("FID"),a=function(s){s.startTime<o.firstHiddenTime&&(i.value=s.processingStart-s.startTime,i.entries.push(s),e(!0))},c=function(s){s.forEach(a)},f=We("first-input",c);e=B(t,i,n,r.reportAllChanges),f&&It(Rt(function(){c(f.takeRecords()),f.disconnect()})),f&&de(function(){var s;i=q("FID"),e=B(t,i,n,r.reportAllChanges),ze=[],le=-1,D=null,qn(addEventListener),s=a,ze.push(s),Dn()})})},Nt={},va=function(t,r){r=r||{},kt(function(){var e,n=[2500,4e3],o=Lt(),i=q("LCP"),a=function(s){var u=s[s.length-1];if(u){var d=Math.max(u.startTime-Ot(),0);d<o.firstHiddenTime&&(i.value=d,i.entries=[u],e())}},c=We("largest-contentful-paint",a);if(c){e=B(t,i,n,r.reportAllChanges);var f=Rt(function(){Nt[i.id]||(a(c.takeRecords()),c.disconnect(),Nt[i.id]=!0,e(!0))});["keydown","click"].forEach(function(s){addEventListener(s,f,!0)}),It(f),de(function(s){i=q("LCP"),e=B(t,i,n,r.reportAllChanges),Pt(function(){i.value=performance.now()-s.timeStamp,Nt[i.id]=!0,e(!0)})})}})},ga=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ma="web-vitals",ya=function(t){ga(r,t);function r(){return t.call(this,ma)||this}return r.prototype.enable=function(){},r.prototype.disable=function(){},r.prototype.configure=function(e){},r.prototype.getWebVitalData=function(e,n){var o,i={version:"1.0.0",value:e.value};(o=this.context)===null||o===void 0||o.record(n,i)},r.prototype.onload=function(){var e=this;va(function(n){return e.getWebVitalData(n,yi)}),pa(function(n){return e.getWebVitalData(n,wi)}),la(function(n){return e.getWebVitalData(n,bi)})},r}(V),Bn=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},Fn=[];for(pe=0;pe<256;pe++)Fn[pe]=(pe+256).toString(16).substr(1);var pe,jt="X-Amzn-Trace-Id",Vn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Gn=function(t){return Math.floor(t/100)===4},zn=function(t){return Math.floor(t/100)===5},Wn=function(t){return t===429},Xn=function(t,r){var e=r.urlsToInclude.some(function(o){return o.test(t)}),n=r.urlsToExclude.some(function(o){return o.test(t)});return e&&!n},J=function(){return Date.now()/1e3},wa=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Ut(t),n},Kn=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:Jn(),start_time:r,trace_id:Ea(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},$n=function(t,r,e){var n={id:Jn(),name:t,start_time:r,end_time:void 0,in_progress:!1,namespace:t.endsWith("amazonaws.com")?"aws":"remote"};return e&&(n.http=e),n},Yn=function(t){try{return t.hostname?t.hostname:t.url?new URL(t.url).hostname:new URL(t.toString()).hostname}catch{return window.location.hostname}},ba=function(t,r,e){t.headers||(t.headers={}),t.headers[jt]=Mt(r,e)},_a=function(t,r,e){t.set(jt,Mt(r,e))},Mt=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Ut=function(t){return t.url?t.url:t.toString()},Ea=function(){return"1-".concat(Sa(),"-").concat(Ta())},Jn=function(){var t=new Uint8Array(8);return Bn(t),Zn(t)},Sa=function(){return Math.floor(Date.now()/1e3).toString(16)},Ta=function(){var t=new Uint8Array(12);return Bn(t),Zn(t)},Zn=function(t){for(var r="",e=0;e<t.length;e++)r+=Fn[t[e]];return r},Ca=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Aa=function(t){Ca(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),Oa=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ke=function(){return Ke=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ke.apply(this,arguments)},Pa="xhr",Ia=function(t){Oa(r,t);function r(e){var n=t.call(this,Pa)||this;return n.addXRayTraceIdHeader=function(){return n.config.addXRayTraceIdHeader},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.handleXhrLoadEvent=function(o){var i=o.target,a=n.xhrMap.get(i);if(a){var c=J();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:i.status},Wn(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Gn(i.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):zn(i.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var f=i.getResponseHeader("Content-Length"),s=f?parseInt(f,10):NaN;isNaN(s)||(a.trace.subsegments[0].http.response.content_length=s),n.recordTraceEvent(a.trace),n.recordHttpEventWithResponse(a,i)}},n.handleXhrErrorEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest error",f=i.statusText?i.status.toString()+": "+i.statusText:i.status.toString();if(a){var s=J();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:c,message:f}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,new Aa(f))}},n.handleXhrAbortEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest abort";n.handleXhrDetailsOnError(a,c)},n.handleXhrTimeoutEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,c)},n.initializeTrace=function(o){var i=J();o.trace=Kn(n.config.logicalServiceName,i),o.trace.subsegments.push($n(Yn(o.url),i,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(i){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(jt,Mt(a.trace.trace_id,a.trace.subsegments[0].id))),i.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(i){return function(a,c,f){return Xn(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:f}),i.apply(this,arguments)}}},n.config=Ke(Ke({},Vn),e),n.xhrMap=new Map,n}return r.prototype.onload=function(){this.enable()},Object.defineProperty(r.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}),r.prototype.handleXhrDetailsOnError=function(e,n){if(e){var o=J();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:n}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,n)}},r.prototype.statusOk=function(e){return e>=200&&e<300},r.prototype.recordHttpEventWithResponse=function(e,n){(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(Pe,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:n.status,statusText:n.statusText}})},r.prototype.recordHttpEventWithError=function(e,n){var o={version:"1.0.0",request:{method:e.method,url:e.url}};o.error=gt({type:"error",error:n},this.config.stackTraceLength),this.context.record(Pe,o)},r.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(on,e)},r}(Ue),Ra=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(){return $e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},$e.apply(this,arguments)},La="fetch",ka=function(t){Ra(r,t);function r(e){var n=t.call(this,La)||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.beginTrace=function(o,i,a){var c=J(),f=wa(o,i,!0),s=Kn(n.config.logicalServiceName,c),u=$n(Yn(o),c,f);return s.subsegments.push(u),n.config.addXRayTraceIdHeader&&n.addXRayTraceIdHeader(o,i,a,s),s},n.addXRayTraceIdHeader=function(o,i,a,c){if(o.headers)return _a(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),ba(i,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,i,a){if(o){var c=J();if(o.subsegments[0].end_time=c,o.end_time=c,i){o.subsegments[0].http.response={status:i.status},Wn(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Gn(i.status)?(o.subsegments[0].error=!0,o.error=!0):zn(i.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var f=i.headers.get("Content-Length"),s=f?parseInt(f,10):NaN;isNaN(s)||(o.subsegments[0].http.response.content_length=s)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?n.appendErrorCauseFromObject(o.subsegments[0],a):sn(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(on,o)}},n.createHttpEvent=function(o,i){var a=o;return{version:"1.0.0",request:{url:Ut(o),method:i?.method?i.method:a.method?a.method:"GET"}}},n.recordHttpEventWithResponse=function(o,i){(n.config.recordAllRequests||!i.ok)&&(o.response={status:i.status,statusText:i.statusText},n.context.record(Pe,o))},n.recordHttpEventWithError=function(o,i){o.error=gt({type:"error",error:i},n.config.stackTraceLength),n.context.record(Pe,o)},n.fetch=function(o,i,a,c,f){var s=n.createHttpEvent(c,f),u;return Xn(Ut(c),n.config)?(n.isTracingEnabled()&&n.isSessionRecorded()&&(u=n.beginTrace(c,f,a)),o.apply(i,a).then(function(d){return n.endTrace(u,d,void 0),n.recordHttpEventWithResponse(s,d),d}).catch(function(d){throw n.endTrace(u,void 0,d),n.recordHttpEventWithError(s,d),d})):o.apply(i,a)},n.fetchWrapper=function(){var o=n;return function(i){return function(a,c){return o.fetch(i,this,arguments,a,c)}}},n.config=$e($e({},Vn),e),n}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.onload=function(){this.enable()},r.prototype.appendErrorCauseFromPrimitive=function(e,n){e.cause={exceptions:[{type:n}]}},r.prototype.appendErrorCauseFromObject=function(e,n){e.cause={exceptions:[{type:n.name,message:n.message}]}},r}(Ue),Na=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ja="page-view",Ma=function(t){Na(r,t);function r(){var e=t.call(this,ja)||this;return e.pushState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},e.replaceState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},e.popstateListener=function(n){e.recordPageView()},e.recordPageView=function(){e.context.recordPageView(e.createIdForCurrentPage())},e.enable(),e}return r.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(r.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}),r.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},r.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case te.PathAndHash:return e&&n?e+n:e||n||"";case te.Hash:return n||"";case te.Path:default:return e||""}},r}(Ue),Z=function(){return Z=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Z.apply(this,arguments)},Ua=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},Q=function(t,r,e){if(e||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},Qn="us-west-2",Ht="https://dataplane.rum.".concat(Qn,".amazonaws.com"),ee;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(ee||(ee={}));var te;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(te||(te={}));var Ha=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},xa=function(t){return{allowCookies:!1,batchLimit:100,client:pi,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Ht,endpointUrl:new URL(Ht),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:te.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:60*30,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30}},Da=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=Ua(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=Z(Z({},Ha()),i);this.config=Z(Z({fetchFunction:fetch},xa(c)),a),this.config.endpoint=this.getDataPlaneEndpoint(n,a),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(r,e),this.dispatchManager=this.initDispatch(n),this.pluginManager=this.initPluginManager(r,e),this.config.enableRumClient?this.enable():this.disable()}return t.prototype.setAwsCredentials=function(r){this.dispatchManager.setAwsCredentials(r)},t.prototype.addSessionAttributes=function(r){this.eventCache.addSessionAttributes(r)},t.prototype.addPlugin=function(r){this.pluginManager.addPlugin(r)},t.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},t.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},t.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},t.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},t.prototype.allowCookies=function(r){this.config.allowCookies=r},t.prototype.recordPageView=function(r){this.eventCache.recordPageView(r)},t.prototype.recordError=function(r){this.pluginManager.record(cn,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(an,r)},t.prototype.recordEvent=function(r,e){this.eventCache.recordEvent(r,e)},t.prototype.initEventCache=function(r,e){return new vo({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new ea(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new vi(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new gi(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(r,e){var n=this.constructBuiltinPlugins(),o=Q(Q([],n,!0),this.config.eventPluginsToLoad,!0),i={applicationId:r,applicationVersion:e,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession},a=new Ci(i);return this.config.disableAutoPageView||a.addPlugin(new Ma),o.forEach(function(c){a.addPlugin(c)}),a},t.prototype.constructBuiltinPlugins=function(){var r=[],e=this.telemetryFunctor();return this.config.telemetries.forEach(function(n){typeof n=="string"&&e[n.toLowerCase()]?r=Q(Q([],r,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(r=Q(Q([],r,!0),e[n[0].toLowerCase()](n[1]),!0))}),r},t.prototype.getDataPlaneEndpoint=function(r,e){return e.endpoint?e.endpoint:Ht.replace(Qn,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[ee.Errors]=function(e){return[new Mi(e)]},r[ee.Performance]=function(e){return[new ra,new ca(e),new ya]},r[ee.Interaction]=function(e){return[new Pi(e)]},r[ee.Http]=function(e){return[new Ia(e),new ka(e)]},r},t}();try{window.awsRum=new Da(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();
|