PageSourceSearch

https://astromat.org/_next/static/chunks/pages/_app-3da8ff8a32c01dd1.js

js astromat.org collected 2026-10-01 12:19:42 UTC 973,918 bytes, 37 lines download raw bytes

vendor: 4,705 bytes, line 1
1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0d383bc-db76-4d92-b992-87aafd51d4f6",e._sentryDebugIdIdentifier="sentry-dbid-d0d383bc-db76-4d92-b992-87aafd51d4f6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{81941:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0}},29293:function(e,t,r){var n;!function(i,o){"use strict";var s="function",a="undefined",l="object",u="string",c="model",d="name",p="type",f="vendor",h="version",g="architecture",m="console",v="mobile",y="tablet",b="smarttv",w="wearable",S="embedded",A="Amazon",_="Apple",E="ASUS",k="BlackBerry",x="Browser",C="Chrome",I="Firefox",T="Google",O="Huawei",R="Microsoft",P="Motorola",M="Opera",L="Samsung",D="Sharp",N="Sony",j="Xiaomi",F="Zebra",U="Facebook",B=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},$=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},q=function(e,t){return typeof e===u&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,350)},H=function(e,t){for(var r,n,i,a,u,c,d=0;d<t.length&&!u;){var p=t[d],f=t[d+1];for(r=n=0;r<p.length&&!u;)if(u=p[r++].exec(e))for(i=0;i<f.length;i++)c=u[++n],typeof(a=f[i])===l&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):o:this[a[0]]=c?a[1].call(this,c,a[2]):o:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):o):this[a]=c||o;d+=2}},V=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(q(t[r][n],e))return"?"===r?o:r}else if(q(t[r],e))return"?"===r?o:r;return e},J={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"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[d,M]],[/(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],[d,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+x],h],[/\bfocus\/([\w\.]+)/i],[h,[d,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[h,[d,I]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+x],h],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,U],h],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,C+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+x]],[/(chrome|omniweb|arora|[t
vendor: 4,850 bytes, line 1
1izenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,V,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,I+" 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],[d,h],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,G]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,G]]],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],[c,[f,L],[p,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,L],[p,v]],[/((ipod|iphone)\d+,\d+)/i],[c,[f,_],[p,v]],[/(ipad\d+,\d+)/i],[c,[f,_],[p,y]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,_],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,_],[p,y]],[/(macintosh);/i],[c,[f,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,O],[p,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,O],[p,v]],[/\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],[[c,/_/g," "],[f,j],[p,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,j],[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],[c,[f,"OPPO"],[p,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[p,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[p,v]],[/\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],[c,[f,P],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,P],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,"LG"],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,"LG"],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[p,v]],[/(pixel c)\b/i],[c,[f,T],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,T],[p,v]],[/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],[c,[f,N],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,N],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,A],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,A],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,k],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,E],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,E],[p,v]],[/(nexus 9)/i],[c,[f,"HTC"],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[p,v]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,D],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 7,087 bytes, line 1
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[p,v]],[/(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],[f,c,[p,y]],[/(surface duo)/i],[c,[f,R],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[p,v]],[/(u304aa)/i],[c,[f,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[p,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[p,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[p,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[p,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[p,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[p,v]],[/\b(ph-1) /i],[c,[f,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[p,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[p,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[p,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[p,y]],[/(sprint) (\w+)/i],[f,c,[p,v]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,R],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,F],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,F],[p,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[p,m]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[p,m]],[/(playstation [345portablevi]+)/i],[c,[f,N],[p,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,R],[p,m]],[/smart-tv.+(samsung)/i],[f,[p,b]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,L],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[p,b]],[/(apple) ?tv/i],[f,[c,_+" TV"],[p,b]],[/crkey/i],[[c,C+"cast"],[f,T],[p,b]],[/droid.+aft(\w)( bui|\))/i],[c,[f,A],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,D],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,N],[p,b]],[/(mitv-\w{5}) bui/i],[c,[f,j],[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,z],[c,z],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/((pebble))app/i],[f,c,[p,w]],[/droid.+; (glass) \d/i],[c,[f,T],[p,w]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,F],[p,w]],[/(quest( 2)?)/i],[c,[f,U],[p,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"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],[d,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[h,V,J]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[h,V,J]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,h],[/\(bb(10);/i],[h,[d,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[h,[d,C+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],h],[/(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],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,h]]},W=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof W))return new W(e,t).getResult();var r=e||(typeof i!==a&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=t?B(Z,t):Z;return this.getBrowser=function(){var e,t={};return t[d]=o,t[h]=o,H.call(t,r,n.browser),t.major=typeof(e=t.version)===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[g]=o,H.call(e,r,n.cpu),e},this.getDevice=function(){var e={};return e[f]=o,e[c]=o,e[p]=o,H.call(e,r,n.device),e},this.getEngine=function(){var e={};return e[d]=o,e[h]=o,H.call(e,r,n.engine),e},this.getOS=function(){var e={};return e[d]=o,e[h]=o,H.call(e,r,n.os),e},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 r},this.setUA=function(e){return r=typeof e===u&&e.length>350?z(e,350):e,this},this.setUA(r),this};W.VERSION="0.7.33",W.BROWSER=$([d,h,"major"]),W.CPU=$([g]),W.DEVICE=$([c,f,p,m,v,b,y,w,S]),W.ENGINE=W.OS=$([d,h]),typeof t!==a?(e.exports&&(t=e.exports=W),t.UAParser=W):r.amdO?o!==(n=(function(){return W}).call(t,r,t,e))&&(e.exports=n):typeof i!==a&&(i.UAParser=W);var K=typeof i!==a&&(i.jQuery||i.Zepto);if(K&&!K.ua){var Q=new W;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var r in t)K.ua[r]=t[r]}}}("object"==typeof window?window:this)},8417:function(e,t,r){"use strict";r.d(t,{Z:function(){return z}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepe
vendor: 9,149 bytes, line 1
1nd?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,r){return e.slice(t,r)}function d(e){return e.length}function p(e,t){return t.push(e),e}var f=1,h=1,g=0,m=0,v=0,y="";function b(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:f,column:h,length:s,return:""}}function w(e,t){return s(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return v=m<g?u(y,m++):0,h++,10===v&&(h=1,f++),v}function A(){return u(y,m)}function _(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return f=h=1,g=d(y=e),m=0,[]}function k(e){var t,r;return(t=m-1,r=function e(t){for(;S();)switch(v){case t:return m;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:S()}return m}(91===e?e+2:40===e?e+1:e),c(y,t,r)).trim()}var x="-ms-",C="-moz-",I="-webkit-",T="comm",O="rule",R="decl",P="@keyframes";function M(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function L(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case R:return e.return=e.return||e.value;case T:return"";case P:return e.return=e.value+"{"+M(e.children,n)+"}";case O:e.value=e.props.join(",")}return d(r=M(e.children,n))?e.return=e.value+"{"+r+"}":""}function D(e,t,r,n,o,s,l,u,d,p,f){for(var h=o-1,g=0===o?s:[""],m=g.length,v=0,y=0,w=0;v<n;++v)for(var S=0,A=c(e,h+1,h=i(y=l[v])),_=e;S<m;++S)(_=(y>0?g[S]+" "+A:a(A,/&\f/g,g[S])).trim())&&(d[w++]=_);return b(e,t,r,0===o?O:u,d,p,f)}function N(e,t,r,n){return b(e,t,r,R,c(e,0,n),c(e,n+1,-1),n)}var j=function(e,t,r){for(var n=0,i=0;n=i,i=A(),38===n&&12===i&&(t[r]=1),!_(i);)S();return c(y,e,m)},F=function(e,t){var r=-1,n=44;do switch(_(n)){case 0:38===n&&12===A()&&(t[r]=1),e[r]+=j(m-1,t,r);break;case 2:e[r]+=k(n);break;case 4:if(44===n){e[++r]=58===A()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=S());return e},U=function(e,t){var r;return r=F(E(e),t),y="",r},B=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(r))&&!n){B.set(e,!0);for(var i=[],o=U(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},q=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},G=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case R:e.return=function e(t,r){switch(45^u(t,0)?(((r<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return I+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return I+t+C+t+x+t+t;case 6828:case 4268:return I+t+x+t+t;case 6165:return I+t+x+"flex-"+t+t;case 5187:return I+t+a(t,/(\w+).+(:[^]+)/,I+"box-$1$2"+x+"flex-$1$2")+t;case 5443:return I+t+x+"flex-item-"+a(t,/flex-|-self/,"")+t;case 4675:return I+t+x+"flex-line-pack"+a(t,/align-content|flex-|-self/,"")+t;case 5548:return I+t+x+a(t,"shrink","negative")+t;case 5292:return I+t+x+a(t,"basis","preferred-size")+t;case 6060:return I+"box-"+a(t,"-grow","")+I+t+x+a(t,"grow","positive")+t;case 4554:return I+a(t,/([^-])(transform)/g,"$1"+I+"$2")+t;case 6187:return a(a(a(t,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),t,"")+t;case 5495:case 3959:return a(t,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return a(a(t,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+x+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+t+t;case 4095:case 3583:case 4068:case 2532:return a(t,/(.+)-inline(.+)/,I+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return a(t,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+C+(108==u(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(a(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return a(t,":",":"+I)+t;case 101:return a(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(45===u(t,14)?"inline-":"")+"box$3$1"+I+"$2$3$1"+x+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return I+t+x+a(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+x+a(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+x+a(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+x+t+t}return t}(e.value,e.length);break;case P:return M([w(e,{value:a(e.value,"@","@"+I)})],n);case O:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return M([w(e,{props:[a(t,/:(read-\w+)/,":"+C+"$1")]})],n);case"::placeholder":return M([w(e,{props:[a(t,/:(plac\w+)/,":"+I+"input-$1")]}),w(e,{props:[a(t,/:(plac\w+)/,":"+C+"$1")]}),w(e,{props:[a(t,/:(plac\w+)/,x+"input-$1")]})],n)}return""}).join("")}}],z=function(e){var t,r,i,s,g,w=e.key;if("css"===w){var x=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(x,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var C=e.stylisPlugins||G,I={},O=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)I[t[r]]=!0;O.push(e)});var R=(r=(t=[$,q].concat(C,[L,(i=function(e){g.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var s="",a=0;a<r;a++)s+=t[a](e,n,i,o)||"";return s}),P=function(e){var t,r;return M((r=function e(t,r,n,i,s,g,w,E,x){for(var C,I=0,O=0,R=w,P=0,M=0,L=0,j=1,F=1,U=1,B=0,$="",q=s,G=g,z=i,H=$;F;)switch(L=B,B=S()){case 40:if(108!=L&&58==u(H,R-1)){-1!=l(H+=a(k(B),"&","&\f"),"&\f")&&(U=-1);break}case 34:case 39:case 91:H+=k(B);break;case 9:case 10:case 13:case 32:H+=function(e){for(;v=A();)if(v<33)S();else break;return _(e)>2||_(v)>3?"":" "}(L);break;case 92:H+=function(e,t){for(var r;--t&&S()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=m+(t<6&&32==A()&&32==S()),c(y,e,r)}(m-1,7);continue;case 47:switch(A()){case 42:case 47:p(b(C=function(e,t){for(;S();)if(e+v===57)break;else if(e+v===84&&47===A())break;return"/*"+c(y,t,m-1)+"*"+o(47===e?e:S())}(S(),m),r,n,T,o(v),c(C,2,-2),0),x);break;default:H+="/"}break;case 123*j:E[I++]=d(H)*U;case 125*j:case 59:case 0:switch(B){case 0:case 125:F=0;case 59+O:-1==U&&(H=a(H,/\f/g,"")),M>0&&d(H)-R&&p(M>32?N(H+";",i,n,R-1):N(a(H," ","")+";",i,n,R-2),x);break;case 59:H+=";";default:if(p(z=D(H,r,n,I,O,s,E,$,q=[],G=[],R),g),123===B){if(0===O)e(H,r,z,z,q,g,R,E,G);else switch(99===P&&110===u(H,3)?100:P){case 100:case 108:case 109:case 115:e(t,z,z,i&&p(D(t,z,z,0,0,s,E,$,s,q=[],R),G),s,G,R,E,i?q:G);break;default:e(H,z,z,z,[""],G,0,E,G)}}}I=O=M=0,j=U=1,$=H="",R=w;break;case 58:R=1+d(H),M=L;default:if(j<1){if(123==B)--j;else if(125==B&&0==j++&&125==(v=m>0?u(y,--m):0,h--,10===v&&(h=1,f--),v))continue}switch(H+=o(B),B*j){case 38:U=O>0?1:(H+="\f",-1);break;case 44:E[I++]=(d(H)-1)*U,U=1;break;case 64:45===A()&&(H+=k(S())),P=A(),O=R=d($=H+=function(e){for(;!_(A());)S();return c(y,e,m)}(m)),B++;break;case 45:45===L&&2==d(H)&&(j=0)}}return g}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",r),R)},j={key:w,sheet:new n({key:w,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:I,registered:{}
1,insert:function(e,t,r,n){g=r,P(e?e+"{"+t.styles+"}":t.styles),n&&(j.inserted[t.name]=!0)}};return j.sheet.hydrate(O),j}},45042:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},6498:function(e,t,r){"use strict";r.d(t,{C:function(){return a},T:function(){return u},i:function(){return o},w:function(){return l}});var n=r(67294),i=r(8417);r(48137),r(27278);var o=!0,s=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),a=s.Provider,l=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(s),r)})};o||(l=function(e){return function(t){var r=(0,n.useContext)(s);return null===r?(r=(0,i.Z)({key:"css"}),n.createElement(s.Provider,{value:r},e(t,r))):e(t,r)}});var u=n.createContext({})},70917:function(e,t,r){"use strict";r.d(t,{F4:function(){return c},iv:function(){return u},xB:function(){return l}});var n=r(6498),i=r(67294),o=r(70444),s=r(27278),a=r(48137);r(8417),r(8679);var l=(0,n.w)(function(e,t){var r=e.styles,l=(0,a.O)([r],void 0,i.useContext(n.T));if(!n.i){for(var u,c=l.name,d=l.styles,p=l.next;void 0!==p;)c+=" "+p.name,d+=p.styles,p=p.next;var f=!0===t.compat,h=t.insert("",{name:c,styles:d},t.sheet,f);return f?null:i.createElement("style",((u={})["data-emotion"]=t.key+"-global "+c,u.dangerouslySetInnerHTML={__html:h},u.nonce=t.sheet.nonce,u))}var g=i.useRef();return(0,s.j)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),g.current=[r,n],function(){r.flush()}},[t]),(0,s.j)(function(){var e=g.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.My)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)},[t,l.name]),null});function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.O)(t)}var c=function(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},48137:function(e,t,r){"use strict";r.d(t,{O:function(){return h}});var n,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(45042),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=p(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":u(s)&&(n+=c(o)+":"+d(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)u(s[a])&&(n+=c(o)+":"+d(o,s[a])+";");else{var l=p(e,t,s);switch(o){case"animation":case"animationName":n+=c(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,s=r(e);return n=o,p(e,t,s)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,h=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,s="";n=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,s+=p(r,t,a)):s+=a[0];for(var l=1;l<e.length;l++)s+=p(r,t,e[l]),o&&(s+=a[l]);f.lastIndex=0;for(var u="";null!==(i=f.exec(s));)u+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>
1>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(s)+u,styles:s,next:n}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return s},j:function(){return a}});var n,i=r(67294),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=o||i.useLayoutEffect},70444:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return o},fp:function(){return n},hC:function(){return i}});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},95602:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),o=r(85893);t.Z=(0,i.default)([(0,o.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"},"0"),(0,o.jsx)("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")],"AnalyticsOutlined")},2384:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),o=r(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"}),"BackupOutlined")},2548:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),o=r(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},61377:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),o=r(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m22 3-1.67 1.67L18.67 3 17 4.67 15.33 3l-1.66 1.67L12 3l-1.67 1.67L8.67 3 7 4.67 5.33 3 3.67 4.67 2 3v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zM11 19H4v-6h7zm9 0h-7v-2h7zm0-4h-7v-2h7zm0-4H4V8h16z"}),"NewspaperOutlined")},63811:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var i=n(r(64938)),o=r(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5m-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18z"}),"QueryStatsOutlined")},64938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(34377)},90068:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(87462);r(67294);var i=r(41234),o=r(96682),s=r(85893),a=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,o.Z)(r),a="function"==typeof e?e(t&&n[t]||n):e;return(0,s.jsx)(i.Z,{styles:a})},l=r(90247),u=r(10606),c=function(e){return(0,s.jsx)(a,(0,n.Z)({},e,{defaultTheme:l.Z,themeId:u.Z}))}},53219:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(87462),i=r(63366),o=r(67294),s=r(90512),a=r(58510),l=r(98216),u=r(71657),c=r(90948),d=r(1977),p=r(8027);function f(e){return(0,p.ZP)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=r(85893);let g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=e=>{let{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&`color${(0,l.Z)(t)}`,`fontSize${(0,l.Z)(r)}`]};return(0,a.Z)(i,f,n)},v=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,l.Z)(r.color)}`],t[`fontSize${(0,l.Z)(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,s,a,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:({inherit:"inherit",small:(null==(o=e.typography)||null==(s=o.pxToRem)?void 0:s.call(o,20))||"1.25rem",medium:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"})[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:({action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0})[t.color]}}),y=o.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiSvgIcon"}),{children:a,className:l,color:c="inherit",component:d="svg",fontSize:p="medium",htmlColor:f,inheritViewBox:y=!1,titleAccess:b,viewBox:w="0 0 24 24"}=r,S=(0,i.Z)(r,g),A=o.isValidElement(a)&&"svg"===a.type,_=(0,n.Z)({},r,{color:c,component:d,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:w,hasSvgAsChild:A}),E={};y||(E.viewBox=w);let k=m(_);return(0,h.jsxs)(v,(0,n.Z)({as:d,className:(0,s.Z)(k.root,l),focusable:"false",color:f,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t},E,S,A&&a.props,{ownerState:_,children:[A?a.props.children:a,b?(0,h.jsx)("title",{children:b}):null]}))});y.muiName="SvgIcon";var b=y},22430:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(87462),i=r(63366),o=r(67294);let s=o.createContext(null);function a(){return o.useContext(s)}var l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=r(85893),c=function(e){let{children:t,theme:r}=e,i=a(),c=o.useMemo(()=>{let e=null===i?r:"function"==typeof r?r(i):(0,n.Z)({},i,r);return null!=e&&(e[l]=null!==i),e},[r,i]);return(0,u.jsx)(s.Provider,{value:c,children:t})},d=r(6498),p=r(34168),f=r(82056);let h={};function g(e,t,r,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof r){let s=r(o),a=e?(0,n.Z)({},t,{[e]:s}):s;return i?()=>a:a}return e?(0,n.Z)({},t,{[e]:r}):(0,n.Z)({},t,r)},[e,t,r,i])}var m=function(e){let{children:t,theme:r,themeId:n}=e,i=(0,p.Z)(h),o=a()||h,s=g(n,i,r),l=g(n,o,r,!0),m="rtl"===s.direction;return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:s,children:(0,u.jsx)(f.Z,{value:m,children:t})})})},v=r(10606);let y=["theme"];function b(e){let{theme:t}=e,r=(0,i.Z)(e,y),o=t[v.Z];return(0,u.jsx)(m,(0,n.Z)({},r,{themeId:o?v.Z:void 0,theme:o||t}))}},68239:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(87462),i=r(63366),o=r(78758),s=r(68027),a=r(44920),l=r(86523),u=r(17172),c=r(2101),d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackgroun
1d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A(e,t,r,n){let i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,c.$n)(e.main,i):"dark"===t&&(e.dark=(0,c._j)(e.main,o)))}let _=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],E={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function x(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let C=["none",x(0,2,1,-1,0,1,1,0,0,1,3,0),x(0,3,1,-2,0,2,2,0,0,1,5,0),x(0,3,3,-2,0,3,4,0,0,1,8,0),x(0,2,4,-1,0,4,5,0,0,1,10,0),x(0,3,5,-1,0,5,8,0,0,1,14,0),x(0,3,5,-1,0,6,10,0,0,1,18,0),x(0,4,5,-2,0,7,10,1,0,2,16,1),x(0,5,5,-3,0,8,10,1,0,3,14,2),x(0,5,6,-3,0,9,12,1,0,3,16,2),x(0,6,6,-3,0,10,14,1,0,4,18,3),x(0,6,7,-4,0,11,15,1,0,4,20,3),x(0,7,8,-4,0,12,17,2,0,5,22,4),x(0,7,8,-4,0,13,19,2,0,5,24,4),x(0,7,9,-4,0,14,21,2,0,5,26,4),x(0,8,9,-5,0,15,22,2,0,6,28,5),x(0,8,10,-5,0,16,24,2,0,6,30,5),x(0,8,11,-5,0,17,26,2,0,6,32,5),x(0,9,11,-5,0,18,28,2,0,7,34,6),x(0,9,12,-6,0,19,29,2,0,7,36,6),x(0,10,13,-6,0,20,31,3,0,8,38,7),x(0,10,13,-6,0,21,33,3,0,8,40,7),x(0,10,14,-6,0,22,35,3,0,8,42,7),x(0,11,14,-7,0,23,36,3,0,9,44,8),x(0,11,15,-7,0,24,38,3,0,9,46,8)];var I=r(96067),T={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let O=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var R=function(e={},...t){var r;let{mixins:x={},palette:R={},transitions:P={},typography:M={}}=e,L=(0,i.Z)(e,O);if(e.vars)throw Error((0,o.Z)(18));let D=function(e){let{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2}=e,l=(0,i.Z)(e,b),u=e.primary||function(e="light"){return"dark"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),_=e.secondary||function(e="light"){return"dark"===e?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),E=e.error||function(e="light"){return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),k=e.info||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),x=e.success||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),C=e.warning||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function I(e){return(0,c.mi)(e,S.text.primary)>=r?S.text.primary:w.text.primary}let T=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:s=700})=>{if(!(e=(0,n.Z)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,o.Z)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,o.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return A(e,"light",i,a),A(e,"dark",s,a),e.contrastText||(e.contrastText=I(e.main)),e};return(0,s.Z)((0,n.Z)({common:(0,n.Z)({},d),mode:t,primary:T({color:u,name:"primary"}),secondary:T({color:_,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:E,name:"error"}),warning:T({color:C,name:"warning"}),info:T({color:k,name:"info"}),success:T({color:x,name:"success"}),grey:p,contrastThreshold:r,getContrastText:I,augmentColor:T,tonalOffset:a},{dark:S,light:w}[t]),l)}(R),N=(0,u.Z)(e),j=(0,s.Z)(N,{mixins:(r=N.breakpoints,(0,n.Z)({toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}}},x)),palette:D,shadows:C.slice(),typography:function(e,t){let r="function"==typeof t?t(e):t,{fontFamily:o=k,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:h}=r,g=(0,i.Z)(r,_),m=a/14,v=h||(e=>`${e/p*m}rem`),y=(e,t,r,i,s)=>(0,n.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:r},o===k?{letterSpacing:`${Math.round(i/t*1e5)/1e5}em`}:{},s,f),b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,E),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.Z)((0,n.Z)({htmlFontSize:p,pxToRem:v,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),g,{clone:!1})}(D,M),transitions:(0,I.ZP)(P),zIndex:(0,n.Z)({},T)});return j=(0,s.Z)(j,L),(j=t.reduce((e,t)=>
1(0,s.Z)(e,t),j)).unstable_sxConfig=(0,n.Z)({},a.Z,null==L?void 0:L.unstable_sxConfig),j.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},j}},96067:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},x9:function(){return a}});var n=r(63366),i=r(87462);let o=["duration","easing","delay"],s={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function u(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function c(e){let t=(0,i.Z)({},s,e.easing),r=(0,i.Z)({},a,e.duration);return(0,i.Z)({getAutoHeightDuration:u,create:(e=["all"],i={})=>{let{duration:s=r.standard,easing:a=t.easeInOut,delay:u=0}=i;return(0,n.Z)(i,o),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof s?s:l(s)} ${a} ${"string"==typeof u?u:l(u)}`).join(",")}},e,{easing:t,duration:r})}},90247:function(e,t,r){"use strict";let n=(0,r(68239).Z)();t.Z=n},10606:function(e,t){"use strict";t.Z="$$material"},14136:function(e,t,r){"use strict";var n=r(75536);t.Z=e=>(0,n.Z)(e)&&"classes"!==e},75536:function(e,t){"use strict";t.Z=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},90948:function(e,t,r){"use strict";var n=r(58128),i=r(90247),o=r(10606),s=r(14136);let a=(0,n.ZP)({themeId:o.Z,defaultTheme:i.Z,rootShouldForwardProp:s.Z});t.ZP=a},71657:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(29628),i=r(90247),o=r(10606);function s({props:e,name:t}){return(0,n.Z)({props:e,name:t,defaultTheme:i.Z,themeId:o.Z})}},98216:function(e,t,r){"use strict";var n=r(62908);t.Z=n.Z},35893:function(e,t,r){"use strict";var n=r(15725);t.Z=n.Z},82066:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(87462),i=r(67294),o=r(53219),s=r(85893);function a(e,t){function r(r,i){return(0,s.jsx)(o.Z,(0,n.Z)({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return r.muiName=o.Z.muiName,i.memo(i.forwardRef(r))}},57144:function(e,t,r){"use strict";var n=r(86145);t.Z=n.Z},34377:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return s.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return S},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return m},useControlled:function(){return v.Z},useEventCallback:function(){return y.Z},useForkRef:function(){return b.Z},useIsFocusVisible:function(){return w.Z}});var n=r(31983),i=r(98216),o=r(35893),s=r(82066),a=r(57144),l=function(e,t){return()=>null},u=r(56476),c=r(8038),d=r(5340);r(87462);var p=function(e,t){return()=>null},f=r(25091).Z,h=r(58974),g=r(27909),m=function(e,t,r,n,i){return null},v=r(49299),y=r(2068),b=r(51705),w=r(39632);let S={configure:e=>{n.Z.configure(e)}}},56476:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),i=function(e,t){var r,i;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},8038:function(e,t,r){"use strict";var n=r(36425);t.Z=n.Z},5340:function(e,t,r){"use strict";var n=r(96613);t.Z=n.Z},49299:function(e,t,r){"use strict";var n=r(81222);t.Z=n.Z},58974:function(e,t,r){"use strict";var n=r(54895);t.Z=n.Z},2068:function(e,t,r){"use strict";var n=r(22010);t.Z=n.Z},51705:function(e,t,r){"use strict";var n=r(22760);t.Z=n.Z},27909:function(e,t,r){"use strict";var n=r(89326);t.Z=n.Z},39632:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(67294),i=r(39192);let o=!0,s=!1,a=new i.V,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function d(){"hidden"===this.visibilityState&&s&&(o=!0)}var p=function(){let e=n.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0)}},[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||function(e){let{type:t,tagName:r}=e;return"INPUT"===r&&!!l[t]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(s=!0,a.start(100,()=>{s=!1}),t.current=!1,!0)},ref:e}}},41234:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}}),r(67294);var n=r(70917),i=r(85893);function o(e){let{styles:t,defaultTheme:r={}}=e,o="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,i.jsx)(n.xB,{styles:o})}},63390:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{GlobalStyles:function(){return A.Z},StyledEngineProvider:function(){return S},ThemeContext:function(){return u.T},css:function(){return y.iv},default:function(){return _},internal_processStyles:function(){return E}
1,keyframes:function(){return y.F4}});var i=r(87462),o=r(67294),s=r(45042),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,s.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),u=r(6498),c=r(70444),d=r(48137),p=r(27278),f=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:f},g=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},m=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,p.L)(function(){return(0,c.My)(t,r,n)}),null},v=(function e(t,r){var n,s,a=t.__emotion_real===t,l=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,s=r.target);var p=g(t,r,a),f=p||h(l),v=!f("as");return function(){var y=arguments,b=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&b.push("label:"+n+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);
1else{b.push(y[0][0]);for(var w=y.length,S=1;S<w;S++)b.push(y[S],y[0][S])}var A=(0,u.w)(function(e,t,r){var n=v&&e.as||l,i="",a=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=o.useContext(u.T)}"string"==typeof e.className?i=(0,c.fp)(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var w=(0,d.O)(b.concat(a),t.registered,g);i+=t.key+"-"+w.name,void 0!==s&&(i+=" "+s);var S=v&&void 0===p?h(n):f,A={};for(var _ in e)(!v||"as"!==_)&&S(_)&&(A[_]=e[_]);return A.className=i,A.ref=r,o.createElement(o.Fragment,null,o.createElement(m,{cache:t,serialized:w,isStringTag:"string"==typeof n}),o.createElement(n,A))});return A.displayName=void 0!==n?n:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",A.defaultProps=t.defaultProps,A.__emotion_real=A,A.__emotion_base=l,A.__emotion_styles=b,A.__emotion_forwardProp=p,Object.defineProperty(A,"toString",{value:function(){return"."+s}}),A.withComponent=function(t,n){return e(t,(0,i.Z)({},r,n,{shouldForwardProp:g(A,n,!0)})).apply(void 0,b)},A}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){v[e]=v(e)});var y=r(70917),b=r(8417),w=r(85893);function S(e){let{injectFirst:t,children:r}=e;return t&&n?(0,w.jsx)(u.C,{value:n,children:r}):r}"object"==typeof document&&(n=(0,b.Z)({key:"css",prepend:!0}));var A=r(41234);function _(e,t){return v(e,t)}let E=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},2101:function(e,t,r){"use strict";var n=r(64836);t.Fq=function(e,t){return e=a(e),t=s(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)},t._j=c,t._4=function(e,t=.15){return u(e)>.5?c(e,t):d(e,t)},t.mi=function(e,t){let r=u(e),n=u(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.$n=d;var i=n(r(743)),o=n(r(37859));function s(e,t=0,r=1){return(0,o.default)(e,t,r)}function a(e){let t;if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw Error((0,i.default)(9,e));let o=e.substring(r+1,e.length-1);if("color"===n){if(t=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,i.default)(10,t))}else o=o.split(",");return{type:n,values:o=o.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function u(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){let{values:t}=e=a(e),r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),s=(e,t=(e+r/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){if(e=a(e),t=s(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function d(e,t){if(e=a(e),t=s(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}},58128:function(e,t,r){"use strict";var n=r(64836);t.ZP=function(e={}){let{themeId:t,defaultTheme:r=g,rootShouldForwardProp:n=h,slotShouldForwardProp:l=h}=e,c=e=>(0,u.default)((0,i.default)({},e,{theme:v((0,i.default)({},e,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,(e,u={})=>{var d;let f;(0,s.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:g,slot:b,skipVariantsResolver:w,skipSx:S,overridesResolver:A=(d=m(b))?(e,t)=>t[d]:null}=u,_=(0,o.default)(u,p),E=void 0!==w?w:b&&"Root"!==b&&"root"!==b||!1,k=S||!1,x=h;"Root"===b||"root"===b?x=n:b?x=l:"string"==typeof e&&e.charCodeAt(0)>96&&(x=void 0);let C=(0,s.default)(e,(0,i.default)({shouldForwardProp:x,label:f},_)),I=e=>"function"==typeof e&&e.__emotion_real!==e||(0,a.isPlainObject)(e)?n=>y(e,(0,i.default)({},n,{theme:v({theme:n.theme,defaultTheme:r,themeId:t})})):e,T=(n,...o)=>{let s=I(n),a=o?o.map(I):[];g&&A&&a.push(e=>{let n=v((0,i.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[g]||!n.components[g].styleOverrides)return null;let o=n.components[g].styleOverrides,s={};
1return Object.entries(o).forEach(([t,r])=>{s[t]=y(r,(0,i.default)({},e,{theme:n}))}),A(e,s)}),g&&!E&&a.push(e=>{var n;let o=v((0,i.default)({},e,{defaultTheme:r,themeId:t}));return y({variants:null==o||null==(n=o.components)||null==(n=n[g])?void 0:n.variants},(0,i.default)({},e,{theme:o}))}),k||a.push(c);let l=a.length-o.length;if(Array.isArray(n)&&l>0){let e=Array(l).fill("");(s=[...n,...e]).raw=[...n.raw,...e]}let u=C(s,...a);return e.muiName&&(u.muiName=e.muiName),u};return C.withConfig&&(T.withConfig=C.withConfig),T}};var i=n(r(10434)),o=n(r(7071)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(63390)),a=r(211);n(r(99698)),n(r(37889));var l=n(r(19926)),u=n(r(386));let c=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v({defaultTheme:e,theme:t,themeId:r}){return 0===Object.keys(t).length?e:t[r]||t}function y(e,t){let{ownerState:r}=t,n=(0,o.default)(t,c),s="function"==typeof e?e((0,i.default)({ownerState:r},n)):e;if(Array.isArray(s))return s.flatMap(e=>y(e,(0,i.default)({ownerState:r},n)));if(s&&"object"==typeof s&&Array.isArray(s.variants)){let{variants:e=[]}=s,t=(0,o.default)(s,d);return e.forEach(e=>{let o=!0;"function"==typeof e.props?o=e.props((0,i.default)({ownerState:r},n,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)}),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.default)({ownerState:r},n,r)):e.style))}),t}return s}},82056:function(e,t,r){"use strict";r.d(t,{V:function(){return u}});var n=r(87462),i=r(63366),o=r(67294),s=r(85893);let a=["value"],l=o.createContext(),u=()=>{let e=o.useContext(l);return null!=e&&e};t.Z=function(e){let{value:t}=e,r=(0,i.Z)(e,a);return(0,s.jsx)(l.Provider,(0,n.Z)({value:null==t||t},r))}},95408:function(e,t,r){"use strict";r.d(t,{L7:function(){return l},P$:function(){return c},VO:function(){return i},W8:function(){return a},dt:function(){return u},k9:function(){return s}});var n=r(68027);let i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function s(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||o;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){let e=n.breakpoints||o;return Object.keys(t).reduce((n,o)=>(-1!==Object.keys(e.values||i).indexOf(o)?n[e.up(o)]=r(t[o],o):n[o]=t[o],n),{})}return r(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}function l(e,t){return e.reduce((e,t)=>{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}function u(e,...t){let r=a(e),i=[r,...t].reduce((e,t)=>(0,n.Z)(e,t),{});return l(Object.keys(r),i)}function c({values:e,breakpoints:t,base:r}){let n;let i=Object.keys(r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n<e.length&&(r[t]=!0)}):n.forEach(t=>{null!=e[t]&&(r[t]=!0)}),r}(e,t));return 0===i.length?e:i.reduce((t,r,i)=>(Array.isArray(e)?(t[r]=null!=e[i]?e[i]:e[n],n=i):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},57064:function(e,t,r){"use strict";function n(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}r.d(t,{Z:function(){return n}})},41512:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(63366),i=r(87462);let o=["values","unit","step"],s=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}
1))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,i.Z)({},e,{[t.key]:t.val}),{})};function a(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5}=e,l=(0,n.Z)(e,o),u=s(t),c=Object.keys(u);function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function p(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-a/100}${r})`}function f(e,n){let i=c.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[c[i]]?t[c[i]]:n)-a/100}${r})`}return(0,i.Z)({keys:c,values:u,up:d,down:p,between:f,only:function(e){return c.indexOf(e)+1<c.length?f(e,c[c.indexOf(e)+1]):d(e)},not:function(e){let t=c.indexOf(e);return 0===t?d(c[1]):t===c.length-1?p(c[t]):f(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},l)}},17172:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(87462),i=r(63366),o=r(68027),s=r(41512),a={borderRadius:4},l=r(98700),u=r(86523),c=r(44920),d=r(57064);let p=["breakpoints","palette","spacing","shape"];var f=function(e={},...t){let{breakpoints:r={},palette:f={},spacing:h,shape:g={}}=e,m=(0,i.Z)(e,p),v=(0,s.Z)(r),y=function(e=8){if(e.mui)return e;let t=(0,l.hB)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(h),b=(0,o.Z)({breakpoints:v,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},f),spacing:y,shape:(0,n.Z)({},a,g)},m);return b.applyStyles=d.Z,(b=t.reduce((e,t)=>(0,o.Z)(e,t),b)).unstable_sxConfig=(0,n.Z)({},c.Z,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},b}},19926:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},private_createBreakpoints:function(){return i.Z},unstable_applyStyles:function(){return o.Z}});var n=r(17172),i=r(41512),o=r(57064)},47730:function(e,t,r){"use strict";var n=r(68027);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},98700:function(e,t,r){"use strict";r.d(t,{hB:function(){return h},eI:function(){return f},NA:function(){return g},e6:function(){return v},o3:function(){return y}});var n=r(95408),i=r(54844),o=r(47730);let s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}let[t,r]=e.split(""),n=s[t],i=a[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...c,...d];function f(e,t,r,n){var o;let s=null!=(o=(0,i.DW)(e,t,!1))?o:r;return"number"==typeof s?e=>"string"==typeof e?e:s*e:Array.isArray(s)?e=>"string"==typeof e?e:s[e]:"function"==typeof s?s:()=>void 0}function h(e){return f(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function m(e,t){let r=h(e.theme);return Object.keys(e).map(i=>(function(e,t,r,i){var o;if(-1===t.indexOf(r))return null;let s=(o=u(r),e=>o.reduce((t,r)=>(t[r]=g(i,e),t),{})),a=e[r];return(0,n.k9)(e,a,s)})(e,t,i,r)).reduce(o.Z,{})}function v(e){return m(e,c)}function y(e){return m(e,d)}function b(e){return m(e,p)}v.propTypes={},v.filterProps=c,y.propTypes={},y.filterProps=d,b.propTypes={},b.filterProps=p},54844:function(e,t,r){"use strict";r.d(t,{DW:function(){return o},Jq:function(){return s}});var n=r(62908),i=r(95408);function o(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>
1e&&null!=e[t]?e[t]:null,e)}function s(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:o(e,r)||n,t&&(i=t(i,n,e)),i}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:a,transform:l}=e,u=e=>{if(null==e[t])return null;let u=e[t],c=o(e.theme,a)||{};return(0,i.k9)(e,u,e=>{let i=s(c,l,e);return(e===i&&"string"==typeof e&&(i=s(c,l,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?i:{[r]:i}})};return u.propTypes={},u.filterProps=[t],u}},44920:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(98700),i=r(54844),o=r(47730),s=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,o.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},a=r(95408);function l(e){return"number"!=typeof e?e:`${e}px solid`}function u(e,t){return(0,i.ZP)({prop:e,themeKey:"borders",transform:t})}let c=u("border",l),d=u("borderTop",l),p=u("borderRight",l),f=u("borderBottom",l),h=u("borderLeft",l),g=u("borderColor"),m=u("borderTopColor"),v=u("borderRightColor"),y=u("borderBottomColor"),b=u("borderLeftColor"),w=u("outline",l),S=u("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,a.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};A.propTypes={},A.filterProps=["borderRadius"],s(c,d,p,f,h,g,m,v,y,b,A,w,S);let _=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,a.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};_.propTypes={},_.filterProps=["gap"];let E=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,a.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};E.propTypes={},E.filterProps=["columnGap"];let k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,a.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};k.propTypes={},k.filterProps=["rowGap"];let x=(0,i.ZP)({prop:"gridColumn"}),C=(0,i.ZP)({prop:"gridRow"}),I=(0,i.ZP)({prop:"gridAutoFlow"}),T=(0,i.ZP)({prop:"gridAutoColumns"}),O=(0,i.ZP)({prop:"gridAutoRows"}),R=(0,i.ZP)({prop:"gridTemplateColumns"});function P(e,t){return"grey"===t?t:e}function M(e){return e<=1&&0!==e?`${100*e}%`:e}s(_,E,k,x,C,I,T,O,R,(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"})),s((0,i.ZP)({prop:"color",themeKey:"palette",transform:P}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:P}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:P}));let L=(0,i.ZP)({prop:"width",transform:M}),D=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,a.k9)(e,e.maxWidth,t=>{var r,n;let i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||a.VO[t];return i?(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:M(t)}}):null;D.filterProps=["maxWidth"];let N=(0,i.ZP)({prop:"minWidth",transform:M}),j=(0,i.ZP)({prop:"height",transform:M}),F=(0,i.ZP)({prop:"maxHeight",transform:M}),U=(0,i.ZP)({prop:"minHeight",transform:M});(0,i.ZP)({prop:"size",cssProperty:"width",transform:M}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:M}),s(L,D,N,j,F,U,(0,i.ZP)({prop:"boxSizing"}));var B={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:P},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:P},backgroundColor:{themeKey:"palette",transform:P},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3}
1,paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:k},columnGap:{style:E},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:M},maxWidth:{style:D},minWidth:{transform:M},height:{transform:M},maxHeight:{transform:M},minHeight:{transform:M},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},39707:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(87462),i=r(63366),o=r(68027),s=r(44920);let a=["sx"],l=e=>{var t,r;let n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function u(e){let t;let{sx:r}=e,{systemProps:s,otherProps:u}=l((0,i.Z)(e,a));return t=Array.isArray(r)?[s,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,o.P)(t)?(0,n.Z)({},s,t):s}:(0,n.Z)({},s,r),(0,n.Z)({},u,{sx:t})}},386:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},extendSxProp:function(){return i.Z},unstable_createStyleFunctionSx:function(){return n.n},unstable_defaultSxConfig:function(){return o.Z}});var n=r(86523),i=r(39707),o=r(44920)},86523:function(e,t,r){"use strict";r.d(t,{n:function(){return l}});var n=r(62908),i=r(47730),o=r(54844),s=r(95408),a=r(44920);function l(){function e(e,t,r,i){let a={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};let{cssProperty:u=e,themeKey:c,transform:d,style:p}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};let f=(0,o.DW)(r,c)||{};return p?p(a):(0,s.k9)(a,t,t=>{let r=(0,o.Jq)(f,d,t);return(t===r&&"string"==typeof t&&(r=(0,o.Jq)(f,d,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===u)?r:{[u]:r}})}return function t(r){var n;let{sx:o,theme:l={}}=r||{};if(!o)return null;let u=null!=(n=l.unstable_sxConfig)?n:a.Z;function c(r){let n=r;if("function"==typeof r)n=r(l);else if("object"!=typeof r)return r;if(!n)return null;let o=(0,s.W8)(l.breakpoints),a=Object.keys(o),c=o;return Object.keys(n).forEach(r=>{var o;let a="function"==typeof(o=n[r])?o(l):o;if(null!=a){if("object"==typeof a){if(u[r])c=(0,i.Z)(c,e(r,a,l,u));else{let e=(0,s.k9)({theme:l},a,e=>({[r]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)})(e,a)?c[r]=t({sx:a,theme:l}):c=(0,i.Z)(c,e)}}else c=(0,i.Z)(c,e(r,a,l,u))}}),(0,s.L7)(a,c)}return Array.isArray(o)?o.map(c):c(o)}}let u=l();u.filterProps=["sx"],t.Z=u},96682:function(e,t,r){"use strict";var n=r(17172),i=r(34168);let o=(0,n.Z)();t.Z=function(e=o){return(0,i.Z)(e)}},20539:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(62236);function i(e){let{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,i):i}},29628:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(20539),i=r(96682);function o({props:e,name:t,defaultTheme:r,themeId:o}){let s=(0,i.Z)(r);return o&&(s=s[o]||s),(0,n.Z)({theme:s,name:t,props:e})}},34168:function(e,t,r){"use strict";var n=r(67294),i=r(6498);t.Z=function(e=null){let t=n.useContext(i.T);return t&&0!==Object.keys(t).length?t:e}},31983:function(e,t){"use strict";let r;let n=e=>e,i=(r=n,{configure(e){r=e},generate:e=>r(e),reset(){r=n}});t.Z=i},62908:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(78758);function i(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},99698:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(62908)},92358:function(e,t){"use strict";t.Z=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}},37859:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(92358)},58510:function(e,t,r){"use strict";function n(e,t,r){let n={};return Object.keys(e).forEach(i=>
1{n[i]=e[i].reduce((e,n)=>{if(n){let i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}r.d(t,{Z:function(){return n}})},15725:function(e,t,r){"use strict";function n(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}r.d(t,{Z:function(){return n}})},86145:function(e,t,r){"use strict";function n(e,t=166){let r;function n(...i){clearTimeout(r),r=setTimeout(()=>{e.apply(this,i)},t)}return n.clear=()=>{clearTimeout(r)},n}r.d(t,{Z:function(){return n}})},68027:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return function e(t,r,o={clone:!0}){let s=o.clone?(0,n.Z)({},t):t;return i(t)&&i(r)&&Object.keys(r).forEach(n=>{"__proto__"!==n&&(i(r[n])&&n in t&&i(t[n])?s[n]=e(t[n],r[n],o):o.clone?s[n]=i(r[n])?function e(t){if(!i(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:s[n]=r[n])}),s}}});var n=r(87462);function i(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},211:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},isPlainObject:function(){return n.P}});var n=r(68027)},78758:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{Z:function(){return n}})},743:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(78758)},8027:function(e,t,r){"use strict";r.d(t,{ZP:function(){return o},_v:function(){return i}});var n=r(31983);let i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,r="Mui"){let o=i[t];return o?`${r}-${o}`:`${n.Z.generate(e)}-${t}`}},1977:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(8027);function i(e,t,r="Mui"){let i={};return t.forEach(t=>{i[t]=(0,n.ZP)(e,t,r)}),i}},37889:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l},getFunctionName:function(){return o}});var n=r(59864);let i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){let t=`${e}`.match(i);return t&&t[1]||""}function s(e,t=""){return e.displayName||e.name||o(e)||t}function a(e,t,r){let n=s(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return s(e,"Component");if("object"==typeof e)switch(e.$$typeof){case n.ForwardRef:return a(e,e.render,"ForwardRef");case n.Memo:return a(e,e.type,"memo")}}}},36425:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},96613:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(36425);function i(e){return(0,n.Z)(e).defaultView||window}},62236:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(t,r){let i=(0,n.Z)({},r);return Object.keys(t).forEach(o=>{if(o.toString().match(/^(components|slots)$/))i[o]=(0,n.Z)({},t[o],i[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let s=t[o]||{},a=r[o];i[o]={},a&&Object.keys(a)?s&&Object.keys(s)?(i[o]=(0,n.Z)({},a),Object.keys(s).forEach(t=>{i[o][t]=e(s[t],a[t])})):i[o]=a:i[o]=s}else void 0===i[o]&&(i[o]=t[o])}),i}}});var n=r(87462)},25091:function(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},81222:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294);function i({controlled:e,default:t,name:r,state:i="value"}){let{current:o}=n.useRef(void 0!==e),[s,a]=n.useState(t),l=n.useCallback(e=>{o||a(e)},[]);return[o?e:s,l]}},54895:function(e,t,r){"use strict";var n=r(67294);let i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;t.Z=i},22010:function(e,t,r){"use strict";var n=r(67294),i=r(54895);t.Z=function(e){let t=n.useRef(e);return(0,i.Z)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}},22760:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294),i=r(25091);function o(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>
1{e.forEach(e=>{(0,i.Z)(e,t)})},e)}},89326:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n,i=r(67294);let o=0,s=(n||(n=r.t(i,2)))["useId".toString()];function a(e){if(void 0!==s){let t=s();return null!=e?e:t}return function(e){let[t,r]=i.useState(e),n=e||t;return i.useEffect(()=>{null==t&&(o+=1,r(`mui-${o}`))},[t]),n}(e)}},39192:function(e,t,r){"use strict";r.d(t,{V:function(){return s},Z:function(){return a}});var n=r(67294);let i={},o=[];class s{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new s}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function a(){var e;let t=function(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(void 0)),r}(s.create).current;return e=t.disposeEffect,n.useEffect(e,o),t}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,d=a>0?s-4:s;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(e,t,n){for(var i,o=[],s=t;s<n;s+=3)o.push(r[(i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(e,t,r){"use strict";/*!
2 * The buffer module from node.js, for the browser.
3 *
4 * @author   Feross Aboukhadijeh <https://feross.org>
5 * @license  MIT
6 */let n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|h(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(j(e,Uint8Array)){let t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);let i=function(e){var t;if(a.isBuffer(e)){let t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 19,324 bytes, line 6
6if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|f(e))}function d(e){let t=e.length<0?0:0|f(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(i)return n?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=F[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var o,s;return o=t,s=r,0===o&&s===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*s}else -1!==n&&(o-=o-n),n=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return -1}function b(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function A(e,t,r,n,i){O(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function _(e,t,r,n,i){O(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(j(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,l=Math.min(o,s),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){o=u[e],s=c[e];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){var i,o,s,a,l,u,c,d;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let f=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let s=t.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(n!=n)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,N(L(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=t,a=r,N(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,a);case"base64":return l=t,u=r,N(D(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,N(function(e,t){let r,n;let i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=U(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=U(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=U(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),a.prototype.readBigInt64BE=U(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;S(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;S(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=U(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=U(function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);S(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);S(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=U(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=U(function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=a.isBuffer(e)?e:a.from(e,n),s=o.length;
6if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};let C={};function I(e,t,r){C[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function T(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function O(e,t,r,n,i,o){if(e>r||e<t){let n;let i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new C.ERR_OUT_OF_RANGE("value",n,e)}R(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&P(i,n.length-(o+1))}function R(e,t){if("number"!=typeof e)throw new C.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw R(e,r),new C.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new C.ERR_BUFFER_OUT_OF_BOUNDS;throw new C.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}I("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),I("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),I("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=T(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=T(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let M=/[^+/0-9A-Za-z-_]/g;function L(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function D(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function U(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},8679:function(e,t,r){"use strict";var n=r(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=f(r);i&&i!==h&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),g=l(r),m=0;m<s.length;++m){var v=s[m];if(!o[v]&&!(n&&n[v])&&!(g&&g[v])&&!(a&&a[v])){var y=p(r,v);try{u(t,v,y)}catch(e){}}}}return t}},96103:function(e,t){"use strict";/** @license React v16.13.1
7 * react-is.production.min.js
8 *
9 * Copyright (c) Facebook, Inc. and its affiliates.
10 *
11 * This source code is licensed under the MIT license found in the
12 * LICENSE file in the root directory of this source tree.
13 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case g:case l:return e;default:return t}}case i:return t}}}function A(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return A(e)||S(e)===c},t.isConcurrentMode=A,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},21296:function(e,t,r){"use strict";e.exports=r(96103)},80645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,d=r?i-1:0,p=r?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+d],d+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,p=23===i?5960464477539062e-23:0,f=n?0:o-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=h,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+f]=255&s,f+=h,s/=256,u-=8);e[r+f-h]|=128*g}},84622:function(e,t,r){"use strict";let n;r.d(t,{cC:function(){return I},Jc:function(){return eG},$G:function(){return R}});var i=r(67294),o=r(71739),s=r.n(o),a=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(s()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(a),o=null;null!==(o=i.exec(e));)if(o[0].trim()){if(o[1]){var l=o[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1))}return t}var u=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,d=Object.create(null),p={parse:function(e,t){t||(t={}),t.components||(t.components=d);var r,n=[],i=[],o=-1,s=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");n.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(u,function(a,u){if(s){if(a!=="</"+r.name+">")return;s=!1}var d,p="/"!==a.charAt(1),f=a.startsWith("<!--"),h=u+a.length,g=e.charAt(h);if(f){var m=l(a);return o<0?n.push(m):(d=i[o]).children.push(m),n}if(p&&(o++,"tag"===(r=l(a)).type&&t.components[r.name]&&(r.type="component",s=!0),r.voidElement||s||!g||"<"===g||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===o&&n.push(r),(d=i[o-1])&&d.children.push(r),i[o]=r),(!p||r.voidElement)&&(o>-1&&(r.voidElement||r.name===a.slice(2,-1))&&(r=-1==--o?n:i[o]),!s&&"<"!==g&&g)){d=-1===o?n:i[o].children;var v=e.indexOf("<",h),y=e.slice(h,-1===v?void 0:v);c.test(y)&&(y=" "),(v>-1&&o+d.length>=0||" "!==y)&&d.push({type:"text",content:y})}}),n}
13,stringify:function(e){return e.reduce(function(e,t){return e+function e(t,r){switch(r.type){case"text":return t+r.content;case"tag":return t+="<"+r.name+(r.attrs?function(e){var t=[];for(var r in e)t.push(r+'="'+e[r]+'"');return t.length?" "+t.join(" "):""}(r.attrs):"")+(r.voidElement?"/>":">"),r.voidElement?t:t+r.children.reduce(e,"")+"</"+r.name+">";case"comment":return t+"<!--"+r.comment+"-->"}}("",t)},"")}};function f(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}let h={};function g(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&h[t[0]]||("string"==typeof t[0]&&(h[t[0]]=new Date),f(...t))}let m=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function v(e,t,r){e.loadNamespaces(t,m(e,r))}function y(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,m(e,n))}let b=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,w={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},S=e=>w[e],A={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(b,S)};function _(e,t){if(!e)return!1;let r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function E(e){if(!e)return[];let t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?k(t):t}function k(e){return Array.isArray(e)?e:[e]}let x=(0,i.createContext)();class C{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function I(e){let{children:t,count:r,parent:o,i18nKey:s,context:a,tOptions:l={},values:u,defaults:c,components:d,ns:h,i18n:m,t:v,shouldUnescape:y,...b}=e,{i18n:w,defaultNS:S}=(0,i.useContext)(x)||{},C=m||w||n,I=v||C&&C.t.bind(C);return function(e){let{children:t,count:r,parent:o,i18nKey:s,context:a,tOptions:l={},values:u,defaults:c,components:d,ns:h,i18n:m,t:v,shouldUnescape:y,...b}=e,w=m||n;if(!w)return g("You will need to pass in an i18next instance by using i18nextReactModule"),t;let S=v||w.t.bind(w)||(e=>e);l.context=a;let x={...A,...w.options&&w.options.react},C=h||S.ns||w.options&&w.options.defaultNS;C="string"==typeof C?[C]:C||["translation"];let I=function e(t,r){if(!t)return"";let n="",o=k(t),s=r.transSupportBasicHtmlNodes&&r.transKeepBasicHtmlNodesFor?r.transKeepBasicHtmlNodesFor:[];return o.forEach((t,o)=>{if("string"==typeof t)n+=`${t}`;else if((0,i.isValidElement)(t)){let i=Object.keys(t.props).length,a=s.indexOf(t.type)>-1,l=t.props.children;if(!l&&a&&0===i)n+=`<${t.type}/>`;else if(l||a&&0===i){if(t.props.i18nIsDynamicList)n+=`<${o}></${o}>`;else if(a&&1===i&&"string"==typeof l)n+=`<${t.type}>${l}</${t.type}>`;else{let t=e(l,r);n+=`<${o}>${t}</${o}>`}}else n+=`<${o}></${o}>`}else if(null===t)f("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"==typeof t){let{format:e,...r}=t,i=Object.keys(r);if(1===i.length){let t=e?`${i[0]}, ${e}`:i[0];n+=`{{${t}}}`}else f("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else f("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)}),n}(t,x),T=c||I||x.transEmptyNodeValue||s,{hashTransKey:O}=x,R=s||(O?O(I||T):I||T);w.options&&w.options.interpolation&&w.options.interpolation.defaultVariables&&(u=u&&Object.keys(u).length>0?{...u,...w.options.interpolation.defaultVariables}:{...w.options.interpolation.defaultVariables});let P={...l,count:r,...u,defaultValue:T,ns:C},M=R?S(R,P):T;
13d&&Object.keys(d).forEach(e=>{let t=d[e];"function"==typeof t.type||!t.props||!t.props.children||0>M.indexOf(`${e}/>`)&&0>M.indexOf(`${e} />`)||(d[e]=(0,i.createElement)(function(){return(0,i.createElement)(i.Fragment,null,t)}))});let L=function(e,t,r,n,o,s){if(""===t)return[];let a=n.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(a.map(e=>`<${e}`).join("|")).test(t);if(!e&&!l&&!s)return[t];let u={};!function e(t){k(t).forEach(t=>{"string"==typeof t||(_(t)?e(E(t)):"object"!=typeof t||(0,i.isValidElement)(t)||Object.assign(u,t))})}(e);let c=p.parse(`<0>${t}</0>`),d={...u,...o};function f(e,t,r){let n=E(e),o=g(n,t.children,r);return"[object Array]"===Object.prototype.toString.call(n)&&n.every(e=>(0,i.isValidElement)(e))&&0===o.length||e.props&&e.props.i18nIsDynamicList?n:o}function h(e,t,r,n,o){e.dummy?(e.children=t,r.push((0,i.cloneElement)(e,{key:n},o?void 0:t))):r.push(...i.Children.map([e],e=>{let r={...e.props};return delete r.i18nIsDynamicList,(0,i.createElement)(e.type,{...r,key:n,ref:e.ref},o?null:t)}))}function g(t,o,u){let c=k(t);return k(o).reduce((t,o,p)=>{let m=o.children&&o.children[0]&&o.children[0].content&&r.services.interpolator.interpolate(o.children[0].content,d,r.language);if("tag"===o.type){let s=c[parseInt(o.name,10)];1!==u.length||s||(s=u[0][o.name]),s||(s={});let v=0!==Object.keys(o.attrs).length?function(e,t){let r={...t};return r.props=Object.assign(e.props,t.props),r}({props:o.attrs},s):s,y=(0,i.isValidElement)(v),b=y&&_(o,!0)&&!o.voidElement,w=l&&"object"==typeof v&&v.dummy&&!y,S="object"==typeof e&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof v){let e=r.services.interpolator.interpolate(v,d,r.language);t.push(e)}else if(_(v)||b){let e=f(v,o,u);h(v,e,t,p)}else if(w)h(v,g(c,o.children,u),t,p);else if(Number.isNaN(parseFloat(o.name))){if(S){let e=f(v,o,u);h(v,e,t,p,o.voidElement)}else if(n.transSupportBasicHtmlNodes&&a.indexOf(o.name)>-1){if(o.voidElement)t.push((0,i.createElement)(o.name,{key:`${o.name}-${p}`}));else{let e=g(c,o.children,u);t.push((0,i.createElement)(o.name,{key:`${o.name}-${p}`},e))}}else if(o.voidElement)t.push(`<${o.name} />`);else{let e=g(c,o.children,u);t.push(`<${o.name}>${e}</${o.name}>`)}}else if("object"!=typeof v||y)h(v,m,t,p,1!==o.children.length||!m);else{let e=o.children[0]?m:null;e&&t.push(e)}}else if("text"===o.type){let e=n.transWrapTextNodes,a=s?n.unescape(r.services.interpolator.interpolate(o.content,d,r.language)):r.services.interpolator.interpolate(o.content,d,r.language);e?t.push((0,i.createElement)(e,{key:`${o.name}-${p}`},a)):t.push(a)}return t},[])}return E(g([{dummy:!0,children:e||[]}],c,k(e||[]))[0])}(d||t,M,w,x,P,y),D=void 0!==o?o:x.defaultTransParent;return D?(0,i.createElement)(D,b,L):L}({children:t,count:r,parent:o,i18nKey:s,context:a,tOptions:l,values:u,defaults:c,components:d,ns:h||I&&I.ns||S||C&&C.options&&C.options.defaultNS,i18n:C,t:v,shouldUnescape:y,...b})}let T=(e,t)=>{let r=(0,i.useRef)();return(0,i.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current};function O(e,t,r,n){return e.getFixedT(t,r,n)}function R(e){var t,r;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:s}=o,{i18n:a,defaultNS:l}=(0,i.useContext)(x)||{},u=s||a||n;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new C),!u){g("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}u.options.react&&void 0!==u.options.react.wait&&g("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let c={...A,...u.options.react,...o},{useSuspense:d,keyPrefix:p}=c,f=e||l||u.options&&u.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(f);let h=(u.isInitialized||u.initializedStoreOnce)&&f.every(e=>(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
13isLanguageChangingTo,e))return!1}}):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;let s=(e,r)=>{let n=t.services.backendConnector.state[`${e}|${r}`];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!s(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(n,e)&&(!i||s(o,e)))}(e,t,r):(g("i18n.languages were undefined or empty",t.languages),!0)})(e,u,c)),m=(t=o.lng||null,r="fallback"===c.nsMode?f:f[0],(0,i.useCallback)(O(u,t,r,p),[u,t,r,p])),b=()=>m,w=()=>O(u,o.lng||null,"fallback"===c.nsMode?f:f[0],p),[S,_]=(0,i.useState)(b),E=f.join();o.lng&&(E=`${o.lng}${E}`);let k=T(E),I=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=c;function r(){I.current&&_(w)}return I.current=!0,h||d||(o.lng?y(u,o.lng,f,()=>{I.current&&_(w)}):v(u,f,()=>{I.current&&_(w)})),h&&k&&k!==E&&I.current&&_(w),e&&u&&u.on(e,r),t&&u&&u.store.on(t,r),()=>{I.current=!1,e&&u&&e.split(" ").forEach(e=>u.off(e,r)),t&&u&&t.split(" ").forEach(e=>u.store.off(e,r))}},[u,E]),(0,i.useEffect)(()=>{I.current&&h&&_(b)},[u,p,h]);let R=[S,u,h];if(R.t=S,R.i18n=u,R.ready=h,h||!h&&!d)return R;throw new Promise(e=>{o.lng?y(u,o.lng,f,()=>e()):v(u,f,()=>e())})}function P(e){let{i18n:t,defaultNS:r,children:n}=e,o=(0,i.useMemo)(()=>({i18n:t,defaultNS:r}),[t,r]);return(0,i.createElement)(x.Provider,{value:o},n)}var M=r(87462),L=r(83997);function D(e,t,r){return(t=(0,L.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var N=r(8679),j=r.n(N);function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){if(e){if("string"==typeof e)return F(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}var B=r(71002);function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||U(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var q=r(63366);function G(e,t){if(null==e)return{};var r,n,i=(0,q.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var z={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},H="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,V=["i18n"],J=["i18n"];function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach(function(t){D(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var K=["backend","detection"],Q=function(e){if("string"!=typeof(null==e?void 0:e.lng))throw Error("config.lng was not passed into createConfig");var t,r,n,i=e.i18n,o=G(e,V),s=z.i18n,a=W(W(W(W({},G(z,J)),o),s),i),l=a.defaultNS,u=a.lng,c=a.localeExtension,d=a.localePath,p=a.nonExplicitSupportedLngs,f=a.locales.filter(function(e){return"default"!==e});if("cimode"===u)return a;
13if(void 0===a.fallbackLng&&(a.fallbackLng=a.defaultLocale,"default"===a.fallbackLng)){var h=$(f,1);a.fallbackLng=h[0]}var g=null==e||null===(t=e.interpolation)||void 0===t?void 0:t.prefix,m=null==e||null===(r=e.interpolation)||void 0===r?void 0:r.suffix,v=null!=g?g:"{{",y=null!=m?m:"}}";"string"!=typeof(null==e?void 0:e.localeStructure)&&(g||m)&&(a.localeStructure="".concat(v,"lng").concat(y,"/").concat(v,"ns").concat(y));var b=a.fallbackLng,w=a.localeStructure;if(p){var S=function(e,t){var r=$(t.split("-"),1)[0];return e[t]=[r],e};if("string"==typeof b)a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(S,{default:[b]});else if(Array.isArray(b))a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(S,{default:b});else if("object"===(0,B.Z)(b))a.fallbackLng=Object.entries(a.fallbackLng).reduce(function(e,t){var r,n=$(t,2),i=n[0],o=n[1];return e[i]=i.includes("-")?(r=[i.split("-")[0]].concat(function(e){if(Array.isArray(e))return F(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||U(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Array.from(new Set(r))):o,e},b);else if("function"==typeof b)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==e||null===(n=e.use)||void 0===n?void 0:n.some(function(e){return"backend"===e.type}))||("string"==typeof d?a.backend={addPath:"".concat(d,"/").concat(w,".missing.").concat(c),loadPath:"".concat(d,"/").concat(w,".").concat(c)}:"function"!=typeof d||(a.backend={addPath:function(e,t){return d(e,t,!0)},loadPath:function(e,t){return d(e,t,!1)}})),"string"==typeof a.ns||Array.isArray(a.ns)||(a.ns=[l]),K.forEach(function(t){e[t]&&(a[t]=W(W({},a[t]),e[t]))}),a};let X={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||X,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Y(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Y(this.logger,e)}}var ee=new Y;class et{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[n,i]=t;for(let t=0;t<i;t++)n.apply(n,[e,...r])})}}function er(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}function en(e){return null==e?"":""+e}let ei=/###/g;function eo(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(ei,"."):e}function i(){return!e||"string"==typeof e}let o="string"!=typeof t?t:t.split("."),s=0;for(;s<o.length-1;){if(i())return{};let t=n(o[s]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return i()?{}:{obj:e,k:n(o[s])}}function es(e,t,r){let{obj:n,k:i}=eo(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=eo(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,(a=eo(e,s=s.slice(0,s.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=r}function ea(e,t){let{obj:r,k:n}=eo(e,t);if(r)return r[n]}function el(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var eu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ec(e){return"string"==typeof e?e.replace(/[&<>
13"'\/]/g,e=>eu[e]):e}class ed{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let ep=[" ",",","?","!",";"],ef=new ed(20);function eh(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let o="";for(let s=e;s<n.length;++s)if(s!==e&&(o+=r),o+=n[s],void 0!==(t=i[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&s<n.length-1)continue;e+=s-e+1;break}i=t}return i}function eg(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class em extends et{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],r&&(Array.isArray(r)?n.push(...r):"string"==typeof r&&o?n.push(...r.split(o)):n.push(r)));let a=ea(this.data,n);return(!a&&!t&&!r&&e.indexOf(".")>-1&&(e=n[0],t=n[1],r=n.slice(2).join(".")),a||!s||"string"!=typeof r)?a:eh(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),es(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)("string"==typeof r[n]||"[object Array]"===Object.prototype.toString.apply(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=ea(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?function e(t,r,n){for(let i in r)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof r[i]||r[i]instanceof String?n&&(t[i]=r[i]):e(t[i],r[i],n):t[i]=r[i]);return t}(a,r,i):a={...a,...r},es(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var ev={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,i))}),t}};let ey={};class eb extends et{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,r){e.forEach(e=>{t[e]&&(r[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
13i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ee.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";let n=ep.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=ef.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,r,n);if(o&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};let o=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(n)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:o}let c=this.resolve(e,t),d=c&&c.res,p=c&&c.usedKey||o,f=c&&c.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(m&&d&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof g&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){let e="[object Array]"===h,r=e?[]:{},n=e?f:p;for(let e in d)if(Object.prototype.hasOwnProperty.call(d,e)){let o=`${n}${i}${e}`;r[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),r[e]===o&&(r[e]=d[e])}d=r}}else if(m&&"string"==typeof g&&"[object Array]"===h)(d=d.join(g))&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,s=!1,u=void 0!==t.count&&"string"!=typeof t.count,p=eb.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(n=!0,d=m),this.isValidLookup(d)||(s=!0,d=o);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,y=p&&m!==d&&this.options.updateMissing;if(s||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,o,y?m:d),i){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,r,n)=>{let i=p&&n!==d?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,r,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,r,i,y,t),this.emit
13("missingKey",e,a,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],o+r,t[`defaultValue${r}`]||m)})}):n(e,o,m))}d=this.extendTranslation(d,e,t,c,r),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,n?d:void 0):this.options.parseMissingKeyHandler(d))}return n?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,r,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let a="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language,r),a){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),s=0;s<e;s++)n[s]=arguments[s];return i&&i[0]===n[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):o.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,a="string"==typeof s?[s]:s;return null!=e&&a&&a.length&&!1!==r.applyPostProcessor&&(e=ev.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,s),l=a.key;r=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==s.count&&"string"!=typeof s.count,d=c&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!ey[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ey[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{let o;if(this.isValidLookup(t))return;i=r;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,s);else{let e;c&&(e=this.pluralResolver.getSuffix(r,s.count,s));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(l+e),s.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),d&&a.push(l+t)),p){let r=`${l}${this.options.contextSeparator}
13${s.context}`;a.push(r),c&&(a.push(r+e),s.ordinal&&0===e.indexOf(n)&&a.push(r+e.replace(n,this.options.pluralSeparator)),d&&a.push(r+t))}}for(;o=a.pop();)this.isValidLookup(t)||(n=o,t=this.getResource(r,e,o,s))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&"string"!=typeof e.replace,r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function ew(e){return e.charAt(0).toUpperCase()+e.slice(1)}class eS{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ee.create("languageUtils")}getScriptPartFromCode(e){if(!(e=eg(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=eg(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ew(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ew(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=ew(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(e
vendor: 4,234 bytes, line 13
13=>{0>n.indexOf(e)&&i(this.formatLanguageCode(e))}),n}}let eA=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],e_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},eE=["v1","v2","v3"],ek=["v4"],ex={zero:0,one:1,two:2,few:3,many:4,other:5};class eC{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=ee.create("pluralResolver"),(!this.options.compatibilityJSON||ek.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return eA.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:e_[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(eg("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>
13ex[e]-ex[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}
13shouldUseIntlApi(){return!eE.includes(this.options.compatibilityJSON)}}function eI(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=function(e,t,r){let n=ea(e,r);return void 0!==n?n:ea(t,r)}(e,t,r);return!o&&i&&"string"==typeof r&&void 0===(o=eh(e,r,n))&&(o=eh(t,r,n)),o}class eT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ee.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ec,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?el(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?el(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?el(t.nestingPrefix):t.nestingPrefixEscaped||el("$t("),this.nestingSuffix=t.nestingSuffix?el(t.nestingSuffix):t.nestingSuffixEscaped||el(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let i,o,s;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let i=eI(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(eI(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...t,interpolationkey:o})};this.resetRegExp();let c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach(t=>{for(s=0;i=t.regex.exec(e);){let r=i[1].trim();if(void 0===(o=u(r))){if("function"==typeof c){let t=c(e,i,n);o="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else if(d){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=en(o));let a=t.safeValue(o);if(e=e.replace(i[0],a),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){let r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),o=`{${n[1]}`;e=n[0];let s=(o=this.interpolate(o,i)).match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let a=[];(i=(i={...o}).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),a=e,l=!0}if((n=t(s.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=en(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=a.reduce((e,t)=>
13this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}function eO(e){let t={};return function(r,n,i){let o=n+JSON.stringify(i),s=t[o];return s||(s=e(eg(n),i),t[o]=s),s(r)}}class eR{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ee.create("formatter"),this.options=e,this.formats={number:eO((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:eO((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:eO((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:eO((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:eO((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=eO(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(!e)return;let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,"");r[t.trim()]||(r[t.trim()]=i),"false"===i&&(r[t.trim()]=!1),"true"===i&&(r[t.trim()]=!0),isNaN(i)||(r[t.trim()]=parseInt(i,10))})}return{formatName:t,formatOptions:r}}(t);if(this.formats[i]){let t=e;try{let s=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class eP extends et{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=ee.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let i={},o={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let s={};this.queue.forEach(r=>{(function(e,t,r,n){let{obj:i,k:o}=eo(e,t,Object);i[o]=i[o]||[],n&&(i[o]=i[o].concat(r)),n||i[o].push(r)})(r.loaded,[i],o),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});return}this.readingCalls++;let s=(s,a)=>
13{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(s&&a&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,o)},i);return}o(s,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}return}return a(e,t,s)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){let a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,a):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else l(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}function eM(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function eL(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function eD(){}class eN extends et{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=eL(e),this.services={},this.logger=ee,this.modules={external:[]},function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=eM();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...eL(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?ee.init(i(this.modules.logger),this.options):ee.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=eR);let r=new eS(this.options);this.store=new em(this.options.resources,this.options);let o=this.services;o.logger=ee,o.resourceStore=this.store,o.languageUtils=r,o.pluralResolver=new eC(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new eT(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new eP(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new eb(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}
13),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=eD),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let o=er(),s=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eD,r=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=er();return e||(e=this.languages),t||(t=this.options.ns),r||(r=eD),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ev.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=er();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let i=function(e,t){let o,s;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];o=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||r||i.keyPrefix;let c=n.options.keySeparator||".";return s=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${c}${e}`):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,n.t(s,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
13if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let o=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!n||o(i,e)))}loadNamespaces(e,t){let r=er();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=er();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],i=e.filter(e=>0>n.indexOf(e));return i.length?(this.options.preload=n.concat(i),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new eS(eM())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eN(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eD,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new eN(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new em(this.store.data,n),i.services.resourceStore=i.store),i.translator=new eb(i.services,n),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit(e,...r)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let ej=eN.createInstance();ej.createInstance=eN.createInstance,ej.createInstance,ej.dir,ej.init,ej.loadResources,ej.reloadResources,ej.use,ej.changeLanguage,ej.getFixedT,ej.t,ej.exists,ej.setDefaultNamespace,ej.hasLoadedNamespace,ej.loadNamespaces,ej.loadLanguages;var eF=function(e){void 0===e.ns&&(e.ns=[]);var t,r,n=ej.createInstance(e);return n.isInitialized?t=Promise.resolve(ej.t):(null==e||null===(r=e.use)||void 0===r||r.forEach(function(e){return n.use(e)}),"function"==typeof e.onPreInitI18next&&e.onPreInitI18next(n),t=n.init(e)),{i18n:n,initPromise:t}},eU=i.createElement;function eB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function e$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eB(Object(r),!0).forEach(function(t){D(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eB(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eq=function(e,t){if(t&&e.isInitialized)for(var r=0,n=Object.keys(t);r<n.length;r++)for(var i=n[r],o=0,s=Object.keys(t[i]);o<s.length;o++){var a,l=s[o];null!=e&&null!==(a=e.store)&&void 0!==a&&a.data&&e.store.data[i]&&e.store.data[i][l]||e.addResourceBundle(i,l,t[i][l],!0,!0)}},eG=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return j()(function(r){var n,o,s=(r.pageProps||{})._nextI18Next,a=null!==(n=null==s?void 0:s.initialLocale)&&void 0!==n?n:null==r||null===(o=r.router)||void 0===o?void 0:o.locale,l=null==s?void 0:s.ns,u=(0,i.useRef)(null),c=(0,i.useMemo)(function(){if(!s&&!t)return null;var e,r=null!=t?t:null==s?void 0:s.userConfig;if(!r)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=r&&r.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=r&&null!==(e=r.i18n)&&void 0!==e&&e.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var n=(s||{}).initialI18nStore,i=null!=t&&t.resources?t.resources:n;a||(a=r.i18n.defaultLocale);var o=u.current;return o?eq(o,i):(eq(o=eF(e$(e$(e$({},Q(e$(e$({},r),{},{lng:a}))),{},{lng:a},l&&{ns:l}),{},{resources:i})).i18n,i),u.current=o),o},[s,a,l]);return H(function(){c&&a&&c.changeLanguage(a)},[c,a]),null!==c?eU(P,{i18n:c},eU(e,r)):eU(e,(0,M.Z)({key:a},r))},e)}},82010:function(e,t,r){"use strict";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(67294);let i=["light","dark"],o="(prefers-color-scheme: dark)",s="undefined"==typeof window,a=(0,n.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,n.useContext)(a))&&void 0!==e?e:l},c=e=>(0,n.useContext)(a)?n.createElement(n.Fragment,null,e.children):n.createElement(p,e),d=["light","dark"],p=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=r?"system":"light",attribute:p="data-theme",value:v,children:y,nonce:b})=>
13{let[w,S]=(0,n.useState)(()=>h(l,c)),[A,_]=(0,n.useState)(()=>h(l)),E=v?Object.values(v):u,k=(0,n.useCallback)(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=m());let o=v?v[n]:n,a=t?g():null,l=document.documentElement;if("class"===p?(l.classList.remove(...E),o&&l.classList.add(o)):o?l.setAttribute(p,o):l.removeAttribute(p),s){let e=i.includes(c)?c:null,t=i.includes(n)?n:e;l.style.colorScheme=t}null==a||a()},[]),x=(0,n.useCallback)(e=>{S(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),C=(0,n.useCallback)(t=>{_(m(t)),"system"===w&&r&&!e&&k("system")},[w,e]);(0,n.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,n.useEffect)(()=>{let e=e=>{e.key===l&&x(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[x]),(0,n.useEffect)(()=>{k(null!=e?e:w)},[e,w]);let I=(0,n.useMemo)(()=>({theme:w,setTheme:x,forcedTheme:e,resolvedTheme:"system"===w?A:w,themes:r?[...u,"system"]:u,systemTheme:r?A:void 0}),[w,x,e,A,r,u]);return n.createElement(a.Provider,{value:I},n.createElement(f,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:s,storageKey:l,themes:u,defaultTheme:c,attribute:p,value:v,children:y,attrs:E,nonce:b}),y)},f=(0,n.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:a,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let p="system"===l,f="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=a?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(e,t=!1,n=!0)=>{let o=u?u[e]:e,s=t?e+"|| ''":`'${o}'`,l="";return a&&n&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=e?`!function(){${f}${g(e)}}()`:s?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${p})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${g(u?"x[e]":"e",!0)}}${p?"":"else{"+g(l,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${g(u?"x[e]":"e",!0)}}else{${g(l,!1,!1)};}${h}}catch(t){}}();`;return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:m}})},()=>!0),h=(e,t)=>{let r;if(!s){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},g=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},m=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(85564)}])},45237:function(e,t,r){"use strict";let n,i,o,s,a,l,u,c,d,p,f,h,g,m,v,y,b,w,S;var A,_,E,k,x,C,I,T,O,R=r(51597),P=r(5824),M=r(39494);function L(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:M.J})),i.version=M.J)}var D=r(39424),N=r(94223);let j=[];function F(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function U(e,t,r){if(r[t.name]){N.X&&P.fF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,j.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),j.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}["processSpan","processSegmentSpan"].forEach(r=>{let n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))}),N.X&&P.fF.log(`Integration installed: ${t.name}`)}function B(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var $=r(34156),q=r(57360);let G=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],z=(e={})=>{let t;return{name:"EventFilters",setup(r){t=V(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=V(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,q.U0)(r,t)}(e,t.ignoreTransactions))return N.X&&P.fF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
14Event: ${(0,$.jH)(e)}`),!0}else{var r;if(r=t.ignoreErrors,r?.length&&B(e).some(e=>(0,q.U0)(e,r)))return N.X&&P.fF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
15Event: ${(0,$.jH)(e)}`),!0;if(e.exception?.values?.length&&!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return N.X&&P.fF.warn(`Event dropped due to not having an error message, error type or stacktrace.
16Event: ${(0,$.jH)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=J(e);return!!r&&(0,q.U0)(r,t)}(e,t.denyUrls))return N.X&&P.fF.warn(`Event dropped due to being matched by \`denyUrls\` option.
17Event: ${(0,$.jH)(e)}.
18Url: ${J(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=J(e);return!r||(0,q.U0)(r,t)}(e,t.allowUrls))return N.X&&P.fF.warn(`Event dropped due to not being matched by \`allowUrls\` option.
19Event: ${(0,$.jH)(e)}.
20Url: ${J(e)}`),!0}return!1}(r,t)?r:null)}},H=(e={})=>({...z(e),name:"InboundFilters"});function V(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:G],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function J(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return N.X&&P.fF.error(`Cannot extract url for event ${(0,$.jH)(e)}`),null}}var Z=r(73076),W=r(93820);let K=new WeakMap,Q=()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,W.HK)(this),r=K.has((0,Z.s3)())&&void 0!==t?t:this;return n.apply(r,e)}}catch{}},setup(e){K.set(e,!0)}});var X=r(31218),Y=r(81585);let ee=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,Z.nZ)().getScopeData(),r=(0,Z.aF)().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:i}=(0,Y.XU)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute(X.Ap,n)}})}});var et=r(99603);let er=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r;if((r=e)&&(function(e,t){let r=e.message,n=t.message;return!!((r||n)&&(!r||n)&&(r||!n)&&r===n&&ei(e,t)&&en(e,t))}(t,r)||function(e,t){let r=eo(t),n=eo(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&ei(e,t)&&en(e,t))}(t,r)))return N.X&&P.fF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function en(e,t){let r=(0,et.Fr)(e),n=(0,et.Fr)(t);if(!r&&!n)return!0;
20if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function ei(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch{return!1}}function eo(e){return e.exception?.values?.[0]}var es=r(73243),ea=r(11793),el=r(81981),eu=r(13533),ec=r(52637),ed=r(64004);function ep(e,t){let r=t??ef().get(e)??[];if(0===r.length)return;let n=e.getOptions(),i=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=(0,ec.RA)(n)),(0,ed.Jd)(i,[[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]])}(r,n._metadata,n.tunnel,e.getDsn());ef().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function ef(){return(0,eu.YO)("clientToMetricBufferMap",()=>new WeakMap)}var eh=r(10042),eg=r(72123),em=r(68967),ev=r(80157);function ey(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let eb=Symbol.for("SentryBufferFullError");function ew(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,ev.$2)(eb);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,ev.WD)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>ey(setTimeout(()=>t(!1),e)))]):r}}}var eS=r(38044);function eA(e,t,r=(0,eS.lk)()){return(e[t]||e.all||0)>r}function e_(e,{statusCode:t,headers:r},n=(0,eS.lk)()){let i={...e},o=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else s?i.all=n+function(e,t=(0,eS.lk)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}var eE=r(90772),ek=r(41745),ex=r(3613),eC=r(79769),eI=r(36360),eT=r(91819);let eO="Not capturing exception because it's already been captured.",eR="Discarded session because of missing or non-string release",eP=Symbol.for("SentryInternalError"),eM=Symbol.for("SentryDoNotSendEventError");function eL(e){return{message:e,[eP]:!0}}function eD(e){return{message:e,[eM]:!0}}function eN(e){return!!e&&"object"==typeof e&&eP in e}function ej(e){return!!e&&"object"==typeof e&&eM in e}function eF(e,t,r,n,i){let o,s=0,a=!1;e.on(r,()=>{s=0,clearTimeout(o),a=!1}),e.on(t,t=>{(s+=n(t))>=8e5?i(e):a||(a=!0,o=ey(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}class eU{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ew(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=(0,ec.vK)(e.dsn):N.X&&P.fF.warn("No DSN provided, client will not send events."),this._dsn){var t,r,n;let i=(t=this._dsn,r=e.tunnel,n=e._metadata?e._metadata.sdk:void 0,r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(t,n)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&eF(this,"afterCaptureLog","flushLogs",ez,el.lP),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eF(this,"afterCaptureMetric","flushMetrics",eG,ep)}captureException(e,t,r){let n=(0,$.DM)();if((0,$.YO)(e))return N.X&&P.fF.log(eO),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,$.DM)(),...r},o=(0,ek.Le)(e)?e:String(e),s=(0,ek.pt)(e),a=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>a.then(e=>this._captureEvent(e,i,n)),s?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,$.DM)();if(t?.originalException&&(0,$.YO)(t.originalException))return N.X&&P.fF.log(eO),n;let i={event_id:n,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,a=o.capturedSpanIsolationScope,l=eB(e.type);return this._process(()=>this._captureEvent(e,i,s||r,a),l),i.event_id}captureSession(e){this.sendSession(e),(0,eh.CT)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;
20this.emit("flush");let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){(0,el.lP)(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),U(this,e,this._integrations),t||F(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,ea.Mq)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,ed.BO)(r,(0,ed.zQ)(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=es.J}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){N.X&&P.fF.warn(eR);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){N.X&&P.fF.warn(eR);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=(0,ea.Q3)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;N.X&&P.fF.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return N.X&&P.fF.error("Error while sending envelope:",e),{}}return N.X&&P.fF.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&U(e,t,r)}),r}(this,e),F(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,eh.CT)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eI.R)(i,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,Z.XX)(r)},...e.contexts};let n=(0,eg.CG)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r=(0,Z.nZ)(),n=(0,Z.aF)()){return N.X&&e$(e)&&P.fF.log(`Captured error event \`${B(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{N.X&&(ej(e)?P.fF.log(e.message):eN(e)?P.fF.warn(e.message):P.fF.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:o}=i,s=eq(e),a=e$(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===o?void 0:(0,eC.o)(o);if(a&&"number"==typeof c&&(0,eS.n0)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,ev.$2)(eD(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));let d=eB(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),eD("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,ek.J8)(e))return e.then(e=>{if(!(0,ek.PO)(e)&&null!==e)throw eL(r);return e},e=>{throw eL(`${t} rejected with ${e}`)});if(!(0,ek.PO)(e)&&null!==e)throw eL(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:o,ignoreSpans:s}=t,a=!(0,em.V)(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(e$(l)&&i)return i(l,n);if(eq(l)){if(a||s){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:o,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[X.p6],exclusive_time:s?.[X.JQ],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&(0,eT.l)({description:t.description,op:t.op,attributes:t.data},s))return null;if(a){let e=a(t);e?l=(0,ex.T)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[X.p6]:e.profile_id},...e.exclusive_time&&{[X.JQ]:e.exclusive_time}}}},measurements:e.measurements}):(0,Y.R6)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&(0,eT.l)({description:e.description,op:e.op,attributes:e.data},s)){(0,eT.x)(r,e);continue}if(a){let r=a(e);r?t.push(r):((0,Y.R6)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(o){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(l,n)}}return l}(this,i,e,t),u)}).then(i=>
20{if(null===i){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw eD(`${u} returned \`null\`, will not send event.`)}let o=r.getSession()||n.getSession();if(a&&o&&this._updateSessionFromEvent(o,i),s){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return s&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(ej(e)||eN(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eL(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
21Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===eb&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){N.X&&P.fF.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){N.X&&P.fF.log("No outcomes to send");return}if(!this._dsn){N.X&&P.fF.log("No dsn provided, will not send outcomes");return}N.X&&P.fF.log("Sending outcomes:",e);let t=function(e,t,r){let n=[{type:"client_report"},{timestamp:(0,eE.yW)(),discarded_events:e}];return(0,ed.Jd)(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,ec.RA)(this._dsn));this.sendEnvelope(t)}}function eB(e){return"replay_event"===e?"replay":e||"error"}function e$(e){return void 0===e.type}function eq(e){return"transaction"===e.type}function eG(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+eH(e.attributes)}function ez(e){let t=0;return e.message&&(t+=2*e.message.length),t+eH(e.attributes)}function eH(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*eV(e[0]):(0,ek.pt)(e)?t+=eV(e):t+=100}),t}function eV(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function eJ(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var eZ=r(18846);function eW(e){return(0,ek.VZ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function eK(e,t){let r=eX(e,t),n={type:function(e){let t=e?.name;return!t&&e0(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return e0(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?eW(t.error):eW(e):"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function eQ(e,t){return{exception:{values:[eK(e,t)]}}}function eX(e,t){let r=t.stacktrace||t.stack||"",n=t&&eY.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(r,n,i)}catch{}return[]}let eY=/Minified React error #\d+;/i;function e0(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function e1(e,t,r,n,i){let o;if((0,ek.VW)(t)&&t.error)return eQ(e,t.error);if((0,ek.TX)(t)||(0,ek.fm)(t)){if("stack"in t)o=eQ(e,t);else{let i=t.name||((0,ek.TX)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=e2(e,s,r,n),(0,$.Db)(o,s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,ek.VZ)(t)?eQ(e,t):((0,ek.PO)(t)||(0,ek.cO)(t)?o=function(e,t,r,n){let i=(0,Z.s3)(),o=i?.getOptions().normalizeDepth,s=Object.values(t).find(e=>e instanceof Error),a={__serialized__:(0,eZ.Qy)(t,o)};if(s)return{exception:{values:[eK(e,s)]},extra:a};let l={exception:{values:[{type:(0,ek.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,W.zf)(e),n=t?"promise rejection":"exception";if((0,ek.VW)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,ek.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:a};if(r){let t=eX(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(o=e2(e,t,r,n),(0,$.Db)(o,`${t}`,void 0)),(0,$.EG)(o,{synthetic:!0}),o)}function e2(e,t,r,n){let i={};if(n&&r){let n=eX(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,$.EG)(i,{synthetic:!0})}
21if((0,ek.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}var e3=r(38143);let e4=R.GLOBAL_OBJ,e5=0;function e6(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if((0,W.HK)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>e6(e,t));return e.apply(this,n)}catch(e){throw e5++,setTimeout(()=>{e5--}),(0,Z.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,$.Db)(e,void 0,void 0),(0,$.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,D.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,W.$Q)(r,e),(0,W.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function e8(){let e=(0,e3.l4)(),{referrer:t}=e4.document||{},{userAgent:r}=e4.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class e7 extends eU{constructor(e){let t={release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:e4.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e};L(t,"browser",["browser"],e4.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:r,sendClientReports:n,enableLogs:i,_experiments:o,enableMetrics:s}=this._options,a=s??o?.enableMetrics??!0;e4.document&&(n||i||a)&&e4.document.addEventListener("visibilitychange",()=>{"hidden"===e4.document.visibilityState&&(n&&this._flushOutcomes(),i&&(0,el.lP)(this),a&&ep(this))}),r&&this.on("beforeSendSession",eJ)}eventFromException(e,t){return function(e,t,r,n){let i=e1(e,t,r?.syntheticException||void 0,n);return(0,$.EG)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,ev.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let o=e2(e,t,n?.syntheticException||void 0,i);return o.level=r,n?.event_id&&(o.event_id=n.event_id),(0,ev.WD)(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let e9={},te={};function tt(e,t){return e9[e]=e9[e]||[],e9[e].push(t),()=>{let r=e9[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function tr(e,t){if(!te[e]){te[e]=!0;try{t()}catch(t){N.X&&P.fF.error(`Error while instrumenting ${e}`,t)}}}function tn(e,t){let r=e&&e9[e];if(r)for(let n of r)try{n(t)}catch(t){N.X&&P.fF.error(`Error while triggering instrumentation handler.
22Type: ${e}
23Name: ${(0,et.$P)(n)}
24Error:`,t)}}function ti(){"console"in R.GLOBAL_OBJ&&P.RU.forEach(function(e){e in R.GLOBAL_OBJ.console&&(0,W.hl)(R.GLOBAL_OBJ.console,e,function(t){return P.LD[e]=t,function(...t){tn("console",{args:t,level:e});let r=P.LD[e];r?.apply(R.GLOBAL_OBJ.console,t)}})})}let to=R.GLOBAL_OBJ;function ts(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ta(e,t){let r="fetch",n=tt(r,e);return tr(r,()=>tl(void 0,t)),n}function tl(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in to))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(ts(to.fetch))return!0;let e=!1,t=to.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=ts(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){N.X&&P.fF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,W.hl)(R.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tp(t),method:td(r,"method")?String(r.method).toUpperCase():(0,ek.gJ)(t)&&td(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:tp(t),method:td(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:i,url:o},startTimestamp:1e3*(0,eE.ph)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,ek.gJ)(t))return new Headers(t.headers)}catch{}}(r)};return e||tn("fetch",{...s}),t.apply(R.GLOBAL_OBJ,r).then(async t=>(e?e(t):tn("fetch",{...s,endTimestamp:1e3*(0,eE.ph)(),response:t}),t),e=>{tn("fetch",{...s,endTimestamp:1e3*(0,eE.ph)(),error:e}),(0,ek.VZ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,W.xp)(e,"framesToPop",1));let t=(0,Z.s3)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(s.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,W.xp)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tu(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),o=!1)}catch{o=!1}
24finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function tc(e){let t;try{t=e.clone()}catch{return}tu(t,()=>{tn("fetch-body-resolved",{endTimestamp:1e3*(0,eE.ph)(),response:e})})}function td(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tp(e){return"string"==typeof e?e:e?td(e,"url")?e.url:e.toString?e.toString():"":""}function tf(e,t){let r=(0,Z.s3)(),n=(0,Z.aF)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let s={timestamp:(0,eE.yW)(),...e},a=i?(0,P.Cf)(()=>i(s,t)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,o))}function th(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function tg(e){return"isRelative"in e}function tm(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function tv(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function ty(e){return e.split(/[?#]/,1)[0]}function tb(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(","),s="";if(t&&-1!==o){let t=e.slice(o+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${s?`,${s}`:""}`}return e}let tw=R.GLOBAL_OBJ;function tS(e){tt("dom",e),tr("dom",tA)}function tA(){if(!tw.document)return;let e=tn.bind(null,"dom"),t=t_(e,!0);tw.document.addEventListener("click",t,!1),tw.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=tw[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,W.hl)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=t_(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch{}return t.call(this,r,n,i)}}),(0,W.hl)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function t_(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=function(e){try{return e.target}catch{return null}}(r);if("keypress"===r.type&&(!n?.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable))return;(0,W.xp)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,W.xp)(n,"_sentryId",(0,$.DM)());let a="keypress"===r.type?"input":r.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(r)&&(e({event:r,name:a,global:t}),o=r.type,s=n?n._sentryId:void 0),clearTimeout(i),i=tw.setTimeout(()=>{s=void 0,o=void 0},1e3)}}let tE="__sentry_xhr_v3__";function tk(e){tt("xhr",e),tr("xhr",tx)}function tx(){if(!tw.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,eE.ph)(),o=(0,ek.HD)(r[0])?r[0].toUpperCase():void 0,s=function(e){if((0,ek.HD)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!o||!s)return e.apply(t,r);t[tE]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[tE];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}tn("xhr",{endTimestamp:1e3*(0,eE.ph)(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(a(),e.apply(t,r))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,o=t[tE];return o&&(0,ek.HD)(n)&&(0,ek.HD)(i)&&(o.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[tE];return n&&(void 0!==r[0]&&(n.body=r[0]),tn("xhr",{startTimestamp:1e3*(0,eE.ph)(),xhr:t})),e.apply(t,r)}})}function tC(e){let t="history";tt(t,e),tr(t,tI)}function tI(){tw.addEventListener("popstate",()=>{let e=tw.location.href,t=a;a=e,t!==e&&tn("history",{from:t,to:e})}),"history"in to&&to.history&&((0,W.hl)(tw.history,"pushState",e),(0,W.hl)(tw.history,"replaceState",e));function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=a,i=function(e){try{return new URL(e,tw.location.origin).toString()}catch{return e}}(String(r));if(a=i,n===i)return e.apply(this,t);tn("history",{from:n,to:i})}return e.apply(this,t)}}}let tT=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r;t.console&&function(e){let t="console";
24tt(t,e),tr(t,ti)}(function(t){var r;if((0,Z.s3)()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(r=t.level)?"warning":["fatal","error","warning","log","info","debug"].includes(r)?r:"log",message:(0,q.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,q.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}tf(n,{input:t.args,level:t.level})}),t.dom&&tS((r=t.dom,function(t){let n,i;if((0,Z.s3)()!==e)return;let o="object"==typeof r?r.serializeAttribute:void 0,s="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;s&&s>1024&&(s=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,r=e&&e.target?e.target:e;n=(0,e3.Rt)(r,{keyAttrs:o,maxStringLength:s}),i=(0,e3.iY)(r)}catch{n="<unknown>"}if(0===n.length)return;let a={category:`ui.${t.name}`,message:n};i&&(a.data={"ui.component_name":i}),tf(a,{event:t.event,name:t.name,global:t.global})})),t.xhr&&tk(function(t){if((0,Z.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[tE];if(!r||!n||!i)return;let{method:o,url:s,status_code:a,body:l}=i,u={xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n},c={category:"xhr",data:{method:o,url:s,status_code:a},type:"http",level:th(a)};e.emit("beforeOutgoingRequestBreadcrumb",c,u),tf(c,u)}),t.fetch&&ta(function(t){if((0,Z.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t;if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},o={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,i),tf(o,i)}else{let i=t.response,o={...t.fetchData,status_code:i?.status},s={input:t.args,response:i,startTimestamp:r,endTimestamp:n},a={category:"fetch",data:o,type:"http",level:th(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),tf(a,s)}}}),t.history&&tC(function(t){if((0,Z.s3)()!==e)return;let r=t.from,n=t.to,i=tv(e4.location.href),o=r?tv(r):void 0,s=tv(n);o?.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),tf({category:"navigation",data:{from:r,to:n}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,Z.s3)()===e&&tf({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,$.jH)(t)},{event:t})})}}},tO="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),tR=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,W.hl)(e4,"setTimeout",tP),t.setInterval&&(0,W.hl)(e4,"setInterval",tP),t.requestAnimationFrame&&(0,W.hl)(e4,"requestAnimationFrame",tM),t.XMLHttpRequest&&"XMLHttpRequest"in e4&&(0,W.hl)(XMLHttpRequest.prototype,"send",tL);let e=t.eventTarget;e&&(Array.isArray(e)?e:tO).forEach(e=>(function(e,t){let r=e4[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,W.hl)(r,"addEventListener",function(r){return function(n,i,o){try{"function"==typeof i.handleEvent&&(i.handleEvent=e6(i.handleEvent,{mechanism:{data:{handler:(0,et.$P)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&this&&"object"==typeof this&&"removeEventListener"in this&&"function"==typeof this.removeEventListener&&this.removeEventListener(n,i),r.apply(this,[n,e6(i,{mechanism:{data:{handler:(0,et.$P)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,W.hl)(r,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}}))})(e,t))}}};function tP(e){return function(...t){let r=t[0];return t[0]=e6(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,et.$P)(e)}`}}),e.apply(this,t)}}function tM(e){return function(t){return e.apply(this,[e6(t,{mechanism:{data:{handler:(0,et.$P)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function tL(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
24=>{e in r&&"function"==typeof r[e]&&(0,W.hl)(r,e,function(t){let r={mechanism:{data:{handler:(0,et.$P)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,W.HK)(t);return n&&(r.mechanism.data.handler=(0,et.$P)(n)),e6(t,r)})}),e.apply(this,t)}}let tD=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===e4.document)return;(0,D.yj)({ignoreDuration:!0}),(0,D.cg)();let e=(0,Z.aF)(),r=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(r?.id!==t?.id||r?.ip_address!==t?.ip_address)&&((0,D.cg)(),r=t)}),"route"===t&&tC(({from:e,to:t})=>{e!==t&&((0,D.yj)({ignoreDuration:!0}),(0,D.cg)())})}}};function tN(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}let tj=()=>({name:"CultureContext",preprocessEvent(e){let t=tF();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=tF();t&&tN(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function tF(){try{let e=e4.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let tU=null;function tB(e){let t="error";tt(t,e),tr(t,t$)}function t$(){tU=R.GLOBAL_OBJ.onerror,R.GLOBAL_OBJ.onerror=function(e,t,r,n,i){return tn("error",{column:n,error:i,line:r,msg:e,url:t}),!!tU&&tU.apply(this,arguments)},R.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let tq=null;function tG(e){let t="unhandledrejection";tt(t,e),tr(t,tz)}function tz(){tq=R.GLOBAL_OBJ.onunhandledrejection,R.GLOBAL_OBJ.onunhandledrejection=function(e){return tn("unhandledrejection",e),!tq||tq.apply(this,arguments)},R.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let tH=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&tB(t=>{let{stackParser:r,attachStacktrace:n}=tV();if((0,Z.s3)()!==e||e5>0)return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=function(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[];return 0===l.length&&l.push({colno:n,lineno:r,filename:((0,ek.HD)(t)&&0!==t.length?t.startsWith("data:")?`<${tb(t,!1)}>`:t:void 0)??(0,e3.l4)(),function:et.Fi,in_app:!0}),e}(e1(r,l||i,void 0,n,!1),o,s,a);u.level="error",(0,D.eN)(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),t.onunhandledrejection&&tG(t=>{let{stackParser:r,attachStacktrace:n}=tV();if((0,Z.s3)()!==e||e5>0)return;let i=function(e){if((0,ek.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),o=(0,ek.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:e1(r,i,void 0,n,!0);o.level="error",(0,D.eN)(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}}};function tV(){let e=(0,Z.s3)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let tJ=()=>({name:"HttpContext",preprocessEvent(e){if(!e4.navigator&&!e4.location&&!e4.document)return;let t=e8(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){if(!e4.navigator&&!e4.location&&!e4.document)return;let t=e8();tN(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}});function tZ(e){return Array.isArray(e.errors)}function tW(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...tZ(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function tK(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let tQ=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,o){if(!i.exception?.values||!o||!(0,ek.V9)(o.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=function e(t,r,n,i,o,s,a,l){if(s.length>=n+1)return s;let u=[...s];if((0,ek.V9)(i[o],Error)){tW(a,l,i);let s=t(r,i[o]),c=u.length;tK(s,o,c,l),u=e(t,r,n,i[o],o,[s,...u],s,c)}
24return tZ(i)&&i.errors.forEach((s,c)=>{if((0,ek.V9)(s,Error)){tW(a,l,i);let d=t(r,s),p=u.length;tK(d,`errors[${c}]`,p,l),u=e(t,r,n,s,o,[d,...u],d,p)}}),u}(e,t,n,o.originalException,r,i.exception.values,s,0))}(eK,i.getOptions().stackParser,r,t,e,n)}}};function tX(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?et.Fi:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tY=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,t0=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t1=/\((\S*)(?::(\d+))(?::(\d+))\)/,t2=/at (.+?) ?\(data:(.+?),/,t3=[30,e=>{let t=e.match(t2);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=tY.exec(e);if(r){let[,e,t,n]=r;return tX(e,et.Fi,+t,+n)}let n=t0.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=t1.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=t7(n[1]||et.Fi,n[2]);return tX(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],t4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,t5=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t6=[50,e=>{let t=t4.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=t5.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||et.Fi;return[r,e]=t7(r,e),tX(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],t8=(0,et.pE)(...[t3,t6]),t7=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:et.Fi,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},t9={};function re(e){let t=t9[e];if(t)return t;let r=tw[e];if(ts(r))return t9[e]=r.bind(tw);let n=tw.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return r?t9[e]=r.bind(tw):r}function rt(...e){return re("setTimeout")(...e)}function rr(e,t=re("fetch")){let r=0,n=0;async function i(i){let o=i.body.length;r+=o,n++;let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,s);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw t9.fetch=void 0,e}finally{r-=o,n--}}return function(e,t,r=ew(e.bufferSize||64)){let n={};return{send:function(i){let o=[];if((0,ed.gv)(i,(t,r)=>{let i=(0,ed.mL)(r);eA(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(t)}),0===o.length)return Promise.resolve({});let s=(0,ed.Jd)(i[0],o),a=t=>{if((0,ed.R)(s,["client_report"])){N.X&&P.fF.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}(0,ed.gv)(s,(r,n)=>{e.recordDroppedEvent(t,(0,ed.mL)(n))})};return r.add(()=>t({body:(0,ed.V$)(s)}).then(e=>(413===e.statusCode?(N.X&&P.fF.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error")):(N.X&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&P.fF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=e_(n,e)),e),e=>{throw a("network_error"),N.X&&P.fF.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===eb)return N.X&&P.fF.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i,ew(e.bufferSize||40))}function rn(e){return[H(),Q(),ee(),tR(),tT(),tH(),tQ(),er(),tJ(),tj(),tD()]}var ri=r(67294),ro=r(36096),rs=r(34155),ra=r(51072),rl=r(89366),ru=r(58915),rc=r(7568),rd=r(69737),rp=r(83268);let rf={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function rh(e,t={}){let r;let n=new Map,i=!1,o="externalFinish",s=!t.disableAutoFinish,a=[],{idleTimeout:l=rf.idleTimeout,finalTimeout:u=rf.finalTimeout,childSpanTimeout:c=rf.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:p=!0}=t,f=(0,Z.s3)();if(!f||!(0,ra.f)()){let e=new ru.b,t={sample_rate:"0",sampled:"false",...(0,eg.jC)(e)};return(0,eg.Lh)(e,t),e}let h=(0,Z.nZ)(),g=(0,Y.HN)(),m=function(e){let t=(0,rp.qp)(e);return(0,rl.D)((0,Z.nZ)(),t),N.X&&P.fF.log("[Tracing] Started span is an i
24dle span"),t}(e);function v(){r&&(clearTimeout(r),r=void 0)}function y(e){v(),r=setTimeout(()=>{!i&&0===n.size&&s&&(o="idleTimeout",m.end(e))},l)}function b(e){r=setTimeout(()=>{!i&&s&&(o="heartbeatFailed",m.end(e))},c)}function w(e){i=!0,n.clear(),a.forEach(e=>e()),(0,rl.D)(h,g);let t=(0,Y.XU)(m),{start_timestamp:r}=t;if(!r)return;t.data[X.ju]||m.setAttribute(X.ju,o);let s=t.status;s&&"unknown"!==s||m.setStatus({code:rd.OP}),P.fF.log(`[Tracing] Idle span "${t.op}" finished`);let c=(0,Y.Dp)(m).filter(e=>e!==m),d=0;c.forEach(t=>{t.isRecording()&&(t.setStatus({code:rd.jt,message:"cancelled"}),t.end(e),N.X&&P.fF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,Y.XU)(t),i=n<=e,o=r-n<=(u+l)/1e3;if(N.X){let e=JSON.stringify(t,void 0,2);i?o||P.fF.log("[Tracing] Discarding span since it finished after idle span final timeout",e):P.fF.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,Y.ed)(m,t),d++)}),d>0&&m.setAttribute("sentry.idle_span_discarded_spans",d)}return m.end=new Proxy(m.end,{apply(e,t,r){if(d&&d(m),t instanceof ru.b)return;let[n,...i]=r,o=n||(0,eE.ph)(),s=(0,Y.$k)(o),a=(0,Y.Dp)(m).filter(e=>e!==m),l=(0,Y.XU)(m);if(!a.length||!p)return w(s),Reflect.apply(e,t,[s,...i]);let c=f.getOptions().ignoreSpans,h=a?.reduce((e,t)=>{let r=Y.XU(t);return!r.timestamp||c&&eT.l({description:r.description,op:r.op,attributes:r.data},c)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),g=l.start_timestamp,v=Math.min(g?g+u/1e3:1/0,Math.max(g||-1/0,Math.min(s,h||1/0)));return w(v),Reflect.apply(e,t,[v,...i])}}),a.push(f.on("spanStart",e=>{if(!(i||e===m||(0,Y.XU)(e).timestamp||e instanceof rc.s&&e.isStandaloneSpan())&&(0,Y.Dp)(m).includes(e)){var t;t=e.spanContext().spanId,v(),n.set(t,!0),b((0,eE.ph)()+c/1e3)}})),a.push(f.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&y((0,eE.ph)()+l/1e3))})),a.push(f.on("idleSpanEnableAutoFinish",e=>{e===m&&(s=!0,y(),n.size&&b())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(m.setStatus({code:rd.jt,message:"deadline_exceeded"}),o="finalTimeout",m.end())},u),m}var rg=r(98346);let rm=!1;var rv=r(8151),ry=r(32616),rb=r(72441);let rw=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",rS=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&((o=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=rw(t.value,r),e(t))}},rA=(e=!0)=>{let t=tw.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},r_=()=>{let e=rA();return e?.activationStart??0};function rE(e,t,r){tw.document&&tw.addEventListener(e,t,r)}function rk(e,t,r){tw.document&&tw.removeEventListener(e,t,r)}let rx=-1,rC=new Set,rI=()=>tw.document?.visibilityState!=="hidden"||tw.document?.prerendering?1/0:0,rT=e=>{if(("pagehide"===e.type||tw.document?.visibilityState==="hidden")&&rx>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of rC)e();isFinite(rx)||(rx="visibilitychange"===e.type?e.timeStamp:0,rk("prerenderingchange",rT,!0))}},rO=()=>{if(tw.document&&rx<0){let e=r_();rx=(tw.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??rI(),rE("visibilitychange",rT,!0),rE("pagehide",rT,!0),rE("prerenderingchange",rT,!0)}return{get firstHiddenTime(){return rx},onHidden(e){rC.add(e)}}},rR=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,rP=(e,t=-1)=>{let r=rA(),n="navigate";return r&&(tw.document?.prerendering||r_()>0?n="prerender":tw.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:rR(),navigationType:n}},rM=new WeakMap;function rL(e,t){try{return rM.get(e)||rM.set(e,new t),rM.get(e)}catch(e){return new t}}class rD{constructor(){rD.prototype.__init.call(this),rD.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let rN=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}}
24,rj=e=>{let t=!1;return()=>{t||(e(),t=!0)}},rF=e=>{tw.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rU=[1800,3e3],rB=(e,t={})=>{rF(()=>{let r;let n=rO(),i=rP("FCP"),o=rN("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-r_(),0),i.entries.push(t),r(!0)))});o&&(r=rS(e,i,rU,t.reportAllChanges))})},r$=[.1,.25],rq=(e,t={})=>{rB(rj(()=>{let r;let n=rP("CLS",0),i=rO(),o=rL(t,rD),s=e=>{for(let t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=rN("layout-shift",s);a&&(r=rS(e,n,r$,t.reportAllChanges),i.onHidden(()=>{s(a.takeRecords()),r(!0)}),tw?.setTimeout?.(r))}))},rG=0,rz=1/0,rH=0,rV=e=>{e.forEach(e=>{e.interactionId&&(rz=Math.min(rz,e.interactionId),rG=(rH=Math.max(rH,e.interactionId))?(rH-rz)/7+1:0)})},rJ=()=>l?rG:performance.interactionCount||0,rZ=()=>{"interactionCount"in performance||l||(l=rN("event",rV,{type:"event",buffered:!0,durationThreshold:0}))},rW=0,rK=()=>rJ()-rW;class rQ{constructor(){rQ.prototype.__init.call(this),rQ.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rW=rJ(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(rK()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let rX=e=>{let t=tw.requestIdleCallback||tw.setTimeout;tw.document?.visibilityState==="hidden"?e():(rE("visibilitychange",e=rj(e),{once:!0,capture:!0}),rE("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),rk("visibilitychange",e,{capture:!0}),rk("pagehide",e,{capture:!0})}))},rY=[200,500],r0=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=rO();rF(()=>{let n;rZ();let i=rP("INP"),o=rL(t,rQ),s=e=>{rX(()=>{for(let t of e)o._processEntry(t);let t=o._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,n())})},a=rN("event",s,{durationThreshold:t.durationThreshold??40});n=rS(e,i,rY,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(a.takeRecords()),n(!0)}))})};class r1{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let r2=[2500,4e3],r3=(e,t={})=>{rF(()=>{let r;let n=rO(),i=rP("LCP"),o=rL(t,r1),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))o._processEntry(s),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-r_(),0),i.entries=[s],r())},a=rN("largest-contentful-paint",s);if(a){r=rS(e,i,r2,t.reportAllChanges);let n=rj(()=>{s(a.takeRecords()),a.disconnect(),r(!0)}),o=e=>{e.isTrusted&&(rX(n),rk(e.type,o,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])rE(e,o,{capture:!0})}})},r4=[800,1800],r5=e=>{tw.document?.prerendering?rF(()=>r5(e)):tw.document?.readyState!=="complete"?addEventListener("load",()=>r5(e),!0):setTimeout(e)},r6=(e,t={})=>{let r=rP("TTFB"),n=rS(e,r,r4,t.reportAllChanges);r5(()=>{let e=rA();e&&(r.value=Math.max(e.responseStart-r_(),0),r.entries=[e],n(!0))})},r8={},r7={};function r9(e,t=!1){return nl("cls",e,ni,u,t)}function ne(e,t=!1){return nl("lcp",e,no,c,t)}function nt(e){return nl("inp",e,na,p)}function nr(e,t){return nu(e,t),r7[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),rN(e,t=>{nn(e,{entries:t})},t)}(e),r7[e]=!0),nc(e,t)}function nn(e,t){let r=r8[e];if(r?.length)for(let e of r)try{e(t)}catch(e){}}function ni(){return rq(e=>{nn("cls",{metric:e}),u=e},{reportAllChanges:!0})}function no(){return r3(e=>{nn("lcp",{metric:e}),c=e},{reportAllChanges:!0})}function ns(){return r6(e=>{nn("ttfb",{metric:e}),d=e})}function na(){return r0(e=>{nn("inp",{metric:e}),p=e})}function nl(e,t,r,n,i=!1){let o;return nu(e,t),r7[e]||(o=r(),r7[e]=!0),n&&t({metric:n}),nc(e,t,i?o:void 0)}function nu(e,t){r8[e]=r8[e]||[],r8[e].push(t)}function nc(e,t,r){return()=>{r&&r();let n=r8[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}let nd=e=>{let t=t=>{("pagehide"===t.type||tw.document?.visibilityState==="hidden")&&e(t)};rE("visibilitychange",t,{capture:!0,once:!0}),rE("pagehide",t,{capture:!0,once:!0})};function np(e){return"number"==typeof e&&isFinite(e)}function nf(e,t,r,{...n}){let i=(0,Y.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,rp._d)(e,()=>{let e=(0,rp.qp)({startTime:t,...n});return e&&e.end(r),e})}function nh(e){let t;let r=(0,Z.s3)();if(!r)return;let{name:n,transaction:i,attributes:o,startTime:s}=e,{release:a,environment:l,sendDefaultPii:u}=r.getOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,Z.nZ)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}let g={release:a,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":tw.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...o};return(0,rp.qp)({name:n,attributes:g,startTime:s,experimental:{standalone:!0}})}function ng(){return tw.addEventListener&&tw.performance}function nm(e){return e/1e3}function nv(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function ny(e,t){let r;let n=!1;function i(e){!n&&r&&t(e,r.spanContext().spanId,r),n=!0}nd(()=>{i("pagehide")});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e,s()})}function nb(e){return null!=e&&e>0&&e<=6e4}function nw(e){return e?(((0,eE.Z1)()||performance.timeOrigin)+e)/1e3:e}function nS(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
24return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,eE.Z1)()||ng()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":nw(e.redirectStart),"http.request.redirect_end":nw(e.redirectEnd),"http.request.worker_start":nw(e.workerStart),"http.request.fetch_start":nw(e.fetchStart),"http.request.domain_lookup_start":nw(e.domainLookupStart),"http.request.domain_lookup_end":nw(e.domainLookupEnd),"http.request.connect_start":nw(e.connectStart),"http.request.secure_connection_start":nw(e.secureConnectionStart),"http.request.connection_end":nw(e.connectEnd),"http.request.request_start":nw(e.requestStart),"http.request.response_start":nw(e.responseStart),"http.request.response_end":nw(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let nA=0,n_={};function nE(e,t,r,n,i=r){let o=t["secureConnection"===r?"connectEnd":"fetch"===r?"domainLookupStart":`${r}End`],s=t[`${r}Start`];s&&o&&nf(e,n+nm(s),n+nm(o),{op:`browser.${i}`,name:t.name,attributes:{[X.S3]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}var nk=r(34155);function nx(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==nk?nk:0))||function(){let e=R.GLOBAL_OBJ.process;return e?.type==="renderer"}())}let nC=[],nI=new Map,nT=new Map,nO={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},nR=({metric:e})=>{if(void 0==e.value)return;let t=nm(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&nO[t.name]);if(!r)return;let{interactionId:n}=r,i=nO[r.name],o=nm((0,eE.Z1)()+r.startTime),s=(0,Y.HN)(),a=s?(0,Y.Gx)(s):void 0,l=null!=n?nI.get(n):void 0,u=l?.span||a,c=u?(0,Y.XU)(u).description:(0,Z.nZ)().getScopeData().transactionName,d=nh({name:l?.elementName||(0,e3.Rt)(r.target),transaction:c,attributes:{[X.S3]:"auto.http.browser.inp",[X.$J]:`ui.interaction.${i}`,[X.JQ]:r.duration},startTime:o});d&&(d.addEvent("inp",{[X.E1]:"millisecond",[X.Wb]:e.value}),d.end(o+t))};function nP(e){let{name:t,op:r,origin:n,metricName:i,value:o,attributes:s,parentSpan:a,reportEvent:l,startTime:u,endTime:c}=e,d=(0,Z.nZ)().getScopeData().transactionName,p={[X.S3]:n,[X.$J]:r,[X.JQ]:0,[`browser.web_vital.${i}.value`]:o,"sentry.transaction":d,"user_agent.original":tw.navigator?.userAgent,...s};a&&Y.FS(a).attributes?.[X.$J]==="pageload"&&(p["sentry.pageload.span_id"]=a.spanContext().spanId),l&&(p[`browser.web_vital.${i}.report_event`]=l);let f=(0,rp.qp)({name:t,attributes:p,startTime:u,parentSpan:a});f&&f.end(c??u)}let nM="sentry_previous_trace";function nL(e){return 1===e.traceFlags}var nD=r(15197),nN=r(60811);function nj(e={}){let t=e.client||(0,Z.s3)();if(!(0,D._k)()||!t)return{};let r=(0,eu.cu)(),n=(0,nN.G)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,Z.nZ)(),o=e.span||(0,Y.HN)();if(!o&&(0,Z.fU)())return{};let s=o?(0,Y.Hb)(o):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,ry.$p)(t,n,r)}(i),a=o?(0,eg.jC)(o):(0,eg.CG)(t,i),l=(0,nD.IQ)(a);if(!ry.Ke.test(s))return P.fF.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":s,baggage:l};return e.propagateTraceparent&&(u.traceparent=o?(0,Y.jN)(o):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,ry.i7)(t,n,r)}(i)),u}function nF(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(nD.lq))}function nU(e,t,r,n){let i={url:tb(e),type:"fetch","http.method":r,[X.S3]:n,[X.$J]:"http.client"};return t&&(tg(t)||(i["http.url"]=tb(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}let nB=Symbol.for("sentry__originalRequestBody");function n$(e){return new URLSearchParams(e).toString()}function nq(e,t=P.fF){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];
24if(e instanceof FormData)return[n$(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function nG(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][nB];if(void 0!==t)return t}}function nz(e){let t;try{t=e.getAllResponseHeaders()}catch(e){return{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function nH(e){try{return new URL(e,e4.location.origin).href}catch{return}}function nV(e){try{return new Headers(e)}catch{return}}let nJ=new WeakMap,nZ=new Map,nW={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function nK(e,t){let{url:r}=(0,Y.XU)(e).data;if(!r||"string"!=typeof r)return;let n=()=>void setTimeout(i);if((0,rg.k)(t)){let t=e.end.bind(e);e.end=e=>{let r=e??(0,eE.ph)(),o=!1,s=()=>{o||(o=!0,setTimeout(i),t(r),clearTimeout(a))};n=s;let a=setTimeout(s,300)}}let i=nr("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(r)&&(e.setAttributes(nS(t)),n())})})}let nQ=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function nX(){let e=e4.navigator;return!!e?.userAgent&&nQ.test(e.userAgent)}let nY={...rf,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...nW},n0=(e={})=>{let t,r,n;"enableElementTiming"in e&&(0,P.Cf)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let i={name:void 0,source:void 0},o=e4.document,{enableInp:s,enableLongTask:a,enableLongAnimationFrame:l,_experiments:{enableInteractions:u,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:p},beforeStartSpan:g,idleTimeout:m,finalTimeout:v,childSpanTimeout:y,markBackgroundSpan:b,traceFetch:w,traceXHR:S,trackFetchStreamPerformance:A,shouldCreateSpanForRequest:_,enableHTTPTimings:E,ignoreResourceSpans:k,ignorePerformanceApiSpans:x,instrumentPageLoad:C,instrumentNavigation:I,detectRedirects:T,linkPreviousTrace:O,consistentTraceSampling:M,enableReportPageLoaded:L,onRequestSpanStart:D,onRequestSpanEnd:j}={...nY,...e},F=nX();function U(e,r,s=!0){let a="pageload"===r.op,l=r.name,u=g?g(r):r,d=u.attributes||{};if(l!==u.name&&(d[X.Zj]="custom",u.attributes=d),!s){let e=(0,eE.yW)();(0,rp.qp)({...u,startTime:e}).end(e);return}i.name=u.name,i.source=d[X.Zj];let b=rh(u,{idleTimeout:m,finalTimeout:v,childSpanTimeout:y,disableAutoFinish:a,beforeSpanEnd:r=>{t?.();let i=(0,rg.k)(e);(function(e,t){let r=ng(),n=(0,eE.Z1)();if(!r?.getEntries||!n)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:o,ignoreResourceSpans:s,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:l}=t,u=nm(n),c=r.getEntries(),{op:d,start_timestamp:p}=(0,Y.XU)(e);if(c.slice(nA).forEach(t=>{let r=nm(t.startTime),n=nm(Math.max(0,t.duration));if("navigation"!==d||!p||!(u+r<p))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{nE(e,t,r,u)}),nE(e,t,"secureConnection",u,"TLS/SSL"),nE(e,t,"fetch",u,"cache"),nE(e,t,"domainLookup",u,"DNS"),function(e,t,r){let n=r+nm(t.requestStart),i=r+nm(t.responseEnd),o=r+nm(t.responseStart);t.responseEnd&&(nf(e,n,i,{op:"browser.request",name:t.name,attributes:{[X.S3]:"auto.ui.browser.metrics"}}),nf(e,o,i,{op:"browser.response",name:t.name,attributes:{[X.S3]:"auto.ui.browser.metrics"}}))}(e,t,u);break;case"mark":case"paint":case"measure":{(function(e,t,r,n,i,o){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,q.U0)(t.name,o))return;let s=rA(!1),a=i+Math.max(r,nm(s?s.requestStart:0)),l=i+r,u=l+n,c={[X.S3]:"auto.resource.browser.metrics"};a!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=a),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,ek.pt)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,ek.pt)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),a<=u&&nf(e,a,u,{name:t.name,op:t.entryType,attributes:c})})(e,t,r,n,u,o);let i=rO(),s=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&s&&(n_.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(n_.fcp={value:t.startTime,unit:"millisecond"});break}
24case"resource":(function(e,t,r,n,i,o,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(a))return;let l={[X.S3]:"auto.resource.browser.metrics"},u=tv(r);u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=r.includes(tw.location.origin),function(e,t,r){r.forEach(([r,n])=>{let i=e[r];null!=i&&("number"==typeof i&&i<2147483647||"string"==typeof i)&&(t[n]=i)})}(t,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);let c={...l,...nS(t)},d=o+n;nf(e,d,d+i,{name:r.replace(tw.location.origin,""),op:a,attributes:c})})(e,t,t.name,r,n,u,s)}}),nA=Math.max(c.length-1,0),function(e,t){let r=tw.navigator;if(!r)return;let n=r.connection;n&&(n.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute(t?"network.connection.type":"connectionType",n.type),np(n.rtt)&&(n_["connection.rtt"]={value:n.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",n.rtt))),np(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`)),np(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,i),"pageload"===d){if(function(e){let t=rA(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(n_),i){let t=(t,r,n)=>{let i=n??`browser.web_vital.${t}.value`;e.setAttribute(i,r)};["ttfb","fp","fcp"].forEach(e=>{n_[e]&&t(e,n_[e].value)}),n_["ttfb.requestTime"]&&t("ttfb.requestTime",n_["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete n_.cls,l||delete n_.lcp,Object.entries(n_).forEach(([e,t])=>{(0,rb.o)(e,t.value,t.unit)}),f&&t.recordLcpOnPageloadSpan&&(f.element&&e.setAttribute("lcp.element",(0,e3.Rt)(f.element)),f.id&&e.setAttribute("lcp.id",f.id),f.url&&e.setAttribute("lcp.url",f.url.trim().slice(0,200)),null!=f.loadTime&&e.setAttribute("lcp.loadTime",f.loadTime),null!=f.renderTime&&e.setAttribute("lcp.renderTime",f.renderTime),e.setAttribute("lcp.size",f.size)),h?.sources&&t.recordClsOnPageloadSpan&&h.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,e3.Rt)(t.node)));e.setAttribute(i?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(i?"browser.performance.navigation.activation_start":"performance.activationStart",r_())}f=void 0,h=void 0,n_={}})(r,{recordClsOnPageloadSpan:!i&&!c,recordLcpOnPageloadSpan:!i&&!p,ignoreResourceSpans:k,ignorePerformanceApiSpans:x,spanStreamingEnabled:i}),(0,W.xp)(e,n5,void 0);let o=(0,Z.nZ)(),s=o.getPropagationContext();o.setPropagationContext({...s,traceId:b.spanContext().traceId,sampled:(0,Y.Tt)(b),dsc:(0,eg.jC)(r)}),a&&(n=void 0)},trimIdleSpanEndTimestamp:!L});function w(){o&&["interactive","complete"].includes(o.readyState)&&e.emit("idleSpanEnableAutoFinish",b)}a&&L&&(n=b),(0,W.xp)(e,n5,b),a&&!L&&o&&(o.addEventListener("readystatechange",()=>{w()}),w())}return{name:"BrowserTracing",setup(e){if(F)return;!function(){rm||(e.tag="sentry_tracingErrorCallback",rm=!0,tB(e),tG(e));function e(){let e=(0,Y.HN)(),t=e&&(0,Y.Gx)(e);if(t){let e="internal_error";N.X&&P.fF.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:rd.jt,message:e})}}}();let i=(0,rg.k)(e);if(t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=ng();if(n&&(0,eE.Z1)()){n.mark&&tw.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!nv("largest-contentful-paint"))return;let n=ne(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&nb(e.value)&&(r=e.value,t=n)},!0);ny(e,(e,i)=>{(function(e,t,r,n){if(!nb(e))return;let i=nm(((0,eE.Z1)()||0)+(t?.startTime||0)),o=(0,Z.nZ)().getScopeData().transactionName,s=t?(0,e3.Rt)(t.element):"Largest contentful paint",a={[X.S3]:"auto.http.browser.lcp",[X.$J]:"ui.webvital.lcp",[X.JQ]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(a["lcp.element"]=(0,e3.Rt)(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),null!=t.loadTime&&(a["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(a["lcp.renderTime"]=t.renderTime),null!=t.size&&(a["lcp.size"]=t.size));let l=nh({name:s,transaction:o,attributes:a,startTime:i});l&&(l.addEvent("lcp",{[X.E1]:"millisecond",[X.Wb]:e}),l.end(i))})(r,t,i,e),n()})}(r):!1===t?ne(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&nb(e.value)&&(n_.lcp={value:e.value,unit:"millisecond"},f=t)},!0):void 0,o=e?function(e){let t,r=0;if(!nv("layout-shift"))return;let n=r9(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);ny(e,(e,i)=>{(function(e,t,r,n){let i=t?nm(((0,eE.Z1)()||0)+t.startTime):(0,eE.ph)(),o=(0,Z.nZ)().getScopeData().transactionName,s=t?(0,e3.Rt)(t.sources[0]?.node):"Layout shift",a={[X.S3]:"auto.http.browser.cls",[X.$J]:"ui.webvital.cls",[X.JQ]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};
24t?.sources&&t.sources.forEach((e,t)=>{a[`cls.source.${t+1}`]=(0,e3.Rt)(e.node)});let l=nh({name:s,transaction:o,attributes:a,startTime:i});l&&(l.addEvent("cls",{[X.E1]:"",[X.Wb]:e}),l.end(i))})(r,t,i,e),n()})}(r):!1===e?r9(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(n_.cls={value:e.value,unit:""},h=t)},!0):void 0,s=nl("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(n_.ttfb={value:e.value,unit:"millisecond"})},ns,d);return()=>{s(),i?.(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:i?void 0:c||!1,recordLcpStandaloneSpans:i?void 0:p||!1,client:e}),i?(function(e){let t,r=0;if(!nv("largest-contentful-paint"))return;let n=ne(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&nb(e.value)&&(r=e.value,t=n)},!0);ny(e,(e,i,o)=>{(function(e,t,r,n){if(!nb(e))return;let i=(0,eE.Z1)()||0,o=nm(i),s=nm(i+(t?.startTime||0)),a=t?(0,e3.Rt)(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=(0,e3.Rt)(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),nP({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:r,reportEvent:n,startTime:o,endTime:s})})(r,t,o,e),n()})}(e),function(e){let t,r=0;if(!nv("layout-shift"))return;let n=r9(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);ny(e,(e,i,o)=>{(function(e,t,r,n){let i=t?nm(((0,eE.Z1)()||0)+t.startTime):(0,eE.ph)(),o=t?(0,e3.Rt)(t.sources[0]?.node):"Layout shift",s={};t?.sources&&t.sources.forEach((e,t)=>{s[`browser.web_vital.cls.source.${t+1}`]=(0,e3.Rt)(e.node)}),nP({name:o,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:s,parentSpan:r,reportEvent:n,startTime:i})})(r,t,o,e),n()})}(e),!s||ng()&&(0,eE.Z1)()&&nt(({metric:e})=>{if(null==e.value||nm(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&nO[t.name]);t&&function(e,t){var r;let n=nm((0,eE.Z1)()+t.startTime),i=nm(e),o=nO[t.name],s=null!=(r=t.interactionId)?nI.get(r):void 0,a=(0,Y.HN)(),l=a?(0,Y.Gx)(a):void 0,u=s?.span||l,c=u?(0,Y.FS)(u).name:(0,Z.nZ)().getScopeData().transactionName;nP({name:s?.elementName||(0,e3.Rt)(t.target),op:`ui.interaction.${o}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[X.JQ]:t.duration,"sentry.transaction":c},startTime:n,endTime:n+i,parentSpan:u})}(e.value,t)})):s&&function(){if(ng()&&(0,eE.Z1)()){let e=nt(nR);return()=>{e()}}return()=>void 0}(),l&&R.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,Y.HN)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=nm((0,eE.Z1)()+r.startTime),{start_timestamp:n,op:i}=(0,Y.XU)(t);if("navigation"===i&&n&&e<n)continue;let o=nm(r.duration),s={[X.S3]:"auto.ui.browser.metrics"},{invoker:a,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];s["browser.script.invoker"]=a,s["browser.script.invoker_type"]=l,u&&(s["code.filepath"]=u),c&&(s["code.function"]=c),-1!==d&&(s["browser.script.source_char_position"]=d),nf(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):a&&nr("longtask",({entries:e})=>{let t=(0,Y.HN)();if(!t)return;let{op:r,start_timestamp:n}=(0,Y.XU)(t);for(let i of e){let e=nm((0,eE.Z1)()+i.startTime),o=nm(i.duration);"navigation"===r&&n&&e<n||nf(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[X.S3]:"auto.ui.browser.metrics"}})}}),u&&nr("event",({entries:e})=>{let t=(0,Y.HN)();
24if(t){for(let r of e)if("click"===r.name){let e=nm((0,eE.Z1)()+r.startTime),n=nm(r.duration),i={name:(0,e3.Rt)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[X.S3]:"auto.ui.browser.metrics"}},o=(0,e3.iY)(r.target);o&&(i.attributes["ui.component_name"]=o),nf(t,e,e+n,i)}}}),T&&o){let e=()=>{r=(0,eE.ph)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function g(){let t=e[n5];t&&!(0,Y.XU)(t).timestamp&&(t.setAttribute(X.ju,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if((0,Z.s3)()!==e)return;if(n?.isRedirect){U(e,{op:"navigation.redirect",...t},!1);return}r=void 0,g(),(0,Z.aF)().setPropagationContext({traceId:(0,rv.H)(),sampleRand:Math.random(),propagationSpanId:(0,ra.f)()?void 0:(0,rv.M)()});let i=(0,Z.nZ)();i.setPropagationContext({traceId:(0,rv.H)(),sampleRand:Math.random(),propagationSpanId:(0,ra.f)()?void 0:(0,rv.M)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),U(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,Z.s3)()!==e)return;g();let n=r.sentryTrace||n3("sentry-trace")||n4("sentry-trace"),i=r.baggage||n3("baggage")||n4("baggage"),o=(0,ry.pT)(n,i),s=(0,Z.nZ)();s.setPropagationContext(o),(0,ra.f)()||(s.getPropagationContext().propagationSpanId=(0,rv.M)()),s.setSDKProcessingMetadata({normalizedRequest:e8()}),U(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{L&&n&&(n.setAttribute(X.ju,"reportPageLoaded"),n.end())})},afterAllSetup(e){let t;if(F)return;let n=(0,e3.l4)();if("off"!==O&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=e4.sessionStorage?.getItem(nM);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,Y.Gx)(e)!==e)return;let t=(0,Z.nZ)().getPropagationContext();i=function(e,t,r){let n=(0,Y.XU)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[X.TE])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let o=e.spanContext;return o.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:o,attributes:{[X.lH]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${o.traceId}-${o.spanId}-${nL(o)?1:0}`)),i)}(i,e,t),n&&function(e){try{e4.sessionStorage.setItem(nM,JSON.stringify(e))}catch(e){}}(i)});let o=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,Z.nZ)(),r=t.getPropagationContext();if(o&&r.parentSpanId){o=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(nL(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=nL(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[X.iT]:i.sampleRate}})}(e,{linkPreviousTrace:O,consistentTraceSampling:M}),e4.location){if(C){let t=(0,eE.Z1)();n1(e,{name:e4.location.pathname,startTime:t?t/1e3:void 0,attributes:{[X.Zj]:"url",[X.S3]:"auto.pageload.browser"}})}I&&tC(({to:t,from:i})=>{if(void 0===i&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let o=tm(t),s=e[n5],a=s&&T&&function(e,t){let r=(0,Y.XU)(e),n=(0,eE.yW)();return!(n-r.start_timestamp>1.5)&&(!t||!(n-t<=1.5))}(s,r);n2(e,{name:o?.pathname||e4.location.pathname,attributes:{[X.Zj]:"url",[X.S3]:"auto.navigation.browser"}},{url:t,isRedirect:a})})}b&&e4.document&&e4.document.addEventListener("visibilitychange",()=>{let e=(0,Y.HN)();if(!e)return;let t=(0,Y.Gx)(e);if(e4.document.hidden&&t){let{op:e,status:r}=(0,Y.XU)(t);r||t.setStatus({code:rd.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),u&&e4.document&&addEventListener("click",()=>{let r=e[n5];!(r&&["navigation","pageload"].includes((0,Y.XU)(r).op))&&(t&&(t.setAttribute(X.ju,"interactionInterrupted"),t.end(),t=void 0),i.name&&(t=rh({name:i.name,op:"ui.action.click",attributes:{[X.Zj]:i.source||"url"}},{idleTimeout:m,finalTimeout:v,childSpanTimeout:y})))},{capture:!0}),s&&function(){let e=Object.keys(nO);function t(e){let t=e.target;if(!t)return;let r=(0,e3.Rt)(t),n=Math.round(e.timeStamp);if(nT.set(n,r),nT.size>50){let e=nT.keys().next().value;void 0!==e&&nT.delete(e)}}
24nx()&&e.forEach(e=>{tw.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,Y.HN)(),r=t&&(0,Y.Gx)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||nI.has(t))return;let n=e.target?(0,e3.Rt)(e.target):function(e){let t=Math.round(e.startTime),r=nT.get(t);if(!r)for(let e=-5;e<=5;e++){let n=nT.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(nC.length>10){let e=nC.shift();nI.delete(e)}nC.push(t),nI.set(t,{span:r,elementName:n})})};nr("event",r),nr("first-input",r)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:l,onRequestSpanEnd:u}={...nW,...t},c="function"==typeof o?o:e=>!0,d=e=>(function(e,t){let r=(0,e3.l4)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let o=n.origin===i;return t?(0,q.U0)(n.toString(),t)||o&&(0,q.U0)(n.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?(0,q.U0)(e,t):r}})(e,a),p={},f=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=nZ.get(e.span_id);t&&(e.timestamp=t/1e3,nZ.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";tt(t,e),tr(t,()=>tl(tc))}(e=>{if(e.response){let t=nJ.get(e.response);t&&e.endTimestamp&&nZ.set(t,e.endTimestamp)}}),ta(t=>{let r=function(e,t,r,n,i){if(!e.fetchData)return;let{method:o,url:s}=e.fetchData,a=(0,ra.f)()&&t(s);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(a&&(function(e,t){if(t.response){(0,rd.Q0)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:rd.jt,message:"internal_error"});e.end()}(r,e),function(e,t,r){let n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}(r,e,i)),delete n[t]);return}let{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof i?i:{spanOrigin:i},c=(0,Z.s3)(),d=!!(0,Y.HN)(),p=a&&d?(0,rp.qp)(function(e,t,r){if(e.startsWith("data:")){let n=tb(e);return{name:`${t} ${n}`,attributes:nU(e,void 0,t,r)}}let n=tm(e),i=n?function(e){if(tg(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(n):e;return{name:`${t} ${i}`,attributes:nU(e,n,t,r)}}(s,o,l)):new ru.b;if(a&&!d&&c?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=p.spanContext().spanId,n[p.spanContext().spanId]=p,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){let i=nj({span:r,propagateTraceparent:n}),o=i["sentry-trace"],s=i.baggage,a=i.traceparent;if(!o)return;let l=t.headers||((0,ek.gJ)(e)?e.headers:void 0);if(!l)return{...i};if("undefined"!=typeof Headers&&(0,ek.V9)(l,Headers)){let e=new Headers(l);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&a&&!e.get("traceparent")&&e.set("traceparent",a),s){let t=e.get("baggage");t?nF(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(l)&&l.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...l];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&a&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",a]);let t=l.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&nF(e[1]));return s&&!t&&e.push(["baggage",s]),e}{let e="sentry-trace"in l?l["sentry-trace"]:void 0,t="traceparent"in l?l.traceparent:void 0,r="baggage"in l?l.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],u=r&&(Array.isArray(r)?r.find(e=>nF(e)):nF(r));s&&!u&&i.push(s);let c=Object.assign({},l,{"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0});return n&&a&&!t&&(c.traceparent=a),c}}(t,r,(0,ra.f)()&&d?p:void 0,u);n&&(e.args[1]=r,r.headers=n)}if(c){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};c.emit("beforeOutgoingRequestSpan",p,t)}return p}(t,c,d,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(t.response&&t.fetchData.__span&&nJ.set(t.response,t.fetchData.__span),r){let n=nH(t.fetchData.url),i=n?tv(n).host:void 0;r.setAttributes({"http.url":n?tb(n):void 0,"server.address":i}),s&&nK(r,e),l?.(r,{headers:t.headers})}})),n&&tk(t=>{let r=function(e,t,r,n,i,o){let s=e.xhr,a=s?.[tE];if(!s||s.__sentry_own_request__||!a)return;let{url:l,method:u}=a,c=(0,ra.f)()&&t(l);if(e.endTimestamp){let t=s.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&(c&&void 0!==a.status_code&&((0,rd.Q0)(r,a.status_code),r.end(),o?.(r,{headers:nV(nz(s)),error:e.error})),delete n[t]);return}let d=nH(l),p=d?tv(d):tv(l),f=tb(ty(l)),h=(0,Z.s3)(),g=!!(0,Y.HN)(),m=c&&g?(0,rp.qp)({name:`${u} ${f}`,attributes:{url:tb(l),type:"xhr","http.method":u,"http.url":d?tb(d):void 0,"server.address":p?.host,[X.S3]:"auto.http.browser",[X.$J]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new ru.b;return c&&!g&&h?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=m.spanContext().spanId,n[s.__sentry_xhr_span_id__]=m,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:o}=nj({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,o)}(s,(0,ra.f)()&&g?m:void 0,i),h&&h.emit("beforeOutgoingRequestSpan",m,e),m}(t,c,d,p,f,u);r&&(s&&nK(r,e),l?.(r,{headers:nV(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:w,traceXHR:S,trackFetchStreamPerformance:A,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:E,onRequestSpanStart:D,onRequestSpanEnd:j})}}};function n1(e,t,r){e.emit("startPageLoadSpan",t,r),(0,Z.nZ)().setTransactionName(t.name);let n=e[n5];return n&&e.emit("afterStartPageLoadSpan",n),n}function n2(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let o=(0,Z.nZ)();return o.setTransactionName(t.name),n&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...e8(),url:n}}),e[n5]}function n3(e){let t=e4.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function n4(e){let t=e4.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let n5="_sentry_idleSpan",n6=R.GLOBAL_OBJ,n8=null,n7=new Map,n9=new Map;
24function ie(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function it(e){if(n7.has(e))return n7.get(e)??null;try{let t=new RegExp(e);return n7.set(e,t),t}catch(t){return ro.X&&P.fF.warn("Could not compile regex",{regexString:e,error:t}),null}}function ir(){if(!n6?._sentryRouteManifest||"string"!=typeof n6._sentryRouteManifest)return null;let e=n6._sentryRouteManifest;if(n8&&S===e)return n8;n7.clear(),n9.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return n8=t,S=e,t}catch{return ro.X&&P.fF.warn("Could not extract route manifest"),null}}let ii=e=>{let t=ir();if(!t)return;let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(n9.has(r))return n9.get(r);let{staticRoutes:n,dynamicRoutes:i}=t;if(!Array.isArray(n)||!Array.isArray(i))return;let o=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=it(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=it(t.regex);i?.test(r)&&n.push(t.path)}}return n})(r,n,i).sort((e,t)=>ie(e)-ie(t))[0];return n9.set(r,o),o};var io=r(34155);function is(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let ia="incomplete-app-router-transaction",il={current:void 0},iu=R.GLOBAL_OBJ,ic=R.GLOBAL_OBJ;function id(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let ip=new WeakSet;function ih(e,t,r){ip.has(t)||(ip.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,o){let s=ia,a={[X.$J]:"navigation",[X.S3]:"auto.navigation.nextjs.app_router_instrumentation",[X.Zj]:"url"},l=o[0],u=io.env._sentryBasePath??ic._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(s=is(id(c)),a["navigation.type"]="router.push"):"replace"===n?(s=is(id(c)),a["navigation.type"]="router.replace"):"back"===n?a["navigation.type"]="router.back":"forward"===n&&(a["navigation.type"]="router.forward");let d=ii(s);return r.current=n2(e,{name:d??s,attributes:{...a,[X.Zj]:d?"route":"url"}}),t.apply(i,o)}}))}))}var ig=r(11163);let im=ig.events?ig:ig.default,iv=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function iy(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function ib(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let iw=(e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in R.GLOBAL_OBJ&&!!R.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||o){var s;let e;let o=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=t?function(e,t){e=iy(e).slice(1),t=iy(t).slice(1);let r=ib(e.split("/")),n=ib(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let s=[];for(let e=o;e<r.length;e++)s.push("..");return(s=s.concat(n.slice(o))).join("/")}(t,o):(e=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=iv.exec(t);return r?r.slice(1):[]}(o)[2]||"",s&&e.slice(-1*s.length)===s&&(e=e.slice(0,e.length-s.length)),e);n.filename=`${r}${a}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}},iS=({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...iw({iteratee:i=>{if(n){let r="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"});class iA{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}let i_=new iA(100);var iE=r(34155);let ik=R.GLOBAL_OBJ;
24var ix=r(34155);let iC=!1,iI=R.GLOBAL_OBJ;function iT(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let iO=R.GLOBAL_OBJ,iR="sentryReplaySession",iP="Unable to send Replay";var iM=Object.defineProperty,iL=(e,t,r)=>t in e?iM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iD=(e,t,r)=>iL(e,"symbol"!=typeof t?t+"":t,r),iN=((A=iN||{})[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment",A);function ij(e){let t=e?.host;return t?.shadowRoot===e}function iF(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function iU(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,iB).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function iB(e){let t;if("styleSheet"in e)try{t=iU(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],o=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class i${constructor(){iD(this,"idNodeMap",new Map),iD(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function iq({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function iG({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function iz(e){return e.toLowerCase()}function iH(e){return e.toUpperCase()}let iV="__rrweb_original__";function iJ(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?iz(t):null}function iZ(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function iW(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let iK={};function iQ(e){let t=iK[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return iK[e]=n.bind(window)}function iX(...e){return iQ("setTimeout")(...e)}function iY(...e){return iQ("clearTimeout")(...e)}function i0(e){try{return e.contentDocument}catch(e){}}let i1=1,i2=RegExp("[^a-z0-9-_:]");function i3(){return i1++}let i4=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,i5=/^(?:[a-z+]+:)?\/\//i,i6=/^www\..*/i,i8=/^(data:)([^,]*),(.*)/i;function i7(e,t){return(e||"").replace(i4,(e,r,n,i,o,s)=>{let a=n||o||s,l=r||i||"";if(!a)return e;if(i5.test(a)||i6.test(a)||i8.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let u=t.split("/"),c=a.split("/");for(let e of(u.pop(),c))"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}let i9=/^[^ \t\n\r\u000c]+/,oe=/^[, \t\n\r\u000c]+/,ot=new WeakMap;function or(e,t){return t&&""!==t.trim()?on(e,t):t}function on(e,t){let r=ot.get(e);if(r||(r=e.createElement("a"),ot.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}
24function oi(e,t,r,n,i,o,s){if(!n)return n;if("src"===r||"href"===r&&!("use"===t&&"#"===n[0])||"xlink:href"===r&&"#"!==n[0]||"background"===r&&("table"===t||"td"===t||"th"===t))return or(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;let i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(oe),!(r>=t.length);){let o=n(i9);if(","===o.slice(-1))o=or(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=or(e,o);let s=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){r+=1,i.push((o+n).trim());break}"("===e&&(s=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=i7(n,on(e));return s&&s.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,s)),t}return"object"===t&&"data"===r?or(e,n):"function"==typeof o?o(r,n,i):n}function oo(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function os(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:os(e.parentNode,t,r,n+1)}function oa(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function ol(e,t,r,n,i,o){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(o){if((l=os(s,oa(n,i)))<0)return!0;a=os(s,oa(t,r),l>=0?l:1/0)}else{if((a=os(s,oa(t,r)))<0)return!1;l=os(s,oa(n,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!o}catch(e){}return!!o}function ou(e){return null==e?"":e.toLowerCase()}function oc(e,t){let r;let{doc:n,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:v={},maskAttributeFn:y,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:A={},inlineImages:_=!1,recordCanvas:E=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:C=5e3,onBlockedImageLoad:I,onStylesheetLoad:T,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:P=!1,ignoreCSSAttributes:M}=t,{preserveWhiteSpace:L=!0}=t,D=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:v,maskInputFn:y,dataURLOptions:b={},inlineImages:w,recordCanvas:S,keepIframeSrcFn:A,newlyAddedElement:_=!1,ignoreCSSAttributes:E}=t,k=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:iN.Document,childNodes:[],compatMode:e.compatMode};return{type:iN.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:iN.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){let r;let{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:a,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:v=!1,rootId:y,maskTextClass:b,unmaskTextClass:w,maskTextSelector:S,unmaskTextSelector:A,ignoreCSSAttributes:_}=t,E=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o,s),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=iz(e.tagName);return i2.test(t)?"div":t}(e),x={},C=e.attributes.length;for(let t=0;t<C;t++){let r=e.attributes[t];r.name&&!oo(k,r.name,r.value)&&(x[r.name]=oi(n,k,iz(r.name),r.value,e,u,_))}if("link"===k&&a){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=iU(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=i7(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=iU(e.sheet);t&&(x._cssText=i7(t,on(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=iJ(e),r=iZ(e,iH(k),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=ol(e,b,S,w,A,iq({type:t,tagName:iH(k),maskInputOptions:l}));x.value=iG({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(x.checked=n)}if("option"===k&&(e.selected&&!l.select?x.selected=!0:delete x.selected),"canvas"===k&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData,o=iV in i?i[iV]:i;
24if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(x.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(x.rr_dataURL=t)}}if("img"===k&&p){g||(m=(g=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{g.width=e.naturalWidth,g.height=e.naturalHeight,m.drawImage(e,0,0),x.rr_dataURL=g.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?x.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===k||"video"===k)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),!v&&(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),E){let{width:t,height:r}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==k||h(x.src)||(E||i0(e)||(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(r=!0)}catch(e){}return{type:iN.Element,tagName:k,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:E,rootId:y,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:y,dataURLOptions:b,inlineImages:w,recordCanvas:S,keepIframeSrcFn:A,newlyAddedElement:_,rootId:k,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:E});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=iU(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=i7(p,on(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let m=ol(e,n,o,i,s,r);return f||h||g||!p||!m||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(l.textarea||m)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=iG({isMasked:ol(e,n,o,i,s,iq({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:iN.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:r,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:v,maskInputOptions:h,maskInputFn:y,rootId:k});case e.CDATA_SECTION_NODE:return{type:iN.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:iN.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:w,dataURLOptions:A,inlineImages:_,recordCanvas:E,keepIframeSrcFn:R,newlyAddedElement:P,ignoreCSSAttributes:M});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===iN.Comment)return!0;if(e.type===iN.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===iW(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ou(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ou(e.attributes.name)||"icon"===ou(e.attributes.rel)||"apple-touch-icon"===ou(e.attributes.rel)||"shortcut icon"===ou(e.attributes.rel))))return!0;
24if("meta"===e.tagName){if(t.headMetaDescKeywords&&ou(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(ou(e.attributes.property).match(/^(og|twitter|fb):/)||ou(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ou(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ou(e.attributes.name)||"googlebot"===ou(e.attributes.name)||"bingbot"===ou(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ou(e.attributes.name)||"generator"===ou(e.attributes.name)||"framework"===ou(e.attributes.name)||"publisher"===ou(e.attributes.name)||"progid"===ou(e.attributes.name)||ou(e.attributes.property).match(/^article:/)||ou(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ou(e.attributes.name)||"yandex-verification"===ou(e.attributes.name)||"csrf-token"===ou(e.attributes.name)||"p:domain_verify"===ou(e.attributes.name)||"verify-v1"===ou(e.attributes.name)||"verification"===ou(e.attributes.name)||"shopify-checkout-api-token"===ou(e.attributes.name)))return!0}}return!1}(D,S)&&(L||D.type!==iN.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?i3():-2;let N=Object.assign(D,{id:r});if(i.add(e,N),-2===r)return null;k&&k(e);let j=!f;if(N.type===iN.Element){j=j&&!N.needBlock;let t=e.shadowRoot;t&&iF(t)&&(N.isShadowHost=!0)}if((N.type===iN.Document||N.type===iN.Element)&&j){S.headWhitespace&&N.type===iN.Element&&"head"===N.tagName&&(L=!1);let t={doc:n,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:A,inlineImages:_,recordCanvas:E,preserveWhiteSpace:L,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:C,onBlockedImageLoad:I,onStylesheetLoad:T,stylesheetLoadTimeout:O,keepIframeSrcFn:R,ignoreCSSAttributes:M};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=oc(r,t);e&&N.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=oc(r,t);n&&(iF(e.shadowRoot)&&(n.isShadow=!0),N.childNodes.push(n))}}if(e.parentNode&&ij(e.parentNode)&&iF(e.parentNode)&&(N.isShadow=!0),N.type!==iN.Element||"iframe"!==N.tagName||N.needBlock||function(e,t,r){let n;let i=e.contentWindow;if(!i)return;let o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=iX(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{iY(n),o=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return iX(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=i0(e);if(t&&x){let r=oc(t,{doc:t,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:A,inlineImages:_,recordCanvas:E,preserveWhiteSpace:L,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:O,keepIframeSrcFn:R,ignoreCSSAttributes:M});r&&x(e,r)}},C),N.type===iN.Element&&"img"===N.tagName&&!e.complete&&N.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&I)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&I(e,N,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return N.type===iN.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===iW(N.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let o=iX(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{iY(o),i=!0,t()})}(e,()=>{if(T){let t=oc(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:w,slimDOMOptions:S,dataURLOptions:A,inlineImages:_,recordCanvas:E,preserveWhiteSpace:L,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:O,keepIframeSrcFn:R,ignoreCSSAttributes:M});t&&T(e,t)}},O),N.type===iN.Element&&delete N.needBlock,N}function od(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let op="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",of={map:{},getId:()=>(console.error(op),-1),getNode:()=>(console.error(op),null),removeNodeFromMap(){console.error(op)},has:()=>(console.error(op),!1),reset(){console.error(op)}};function oh(e,t,r={}){let n=null,i=0;return function(...o){let s=Date.now();i||!1!==r.leading||(i=s);let a=t-(s-i),l=this;a<=0||a>t?(n&&(function(...e){oR("clearTimeout")(...e)}
24(n),n=null),i=s,e.apply(l,o)):n||!1===r.trailing||(n=oP(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},a))}}function og(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(of=new Proxy(of,{get:(e,t,r)=>("map"===t&&console.error(op),Reflect.get(e,t,r))}));let om=Date.now;function ov(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function oy(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ob(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ow(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function oS(e,t,r,n,i){if(!e)return!1;let o=ow(e);if(!o)return!1;let s=oa(t,r);if(!i){let e=n&&o.matches(n);return s(o)&&!e}let a=os(o,s),l=-1;return!(a<0)&&(n&&(l=os(o,oa(null,n))),a>-1&&l<0||a<l)}function oA(e,t){return -2===t.getId(e)}function o_(e){return!!e.changedTouches}function oE(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function ok(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ox(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(om=()=>new Date().getTime());class oC{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function oI(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function oT(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=oI(r);)r=t;return r}(e);return t.contains(r)}(e))}let oO={};function oR(e){let t=oO[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return oO[e]=n.bind(window)}function oP(...e){return oR("setTimeout")(...e)}var oM=((_=oM||{})[_.DomContentLoaded=0]="DomContentLoaded",_[_.Load=1]="Load",_[_.FullSnapshot=2]="FullSnapshot",_[_.IncrementalSnapshot=3]="IncrementalSnapshot",_[_.Meta=4]="Meta",_[_.Custom=5]="Custom",_[_.Plugin=6]="Plugin",_),oL=((E=oL||{})[E.Mutation=0]="Mutation",E[E.MouseMove=1]="MouseMove",E[E.MouseInteraction=2]="MouseInteraction",E[E.Scroll=3]="Scroll",E[E.ViewportResize=4]="ViewportResize",E[E.Input=5]="Input",E[E.TouchMove=6]="TouchMove",E[E.MediaInteraction=7]="MediaInteraction",E[E.StyleSheetRule=8]="StyleSheetRule",E[E.CanvasMutation=9]="CanvasMutation",E[E.Font=10]="Font",E[E.Log=11]="Log",E[E.Drag=12]="Drag",E[E.StyleDeclaration=13]="StyleDeclaration",E[E.Selection=14]="Selection",E[E.AdoptedStyleSheet=15]="AdoptedStyleSheet",E[E.CustomElement=16]="CustomElement",E),oD=((k=oD||{})[k.MouseUp=0]="MouseUp",k[k.MouseDown=1]="MouseDown",k[k.Click=2]="Click",k[k.ContextMenu=3]="ContextMenu",k[k.DblClick=4]="DblClick",k[k.Focus=5]="Focus",k[k.Blur=6]="Blur",k[k.TouchStart=7]="TouchStart",k[k.TouchMove_Departed=8]="TouchMove_Departed",k[k.TouchEnd=9]="TouchEnd",k[k.TouchCancel=10]="TouchCancel",k),oN=((x=oN||{})[x.Mouse=0]="Mouse",x[x.Pen=1]="Pen",x[x.Touch=2]="Touch",x),oj=((C=oj||{})[C.Play=0]="Play",C[C.Pause=1]="Pause",C[C.Seeked=2]="Seeked",C[C.VolumeChange=3]="VolumeChange",C[C.RateChange=4]="RateChange",C);function oF(e){try{return e.contentDocument}catch(e){}}class oU{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
24this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let oB=(e,t)=>`${e}@${t}`;class o${constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new oU,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!oT(i))return;let o=ij(i.parentNode)?this.mirror.getId(oI(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===o||-1===s)return r.addNode(i);let a=oc(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{oE(e,this.mirror)&&!oS(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ok(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),ox(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{oS(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!oG(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)oz(this.droppedSet,e)||oG(this.removes,e,this.mirror)?oz(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;r.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),r=n(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),i(e.value)}let s={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!oA(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;oS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ol(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ow(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=iJ(t),i=t.tagName;n=iZ(t,i,r);let o=iq({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=iG({isMasked:ol(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(oS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
24if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(oF(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!oo(t.tagName,r)&&(i.attributes[r]=oi(this.doc,iz(t.tagName),iz(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),o=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||o!==r.style.getPropertyPriority(n)?""===o?i.styleDiff[n]=e:i.styleDiff[n]=[e,o]:i._unchangedStyles[n]=[e,o]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(oS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=ij(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);oS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||oA(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(oq(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(ij(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[oB(r,n)]?oq(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(ij(e.target)&&iF(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(oA(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[oB(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!oS(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),ox(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function oq(e,t){e.delete(t),t.childNodes?.forEach(t=>oq(e,t))}function oG(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function oz(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let oH=e=>v?(...t)=>{try{return e(...t)}catch(e){if(v&&!0===v(e))return()=>{};throw e}}:e,oV=[];function oJ(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function oZ(e,t){let r=new o$;oV.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let o=new n(oH(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function oW({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:s}){return od("scroll",oH(oh(oH(s=>{let a=oJ(s);if(!a||oS(a,n,i,o,!0))return;let l=r.getId(a);if(a===t&&t.defaultView){let r=ov(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}let oK=["INPUT","TEXTAREA","SELECT"],oQ=new WeakMap;function oX(e){var t;return t=[],o2("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||o2("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||o2("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||o2("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function oY(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function o0({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,o=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){let r=o.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),oH(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function o1(e,t={}){let r;let n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=oZ(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=oh(oH(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),s),u=oH(oh(oH(e=>
vendor: 1,603 bytes, line 24
24{let t=oJ(e),{clientX:r,clientY:o}=o_(e)?e.changedTouches[0]:e;i||(i=om()),a.push({x:r,y:o,id:n.getId(t),timeOffset:om()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?oL.Drag:e instanceof MouseEvent?oL.MouseMove:oL.TouchMove)}),o,{trailing:!1})),c=[od("mousemove",u,r),od("touchmove",u,r),od("drag",u,r)];return oH(()=>{c.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],u=null,c=t=>s=>{let a=oJ(s);if(oS(a,n,i,o,!0))return;let l=null,c=t;if("pointerType"in s){switch(s.pointerType){case"mouse":l=oN.Mouse;break;case"touch":l=oN.Touch;break;case"pen":l=oN.Pen}l===oN.Touch?oD[t]===oD.MouseDown?c="TouchStart":oD[t]===oD.MouseUp&&(c="TouchEnd"):oN.Pen}else o_(s)&&(l=oN.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===oN.Touch||c.startsWith("Mouse")&&l===oN.Mouse)&&(l=null)):oD[t]===oD.Click&&(l=u,u=null);let d=o_(s)?s.changedTouches[0]:s;if(!d)return;let p=r.getId(a),{clientX:f,clientY:h}=d;oH(e)({type:oD[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};return Object.keys(oD).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let r=iz(e),n=c(e);if(window.PointerEvent)switch(oD[e]){case oD.MouseDown:case oD.MouseUp:r=r.replace("mouse","pointer");break;case oD.TouchStart:case oD.TouchEnd:return}l.push(od(r,n,t))}),oH(()=>{l.forEach(e=>e())})}(e),s=oW(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return od("resize",oH(oh(oH(()=>
24{let t=oy(),i=ob();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:g}){function m(e){let r=oJ(e),c=e.isTrusted,m=r&&iH(r.tagName);if("OPTION"===m&&(r=r.parentElement),!r||!m||0>oK.indexOf(m)||oS(r,n,i,o,!0))return;let y=r;if(y.classList.contains(s)||a&&y.matches(a))return;let b=iJ(r),w=iZ(y,m,b),S=!1,A=iq({maskInputOptions:l,tagName:m,type:b}),_=ol(r,p,h,f,g,A);("radio"===b||"checkbox"===b)&&(S=r.checked),w=iG({isMasked:_,element:r,value:w,maskInputFn:u}),v(r,d?{text:w,isChecked:S,userTriggered:c}:{text:w,isChecked:S});let E=r.name;"radio"===b&&E&&S&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach(e=>{if(e!==r){let t=iG({isMasked:_,element:e,value:iZ(e,m,b),maskInputFn:u});v(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function v(t,n){let i=oQ.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){oQ.set(t,n);let i=r.getId(t);oH(e)({...n,id:i})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>od(e,oH(m),t)),b=t.defaultView;if(!b)return()=>{y.forEach(e=>e())};let w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&y.push(...S.map(e=>(function e(t,r,n,i,o=window){let s=o.Object.getOwnPropertyDescriptor(t,r);return o.Object.defineProperty(t,r,i?n:{set(e){oP(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){oH(m)({target:this,isTrusted:!1})}},!1,b))),oH(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:s}){let a=oH(s=>oh(oH(o=>{let a=oJ(o);if(!a||oS(a,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=a;e({type:s,id:i.getId(a),currentTime:l,volume:u,muted:c,playbackRate:d})}),o.media||500)),l=[od("play",a(oj.Play),s),od("pause",a(oj.Pause),s),od("seeked",a(oj.Seeked),s),od("volumechange",a(oj.VolumeChange),s),od("ratechange",a(oj.RateChange),s)];return oH(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,o;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:oH((n,i,o)=>{let[s,a]=o,{id:l,styleId:u}=oY(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:a}]}),n.apply(i,o)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:oH((n,i,o)=>{let[s]=o,{id:a,styleId:l}=oY(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:s}]}),n.apply(i,o)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:oH((n,i,o)=>{let[s]=o,{id:a,styleId:l}=oY(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:s}),n.apply(i,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:oH((n,i,o)=>{let[s]=o,{id:a,styleId:l}=oY(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:s}),n.apply(i,o)})}));let l={};o3("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(o3("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),o3("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),o3("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:oH((n,i,o)=>{let[s,a]=o,{id:l,styleId:u}=oY(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:[...oX(i),a||0]}]}),n.apply(i,o)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:oH((n,i,o)=>{let[s]=o,{id:a,styleId:l}=oY(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...oX(i),s]}]}),n.apply(i,o)})})}),oH(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=o0(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:oH((i,s,a)=>{let[l,u,c]=a;if(r.has(l))return o.apply(s,[l,u,c]);let{id:d,styleId:p}=oY(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:oX(s.parentRule)}),i.apply(s,a)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:oH((i,o,a)=>{let[l]=a;if(r.has(l))return s.apply(o,[l]);let{id:u,styleId:c}=oY(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:oX(o.parentRule)}),i.apply(o,a)})}),oH(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){let n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let s=og(t.fonts,"add",function(t){return function(r){return oP(oH(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(s),oH(()=>
24{n.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:s}=e,a=!0,l=oH(()=>{let e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:s,startOffset:a,endContainer:u,endOffset:c}=e.getRangeAt(t);oS(s,n,i,o,!0)||oS(u,n,i,o,!0)||l.push({start:r.getId(s),startOffset:a,end:r.getId(u),endOffset:c})}s({ranges:l})});return l(),od("selectionchange",l)}(e),g=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?og(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),m=[];for(let t of e.plugins)m.push(t.observer(t.callback,n,t.options));return oH(()=>{oV.forEach(e=>e.reset()),r?.disconnect(),i(),o(),s(),a(),l(),u(),c(),d(),p(),f(),h(),g(),m.forEach(e=>e())})}function o2(e){return void 0!==window[e]}function o3(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class o4{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class o5{constructor(){this.crossOriginIframeMirror=new o4(i3),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class o6{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new o4(i3),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new o4(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=oF(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case oM.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:oM.IncrementalSnapshot,data:{source:oL.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case oM.Meta:case oM.Load:case oM.DomContentLoaded:break;case oM.Plugin:return t;case oM.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case oM.IncrementalSnapshot:switch(t.data.source){case oL.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
24),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case oL.Drag:case oL.TouchMove:case oL.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case oL.ViewportResize:return!1;case oL.MediaInteraction:case oL.MouseInteraction:case oL.Scroll:case oL.CanvasMutation:case oL.Input:return this.replaceIds(t.data,e,["id"]),t;case oL.StyleSheetRule:case oL.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case oL.Font:return t;case oL.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case oL.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===iN.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class o8{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class o7{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!iF(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=oZ({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(oW({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),oP(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(o0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=oF(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(og(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&oT(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var o9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se="undefined"==typeof Uint8Array?[]:new Uint8Array(256),st=0;st<o9.length;st++)se[o9.charCodeAt(st)]=st;class sr{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class sn{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new oC,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:iB(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class si{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){oR("requestAnimationFrame")(...e)}
24(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let so=new i$;function ss(e={}){let t;let{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:g=!0,maskAllInputs:m,maskInputOptions:w,slimDOMOptions:S,maskAttributeFn:A,maskInputFn:_,maskTextFn:E,maxCanvasSize:k=null,packFn:x,sampling:C={},dataURLOptions:I={},mousemoveWait:T,recordDOM:O=!0,recordCanvas:R=!1,recordCrossOriginIframes:P=!1,recordAfter:M="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:D=!1,inlineImages:N=!1,plugins:j,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:B,onMutation:$,getCanvasManager:q}=e;v=B;let G=!P||window.parent===window,z=!1;if(!G)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(G&&!r)throw Error("emit function is required");if(!G&&!z)return()=>{};void 0!==T&&void 0===C.mousemove&&(C.mousemove=T),so.reset();let H=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==w?w:{},V=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let J=0,Z=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!z&&(e=x(e)),e};y=(e,o)=>{if(e.timestamp=om(),oV[0]?.isFrozen()&&e.type!==oM.FullSnapshot&&!(e.type===oM.IncrementalSnapshot&&e.data.source===oL.Mutation)&&oV.forEach(e=>e.unfreeze()),G)r?.(Z(e),o);else if(z){let t={type:"rrweb",event:Z(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===oM.FullSnapshot)t=e,J=0;else if(e.type===oM.IncrementalSnapshot){if(e.data.source===oL.Mutation&&e.data.isAttachIframe)return;J++;let r=i&&J>=i,o=n&&t&&e.timestamp-t.timestamp>n;(r||o)&&en(!0)}};let W=e=>{y({type:oM.IncrementalSnapshot,data:{source:oL.Mutation,...e}})},K=e=>y({type:oM.IncrementalSnapshot,data:{source:oL.Scroll,...e}}),Q=e=>y({type:oM.IncrementalSnapshot,data:{source:oL.CanvasMutation,...e}}),X=new sn({mutationCb:W,adoptedStyleSheetCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new o5:new o6({mirror:so,mutationCb:W,stylesheetManager:X,recordCrossOriginIframes:P,wrappedEmit:y});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:so,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});let ee=new si,et=function(e,t){try{return e?e(t):new sr}catch{return console.warn("Unable to initialize CanvasManager"),new sr}}(q,{mirror:so,win:window,mutationCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.CanvasMutation,...e}}),recordCanvas:R,blockClass:o,blockSelector:s,unblockSelector:a,maxCanvasSize:k,sampling:C.canvas,dataURLOptions:I,errorHandler:B}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new o8:new o7({mutationCb:W,scrollCb:K,bypassOptions:{onMutation:$,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:H,dataURLOptions:I,maskAttributeFn:A,maskTextFn:E,maskInputFn:_,recordCanvas:R,inlineImages:N,sampling:C,slimDOMOptions:V,iframeManager:Y,stylesheetManager:X,canvasManager:et,keepIframeSrcFn:F,processedNodeManager:ee,ignoreCSSAttributes:U},mirror:so}),en=(e=!1)=>
24{if(!O)return;y({type:oM.Meta,data:{href:window.location.href,width:ob(),height:oy()}},e),X.reset(),er.init(),oV.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new i$,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:m,maskInputFn:v,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:w,onSerialize:S,onIframeLoad:A,iframeLoadTimeout:_,onBlockedImageLoad:E,onStylesheetLoad:k,stylesheetLoadTimeout:x,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:I=new Set([])}=t||{};return oc(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:g,maskTextFn:m,maskInputFn:v,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:w,onSerialize:S,onIframeLoad:A,iframeLoadTimeout:_,onBlockedImageLoad:E,onStylesheetLoad:k,stylesheetLoadTimeout:x,keepIframeSrcFn:C,newlyAddedElement:!1,ignoreCSSAttributes:I})}(document,{mirror:so,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskAllInputs:H,maskAttributeFn:A,maskInputFn:_,maskTextFn:E,slimDOM:V,dataURLOptions:I,recordCanvas:R,inlineImages:N,onSerialize:e=>{oE(e,so)&&Y.addIframe(e),ok(e,so)&&X.trackLinkElement(e),ox(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{W({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:F,ignoreCSSAttributes:U});if(!t)return console.warn("Failed to snapshot the document");y({type:oM.FullSnapshot,data:{node:t,initialOffset:ov(window)}}),oV.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,so.getId(document))};b=en;try{let e=[],t=e=>oH(o1)({onMutation:$,mutationCb:W,mousemoveCb:(e,t)=>y({type:oM.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.ViewportResize,...e}}),inputCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.Input,...e}}),mediaInteractionCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.MediaInteraction,...e}}),styleSheetRuleCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.StyleSheetRule,...e}}),styleDeclarationCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>y({type:oM.IncrementalSnapshot,data:{source:oL.Font,...e}}),selectionCb:e=>{y({type:oM.IncrementalSnapshot,data:{source:oL.Selection,...e}})},customElementCb:e=>{y({type:oM.IncrementalSnapshot,data:{source:oL.CustomElement,...e}})},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:H,inlineStylesheet:g,sampling:C,recordDOM:O,recordCanvas:R,inlineImages:N,userTriggeredOnInput:L,collectFonts:D,doc:e,maskAttributeFn:A,maskInputFn:_,maskTextFn:E,keepIframeSrcFn:F,blockSelector:s,unblockSelector:a,slimDOMOptions:V,dataURLOptions:I,mirror:so,iframeManager:Y,stylesheetManager:X,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:U,plugins:j?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>y({type:oM.Plugin,data:{plugin:e.name,payload:t}}
24)}))||[]},{});Y.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(od("DOMContentLoaded",()=>{y({type:oM.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&r()})),e.push(od("load",()=>{y({type:oM.Load,data:{}}),"load"===M&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),b=void 0,v=void 0}}catch(e){console.warn(e)}}function sa(e){return e>9999999999?e:1e3*e}function sl(e){return e>9999999999?e/1e3:e}function su(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:oM.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eZ.Fv)(t,10,1e3)}}),"console"===t.category)))}function sc(e){return e.closest("button,a")||e}function sd(e){let t=sp(e);return t&&t instanceof Element?sc(t):t}function sp(e){return"object"==typeof e&&e&&"target"in e?e.target:e}ss.mirror=so,ss.takeFullSnapshot=function(e){if(!b)throw Error("please take full snapshot after start recording");b(e)},(I=O||(O={}))[I.NotStarted=0]="NotStarted",I[I.Running=1]="Running",I[I.Stopped=2]="Stopped";let sf=new Set([oL.Mutation,oL.StyleSheetRule,oL.StyleDeclaration,oL.AdoptedStyleSheet,oL.CanvasMutation,oL.Selection,oL.MediaInteraction]);class sh{constructor(e,t,r=su){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=sm()},w||(w=[],(0,W.hl)(iO,"open",function(e){return function(...t){if(w)try{w.forEach(e=>e())}catch{}return e.apply(iO,t)}})),w.push(e),()=>{let t=w?w.indexOf(e):-1;t>-1&&w.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r;if(r=this._ignoreSelector,!sg.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||r&&t.matches(r)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let n={timestamp:sl(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&1>Math.abs(e.timestamp-n.timestamp))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=sl(e)}registerScroll(e=Date.now()){this._lastScroll=sl(e)}registerClick(e){let t=sc(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=sm();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:iO.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:iO.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rt(()=>this._checkClicks(),1e3)}}let sg=["A","BUTTON","INPUT"];function sm(){return Date.now()/1e3}function sv(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var sy=((T=sy||{})[T.Document=0]="Document",T[T.DocumentType=1]="DocumentType",T[T.Element=2]="Element",T[T.Text=3]="Text",T[T.CDATA=4]="CDATA",T[T.Comment=5]="Comment",T);let sb=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),sw=e=>t=>{if(!e.isEnabled())return;let r=function(e){let{target:t,message:r}=function(e){let t;let r="click"===e.name,n=null;try{n=r?sd(e.event):sp(e.event),t=(0,e3.Rt)(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return sv({category:`ui.${e.name}`,...sS(t,r)})}(t);if(!r)return;let n="click"===t.name,i=n?t.event:void 0;n&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,r){e.handleClick(t,r)}(e.clickDetector,r,sd(t.event)),su(e,r)};function sS(e,t){let r=ss.mirror.getId(e),n=r&&ss.mirror.getNode(r),i=n&&ss.mirror.getMeta(n),o=i&&i.type===sy.Element?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>
24e.type===sy.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(sb.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(o.attributes)}}:{}}}let sA={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:sk(o),end:sk(i),name:n,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,o=sk(i);return{type:r,name:n,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:g}=e;return 0===i?null:{type:`${t}.${g}`,start:sk(f),end:sk(o),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function s_(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function sE(e){let t=sA[e.entryType];return t?t(e):null}function sk(e){return(((0,eE.Z1)()||iO.performance.timeOrigin)+e)/1e3}function sx(e){let t=e.entries[e.entries.length-1];return sT(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function sC(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=ss.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return sT(e,"cumulative-layout-shift",r,t)}function sI(e){let t=e.entries[e.entries.length-1];return sT(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function sT(e,t,r,n){let i=e.value,o=e.rating,s=sk(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:r?r.map(e=>ss.mirror.getId(e)):void 0,attributions:n}}}let sO=["log","warn","error"],sR=function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return sO.forEach(t=>{e[t]=()=>void 0}),e}();class sP extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class sM{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new sP;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:sa(e)}}class sL{constructor(e){sL.prototype.__init.call(this),this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",e=>{t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{this._pending.set(r,{method:e,resolve:n,reject:i});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),i(e)}})}__init(){this._onMessage=({data:e})=>
24{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success){t.reject(Error("Error in compression worker"));return}t.resolve(e.response)}}}_getAndIncrementId(){return this._id++}}class sD{constructor(e){this._worker=new sL(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=sa(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new sP):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class sN{constructor(e){this._fallback=new sM,this._compression=new sD(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function sj(){try{return"sessionStorage"in iO&&!!iO.sessionStorage}catch{return!1}}function sF(e){return void 0!==e&&Math.random()<e}function sU(e){if(sj())try{iO.sessionStorage.setItem(iR,JSON.stringify(e))}catch{}}function sB(e){let t=Date.now(),r=e.id||(0,$.DM)(),n=e.started||t,i=e.lastActivity||t,o=e.segmentId||0;return{id:r,started:n,lastActivity:i,segmentId:o,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function s$({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=sB({sampled:sF(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&sU(i),i}function sq(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function sG(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return sq(e.started,t,n)||sq(e.lastActivity,r,n)}function sz(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!sG(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function sH({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!sj())return null;try{let e=iO.sessionStorage.getItem(iR);if(!e)return null;let t=JSON.parse(e);return sB(t)}catch{return null}}();return i?sz(i,{sessionIdleExpire:e,maxReplayDuration:t})?s$(n,{previousSessionId:i.id}):i:s$(n,{previousSessionId:r})}function sV(e,t,r){return!!sZ(e,t)&&(sJ(e,t,r),!0)}async function sJ(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let o=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===oM.Custom)return t(e)}catch(e){return null}return e}(t,o.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}
24catch(o){let t=o&&o instanceof sP,r=(0,Z.s3)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}function sZ(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=sa(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function sW(e){return"transaction"===e.type}function sK(e){return"feedback"===e.type}function sQ(e){return!!e.category}function sX(){let e=(0,Z.nZ)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,Y.HN)();if(t){let e=(0,eg.jC)(t);delete e.replay_id}}function sY(e,t){return t.map(({type:t,start:r,end:n,name:i,data:o})=>{let s=e.throttledAddEvent({type:oM.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof s?Promise.resolve(null):s})}function s0(e,t){e.isEnabled()&&null!==t&&!function(e,t){let r=t?.getDsn(),n=t?.getOptions().tunnel;return function(e,t){var r,n;let i=tm(e);return!(!i||tg(i))&&!!t&&((r=i.hostname)===(n=t.host)||n.length>0&&r.endsWith(`.${n}`))&&/(^|&|\?)sentry_key=/.test(i.search)}(e,r)||!!n&&iT(e)===iT(n)}(t.name,(0,Z.s3)())&&e.addUpdate(()=>(sY(e,[t]),!0))}function s1(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=n$(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function s2(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function s3(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function s4(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:o,statusCode:s,request:a,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:o,statusCode:s,request:a,response:l}}}function s5(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function s6(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,o?.length&&(n._meta={warnings:o}),n}function s8(e,t){return Object.entries(e).reduce((r,[n,i])=>{let o=n.toLowerCase();return t.includes(o)&&e[n]&&(r[o]=i),r},{})}function s7(e,t){let r=function(e,t=iO.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(iO.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,q.U0)(r,t)}async function s9(e,t,r){try{let n=await ae(e,t,r),i=s4("resource.fetch",n);s0(r.replay,i)}catch(e){}}async function ae(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n}=t,{url:s,method:a,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=s7(s,r.networkDetailAllowUrls)&&!s7(s,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){let i=r?1===r.length&&"string"!=typeof r[0]?ai(r[0],t):2===r.length?ai(r[1],t):{}:{};if(!e)return s6(i,n,void 0);let[o,s]=nq(nG(r),sR),a=s6(i,n,o);return s?s3(a,s):a}(r,t.input,u):s5(u),response:await at(d,r,t.response,c)}}async function at(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return s5(i);let o=n?an(n.headers,r):{};if(!n||!t&&void 0!==i)return s6(o,i,void 0);let[s,a]=await ar(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let o=e?.length&&void 0===r?s1(e):r;if(!n)return s5(o);if(t)return s6(i,o,e);return s6(i,o,void 0)}catch(e){return s6(i,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?s3(l,a):l}async function ar(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await new Promise((e,r)=>{let n=rt(()=>r(Error("Timeout while trying to read response body")),500);ao(t).then(t=>e(t),e=>r(e)).finally(()=>clearTimeout(n))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function an(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function ai(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?an(r,t):Array.isArray(r)?{}:s8(r,t):{}}async function ao(e){return await e.text()}async function as(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n,input:s,xhr:a}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!a||!s7(l,r.networkDetailAllowUrls)||s7(l,r.networkDetailDenyUrls)){let e=s5(d);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:e,response:s5(p)}}
24let f=a[tE],h=f?s8(f.request_headers,r.networkRequestHeaders):{},g=s8(nz(a),r.networkResponseHeaders),[m,v]=r.networkCaptureBodies?nq(s,sR):[void 0],[y,b]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(a):[void 0],w=s6(h,d,m),S=s6(g,p,y);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:v?s3(w,v):w,response:b?s3(S,b):S}}(e,t,r),i=s4("resource.xhr",n);s0(r.replay,i)}catch(e){}}async function aa(e){try{return Promise.all(sY(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(iO.performance.memory)]))}catch{return[]}}let al=R.GLOBAL_OBJ.navigator;async function au({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let o=await (0,eI.R)(e.getOptions(),n,i,t,e,(0,Z.aF)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";let s=e.getSdkMetadata(),{name:a,version:l,settings:u}=s?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},o}async function ac({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:o}){var s;let a;let l=function({recordingData:e,headers:t}){let r;let n=`${JSON.stringify(t)}
25`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=n,f=(0,Z.s3)(),h=(0,Z.nZ)(),g=f?.getTransport(),m=f?.getDsn();if(!f||!g||!m||!o.sampled)return Promise.resolve({});let v={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:o.sampled},y=await au({scope:h,client:f,replayId:t,event:v});if(!y)return f.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete y.sdkProcessingMetadata;let b=(s=f.getOptions().tunnel,(0,ed.Jd)((0,ed.Cd)(y,(0,ed.HY)(y),s,m),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await g.send(b)}catch(t){let e=Error(iP);try{e.cause=t}catch{}throw e}let w=e_({},a);if(eA(w,"replay"))throw new ap(w);if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new ad(a.statusCode);return a}class ad extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ap extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class af extends Error{constructor(){super("Session is too long, not sending replay")}}async function ah(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await ac(e),!0}catch(r){if(r instanceof ad||r instanceof ap)throw r;if((0,D.v)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${iP} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{rt(async()=>{try{await ah(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let ag="__THROTTLED";class am{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,o;let s=r?.maxWait?Math.max(r.maxWait,t):0,a=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=a(l,t),s&&void 0===o&&(o=a(l,s)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==o?l():n},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay,setTimeoutImpl:rt}),this._throttledAddEvent=function(e,t,r){let n=new Map,i=e=>{let t=e-5;
25n.forEach((e,r)=>{r<t&&n.delete(r)})},o=()=>[...n.values()].reduce((e,t)=>e+t,0),s=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3);if(i(r),o()>=300){let e=s;return s=!0,e?"__SKIPPED":ag}s=!1;let a=n.get(r)||0;return n.set(r,a+1),e(...t)}}((e,t)=>sZ(this,e)?sJ(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new sh(this,i)),this._handleVisibilityChange=()=>{"visible"===iO.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=sv({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=sv({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:s,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=r||i||o,u=1===s.length;if(!l&&u)return null;let c=(0,e3.Rt)(a,{maxStringLength:200})||"<unknown>",d=sS(a,c);return sv({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:s}})}(t);r&&su(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,!n&&(this._initializeSessionForSampling(e),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=sH({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=sH({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let r=this._canvas;this._stopRecording=ss({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession())return;let i=n||!t;t=!0,function(e){let t=e.data;if(e.type===oM.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===oL.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=ss.mirror.getNode(e.id),r=t&&ss.mirror.getMeta(t);if(r?.type===sy.Element)for(let[t,n]of Object.entries(e.attributes))null===n?delete r.attributes[t]:r.attributes[t]=n}}(r),e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:r}=t.data;if(sf.has(r)&&e.registerMutation(t.timestamp),r===oL.Scroll&&e.registerScroll(t.timestamp),t.data.source===oL.MouseInteraction){let{type:r,id:n}=t.data,i=ss.mirror.getNode(n);i instanceof HTMLElement&&r===oD.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!sV(e,r,i))return!0;if(!i)return!1;let t=e.session;if(i&&e.session?.segmentId===0&&sV(e,function(e){let t=e.getOptions();return{type:oM.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(t.started=r,e.getOptions().stickySession&&sU(t))}
25return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(al?.userAgent??"")||/Macintosh/i.test(al?.userAgent??"")&&al?.maxTouchPoints&&al?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer",Z.s3()?.emit("replayEnd",{sessionId:this.session?.id,reason:t??"manual"});try{sX(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(sj())try{iO.sessionStorage.removeItem(iR)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&sq(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${iO.location.pathname}${iO.location.hash}${iO.location.search}`,t=`${iO.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===ag){let e=sv({category:"replay.throttled"});this.addUpdate(()=>!sV(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,Y.HN)(),t=e&&(0,Y.Gx)(e),r=(t&&(0,Y.XU)(t).data||{})[X.Zj];if(t&&r&&["route","custom"].includes(r))return(0,Y.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['
vendor: 10,329 bytes, line 25
25var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
25']);return URL.createObjectURL(e)}());if(!t)return;let r=new Worker(t);return new sN(r)}catch(e){}}(t);if(e)return e}return new sM}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&Z.s3()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=sH({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!sz(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{iO.document.addEventListener("visibilitychange",this._handleVisibilityChange),iO.addEventListener("blur",this._handleWindowBlur),iO.addEventListener("focus",this._handleWindowFocus),iO.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,Z.s3)();tS(sw(e)),tC(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(sY(e,[r]),!1)))}),function(e){let t=(0,Z.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!sQ(t))return;let r=!sQ(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return sv(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,eZ.Fv)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return sv({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):sv(t);r&&su(e,r)})(e,t))}(e),function(e){let t=(0,Z.s3)();try{let{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{"xhr"===t.category&&r?.xhr&&(function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=s1(n),o=r.getResponseHeader("content-length")?s2(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return s1(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),as(t,r,e)),"fetch"===t.category&&r?.response&&(function(e,t){let{input:r,response:n}=t,i=s1(r?nG(r):void 0),o=n?s2(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),s9(t,r,e))}catch(e){}})(a,e,t))}catch{}}(e);let r=Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!sW(t)&&!sK(t))return t;if(!e.checkAndHandleExpiredSession())return sX(),t;if(sK(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:oM.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let n="buffer"===e.recordingMode&&t.message!==iP&&!!t.exception&&!t.type&&sF(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&sU(t)}return t},{id:"Replay"});(0,D.Qy)(r),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception?.values?.[0]?.value;"string"==typeof r&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&su(e,sv({category:"replay.hydrate-error",data:{url:(0,e3.l4)()}}))}(e,t)}),t.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!sW(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(sW(t)){(function(e,t){let r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&rt(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),t.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];
25return["navigation","paint","resource"].forEach(e=>{n.push(nr(e,r))}),n.push(ne(s_(sx,e)),r9(s_(sC,e)),nt(s_(sI,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{iO.document.removeEventListener("visibilitychange",this._handleVisibilityChange),iO.removeEventListener("blur",this._handleWindowBlur),iO.removeEventListener("focus",this._handleWindowFocus),iO.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||sG(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:oM.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(sE).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(sY(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
25_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)&&(await aa(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new af;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await ah({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendError"});let e=(0,Z.s3)();e&&e.recordDroppedEvent(t instanceof ap?"ratelimit_backoff":t instanceof af?"invalid":"send_error","replay")}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){n&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&o.hasCheckout;let s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&sU(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=n&&r>n;if(r>i||o){let e=sv({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function av(e,t){return[...e,...t].join(",")}let ay='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ab=["content-length","content-type","accept"],aw=Symbol.for("sentry__originalRequestBody"),aS=!1,aA=!1;class a_{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:m=[],networkCaptureBodies:v=!0,networkRequestHeaders:y=[],networkResponseHeaders:b=[],mask:w=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:A=[],block:_=[],unblock:E=[],ignore:k=[],maskFn:x,beforeAddRecordingEvent:C,beforeErrorSampling:I,onError:T,attachRawBodyFromRequest:O=!1}={}){this.name="Replay";let R=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:av(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:av(t,[]),blockSelector:av(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:av(n,[]),ignoreSelector:av(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:A,block:_,unblock:E,ignore:k});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return o;let s=r.includes(t),a=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return s||a?o.replace(/[\S]/g,"*"):o})({maskAttributes:S,maskAllText:l,privacyOptions:R,key:e,value:t,el:r}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:g,networkDetailDenyUrls:m,networkCaptureBodies:v,networkRequestHeaders:aE(y),networkResponseHeaders:aE(b),beforeAddRecordingEvent:C,beforeErrorSampling:I,onError:T,attachRawBodyFromRequest:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ay}`:ay,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&nx())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return aS}set _isInitialized(e){aS=e}afterAllSetup(e){nx()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||aA)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[aw]=r.body),n};t.prototype=e.prototype,R.GLOBAL_OBJ.Request=t,aA=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
25startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},i=(0,eC.o)(r.replaysSessionSampleRate),o=(0,eC.o)(r.replaysOnErrorSampleRate);return null==i&&null==o&&(0,P.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=o&&(n.errorSampleRate=o),n}(this._initialOptions,e);this._replay=new am({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function aE(e){return[...ab,...e.map(e=>e.toLowerCase())]}globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE=void 0,globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="14.1.0",globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}',function(e){iC&&(0,P.Cf)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),iC=!0,!ro.X&&e.debug&&(0,P.Cf)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){e4.document&&function(e){let t=ii(e)||e,r=i_.get(t);if(void 0!==r)return r;let n=ir();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return i_.set(t,!1),!1;let i=n.isrRoutes.includes(t);return i_.set(t,i),i}(e4.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=e4.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let t={environment:e.environment||ix.env.SENTRY_ENVIRONMENT||function(e){let t=e?rs.env.NEXT_PUBLIC_VERCEL_ENV:rs.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=rn(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=n0({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){var i;if(!nX()&&(n&&(i=e,e4.document.getElementById("__NEXT_DATA__")?im.events.on("routeChangeStart",e=>{let t,r;let n=ty(e),o=function(e){let t=e4.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r=function(e){let t=e.split("/"),r="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}(t);return e.match(r)})}(n);o?(t=o,r="route"):(t=n,r="url"),n2(i,{name:t,attributes:{[X.$J]:"navigation",[X.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[X.Zj]:r}})}):function(e){e4.addEventListener("popstate",()=>{let t=is(e4.location.pathname),r=ii(t);il.current?.isRecording()?(il.current.updateName(r??t),il.current.setAttribute(X.Zj,r?"route":"url")):il.current=n2(e,{name:r??t,attributes:{[X.S3]:"auto.navigation.nextjs.app_router_instrumentation",[X.Zj]:r?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,r=0,n=setInterval(()=>{r++;let i=iu?.next?.router??iu?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,ih(e,i,il),["nd","next"].forEach(t=>{let r=iu[t];r&&(iu[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&ih(e,n,il),t[r]=n,!0)}))}))},20)}(i)),t.afterAllSetup(e),r))e4.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e;let t=e4.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{ro.X&&P.fF.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:o}=e;return r.route=n,r.params=i,o?.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}(),o=(0,nD.XM)(i),s=t||e4.location.pathname;o?.["sentry-transaction"]&&"/_error"===s&&(s=(s=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let a=(0,eE.Z1)();n1(e,{name:s,startTime:a?a/1e3:void 0,attributes:{[X.$J]:"pageload",[X.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[X.Zj]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}(e):function(e){let t=is(e4.location.pathname),r=ii(t),n=(0,eE.Z1)();n1(e,{name:r??t,startTime:n?n/1e3:void 0,attributes:{[X.$J]:"pageload",[X.S3]:"auto.pageload.nextjs.app_router_instrumentation",[X.Zj]:r?"route":"url"}})}(e)}}}());let r=iI._sentryRewriteFramesAssetPrefixPath||"",n=ix.env._sentryAssetPrefix||iI._sentryAssetPrefix,i=ix.env._sentryBasePath||iI._sentryBasePath,o="true"===ix.env._experimentalThirdPartyOriginStackFrames||"true"===iI._experimentalThirdPartyOriginStackFrames;return t.push(iS({assetPrefix:n,basePath:i,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:o})),t}(e),release:ix.env._sentryRelease||iI._sentryRelease,...e};(function(e){let t=iE.env._sentryRewritesTunnelPath||ik._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,ec.U4)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],o=n[2],s=`${t}?o=${i}&p=${r.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s,ro.X&&P.fF.log(`Tunneling events to "${s}"`)}else ro.X&&P.fF.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),L(t,"nextjs",["nextjs","react"]),t.ignoreSpans=[...t.ignoreSpans||[],/^\/404$/,RegExp(`^${ia}$`)],function(e){let t={...e};
25L(t,"react"),(0,D.v)("react",{version:ri.version}),function(e={}){let t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===e4.window||e4.nw)return!1;let e=e4.chrome||e4.browser;if(!e?.runtime?.id)return!1;let t=(0,e3.l4)();return!(e4===e4.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}(),r=null==e.defaultIntegrations?rn():e.defaultIntegrations;(function(e,t){!0===t.debug&&(N.X?P.fF.enable():(0,P.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,Z.nZ)().update(t.initialScope);let r=new e(t);(0,Z.nZ)().setClient(r),r.init()})(e7,{...e,enabled:!t&&e.enabled,stackParser:(0,et.Sq)(e.stackParser||t8),integrations:function(e){let t;let r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;return function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(t)}({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||rr})}(t)}(t);let r=(e,t)=>{var r;return(r=t?.originalException,(0,ek.VZ)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};r.id="NextRedirectErrorFilter",(0,D.Qy)(r)}({dsn:"https://3d6393e2cdeb6dd13a29dbc1a923663c@o4511304118239232.ingest.de.sentry.io/4511304120664144",ignoreErrors:["This preview token has expired","NEXT_REDIRECT","ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","NetworkError when attempting to fetch resource","The operation was aborted","Request aborted","Failed to fetch","Load failed","Object expected","Script error."],integrations:[new a_(void 0)],tracesSampleRate:1,enableLogs:!0,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,sendDefaultPii:!1,environment:"production"})},93809:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(98267).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98267:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51770:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(38754),r(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25780:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return i}});let n=r(51596);class i{get isEnabled(){return this._provider.isEnabled}enable(){if(!(0,n.staticGenerationBailout)("draftMode().enable()"))return this._provider.enable()}disable(){if(!(0,n.staticGenerationBailout)("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
25dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90919:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{headers:function(){return c},cookies:function(){return d},draftMode:function(){return p}});let n=r(9407),i=r(34042),o=r(80255),s=r(67714),a=r(93809),l=r(51596),u=r(25780);function c(){if((0,l.staticGenerationBailout)("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return i.HeadersAdapter.seal(new Headers({}));let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function d(){if((0,l.staticGenerationBailout)("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return n.RequestCookiesAdapter.seal(new o.RequestCookies(new Headers({})));let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=a.actionAsyncStorage.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function p(){let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new u.DraftMode(e.draftMode)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27651:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return i}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56612:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return g},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return u.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return y},useSelectedLayoutSegments:function(){return b},useSelectedLayoutSegment:function(){return w},redirect:function(){return c.redirect},permanentRedirect:function(){return c.permanentRedirect},RedirectType:function(){return c.RedirectType},notFound:function(){return d.notFound}});let n=r(67294),i=r(26216),o=r(50349),s=r(51770),a=r(48865),l=r(75160),u=r(50594),c=r(47573),d=r(29249),p=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[p][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[p]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function g(){(0,s.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new h(e):null,[e])}function m(){return(0,s.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(o.PathnameContext)}function v(){(0,s.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mou
25nted");return e}function y(){(0,s.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(i.GlobalLayoutRouterContext),t=(0,n.useContext)(o.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],i=Array.isArray(t),o=i?t[1]:t;!o||o.startsWith(l.PAGE_SEGMENT_KEY)||(i&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):i&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function b(e){void 0===e&&(e="children"),(0,s.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(i.LayoutRouterContext);return function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var s;let e=t[1];o=null!=(s=e.children)?s:Object.values(e)[0]}if(!o)return i;let u=o[0],c=(0,a.getSegmentValue)(u);return!c||c.startsWith(l.PAGE_SEGMENT_KEY)?i:(i.push(c),e(o,r,!1,i))}(t,e)}function w(e){void 0===e&&(e="children"),(0,s.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=b(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29249:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return i}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52445:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47573:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return u},redirect:function(){return c},permanentRedirect:function(){return d},isRedirectError:function(){return p},getURLFromRedirectError:function(){return f},getRedirectTypeFromError:function(){return h},getRedirectStatusCodeFromError:function(){return g}});let o=r(67714),s=r(93809),a=r(52445),l="NEXT_REDIRECT";function u(e,t,r){void 0===r&&(r=a.RedirectStatusCode.TemporaryRedirect);let n=Error(l);n.digest=l+";"+t+";"+e+";"+r+";";let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function c(e,t){void 0===t&&(t="replace");let r=s.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let r=s.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function p(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(o)&&o in a.RedirectStatusCode}function f(e){return p(e)?e.digest.split(";",3)[2]:null}function h(e){if(!p(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function g(e){if(!p(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=n||(n={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
25dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(98267).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48865:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90041:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(98267).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51596:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return u}});let n=r(27651),i=r(90041),o="NEXT_STATIC_GEN_BAILOUT";class s extends Error{constructor(...e){super(...e),this.code=o}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===o}function l(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let u=(e,t)=>{let{dynamic:r,link:o}=void 0===t?{}:t,a=i.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new s(l(e,{link:o,dynamic:null!=r?r:"error"}));let u=l(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(u);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50594:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(61757)._(r(67294)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},18729:function(e,t,r){"use strict";r.d(t,{v:function(){return n}});let n={get env(){let e="production";if(!e)throw Error("process.env.NEXT_PUBLIC_APP_ENV is undefined");return e},get org(){let e="astromat";if(!e)throw Error("process.env.NEXT_PUBLIC_APP_ORG is undefined");return e},get site(){return"web"}}},85564:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ee}});var n=r(85893);r(77512);var i=r(66008),o=r(67294),s=r(82010),a=r(22430),l=r(87462),u=r(71657),c=r(90068);let d=(e,t)=>(0,l.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),p=e=>(0,l.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),f=(e,t=!1)=>{var r;let n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{var i;n[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(i=r.palette)?void 0:i.mode}});let i=(0,l.Z)({html:d(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,l.Z)({margin:0},p(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n),o=null==(r=e.components)||null==(r=r.MuiCssBaseline)?void 0:r.styleOverrides;return o&&(i=[i,o]),i};var h=function(e){let{children:t,enableColorScheme:r=!1}=(0,u.Z)({props:e,name:"MuiCssBaseline"});return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)(c.Z,{styles:e=>f(e,r)}),t]})},g=r(50752);function m(e){let{children:t}=e,{swatches:r,swatchBlack:l}=(0,i.useGlobalConfig)(),u=(0,g.ZP)("dark",r),d=(0,g.ZP)("light",r),{resolvedTheme:p}=(0,s.F)(),[f,m]=(0,o.useState)(d);return(0,o.useEffect)(()=>m(p),[p]),(0,n.jsxs)(a.Z,{theme:"dark"===f?u:d,children:[(0,n.jsx)(h,{}),(0,n.jsx)(c.Z,{styles:{body:{backgroundColor:l[900]}}}),t]})}function v(e){let{children:t}=e;return(0,n.jsx)(s.f,{themes:["light","dark"],children:(0,n.jsx)(m,{children:t})})}var y=r(18729),b=r(84622),w=r(4298),S=r.n(w),A=r(14970),_=r(11163),E=r(39332);let k=e=>e.replace(/%3B/g,";"),x=e=>{let t;for(let r of e.split("; ")){let e=r.split("=");if("io.prismic.preview"===k(e[0]).replace(/%3D/g,"=")){t=k(e.slice(1).join("="));continue}}return t},C=e=>(decodeURIComponent(e).match(/"([^"]+)\.prismic\.io"/)||[])[1];function I({repositoryName:e,updatePreviewURL:t="/api/preview",exitPreviewURL:r="/api/exit-preview",isDraftMode:n}){let i,s=n,a=!0,l="";try{let e=(0,_.useRouter)();a=!1,l=e.basePath,s||(s=e.isPreview),i=()=>e.replace(e.asPath,void 0,{scroll:!1})}catch{i=(0,E.useRouter)().refresh}return(0,o.useEffect)(()=>{let n=async()=>{let e=l+t;(await globalThis.fetch(e)).redirected?i():console.error(`[<PrismicPreview>] Failed to start or update Preview Mode using the "${e}" API endpoint. Does it exist?`)},o=async e=>{e.preventDefault(),a?i():await n()},u=async e=>{e.preventDefault();let t=l+r;(await globalThis.fetch(t)).ok?i():console.error(`[<PrismicPreview>] Failed to exit Preview Mode using the "${t}" API endpoint. Does it exist?`)};if(window.addEventListener("prismicPreviewUpdate",o),window.addEventListener("prismicPreviewEnd",u),!s){let t=x(globalThis.document.cookie);if(t){let r=window.location.href.startsWith(window.location.origin+l),i=C(t);r&&i===e&&n()}}return()=>{window.removeEventListener("prismicPreviewUpdate",o),window.removeEventListener("prismicPreviewEnd",u)}},[l,r,a,s,i,e,t]),null}var T=Object.defineProperty,O=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>(O(e,"symbol"!=typeof t?t+"":t,r),r);
25class P extends Error{constructor(e="An invalid API response was returned",t,r){super(e),R(this,"url"),R(this,"response"),this.url=t,this.response=r}}let M=e=>/^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(e),L=e=>{if(M(e))return`https://static.cdn.prismic.io/prismic.js?new=true&repo=${e}`;throw new P(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)};function D({repositoryName:e,children:t,...r}){let i=L(e),o=!1;try{o=(0,A.draftMode)().isEnabled}catch{}return(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsx)(I,{repositoryName:e,isDraftMode:o,...r}),(0,n.jsx)(S(),{src:i,strategy:"lazyOnload"})]})}r(73422);var N=r(24139),j=r(56888),F=r(27037),U=r(7506),B=class extends U.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let n=t.queryKey,i=t.queryHash??(0,N.Rm)(n,t),o=this.get(i);return o||(o=new j.A({cache:this,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){F.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,N._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,N._x)(e,t)):t}notify(e){F.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){F.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){F.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=r(48907),q=r(72008),G=class extends $.F{#t;#r;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=(0,q.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let t="pending"===this.state.status,r=!this.#n.canStart();try{if(!t){this.#i({type:"pending",variables:e,isPaused:r}),await this.#r.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:r})}let n=await this.#n.start();return await this.#r.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#r.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#i({type:"success",data:n}),n}catch(t){try{throw await this.#r.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#i({type:"error",error:t})}}finally{this.#r.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
25case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),F.V.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}},z=class extends U.l{constructor(e={}){super(),this.config=e,this.#o=new Map,this.#s=Date.now()}#o;#s;build(e,t,r){let n=new G({mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){let t=H(e),r=this.#o.get(t)??[];r.push(e),this.#o.set(t,r),this.notify({type:"added",mutation:e})}remove(e){let t=H(e);if(this.#o.has(t)){let r=this.#o.get(t)?.filter(t=>t!==e);r&&(0===r.length?this.#o.delete(t):this.#o.set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#o.get(H(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#o.get(H(e))?.find(t=>
25t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){F.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#o.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,N.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,N.X7)(e,t))}notify(e){F.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return F.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(N.ZT))))}};function H(e){return e.options.scope?.id??String(e.mutationId)}var V=r(66474),J=r(14304);function Z(e){return{onFetch:(t,r)=>{let n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[],a={pages:[],pageParams:[]},l=0,u=async()=>{let r=!1,u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})},c=(0,N.cG)(t.options,t.fetchOptions),d=async(e,n,i)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let o={queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};u(o);let s=await c(o),{maxPages:a}=t.options,l=i?N.Ht:N.VX;return{pages:l(e.pages,s,a),pageParams:l(e.pageParams,n,a)}};if(i&&o.length){let e="backward"===i,t={pages:o,pageParams:s},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:W)(n,t);a=await d(t,r,e)}else{let t=e??o.length;do{let e=0===l?s[0]??n.initialPageParam:W(n,a);if(l>0&&null==e)break;a=await d(a,e),l++}while(l<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=u}}}function W(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var K=class{#a;#r;#l;#u;#c;#d;#p;#f;constructor(e={}){this.#a=e.queryCache||new B,this.#r=e.mutationCache||new z,this.#l=e.defaultOptions||{},this.#u=new Map,this.#c=new Map,this.#d=0}mount(){this.#d++,1===this.#d&&(this.#p=V.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onFocus())}),this.#f=J.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onOnline())}))}unmount(){this.#d--,0===this.#d&&(this.#p?.(),this.#p=void 0,this.#f?.(),this.#f=void 0)}isFetching(e){return this.#a.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let r=this.defaultQueryOptions(e),n=this.#a.build(this,r);return e.revalidateIfStale&&n.isStaleByTime((0,N.KC)(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return this.#a.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),i=this.#a.get(n.queryHash),o=i?.state.data,s=(0,N.SE)(t,o);if(void 0!==s)return this.#a.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return F.V.batch(()=>this.#a.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state}removeQueries(e){let t=this.#a;F.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#a,n={type:"active",...e};return F.V.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){let r={revert:!0,...t};return Promise.all(F.V.batch(()=>this.#a.findAll(e).map(e=>e.cancel(r)))).then(N.ZT).catch(N.ZT)}invalidateQueries(e={},t={}){return F.V.batch(()=>{if(this.#a.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){let r={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(F.V.batch(()=>this.#a.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(N.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}
25))).then(N.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#a.build(this,t);return r.isStaleByTime((0,N.KC)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(N.ZT).catch(N.ZT)}fetchInfiniteQuery(e){return e.behavior=Z(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(N.ZT).catch(N.ZT)}ensureInfiniteQueryData(e){return e.behavior=Z(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return J.N.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#a}getMutationCache(){return this.#r}getDefaultOptions(){return this.#l}setDefaultOptions(e){this.#l=e}setQueryDefaults(e,t){this.#u.set((0,N.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#u.values()],r={};return t.forEach(t=>{(0,N.to)(e,t.queryKey)&&(r={...r,...t.defaultOptions})}),r}setMutationDefaults(e,t){this.#c.set((0,N.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#c.values()],r={};return t.forEach(t=>{(0,N.to)(e,t.mutationKey)&&(r={...r,...t.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#l.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,N.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===N.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#l.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#a.clear(),this.#r.clear()}},Q=r(30202);let X=new K;function Y(e){let{Component:t,pageProps:r,env:o,org:s,site:a}=e;return(0,n.jsx)(i.r,{env:o,org:s,site:a,children:(0,n.jsx)(Q.aH,{client:X,children:(0,n.jsx)(v,{children:(0,n.jsx)(D,{repositoryName:"astromat",children:(0,n.jsx)(t,{...r})})})})})}Y.getInitialProps=()=>({env:y.v.env,org:y.v.org,site:y.v.site});var ee=(0,b.Jc)(Y)},66008:function(e,t,r){"use strict";r.d(t,{r:function(){return a},useGlobalConfig:function(){return l}});var n=r(85893),i=r(80104),o=r(67294);let s=(0,o.createContext)();function a(e){var t;let{children:r,env:o,org:a,site:l}=e,{environment:u,orgDetails:c,menu:d,map:p,search:f}=(0,i.h)(o,a,l),h=c.swatches.primary,g=c.swatches.black,m=c.swatches,v=(null==f?void 0:null===(t=f.synthesis)||void 0===t?void 0:t.urlSlug)?f.synthesis.urlSlug:"synthesis";return u?console.info("[client] Using environment:",o):console.warn("Config is undefined!",{config:u}),(0,n.jsx)(s.Provider,{value:{env:o,org:a,site:l,config:u,menu:d,search:f,map:p,orgDetails:c,swatchPrimary:h,swatchBlack:g,swatches:m,synthesisUrlSlug:v},children:r})}function l(){return(0,o.useContext)(s)}},80104:function(e,t,r){"use strict";r.d(t,{h:function(){return T}});let n={25:"#FCFDFD",50:"#FAFBFB",100:"#F3F4F4",200:"#EDEDED",300:"#DFE0E0",400:"#BCBEBE",500:"#9C9E9F",600:"#737676",700:"#5E6262",800:"#3E4243",900:"#191E1F",950:"#161819",A100:"#D5D5D5",A200:"#AAAAAA",A400:"#616161",A700:"#303030"};var i={src:"/_next/static/media/nsf-logo.bda0bf7c.png",height:250,width:248,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABC0lEQVR42mO4e6SChQEIPl/KVHtxItXr2ZEwn5dHnTRAYtf3pILlGB6dqPLYtmnBqto52+7Xzdtxb9Pa6WuvbffzAku+vZCjuXPj7HVZc87/Z1hw77/h8of/U2ad+b92Uce6xwfNNRnOrNH0X7x0zYNl++/9n7D//p8Zx5/+2Xj0wf/ps1c+OruaIYDh0npl//yi5oe98w//X3bg9p8FO6/9WbTp/P/aukmPTyxlCGS4sVVPY2578FoGneb/Zkkr/zO4zfnPYNf2f3pj8PoLaxi0wO44tULHY06zx9qclIIHeamFD6Y3eKw/ukQN4siTKyzAXrm6SVf93BpV77OrtXwvrFPXAMstk2YBAHVUgjkDRQ/IAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};let o={25:"#FBF9F9",50:"#F8F4F4",100:"#ECE8E8",200:"#ddd9d8",300:"#c8c4c3",400:"#a29e9d",500:"#7f7c7b",600:"#595655",700:"#474443",800:"#292726",900:"#060100",950:"#060100"},s={25:"#FCFDFD",50:"#FAFBFB",100:"#F3F4F4",200:"#EDEDED",300:"#DFE0E0",400:"#BCBEBE",500:"#9C9E9F",600:"#737676",700:"#5E6262",800:"#3E4243",900:"#191E1F",950:"#161819",A100:"#D5D5D5",A200:"#AAAAAA",A400:"#616161",A700:"#303030"},a={25:"#FBFBFD",50:"#F5F5F9",100:"#EAEAEE",200:"#DBDBDF",300:"#C6C7CA",400:"#A1A1A4",500:"#7F7F82",600:"#58585C",700:"#464649",800:"#29292C",900:"#05050A",950:"#020205",A100:"#D5D5D5",A200:"#AAAAAA",A400:"#616161",A700:"#303030"};var l=r(2548),u=r(95602),c=r(2384),d=r(61377);let p={mainNav:[{site:"web",path:"/about",key:"about.title",icon:l.Z,children:[{site:"web",path:"/about/overview",key:"about.overview"},{site:"web",path:"/about/funders-and-partners",key:"about.fundersAndPartners"}
25,{site:"web",path:"/about/people",key:"about.people"},{site:"web",path:"/about/statistics",key:"about.statistics"},{site:"web",path:"/about/contact",key:"about.contact"},{site:"web",path:"/legal/terms-of-use",key:"about.termsOfUse"}]},{site:"web",path:"/services",key:"services.title",icon:c.Z,children:[{site:"web",path:"/services/overview",key:"services.overview"},{site:"web",path:"/services/register-sample-metadata",key:"services.registerSampleMetadata"},{site:"web",path:"/sesar/sample-search",key:"services.searchForSamples"},{site:"external",path:"https://docs.geosamples.org/api",key:"services.restApi",external:!0}]},{site:"web",path:"/news",key:"about.news",icon:d.Z},{site:"web",path:"/resources",key:"resources.title",icon:u.Z,children:[{site:"external",path:"https://docs.geosamples.org/",key:"resources.sesarUserManual",external:!0},{site:"web",path:"/resources/help",key:"resources.faqs"},{site:"web",path:"/resources/igsn-ids",key:"resources.aboutIgsnIds"}]}]};var f=r(63811);let h={mainNav:[{site:"web",path:"/about",key:"about.title",icon:l.Z,children:[{site:"web",path:"/about/action2sustain",key:"about.action2sustain"},{site:"web",path:"/about/mission-and-scope",key:"about.missionAndScope"},{site:"web",path:"/about/team",key:"about.team"},{site:"web",path:"/about/community-advisory-board",key:"about.communityAdvisoryBoard"},{site:"web",path:"/about/collaborations",key:"about.collaborations"}]},{site:"web",path:"/services",key:"services.title",icon:u.Z,children:[{site:"web",path:"/services/data-access",key:"services.dataAccess"},{site:"web",path:"/services/data-publishing",key:"services.dataPublishing"},{site:"web",path:"/services/educational-materials",key:"services.educationalMaterials"},{site:"web",path:"/services/physical-samples",key:"services.physicalSamples"}]},{site:"web",path:"/communities",key:"communities.title",icon:f.Z,children:[{site:"web",path:"/communities/framework-for-fair-data-communities",key:"communities.frameworkForFAIR"},{site:"web",path:"https://www.earthchem.org/communities/",key:"communities.earthchem"},{site:"web",path:"/communities/tephra",key:"communities.tephra"}]}]};var g=r(1900),m=r(69736);let v={q:m.y8,page:g.U.withDefault(1),page_size:g.U.withDefault(15),availableForDownload:g.AE,ordering:g.Oi.withDefault("-created_at"),doi:m.y8,title:m.y8,author:m.y8,contributor:m.y8,doiStatus:g.Oi.withDefault("findable"),instrument:m.y8,laboratory:m.y8,mission:m.y8,processStatus:g.Oi.withDefault("Calibration and Validation||Published"),generalType:g.Oi.withDefault("Dataset||Collection"),sample:m.y8,session:m.y8,technique:m.y8},y={sampleCollections:m.y8,expeditions:m.y8,sampleNames:m.y8,citationTitles:m.y8,authors:m.y8,journals:m.y8,laboratories:m.y8,dataSources:m.y8,analysisTypes:m.ML,geoFeatures:m.ML,taxons:m.zA,variables:m.ML,afterKey:g.Oi,size:g.U.withDefault(10),outputVariables:m.ML},b={synthesis:{schema:y,serialize:(0,g.Qx)(y),defaultQuery:{page_size:10},locationSearchEnabled:!1,showExternalLinks:!0,filters:{analyticalFeatures:[{id:"analysisTypes",type:"multi_select",subValues:!0,swatch:"triadic"},{id:"variables",type:"multi_select",subValues:!0,swatch:"triadicAlt",i18nRoot:"variables",preserveDisplayCase:!0}],sampleFeatures:[{id:"geoFeatures",type:"multi_select",subValues:!0,swatch:"complementary"},{id:"taxons",type:"multi_select",subValues:!0,swatch:"analogous",preserveDisplayCase:!0}],additionalLookups:[{id:"sampleCollections",type:"multi_select"},{id:"expeditions",type:"multi_select"},{id:"sampleNames",type:"multi_select",preserveDisplayCase:!0},{id:"citation",type:"matrix_select",filters:[{id:"authors"},{id:"citationTitles",preserveDisplayCase:!1},{id:"journals"}]},{id:"sources",type:"matrix_select",filters:[{id:"dataSources",preserveDisplayCase:!1},{id:"laboratories"}]}]},metaColumns:{default:["citation","sampleType","sampleSubType","analyzedMaterialName","mineralName","inclusionType"],excludeFromPreviewMetadataTable:["sample","sample_url","citation_url","analysisActionDescription"]},exportLimits:{excelMax:1e4,browserMax:4e4,orgMax:4e4},exportFormats:["csv","json"],searchLimits:{largeCategoryValuesThreshold:4e6}},archive:{schema:v,serialize:(0,g.Qx)(v),omitFromFiltersDisplayTags:["page","processStatus","generalType","doiStatus","ordering","page_size","availableForDownload"],defaultUIPreferences:{density:"standard"},filters:{doiLookup:[{id:"doi",type:"multi_select",preserveDisplayCase:!0}],main:[{id:"title",type:"multi_select",preserveDisplayCase:!0},{id:"authorContributor",type:"matrix_select",filters:[{id:"author",preserveDisplayCase:!0},{id:"contributor",preserveDisplayCase:!0}]},{id:"mission",type:"multi_select",preserveDisplayCase:!0},{id:"sample",type:"multi_select",preserveDisplayCase:!0},{id:"instrumentTechnique",type:"matrix_select",filters:[{id:"instrument",preserveDisplayCase:!0}
25,{id:"technique",preserveDisplayCase:!0}]},{id:"laboratorySession",type:"matrix_select",filters:[{id:"laboratory",preserveDisplayCase:!0},{id:"session",preserveDisplayCase:!0}]}],viewOptions:[{id:"generalType",labelKey:"dataAccess",type:"button_group",preserveDisplayCase:!0,options:[{labelKey:"all",value:"Dataset||Collection"},{labelKey:"dataset",value:"Dataset"},{labelKey:"collection",value:"Collection"}]},{id:"availableForDownload",type:"checkbox",preserveDisplayCase:!0,options:{true:!0,false:null,labelKey:"excludeEmbargoedDatasets"}}]},disabledFilterTags:[]}};g.Oi,g.U.withDefault(1),g.U.withDefault(15),g.Oi.withDefault("-created_at"),g.Oi,g.Oi,g.Oi.withDefault("findable"),g.Oi,g.Oi,g.Oi,g.Oi.withDefault("Calibration and Validation||Published"),g.Oi,g.Oi,g.Oi;let w={sampleCollections:m.y8,expeditions:m.y8,sampleNames:m.y8,citationTitles:m.y8,authors:m.y8,journals:m.y8,laboratories:m.y8,dataSources:m.y8,analysisTypes:m.ML,tectonicSettings:m.y8,geoFeatures:m.ML,taxons:m.zA,variables:m.ML,afterKey:g.Oi,size:g.U.withDefault(10),polygons:m.C2,outputVariables:m.ML},S={tephraVolcanoSources:m.y8,tephraLayers:m.y8,taxons:m.ML,variables:m.ML,polygons:m.C2,afterKey:g.Oi,size:g.U.withDefault(10)},A={synthesis:{urlSlug:"petdb",schema:w,serialize:(0,g.Qx)(w),defaultQuery:{page_size:10},locationSearchEnabled:!0,showExternalLinks:!1,filters:{analyticalFeatures:[{id:"analysisTypes",type:"multi_select",subValues:!0,swatch:"triadic"},{id:"variables",type:"multi_select",subValues:!0,swatch:"triadicAlt",preserveDisplayCase:!0,i18nRoot:"variables"},{id:"laboratories",type:"multi_select"}],sampleFeatures:[{id:"geoFeatures",type:"multi_select",subValues:!0,swatch:"complementary",dataKey:"sampleGeoFeatures",i18nRoot:"geoFeatures"},{id:"tectonicSettings",type:"multi_select",dataKey:"sampleGeologicSettings"},{id:"taxons",type:"multi_select",subValues:!0,swatch:"analogous",dataKey:"sampleTaxons"},{id:"location",type:"location_options",filters:[{id:"polygons",locationFilter:!0}]}],additionalLookups:[{id:"expeditions",type:"multi_select",dataKey:"sampleExpedition",preserveDisplayCase:!0},{id:"sampleNames",type:"multi_select",preserveDisplayCase:!0},{id:"authors",type:"multi_select"},{id:"titleJournal",type:"matrix_select",filters:[{id:"citationTitles",preserveDisplayCase:!1},{id:"journals"}]},{id:"dataSources",type:"multi_select",preserveDisplayCase:!0}]},metaColumns:{default:["citation","sampleType","sampleSubType","analyzedMaterialName","mineralName","inclusionType","latitude","longitude"],excludeFromPreviewMetadataTable:["sample","sample_url","citation_url","analysisActionVariables","analysisActionDescription"]},exportLimits:{excelMax:1e4,browserMax:4e4,orgMax:3e5},exportFormats:["csv","json","excel"],searchLimits:{largeCategoryValuesThreshold:4e6}},tip:{schema:S,serialize:(0,g.Qx)(S),defaultQuery:{page_size:10},locationSearchEnabled:!0,sources:{volcano:{enabled:!0,swatch:"secondary"},petdb:{enabled:!0,swatch:"primary",sampleUrlBase:"/petdb/sample/",dataTable:{collapseMetadataDefault:!0}},tephrabase:{enabled:!0,swatch:"analogous",dataTable:{collapseMetadataDefault:!1}},geodiva:{enabled:!0,swatch:"complementary",dataTable:{collapseMetadataDefault:!0}}},filters:{petdb:[{id:"variables",type:"multi_select",subValues:!0,preserveDisplayCase:!0,i18nRoot:"variables"},{id:"tephraLayers",type:"multi_select",preserveDisplayCase:!0,i18nRoot:"tephraLayer"},{id:"taxons",type:"multi_select",subValues:!0,dataKey:"sampleTaxons"}],shared:[{id:"tephraVolcanoSources",type:"multi_select",preserveDisplayCase:!0,i18nRoot:"volcanoName",displaySourceKey:!0},{id:"polygons",type:"location_options",locationFilter:!0,displaySourceKey:!0}]},metaColumns:{default:["sampleType","sampleSubType","analyzedMaterialName","latitude","longitude"],excludeFromPreviewMetadataTable:[]},exportLimits:{excelMax:1e4,browserMax:4e4,orgMax:3e5},exportFormats:["csv","json","excel"]}},_={mercatorPointsSourceId:"mercator-point-source",northPolePointsSourceId:"north-point-source",southPolePointsSourceId:"south-point-source",mercatorId:"mercator-wms-source",northPoleId:"north-pole-wms-source",southPoleId:"south-pole-wms-source",mercatorGridLinesId:"mercator-grid-lines",MercatorGridLabelsId:"mercator-grid-labels",northExtent:[-5e6,-5e6,5e6,5e6],southExtent:[-5e6,-5e6,5e6,5e6],lonlatCode:"4326",mercatorCode:"3857",northCode:"3995",southCode:"3031",lonLatProjection:"EPSG:4326",mercatorProjection:"EPSG:3857",northProjection:"EPSG:3995",southProjection:"EPSG:3031",polarBound:70,clampBound:85.051129,key:{default:{shape:"circle",swatch:"primary",keyFillSwatch:"primary.light",keyBorderSwatch:"panel.primary.border"},shared:{shape:"circle",swatch:"secondary",keyFillSwatch:"panel.secondary.c
25olorSecondary",keyBorderSwatch:"panel.secondary.border"},volcano:{shape:"triangle",swatch:"secondary",keyFillSwatch:"panel.secondary.colorSecondary",keyBorderSwatch:"panel.secondary.border",pointsOpaqueFill:!0},petdb:{shape:"circle",swatch:"primary",keyFillSwatch:"primary.light",keyBorderSwatch:"panel.primary.border"},tephrabase:{shape:"circle",swatch:"analogous",keyFillSwatch:"panel.analogous.colorSecondary",keyBorderSwatch:"panel.analogous.border"},geodiva:{shape:"circle",swatch:"complementary",keyFillSwatch:"panel.complementary.colorSecondary",keyBorderSwatch:"panel.complementary.border"}}},E={astromat:{orgName:"Astromat",orgTagline:"Astromaterials Data System",logo:{src:"/_next/static/media/astromat-logo.edd27a5b.png",height:272,width:392,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAQAAABUDBdwAAAAcUlEQVR42gFmAJn/ALoDQAAAACIAAACXV0FXyQAAuz0AYx7TFaUACLovqi/bgAAAVFX/Uf8d/yad4WDWmsE1AAaXAP+o94X/SOoAEcdXvikAAGBU//f7wf8AvQAAQB5uIwASAACZkv9v3AAoAAAAA/8AQ48l4VqkXgEAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},favicon:{src:"/_next/static/media/astromat-favicon.fd788a5f.png",height:1e3,width:1e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABA0lEQVR42hWLQUvCcADFn0rHsEiIIu0QhHgJ6uaCoBpBE2anIiIqipAIdCWstWQHIbbhR+iU1xYdDKEvoKAfY2T3XTb48/L/4Hd4vPcD/ogpGTRfnfy1Mc5e1kfLT17rjUwDMmRm03B+ijsqZcvOpDi3VSYuGv2ePEmzrFVp3N/Fnu+LfVUVG/lcfHhyRjTaNuav6mMA0ha6rlNRFGqVivA9j9DOhyjcPIxWFnPUq0ciDEMmSULbfhFSKt4+DrBud1oolOg8W/HvZCKiKBJfwUcCLLFkdyw0yXS2ZvYxu8pu952fQcC17V0u1MzeN5mCS0rSOdO1sXc8xMHpAEbbcuUI4B8MDnlrzjNXNwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},shareIcon:{src:"/_next/static/media/astromat_shareicon.284eba9c.png",height:312,width:312,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAyElEQVR42mMQ5hcSYWNnYGDQMDZX1jEAMgT5hXn5RBmE2LmYuIWTS6uyKmqL6lsSiiqAcqJi0gxAkFZeU1nfEBrgD2TnllbEFZYzAIG+sUVRfTOQkZ2T4+3rm5mWWtbayaNvxuBjY17a0AKUuHnz5osXL9SkRPLqWxl0rRiC1Blq62qScgu2bdmyb8+e0rrGkLwyBkYlBntjnQhvk+SKqvyGlrz6lsDcMgYtaxETJwZdbR0/D2sONRU1J1cZBw8GYycRS3duQxcA/rQ10+g+/VUAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},logoArt:{src:"/_next/static/media/astromat_logoArt.845c292e.png",height:120,width:120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAAUElEQVR42mNgYGBgZeIXZmIQ8fRVF+NkYGBgdyqYHs5QoM3AwMDA4cYwz4FBlCHh7Z+pDAIMXAyLXn29wSDCwMfgc/ZSpRQDA5AVXcTAwA4AskQOcqHQpVcAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},background:{src:"/_next/static/media/astromat_footer_bg.a6f6ea8d.jpg",height:1092,width:3200,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAMACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABgEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAIwUf//EABwQAAEDBQAAAAAAAAAAAAAAAAIAAQQDEhQiI//aAAgBAQABPwCpCivk8Q0EbV//xAAYEQACAwAAAAAAAAAAAAAAAAAAAQJCcv/aAAgBAgEBPwCVMI//xAAZEQABBQAAAAAAAAAAAAAAAAACAAMRIVP/2gAIAQMBAT8AYsTnQl//2Q==",blurWidth:8,blurHeight:3},backgroundDescription:"The Bubble Nebula (NGC 7635) observed by the NASA/ESA Hubble Space Telescope.",synthesisLanderBackground:{src:"/_next/static/media/astromat_synthesis_lander_bg.3b49107c.jpg",height:1440,width:2620,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAQACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABwEBAQAAAAAAAAAAAAAAAAAAAgP/2gAMAwEAAhADEAAAAJmKj//EABkQAAIDAQAAAAAAAAAAAAAAAAECAAMRIf/aAAgBAQABPwBnNVYVMGp0z//EABYRAAMAAAAAAAAAAAAAAAAAAAABQf/aAAgBAgEBPwCI/8QAFhEBAQEAAAAAAAAAAAAAAAAAAQAx/9oACAEDAQE/AHW//9k=",blurWidth:8,blurHeight:4},mainEmail:"[email protected]",copyright:"Astromaterials Data System.",contactPage:"https://astromat.org/about/contact",privacyPolicy:"https://astromat.org/legal/privacy-policy/",termsOfUse:"https://astromat.org/legal/terms-of-use/",feedbackLink:"https://forms.clickup.com/8564
25683/f/85byb-1190/ZV9NZD4GIZR2QOS09U",social:{bluesky:{handle:"astromat.bsky.social"}},funder:{logo:{src:"/_next/static/media/nasa-logo.92e22c46.png",height:400,width:400,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA4klEQVR42mNg0OtlYoCDel6LmLksDOggMnMBr4X/tEVWAdOeyTlNusfgMSfv/771TH8shFUZIKB9k4b/jP/8ntP+M9hO/J/JVPn/upTTgv+xDKIMDAyJKpNn7/61eN6uf+vnbf97YvaaX7dmL/s/s23FQQYQCGLw05s5ceOflfN2/j2ybv/fVTM2/5q18tj/1qk7jzDAAXf7Fm/llv/ejn3/GWwm/Ze2n/SfgaE9GS5/Nypdwsdz4hIG20nP5B0m3tPznFIIkcliZOixqoF7M9Z3Ah/QBFYGIMiuXMXIwMDAAAAth1cM3d89EwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},link:"https://curator.jsc.nasa.gov/",description:"NASA"},host:{logo:null,link:"https://www.ldeo.columbia.edu/",description:"LDEO of Columbia University"},endorsements:[{name:"CoreTrustSeal",logo:{src:"/_next/static/media/CoreTrust_color.7f557817.png",height:152,width:166,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAA5ElEQVR42mMAgYqiInUg9qgqLtIF0jrlRUXudSWFUmDJsqJihcS8sizjzGr3wOyK0LjcsqzAnMrIoJxKJwbnKTwM0bkVdntaIt0PtYY3bWyIL19Wm1K8szm6+uEEO+Or3Z4eDPaZ1Rb/5zEo/5ohVvl/FkPR/7kMsUA6+cd0SZ+f08T6GAoKS+xyC0pcsgtKmqqLC4vzCoprHvTZ5/6aJlL1ZYpyMENhYYlCfmFJNFDCtqiwWJshuUHnZHuQ949pklufTzZlYwCBgsJiZaBCm8LCYk2go/Xi88qNPk1X52FgYGAAAN8PWRr39oKPAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:7},link:"https://www.coretrustseal.org",description:"certifiedBy"},{name:"World Data System",logo:{src:"/_next/static/media/WorldData_color.8d722869.png",height:152,width:166,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAAyElEQVR42mMAA71kJgYk8GO+yuwf8xQ7wBxhqzSwpGtwsTaDRUHWo+lOzX8Xiv//NV/uIFyHgXOmEod99gZL17QNPxdpr78/yfrOvSmOtnAFun6lAdI26ecZLNIOMJimrGIwzg5hYKgWgitQds3zl7DN6DX0K7ZWdi8IDUltFY9KqFLSC6mWY/CKb2PU8i4SsI1tkjSPrFOzjqyzNAup9DYLrfI3Ca2yYTAMrowxDKkOB2JP09BqU+PgSi+z8Bpv07DaYOPQaj8AGZI+JzYCNr0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:7},link:"https://worlddatasystem.org",description:"regularMemberOf"},{name:"OneGeochemistry",logo:{src:"/_next/static/media/OneGeochemistry_color.821bbb14.png",height:153,width:153,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABE0lEQVR4nAEIAff+AVZQVkmqsKrS5noAMAIfLEGG+GLokgQU4pkmHLnb8/fxAQAAAC+IiY4NPzs2lwwODxQAAgP41eLkxIna4MJYJiOrAQAAADjJycqwDQ0NFwoLDAD//PoA+/z8AM7e4qF73OK3AcXFx3H19fWOHh0c+gEFBgUCrkn9ATOFBPMZL9dut7qTAcnJyn4KCQmB8fb5/RgA8gMVwkL/4AJIAftAhd6W0tmVAb6+wL4ZGRdB+v3//PLf1QGfvbn9OEFSBi4SDcE4scJ9Aaqqrf8DAwIAHRwbAPwEBgDL2t0ANCAb27KvtViJioPrAcbGyIjZ2dp39/f4rD88OcX99/bwLjc3zgAAKAZNTzESzkB7BFZekjsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},link:"https://onegeochemistry.github.io",description:"memberOf"}],sites:{web:{baseUrl:"https://astromat.org"},archive:{baseUrl:"https://ada.astromat.org"},synthesis:{baseUrl:"https://search.astromat.org",stage:"Beta",version:"3.1.3"},desk:{baseUrl:"https://desk.astromat.org"},sample:{baseUrl:"https://sample.astromat.org"},reference:{baseUrl:"https://ref.astromat.org"},repo:{baseUrl:"https://repo.astromat.org"},search:{baseUrl:"https://astromat.org"}},data:{api:"https://api.astromat.org",userPostgrest:"https://postgrest.astromat.org",nasaCurator:"https://curator.jsc.nasa.gov"},pagesApiVersion:"v5",searchApiVersion:"v5",apiVersion:"v5",doiDefaults:{version:"1.0",publisher:{name:"Astromaterials Data Archive",url:"https://www.astromat.org/"},licence:{shortIdentifier:"CC0-1.0",link:{cc:"https://creativecommons.org/publicdomain/zero/1.0/",spdx:"http://spdx.org/licenses/CC0-1.0"}}},mailchimp:{audienceId:"6eb27851e1",apiServer:"us20"},contentOptions:{showSampleSearchOnLander:!0},swatches:{primary:{25:"#F3FAFB",50:"#E6F4F7",100:"#DDF0F4",200:"#BAE1E9",300:"#75C4D2",400:"#30A6BC",500:"#199CB4",600:"#19899E",700:"#197D8F",800:"#196A78",900:"#19505B",950:"#142528",A100:"#C0F5FF",A200:"#B3F3FF",A400:"#62E8FF",A700:"#00B0CE"},black:n,secondary:n,complementary:{25:"#FDF5F5",50:"#fcebec",100:"#f7ccce",200:"#e29994",300:"#d3746c",400:"#d95848",500:"#da4c2f",600:"#cc432e",700:"#bb3a29",800:"#ae3523",900:"#9e2d19",950:"#571F15"},analogous:{25:"#F2FAF6",50:"#e5f5ee",100:"#c1e5d5",200:"#99d5bb",300:"#6ec6a1",400:"#4bb98e",500:"#1ead7b",600:"#199e6f",700:"#148c62",800:"#0E6D4C",900:"#145b3f",950:"#123628"},triadic:{25:"#F6F3FB",50:"#eee7f7",100:"#d2c4ec",200:"#b59de0",300:"#9775d5",400:"#8057cb",500:"#6839c2",600:"#5f34bb",700:"#512cb2",800:"#4426ab",900:"#2d199e",950:"#1F1557"},triadicAlt:{25:"#FCF1F9",50:"#fae4f4",100:"#f1bbe3",200:"#e78dd2",300:"#dc5ac0",400:"#d227b3",500:"#c700a6",600:"#b900a2",700:"#a6009c",800:"#960097",900:"#77008c",950:"#44084E"}}},earthchem:{orgName:"EarthChem",orgTagline:"Search. Synthesize. Contribute.",logo:{src:"/_next/static/media/earthchem-logo.0545c54f.png",height:500,width:500,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAgUlEQVR42mPYzMjAwMBgydTLygADq7n+8
25jAwMDCc91xoycDHwMDIwKCSwnCeYdpmk+XqDGApzriXbf+X/2fIZGD4z8jAwMDAcOfui/8v/h+JYmDYyM3AwLBUYnPKjnW7ShgiSiL+MzEwsBTK/GdmYGBgYFBgEGCAgessG8HW5jIBAHylIIRqKbVQAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},favicon:{src:"/_next/static/media/earthchem-favicon.94b0fbf7.png",height:300,width:300,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA8UlEQVR42mMAgf8+jiw1suKNKaICZ1MlRc/WqcjX/3czZoJISjKw5CvK7bGQlvrPKSz8n4GT878eUDhfVWnnfwYGJoYGXc1GZQYGIJvhJxD/BWMenp/CQLFGQ71ahmAGhrNOrq7/29ra/lpaWf2/cePG/1cvX/61ALKBcicZ8kyMzj5+8uQ/EPz99u3bfyj4+wQoVuxof5Khw8mh/uLZs/8fPn7888yZM3+PHTv698r1679OHD78v9PdrZoBCJjaoyJ3blq79v/x48f/nwEq3rV16//+9LRtQDlGBihgajTQrV3Q0nxyXlPjyUYj/WqYJACo1na8gCxpkAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},shareIcon:{src:"/_next/static/media/earthchem_shareicon.cf79fa83.png",height:312,width:312,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAy0lEQVR42mMQEVHgF1ViYGDQUdJWl9NkYGBikNGzADJ4hWRYGLjLMjNri4vqS0sLUlI1GTjjdDQYgKAkLS0iKJABDOIjIxqSE8M5GBh0FVTKcrKzc3Ozs7IuXbo0c/bskqSEKC1VBiBYNHv2r9+/3759++3bty9fvs7o7XFiYGAwYGBozMk+fuTIocOHgejA3r3l0ZEh4lwMwTpa7gwMZVERi2fNXDRzZn5osL8QQ7SpHoOHjoaLtoYmK7MeA4MbP4OLhoKTgZ6niT4Adec/SBsfqN0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},logoArt:{src:"/_next/static/media/earthchem_Logoart.7b8e0756.png",height:120,width:120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAATklEQVR42mMAAXZRECkpJszCIMnAIMfAwMCQxiDFwFBXoXT1/0wGhtn////4////SoZdXx9ePn3lyXYGhrU7t+7Zt5WBgcFy+oFDi5wYAIjkGfOy0jrzAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},background:{src:"/_next/static/media/earthchem_footer_bg.bfcf6411.jpg",height:1092,width:3200,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAMACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABgEBAQAAAAAAAAAAAAAAAAAABAX/2gAMAwEAAhADEAAAAJoAq//EABoQAAICAwAAAAAAAAAAAAAAAAECAAMEBSH/2gAIAQEAAT8A1+NQQwNSkKnBP//EABYRAAMAAAAAAAAAAAAAAAAAAAACMf/aAAgBAgEBPwBqf//EABURAQEAAAAAAAAAAAAAAAAAAAAB/9oACAEDAQE/AI//2Q==",blurWidth:8,blurHeight:3}
25,backgroundDescription:"EarthChem Background Image",synthesisLanderBackground:{src:"/_next/static/media/earthchem_synthesis_lander_bg.5026a24b.jpg",height:1440,width:2620,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAQACAMBIgACEQEDEQH/xAAnAAEBAAAAAAAAAAAAAAAAAAAAAgEBAAAAAAAAAAAAAAAAAAAABP/aAAwDAQACEAMQAAAAsHR//8QAHBAAAgICAwAAAAAAAAAAAAAAAQIDIQAEEzFB/9oACAEBAAE/AJYVXShTzicWq2FTo1Yz/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAJB/9oACAECAQE/AFp//8QAFhEAAwAAAAAAAAAAAAAAAAAAAAFB/9oACAEDAQE/AHD/2Q==",blurWidth:8,blurHeight:4},mainEmail:"[email protected]",contactPage:"https://www.earthchem.org/about/contact/",privacyPolicy:"https://earthchem.org/legal/privacy-policy/",termsOfUse:"https://earthchem.org/legal/terms-of-use/",feedbackLink:"https://forms.clickup.com/8564683/f/85byb-4071/YWLBH4ND9RQT5I3QKX",copyright:"EarthChem.",social:{facebook:{url:"https://www.facebook.com/EarthChem"}},funder:{logo:i,link:"https://nsf.org",description:"US National Science Foundation (NSF)"},host:{logo:null,link:"https://www.ldeo.columbia.edu/",description:"Lamont-Doherty Earth Observatory of Columbia University"},sites:{web:{baseUrl:"https://www.earthchem.org"},archive:{baseUrl:"https://ecl.earthchem.org/search.php"},synthesis:{baseUrl:"https://search-staging.earthchem.org",stage:"Beta",version:"4.0"},desk:{baseUrl:"https://desk.earthchem.org"},sample:{baseUrl:"https://sample.earthchem.org"},reference:{baseUrl:"https://ref.earthchem.org"},repo:{baseUrl:"https://repo.earthchem.org"},search:{baseUrl:"https://earthchem.org"},library:{baseUrl:"https://earthchem.org"}},data:{api:"https://api.earthchem.org",userPostgrest:"https://postgrest.earthchem.org",nasaCurator:"https://curator.jsc.nasa.gov"},pagesApiVersion:"v5",searchApiVersion:"v5",apiVersion:"v5",doiDefaults:{version:"1.0",publisher:{name:"EarthChem Library",url:"https://www.earthchem.org/"},licence:{shortIdentifier:"CC0-1.0",link:{cc:"https://creativecommons.org/publicdomain/zero/1.0/",spdx:"http://spdx.org/licenses/CC0-1.0"}}},mailchimp:{audienceId:"c894168f53",apiServer:"us20"},pages:{otherMetadata:"tephra"},contentOptions:{showSampleSearchOnLander:!1},swatches:{primary:{25:"#F8F1EF",50:"#F3E9E6",100:"#E8D2CD",200:"#D0A59B",300:"#B9796A",400:"#A14C38",500:"#8A1F06",600:"#7C1C05",700:"#6E1905",800:"#611604",900:"#531304",950:"#451003",A100:"#D66349",A200:"#9D4835",A400:"#D62E09",A700:"#D6401E"},black:o,secondary:o,complementary:{25:"#F1FAFF",50:"#e4f6ff",100:"#bceaff",200:"#90deff",300:"#68d0ff",400:"#50c7fb",500:"#4abdf4",600:"#41aedf",700:"#3299c4",800:"#2586a
25a",900:"#05647c",950:"#0B3A46"},analogous:{25:"#FDFAF0",50:"#fcf6e2",100:"#f5e7b8",200:"#edd88b",300:"#e4c95e",400:"#ddbe3d",500:"#d6b511",600:"#c7a50f",700:"#b3910b",800:"#9e7b09",900:"#7c5805",950:"#46340B"},triadic:{25:"#F9FAF2",50:"#F4F5E5",100:"#E3E6BE",200:"#D0D695",300:"#BDC76B",400:"#AEBC49",500:"#9FB124",600:"#8FA21C",700:"#798F10",800:"#647C05",900:"#405C00",950:"#283608"},triadicAlt:{25:"#F2FAF3",50:"#e6f5e7",100:"#c4e6c4",200:"#9dd59f",300:"#75c678",400:"#54ba5a",500:"#31ae3c",600:"#279f33",700:"#198d28",800:"#057c1d",900:"#005d05",950:"#08370B"}}},sesar:{orgName:"sesar",orgTagline:"System for Earth & Extra-terrestrial Sample Registration",logo:{src:"/_next/static/media/sesar-logo.d1416ce8.png",height:250,width:250,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAU0lEQVR42mMAA0YgZADTSBQzAz+CK86gxZDJkMAgxgAGQgzbGaYyBDM4MUgxgIEJQziDG4MPAzdMuyZDF0M7QzEDJ1gALCbDoMkgwsAHFgATSAAAqiEGj39DoFcAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},favicon:{src:"/_next/static/media/sesar-favicon.6a81a352.png",height:132,width:132,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA+ElEQVR42h3PPUvDQADG8fs4Hn4RP4ODuPgBXARFNxFcVBQUSZW2FipiCs31kssl9XKHL+ni6uCSIUsqZPKld8tj0gd+wzP+ye7bJ2nQizDTx92h27+8cTs932ybD0rarYt3unfdr1fpCpqLrc0NjEY+DrxBvTbOKTl8CI1SCtM0tV6ng7/FAgDsbJbj6DHSxFfP7vfnG9Y6lGWJoihQzef4qioMZeZIn6dOhBxCxGCMLU04xyQYo8ukI6dsqmMhEIWhFXGMVvOtlDHO2JMh5FbQXqTqREqYTCF/fYHWGQaJqclV0JTcpS16EqTmPtGudc6VJh5fZv4DS8CwGjiH6bEAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},shareIcon:{src:"/_next/static/media/sesar_shareicon.e232d160.png",height:156,width:156,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAA00lEQVR42gHIADf/AMzs8bDR2JK7xqHO2H6hr3eZqG+So3maqADO6e2wz9V4oatvi5NffIaDqbSbucGduL8Aor/Gh6qzj5GSUEZC09DPxsvNeZ6kiKKjAHOWnK+/w/Ty8d7f3+3u7u7s7ZisrEZvWQA/a2Saq6+8ubiztLSsra25traPo6cuXUUAQV5eZ4mPt7y/wL29xcLCuMDEW4GAPllDAERgYTJUU2mLkJisr5isrmmQhkdnT05rWQA7XlM+WFdJYmEtXlI/bE5ScU1Ra1tAXVD6Tm8eudGktQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},logoArt:{src:"/_next/static/media/sesar_logoArt.4c1b1eac.png",height:120,width:120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAAU0lEQVR42gFIALf/ABkAGSIAAAAeAAAYAACZ7IYAAIf00cT///2SAN358t/a4enPAKq6uLC0s7SlAI+/sb68ssWXAACuwr3DxrYPAAAxlL+/njQAdMki8MsSLVEAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},background:{src:"/_next/static/media/sesar_footer_bg.806bae55.jpg",height:1092,width:3200,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAMACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABgEBAQAAAAAAAAAAAAAAAAAAAgP/2gAMAwEAAhADEAAAAJYSX//EABsQAAICAwEAAAAAAAAAAAAAAAECAwQABRGB/9oACAEBAAE/ALWwuy1Xgew7RCM8Un3P/8QAGBEAAgMAAAAAAAAAAAAAAAAAAAISIXH/2gAIAQIBAT8AS5af/8QAFREBAQAAAAAAAAAAAAAAAAAAAAL/2gAIAQMBAT8Al//Z",blurWidth:8,blurHeight:3},backgroundDescription:"SESAR background photograph",copyright:"System for Earth & Extra-terrestrial Sample Registration",contactPage:"https://geosamples.org/about/contact",privacyPolicy:"https://geosamples.org/legal/privacy-policy/",termsOfUse:"https://geosamples.org/legal/terms-of-use/",feedbackLink:"",social:{twitter:{handle:""}},funder:{logo:i,link:"https://nsf.org",description:"US National Science Foundation (NSF)"},host:{logo:null,link:"https://www.ldeo.columbia.edu/",description:"LDEO of Columbia University"},sites:{web:{baseUrl:"https://www.geosamples.org"},archive:{baseUrl:""},synthesis:{baseUrl:"",stage:"",version:""},desk:{baseUrl:"https://app.geosamples.org/views/my_profile.php"},reference:{baseUrl:""},repo:{baseUrl:"https://app.geosamples.org/view.php"},search:{baseUrl:"https://app.geosamples.org/embed/search"}},data:{api:"https://api.geosamples.org",userPostgrest:"https://postgrest.geosamples.org"},doiDefaults:{version:"1.0",publisher:{name:"SESAR",url:"https://www.geosamples.org/"},licence:{shortIdentifier:"CC0-1.0",link:{cc:"https://creativecommons.org/publicdomain/zero/1.0/",spdx:"http://spdx.org/licenses/CC0-1.0"}}},mailchimp:{audienceId:"18465",apiServer:"us20"},styles:{monotone:!0},swatches:{primary:{25:"#E2F6F9",50:"#D8ECF1",100:"#A0D0DB",200:"#5FB2C3",300:"#0095AC",400:"#00839D",500:"#00718E",600:"#00647E",700:"#005367",800:"#004151",900:"#00232B",950:"#001122"},secondary:s,black:s,complementary:{25:"#FDF5F5",50:"#fcebec",100:"#f7ccce",200:"#e29994",300:"#d3746c",400:"#d95848",500:"#da4c2f",600:"#cc432e",700:"#bb3a29",800:"#ae3523",900:"#9e2d19",950:"#571F15"},analogous:{25:"#F2FAF6",50:"#e5f5ee",100:"#c1e5d5",200:"#99d5bb",300:"#6ec6a1",400:"#4bb98e",500:"#1ead7b",600:"#199e6f",700:"#148c62",800:"#0E6D4C",900:"#145b3f",950:"#123628"},triadic:{25:"#F6F3FB",50:"#eee7f7",100:"#d2c4ec",200:"#b59de0",300:"#9775d5",400:"#8057cb",500:"#6839c2",600:"#5f34bb",700:"#512cb2",800:"#4426ab",900:"#2d199e",950:"#1F1557"},triadicAlt:{25:"#FCF1F9",50:"#fae4f4",100:"#f1bbe3",200:"#e78dd2",300:"#dc5ac0",400:"#d227b3",500:"#c700a6",600:"#b900a2",700:"#a6009c",800:"#960097",900:"#77008c",950:"#44084E"}}},iedadata:{orgName:"ieda",orgTagline:"Interdisciplinary Earth Data Alliance",logo:{src:"/_next/static/media/ieda2-logo.7a6fa6f8.png",height:120,width:120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA1ElEQVR42kWPuQ3CQBBFtwgOm/tGXAIDDQASxBBDDAVAChVAA
2504wkQtYF2DHdmpaMIlzb/KZsZAY6Wm//vzVzAiuzXrdo8e9nM+KIe2lHtdsYvRKeT2eG1O8wxAhQR7Kmh5zT8wMw6McXpaVfKIIEcGaPA66olWrq36nCzYC30cQBKlu1xuMEs1qTVEIpbyG0/GIw34P8sAjK3pRifFw5PIP0zQTKSUcx4EjZbLbbsHLitViydvGt+sN1vMJ27bxuN9RyGTjUX/wv4TThPrhFnNa2vwC18Fng0sF5CQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},favicon:{src:"/_next/static/media/ieda2-favicon.f52c7b08.png",height:132,width:132,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA4klEQVR42iVPTWqDUBh8p2mxBwjdhEKIjS8lXcbunj2EghZSjGvFn3Wy8SRm4cJLRAR1ocS1bzN5X/LBwMAM38wwIQRT0JIkKRzHkbZtyziOL8KyNEZHYhRFN24YOJ9OyPMcX3yLMAxvFpnSNL1sOcfby+s8DAOmacJ6tZo/1zqyLCtYEATyfbFAXddomgb19Yq2bbHRdfi+L1lwPMqP5RJlWaLrOvR9j6qqQF/JQBHF924HVWcmcRxHEOcbAxTPqC0VMvd7/Hke/g8H/JjmoyQNUAZB0Gia57rSVVC8sH6fM+9tvY+PY9Th2AAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},shareIcon:{src:"/_next/static/media/ieda2_shareicon.a29a639a.png",height:156,width:156,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAy0lEQVR42mMoKQzLywqOio5Jy8jNysxx9/GR1NAwtbRgsHfTS06Jqq+rqa6qqq2tra6uDosIF5dX
25ZHB2d6hvaGBgYLh06dKN6zeAjMbG+ogEd4aMzIxA/4Atmze/fAECu3btDPQPLK/PYSgpyIoIj5gze/bLly9fvXq1aOHCyIjI4uIMhjh/O4hRx44ePX36NJBRV1/vZGvBkORjnRET1tTQkJqSmpaaWl9fn5MU4WimxFCcEJ4d7JkeF1VaXFBcmBfp4xDipJMQ5AwA1tdRuQy+QVEAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},logoArt:{src:"/_next/static/media/ieda2_logoArt.7a6fa6f8.png",height:120,width:120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA1ElEQVR42kWPuQ3CQBBFtwgOm/tGXAIDDQASxBBDDAVAChVAA04wkQtYF2DHdmpaMIlzb/KZsZAY6Wm//vzVzAiuzXrdo8e9nM+KIe2lHtdsYvRKeT2eG1O8wxAhQR7Kmh5zT8wMw6McXpaVfKIIEcGaPA66olWrq36nCzYC30cQBKlu1xuMEs1qTVEIpbyG0/GIw34P8sAjK3pRifFw5PIP0zQTKSUcx4EjZbLbbsHLitViydvGt+sN1vMJ27bxuN9RyGTjUX/wv4TThPrhFnNa2vwC18Fng0sF5CQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},background:{src:"/_next/static/media/ieda2_footer_bg.8363f78b.jpg",height:1094,width:3200,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAMACAMBIgACEQEDEQH/xAAnAAEBAAAAAAAAAAAAAAAAAAAABwEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEAMQAAAAqQT/xAAZEAADAAMAAAAAAAAAAAAAAAABAgQAESH/2gAIAQEAAT8AodxSmmPAc//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Af//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Af//Z",blurWidth:8,blurHeight:3},backgroundDescription:"IEDA background photograph",copyright:"IEDA2 Data",contactPage:"https://www.iedadata.org/about/contact",privacyPolicy:"https://www.iedadata.org/legal/privacy-policy/",termsOfUse:"https://wwww.iedadata.org/legal/terms-of-use/",feedbackLink:"",social:{twitter:{handle:""}},funder:{logo:i,link:"https://nsf.org",description:"US National Science Foundation (NSF)"},host:{logo:null,link:"https://www.ldeo.columbia.edu/",description:"LDEO of Columbia University"},sites:{web:{baseUrl:"https://www.iedadata.org"}},data:{api:"https://api.iedadata.org",userPostgrest:"https://postgrest.iedadata.org"},doiDefaults:{version:"1.0",publisher:{name:"IEDA2",url:"https://www.iedadata.org/"},licence:{shortIdentifier:"CC0-1.0",link:{cc:"https://creativecommons.org/publicdomain/zero/1.0/",spdx:"http://spdx.org/licenses/CC0-1.0"}}},mailchimp:{audienceId:"c894168f53",apiServer:"us20"},swatches:{primary:{25:"#F1F2FB",50:"#E8E9F7",100:"#C5C6EB",200:"#9FA2DE",300:"#797ED1",400:"#5D61C7",500:"#4244BC",600:"#3C3CB2",700:"#3332A6",800:"#2B279A",900:"#1F1184",950:"#17142A",A100:"#C0F5FF",A200:"#B3F3FF",A400:"#62E8FF",A700:"#00B0CE"},secondary:a,black:a,complementary:{25:"#FDF5F5",50:"#fcebec",100:"#f7ccce",200:"#e29994",300:"#d3746c",400:"#d95848",500:"#da4c2f",600:"#cc432e",700:"#bb3a29",800:"#ae3523",900:"#9e2d19",950:"#571F15"},analogous:{25:"#F2FAF6",50:"#e5f5ee",100:"#c1e5d5",200:"#99d5bb",300:"#6ec6a1",400:"#4bb98e",500:"#1ead7b",600:"#199e6f",700:"#148c62",800:"#0E6D4C",900:"#145b3f",950:"#123628"},triadic:{25:"#F6F3FB",50:"#eee7f7",100:"#d2c4ec",200:"#b59de0",300:"#9775d5",400:"#8057cb",500:"#6839c2",600:"#5f34bb",700:"#512cb2",800:"#4426ab",900:"#2d199e",950:"#1F1557"},triadicAlt:{25:"#FCF1F9",50:"#fae4f4",100:"#f1bbe3",200:"#e78dd2",300:"#dc5ac0",400:"#d227b3",500:"#c700a6",600:"#b900a2",700:"#a6009c",800:"#960097",900:"#77008c",950:"#44084E"}},styles:{monotone:!0},systems:{earthchem:"https://www.earthchem.org",sesar:"https://www.geosamples.org",lepr:"https://lepr.earthchem.org"}}},k={astromat:{mainNav:[{site:"web",path:"/archive",key:"archive",children:[{site:"external",path:"https://kotahi.prod.astromat.org/journal/login",key:"startASubmission"},{newSection:!0,site:"web",path:"/archive/submission-guidelines",key:"submissionGuidelines"},{site:"web",path:"/archive/templates",key:"templates"},{site:"web",path:"/archive/curation-services",key:"curationServices"},{site:"web",path:"/archive/tapp",key:"tapp"},{site:"web",path:"/archive/policies",key:"policies"},{newSection:!0,site:"archive",path:"/",key:"searchArchive"},{newSection:!0,site:"web",path:"/archive/overview",key:"archiveOverview"}]},{site:"web",path:"/synthesis",key:"synthesis",children:[{site:"web",path:"/synthesis",key:"searchAstromatSynthesis"},{site:"web",path:"/synthesis/sample-lookup/",key:"sampleLookup"},{newSection:!0,site:"web",path:"/synthesis/about/",key:"synthesisOverview"}]},{site:"web",path:"/collections",key:"collections.title",children:[{site:"web",path:"/collections/lunar",key:"collections.lunar"},{site:"web",subCat:!0,path:"/collections/angsa",key:"collections.angsa"},{site:"web",subCat:!0,path:"/collections/lunar-samples-data-rescue",key:"collections.lunarSamplesDataRescue"},{site:"web",path:"/collections/meteorites",key:"collections.meteorites"},{site:"web",path:"/collections/hayabusa",key:"collections.hayabusa"}
25,{site:"web",path:"/collections/hayabusa2",key:"collections.hayabusa2"},{site:"web",path:"/collections/microparticle-impact",key:"collections.microparticleImpact"},{site:"web",path:"/collections/cosmic-dust",key:"collections.cosmicDust"},{site:"web",path:"/collections/stardust",key:"collections.stardust"},{site:"web",path:"/collections/genesis",key:"collections.genesis"},{site:"web",path:"/collections/ucla-cosmochemistry-database",key:"collections.uclaCosmochemistryDatabase"},{site:"web",path:"/collections/collections-osiris-rex",key:"collections.osirisRex"}]},{site:"web",path:"/about/about-us",key:"about",children:[{site:"web",path:"/about/about-us",key:"aboutAstromat"},{site:"web",path:"/about/citations",key:"citations"},{site:"web",path:"/news",key:"news"},{site:"web",path:"/about/team",key:"team"},{site:"web",path:"/about/contact",key:"contact"}]}]},earthchem:{mainNav:[{site:"web",path:"/about",key:"about",children:[{site:"web",path:"/about/about-overview",key:"overview"},{site:"web",path:"/news",key:"news"},{site:"web",path:"/about/team",key:"team"},{site:"web",path:"/about/statistics",key:"statistics"},{site:"web",path:"/about/contact",key:"contact"}]},{site:"web",path:"/submit-data/",key:"submitData",children:[{site:"web",path:"/ecl/submission-overview/",key:"overview"},{site:"web",path:"/ecl/submission-guidelines/",key:"submissionGuidelines"},{site:"web",path:"/ecl/policies/",key:"policies"},{site:"web",path:"/ecl/templates/",key:"templates"},{site:"web",path:"/ecl/vocabularies/",key:"vocabularies"}]},{site:"web",path:"/data-access",key:"accessData",children:[{site:"web",path:"/data-access/overview",key:"overview"},{newSection:!0,site:"web",path:"/petdb",key:"petDb2",labelKey:"new"},{site:"external",path:"https://search.earthchem.org/",key:"petDb"},{site:"external",path:"http://portal.earthchem.org/",key:"earthchemPortal"},{site:"external",path:"http://lepr.earthchem.org/",key:"lepr"},{site:"external",path:"https://ecl.earthchem.org/search.php",key:"eclSearch"},{site:"web",path:"/tip",key:"tip",labelKey:"new"}]},{site:"web",path:"/communities",key:"communities.title",children:[{site:"web",path:"/communities/",key:"communities.overview"},{newSection:!0,site:"web",path:"/communities/tephra",key:"communities.tephra"},{site:"web",path:"/communities/clumpdb",key:"communities.clumpDb"},{site:"web",path:"/communities/experimental-petrology",key:"communities.experimentalPetrology"},{site:"web",path:"/communities/seawater-oxygen-isotopes",key:"communities.seaWaterOxygenIsotopes"},{site:"web",path:"/communities/geo-microscopy",key:"communities.geoMicroscopy"},{site:"web",path:"/communities/cznet",key:"communities.cznet"},{newSection:!0,site:"external",path:"https://www.astromat.org/submit-data/overview/",key:"communities.cosmochemistry"}]},{site:"web",path:"/resources",key:"resources",children:[{site:"web",path:"/resources/researchers",key:"researchers"},{site:"web",path:"/resources/developers",key:"developers"},{site:"web",path:"/resources/support",key:"tutorialsAndFAQs"}]}]},sesar:{...p},iedadata:{...h}},x={astromat:{...b},earthchem:{...A},sesar:{...b},iedadata:{...b}},C={astromat:{local:{base_url:"https://www-staging.astromat.org",api_base_url:"https://api-staging.astromat.org",ref_base_url:"https://ref-
25development.astromat.org",repo_base_url:"https://repo.astromat.org",archive_base_url:"https://ada-development.astromat.org",archive_api_base_url:"https://api-archive-development.dev.astromat.org",datacite_api_base_url:"https://api.test.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.astromat.org",amplitude_id:"f0015f9a7dcd6ed97b6974a43e59dad3"},development:{base_url:"https://www-staging.astromat.org",api_base_url:"https://api-staging.astromat.org",ref_base_url:"https://ref-development.astromat.org",repo_base_url:"https://repo.astromat.org",archive_base_url:"https://ada-development.astromat.org",archive_api_base_url:"https://archive-development.dev.astromat.org",datacite_api_base_url:"https://api.test.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.astromat.org",amplitude_id:"f0015f9a7dcd6ed97b6974a43e59dad3"},staging:{base_url:"https://www-staging.astromat.org",api_base_url:"https://api-staging.astromat.org",ref_base_url:"https://ref-staging.astromat.org",repo_base_url:"https://repo.astromat.org",archive_base_url:"https://ada-staging.astromat.org",archive_api_base_url:"https://archive-staging.astromat.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.astromat.org",amplitude_id:"f0015f9a7dcd6ed97b6974a43e59dad3"},uat:{base_url:"https://astromat.org",api_base_url:"https://api.astromat.org",ref_base_url:"https://ref.astromat.org",repo_base_url:"https://repo.astromat.org",archive_base_url:"https://ada-uat.astromat.org",archive_api_base_url:"https://archive-uat.astromat.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.astromat.org",amplitude_id:"f0015f9a7dcd6ed97b6974a43e59dad3"},production:{base_url:"https://astromat.org",api_base_url:"https://api.astromat.org",ref_base_url:"https://ref.astromat.org",repo_base_url:"https://repo.astromat.org",archive_base_url:"https://ada.astromat.org",archive_api_base_url:"https://archive.astromat.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.astromat.org",amplitude_id:"a8f834586baf22d8de3c42c2bec8b518"}},earthchem:{local:{base_url:"http://localhost:3000",api_base_url:"http://localhost:4000",tip_api_base_url:"http://localhost:8000",repo_base_url:"https://ecl.earthchem.org/search.php",archive_base_url:"https://ada-development.earthchem.org",archive_api_base_url:"https://api-archive-development.earthchem.org",datacite_api_base_url:"https://api.test.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",gmrt_mapserver_url:"https://gmrt.org/services/mapserver",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.earthchem.org",amplitude_id:"c3520d28090121b85ecd25f0d3e1eeda"},development:{base_url:"https://www-staging.earthchem.org",api_base_url:"https://api-staging.earthchem.org",tip_api_base_url:"https://tip-api-staging.earthchem.org",map_base_url:"https://api.mapbox.com/geocoding/v5/mapbox.places",repo_base_url:"https://ecl.earthchem.org/search.php",archive_base_url:"https://ada-development.earthchem.org",archive_api_base_url:"https://archive-development.earthchem.org",datacite_api_base_url:"https://api.test.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",gmrt_mapserver_url:"https://gmrt.org/services/mapserver",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.earthchem.org",amplitude_id:"c3520d28090121b85ecd25f0d3e1eeda"},staging:{base_url:"https://www-staging.earthchem.org",api_base_url:"https://api-staging.earthchem.org",tip_api_base_url:"https://tip-api-staging.earthchem.org",map_base_url:"https://api.mapbox.com/geocoding/v5/mapbox.places",repo_base_url:"https://ecl.earthchem.org/search.php",archive_base_url:"https://ada-staging.earthchem.org",archive_api_base_url:"https://archive-staging.earthchem.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",gmrt_mapserver_url:"https://gmrt.org/services/mapserver",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.earthchem.org",amplitude_id:"c3520d28090121b85ecd25f0d3e1eeda"},uat:{base_url:"https://earthchem.org",api_base_url:"https://api-staging.earthchem.org",tip_api_base_url:"https://tip-api-staging.earthchem.org",map_base_url:"https://api.mapbox.com/geocoding/v5/mapbox.places",repo_base_url:"https://ecl.earthchem.org/search.php",archive_base_url:"https://ada-uat.earthchem.org",archive_api_base_url:"https://archive-uat.earthchem.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",gmrt_mapserver_url:"https://gmrt.org/services/mapserver",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.earthchem.org",amplitude_id:"c3520d28090121b85ecd25f0d3e1eeda"},production:{base_url:"https://earthchem.org",api_base_url:"https://api.earthchem.org",tip_api_base_url:"https://tip-api.earthchem.org",map_base_url:"https://api.mapbox.com/geocoding/v5/mapbox.places",repo_base_url:"https://ecl.earthchem.org/search.php",archive_base_url:"https://ada.earthchem.org",archive_api_base_url:"https://archive.earthchem.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",gmrt_mapserver_url:"https://gmrt.org/services/mapserver",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.earthchem.org",amplitude_id:"f3e943bfd68c2fb16ba66053a9cc2e47"}},sesar:{local:{base_url:"http://localhost:3000",api_base_url:"https://api-staging.geosamples.org",repo_base_url:"https://ecl.geosamples.org/search.php",archive_base_url:"https://ada-development.geosamples.org",archive_api_base_url:"https://api-archive-development.geosamples.org",datacite_api_base_url:"https://api.test.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.geosamples.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},development:{base_url:"https://www-staging.geosamples.org",api_base_url:"https://api-staging.geosamples.org",repo_base_url:"https://ecl.geosamples.org/search.php",archive_base_url:"https://ada-development.geosamples.org",archive_api_base_url:"https://archive-development.geosamples.org",datacite_api_base_url:"https://api.test.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.geosamples.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},staging:{base_url:"https://www-staging.geosamples.org",api_base_url:"https://api-staging.geosamples.org",repo_base_url:"https://ecl.geosamples.org/search.php",archive_base_url:"https://ada-staging.geosamples.org",archive_api_base_url:"https://archive-staging.geosamples.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.geosamples.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},uat:{base_url:"https://geosamples.org",api_base_url:"https://api.geosamples.org",repo_base_url:"https://ecl.geosamples.org/search.php",archive_base_url:"https://ada-uat.geosamples.org",archive_api_base_url:"https://archive-uat.geosamples.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.geosamples.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},production:{base_url:"https://geosamples.org",api_base_url:"https://api.geosamples.org",repo_base_url:"https://ecl.geosamples.org/search.php",archive_base_url:"https://ada.geosamples.org",archive_api_base_url:"https://archive.geosamples.org",datacite_api_base_url:"https://api.datacite.org",datacite_analytics_url:"https://analytics.datacite.org",datacite_repo_id:"da-e7OQVz",pid_base_url:"https://pid.geosamples.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"}},iedadata:{local:{base_url:"http://localhost:3000",api_base_url:"https://api-staging.iedadata.org",pid_base_url:"https://pid.iedadata.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},development:{base_url:"https://www-staging.iedadata.org",api_base_url:"https://api-staging.iedadata.org",pid_base_url:"https://pid.iedadata.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},staging:{base_url:"https://www-staging.iedadata.org",api_base_url:"https://api-staging.iedadata.org",pid_base_url:"https://pid.iedadata.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},uat:{base_url:"https://iedadata.org",api_base_url:"https://api.iedadata.org",pid_base_url:"https://pid.iedadata.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"},production:{base_url:"https://iedadata.org",api_base_url:"https://api.iedadata.org",pid_base_url:"https://pid.iedadata.org",amplitude_id:"f846582e38c8626d4b54f27474597df4"}}},I={astromat:{mercatorPointsSourceId:"mercator-point-source",northPolePointsSourceId:"north-point-source",southPolePointsSourceId:"south-point-source",mercatorId:"mercator-wms-source",northPoleId:"north-pole-wms-source",southPoleId:"south-pole-wms-source",lonlatCode:"4326",mercatorCode:"3857",northCode:"3995",southCode:"3031",lonLatProjection:"EPSG:4326",mercatorProjection:"EPSG:3857",northProjection:"EPSG:3995",southProjection:"EPSG:3031"},earthchem:{..._},iedadata:{..._},sesar:{..._}};function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"production",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"astromat";return{environment:C[t][e],menu:k[t],search:x[t],orgDetails:E[t],map:I[t]}}},73422:function(e,t,r){"use strict";let n,i,o,s,a;r.d(t,{ZP:function(){return ct},UK:function(){return ce}});var l,u,c,d,p,f,h,g,m,v,y,b,w,S,A,_,E,k,x,C,I,T,O,R,P,M,L,D,N,j,F,U,B,$,q,G,z,H,V,J,Z,W,K,Q,X,Y,ee,et,er,en,ei,eo,es,ea,el,eu,ec,ed,ep,ef,eh,eg,em,ev,ey,eb,ew={};r.r(ew),r.d(ew,{DEFAULT_ACTION_CLICK_ALLOWLIST:function(){return nl},DEFAULT_CSS_SELECTOR_ALLOWLIST:function(){return ns},DEFAULT_DATA_ATTRIBUTE_PREFIX:function(){return na},EXCLUDE_INTERNAL_REFERRERS_CONDITIONS:function(){return rL},IdentifyOperation:function(){return Q},LogLevel:function(){return Z},OfflineDisabled:function(){return th},RevenueProperty:function(){return Y},ServerZone:function(){return eu},SpecialEventType:function(){return X}});var eS={};r.r(eS),r.d(eS,{Identify:function(){return tM},Revenue:function(){return tF},Types:function(){return ew},_enableRequestBodyCompressionExperimental:function(){return uj},_setDiagnosticsSampleRate:function(){return uN},add:function(){return u$},createInstance:function(){return uL},experiment:function(){return uU},extendSession:function(){return uq},flush:function(){return uG},getDeviceId:function(){return uz},getIdentity:function(){return uH},getOptOut:function(){return uV},getSessionId:function(){return uJ},getUserId:function(){return uZ},groupIdentify:function(){return uW},identify:function(){return uK},initAll:function(){return uF},logEvent:function(){return uQ},remove:function(){return uX},reset:function(){return uY},revenue:function(){return u0},sessionReplay:function(){return uB},setDeviceId:function(){return u1},setGroup:function(){return u2},setIdentity:function(){return u3},setOptOut:function(){return u4},setSessionId:function(){return u5},setTransport:function(){return u6},setUserId:function(){return u8},track:function(){return u7}});var eA=r(97582),e_=function(e){return{promise:e||Promise.resolve()}};(l=Z||(Z={}))[l.None=0]="None",l[l.Error=1]="Error",l[l.Warn=2]="Warn",l[l.Verbose=3]="Verbose",l[l.Debug=4]="Debug";var eE="Amplitude Logger ",ek=function(){function e(){this.logLevel=Z.None}return e.prototype.disable=function(){this.logLevel=Z.None},e.prototype.enable=function(e){void 0===e&&(e=Z.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<Z.Verbose||console.log("".concat(eE,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<Z.Warn||console.warn("".concat(eE,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<Z.Error||console.error("".concat(eE,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<Z.Debug||console.log("".concat(eE,"[Debug]: ").concat(e.join(" ")))},e}(),ex=function(){function e(e,t){this.key="AMP_remote_config_".concat(e.substring(0,10)),this.logger=t}return e.prototype.fetchConfig=function(){var e=null,t={remoteConfig:null,lastFetch:new Date};try{e=localStorage.getItem(this.key)}catch(e){return this.logger.debug("Remote config localstorage failed to access: ",e),Promise.resolve(t)}if(null===e)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(t);try{var r=JSON.parse(e);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(r))),Promise.resolve({remoteConfig:r.remoteConfig,lastFetch:new Date(r.lastFetch)})}catch(e){return this.logger.debug("Remote config localstorage failed to parse: ",e),localStorage.removeItem(this.key),Promise.resolve(t)}},e.prototype.setConfig=function(e){try{return localStorage.setItem(this.key,JSON.stringify(e)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(e){this.logger.debug("Remote config localstorage failed to set: ",e)}return Promise.resolve(!1)},e}(),eC=r(81941),eI=(0,eA.ev)([],(0,eA.CR)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}
25),eT=function(e){var t,r=(0,eC.l)();if(!(null===(t=null==r?void 0:r.crypto)||void 0===t?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,eT);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=15&n[6]|64,n[8]=63&n[8]|128,(0,eA.ev)([],(0,eA.CR)(n.entries()),!1).map(function(e){var t=(0,eA.CR)(e,2),r=t[0],n=t[1];return[4,6,8,10].includes(r)?"-".concat(eI[n]):eI[n]}).join("")},eO={INVALID_API_KEY:401,FORBIDDEN:403,RATE_LIMIT:429},eR=function(){function e(e,t,r,n){void 0===r&&(r="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.isLastFetchInvalidApiKey=!1,this.apiKey=e,this.serverUrl=n||("US"===r?"https://sr-client-cfg.amplitude.com/config":"https://sr-client-cfg.eu.amplitude.com/config"),this.logger=t,this.storage=new ex(e,t)}return e.prototype.subscribe=function(e,t,r){var n=eT(),i={id:n,key:e,deliveryMode:t,callback:r};return this.callbackInfos.push(i),"all"===t?this.subscribeAll(i):this.subscribeWaitForRemote(i,t.timeout),n},e.prototype.unsubscribe=function(e){var t=this.callbackInfos.findIndex(function(t){return t.id===e});return -1===t?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(e," doesn't exist.")),!1):(this.callbackInfos.splice(t,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(e,".")),!0)},e.prototype.updateConfigs=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t=this;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(this.lastSuccessfulFetch&&Date.now()-this.lastSuccessfulFetch<3e5)return this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2];return[4,this.getOrCreateFetchPromise()];case 1:return e=r.sent(),this.storage.setConfig(e),this.callbackInfos.forEach(function(r){t.sendCallback(r,e,"remote")}),[2]}})})},e.prototype.getOrCreateFetchPromise=function(){var e=this;return this.fetchPromise||(this.isLastFetchInvalidApiKey?(this.logger.debug("Remote config client skipping fetch: Invalid API key"),this.fetchPromise=Promise.resolve({remoteConfig:null,lastFetch:new Date}).finally(function(){e.fetchPromise=null})):this.fetchPromise=this.fetch().then(function(t){return null!==t.remoteConfig&&(e.lastSuccessfulFetch=Date.now()),t}).finally(function(){e.fetchPromise=null})),this.fetchPromise},e.prototype.subscribeAll=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i=this;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:return t=this.getOrCreateFetchPromise().then(function(t){i.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(t))),i.sendCallback(e,t,"remote"),i.storage.setConfig(t)}),r=this.storage.fetchConfig().then(function(e){return e}),[4,Promise.race([t,r])];case 1:return void 0!==(n=o.sent())&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(n))),null!==n.remoteConfig?this.sendCallback(e,n,"cache"):this.logger.debug("Remote config client skips sending c
25allback because cache is empty (first time user).")),[4,t];case 2:return o.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){var r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:r=new Promise(function(e,r){setTimeout(function(){r("Timeout exceeded")},t)}),i.label=1;case 1:return i.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),r])];case 2:return n=i.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(e,n,"remote"),this.storage.setConfig(n),[3,5];case 3:return i.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return null!==(n=i.sent()).remoteConfig?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(e,n,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(e,n,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(e,t,r){var n;e.lastCallback=new Date,n=e.key?e.key.split(".").reduce(function(e,t){return null===e?e:t in e?e[t]:null},t.remoteConfig):t.remoteConfig,e.callback(n,r,t.lastFetch)},e.prototype.fetch=function(e,t){return void 0===e&&(e=3),void 0===t&&(t=1e3),(0,eA.mG)(this,void 0,void 0,function(){var r,n,i,o,s,a,l=this;return(0,eA.Jh)(this,function(u){switch(u.label){case 0:r=t/e,n={remoteConfig:null,lastFetch:new Date},i=function(n){var i,s,a,u,c,d;return(0,eA.Jh)(this,function(p){switch(p.label){case 0:i=!0,s=new AbortController,a=setTimeout(function(){return s.abort()},t),p.label=1;case 1:return p.trys.push([1,7,8,9]),[4,fetch(o.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:s.signal})];case 2:if((u=p.sent()).ok)return[3,4];return[4,u.text()];case 3:return c=p.sent(),o.logger.debug("Remote config client fetch with retry time ".concat(e," failed with ").concat(u.status,": ").concat(c)),u.status===eO.INVALID_API_KEY||u.status===eO.FORBIDDEN?(o.logger.error("Remote config client fetch failed with ".concat(u.status,". Invalid API key; future fetches will be skipped.")),o.isLastFetchInvalidApiKey=!0,i=!1):u.status>=400&&u.status<500&&u.status!==eO.RATE_LIMIT&&(i=!1),[3,6];case 4:return[4,u.json()];case 5:return[2,{value:{remoteConfig:p.sent(),lastFetch:new Date}}];case 6:return[3,9];case 7:return(d=p.sent())instanceof Error&&"AbortError"===d.name?o.logger.debug("Remote config client fetch with retry time ".concat(e," timed out after ").concat(t,"ms")):o.logger.debug("Remote config client fetch with retry time ".concat(e," is rejected because: "),d),[3,9];case 8:return clearTimeout(a),[7];case 9:if(!i)return[2,"break"];if(!(n<e-1))return[3,11];return[4,new Promise(function(e){return setTimeout(e,l.getJitterDelay(r))})];case 10:p.sent(),p.label=11;case 11:return[2]}})},o=this,s=0,u.label=1;case 1:if(!(s<e))return[3,4];return[5,i(s)];case 2:if("object"==typeof(a=u.sent()))return[2,a.value];if("break"===a)return[3,4];u.label=3;case 3:return s++,[3,1];case 4:return[2,n]}})})},e.prototype.getJitterDelay=function(e){return Math.floor(Math.random()*e)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e}(),eP={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},eM={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},eL=function(){function e(e,t){this.dbPromise=null,this.logger=t,this.dbName="AMP_diagnostics_".concat(e.substring(0,10))}return e.isSupported=function(){var e;return(null===(e=(0,eC.l)())||void 0===e?void 0:e.indexedDB)!==void 0},e.prototype.getDB=function(){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var e=this;return new Promise(function(t,r){var n=indexedDB.open(e.dbName,1);n.onerror=function(){e.dbPromise=null,r(Error("Failed to open IndexedDB"))},n.onsuccess=function(){var r=n.result;r.onclose=function(){e.dbPromise=null,e.logger.debug("DiagnosticsStorage: DB connection closed.")},r.onerror=function(t){e.logger.debug("DiagnosticsStorage: A global database error occurred.",t),r.close()},t(r)},n.onupgradeneeded=function(t){var r=t.target.result;e.createTables(r)}})},e.prototype.createTables=function(e){e.objectStoreNames.contains(eP.TAGS)||e.createObjectStore(eP.TAGS,{keyPath:"key"}),e.objectStoreNames.contains(eP.COUNTERS)||e.createObjectStore(eP.COUNTERS,{keyPath:"key"}),e.objectStoreNames.contains(eP.HISTOGRAMS)||e.createObjectStore(eP.HISTOGRAMS,{keyPath:"key"}),e.objectStoreNames.contains(eP.EVENTS)||e.createObjectStore(eP.EVENTS,{keyPath:"id",autoIncrement:!0}).createIndex("time_idx","time",{unique:!1}),e.objectStoreNames.contains(eP.INTERNAL)||e.createObjectStore(eP.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i=this;
25return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,2,,3]),0===Object.entries(e).length)return[2];return[4,this.getDB()];case 1:return r=(t=o.sent().transaction([eP.TAGS],"readwrite")).objectStore(eP.TAGS),[2,new Promise(function(n){var o=Object.entries(e);t.oncomplete=function(){n()},t.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to set tags",e),n()},o.forEach(function(e){var t=(0,eA.CR)(e,2),n=t[0],o=t[1];r.put({key:n,value:o}).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to set tag",n,o,e)}})})];case 2:return n=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",n),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i=this;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,2,,3]),0===Object.entries(e).length)return[2];return[4,this.getDB()];case 1:return r=(t=o.sent().transaction([eP.COUNTERS],"readwrite")).objectStore(eP.COUNTERS),[2,new Promise(function(n){var o=Object.entries(e);t.oncomplete=function(){n()},t.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to increment counters",e),n()},o.forEach(function(e){var t=(0,eA.CR)(e,2),n=t[0],o=t[1],s=r.get(n);s.onsuccess=function(){var e=s.result,t=e?e.value:0;r.put({key:n,value:t+o}).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to update counter",n,e)}},s.onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to read existing counter",n,e)}})})];case 2:return n=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",n),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i=this;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,2,,3]),0===Object.entries(e).length)return[2];return[4,this.getDB()];case 1:return r=(t=o.sent().transaction([eP.HISTOGRAMS],"readwrite")).objectStore(eP.HISTOGRAMS),[2,new Promise(function(n){var o=Object.entries(e);t.oncomplete=function(){n()},t.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to set histogram stats",e),n()},o.forEach(function(e){var t=(0,eA.CR)(e,2),n=t[0],o=t[1],s=r.get(n);s.onsuccess=function(){var e,t=s.result;e=t?{key:n,count:t.count+o.count,min:Math.min(t.min,o.min),max:Math.max(t.max,o.max),sum:t.sum+o.sum}:{key:n,count:o.count,min:o.min,max:o.max,sum:o.sum},r.put(e).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to set histogram stats",n,e)}},s.onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",n,e)}})})];case 2:return n=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",n),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i=this;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,2,,3]),0===e.length)return[2];return[4,this.getDB()];case 1:return r=(t=o.sent().transaction([eP.EVENTS],"readwrite")).objectStore(eP.EVENTS),[2,new Promise(function(n){t.oncomplete=function(){n()},t.onabort=function(e){i.logger.debug("DiagnosticsStorage: Failed to add event records",e),n()};var o=r.count();o.onsuccess=function(){var t=Math.max(0,10-o.result);t<e.length&&i.logger.debug("DiagnosticsStorage: Only added ".concat(t," of ").concat(e.length," events due to storage limit")),e.slice(0,t).forEach(function(e){r.add(e).onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to add event record",e)}})},o.onerror=function(e){i.logger.debug("DiagnosticsStorage: Failed to count existing events",e)}})];case 2:return n=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",n),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){var r,n,i;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getDB()];case 1:return n=(r=o.sent().transaction([eP.INTERNAL],"readwrite")).objectStore(eP.INTERNAL),[2,new Promise(function(i,o){r.onabort=function(){return o(Error("Failed to set internal value"))};var s=n.put({key:e,value:t});s.onsuccess=function(){return i()},s.onerror=function(){return o(Error("Failed to set internal value"))}})];case 2:return i=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",i),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=(t=i.sent().transaction([eP.INTERNAL],"readonly")).objectStore(eP.INTERNAL),[2,new Promise(function(n,i){t.onabort=function(){return i(Error("Failed to get internal value"))};var o=r.get(e);o.onsuccess=function(){return n(o.result)},o.onerror=function(){return i(Error("Failed to get internal value"))}})];case 2:return n=i.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",n),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getInternal(eM.LAST_FLUSH_TIMESTAMP)];case 1:return[2,(e=r.sent())?parseInt(e.value,10):void 0];case 2:return t=r.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",t),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.setInternal(eM.LAST_FLUSH_TIMESTAMP,e.toString())];case 1:return r.sent(),[3,3];case 2:return t=r.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",t),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(e,t){return new Promise(function(r,n){var i=e.objectStore(t).clear();i.onsuccess=function(){return r()},i.onerror=function(){return n(Error("Failed to clear table ".concat(t)))}})},e.prototype.getAllAndClear=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t,r,n,i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),[4,this.getDB()];case 1:return e=a.sent().transaction([eP.TAGS,eP.COUNTERS,eP.HISTOGRAMS,eP.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(e,eP.TAGS),this.getAllFromStore(e,eP.COUNTERS),this.getAllFromStore(e,eP.HISTOGRAMS),this.getAllFromStore(e,eP.EVENTS)])];case 2:return r=(t=eA.CR.apply(void 0,[a.sent(),4]))[0],n=t[1],i=t[2],o=t[3],[4,Promise.all([this.clearTable(e,eP.COUNTERS),this.clearTable(e,eP.HISTOGRAMS),this.clearTable(e,eP.EVENTS)])];case 3:return a.sent(),[2,{tags:r,counters:n,histogramStats:i,events:o}];case 4:return s=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",s),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(e,t){return new Promise(function(r,n){var i=e.objectStore(t).getAll();i.onsuccess=function(){return r(i.result)},i.onerror=function(){return n(Error("Failed to get all from ".concat(t)))}})},e}(),eD=function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return t}
25,eN=function(e,t){return 31*Math.abs(eD(e.toString()))%1e5/1e5<t},ej=function(){var e=(0,eC.l)();if(!e)return[];var t=e.__AMPLITUDE_SCRIPT_URL__;return Array.isArray(t)?t:"string"==typeof t?[t]:[]},eF=function(e){var t=(0,eC.l)();if(t&&"function"==typeof t.addEventListener){var r=function(t){e.recordEvent("sdk.error.uncaught",(0,eA.pi)({type:t.type,message:t.message,filename:t.filename,error_name:t.errorName,stack:t.stack},t.metadata))};t.addEventListener("error",function(e){var t=e.error instanceof Error?e.error:void 0,n=null==t?void 0:t.stack,i=eU({filename:e.filename,stack:n});i&&r({type:"error",message:e.message,stack:n,filename:e.filename,errorName:null==t?void 0:t.name,metadata:{colno:e.colno,lineno:e.lineno,isTrusted:e.isTrusted,matchReason:i}})},!0),t.addEventListener("unhandledrejection",function(e){var t,n=e.reason instanceof Error?e.reason:void 0,i=null==n?void 0:n.stack,o=eB(i),s=eU({filename:o,stack:i});s&&r({type:"unhandledrejection",message:null!==(t=null==n?void 0:n.message)&&void 0!==t?t:e$(e.reason),stack:i,filename:o,errorName:null==n?void 0:n.name,metadata:{isTrusted:e.isTrusted,matchReason:s}})},!0)}},eU=function(e){var t,r,n=ej();if(0!==n.length)try{for(var i=(0,eA.XA)(n),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.filename&&e.filename.includes(s))return"filename";if(e.stack&&e.stack.includes(s))return"stack"}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},eB=function(e){if(e){var t=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return t?t[1]:void 0}},e$=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(e){return"[object Object]"}},eq=function(){function e(e,t,r,n){void 0===r&&(r="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=e,this.logger=t,this.serverUrl="US"===r?"https://diagnostics.prod.us-west-2.amplitude.com/v1/capture":"https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(n,null,2)),this.config=(0,eA.pi)({enabled:!0,sampleRate:0},n),this.startTimestamp=Date.now(),this.shouldTrack=eN(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,eL.isSupported()?this.storage=new eL(e,t):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),eF(this))}return e.prototype.isStorageAndTrackEnabled=function(){return!!this.storage&&!!this.shouldTrack},e.prototype.setTag=function(e,t){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryTags).length>=1e4){this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit");return}this.inMemoryTags[e]=t,this.startTimersIfNeeded()}},e.prototype.increment=function(e,t){if(void 0===t&&(t=1),this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryCounters).length>=1e4){this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit");return}this.inMemoryCounters[e]=(this.inMemoryCounters[e]||0)+t,this.startTimersIfNeeded()}},e.prototype.recordHistogram=function(e,t){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryHistograms).length>=1e4){this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");return}var r=this.inMemoryHistograms[e];r?(r.count+=1,r.min=Math.min(r.min,t),r.max=Math.max(r.max,t),r.sum+=t):this.inMemoryHistograms[e]={count:1,min:t,max:t,sum:t},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(e,t){if(this.isStorageAndTrackEnabled()){if(this.inMemoryEvents.length>=10){this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit");return}this.inMemoryEvents.push({event_name:e,time:Date.now(),event_properties:t}),this.startTimersIfNeeded()}},e.prototype.startTimersIfNeeded=function(){var e=this;this.saveTimer||(this.saveTimer=setTimeout(function(){e.saveAllDataToStorage().catch(function(t){e.logger.debug("DiagnosticsClient: Failed to save all data to storage",t)}).finally(function(){e.saveTimer=null})},1e3)),this.flushTimer||(this.flushTimer=setTimeout(function(){e._flush().catch(function(t){e.logger.debug("DiagnosticsClient: Failed to flush",t)}).finally(function(){e.flushTimer=null})},3e5))},e.prototype.saveAllDataToStorage=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t,r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2];return e=(0,eA.pi)({},this.inMemoryTags),t=(0,eA.pi)({},this.inMemoryCounters),r=(0,eA.pi)({},this.inMemoryHistograms),n=(0,eA.ev)([],(0,eA.CR)(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(e),this.storage.incrementCounters(t),this.storage.setHistogramStats(r),this.storage.addEventRecords(n)])];case 1:return i.sent(),[2]}})})},e.prototype._flush=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t,r,n,i,o,s,a,l,u;return(0,eA.Jh)(this,function(c){switch(c.label){case 0:if(!this.storage)return[2];return[4,this.saveAllDataToStorage()];case 1:return c.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:if(t=(e=c.sent()).tags,r=e.counters,n=e.histogramStats,i=e.events,this.storage.setLastFlushTimestamp(Date.now()),o={},t.forEach(function(e){o[e.key]=e.value}),s={},r.forEach(function(e){s[e.key]=e.value}),a={}
25,n.forEach(function(e){a[e.key]={count:e.count,min:e.min,max:e.max,avg:Math.round(e.sum/e.count*100)/100}}),l=i.map(function(e){return{event_name:e.event_name,time:e.time,event_properties:e.event_properties}}),0===Object.keys(s).length&&0===Object.keys(a).length&&0===l.length)return[2];return u={tags:o,histogram:a,counters:s,events:l},this.fetch(u),[2]}})})},e.prototype.fetch=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),!(0,eC.l)())throw Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(e)})];case 1:if(!r.sent().ok)return this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2];return this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3];case 2:return t=r.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",t),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t,r;return(0,eA.Jh)(this,function(n){switch(n.label){case 0:if(!this.storage)return[2];return e=Date.now(),[4,this.storage.getLastFlushTimestamp()];case 1:if(-1===(t=n.sent()||-1))return this.storage.setLastFlushTimestamp(e),this._setFlushTimer(3e5),[2];return(r=e-t)>=3e5?this._flush():this._setFlushTimer(3e5-r),[2]}})})},e.prototype._setFlushTimer=function(e){var t=this;this.flushTimer=setTimeout(function(){t._flush().catch(function(e){t.logger.debug("DiagnosticsClient: Failed to flush",e)}).finally(function(){t.flushTimer=null})},e)},e.prototype._setSampleRate=function(e){this.logger.debug("DiagnosticsClient: Setting sample rate to",e),this.config.sampleRate=e,this.shouldTrack=eN(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e}(),eG=function(){var e,t=(0,eC.l)();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var r=t.split("=",2),n=ez(r[0]),i=ez(r[1]);return i&&(e[n]=i),e},{}):{}},ez=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},eH=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eV(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eV=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},eJ=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eZ=function(){return(eZ=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eW(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eK(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}"function"==typeof SuppressedError&&SuppressedError;var eQ=function(e,t){var r,n,i=typeof e;if(i!==typeof t)return!1;try{for(var o=eW(["string","number","boolean","undefined"]),s=o.next();!s.done;s=o.next())if(s.value===i)return e===t}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var a=Array.isArray(e),l=Array.isArray(t);if(a!==l)return!1;if(a&&l){for(var u=0;u<e.length;u++)if(!eQ(e[u],t[u]))return!1}else{if(!eQ(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(r){eQ(e[r],t[r])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var eX=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eZ({},this.identity.userProperties),r=eZ(eZ({},this.identity),{userProperties:t});return{setUserId:function(e){return r.userId=e,this},setDeviceId:function(e){return r.deviceId=e,this},setUserProperties:function(e){return r.userProperties=e,this},setOptOut:function(e){return r.optOut=e,this},updateUserProperties:function(e){var t,n,i,o,s,a,l=r.userProperties||{};try{for(var u=eW(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=eK(c.value,2),p=d[0],f=d[1];switch(p){case"$set":try{for(var h=(i=void 0,eW(Object.entries(f))),g=h.next();!g.done;g=h.next()){var m=eK(g.value,2),v=m[0],y=m[1];l[v]=y}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(s=void 0,eW(Object.keys(f))),w=b.next();!w.done;w=b.next()){var v=w.value;delete l[v]}}catch(e){s={error:e}}finally{try{w&&!w.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return r.userProperties=l,this},commit:function(){return e.setIdentity(r),this}}},e.prototype.getIdentity=function(){return eZ({},this.identity)},e.prototype.setIdentity=function(e){var t=eZ({},this.identity);this.identity=eZ({}
vendor: 7,097 bytes, line 25
25,e),eQ(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eY="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:self,e0=function(){function e(){this.identityStore=new eX,this.eventBridge=new eJ,this.applicationContextProvider=new eH}return e.getInstance=function(t){return eY.analyticsConnectorInstances||(eY.analyticsConnectorInstances={}),eY.analyticsConnectorInstances[t]||(eY.analyticsConnectorInstances[t]=new e),eY.analyticsConnectorInstances[t]},e}(),e1="".concat("AMP","_unsent"),e2="$default_instance",e3="https://api2.amplitude.com/2/httpapi",e4="https://api.eu.amplitude.com/2/httpapi",e5="https://api2.amplitude.com/batch",e6="https://api.eu.amplitude.com/batch",e8="dclid",e7="fbclid",e9="gbraid",te="gclid",tt="ko_click_id",tr="li_fat_id",tn="msclkid",ti="rdt_cid",to="ttclid",ts="twclid",ta="wbraid",tl={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},tu=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],tc=["authorization","cookie","set-cookie"],td=function(e){return void 0===e&&(e=e2),e0.getInstance(e)},tp=function(e,t){td(t).identityStore.editIdentity().setUserId(e).commit()},tf=function(e,t){td(t).identityStore.editIdentity().setDeviceId(e).commit()},th=null;(u=W||(W={})).Unknown="unknown",u.Skipped="skipped",u.Success="success",u.RateLimit="rate_limit",u.PayloadTooLarge="payload_too_large",u.Invalid="invalid",u.Failed="failed",u.Timeout="Timeout",u.SystemError="SystemError";var tg=function(e,t){var r=Math.max(t,1);return e.reduce(function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e},[])},tm=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=W.Unknown),{event:e,code:t,message:r}},tv=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:e2,logLevel:Z.Warn,loggerProvider:new ek,offline:!1,optOut:!1,serverUrl:e3,serverZone:"US",useBatch:!1}},ty=function(){function e(e){this._optOut=!1;var t,r,n,i,o=tv();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(r=e.logLevel)&&void 0!==r?r:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(n=e.optOut)&&void 0!==n?n:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var s=tb(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=s.serverZone,this.serverUrl=s.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),tb=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=tv().serverZone),void 0===r&&(r=tv().useBatch),e)return{serverUrl:e,serverZone:void 0};var n,i=["US","EU"].includes(t)?t:tv().serverZone;return{serverZone:i,serverUrl:(n=r,"EU"===i?n?e6:e4:n?e5:e3)}},tw=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}();function tS(e){return e>=200&&e<300}var tA=function(e){return void 0===e&&(e=0),(Error().stack||"").split("\n").slice(2+e).map(function(e){return e.trim()})},t_=function(e){return function(){var t=(0,eA.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},tE=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,eA.XA)(t.split(".")),o=i.next();!o.done;o=i.next()){var s=o.value;if(!(s in e))return;e=e[s]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},tk=function(e,t){return function(){var r,n,i={};try{for(var o=(0,eA.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;i[a]=tE(e,a)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},tx=function(e,t,r,n,i){return void 0===i&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=r(),l=a.logger,u=a.logLevel;if(u&&u<Z.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:tA(1),time:{start:new Date().toISOString()},states:{}};n&&c.states&&(c.states.before=n());var d=e.apply(i,o);return d&&d.promise?d.promise.then(function(){n&&c.states&&(c.states.after=n()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(n&&c.states&&(c.states.after=n()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),d}},tC=new Set([e3,e4,e5,e6]);function tI(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var tT=function(){function e(e){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=null==e?void 0:e.diagnosticsClient}return e.prototype.setup=function(e){var t;return(0,eA.mG)(this,void 0,void 0,function(){var r,n=this;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(e1,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(r=i.sent())&&r.length>0&&Promise.all(r.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=eT()),new Promise(function(r){t.queue.push({event:e,attempts:0,callback:function(e){return r(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})}
25,e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,eA.mG)(this,void 0,void 0,function(){var t,r,n=this;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],r=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):r.push(e)}),[4,tg(t,this.config.flushQueueSize).reduce(function(t,r){return(0,eA.mG)(n,void 0,void 0,function(){return(0,eA.Jh)(this,function(n){switch(n.label){case 0:return[4,t];case 1:return n.sent(),[4,this.send(r,e)];case 2:return[2,n.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){var r;return void 0===t&&(t=!0),(0,eA.mG)(this,void 0,void 0,function(){var n,i,o,s,a;return(0,eA.Jh)(this,function(l){var u,c,d;switch(l.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,eA._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new tw,l.label=1;case 1:return l.trys.push([1,3,,4]),u=i=tb(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,void 0===(c=this.config.enableRequestBodyCompression)&&(c=!1),o=!!tC.has(u)||c,[4,this.config.transportProvider.send(i,n,this.config._enableRequestBodyCompressionExperimental&&o)];case 2:if(null===(s=l.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in s?this.fulfillRequest(e,s.statusCode,"".concat(s.status,": ").concat(tI(s))):this.fulfillRequest(e,s.statusCode,s.status),[2];return this.handleResponse(s,e),[3,4];case 3:return a=(d=l.sent())instanceof Error?d.message:String(d),this.config.loggerProvider.error(a),null===(r=this.diagnosticsClient)||void 0===r||r.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:e.map(function(e){return e.event.event_type}),message:a,stack_trace:tA()}),this.handleResponse({status:W.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){tS(e.statusCode)||null===(r=this.diagnosticsClient)||void 0===r||r.recordEvent("analytics.events.unsuccessful",{events:t.map(function(e){return e.event.event_type}),code:e.statusCode,status:e.status,body:tI(e),stack_trace:tA()});var r,n=e.status;switch(n){case W.Success:this.handleSuccessResponse(e,t);break;case W.Invalid:this.handleInvalidResponse(e,t);break;case W.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case W.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var n=(0,eA.ev)((0,eA.ev)((0,eA.ev)((0,eA.ev)([],(0,eA.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,eA.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,eA.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,eA.CR)(e.body.silencedEvents),!1).flat(),i=new Set(n),o=t.filter(function(t,n){if(i.has(n)){r.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});o.length>0&&this.config.loggerProvider.warn(tI(e));
vendor: 4,058 bytes, line 25
25var s=this.removeEventsExceedFlushMaxRetries(o);this.scheduleEvents(s)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(tI(e)),this.config.flushQueueSize/=2;var r=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(r)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,s=new Set(n),a=new Set(i),l=new Set(o),u=t.filter(function(t,n){if(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&a.has(t.event.device_id)){r.fulfillRequest([t],e.statusCode,e.body.error);return}return l.has(n)&&(t.timeout=r.throttleTimeout),!0});u.length>0&&this.config.loggerProvider.warn(tI(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.fulfillRequest=function(e,t,r){var n,i,o;tS(t)?null===(o=this.diagnosticsClient)||void 0===o||o.increment("analytics.events.sent",e.length):(null===(n=this.diagnosticsClient)||void 0===n||n.increment("analytics.events.dropped",e.length),null===(i=this.diagnosticsClient)||void 0===i||i.recordEvent("analytics.events.dropped",{events:e.map(function(e){return e.event.event_type}),code:t,message:r,stack_trace:tA()})),this.removeEvents(e),e.forEach(function(e){return e.callback(tm(e.event,t,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),tO=function(){function e(){this.name="identity",this.type="before",this.identityStore=td().identityStore}return e.prototype.execute=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return e.instanceName&&(this.identityStore=td(e.instanceName).identityStore),[2]})})},e}(),tR=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var r=e[t];if(!tP(t,r))return!1}return!0},tP=function(e,t){var r,n;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,eA.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if("object"==typeof a)i=i&&tR(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else if(null==t)return!1;else if("object"==typeof t)return tR(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},tM=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,eA.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(K.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(K.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(K.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(K.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(K.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(K.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(K.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(K.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(K.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[K.CLEAR_ALL]="-",this}
25,e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return!(void 0!==this._properties[K.CLEAR_ALL]||this._propertySet.has(t))&&(e===K.ADD?"number"==typeof r:e===K.UNSET||e===K.REMOVE||tP(t,r))},e}();(c=K||(K={})).SET="$set",c.SET_ONCE="$setOnce",c.ADD="$add",c.APPEND="$append",c.PREPEND="$prepend",c.REMOVE="$remove",c.PREINSERT="$preInsert",c.POSTINSERT="$postInsert",c.UNSET="$unset",c.CLEAR_ALL="$clearAll";var tL=[K.CLEAR_ALL,K.UNSET,K.SET,K.SET_ONCE,K.ADD,K.APPEND,K.PREPEND,K.PREINSERT,K.POSTINSERT,K.REMOVE];(d=Q||(Q={})).SET="$set",d.SET_ONCE="$setOnce",d.ADD="$add",d.APPEND="$append",d.PREPEND="$prepend",d.REMOVE="$remove",d.PREINSERT="$preInsert",d.POSTINSERT="$postInsert",d.UNSET="$unset",d.CLEAR_ALL="$clearAll",(p=X||(X={})).IDENTIFY="$identify",p.GROUP_IDENTIFY="$groupidentify",p.REVENUE="revenue_amount";var tD=function(e,t){return(0,eA.pi)((0,eA.pi)({},t),{event_type:X.IDENTIFY,user_properties:e.getUserProperties()})},tN=function(e,t,r,n){var i;return(0,eA.pi)((0,eA.pi)({},n),{event_type:X.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:((i={})[e]=t,i)})},tj=function(e,t,r){var n,i=new tM;return i.set(e,t),(0,eA.pi)((0,eA.pi)({},r),{event_type:X.IDENTIFY,user_properties:i.getUserProperties(),groups:((n={})[e]=t,n)})},tF=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){try{var t=JSON.parse(JSON.stringify(e));tR(t)&&(this.properties=t)}catch(e){}return this},e.prototype.getEventProperties=function(){var e=this.properties?(0,eA.pi)({},this.properties):{};return e[Y.REVENUE_PRODUCT_ID]=this.productId,e[Y.REVENUE_QUANTITY]=this.quantity,e[Y.REVENUE_PRICE]=this.price,e[Y.REVENUE_TYPE]=this.revenueType,e[Y.REVENUE_CURRENCY]=this.currency,e[Y.REVENUE]=this.revenue,e[Y.RECEIPT]=this.receipt,e[Y.RECEIPT_SIG]=this.receiptSig,e},e}();(f=Y||(Y={})).REVENUE_PRODUCT_ID="$productId",f.REVENUE_QUANTITY="$quantity",f.REVENUE_PRICE="$price",f.REVENUE_TYPE="$revenueType",f.REVENUE_CURRENCY="$currency",f.REVENUE="$revenue",f.RECEIPT="$receipt",f.RECEIPT_SIG="$receiptSig";var tU=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},tB=r(95775),t$=r.n(tB)()||tB,tq=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[],this._optOutListeners=[]}return e.prototype.register=function(e,t){var r,n;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return this.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=eT(),this.loggerProvider.warn("Plugin name is undefined. \n      Generating a random UUID for plugin name: ".concat(e.name,". \n      Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(r=e.type)&&void 0!==r?r:"enrichment",[4,null===(n=e.setup)||void 0===n?void 0:n.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var r;return(0,eA.mG)(this,void 0,void 0,function(){var n,i;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if(-1===(n=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[n],this.plugins.splice(n,1),[4,null===(r=i.teardown)||void 0===r?void 0:r.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this._clearOptOutListeners(),this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(r){t.queue.push([e,r]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i,o,s,a,l,u,c,d,p,f,h,g;return(0,eA.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,eA.CR)(e,1)[0],r=(0,eA.CR)(e,2)[1],this.loggerProvider.log("Timeline.apply: Initial event",t),n=this.plugins.filter(function(e){return"before"===e.type}),m.label=1;case 1:m.trys.push([1,6,7,8]),o=(i=(0,eA.XA)(n)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(s=o.value).execute)return[3,4];return[4,s.execute((0,eA.pi)({},t))];case 3:if(null===(a=m.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(s.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=a,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(s.name),"', event: ").concat(JSON.stringify(t))),m.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return p={error:m.sent()},[3,8];case 7:try{o&&!o.done&&(f=i.return)&&f.call(i)}finally{if(p)throw p.error}
25return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),m.label=9;case 9:m.trys.push([9,14,15,16]),c=(u=(0,eA.XA)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(s=c.value).execute)return[3,12];return[4,s.execute((0,eA.pi)({},t))];case 11:if(null===(a=m.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(s.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=a,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(s.name),"', event: ").concat(JSON.stringify(t))),m.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return h={error:m.sent()},[3,16];case 15:try{c&&!c.done&&(g=u.return)&&g.call(u)}finally{if(h)throw h.error}return[7];case 16:return d=this.plugins.filter(function(e){return"destination"===e.type}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(t))),Promise.all(d.map(function(e){var r=(0,eA.pi)({},t);return e.execute(r).catch(function(e){return tm(r,0,String(e))})})).then(function(e){var n=(0,eA.CR)(e,1)[0]||tm(t,100,"Event not tracked, no destination plugins on the instance");r(n)}),[2]}})})},e.prototype.flush=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t=this;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return r.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return r.sent(),[2]}})})},e.prototype.addOptOutListener=function(e){this._optOutListeners.push(e)},e.prototype._clearOptOutListeners=function(){this._optOutListeners=[]},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var r;null===(r=t.onIdentityChanged)||void 0===r||r.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var r;null===(r=t.onSessionIdChanged)||void 0===r||r.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var r;null===(r=t.onOptOutChanged)||void 0===r||r.call(t,e)}),this._callOptOutListeners(e)},e.prototype._callOptOutListeners=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:a.trys.push([0,7,8,9]),r=(t=(0,eA.XA)(this._optOutListeners)).next(),a.label=1;case 1:if(r.done)return[3,6];n=r.value,a.label=2;case 2:return a.trys.push([2,4,,5]),[4,n(e)];case 3:return a.sent(),[3,5];case 4:return i=a.sent(),this.loggerProvider.error("Error calling optOut listener",i),[3,5];case 5:return r=t.next(),[3,1];case 6:return[3,9];case 7:return o={error:a.sent()},[3,9];case 8:try{r&&!r.done&&(s=t.return)&&s.call(t)}finally{if(o)throw o.error}return[7];case 9:return[2]}})})},e.prototype.onReset=function(){this.plugins.forEach(function(e){var t;null===(t=e.onReset)||void 0===t||t.call(e)})},e}(),tG=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new tq(this),this.name=e}return e.prototype._init=function(e){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:t=this[e],this[e]=[],a.label=1;case 1:a.trys.push([1,8,9,10]),n=(r=(0,eA.XA)(t)).next(),a.label=2;case 2:if(n.done)return[3,7];if(!((i=(0,n.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return a.sent(),[3,6];case 4:return[4,i];case 5:a.sent(),a.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return o={error:a.sent()},[3,10];case 9:try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(o)throw o.error}
25return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:a.sent(),a.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,r){var n=(0,eA.pi)((0,eA.pi)((0,eA.pi)({},"string"==typeof e?{event_type:e}:e),r),t&&{event_properties:t});return this.userProperties=this.getOperationAppliedUserProperties(n.user_properties),e_(this.dispatch(n))},e.prototype.identify=function(e,t){var r=tD(e,t);return this.userProperties=this.getOperationAppliedUserProperties(r.user_properties),e_(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var i=tN(e,t,r,n);return e_(this.dispatch(i))},e.prototype.setGroup=function(e,t,r){var n=tj(e,t,r);return this.userProperties=this.getOperationAppliedUserProperties(n.user_properties),e_(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=(0,eA.pi)((0,eA.pi)({},t),{event_type:X.REVENUE,event_properties:e.getEventProperties()});return e_(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),e_())},e.prototype._addPlugin=function(e){return e_(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),e_())},e.prototype._removePlugin=function(e){return e_(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(tm(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t=this;return(0,eA.Jh)(this,function(r){return this.isReady?[2,this.process(e)]:[2,new Promise(function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t,r=null!==(t=this.userProperties)&&void 0!==t?t:{},n=(0,eA.pi)({},r);if(void 0===e)return n;var i={};return Object.keys(e).forEach(function(t){Object.values(Q).includes(t)||(i[t]=e[t])}),tL.forEach(function(t){if(Object.keys(e).includes(t)){var r=e[t];switch(t){case Q.CLEAR_ALL:Object.keys(n).forEach(function(e){delete n[e]});break;case Q.UNSET:Object.keys(r).forEach(function(e){delete n[e]});break;case Q.SET:Object.assign(n,r)}}}),Object.assign(n,i),n},e.prototype.process=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r;return(0,eA.Jh)(this,function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),this.config.optOut)return[2,tm(e,0,"Event skipped due to optOut config")];return e.event_type===X.IDENTIFY&&this.timeline.onIdentityChanged({userProperties:this.userProperties}),[4,this.timeline.push(e)];case 1:return 200===(t=n.sent()).code?this.config.loggerProvider.log(t.message):100===t.code?this.config.loggerProvider.warn(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return r=String(n.sent()),this.config.loggerProvider.error(r),[2,t=tm(e,0,r)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.config.optOut=!!e,this.timeline.onOptOutChanged(e))},e.prototype.flush=function(){return e_(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(void 0===t){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e));return}return t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),tz=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},tH=function(e){return tz(e,"attribution")},tV=function(e){return tz(e,"formInteractions")},tJ=function(e){return tz(e,"pageViews")},tZ=function(e){return tz(e,"sessions")},tW=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},tK=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},tQ=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.frustrationInteractions||"object"==typeof e.frustrationInteractions)},tX=function(e){if(tK(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},tY=function(e){if(tQ(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.frustrationInteractions)return e.autocapture.frustrationInteractions},t0=function(e){var t;if(tW(e.autocapture)){var r=void 0;return"object"==typeof e.autocapture&&"object"==typeof e.autocapture.
vendor: 18,672 bytes, line 25
25networkTracking?r=e.autocapture.networkTracking:e.networkTrackingOptions&&(r=e.networkTrackingOptions),(0,eA.pi)((0,eA.pi)({},r),{captureRules:null===(t=null==r?void 0:r.captureRules)||void 0===t?void 0:t.map(function(t){var r,n,i;if((null===(r=t.urls)||void 0===r?void 0:r.length)&&(null===(n=t.hosts)||void 0===n?void 0:n.length)){var o=JSON.stringify(t.hosts),s=JSON.stringify(t.urls);return null===(i=e.loggerProvider)||void 0===i||i.warn("Found network capture rule with both urls='".concat(s,"' and hosts='").concat(o,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),(0,eA.pi)((0,eA.pi)({},t),{hosts:void 0})}return t})})}},t1=function(e){var t,r=function(){return!1},n=void 0,i=e.pageCounter;return tJ(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:i}},t2=function(e){return tH(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.attribution&&"object"==typeof e.defaultTracking.attribution?(0,eA.pi)({},e.defaultTracking.attribution):{}},t3=function(e){if(tV(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&"object"==typeof e.defaultTracking.formInteractions)return e.defaultTracking.formInteractions},t4=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,o=n.args,s=n.resolve,a=e&&e[i];if("function"==typeof a){var l=a.apply(e,o);"function"==typeof s&&s(null==l?void 0:l.promise)}}return e},t5=function(e){return e&&void 0!==e._q},t6=function(){if("undefined"==typeof navigator)return"";var e,t,r,n,i=navigator.userLanguage;return null!==(n=null!==(r=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==r?r:i)&&void 0!==n?n:""},t8="2.38.1",t7="amplitude-ts",t9=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(t7,"/").concat(t8),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,r;return(0,eA.mG)(this,void 0,void 0,function(){var n,i,o;return(0,eA.Jh)(this,function(s){return n=new Date().getTime(),i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,o=null!==(r=e.event_id)&&void 0!==r?r:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=n),[2,(0,eA.pi)((0,eA.pi)((0,eA.pi)((0,eA.pi)((0,eA.pi)((0,eA.pi)((0,eA.pi)((0,eA.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:n},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:t6()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:eT(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:o,library:this.library,user_agent:this.userAgent})]})})},e}(),re=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return[4,this.get(e)];case 1:return[2,(t=r.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),rt=function(){var e,t=(0,eC.l)();return null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.locks},rr=function(){function e(e,t){void 0===t&&(t={}),this.options=(0,eA.pi)({},e),this.config=t}return e.prototype.isEnabled=function(){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i=this;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:return t="AMP_TEST",r=new e((0,eA.pi)({},this.options)),n=String(Date.now()),[4,r.transaction(t,function(e){var r,o;try{e.set(n);var s=e.get()===n;return!s&&i.config.diagnosticsClient&&(null===(r=i.config.diagnosticsClient)||void 0===r||r.recordEvent("cookies.isEnabled.failure",{reason:"Test Value mismatch",testKey:t,testValue:n,sync:!0})),s}catch(e){if(i.config.diagnosticsClient){var a=e instanceof Error?e.message:String(e);null===(o=i.config.diagnosticsClient)||void 0===o||o.recordEvent("cookies.isEnabled.failure",{reason:"Cookie getter/setter failed",testKey:t,testValue:n,error:a,sync:!0})}return!1}finally{e.set(null)}})];case 1:return[2,o.sent()]}})})},e.prototype.get=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return[4,this.getRaw(e)];case 1:return t=r.sent(),[2,this.decodeCookieValue(e,t)]}})})},e.prototype.decodeCookieValue=function(e,t){if(t)try{var r=ro(t);if(void 0===r){console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(t));return}return JSON.parse(r)}catch(r){console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(t));return}},e.prototype.getSync=function(e){var t=this.getRawSync(e);return this.decodeCookieValue(e,t)},e.prototype.getRaw=function(e){var t,r;return(0,eA.mG)(this,void 0,void 0,function(){var n,i,o,s,a,l,u,c;return(0,eA.Jh)(this,function(d){switch(d.label){case 0:n=(0,eC.l)(),d.label=1;case 1:if(d.trys.push([1,4,,5]),!(i=null==n?void 0:n.cookieStore))return[3,3];return[4,i.getAll(e)];case 2:if(o=d.sent()){o.length>1&&(null===(t=this.config.diagnosticsClient)||void 0===t||t.recordEvent("cookies.duplicate",{cookies:o.map(function(e){return e.domain})}),null===(r=this.config.diagnosticsClient)||void 0===r||r.increment("cookies.duplicate.occurrence.cookieStore"));try{for(a=(s=(0,eA.XA)(o)).next();!a.done;a=s.next())if(l=a.value,rs(l.domain,this.options.domain))return[2,l.value]}catch(e){u={error:e}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(u)throw u.error}}}d.label=3;case 3:return[3,5];case 4:return d.sent(),[3,5];case 5:return[2,this.getRawSync(e)]}})})},e.prototype.getRawSync=function(e){var t,r,n=this,i=(0,eC.l)(),o=(null!==(r=null===(t=null==i?void 0:i.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==r?r:[]).filter(function(t){return 0===t.indexOf(e+"=")}),s=void 0,a=this.config.duplicateResolverFn;if("function"==typeof a&&o.length>1&&(s=o.find(function(t){var r;try{var i=a(t.substring(e.length+1));return i||null===(r=n.config.diagnosticsClient)||void 0===r||r.increment("cookies.duplicate.occurrence.document.cookie"),i}catch(e){return!1}})),s||(s=o[0]),s)return s.substring(e.length+1)},e.prototype.set=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return this.setSync(e,t),[2]})})},e.prototype.setSync=function(e,t){var r;try{var n=null!==(r=this.options.expirationDays)&&void 0!==r?r:0,i=null!==t?n:-1,o=void 0;if(i){var s=new Date;s.setTime(s.getTime()+864e5*i),o=s}var a="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t))));o&&(a+="; expires=".concat(o.toUTCString())),a+="; path=/",this.options.domain&&(a+="; domain=".concat(this.options.domain)),this.options.secure&&(a+="; Secure"),this.options.sameSite&&(a+="; SameSite=".concat(this.options.sameSite));var l=(0,eC.l)();(null==l?void 0:l.document)&&(l.document.cookie=a)}catch(t){var u=t instanceof Error?t.message:String(t);console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}},e.prototype.remove=function(e){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return[2]})})},e.isDomainWritable=function(t){return(0,eA.mG)(this,void 0,void 0,function(){var r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:if(e.cachedTlds[t])return[2,!0];r="AMP_TLDTEST",n=new e({domain:"."+t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,n.transaction(r,function(r){if(e.cachedTlds[t])return!0;try{r.set(1);var n=!!r.get();return n&&(e.cachedTlds[t]=!0),n}finally{r.set(null)}})];case 2:return[2,!!i.sent()];case 3:return i.sent(),[2,!1];case 4:return[2]}})})},e.prototype.transaction=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){var r,n,i=this;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if(r=rt(),n=function(){return t({get:function(){return i.getSync(e)},set:function(t){return i.setSync(e,t)}})},!r)return[2,n()];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r.request("com.amplitude:cookie-lock:".concat(e),n)];case 2:return[2,o.sent()];case 3:return o.sent(),[2,n()];case 4:return[2]}})})},e.cachedTlds={},e}(),rn=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},ri=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},ro=function(e){var t;return null!==(t=rn(e))&&void 0!==t?t:ri(e)},rs=function(e,t){if(""===e&&""===t)return!0;if(!e||!t)return!1;var r=e.startsWith(".")?e.substring(1):e,n=t.startsWith(".")?t.substring(1):t;return r.toLowerCase()===n.toLowerCase()},ra=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),["AMP",t,e.substring(0,r)].filter(Boolean).join("_")},rl=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return i.sent(),[4,r.get(n)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=r.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var r;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(n){try{null===(r=this.storage)||void 0===r||r.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),ru=function(e){function t(t){var r,n,i,o=this;try{i=null===(r=(0,eC.l)())||void 0===r?void 0:r.localStorage}catch(e){null===(n=null==t?void 0:t.loggerProvider)||void 0===n||n.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return(0,eA.ZT)(t,e),t.prototype.set=function(t,r){var n;return(0,eA.mG)(this,void 0,void 0,function(){var i;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(r)&&r.length>1e3))return[3,2];return i=r.length-1e3,[4,e.prototype.set.call(this,t,r.slice(0,1e3))];case 1:return o.sent(),null===(n=this.loggerProvider)||void 0===n||n.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(rl),rc=function(e){function t(){var t;return e.call(this,null===(t=(0,eC.l)())||void 0===t?void 0:t.sessionStorage)||this}return(0,eA.ZT)(t,e),t}(rl);function rd(){return"undefined"!=typeof CompressionStream}function rp(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r;return(0,eA.Jh)(this,function(n){switch(n.label){case 0:if(void 0===(t=CompressionStream))return[2,void 0];n.label=1;case 1:return n.trys.push([1,3,,4]),r=new Blob([e]).stream().pipeThrough(new t("gzip")),[4,new Response(r).arrayBuffer()];case 2:return[2,n.sent()];case 3:return n.sent(),[2,void 0];case 4:return[2]}})})}var rf=function(){function e(){}return e.prototype.send=function(e,t,r){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,i,o,s,a,l,u,c,d,p,f,h,g,m,v,y,b,w,S,A,_=e.code||0,E=this.buildStatus(_);switch(E){case W.Success:return{status:E,statusCode:_,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(r=e.payload_size_bytes)&&void 0!==r?r:0,serverUploadTime:null!==(n=e.server_upload_time)&&void 0!==n?n:0}};case W.Invalid:return{status:E,statusCode:_,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(a=e.events_with_missing_fields)&&void 0!==a?a:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(u=e.eps_threshold)&&void 0!==u?u:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(p=e.silenced_events)&&void 0!==p?p:[],throttledDevices:null!==(f=e.throttled_devices)&&void 0!==f?f:{},throttledEvents:null!==(h=e.throttled_events)&&void 0!==h?h:[]}};case W.PayloadTooLarge:return{status:E,statusCode:_,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case W.RateLimit:return{status:E,statusCode:_,body:{error:null!==(m=e.error)&&void 0!==m?m:"",epsThreshold:null!==(v=e.eps_threshold)&&void 0!==v?v:0,throttledDevices:null!==(y=e.throttled_devices)&&void 0!==y?y:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(S=e.exceeded_daily_quota_users)&&void 0!==S?S:{},throttledEvents:null!==(A=e.throttled_events)&&void 0!==A?A:[]}};case W.Timeout:default:return{status:E,statusCode:_}}},e.prototype.buildStatus=function(e){return tS(e)?W.Success:429===e?W.RateLimit:413===e?W.PayloadTooLarge:408===e?W.Timeout:e>=400&&e<500?W.Invalid:e>=500?W.Failed:W.Unknown},e}(),rh=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.state={done:4},r.customHeaders=t,r}return(0,eA.ZT)(t,e),t.prototype.send=function(e,t,r){return void 0===r&&(r=!1),(0,eA.mG)(this,void 0,void 0,function(){var n=this;return(0,eA.Jh)(this,function(i){return[2,new Promise(function(i,o){"undefined"==typeof XMLHttpRequest&&o(Error("XHRTransport is not supported."));var s=new XMLHttpRequest;s.open("POST",e,!0),s.onreadystatechange=function(){if(s.readyState===n.state.done){var e=s.responseText;try{i(n.buildResponse(JSON.parse(e)))}catch(e){i(n.buildResponse({code:s.status}))}}};var a={"Content-Type":"application/json",Accept:"*/*"},l=JSON.stringify(t),u=r&&l.length>=2048&&rd(),c=function(e){var t,r;a=(0,eA.pi)((0,eA.pi)({},n.customHeaders),a);try{for(var i=(0,eA.XA)(Object.entries(a)),o=i.next();!o.done;o=i.next()){var l=(0,eA.CR)(o.value,2),u=l[0],c=l[1];s.setRequestHeader(u,c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}s.send(e)};(0,eA.mG)(n,void 0,void 0,function(){var e;return(0,eA.Jh)(this,function(t){switch(t.label){case 0:if(!u)return[3,2];return[4,rp(l)];case 1:return(e=t.sent())?(a["Content-Encoding"]="gzip",c(e)):c(l),[3,3];case 2:c(l),t.label=3;case 3:return[2]}})}).catch(o)})]})})},t}(rf),rg=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.customHeaders=t,r}return(0,eA.ZT)(t,e),t.prototype.send=function(e,t,r){return void 0===r&&(r=!1),(0,eA.mG)(this,void 0,void 0,function(){var n,i,o,s,a,l,u,c;return(0,eA.Jh)(this,function(d){switch(d.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");if(n=JSON.stringify(t),i=r&&n.length>=2048&&rd(),o=n,s={"Content-Type":"application/json",Accept:"*/*"},!i)return[3,2];return[4,rp(n)];case 1:(a=d.sent())&&(s["Content-Encoding"]="gzip",o=a),d.label=2;case 2:return l={headers:s=(0,eA.pi)((0,eA.pi)({},this.customHeaders),s),body:o,method:"POST"},[4,fetch(e,l)];case 3:return[4,(u=d.sent()).text()];case 4:c=d.sent();try{return[2,this.buildResponse(JSON.parse(c))]}catch(e){return[2,this.buildResponse({code:u.status})]}return[2]}})})},t}(rf),rm=function(e){function t(){return e.call(this)||this}return(0,eA.ZT)(t,e),t.prototype.send=function(e,t,r){return void 0===r&&(r=!1),(0,eA.mG)(this,void 0,void 0,function(){var r=this;return(0,eA.Jh)(this,function(n){return[2,new Promise(function(n,i){var o=(0,eC.l)();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var s=JSON.stringify(t);if(o.navigator.sendBeacon(e,s))return n(r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:s.length,server_upload_time:Date.now()}));return n(r.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(rf),rv=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},ry=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}}
25,rb="[Amplitude]",rw="".concat(rb," Form Started"),rS="".concat(rb," Form Submitted"),rA="".concat(rb," File Downloaded"),r_="session_start",rE="session_end",rk="".concat(rb," File Extension"),rx="".concat(rb," File Name"),rC="".concat(rb," Link ID"),rI="".concat(rb," Link Text"),rT="".concat(rb," Link URL"),rO="".concat(rb," Form ID"),rR="".concat(rb," Form Name"),rP="".concat(rb," Form Destination"),rM="cookie",rL={always:"always",ifEmptyCampaign:"ifEmptyCampaign"},rD=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},rN=function(e,t,r,n,i,o){void 0===i&&(i=!0),e.referrer;var s=e.referring_domain,a=(0,eA._T)(e,["referrer","referring_domain"]),l=t||{},u=(l.referrer,l.referring_domain),c=(0,eA._T)(l,["referrer","referring_domain"]),d=r.excludeInternalReferrers;if(d){var p=rB(d,n);if(!(p instanceof TypeError)&&e.referring_domain&&rG(e.referring_domain,o)&&("always"===p||"ifEmptyCampaign"===p&&Object.values((0,eA.pi)((0,eA.pi)({},e),{referring_domain:void 0,referrer:void 0})).every(function(e){return!e})))return function(e,t,r){var n="This is not a new campaign because referring_domain=".concat(t," is on the same domain as the current page and it is configured to exclude internal referrers");"always"===e?r.debug(n):"ifEmptyCampaign"===e&&r.debug("".concat(n," with empty campaign parameters"))}(p,e.referring_domain,n),!1}if(rj(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var f=JSON.stringify(a)!==JSON.stringify(c),h=rD(s||"")!==rD(u||""),g=!t||f||h;return g?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),g},rj=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},rF=function(e,t){var r=t.startsWith(".")?t:".".concat(t);return!!(e.startsWith(".")?e:".".concat(e)).endsWith(r)},rU=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},rB=function(e,t){if(!0===e)return rL.always;if("object"==typeof e){var r=e.condition;if("string"==typeof r&&Object.keys(rL).includes(r))return r;if(void 0===r)return rL.always}var n="Invalid configuration provided for attribution.excludeInternalReferrers: ".concat(JSON.stringify(e));return t.error(n),TypeError(n)},r$=["ac.in","ac.jp","ac.kr","ac.th","ac.uk","ac.za","appspot.com","asn.au","azurewebsites.net","cloudfront.net","myshopify.com","blogspot.com","co.ca","co.in","co.jp","co.kr","co.nz","co.th","co.uk","co.za","com.ar","com.au","com.br","com.cn","com.hk","com.in","com.jp","com.kr","com.mx","com.pl","com.sg","com.tr","com.tw","ed.jp","edu.au","edu.br","edu.cn","edu.hk","edu.sg","edu.th","edu.tr","edu.tw","firebaseapp.com","fly.dev","gc.ca","geek.nz","github.io","gitlab.io","go.jp","go.kr","go.th","gob.ar","gob.mx","gov.au","gov.br","gov.cn","gov.hk","gov.in","gov.pl","gov.sg","gov.tr","gov.tw","gov.uk","gov.za","govt.nz","gr.jp","herokuapp.com","id.au","idv.hk","iwi.nz","lg.jp","ltd.uk","maori.nz","me.uk","mil.kr","ne.jp","ne.kr","net.au","net.br","net.cn","net.hk","net.in","net.nz","net.pl","net.sg","net.tr","net.tw","net.za","onrender.com","or.jp","or.kr","or.th","org.ar","org.au","org.br","org.cn","org.hk","org.in","org.mx","org.nz","org.pl","org.sg","org.tw","org.uk","org.za","pages.dev","pe.kr","plc.uk","re.kr","res.in","sch.uk","vercel.app","netlify.app","workers.dev"],rq=function(e){var t,r,n=e||(null===(r=null===(t=(0,eC.l)())||void 0===t?void 0:t.location)||void 0===r?void 0:r.hostname);if(!n)return"";var i=n.split("."),o=i[i.length-1],s=i[i.length-2];return(r$.find(function(e){return n.endsWith(".".concat(e))})&&(o=i[i.length-2]+"."+i[i.length-1],s=i[i.length-3]),s)?"".concat(s,".").concat(o):o},rG=function(e,t){var r=(0,eC.l)();return!!r&&rF(e,(t||"").trim()||rq(r.location.hostname))},rz=function(e){function t(t,r,n,i,o,s,a,l,u,c,d,p,f,h,g,m,v,y,b,w,S,A,_,E,k,x,C,I,T,O,R,P,M,L,D,N,j,F,U,B,$,q,G,z,H){void 0===n&&(n=new re),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===d&&(d=rM),void 0===m&&(m=new ek),void 0===v&&(v=Z.Warn),void 0===b&&(b=!1),void 0===w&&(w=!1),void 0===_&&(_=""),void 0===E&&(E="US"),void 0===C&&(C=18e5),void 0===I&&(I=new ru({loggerProvider:m})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===O&&(O="fetch"),void 0===R&&(R=!1),void 0===P&&(P=!0),void 0===F&&(F=!0),void 0===U&&(U=0),void 0===G&&(G=!1),void 0===z&&(z=!1);var V,J=this;(J=e.call(this,{apiKey:t,storageProvider:I,transportProvider:rJ(O)})||this).apiKey=t,J.appVersion=r,J.cookieOptions=i,J.defaultTracking=o,J.autocapture=s,J.flushIntervalMillis=l,J.flushMaxRetries=u,J.flushQueueSize=c,J.identityStorage=d,J.ingestionMetadata=p,J.instanceName=f,J.loggerProvider=m,J.logLevel=v,J.minIdLength=y,J.offline=b,J.partnerId=S,J.plan=A,J.serverUrl=_,J.serverZone=E,J.sessionTimeout=C,J.storageProvider=I,J.trackingOptions=T,J.transport=O,J.useBatch=R,J.fetchRemoteConfig=P,J.networkTrackingOptions=N,J.identify=j,J.enableDiagnostics=F,J.diagnosticsSampleRate=U,J.diagnosticsClient=B,J.remoteConfig=$,J.topLevelDomain=q,J.enableRequestBodyCompression=G,J._enableRequestBodyCompressionExperimental=z,J.customEnrichment=H,J.version=t8,J._optOut=!1,J._cookieStorage=n,J.deviceId=a,J.lastEventId=h,J.lastEventTime=g,J.optOut=w,J.deferredSessionId=x,J.sessionId=k,J.pageCounter=L,J.userId=M,J.debugLogsEnabled=D,J.loggerProvider.enable(D?Z.Debug:J.logLevel),J.networkTrackingOptions=N,J.identify=j,J.enableDiagnostics=F,J.diagnosticsSampleRate=U,J.diagnosticsClient=B;var W=null!==(V=null==$?void 0:$.fetchRemoteConfig)&&void 0!==V?V:P;return J.remoteConfig=J.remoteConfig||{},J.remoteConfig.fetchRemoteConfig=W,J.fetchRemoteConfig=W,J.topLevelDomain=q||rq(),J}return(0,eA.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())}
vendor: 7,042 bytes, line 25
25,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,void 0!==e&&void 0!==this._deferredSessionId&&(this._deferredSessionId=void 0),this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deferredSessionId",{get:function(){return this._deferredSessionId},set:function(e){this._deferredSessionId!==e&&e!==this.sessionId&&(this._deferredSessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,deferredSessionId:this._deferredSessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof rr&&(e.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(ra(this.apiKey),e)},t}(ty),rH=function(e,t,r){switch(void 0===e&&(e=rM),void 0===t&&(t={}),e){case"localStorage":return new ru;case"sessionStorage":return new rc;case"none":return new re;default:return new rr((0,eA.pi)((0,eA.pi)({},t),{expirationDays:t.expiration}),r)}},rV=function(e){var t,r;return void 0===e&&(e={}),(null===(t=e.remoteConfig)||void 0===t?void 0:t.fetchRemoteConfig)===!0||(null===(r=e.remoteConfig)||void 0===r?void 0:r.fetchRemoteConfig)!==!1&&!1!==e.fetchRemoteConfig},rJ=function(e){var t="object"==typeof e?e.type:e,r="object"==typeof e?e.headers:void 0;return"xhr"===t?new rh(r):"beacon"===t?new rm:new rg(r)},rZ="data-amp-mask",rW="*****",rK=/\b(?:\d[ -]*?){13,16}\b/,rQ=/(\d{3}-?\d{2}-?\d{4})/g,rX=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,rY=function(e,t){if(void 0===t&&(t=[]),"string"!=typeof e)return"";var r,n,i=e;i=(i=(i=i.replace(rK,rW)).replace(rQ,rW)).replace(rX,rW);try{for(var o=(0,eA.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;try{i=i.replace(a,rW)}catch(e){}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},r0=function(e){if("undefined"==typeof document||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(rZ)?rW:e?e(document.title):document.title},r1=function(){function e(){}return e.prototype.parse=function(){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return[2,(0,eA.pi)((0,eA.pi)((0,eA.pi)((0,eA.pi)({},tl),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=eG();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!==(t=null===(e=r.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=eG();return(e={})[e8]=t[e8],e[e7]=t[e7],e[e9]=t[e9],e[te]=t[te],e[tt]=t[tt],e[tr]=t[tr],e[tn]=t[tn],e[ti]=t[ti],e[to]=t[to],e[ts]=t[ts],e[ta]=t[ta],e},e}(),r2=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},r3="AMP_PAGE_VIEW",r4=function(e){void 0===e&&(e={});var t,r,n,i=(0,eC.l)(),o=void 0,s=!1,a=e.trackOn,l=e.trackHistoryChanges,u=e.eventType,c=void 0===u?"[Amplitude] Page Viewed":u,d=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==o||o.error("Malformed URI sequence: ",e)}return t},p=function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){var t,r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:return t=d("undefined"!=typeof location&&location.href||""),n={event_type:c},r=[{}],[4,r5()];case 1:return[2,(n.event_properties=eA.pi.apply(void 0,[eA.pi.apply(void 0,r.concat([i.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":t,"[Amplitude] Page Path":"undefined"!=typeof location&&d(location.pathname)||"","[Amplitude] Page Title":r0(rY),"[Amplitude] Page URL":t.split("?")[0],"[Amplitude] Page View ID":e}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,g=function(){(0,eA.mG)(void 0,void 0,void 0,function(){var e,r,i,s,a;return(0,eA.Jh)(this,function(u){switch(u.label){case 0:if(r=r8(l,e=location.href,h||"")&&f(),h=e,!r)return[3,4];if(i=void 0,n&&(i=eT(),n.set(r3,{pageViewId:i})),null==o||o.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return a=(s=t).track,[4,p(i)];case 2:a.apply(s,[u.sent()]),u.label=3;case 3:u.label=4;case 4:return[2]}})})};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,eA.mG)(void 0,void 0,void 0,function(){var l,u,c;return(0,eA.Jh)(this,function(d){switch(d.label){case 0:if(t=a,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),s=!0,i){try{n=new rl(i.sessionStorage)}catch(e){null==o||o.debug("sessionStorage is not available in this environment.")}i.addEventListener("popstate",g),i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,r){var n=(0,eA.CR)(r,3),i=n[0],o=n[1],a=n[2];e.apply(t,[i,o,a]),s&&g()}})}if(!f())return[3,2];return o.log("Tracking page view event"),l=void 0,n&&(l=eT(),n.set(r3,{pageViewId:l})),c=(u=t).track,[4,p(l)];case 1:c.apply(u,[d.sent()]),d.label=2;case 2:return[2]}})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){var t,i,s;return(0,eA.Jh)(this,function(l){switch(l.label){case 0:if(!("attribution"===a&&r6(e)))return[3,4];
25if(null==o||o.log("Enriching campaign event to page view event with campaign parameters"),t=void 0,!n)return[3,2];return[4,n.get(r3)];case 1:t=null==(i=l.sent())?void 0:i.pageViewId,l.label=2;case 2:return[4,p(t)];case 3:s=l.sent(),e.event_type=s.event_type,e.event_properties=(0,eA.pi)((0,eA.pi)({},e.event_properties),s.event_properties),l.label=4;case 4:return r&&e.event_type===c&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,eA.pi)((0,eA.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",g),s=!1),[2]})})}}},r5=function(){return(0,eA.mG)(void 0,void 0,void 0,function(){var e;return(0,eA.Jh)(this,function(t){switch(t.label){case 0:return e=r2,[4,new r1().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},r6=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,r=t[Q.SET]||{},n=t[Q.UNSET]||{},i=(0,eA.ev)((0,eA.ev)([],(0,eA.CR)(Object.keys(r)),!1),(0,eA.CR)(Object.keys(n)),!1);return Object.keys(tl).every(function(e){return i.includes(e)})}return!1},r8=function(e,t,r){if("pathOnly"===e){if(""==r)return!0;var n=new URL(t),i=new URL(r);return n.origin+n.pathname!==i.origin+i.pathname}return t!==r},r7=function(){var e,t,r=[],n=function(e,t,n){e.addEventListener(t,n),r.push({element:e,type:t,handler:n})},i=function(){r.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),r=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(r,i){return(0,eA.mG)(void 0,void 0,void 0,function(){var o,s;return(0,eA.Jh)(this,function(a){return t=t3(r),o=function(){if(!i){r.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var o=new WeakSet,s=function(e){if(!o.has(e)){o.add(e);var s=!1;n(e,"change",function(){var t,r=ne(e);s||i.track(rw,((t={})[rO]=r9(e.id),t[rR]=r9(e.name),t[rP]=r,t)),s=!0}),n(e,"submit",function(n){var o,a,l=ne(e);if(s||i.track(rw,((o={})[rO]=r9(e.id),o[rR]=r9(e.name),o[rP]=l,o)),s=!0,(null==t?void 0:t.shouldTrackSubmit)!==void 0){if("function"==typeof t.shouldTrackSubmit&&"undefined"!=typeof SubmitEvent&&n instanceof SubmitEvent)try{if(!t.shouldTrackSubmit(n))return}catch(e){r.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else r.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.")}i.track(rS,((a={})[rO]=r9(e.id),a[rR]=r9(e.name),a[rP]=l,a)),s=!1})}};Array.from(document.getElementsByTagName("form")).forEach(s),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&s(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(s)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?o():(s=(0,eC.l)())?s.addEventListener("load",o):r.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return null==e||e.disconnect(),i(),[2]})})}}},r9=function(e){if("string"==typeof e)return e},ne=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},nt=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})},n=function(){t.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,n){return(0,eA.mG)(void 0,void 0,void 0,function(){var i,o;return(0,eA.Jh)(this,function(s){return i=function(){if(!n){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),s=null==i?void 0:i[1];s&&r(e,"click",function(){var r;s&&n.track(rA,((r={})[rk]=s,r[rx]=t.pathname,r[rC]=e.id,r[rI]=e.text,r[rT]=e.href,r))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;
vendor: 8,234 bytes, line 25
25Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=(0,eC.l)())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return null==e||e.disconnect(),n(),[2]})})}}},nr=!1,nn=function(e){nr||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n  defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),nr=!0)},ni=function(){var e=(0,eC.l)(),t=[],r=function(r,n){(null==e?void 0:e.addEventListener)&&(null==e||e.addEventListener(r,n),t.push({type:r,handler:n}))},n=function(){t.forEach(function(t){var r=t.type,n=t.handler;null==e||e.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(n){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,r("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),r("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return n(),[2]})})}}};function no(e,t,r){var n,i,o=[];try{for(var s=(0,eA.XA)(null!=t?t:[]),a=s.next();!a.done;a=s.next()){var l=a.value;try{o.push(new RegExp(l))}catch(e){r.loggerProvider.warn("Invalid regex pattern: ".concat(l),e)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return e.concat(o)}var ns=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],na="data-amp-track-",nl=["div","span","h1","h2","h3","h4","h5","h6"],nu=r(49329),nc=r.n(nu);function nd(e,t){return new(nc())(function(r){e.subscribe({next:function(e){t(e).then(function(e){return r.next(e)}).catch(function(e){return r.error(e)})},error:function(e){r.error(e)},complete:function(){r.complete()}})})}function np(e,t){return new(nc())(function(r){var n=!1,i=new Set,o=function(){var e,t;n=!0;try{for(var r=(0,eA.XA)(i),o=r.next();!o.done;o=r.next()){var s=o.value;try{s.unsubscribe()}catch(e){}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.clear()},s=function(e){var t=e.subscribe({next:function(e){n||r.next(e)},error:function(e){n||(n=!0,r.error(e),o())},complete:function(){i.delete(t),n||0!==i.size||(r.complete(),o(),n=!0)}});i.add(t)};return s(e),s(t),o})}function nf(e){var t=new Set,r=null;function n(){null==r||r.unsubscribe(),r=null,t.clear()}return new(nc())(function(i){return t.add(i),null===r&&(r=e.subscribe({next:function(e){try{for(var r,n,i,o=(0,eA.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;null===(i=a.next)||void 0===i||i.call(a,e)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},error:function(e){try{for(var r,i,o,s=(0,eA.XA)(t),a=s.next();!a.done;a=s.next()){var l=a.value;null===(o=l.error)||void 0===o||o.call(l,e)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}n()},complete:function(){try{for(var e,r,i,o=(0,eA.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;null===(i=a.complete)||void 0===i||i.call(a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}n()}})),function(){t.delete(i),0===t.size&&r&&(r.unsubscribe(),r=null)}})}var nh="https://app.amplitude.com",ng={US:nh,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},nm="__AMPLITUDE_MESSENGER_INSTANCE__",nv="__AMPLITUDE_MESSENGER__",ny=function(){function e(e){var t=(void 0===e?{}:e).origin;this[ee]=!0,this.isSetup=!1,this.messageHandler=null,this.requestCallbacks={},this.actionHandlers=new Map,this.pendingMessages=new Map,this.scriptLoadPromises=new Map,this.endpoint=void 0===t?nh:t}return e.prototype.notify=function(e){var t,r,n,i;null===(r=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===r||r.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(n=window.opener)||void 0===n?void 0:n.postMessage)||void 0===i||i.call(n,e,this.endpoint)},e.prototype.sendRequest=function(e,t,r){var n=this;void 0===r&&(r={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,s){n.requestCallbacks[i]={resolve:t,reject:s},n.notify(o),r.timeout>0&&setTimeout(function(){s(Error("".concat(e," timed out (id: ").concat(i,")"))),delete n.requestCallbacks[i]},r.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.registerActionHandler=function(e,t){this.actionHandlers.has(e)&&(null===(o=null===(i=this.logger)||void 0===i?void 0:i.warn)||void 0===o||o.call(i,"Overwriting existing action handler for: ".concat(e))),this.actionHandlers.set(e,t);var r,n,i,o,s=this.pendingMessages.get(e);if(s){this.pendingMessages.delete(e);try{for(var a=(0,eA.XA)(s),l=a.next();!l.done;l=a.next()){var u=l.value;t(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}},e.prototype.loadScriptOnce=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:if(t=this.scriptLoadPromises.get(e))return[2,t];r=(document.querySelector('script[src="'.concat(CSS.escape(e),'"]'))?Promise.resolve({status:!0}):new Promise(function(t,r){var n;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",function(){t({status:!0})},{once:!0}),i.addEventListener("error",function(){r({status:!1,message:"Failed to load the script ".concat(e)})}),null===(n=document.head)||void 0===n||n.appendChild(i)}catch(e){r(e)}})).then(function(){}),this.scriptLoadPromises.set(e,r),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r];case 2:return i.sent(),[3,4];case 3:throw n=i.sent(),this.scriptLoadPromises.delete(e),n;case 4:return[2]}})})},e.prototype.setup=function(e){var t,r,n=this,i=void 0===e?{}:e,o=i.logger,s=i.endpoint;o&&(this.logger=o),s&&this.endpoint===nh&&(this.endpoint=s),this.isSetup||(this.isSetup=!0,null===(r=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===r||r.call(t,"Setting up messenger"),this.messageHandler=function(e){if(null===(r=null===(t=n.logger)||void 0===t?void 0:t.debug)||void 0===r||r.call(t,"Message received: ",JSON.stringify(e)),n.endpoint===e.origin){var t,r,i,o,s,a=e.data,l=null==a?void 0:a.action;if(l){if("id"in a&&a.id)null===(o=null===(i=n.logger)||void 0===i?void 0:i.debug)||void 0===o||o.call(i,"Received Response to previous request: ",JSON.stringify(e)),n.handleResponse(a
25);else{if("ping"===l){n.notify({action:"pong"});return}var u=n.actionHandlers.get(l);if(u)u(a.data);else{var c=null!==(s=n.pendingMessages.get(l))&&void 0!==s?s:[];c.push(a.data),n.pendingMessages.set(l,c)}}}}},window.addEventListener("message",this.messageHandler),this.notify({action:"page-loaded"}))},e.prototype.destroy=function(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.isSetup=!1,this.actionHandlers.clear(),this.pendingMessages.clear(),this.requestCallbacks={},this.scriptLoadPromises.clear();var e=(0,eC.l)();(null==e?void 0:e[nv])===this&&delete e[nv]},e}();function nb(e){var t=(0,eC.l)(),r=null==t?void 0:t[nv];if("object"==typeof r&&null!==r&&nm in r&&!0===r[nm])return r;var n=new ny(e);return t&&(t[nv]=n),n}ee=nm;var nw="__AMPLITUDE_BACKGROUND_CAPTURE__";function nS(e,t){if(!0!==e[nw]){e[nw]=!0;var r,n=null!==(r=null==t?void 0:t.scriptUrl)&&void 0!==r?r:"https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.3.js.gz",i=null,o=function(t,r){var n,i;"background-capture-complete"===t&&(null===(i=null===(n=e.logger)||void 0===n?void 0:n.debug)||void 0===i||i.call(n,"Background capture complete"),e.notify({action:"background-capture-complete",data:r}))};e.registerActionHandler("initialize-background-capture",function(){null===(r=null===(t=e.logger)||void 0===t?void 0:t.debug)||void 0===r||r.call(t,"Initializing background capture (external script)");var t,r,s=new URL(n,e.endpoint).toString();e.loadScriptOnce(s).then(function(){var t,r,n;null===(r=null===(t=e.logger)||void 0===t?void 0:t.debug)||void 0===r||r.call(t,"Background capture script loaded (external)"),i=null===(n=null==window?void 0:window.amplitudeBackgroundCapture)||void 0===n?void 0:n.call(window,{messenger:e,onBackgroundCapture:o}),e.notify({action:"background-capture-loaded"})}).catch(function(){var t;null===(t=e.logger)||void 0===t||t.warn("Failed to initialize background capture")})}),e.registerActionHandler("close-background-capture",function(){var e;null===(e=null==i?void 0:i.close)||void 0===e||e.call(i),i=null})}}var nA="1.25.1",n_="[Amplitude] Element Clicked",nE="[Amplitude] Element Tag",nk="[Amplitude] Element Text",nx="[Amplitude] Page URL",nC="[Amplitude] Viewport Height",nI="[Amplitude] Viewport Width",nT="[Amplitude] Page View ID",nO="data-amp-mask-attributes",nR=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},nP=function(e,t){var r=e;try{r=decodeURI(e)}catch(e){null==t||t.error("Malformed URI sequence: ",e)}return r},nM=["input","select","textarea"],nL=function(e,t){var r,n=null===(r=null==window?void 0:window.getComputedStyle)||void 0===r?void 0:r.call(window,e);return(null==n?void 0:n.getPropertyValue("cursor"))==="pointer"&&"click"===t},nD=function(e){var t=e.pageUrlAllowlist,r=e.pageUrlExcludelist;return!(r&&r.length>0&&nR(window.location.href,r))&&!!nR(window.location.href,t)},nN=function(e,t,r){return void 0===r&&(r=!1),function(n,i){var o,s,a=e.shouldTrackEventResolver,l=null===(s=null===(o=null==i?void 0:i.tagName)||void 0===o?void 0:o.toLowerCase)||void 0===s?void 0:s.call(o);if(!l)return!1;if(a)return a(n,i);if(!nD(e))return!1;var u=String(null==i?void 0:i.getAttribute("type"))||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}var c=nL(i,n);if(r&&c)return!0;if(t&&!t.some(function(e){var t;return!!(null===(t=null==i?void 0:i.matches)||void 0===t?void 0:t.call(i,e))}))return!1;switch(l){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:if(c)return!0;return"click"===n}}},nj=function(e){var t,r,n,i=null===(r=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===r?void 0:r.call(t),o=e instanceof HTMLElement&&(null===(n=e.getAttribute("contenteditable"))||void 0===n?void 0:n.toLowerCase())==="true";return!nM.includes(i)&&!o},nF=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null==n||"object"==typeof n&&0===Object.keys(n).length||"string"==typeof n&&0===n.trim().length||(t[r]=n),t},{})},nU=function(){var e;try{var t=(0,eC.l)(),r=null===(e=null==t?void 0:t.sessionStorage)||void 0===e?void 0:e.getItem("AMP_PAGE_VIEW");if(!r)return;var n=JSON.parse(r);if("string"==typeof n.pageViewId)return n.pageViewId}catch(e){}},nB=function(e,t){return e?t.some(function(t){var r;return null===(r=null==e?void 0:e.matches)||void 0===r?void 0:r.call(e,t)})?e:nB(null==e?void 0:e.parentElement,t):null},n$=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor};(h=et||(et={}))[h.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",h[h.MIDDLE=1]="MIDDLE",h[h.RIGHT=2]="RIGHT";var nq="__AMPLITUDE_VISUAL_TAGGING__",nG=(0,eC.l)(),nz=null==nG?void 0:nG.console,nH={},nV={},nJ=!1,nZ={addListener:function(e,t){if(!nz||"function"!=typeof nz[e]||!nV[e]&&(nV[e]=nz[e],nz[e]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{if(nH[e]&&!nJ){nJ=!0;var n=nH[e];
vendor: 4,088 bytes, line 25
25n&&n.forEach(function(r){try{r(e,t)}catch(e){}})}}catch(e){}return nJ=!1,nV[e].apply(nz,t)},0))return Error("Console override failed");nH[e]?nH[e].push(t):nH[e]=[t]},removeListener:function(e){var t,r;try{for(var n=(0,eA.XA)(Object.values(nH)),i=n.next();!i.done;i=n.next())for(var o=i.value,s=o.length-1;s>=0;s--)if(o[s]===e){o.splice(s,1);break}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},_restoreConsole:function(){var e,t;try{for(var r=(0,eA.XA)(Object.entries(nV)),n=r.next();!n.done;n=r.next()){var i=(0,eA.CR)(n.value,2),o=i[0],s=i[1];s&&(nz[o]=s)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}nV={},nH={}}},nW=(0,eC.l)(),nK=function(){return new(nc())(function(e){var t=new MutationObserver(function(t){e.next(t)});return document.body&&t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},nQ=function(e){return void 0===e&&(e="click"),new(nc())(function(t){var r,n=function(e){t.next(e)};return null===(r=(0,eC.l)())||void 0===r||r.document.addEventListener(e,n,{capture:!0}),function(){var t;null===(t=(0,eC.l)())||void 0===t||t.document.removeEventListener(e,n,{capture:!0})}})},nX=function(){var e=np(new(nc())(function(e){var t=function(t){if(t instanceof ErrorEvent){var r={kind:"error"};t.error instanceof Error||t.error instanceof DOMException?r=(0,eA.pi)((0,eA.pi)({},r),{message:t.error.message,stack:t.error.stack,filename:t.filename,lineNumber:t.lineno,columnNumber:t.colno}):"string"==typeof t.error&&(r.message=t.error),e.next(r)}};return nW.addEventListener("error",t),function(){nW.removeEventListener("error",t)}}),new(nc())(function(e){var t=function(t){var r={kind:"unhandledrejection"};t.reason instanceof Error||t.reason instanceof DOMException?(r.message=t.reason.message,r.stack=t.reason.stack):"string"==typeof t.reason&&(r.message=t.reason),e.next(r)};return nW.addEventListener("unhandledrejection",t),function(){nW.removeEventListener("unhandledrejection",t)}}));return np(e,new(nc())(function(e){var t=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=void 0;Array.isArray(r[0])&&"string"==typeof r[0][0]&&(i=r[0][0]),e.next({kind:"console",message:i})};return nZ.addListener("error",t),function(){nZ.removeListener(t)}}))},nY=function(e,t){try{if("[Amplitude] Element Text"===t.subprop_key)return"is"===t.subprop_op&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===t.subprop_key)return"autotrack css match"===t.subprop_op&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(e){console.error("Error matching event to filter",e)}return!1},n0=function(e,t){try{if("DOM_ELEMENT"===e.sourceType){var r=document.documentElement;if(e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector)return r.querySelector(e.selector);return r}}catch(e){}},n1=function(e,t,r){e.forEach(function(e){if("string"!=typeof e&&"ATTACH_EVENT_PROPERTY"===e.actionType){var n=r.extractDataFromDataSource(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=n}})},n2={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},n3=function(e){var t,r,n,i,o=Object.values(n2).reduce(function(e,t){return e[t]=new Set,e},{});if(!e)return o;try{for(var s=(0,eA.XA)(e),a=s.next();!a.done;a=s.next()){var l=a.value;try{try{for(var u=(n=void 0,(0,eA.XA)(l.definition)),c=u.next();!c.done;c=u.next()){var d=n2[c.value.event_type];d&&o[d].add(l.id)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}catch(e){console.warn("Skipping Labeled Event due to malformed definition",null==l?void 0:l.id,e)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o},n4=function(e){var t,r,n,i,o=new Map;try{for(var s=(0,eA.XA)(e),a=s.next();!a.done;a=s.next()){var l=a.value;try{for(var u=(n=void 0,(0,eA.XA)(l.conditions)),c=u.next();!c.done;c=u.next()){var d=c.value;
25if("LABELED_EVENT"===d.type){var p=d.match.eventId,f=o.get(p);f||(f=[],o.set(p,f)),f.push(l)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o},n5=function(e,t){var r,n,i,o,s=new Set;try{for(var a=(0,eA.XA)(e),l=a.next();!l.done;l=a.next()){var u=l.value,c=t.get(u.id);if(c)try{for(var d=(i=void 0,(0,eA.XA)(c)),p=d.next();!p.done;p=d.next()){var f=p.value;s.add(f)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return Array.from(s)},n6=function(){function e(e,t,r,n){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.dataExtractor=r,this.options=n}return e.prototype.evaluate=function(e){var t,r,n=this.options.pageActions;if(!n)return e;var i=n5(Array.from(this.groupedLabeledEvents[e.type]).map(function(e){return n.labeledEvents[e]}).filter(function(t){return t.definition.some(function(t){return n2[t.event_type]===e.type&&t.filters.every(function(t){return nY(e,t)})})}),this.labeledEventToTriggerMap);try{for(var o=(0,eA.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value;n1(a.actions,e,this.dataExtractor)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return e},e.prototype.update=function(e,t,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=r},e}(),n8=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",nO,rZ]),n7=["type"],n9=["svg","path","g"],ie=["password","hidden"],it=function(){function e(e,t){this.value=e,this.optimized=t}return e.prototype.toString=function(){return this.value},e}(),ir=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var r=[],n=e;n;){var i=ii(n,!!t,n===e);if(!i||(r.push(i),i.optimized))break;n=n.parentElement}return r.reverse(),r.join(" > ")},ii=function(e,t,r){if(e.nodeType!==Node.ELEMENT_NODE)return null;var n,i,o=e.getAttribute("id");if(t){if(o)return new it(c(o),!0);var s=e.tagName.toLowerCase();if("body"===s||"head"===s||"html"===s)return new it(s,!0)}var a=e.tagName.toLowerCase();if(o)return new it(a+c(o),!0);var l=e.parentNode;if(!l||l.nodeType===Node.DOCUMENT_NODE)return new it(a,!0);function u(e){var t=e.getAttribute("class");return t?t.split(/\s+/g).filter(Boolean).map(function(e){return"$"+e}):[]}function c(e){return"#"+CSS.escape(e)}for(var d=u(e),p=!1,f=!1,h=-1,g=-1,m=l.children,v=0;m&&(-1===h||!f)&&v<m.length;++v){var y=m[v];if(y.nodeType===Node.ELEMENT_NODE){if(g+=1,y===e){h=g;continue}if(!f&&y.tagName.toLowerCase()===a){p=!0;var b=new Set(d);if(!b.size){f=!0;continue}for(var w=u(y),S=0;S<w.length;++S){var A=w[S];if(b.has(A)&&(b.delete(A),!b.size)){f=!0;break}}}}}var _=a;if(r&&"input"===a.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(_+="[type="+CSS.escape(e.getAttribute("type")||"")+"]"),f)_+=":nth-child("+String(h+1)+")";else if(p)try{for(var E=(0,eA.XA)(d),k=E.next();!k.done;k=E.next()){var x=k.value;_+="."+CSS.escape(x.slice(1))}}catch(e){n={error:e}}finally{try{k&&!k.done&&(i=E.return)&&i.call(E)}finally{if(n)throw n.error}}return new it(_,!1)},io=function(e,t){var r,n,i,o=this;this.replaceSensitiveString=function(e){return rY(e,o.additionalMaskTextPatterns)},this.getHierarchy=function(e){var t,r,n,i,s=performance.now(),a=[];if(!e)return[];for(var l=function(e){var t=[];if(!e)return t;
25t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t}(e),u=new Map,c=l.length-1;c>=0;c--){var d=l[c];if(d){var p,f=(p=d.getAttribute(nO))?p.split(",").map(function(e){return e.trim()}).filter(function(e){return e.length>0&&"id"!==e&&"class"!==e}):[],h=c===l.length-1?[]:null!==(n=u.get(l[c+1]))&&void 0!==n?n:new Set,g=new Set((0,eA.ev)((0,eA.ev)([],(0,eA.CR)(h),!1),(0,eA.CR)(f),!1));u.set(d,g)}}a=l.map(function(e){var t;return function(e,t){if(null===e)return null;var r,n,i,o,s,a,l=String(e.tagName).toLowerCase(),u={tag:l},c=Array.from(null!==(o=null===(i=e.parentElement)||void 0===i?void 0:i.children)&&void 0!==o?o:[]);c.length&&(u.index=c.indexOf(e),u.indexOfType=c.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var d=null===(a=null===(s=e.previousElementSibling)||void 0===s?void 0:s.tagName)||void 0===a?void 0:a.toLowerCase();d&&(u.prevSib=String(d));var p=e.getAttribute("id");p&&(u.id=String(p));var f=Array.from(e.classList);f.length&&(u.classes=f);var h={},g=Array.from(e.attributes).filter(function(e){return!n8.has(e.name)}),m=!nj(e);if(!ie.includes(String(e.getAttribute("type")))&&!n9.includes(l))try{for(var v=(0,eA.XA)(g),y=v.next();!y.done;y=v.next()){var b=y.value;if(!m||n7.includes(b.name)){if(t.has(b.name)){h[b.name]=rW;continue}h[b.name]=String(b.value).substring(0,128)}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}return Object.keys(h).length&&(u.attrs=h),u}(e,null!==(t=u.get(e))&&void 0!==t?t:new Set)});var m=function(e){(null==e?void 0:e.attrs)&&Object.entries(e.attrs).forEach(function(t){var r=(0,eA.CR)(t,2),n=r[0],i=r[1];e.attrs&&(e.attrs[n]=o.replaceSensitiveString(i))})};try{for(var v=(0,eA.XA)(a),y=v.next();!y.done;y=v.next()){var b=y.value;m(b)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}var w=performance.now();return null===(i=o.diagnosticsClient)||void 0===i||i.recordHistogram("autocapturePlugin.getHierarchy",w-s),a},this.getNearestLabel=function(e){var t,r=e.parentElement;if(!r)return"";try{t=r.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}return t?o.getText(t):o.getNearestLabel(r)},this.getElementPath=function(e){if(!e)return"";var t,r=performance.now(),n=ir(e),i=performance.now();return null===(t=o.diagnosticsClient)||void 0===t||t.recordHistogram("autocapturePlugin.getElementPath",i-r),n},this.getEventProperties=function(e,t,r){var n,i,s,a,l=null===(s=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===s?void 0:s.call(i),u="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},c=o.getHierarchy(t),d=null===(a=c[0])||void 0===a?void 0:a.attrs,p=o.getNearestLabel(t),f=Object.entries(null!=d?d:{}).reduce(function(e,t){var n=(0,eA.CR)(t,2),i=n[0],o=n[1];if(i.startsWith(r)){var s=i.replace(r,"");s&&(e[s]=o||"")}return e},{}),h=((n={})["[Amplitude] Element Hierarchy"]=c,n[nE]=l,n[nk]=o.getText(t),n["[Amplitude] Element Position Left"]=null==u.left?null:Math.round(u.left),n["[Amplitude] Element Position Top"]=null==u.top?null:Math.round(u.top),n["[Amplitude] Element Attributes"]=f,n["[Amplitude] Element Path"]=o.getElementPath(t),n["[Amplitude] Element Parent Label"]=p,n[nx]=nP(window.location.href.split("?")[0]),n["[Amplitude] Page Title"]=r0(o.replaceSensitiveString),n[nC]=window.innerHeight,n[nI]=window.innerWidth,n),g=nU();if(g&&(h[nT]=g),h["[Amplitude] Element ID"]=t.getAttribute("id")||"",h["[Amplitude] Element Class"]=t.getAttribute("class"),h["[Amplitude] Element Aria Label"]=null==d?void 0:d["aria-label"],"a"===l&&"click"===e&&t instanceof HTMLAnchorElement){var m=t.href.substring(0,128);h["[Amplitude] Element Href"]=o.replaceSensitiveString(m)}return nF(h)},this.addTypeAndTimestamp=function(e,t){return{event:e,timestamp:Date.now(),type:t}},this.addAdditionalEventProperties=function(e,t,r,n,i){void 0===i&&(i=!1);var s=o.addTypeAndTimestamp(e,t);if(("click"===s.type||"change"===s.type)&&null!==s.event.target){if(i&&nL(s.event.target,s.type))return s.closestTrackedAncestor=s.event.target,s.targetElementProperties=o.getEventProperties(s.type,s.closestTrackedAncestor,n),s;var a=nB(s.event.target,r);a&&(s.closestTrackedAncestor=a,s.targetElementProperties=o.getEventProperties(s.type,a,n))}return s},this.extractDataFromDataSource=function(e,t){if("DOM_ELEMENT"===e.sourceType){var r=n0(e,t);if(r){if("TEXT"===e.elementExtractType)return o.getText(r);if("ATTRIBUTE"===e.elementExtractType&&e.attribute)return r.getAttribute(e.attribute)}}},this.getTextWithMaskedDescendants=function(e){var t,r,n="[".concat(rZ,"], [contenteditable]");if(!e.querySelector(n))return e.innerText;var i="",s=Array.from(e.childNodes);try{for(var a=(0,eA.XA)(s),l=a.next();!l.done;l=a.next()){var u=l.value;if(u.nodeType===Node.TEXT_NODE){i+=u.textContent||"";continue}if(u instanceof Element){if(u.hasAttribute(rZ)||u.hasAttribute("contenteditable")){i+=rW;
25continue}i+=o.getTextWithMaskedDescendants(u)}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i},this.getText=function(e){if(null!==e.closest("[".concat(rZ,"]")))return rW;var t="";return t=e.querySelector("[".concat(rZ,"], [contenteditable]"))?o.getTextWithMaskedDescendants(e):e.innerText||"",o.replaceSensitiveString(t.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(e){if(!e)return{};var t,r,n,i=null===(n=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===n?void 0:n.call(r);return nF(((t={})[nE]=i,t[nk]=o.getText(e),t[nx]=window.location.href.split("?")[0],t))},this.diagnosticsClient=null==t?void 0:t.diagnosticsClient;var s=null!==(i=e.maskTextRegex)&&void 0!==i?i:[],a=[];try{for(var l=(0,eA.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value;if(a.length>=25)break;if(c instanceof RegExp)a.push(c);else if("pattern"in c&&"string"==typeof c.pattern)try{a.push(RegExp(c.pattern,"i"))}catch(e){}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}this.additionalMaskTextPatterns=a};(g=er||(er={})).ClickObservable="clickObservable",g.ChangeObservable="changeObservable",g.NavigateObservable="navigateObservable",g.MutationObservable="mutationObservable",g.ScrollObservable="scrollObservable",g.ExposureObservable="exposureObservable",g.BrowserErrorObservable="browserErrorObservable",g.SelectionObservable="selectionObservable",g.MouseMoveObservable="mouseMoveObservable";var is=function(e,t){void 0===e&&(e={}),null==t||t.diagnosticsClient.setTag("plugin.autocapture.version",nA);var r,n,i,o,s,a,l,u,c,d,p,f,h,g=e.dataAttributePrefix,m=void 0===g?na:g,v=e.visualTaggingOptions,y=void 0===v?{enabled:!0}:v;e.cssSelectorAllowlist=null!==(r=e.cssSelectorAllowlist)&&void 0!==r?r:ns,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:nl,e.debounceTime=null!==(i=e.debounceTime)&&void 0!==i?i:0;var b=(null===(o=e.viewportContentUpdated)||void 0===o?void 0:o.enabled)!==!1,w=null!==(l=null!==(a=null===(s=e.viewportContentUpdated)||void 0===s?void 0:s.exposureDuration)&&void 0!==a?a:e.exposureDuration)&&void 0!==l?l:150;e.viewportContentUpdated=(0,eA.pi)((0,eA.pi)({},e.viewportContentUpdated),{exposureDuration:w}),e.pageUrlExcludelist=null===(u=e.pageUrlExcludelist)||void 0===u?void 0:u.reduce(function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(e){console.warn("Invalid regex pattern: ".concat(t.pattern),e)}return e},[]);var S="@amplitude/plugin-autocapture-browser",A=[],_=new io(e,t),E=new Set,k=new Set,x=function(){var t,r,n,i=nf(nQ().map(function(t){return _.addAdditionalEventProperties(t,"click",e.cssSelectorAllowlist,m)})),o=nf(new(nc())(function(t){var r,n=function(r){var n=_.addAdditionalEventProperties(r,"change",e.cssSelectorAllowlist,m);t.next(n)};return null===(r=(0,eC.l)())||void 0===r||r.document.addEventListener("change",n,{capture:!0}),function(){var e;return null===(e=(0,eC.l)())||void 0===e?void 0:e.document.removeEventListener("change",n)}}));window.navigation&&(n=nf(new(nc())(function(t){var r=function(r){var n=_.addAdditionalEventProperties(r,"navigate",e.cssSelectorAllowlist,m);t.next(n)};return window.navigation.addEventListener("navigate",r),function(){window.navigation.removeEventListener("navigate",r)}})));var s=nf(nK().map(function(t){return _.addAdditionalEventProperties(t,"mutation",e.cssSelectorAllowlist,m)})),a=new(nc())(function(e){var t,r=function(t){e.next(t)};return null===(t=(0,eC.l)())||void 0===t||t.addEventListener("scroll",r),function(){var e;null===(e=(0,eC.l)())||void 0===e||e.removeEventListener("scroll",r)}}),l=(t=e.cssSelectorAllowlist,new(nc())(function(e){var r,n=(0,eC.l)();if(!(null==n?void 0:n.IntersectionObserver))return function(){};var i=new IntersectionObserver(function(t){t.forEach(function(t){e.next(t)})},{root:null,rootMargin:"0px",threshold:1}),o=t.join(",");
25(null!==(r=null==n?void 0:n.document.querySelectorAll(o))&&void 0!==r?r:[]).forEach(function(e){i.observe(e)});var a=s.subscribe(function(e){return e.event.forEach(function(e){return e.addedNodes.forEach(function(e){e instanceof Element&&(e.matches(o)&&i.observe(e),e.querySelectorAll(o).forEach(function(e){i.observe(e)}))})})});return function(){a.unsubscribe(),i.disconnect()}}));return(r={})[er.ChangeObservable]=o,r[er.ClickObservable]=i,r[er.MutationObservable]=s,r[er.NavigateObservable]=n,r[er.ScrollObservable]=a,r[er.ExposureObservable]=l,r},C=n3(Object.values(null!==(d=null===(c=e.pageActions)||void 0===c?void 0:c.labeledEvents)&&void 0!==d?d:{})),I=n4(null!==(f=null===(p=e.pageActions)||void 0===p?void 0:p.triggers)&&void 0!==f?f:[]),T=new n6(C,I,_,e),O=function(t){var r,n;t&&(e.pageActions=(0,eA.pi)((0,eA.pi)({},e.pageActions),t),C=n3(Object.values(null!==(r=e.pageActions.labeledEvents)&&void 0!==r?r:{})),I=n4(null!==(n=e.pageActions.triggers)&&void 0!==n?n:[]),T.update(C,I,e))};return{name:S,type:"enrichment",setup:function(t,r){return(0,eA.mG)(void 0,void 0,void 0,function(){var n,i,o,s,a,l,u,c,d,p,f,g,v,C,I,R,P,M,L,D,N;return(0,eA.Jh)(this,function(j){var F,U,B,$,q,G,z,H,V,J,Z,W,K,Q,X,Y,ee,et,en,ei,eo,es,ea,el,eu,ec,ed,ep,ef,eh,eg,em,ev,ey,eb,ew,eS,e_,eE;return"undefined"==typeof document||(n=!1,i={maxX:void 0,maxY:void 0},t.fetchRemoteConfig&&(t.remoteConfigClient?t.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",function(e){O(e)}):t.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),o=nN(e,e.cssSelectorAllowlist),s=nN(e,e.actionClickAllowlist),U=(F={allObservables:a=x(),amplitude:r,shouldTrackEvent:o,evaluateTriggers:T.evaluate.bind(T)}).amplitude,B=F.allObservables,$=F.shouldTrackEvent,q=F.evaluateTriggers,l=B.clickObservable.filter(n$).filter(function(e){return $("click",e.closestTrackedAncestor)}).map(function(e){return q(e)}).subscribe(function(e){null==U||U.track(n_,e.targetElementProperties)}),A.push(l),z=(G={allObservables:a,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _.getEventProperties.apply(_,(0,eA.ev)((0,eA.ev)([],(0,eA.CR)(e),!1),[m],!1))},amplitude:r,shouldTrackEvent:o,evaluateTriggers:T.evaluate.bind(T)}).amplitude,H=G.allObservables,V=G.getEventProperties,J=G.shouldTrackEvent,Z=G.evaluateTriggers,u=H.changeObservable.filter(n$).filter(function(e){return J("change",e.closestTrackedAncestor)}).map(function(e){return Z(e)}).subscribe(function(e){null==z||z.track("[Amplitude] Element Changed",V("change",e.closestTrackedAncestor))}),A.push(u),K=(W={allObservables:a,options:e,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _.getEventProperties.apply(_,(0,eA.ev)((0,eA.ev)([],(0,eA.CR)(e),!1),[m],!1))},amplitude:r,shouldTrackEvent:o,shouldTrackActionClick:s}).amplitude,Q=W.allObservables,X=W.options,Y=W.getEventProperties,ee=W.shouldTrackEvent,et=W.shouldTrackActionClick,en=Q.clickObservable,ei=Q.mutationObservable,eo=Q.navigateObservable,es=en.filter(function(e){return!ee("click",e.closestTrackedAncestor)}).map(function(e){var t=nB(e.event.target,X.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=Y(e.type,e.closestTrackedAncestor)),e}).filter(n$).filter(function(e){return et("click",e.closestTrackedAncestor)}),ea=eo?np(ei,eo):ei,el=np(es,ea),eu=null,ec=null,(c=nd(el,function(e){if(eu&&(clearTimeout(eu),eu=null),"click"===e.type)ec=e,eu=setTimeout(function(){eu=null,ec=null},500);else if(ec){var t=ec;return ec=null,Promise.resolve(t)}return Promise.resolve(null)}).subscribe(function(e){e&&(null==K||K.track(n_,Y("click",e.closestTrackedAncestor)))}))&&A.push(c),(ed={allObservables:a,amplitude:r}).amplitude,ep=ed.allObservables.scrollObservable,ef={maxX:0,maxY:0},eh=ep.subscribe(function(){var e,t,r,n,i=(0,eC.l)(),o=Math.floor(null!==(t=null!==(e=null==i?void 0:i.scrollX)&&void 0!==e?e:null==i?void 0:i.pageXOffset)&&void 0!==t?t:0),s=Math.floor(null!==(n=null!==(r=null==i?void 0:i.scrollY)&&void 0!==r?r:null==i?void 0:i.pageYOffset)&&void 0!==n?n:0);ef.maxX=Math.max(ef.maxX,o),ef.maxY=Math.max(ef.maxY,s)}),d={unsubscribe:function(){eh.unsubscribe()},getState:function(){return ef},reset:function(){ef.maxX=0,ef.maxY=0}},A.push(d),p={},f=(0,eC.l)(),g=function(e){e&&n||(setTimeout(function(){n=!1},100),n=!0,function(e){var t,r,n,i,o=e.amplitude,s=e.scrollTracker,a=e.currentElementExposed,l=e.elementExposedForPage,u=e.exposureTracker,c=e.isPageEnd,d=e.lastScroll,p=s.get
25State(),f=(0,eC.l)(),h=null!==(r=null==f?void 0:f.innerWidth)&&void 0!==r?r:0,g=null!==(n=null==f?void 0:f.innerHeight)&&void 0!==n?n:0,m=((t={})[nx]=null===(i=null==f?void 0:f.location)||void 0===i?void 0:i.href,t["[Amplitude] Max Page X"]=p.maxX+h,t["[Amplitude] Max Page Y"]=p.maxY+g,t[nC]=g,t[nI]=h,t["[Amplitude] Element Exposed"]=Array.from(a),t),v=nU();if(v&&(m[nT]=v),0===a.size&&p.maxX===d.maxX&&p.maxY===d.maxY){c&&(s.reset(),l.clear(),null==u||u.reset());return}null==o||o.track("[Amplitude] Viewport Content Updated",m),d.maxX=p.maxX,d.maxY=p.maxY,a.clear(),c&&(s.reset(),l.clear(),null==u||u.reset())}({amplitude:r,scrollTracker:d,currentElementExposed:k,elementExposedForPage:E,exposureTracker:p.exposure,isPageEnd:e,lastScroll:i}))},v=function(e){!E.has(e)&&(E.add(e),k.add(e),JSON.stringify(Array.from(k)).length>=18e3&&g(!1))},b&&(p.exposure=(em=(eg={allObservables:a,onExposure:v,dataExtractor:_,exposureDuration:w}).allObservables,ev=eg.onExposure,ey=eg.dataExtractor,ew=void 0===(eb=eg.exposureDuration)?150:eb,eS=new Map,e_=new Map,eE=em.exposureObservable.subscribe(function(e){var t=e.target;if(e.isIntersecting){if(!eS.get(t)){var r=setTimeout(function(){eS.set(t,!0),ev(ey.getElementPath(t)),e_.set(t,null)},ew);e_.set(t,r)}}else if(!e.isIntersecting&&e.intersectionRatio<1){var r=e_.get(t);r&&(clearTimeout(r),e_.set(t,null))}}),{unsubscribe:function(){eE.unsubscribe()},reset:function(){e_.forEach(function(e){e&&clearTimeout(e)}),e_.clear(),eS.clear()}}),p.exposure&&A.push(p.exposure),C=function(){g(!0)},null==f||f.addEventListener("beforeunload",C),h=function(){null==f||f.removeEventListener("beforeunload",C)},A.push({unsubscribe:function(){return h()}}),(I=a[er.NavigateObservable])?A.push(I.subscribe(function(){g(!0)})):f&&(R=function(){g(!0)},f.addEventListener("popstate",R),P=f.history.pushState,f.history&&P&&(f.history.pushState=new Proxy(P,{apply:function(e,t,r){var n=(0,eA.CR)(r,3),i=n[0],o=n[1],s=n[2];e.apply(t,[i,o,s]),g(!0)}})),A.push({unsubscribe:function(){f.removeEventListener("popstate",R),f.history&&P&&(f.history.pushState=P)}}))),null===(N=null==t?void 0:t.loggerProvider)||void 0===N||N.log("".concat(S," has been successfully added.")),window.opener&&y.enabled&&(M=e.cssSelectorAllowlist,L=e.actionClickAllowlist,function(e,t){if(!0!==e[nq]){e[nq]=!0;var r=t.dataExtractor,n=t.isElementSelectable,i=t.cssSelectorAllowlist,o=t.actionClickAllowlist,s=null,a=function(t){e.notify({action:"element-selected",data:t})},l=function(t,r){"selector-mode-changed"===t?e.notify({action:"track-selector-mode-changed",data:r}):"selector-moved"===t&&e.notify({action:"track-selector-moved",data:r})};e.registerActionHandler("initialize-visual-tagging-selector",function(t){e.loadScriptOnce("https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz").then(function(){var u;s=null===(u=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===u?void 0:u.call(window,{getEventTagProps:r.getEventTagProps,isElementSelectable:function(e){return!n||n((null==t?void 0:t.actionType)||"click",e)},onTrack:l,onSelect:a,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:e,cssSelectorAllowlist:i,actionClickAllowlist:o,extractDataFromDataSource:r.extractDataFromDataSource,dataExtractor:r,diagnostics:{autocapture:{version:nA}}}),e.notify({action:"selector-loaded"})}).catch(function(){var t;null===(t=e.logger)||void 0===t||t.warn("Failed to initialize visual tagging selector")})}),e.registerActionHandler("close-visual-tagging-selector",function(){var e;null===(e=null==s?void 0:s.close)||void 0===e||e.call(s)})}}(D=nb(),{dataExtractor:_,isElementSelectable:nN(e,(0,eA.ev)((0,eA.ev)([],(0,eA.CR)(M),!1),(0,eA.CR)(L),!1)),cssSelectorAllowlist:M,actionClickAllowlist:L}),nS(D),D.setup((0,eA.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:ng[t.serverZone]})))),[2]})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){var e,t,r,n;return(0,eA.Jh)(this,function(i){try{for(t=(e=(0,eA.XA)(A)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}return[2]})})}}},ia=(0,eA.ev)(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],(0,eA.CR)(["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]']),!1),il=["*"],iu=["mutation","navigate"];function ic(e,t){var r,n,i,o,s=t.event,a=s.pageX,l=s.pageY;e.yMin=Math.min(null!==(r=e.yMin)&&void 0!==r?r:l,l),e.yMax=Math.max(null!==(n=e.yMax)&&void 0!==n?n:l,l),e.xMin=Math.min(null!==(i=e.xMin)&&void 0!==i?i:a,a),e.xMax=Math.max(null!==(o=e.xMax)&&void 0!==o?o:a,a),e.isOutOfBounds=e.yMax-e.yMin>50||e.xMax-e.xMin>50}function id(e){if(0===e.length)return null;var t=e[0],r=e[e.length-1];return{rageClickEvent:(0,eA.pi)({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(r.timestamp).toISOString(),"[Amplitude] Duration":r.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(e){return{X:e.event.pageX,Y:e.event.pageY,Time:e.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties),time:t.timestamp}}(m=en||(en={})).INCREASING="increasing",m.DECREASING="decreasing",(v=ei||(ei={})).X="x",v.Y="y";var ip=function(e){var t=e.allWindowObservables.mouseMoveObservable;return new(nc())(function(e){var r=null,n=null,i=null;return t.subscribe(function(t){var o={x:t.clientX,y:t.clientY};if(null===r){r=o;return}o.x>
25r.x?(n===en.DECREASING&&e.next(ei.X),n=en.INCREASING):o.x<r.x&&(n===en.INCREASING&&e.next(ei.X),n=en.DECREASING),o.y>r.y?(i===en.DECREASING&&e.next(ei.Y),i=en.INCREASING):o.y<r.y&&(i===en.INCREASING&&e.next(ei.Y),i=en.DECREASING),r=o})})};function ih(e){var t=e.changes,r=e.changesThreshold,n=e.thresholdMs;return!(t.length<r)&&t[t.length-1]-t[0]<n}function ig(e){e.changes=[],e.startTime=void 0}function im(e){for(var t=e.changes,r=e.thresholdMs,n=0,i=t[t.length-1];n<t.length&&!(i-t[n]<r);n++);0!==n&&(e.startTime=t[n],e.changes.splice(0,n))}var iv=function(e){var t=e.mouseDirectionChangeObservable,r=e.directionChanges,n=void 0===r?20:r,i=e.thresholdMs,o=void 0===i?2e3:i;return new(nc())(function(e){var r={changes:[],changesThreshold:n,thresholdMs:o},i={changes:[],changesThreshold:n,thresholdMs:o},s=void 0,a=null;function l(){void 0!==s&&(e.next(s),s=void 0,null!==a&&clearTimeout(a),ig(r),ig(i))}return t.subscribe(function(e){null!==a&&clearTimeout(a),t=e===ei.X?r:i,n=+Date.now(),t.startTime=t.startTime||n,u=t.changes,c=t.changesThreshold,u.push(n),u.length>c&&u.shift();var t,n,u,c,d=function(e,t){var r=void 0;if(ih(e)&&(r=e.startTime),ih(t)){var n=t.startTime;n&&(!r||n<r)&&(r=n)}return r}(r,i);return d?(s=s||d,a=setTimeout(function(){l(),a=null},o)):l(),im(r),im(i),function(){null!==a&&(clearTimeout(a),a=null)}})})},iy=function(e){var t=e.amplitude,r=e.options,n=e.allObservables,i=e.directionChanges,o=e.thresholdMs;return iv({mouseDirectionChangeObservable:ip({allWindowObservables:n}),directionChanges:void 0===i?20:i,thresholdMs:void 0===o?2e3:o}).subscribe(function(e){nD(r)&&t.track("[Amplitude] Thrashed Cursor",void 0,{time:e})})};function ib(e,t,r,n){if(!n)return[];var i=e[t];return"object"==typeof i&&null!==i&&"cssSelectorAllowlist"in i&&Array.isArray(i.cssSelectorAllowlist)?i.cssSelectorAllowlist:r}var iw=function(e){void 0===e&&(e={});var t,r="@amplitude/plugin-frustration-browser",n=[],i=!1!==e.errorClicks;e.errorClicks||(i=!1);var o=!1!==e.deadClicks&&null!==e.deadClicks,s=!1!==e.rageClicks&&null!==e.rageClicks,a=!1!==e.thrashedCursor&&null!==e.thrashedCursor;e.thrashedCursor||(a=!1);var l=ib(e,"rageClicks",il,s),u=ib(e,"deadClicks",ia,o),c=ib(e,"errorClicks",ia,i),d=null!==(t=e.dataAttributePrefix)&&void 0!==t?t:na,p=new io(e),f=(0,eA.ev)([],(0,eA.CR)(new Set((0,eA.ev)((0,eA.ev)((0,eA.ev)([],(0,eA.CR)(l),!1),(0,eA.CR)(u),!1),(0,eA.CR)(c),!1))),!1),h=function(){var e,t,r=nf(nQ("pointerdown").map(function(e){return p.addAdditionalEventProperties(e,"click",f,d,!0)})),n=nf(nX().map(function(e){return p.addTypeAndTimestamp(e,"error")})),i=nf(nK().map(function(e){return p.addAdditionalEventProperties(e,"mutation",f,d)}));window.navigation&&(t=nf(new(nc())(function(e){var t=function(t){e.next((0,eA.pi)((0,eA.pi)({},t),{type:"navigate"}))};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}).map(function(e){return p.addAdditionalEventProperties(e,"navigate",f,d)})));var o=nf(new(nc())(function(e){var t=function(){var t=document.activeElement;if(t&&("TEXTAREA"===t.tagName||"INPUT"===t.tagName)){var r=void 0,n=void 0;try{if(r=t.selectionStart,n=t.selectionEnd,r===n)return}catch(e){return}return e.next()}var i=window.getSelection();if(i&&!i.isCollapsed)return e.next()};return window.document.addEventListener("selectionchange",t),function(){window.document.removeEventListener("selectionchange",t)}})),s=nf(new(nc())(function(e){var t=function(t){e.next(t)},r={capture:!0};return nW.document.addEventListener("mousemove",t,r),function(){nW.document.removeEventListener("mousemove",t,r)}}));return(e={})[er.ClickObservable]=r,e[er.MutationObservable]=i,e[er.NavigateObservable]=t,e[er.BrowserErrorObservable]=n,e[er.SelectionObservable]=o,e[er.MouseMoveObservable]=s,e};return{name:r,type:"enrichment",setup:function(t,f){return(0,eA.mG)(void 0,void 0,void 0,function(){var g,m,v,y,b,w,S,A;return(0,eA.Jh)(this,function(_){var E,k,x,C,I,T,O,R,P,M,L,D,N,j,F,U,B,$,q,G,z,H;return"undefined"==typeof document||(g=h(),s&&(m=function(e){var t=this,r=e.amplitude,n=e.allObservables,i=e.shouldTrackRageClick,o=n.clickObservable,s=n.selectionObservable,a=[],l={},u=null;function c(e){a=[],l={},e&&(ic(l,e),a.push(e))}var d=nd(o.filter(function(e){return i("click",e.closestTrackedAncestor)}),function(e){return(0,eA.mG)(t,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){var n,i,o,s;return(ic(l,e),t=null,0===a.length||(n=a).length>0&&n[n.length-1].closestTrackedAncestor!==e.closestTrackedAncestor||(o=Math.max(0,(i=a).length-4+1),s=i[o],e.timestamp-s.timestamp>=1e3)||l.isOutOfBounds)?(u&&(t=id(a)),c(e)):a.push(e),(u&&(clearTimeout(u.timerId),u.resolve(t),u=null),a.length>=4)?[2,new Promise(function(e){u={resolve:e,timerId:setTimeout(function(){e(id(a))},1e3)}})]:[2,null]})})}),p=null==s?void 0:s.subscribe(function(){c()}),f=d.subscribe(function(e){null!==e&&r.track("[Amplitude] Rage Click",e.rageClickEvent,{time:e.time})});return{unsubscribe:function(){f.unsubscribe(),null==p||p.unsubscribe()}}}({allObservables:g,amplitude:f,shouldTrackRageClick:nN(e,l)}),n.push(m)),o&&(k=(E={amplitude:f,allObservables:g,getEventProperties:function(e,t){return p.getEventProperties(e,t,d)},shouldTrackDeadClick:nN(e,u)}).amplitude,x=E.allObservables,C=E.getEventProperties,I=E.shouldTrackDeadClick,T=x.clickObservable,O=x.mutationObservable,R=x.navigateObservable,P=T.filter(function(e){return n$(e)&&I("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===et.LEFT_OR_TOUCH_CONTACT}),M=R?np(O,R):O,L=np(P,M),D=null,v=nd(L,function(e){if(D&&iu.includes(e.type))clearTimeout(D),D=null;else if("click"===e.type)return D?Promise.resolve(null):new Promise(function(t){D=setTimeout(function(){t(e),D=null},3e3)});return Promise.resolve(null)}).subscribe(function(e){if(e){var t={"[Amplitude] X":e.event.clientX,"[Amplitude] Y":e.event.clientY};k.track("[Amplitude] Dead Click",(0,eA.pi)((0,eA.pi)({},C("click",e.closestTrackedAncestor)),t),{time:e.timestamp})}}),n.push(v)),i&&(j=(N={amplitude:f,allObservables:g,shouldTrackErrorClick:nN(e,c)}).amplitude,F=N.allObservables,U=N.shouldTrackErrorClick,B=F.clickObservable,$=F.browserErrorObservable,q=B.filter(function(e){return n$(e)&&U("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===et.LEFT_OR_TOUCH_CONTACT}),G=null,z=null,H=function(){null!==G&&(clearTimeout(G),G=null),z=null},y=np(q,$).subscribe(function(e){var t;if("click"===e.type){H(),z=e,G=setTimeout(H,2e3);return}"error"===e.type&&z&&(j.track("[Amplitude] Error Click",(0,eA.pi)(((t={})["[Amplitude] Kind"]=e.event.kind,t["[Amplitude] Message"]=e.event.message,t["[Amplitude] Stack"]=e.event.stack,t["[Amplitude] Filename"]=e.event.filename,t["[Amplitude] Line Number"]=e.event.lineNumber,t["[Amplitude] Column Number"]=e.event.columnNumber,t),z.targetElementProperties)),H())}),n.push(y)),a&&(b=void 0,w=void 0,"object"==typeof e.thrashedCursor&&(b=e.thrashedCursor.directionChanges,w=e.thrashedCursor.threshold,b&&b<5&&(t.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(b," is below the minimum of ").concat(5,", setting to ").concat(5)),b=5),w&&w>4e3&&(t.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(w," is above the maximum of ").concat(4e3,", setting to ").concat(4e3)),w=4e3)),S=iy({amplitude:f,options:e,allObservables:g,directionChanges:b,thresholdMs:w}),n.push(S)),null===(A=null==t?void 0:t.loggerProvider)||void 0===A||A.log("".concat(r," has been successfully added."))),[2]})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){var e,t,r,i;return(0,eA.Jh)(this,function(o){try{for(t=(e=(0,eA.XA)(n)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}};function iS(e,t,r){e&&function e(t){var r,n,i=t.json,o=t.targetObject,s=t.allowlist,a=t.excludelist,l=t.ancestors,u=t.parentObject,c=t.targetKey;o||(o=i);var d=Object.keys(o);try{for(var p=(0,eA.XA)(d),f=p.next();!f.done;f=p.next()){var h,g=f.value,m=(0,eA.ev)((0,eA.ev)([],(0,eA.CR)(l),
25!1),[g],!1);(h=o[g],"string"==typeof h||"number"==typeof h||"boolean"==typeof h||null==h)?(!i_(m,s)||i_(m,a))&&delete o[g]:e({json:i,targetObject:o[g],allowlist:s,excludelist:a,ancestors:m,parentObject:o,targetKey:g})}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}0===Object.keys(o).length&&u&&c&&delete u[c]}({json:e,allowlist:t.map(iA),excludelist:r.map(iA),ancestors:[]})}function iA(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(e){return e.replace(/~0/g,"~").replace(/~1/g,"/")})}function i_(e,t){return t.some(function(t){return function e(t,r,n,i){if(void 0===n&&(n=0),void 0===i&&(i=0),i===r.length)return n===t.length;if(n===t.length){for(;i<r.length&&"**"===r[i];)i++;return i===r.length}var o=r[i];if("**"===o){if(i+1===r.length)return!0;for(var s=n;s<=t.length;s++)if(e(t,r,s,i+1))return!0;return!1}return("*"===o||o===t[n])&&e(t,r,n+1,i+1)}(e,t)})}var iE=function(){function e(e){this.request=e}return e.prototype.headers=function(e){void 0===e&&(e=[]);var t,r,n=this.request.headers,i={};if(Array.isArray(n))n.forEach(function(e){var t=(0,eA.CR)(e,2),r=t[0],n=t[1];i[r]=n});else if(n instanceof Headers)n.forEach(function(e,t){i[t]=e});else if("object"==typeof n&&null!==n)try{for(var o=(0,eA.XA)(Object.entries(n)),s=o.next();!s.done;s=o.next()){var a=(0,eA.CR)(s.value,2),l=a[0],u=a[1];i[l]=u}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return iR(i,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=(0,eC.l)();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=ix(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return 0===e.length?[2,null]:[2,iT(this.body,e,t)]})})},e}(),ik=function(){function e(e,t){this.bodyRaw=e,this.requestHeaders=t}return e.prototype.headers=function(e){return void 0===e&&(e=[]),iR(this.requestHeaders,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return ix(this.bodyRaw,100)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.bodyRaw?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return 0===e.length?[2,null]:[2,iT(this.body,e,t)]})})},e}();function ix(e,t){var r,n,i,o,s=(0,eC.l)(),a=null==s?void 0:s.TextEncoder;if(a){if("string"==typeof e)o=e,i=new a().encode(o).length;else if(e instanceof Blob)i=(o=e).size;else if(e instanceof URLSearchParams)o=e,i=new a().encode(o.toString()).length;else if(ArrayBuffer.isView(e))i=(o=e).byteLength;else if(e instanceof ArrayBuffer)i=(o=e).byteLength;else if(e instanceof FormData){var l=0,u=0;try{for(var c=(0,eA.XA)(e.entries()),d=c.next();!d.done;d=c.next()){var p=(0,eA.CR)(d.value,2),f=p[0],h=p[1];if(l+=f.length,"string"==typeof h)l+=new a().encode(h).length;else{if(!(h instanceof Blob))return;l+=h.size}if(++u>=t)return}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}i=l}else if(e instanceof ReadableStream){o=e;return}return i}}var iC=function(){function e(e){this.response=e}return e.prototype.headers=function(e){var t;if(void 0===e&&(e=[]),this.response.headers instanceof Headers){var r=this.response.headers,n={};return null===(t=null==r?void 0:r.forEach)||void 0===t||t.call(r,function(e,t){n[t]=e}),iR(n,{allow:e})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(void 0!==this._bodySize)return this._bodySize;var e,t,r=null===(t=null===(e=this.response.headers)||void 0===e?void 0:e.get)||void 0===t?void 0:t.call(e,"content-length"),n=r?parseInt(r,10):void 0;return this._bodySize=n,n}
25,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){switch(e.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.race([this.clonedResponse.text(),new Promise(function(e){return setTimeout(function(){return e(null)},500)})])];case 2:return[2,e.sent()];case 3:return e.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(0===e.length)return[2,null];return[4,this.text()];case 1:return[2,iT(r.sent(),e,t)]}})})},e}(),iI=function(){function e(e,t,r,n){this.statusCode=e,this.headersString=t,this.size=r,this.getJson=n}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(e){if(void 0===e&&(e=[]),!this.headersString)return{};var t,r,n={},i=this.headersString.split("\r\n");try{for(var o=(0,eA.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value,l=(0,eA.CR)(a.split(": "),2),u=l[0],c=l[1];u&&c&&(n[u]=c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return iR(n,{allow:e})},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),(0,eA.mG)(this,void 0,void 0,function(){var r;return(0,eA.Jh)(this,function(n){return 0===e.length?[2,null]:(r=this.getJson())?(iS(r,e,t),[2,r]):[2,null]})})},e}();function iT(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return iS(n,t,r),n}catch(e){return null}}(y=eo||(eo={})).REDACT="redact",y.REMOVE="remove";var iO="[REDACTED]",iR=function(e,t){var r,n,i=t.allow,o=void 0===i?[]:i,s=t.strategy,a=void 0===s?eo.REMOVE:s,l=(0,eA.ev)([],(0,eA.CR)(tc),!1),u={};try{for(var c=(0,eA.XA)(Object.keys(e)),d=c.next();!d.done;d=c.next()){var p=d.value;!function(t){var r=t.toLowerCase();l.find(function(e){return e.toLowerCase()===r})?a===eo.REDACT&&(u[t]=iO):o.find(function(e){return e.toLowerCase()===r})?u[t]=e[t]:a===eo.REDACT&&(u[t]=iO)}(p)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u},iP=function(){function e(e,t,r,n,i,o,s,a,l,u,c){void 0===s&&(s=0),this.type=e,this.method=t,this.timestamp=r,this.startTime=n,this.url=i,this.requestWrapper=o,this.status=s,this.duration=a,this.responseWrapper=l,this.error=u,this.endTime=c}return e.prototype.toSerializable=function(){var e,t,r,n;return Object.fromEntries(Object.entries({type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null===(e=this.requestWrapper)||void 0===e?void 0:e.headers((0,eA.ev)([],(0,eA.CR)(tu),!1)),requestBodySize:null===(t=this.requestWrapper)||void 0===t?void 0:t.bodySize,responseHeaders:null===(r=this.responseWrapper)||void 0===r?void 0:r.headers((0,eA.ev)([],(0,eA.CR)(tu),!1)),responseBodySize:null===(n=this.responseWrapper)||void 0===n?void 0:n.bodySize}).filter(function(e){var t=(0,eA.CR)(e,2);return void 0!==(t[0],t[1])}))},e}(),iM=function(e,t){void 0===t&&(t=eT()),this.callback=e,this.id=t};function iL(e){try{e()}catch(e){}}var iD=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var r=(0,eC.l)();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var e=(0,eC.l)();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var r,n,i,o,s,a,l,u,c,d;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var p=null===(i=null===(n=null===(r=this.globalScope)||void 0===r?void 0:r.XMLHttpRequest)||void 0===n?void 0:n.prototype)||void 0===i?void 0:i.open,f=null===(a=null===(s=null===(o=this.globalScope)||void 0===o?void 0:o.XMLHttpRequest)||void 0===s?void 0:s.prototype)||void 0===a?void 0:a.send,h=null===(c=null===(u=null===(l=this.globalScope)||void 0===l?void 0:l.XMLHttpRequest)||void 0===u?void 0:u.prototype)||void 0===c?void 0:c.setRequestHeader;p&&f&&h&&this.observeXhr(p,f,h);var g=null===(d=this.globalScope)||void 0===d?void 0:d.fetch;g&&this.observeFetch(g),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(r){try{r.callback(e)}catch(e){iL(function(){var r;null===(r=t.logger)||void 0===r||r.debug("an unexpected error occurred while triggering event callbacks",e)})}})},e.prototype.handleNetworkRequestEvent=function(e,t,r,n,i,o,s){if
25(void 0!==o&&void 0!==s){var a,l,u,c,d="GET";if("object"==typeof t&&null!==t&&"url"in t&&"method"in t?(l=t.url,d=t.method):l=null===(a=null==t?void 0:t.toString)||void 0===a?void 0:a.call(t),l)try{var p=new URL(l);l="".concat(p.protocol,"//").concat(p.host).concat(p.pathname).concat(p.search).concat(p.hash)}catch(e){}d=(null==r?void 0:r.method)||d,n&&(u=n.status),i&&(c={name:i.name||"UnknownError",message:i.message||"An unknown error occurred"},u=0);var f=Math.floor(performance.now()-s),h=Math.floor(o+f),g=new iP(e,d,o,o,l,r,u,f,n,c,h);this.triggerEventCallbacks(g)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null===(e=Date.now)||void 0===e?void 0:e.call(Date),durationStart:null===(t=null==performance?void 0:performance.now)||void 0===t?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(r,n){return(0,eA.mG)(t,void 0,void 0,function(){var t,i,o,s=this;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:try{t=this.getTimestamps()}catch(e){iL(function(){var t;return null===(t=s.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while retrieving timestamps",e)})}a.label=1;case 1:return a.trys.push([1,3,,4]),[4,e(r,n)];case 2:return i=a.sent(),[3,4];case 3:return o=a.sent(),[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",r,n?new iE(n):void 0,i?new iC(i):void 0,o,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(e){iL(function(){var t;return null===(t=s.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while handling fetch",e)})}if(i)return[2,i];throw o}})})})},e.createXhrJsonParser=function(e,t){return function(){var r;try{if("json"===e.responseType){if(null===(r=t.globalScope)||void 0===r?void 0:r.structuredClone)return t.globalScope.structuredClone(e.response)}else if(["text",""].includes(e.responseType))return JSON.parse(e.responseText)}catch(r){r instanceof Error&&"InvalidStateError"===r.name&&iL(function(){var r;return null===(r=t.logger)||void 0===r?void 0:r.debug("unexpected error when retrieving responseText. responseType='".concat(e.responseType,"'"))})}return null}},e.prototype.observeXhr=function(t,r,n){if(this.globalScope&&t&&r){var i=this.globalScope.XMLHttpRequest.prototype,o=this;i.open=function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=(0,eA.CR)(r,2),s=i[0],a=i[1];try{this.$$AmplitudeAnalyticsEvent=(0,eA.pi)({method:s,url:null===(e=null==a?void 0:a.toString)||void 0===e?void 0:e.call(a),headers:{}},o.getTimestamps())}catch(e){iL(function(){var t;return null===(t=o.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while calling xhr open",e)})}return t.apply(this,r)},i.send=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,s=e.createXhrJsonParser(this,o),a=t[0],l=i.$$AmplitudeAnalyticsEvent;return i.$$AmplitudeAnalyticsEvent&&i.addEventListener("loadend",function(){try{var e=i.getAllResponseHeaders(),t=i.getResponseHeader("content-length"),r=new iI(i.status,e,t?parseInt(t,10):void 0,s),n=i.$$AmplitudeAnalyticsEvent.headers,u=new ik(a,n);l.status=i.status,o.handleNetworkRequestEvent("xhr",{url:l.url,method:l.method},u,r,void 0,l.startTime,l.durationStart)}catch(e){iL(function(){var t;return null===(t=o.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while handling xhr send",e)})}}),r.apply(i,t)},i.setRequestHeader=function(e,t){try{var r=this.$$AmplitudeAnalyticsEvent;r&&(r.headers[e]=t)}catch(e){iL(function(){var t;return null===(t=o.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while calling xhr setRequestHeader",e)})}n.apply(this,[e,t])}}},e}()),iN="[Amplitude] Network Request",ij="500-599";function iF(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function iU(e,t){var r,n,i=t.split(",");try{for(var o=(0,eA.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value,l=(0,eA.CR)(a.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&void 0===c||e>=u&&e<=c)return!0}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function iB(e){var t;if(e)try{var r=null===(t=(0,eC.l)())||void 0===t?void 0:t.location.href,n=new URL(e,r),i=n.searchParams.toString(),o=n.hash.replace("#",""),s=n.href,a=n.host;n.hash="",n.search="";var l=n.href;return{query:i,fragment:o,href:s,hrefWithoutQueryOrHash:l,host:a}}catch(e){return}}function i$(e){return"object"!=typeof e||null===e?e?(0,eA.ev)([],(0,eA.CR)(tu),!1):void 0:0!==e.length?e:void 0}function iq(e){var t,r;return!(null===(t=null==e?void 0:e.allowlist)||void 0===t?void 0:t.length)&&!(null===(r=null==e?void 0:e.blocklist)||void 0===r?void 0:r.length)}(es||(es={})).NetworkObservable="networkObservable";var iG=function(e){void 0===e&&(e={});var t,r="@amplitude/plugin-network-capture-browser",n=function(){var e,r=new(nc())(function(e){var r=new iM(function(t){var r={event:t,timestamp:Date.now(),type:"network"};e.next(r)});return iD.subscribe(r,t),function(){iD.unsubscribe(r)}});return(e={})[es.NetworkObservable]=r,e};return{name:r,type:"enrichment",setup:function(i,o){return(0,eA.mG)(void 0,void 0,void 0,function(){var s;return(0,eA.Jh)(this,function(a){var l,u,c,d,p;return"undefined"==typeof document||(s=n(),t=null==i?void 0:i.loggerProvider,u=(l={allObservables:s,networkTrackingOptions:e,amplitude:o,loggerProvider:t}).allObservables,c=l.networkTrackingOptions,d=l.amplitude,p=l.loggerProvider,ea=u.networkObservable.filter(function(e){return function(e,t){void 0===t&&(t={});var r,n,i=iB(e.url);if(!i)return!1;var o=i.host;return!(!1!==t.ignoreAmplitudeRequests&&(iF(o,"*.amplitude.com")||iF(o,"amplitude.com"))||(null===(r=t.ignoreHosts)||void 0===r?void 0:r.find(function(e){return iF(o,e)}))||!t.captureRules&&void 0!==e.status&&!iU(e.status,ij)||t.captureRules&&((0,eA.ev)([],(0,eA.CR)(t.captureRules),!1).reverse().find(function(t){var r,i,s;if(r=e.status,i=e.url,s=e.method,n=t.hosts&&!t.hosts.find(function(e){return iF(o,e)})||i&&t.urls&&!nR(i,t.urls)||s&&t.methods&&!t.methods.find(function(e){return s.toLowerCase()===e.toLowerCase()||"*"===e})?void 0:!r&&0!==r||!!iU(r,t.statusCodeRange||ij)){var a=i$(t.responseHeaders);if(e.responseWrapper&&a){var l=e.responseWrapper.headers(a);l&&(e.responseHeaders=l)}var u=i$(t.requestHeaders);if(e.requestWrapper&&u){var c=e.requestWrapper.headers(u);c&&(e.requestHeaders=c)}e.responseWrapper&&t.responseBody&&!iq(t.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(t.responseBody.allowlist,t.responseBody.blocklist)),e.requestWrapper&&t.requestBody&&!iq(t.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(t.requestBody.allowlist,t.requestBody.blocklist))}return void 0!==n}),!n)||e.requestWrapper&&function(e,t){if(e.includes("amplitude.com"))try{var r=t.body;if("string"!=typeof r)return!1;if(JSON.parse(r).events.find(function(e){return e.event_type===iN}
25))return!0}catch(e){}return!1}(o,e.requestWrapper))}(e.event,c)}).subscribe(function(e){var t,r,n,i=e.event,o=iB(i.url);if(o){var s=null===(r=i.responseWrapper)||void 0===r?void 0:r.bodySize,a=null===(n=i.requestWrapper)||void 0===n?void 0:n.bodySize;(function(e,t,r,n){(0,eA.mG)(this,void 0,void 0,function(){var i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:if(!(t.requestBodyJson||t.responseBodyJson))return[3,2];return[4,Promise.all([t.requestBodyJson,t.responseBodyJson])];case 1:if(o=(i=eA.CR.apply(void 0,[a.sent(),2]))[0],s=i[1],o)try{e["[Amplitude] Request Body"]=JSON.stringify(o)}catch(e){null==n||n.debug("Failed to stringify request body",e)}if(s)try{e["[Amplitude] Response Body"]=JSON.stringify(s)}catch(e){null==n||n.debug("Failed to stringify response body")}a.label=2;case 2:return null==r||r.track(iN,e),[2]}})})})(((t={})["[Amplitude] URL"]=o.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=o.query,t["[Amplitude] URL Fragment"]=o.fragment,t["[Amplitude] Request Method"]=i.method,t["[Amplitude] Status Code"]=i.status,t["[Amplitude] Start Time"]=i.startTime,t["[Amplitude] Completion Time"]=i.endTime,t["[Amplitude] Duration"]=i.duration,t["[Amplitude] Request Body Size"]=a,t["[Amplitude] Response Body Size"]=s,t["[Amplitude] Request Type"]=i.type,t["[Amplitude] Request Headers"]=i.requestHeaders,t["[Amplitude] Response Headers"]=i.responseHeaders,t),i,d,p)}}),null==t||t.log("".concat(r," has been successfully added."))),[2]})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return ea.unsubscribe(),[2]})})}}};let iz=-1,iH=e=>{addEventListener("pageshow",t=>{t.persisted&&(iz=t.timeStamp,e(t))},!0)},iV=(e,t,r,n)=>{let i,o;return s=>{var a;t.value>=0&&(s||n)&&((o=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=(a=t.value)>r[1]?"poor":a>r[0]?"needs-improvement":"good",e(t))}},iJ=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},iZ=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},iW=()=>{let e=iZ();return e?.activationStart??0},iK=(e,t=-1)=>{let r=iZ(),n="navigate";return iz>=0?n="back-forward-cache":r&&(document.prerendering||iW()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},iQ=new WeakMap;function iX(e,t){return iQ.get(e)||iQ.set(e,new t),iQ.get(e)}class iY{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}let i0=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},i1=e=>{let t=!1;return()=>{t||(e(),t=!0)}},i2=-1,i3=new Set,i4=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,i5=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(let e of i3)e();isFinite(i2)||(i2="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",i5,!0))}},i6=()=>{if(i2<0){let e=iW();i2=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??i4(),addEventListener("visibilitychange",i5,!0),addEventListener("prerenderingchange",i5,!0),iH(()=>{setTimeout(()=>{i2=i4()})})}return{get firstHiddenTime(){return i2},onHidden(e){i3.add(e)}}},i8=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},i7=[1800,3e3],i9=(e,t={})=>{i8(()=>{let r=i6(),n,i=iK("FCP"),o=i0("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-iW(),0),i.entries.push(t),n(!0)))});o&&(n=iV(e,i,i7,t.reportAllChanges),iH(r=>{n=iV(e,i=iK("FCP"),i7,t.reportAllChanges),iJ(()=>{i.value=performance.now()-r.timeStamp,n(!0)})}))})},oe=[.1,.25],ot=(e,t={})=>{let r=i6();i9(i1(()=>
25{let n,i=iK("CLS",0),o=iX(t,iY),s=e=>{for(let t of e)o.h(t);o.i>i.value&&(i.value=o.i,i.entries=o.o,n())},a=i0("layout-shift",s);a&&(n=iV(e,i,oe,t.reportAllChanges),r.onHidden(()=>{s(a.takeRecords()),n(!0)}),iH(()=>{o.i=0,n=iV(e,i=iK("CLS",0),oe,t.reportAllChanges),iJ(()=>n())}),setTimeout(n))}))},or=0,on=1/0,oi=0,oo=e=>{for(let t of e)t.interactionId&&(on=Math.min(on,t.interactionId),or=(oi=Math.max(oi,t.interactionId))?(oi-on)/7+1:0)},os=()=>n?or:performance.interactionCount??0,oa=()=>{"interactionCount"in performance||n||(n=i0("event",oo,{type:"event",buffered:!0,durationThreshold:0}))},ol=0;class ou{u=[];l=new Map;m;p;v(){ol=os(),this.u.length=0,this.l.clear()}L(){let e=Math.min(this.u.length-1,Math.floor((os()-ol)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;let t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.P){if(r?e.duration>r.P?(r.entries=[e],r.P=e.duration):e.duration===r.P&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],P:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((e,t)=>t.P-e.P),this.u.length>10)for(let e of this.u.splice(10))this.l.delete(e.id);this.p?.(r)}}}let oc=e=>{let t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=i1(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t(()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})}))},od=[200,500],op=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let r=i6();i8(()=>{oa();let n,i=iK("INP"),o=iX(t,ou),s=e=>{oc(()=>{for(let t of e)o.h(t);let t=o.L();t&&t.P!==i.value&&(i.value=t.P,i.entries=t.entries,n())})},a=i0("event",s,{durationThreshold:t.durationThreshold??40});n=iV(e,i,od,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(a.takeRecords()),n(!0)}),iH(()=>{o.v(),n=iV(e,i=iK("INP"),od,t.reportAllChanges)}))})};class of{m;h(e){this.m?.(e)}}let oh=[2500,4e3],og=(e,t={})=>{i8(()=>{let r=i6(),n,i=iK("LCP"),o=iX(t,of),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))o.h(s),s.startTime<r.firstHiddenTime&&(i.value=Math.max(s.startTime-iW(),0),i.entries=[s],n())},a=i0("largest-contentful-paint",s);if(a){n=iV(e,i,oh,t.reportAllChanges);let r=i1(()=>{s(a.takeRecords()),a.disconnect(),n(!0)}),o=e=>{e.isTrusted&&(oc(r),removeEventListener(e.type,o,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])addEventListener(e,o,{capture:!0});iH(r=>{n=iV(e,i=iK("LCP"),oh,t.reportAllChanges),iJ(()=>{i.value=performance.now()-r.timeStamp,n(!0)})})}})},om=[800,1800],ov=e=>{document.prerendering?i8(()=>ov(e)):"complete"!==document.readyState?addEventListener("load",()=>ov(e),!0):setTimeout(e)},oy=(e,t={})=>{let r=iK("TTFB"),n=iV(e,r,om,t.reportAllChanges);ov(()=>{let i=iZ();i&&(r.value=Math.max(i.responseStart-iW(),0),r.entries=[i],n(!0),iH(()=>{(n=iV(e,r=iK("TTFB",0),om,t.reportAllChanges))(!0)}))})};function ob(e){var t,r;return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor((r=(null===(t=e.entries[0])||void 0===t?void 0:t.startTime)||0,performance.timeOrigin+r)),navigationStart:Math.floor(performance.timeOrigin)}}var ow=function(){var e=null,t=(0,eC.l)(),r=null==t?void 0:t.document,n=null==t?void 0:t.location;return{name:"web-vitals-browser",type:"enrichment",setup:function(t,i){return(0,eA.mG)(void 0,void 0,void 0,function(){var o,s;return(0,eA.Jh)(this,function(a){return void 0===r||(o=nP((null==n?void 0:n.href)||"",t.loggerProvider),s={"[Amplitude] Page Domain":(null==n?void 0:n.hostname)||"","[Amplitude] Page Location":o,"[Amplitude] Page Path":nP((null==n?void 0:n.pathname)||"",t.loggerProvider),"[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":nP(o.split("?")[0],t.loggerProvider)},og(function(e){s["[Amplitude] LCP"]=ob(e)}),i9(function(e){s["[Amplitude] FCP"]=ob(e)}),op(function(e){s["[Amplitude] INP"]=ob(e)}),ot(function(e){s["[Amplitude] CLS"]=ob(e)}),oy(function(e){s["[Amplitude] TTFB"]=ob(e)}),e=function(){"hidden"===r.visibilityState&&e&&(i.track("[Amplitude] Web Vitals",s),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e)),[2]})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return e&&(null==r||r.removeEventListener("visibilitychange",e)),[2]})})}}},oS=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),["AMP",t,e.substring(0,r)].filter(
25Boolean).join("_")},oA=function(){function e(e,t){var r;this.shouldTrackNewCampaign=!1,this.options=(0,eA.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:rU((null===(r=t.cookieOptions)||void 0===r?void 0:r.domain)||t.topLevelDomain),optOut:t.optOut},e),this.storage=t.cookieStorage,this.storageKey=oS(t.apiKey,"MKTG"),this.webExpStorageKey=oS(t.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=tl,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,this.topLevelDomain=t.topLevelDomain,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(this.options.optOut)return[2];return[4,this.fetchCampaign()];case 1:if(t=eA.CR.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||tU(this.sessionTimeout,this.lastEventTime),!rN(this.currentCampaign,this.previousCampaign,this.options,this.logger,e,this.topLevelDomain))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e;return(0,eA.Jh)(this,function(t){switch(t.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:if(!(e=t.sent()))return[3,3];return[4,this.storage.remove(this.webExpStorageKey)];case 2:t.sent(),t.label=3;case 3:return[4,Promise.all([e||new r1().parse(),this.storage.get(this.storageKey)])];case 4:return[2,t.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,r,n=(t=this.currentCampaign,r=this.options,tD(Object.entries((0,eA.pi)((0,eA.pi)({},tl),t)).reduce(function(e,t){var n,i=(0,eA.CR)(t,2),o=i[0],s=i[1];return(e.setOnce("initial_".concat(o),null!==(n=null!=s?s:r.initialEmptyValue)&&void 0!==n?n:"EMPTY"),s)?e.set(o,s):e.unset(o)},new tM)));return e&&(n.event_id=e),n},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),o_="AMP_CURRENT_PAGE",oE="AMP_PREVIOUS_PAGE",ok="AMP_URL_INFO";(b=el||(el={})).Direct="direct",b.Internal="internal",b.External="external";var ox=new Set([X.IDENTIFY,X.GROUP_IDENTIFY,X.REVENUE]),oC=function(e){var t=(void 0===e?{}:e).internalDomains,r=void 0===t?[]:t,n=(0,eC.l)(),i=void 0,o=!1,s=void 0,a=!1,l=!1,u=function(e){var t;try{var r=nP(e,s);t=new URL(r).hostname}catch(e){null==s||s.error("Could not parse URL: ",e)}return t},c=function(e){var t="undefined"!=typeof location&&location.hostname||"",n=e?u(e):void 0;if(!n)return el.Direct;var i=r.some(function(e){return -1!==t.indexOf(e)}),o=r.some(function(e){return -1!==n.indexOf(e)});return t===n||o&&i?el.Internal:el.External},d=function(){(0,eA.mG)(void 0,void 0,void 0,function(){var e,t,r,n,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:if(!(i&&o))return[3,3];return[4,i.get(ok)];case 1:return e=a.sent(),t=nP("undefined"!=typeof location&&location.href||""),r=(null==e?void 0:e[o_])||"",n=void 0,n=t===r?(null==e?void 0:e[oE])||"":r||document.referrer||"",[4,i.set(ok,((s={})[o_]=t,s[oE]=n,s))];case 2:a.sent(),a.label=3;case 3:return[2]}})})};return{name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(e,t){return(0,eA.mG)(void 0,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if((s=e.loggerProvider).log("Installing @amplitude/plugin-page-url-enrichment-browser"),l=!0,!n)return[3,2];try{i=new rl(n.sessionStorage)}catch(e){null==s||s.debug("sessionStorage is not available in this environment.")}return[4,null==i?void 0:i.isEnabled()];case 1:o=null!==(t=r.sent())&&void 0!==t&&t,n.addEventListener("popstate",d),a||(n.history.pushState=new Proxy(n.history.pushState,{apply:function(e,t,r){var n=(0,eA.CR)(r,3),i=n[0],o=n[1],s=n[2];e.apply(t,[i,o,s]),l&&d()}}),n.history.replaceState=new Proxy(n.history.replaceState,{apply:function(e,t,r){var n=(0,eA.CR)(r,3),i=n[0],o=n[1],s=n[2];e.apply(t,[i,o,s]),l&&d()}}),a=!0),r.label=2;case 2:return[2]}})})},execute:function(e){return(0,eA.mG)(void 0,void 0,void 0,function(){var t,r,n,s,a;return(0,eA.Jh)(this,function(l){switch(l.label){case 0:if(t=nP("undefined"!=typeof location&&location.href||""),!(i&&o))return[3,5];return[4,i.get(ok)];case 1:if(null==(r=l.sent())?void 0:r[o_])return[3,3];return[4,i.set(ok,((a={})[o_]=t,a[oE]=document.referrer||"",a))];case 2:l.sent(),l.label=3;case 3:return[4,i.get(ok)];case 4:if(n=l.sent(),s="",n&&(s=n[oE]||""),ox.has(e.event_type))return[2,e];e.event_properties=(0,eA.pi)((0,eA.pi)({},e.event_properties||{}),{"[Amplitude] Page Domain":oI(e,"[Amplitude] Page Domain","undefined"!=typeof location&&location.hostname||""),"[Amplitude] Page Location":oI(e,"[Amplitude] Page Location",t),"[Amplitude] Page Path":oI(e,"[Amplitude] Page Path","undefined"!=typeof location&&nP(location.pathname)||""),"[Amplitude] Page Title":oI(e,"[Amplitude] Page Title",r0(rY)),"[Amplitude] Page URL":oI(e,"[Amplitude] Page URL",t.split("?")[0]),"[Amplitude] Previous Page Location":s,"[Amplitude] Previous Page Type":c(s)}),l.label=5;case 5:return[2,e]}})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){switch(e.label){case 0:if(n&&(n.removeEventListener("popstate",d),l=!1),!(i&&o))return[3,2];return[4,i.set(ok,{})];case 1:e.sent(),e.label=2;case 2:return[2]}})})}}};function oI(e,t,r){return(e.event_properties||(e.event_properties={}),void 0===e.event_properties[t])?r:e.event_properties[t]}var oT=function(){var e,t,r;function n(t){if(t)try{var r=Function("return "+t)();if("function"==typeof r)return r;null==e||e.error("Custom enrichment body did not evaluate to a function")}catch(t){null==e||e.error("Could not create custom enrichment function",t)}return function(e){return e}}return{name:"@amplitude/plugin-custom-enrichment-browser",type:"enrichment",setup:function(i,o){return(0,eA.mG)(void 0,void 0,void 0,function(){var o,s;return(0,eA.Jh)(this,function(a){return null==(e=i.loggerProvider)||e.log("Installing @amplitude/plugin-custom-enrichment-browser"),(null===(s=i.remoteConfig)||void 0===s?void 0:s.fetchRemoteConfig)&&(i.remoteConfigClient?(o=i.remoteConfigClient.subscribe("configs.analyticsSDK.browserSDK.customEnrichment","all",function(e){r=e&&"object"==typeof e&&null!==e&&"body"in e&&"string"==typeof e.body?n(e.body||""):n("")}),t=function(){var e;return null===(e=i.remoteConfigClient)||void 0===e?void 0:e.unsubscribe(o)}):null==e||e.debug("Remote config client is not provided, skipping remote config fetch")),[2]})})},execute:function(t){return(0,eA.mG)(void 0,void 0,void 0,function(){var n;return(0,eA.Jh)(this,function(i){if(r)try{return[2,null!==(n=r(t))&&void 0!==n?n:null]}catch(t){null==e||e.error("Could not execute custom enrichment function",t)}return[2,t]})})},teardown:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return t&&t(),[2]})})}}},oO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._diagnosticsSampleRate=0,t._enableRequestBodyCompressionExperimentalValue=!1,t}return(0,eA.ZT)(t,e),t.prototype.init=function(e,t,r){var n,i;return void 0===e&&(e=""),arguments.length>2?(n=t,i=r):"string"==typeof t?(n=t,i=void 0):(n=null==t?void 0:t.userId,i=t),e_(this._init((0,eA.pi)((0,eA.pi)({},i),{userId:n,apiKey:e})))},t.prototype._init=function(t){var r,n,i,o,s,a,l,u;return(0,eA.mG)(this,void 0,void 0,function(){var c,d,p,f,h,g,m,v,y,b,w,S,A,_,E=this;return(0,eA.Jh)(this,function(k){var x,C,I,T,O,R,P;switch(k.label){case 0:if(this.initializing)return[2];if(this.initializing=!0,c=rV(t),d=null!==(r=t.loggerProvider)&&void 0!==r?r:new ek,t.loggerProvider||d.enable(null!==(n=t.logLevel)&&void 0!==n?n:Z.Warn),p=null!==(i=t.serverZone)&&void 0!==i?i:"US",h=this._diagnosticsSampleRate,g=null===(o=t.enableDiagnostics)||void 0===o||o,!c)return[3,2];return f=new eR(t.apiKey,d,p,null===(s=t.remoteConfig)||void 0===s?void 0:s.serverUrl),[4,new Promise(function(e){null==f||f.subscribe("configs.diagnostics.browserSDK","all",function(t,r,n){if(d.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:t,source:r,lastFetch:n},null,2)),t){var i=t.sampleRate;"number"!=typeof i||isNaN(i)||(h=i);var o=t.enabled;"boolean"==typeof o&&(g=o)}e()})})];case 1:k.sent(),k.label=2;case 2:return(m=new eq(t.apiKey,d,p,{enabled:g,sampleRate:h})).setTag("library","".concat(t7,"/").concat(t8)),"undefined"!=typeof navigator&&m.setTag("user_agent",navigator.userAgent),[4,(x=t.apiKey,C=t,I=this,T=m,O={loggerProvider:d,serverZone:p,enableDiagnostics:g,diagnosticsSampleRate:h},void 0===C&&(C={}),(0,eA.mG)(void 0,void 0,void 0,function(){var e,t,r,n,i,o,s,a,l,u,c,d,p,f,h,g,m,v,y,b,w,S,A,_,E,k,R,P,M,L,D,N,j,F,U,B,$,q,G,z,H,V,J,Z,W,K,Q,X,Y,ee,et;return(0,eA.Jh)(this,function(er){var en,ei,eo;switch(er.label){case 0:if(e=C.identityStorage||rM,t="",!(e===rM&&!(null===(S=C.cookieOptions)||void 0===S?void 0:S.domain)&&(null===(A=C.cookieOptions)||void 0===A?void 0:A.domain)!==""))return[3,2];return[4,(en=void 0,(0,eA.mG)(void 0,void 0,void 0,function(){var e,t,r,n,i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:return[4,new rr(void 0,{diagnosticsClient:T}).isEnabled()];case 1:if(!a.sent()||!en&&("undefined"==typeof location||!location.hostname)||1===(t=(e=null!=en?en:location.hostname).split(".")).length)return[2,""];for(r=[],n=1,r$.find(function(t){return e.endsWith(".".concat(t))})&&(n=2),i=t.length-n-1;i>=0;--i)r.push(t.slice(i).join("."));i=0,a.label=2;case 2:if(!(i<r.length))return[3,7];o=r[i],a.label=3;
25case 3:return a.trys.push([3,5,,6]),[4,rr.isDomainWritable(o)];case 4:if(a.sent())return[2,"."+o];return[3,6];case 5:return s=a.sent(),T&&T.recordEvent("cookies.tld.failure",{reason:"Unexpected exception checking domain is writable: ".concat(o),error:s instanceof Error?s.message:String(s)}),[3,6];case 6:return i++,[3,2];case 7:return T&&T.recordEvent("cookies.tld.failure",{reason:"Could not determine TLD for host ".concat(e)}),[2,""]}})}))];case 1:t=er.sent(),er.label=2;case 2:return r=(0,eA.pi)({domain:null!==(E=null===(_=C.cookieOptions)||void 0===_?void 0:_.domain)&&void 0!==E?E:t,expiration:365,sameSite:"Lax",secure:!1,upgrade:!0},C.cookieOptions),n={duplicateResolverFn:function(e){var t=ro(e);return!!t&&rs(JSON.parse(t).cookieDomain,r.domain)},diagnosticsClient:T},[4,(ei=i=rH(C.identityStorage,r,n),void 0===(eo=null===(R=null===(k=C.cookieOptions)||void 0===k?void 0:k.upgrade)||void 0===R||R)&&(eo=!0),(0,eA.mG)(void 0,void 0,void 0,function(){var e,t,r,n,i,o,s,a,l;return(0,eA.Jh)(this,function(u){switch(u.label){case 0:return e="".concat("amp","_").concat(x.substring(0,6)),[4,ei.getRaw(e)];case 1:if(!(t=u.sent()))return[2,{optOut:!1}];if(!eo)return[3,3];return[4,ei.remove(e)];case 2:u.sent(),u.label=3;case 3:return n=(r=(0,eA.CR)(t.split("."),6))[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],[2,{deviceId:n,userId:ry(i),sessionId:rv(s),lastEventId:rv(l),lastEventTime:rv(a),optOut:!!o}]}})}))];case 3:return o=er.sent(),[4,i.get(ra(x))];case 4:return s=er.sent(),u=!(l=(a=eG()).ampTimestamp?Number(a.ampTimestamp):void 0)||Date.now()<l,c=null!==(N=null!==(D=null!==(L=null!==(P=C.deviceId)&&void 0!==P?P:u?null!==(M=a.ampDeviceId)&&void 0!==M?M:a.deviceId:void 0)&&void 0!==L?L:null==s?void 0:s.deviceId)&&void 0!==D?D:o.deviceId)&&void 0!==N?N:eT(),d=null!==(j=null==s?void 0:s.lastEventId)&&void 0!==j?j:o.lastEventId,p=null!==(F=null==s?void 0:s.lastEventTime)&&void 0!==F?F:o.lastEventTime,f=null!==(B=null!==(U=C.optOut)&&void 0!==U?U:null==s?void 0:s.optOut)&&void 0!==B?B:o.optOut,h=null!==($=null==s?void 0:s.sessionId)&&void 0!==$?$:o.sessionId,g=null==s?void 0:s.deferredSessionId,m=null!==(G=null!==(q=C.userId)&&void 0!==q?q:null==s?void 0:s.userId)&&void 0!==G?G:o.userId,I.previousSessionDeviceId=null!==(z=null==s?void 0:s.deviceId)&&void 0!==z?z:o.deviceId,I.previousSessionUserId=null!==(H=null==s?void 0:s.userId)&&void 0!==H?H:o.userId,v={ipAddress:null===(J=null===(V=C.trackingOptions)||void 0===V?void 0:V.ipAddress)||void 0===J||J,language:null===(W=null===(Z=C.trackingOptions)||void 0===Z?void 0:Z.language)||void 0===W||W,platform:null===(Q=null===(K=C.trackingOptions)||void 0===K?void 0:K.platform)||void 0===Q||Q},y=null==s?void 0:s.pageCounter,b=null==s?void 0:s.debugLogsEnabled,void 0!==C.autocapture&&(C.defaultTracking=C.autocapture),[4,(w=new rz(x,C.appVersion,i,r,C.defaultTracking,C.autocapture,c,C.flushIntervalMillis,C.flushMaxRetries,C.flushQueueSize,e,C.ingestionMetadata,C.instanceName,d,p,null!==(X=null==O?void 0:O.loggerProvider)&&void 0!==X?X:C.loggerProvider,C.logLevel,C.minIdLength,C.offline,f,C.partnerId,C.plan,C.serverUrl,null!==(Y=null==O?void 0:O.serverZone)&&void 0!==Y?Y:C.serverZone,h,g,C.sessionTimeout,C.storageProvider,v,C.transport,C.useBatch,C.fetchRemoteConfig,m,y,b,C.networkTrackingOptions,C.identify,null!==(ee=null==O?void 0:O.enableDiagnostics)&&void 0!==ee?ee:C.enableDiagnostics,null!==(et=null==O?void 0:O.diagnosticsSampleRate)&&void 0!==et?et:I._diagnosticsSampleRate,T,C.remoteConfig,t,C.enableRequestBodyCompression,I._enableRequestBodyCompressionExperimentalValue,C.customEnrichment)).storageProvider.isEnabled()];case 5:return er.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new re),[2,w]}})}))];case 3:if(v=k.sent(),!(c&&f))return[3,5];return[4,new Promise(function(e){null==f||f.subscribe("configs.analyticsSDK.browserSDK","all",function(t,r,n){v.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:t,source:r,lastFetch:n},null,2)),t&&function(e,t){if(e){!function e(t){if(!("object"!=typeof t||null===t||Array.isArray(t))){var r,n,i,o,s,a,l,u,c,d,p,f,h=Object.keys(t);try{for(var g=(0,eA.XA)(h),m=g.next();!m.done;m=g.next()){var v=m.value;try{var y=t[v];"boolean"==typeof(null==y?void 0:y.enabled)&&(y.enabled?(delete y.enabled,0===Object.keys(y).length&&(t[v]=!0)):t[v]=!1),e(y)}catch(e){}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(n=g.return)&&n.call(g)}finally{if(r)throw r.error}}
25try{if(null===(c=null===(u=null===(l=t.autocapture)||void 0===l?void 0:l.networkTracking)||void 0===u?void 0:u.captureRules)||void 0===c?void 0:c.length)try{for(var b=(0,eA.XA)(t.autocapture.networkTracking.captureRules),w=b.next();!w.done;w=b.next()){var S=w.value;try{for(var A=(s=void 0,(0,eA.XA)(["responseHeaders","requestHeaders"])),_=A.next();!_.done;_=A.next()){var E=_.value,k=null!==(d=S[E])&&void 0!==d?d:{},x=k.captureSafeHeaders,C=k.allowlist;if(x||C){if(void 0!==C&&!Array.isArray(C)){delete S[E];continue}S[E]=(0,eA.ev)((0,eA.ev)([],(0,eA.CR)(x?tu:[]),!1),(0,eA.CR)(null!=C?C:[]),!1)}}}catch(e){s={error:e}}finally{try{_&&!_.done&&(a=A.return)&&a.call(A)}finally{if(s)throw s.error}}}}catch(e){i={error:e}}finally{try{w&&!w.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}}catch(e){}var I=null===(p=t.autocapture)||void 0===p?void 0:p.frustrationInteractions;I&&(I.rageClick&&(I.rageClicks=I.rageClick,delete I.rageClick),I.deadClick&&(I.deadClicks=I.deadClick,delete I.deadClick));try{var T=null===(f=t.autocapture)||void 0===f?void 0:f.elementInteractions;if(T&&"object"==typeof T&&(!0===T.viewportContentUpdated&&(T.viewportContentUpdated={}),!1===T.viewportContentUpdated&&(T.viewportContentUpdated={enabled:!1}),void 0!==T.exposureDuration)){var O=T.viewportContentUpdated;void 0===O?T.viewportContentUpdated={exposureDuration:T.exposureDuration}:"object"==typeof O&&void 0===O.exposureDuration&&!1!==O.enabled&&(O.exposureDuration=T.exposureDuration),delete T.exposureDuration}}catch(e){}}}(e);try{var r,n,i,o,s,a,l;if(t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e)),e&&"autocapture"in e){if("boolean"==typeof e.autocapture&&(t.autocapture=e.autocapture),"object"==typeof e.autocapture&&null!==e.autocapture){var u=(0,eA.pi)({},e.autocapture);if(void 0===t.autocapture&&(t.autocapture=e.autocapture),"object"==typeof e.autocapture.elementInteractions&&null!==e.autocapture.elementInteractions&&(null===(i=e.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===i?void 0:i.length)){u.elementInteractions=(0,eA.pi)({},e.autocapture.elementInteractions);var c=u.elementInteractions,d=null!==(o=c.pageUrlAllowlist)&&void 0!==o?o:[],p=e.autocapture.elementInteractions.pageUrlAllowlistRegex;c.pageUrlAllowlist=no(d,p,t),delete c.pageUrlAllowlistRegex}if("object"==typeof e.autocapture.networkTracking&&null!==e.autocapture.networkTracking&&(null===(s=e.autocapture.networkTracking.captureRules)||void 0===s?void 0:s.length)){u.networkTracking=(0,eA.pi)({},e.autocapture.networkTracking);var f=u.networkTracking,h=null!==(a=f.captureRules)&&void 0!==a?a:[];try{for(var g=(0,eA.XA)(h),m=g.next();!m.done;m=g.next()){var v=m.value;v.urls=no(null!==(l=v.urls)&&void 0!==l?l:[],v.urlsRegex,t),delete v.urlsRegex}}catch(e){r={error:e}}finally{try{m&&!m.done&&(n=g.return)&&n.call(g)}finally{if(r)throw r.error}}}"boolean"==typeof t.autocapture&&(t.autocapture=(0,eA.pi)({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},u)),"object"==typeof t.autocapture&&(t.autocapture=(0,eA.pi)((0,eA.pi)({},t.autocapture),u))}t.defaultTracking=t.autocapture}"customEnrichment"in e&&null!==e.customEnrichment&&(t.customEnrichment=e.customEnrichment),t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(e){t.loggerProvider.error("Failed to apply remote configuration because of error: ",e)}}}(t,v),e()})})];case 4:k.sent(),k.label=5;case 5:return[4,e.prototype._init.call(this,v)];case 6:if(k.sent(),this.logBrowserOptions(v),this.config.remoteConfigClient=f,!tH(this.config.defaultTracking))return[3,8];return this.config.optOut&&this.timeline.addOptOutListener(function(e){return(0,eA.mG)(E,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(e)return[3,2];return t=t2(this.config),this.webAttribution=new oA(t,this.config),[4,this.webAttribution.init()];case 1:r.sent(),r.label=2;case 2:return[2]}})})}),y=t2(this.config),this.webAttribution=new oA(y,this.config),[4,this.webAttribution.init()];case 7:k.sent(),k.label=8;case 8:if(S=!(!(w=(b=eG()).ampTimestamp?Number(b.ampTimestamp):void 0)||Date.now()<w)||Number.isNaN(Number(b.ampSessionId))?void 0:Number(b.ampSessionId),-1!==(A=this.config.deferredSessionId)||this.config.optOut||(A=Date.now()),this.setSessionId(null!==(u=null!==(l=null!==(a=t.sessionId)&&void 0!==a?a:S)&&void 0!==l?l:A)&&void 0!==u?u:this.config.sessionId),this.config.optOut&&this.timeline.addOptOutListener(function(e){return(0,eA.mG)(E,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return!e&&this.config.deferredSessionId&&(-1===this.config.deferredSessionId?this.setSessionId(void 0):this.setSessionId(this.config.deferredSessionId)),[2]})})}),(_=td(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(this.config.offline!==th))return[3,10];return[4,this.add(ni()).promise];case 9:k.sent(),k.label=10;case 10:return[4,this.add(new tT({diagnosticsClient:m})).promise];case 11:return k.sent(),[4,this.add(new t9).promise];case 12:return k.sent(),[4,this.add(new tO).promise];case 13:if(k.sent(),nn(this.config),!tz(this.config.defaultTracking,"fileDownloads"))return[3,15];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(nt()).promise];case 14:k.sent(),k.label=15;case 15:if(!tV(this.config.defaultTracking))return[3,17];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(r7()).promise];case 16:k.sent(),k.label=17;case 17:if(!tJ(this.config.defaultTracking))return[3,20];if(this.config.optOut)return[3,19];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(r4(t1(this.config))).promise];case 18:return k.sent(),[3,20];case 19:this.timeline.addOptOutListener(function(e){return(0,eA.mG)(E,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){switch(t.label){case 0:if(e)return[2];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(r4(t1(this.config))).promise];case 1:return t.sent(),[2]}})})}),k.label=20;case 20:if(!tK(this.config.autocapture))return[3,22];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(is(tX(this.config),{diagnosticsClient:m})).promise];case 21:k.sent(),k.label=22;case 22:if(!tQ(this.config.autocapture))return[3,24];return this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(iw(tY(this.config))).promise];case 23:k.sent(),k.label=24;case 24:if(!tW(this.config.autocapture))return[3,26];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(iG(t0(this.config))).promise];
25case 25:k.sent(),k.label=26;case 26:if(!("boolean"==typeof(R=this.config.autocapture)?R:"object"==typeof R&&!0===R.webVitals))return[3,28];return this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(ow()).promise];case 27:k.sent(),k.label=28;case 28:if(!tz(this.config.autocapture,"pageUrlEnrichment"))return[3,30];return this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(oC()).promise];case 29:k.sent(),k.label=30;case 30:if(!("boolean"==typeof(P=this.config.customEnrichment)?P:"object"==typeof P&&null!==P&&!1!==P.enabled))return[3,32];return this.config.loggerProvider.debug("Adding custom enrichment plugin"),[4,this.add(oT()).promise];case 31:k.sent(),k.label=32;case 32:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 33:return k.sent(),_.eventBridge.setEventReceiver(function(e){var t=e.eventProperties||{},r=t.time,n=(0,eA._T)(t,["time"]);E.track(e.eventType,n,"number"==typeof r?{time:r}:void 0)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),tp(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),tf(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(eT()),this.setUserId(void 0),this.timeline.onReset()},t.prototype.getIdentity=function(){var e,t;return{deviceId:null===(e=this.config)||void 0===e?void 0:e.deviceId,userId:null===(t=this.config)||void 0===t?void 0:t.userId,userProperties:this.userProperties}},t.prototype.setIdentity=function(e){if("userId"in e&&this.setUserId(e.userId),"deviceId"in e&&e.deviceId&&this.setDeviceId(e.deviceId),"userProperties"in e){this.userProperties=e.userProperties;var t,r,n,i=new tM,o=null!==(n=e.userProperties)&&void 0!==n?n:{};try{for(var s=(0,eA.XA)(Object.entries(o)),a=s.next();!a.done;a=s.next()){var l=(0,eA.CR)(a.value,2),u=l[0],c=l[1];i.set(u,c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}this.identify(i)}},t.prototype.getOptOut=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.optOut},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),e_(Promise.resolve());if(this.config.optOut)return this.config.deferredSessionId=null!=e?e:-1,e_(Promise.resolve());if(void 0===e&&(e=Date.now()),e===this.config.sessionId)return e_(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var n=this.getSessionId();n!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,tZ(this.config.defaultTracking)&&(n&&i&&r.push(this.track(rE,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:n,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var s=this.trackCampaignEventIfNeeded(++o,r);return this.config.identify&&r.push(this.track(tD(this.config.identify)).promise),tZ(this.config.defaultTracking)&&r.push(this.track(r_,void 0,{event_id:s?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,e_(Promise.all(r))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}
25this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=rJ(e)},t.prototype.identify=function(t,r){if(t5(t)){var n=t._q;t._q=[],t=t4(new tM,n)}return(null==r?void 0:r.user_id)&&this.setUserId(r.user_id),(null==r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,i){if(t5(n)){var o=n._q;n._q=[],n=t4(new tM,o)}return e.prototype.groupIdentify.call(this,t,r,n,i)},t.prototype.revenue=function(t,r){if(t5(t)){var n=t._q;t._q=[],t=t4(new tF,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,eA.mG)(this,void 0,void 0,function(){var r,n,i;return(0,eA.Jh)(this,function(o){return r=Date.now(),n=tU(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===r_||t.event_type===rE||t.session_id&&t.session_id!==this.getSessionId()||(n||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,eA.pi)((0,eA.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",t$(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t.prototype._setDiagnosticsSampleRate=function(e){if(!(e>1)&&!(e<0)&&!this.config){this._diagnosticsSampleRate=e;return}},t.prototype._enableRequestBodyCompressionExperimental=function(e){if(!this.config){this._enableRequestBodyCompressionExperimentalValue=e;return}},t}(tG),oR=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.customHeaders=t,r}return(0,eA.ZT)(t,e),t.prototype.send=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){var r,n,i;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return r={headers:(0,eA.pi)({"Content-Type":"application/json",Accept:"*/*"},this.customHeaders),body:JSON.stringify(t),method:"POST"},[4,fetch(e,r)];case 1:return[4,(n=o.sent()).text()];case 2:i=o.sent();try{return[2,this.buildResponse(JSON.parse(i))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(rf);(w=eu||(eu={})).US="US",w.EU="EU",w.STAGING="STAGING";var oP="[Amplitude]",oM="".concat(oP," Session Replay ID"),oL=eu.US,oD={enabled:!0},oN="".concat(oP," Session Replay Debug"),oj="amp-mask",oF="https://api-sr.amplitude.com/sessions/v2/track",oU="https://api-sr.eu.amplitude.com/sessions/v2/track",oB="https://api-sr.stag2.amplitude.com/sessions/v2/track";(S=ec||(ec={})).GET_SR_PROPS="get-sr-props",S.DEBUG_INFO="debug-info",S.FETCH_REQUEST="fetch-request",S.METADATA="metadata",S.TARGETING_DECISION="targeting-decision";var o$=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){if(!this.logger)return function(){};var t,r=this.logger[e];return"function"==typeof r?(null!==(t=r.__rrweb_original__)&&void 0!==t?t:r).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}(),oq="medium",oG=function(e,t,r){switch(t){case"light":if("input"!==e)return!0;var n,i=r?(n=r.type,r.hasAttribute("data-rr-is-password")?"password":n?n.toLowerCase():null):"";if(!i)return!1;if(["password","hidden","email","tel"].includes(i)||r.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return oG(e,oq,r)}},oz=function(e,t,r){var n,i,o;if(void 0===t&&(t={defaultMaskLevel:oq}),r){if(r.closest("."+oj)||(null!==(n=t.maskSelector)&&void 0!==n?n:[]).some(function(e){return r.closest(e)}))return!0;
25if(r.closest(".amp-unmask")||(null!==(i=t.unmaskSelector)&&void 0!==i?i:[]).some(function(e){return r.closest(e)}))return!1}return oG(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:oq,r)},oH=function(e,t){return function(r,n){return oz(e,t,n)?r.replace(/[^\s]/g,"*"):r}},oV=function(){var e=(0,eC.l)();return(null==e?void 0:e.location)?e.location.href:""},oJ=function(e,t){return t||(e===eu.STAGING?oB:e===eu.EU?oU:oF)},oZ=function(e){var t=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp("^".concat(t,"$"))},oW=function(e){if(!e.every(function(e){return"string"==typeof e.selector&&"string"==typeof e.replacement}))throw Error("ugcFilterRules must be an array of objects with selector and replacement properties");if(!e.every(function(e){var t;return"string"==typeof(t=e.selector)&&""!==t.trim()&&!!/^\/|^https?:\/\/[^\s]+$/.test(t)}))throw Error("ugcFilterRules must be an array of objects with valid globs")},oK=function(e,t){var r,n;try{for(var i=(0,eA.XA)(t),o=i.next();!o.done;o=i.next()){var s=o.value,a=oZ(s.selector);if(a.test(e))return e.replace(a,s.replacement)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},oQ=function(){return(0,eA.mG)(void 0,void 0,void 0,function(){var e,t,r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=(0,eC.l)()))return[3,2];return[4,e.navigator.storage.estimate()];case 1:return r=(t=i.sent()).usage,n=t.quota,[2,{totalStorageSize:r?Math.round(r/1024):0,percentOfQuota:r&&n?Math.round((r/n+Number.EPSILON)*1e3)/1e3:0,usageDetails:JSON.stringify(t.usageDetails)}];case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},oX=function(e){var t=(0,eA.pi)({},e),r=t.apiKey;return t.apiKey="****".concat(r.substring(r.length-4)),t},oY=function(){return{flushMaxRetries:2,logLevel:Z.Warn,loggerProvider:new ek,transportProvider:new oR}},o0=function(e){function t(t,r){var n,i,o,s,a,l,u=this,c=oY();return(u=e.call(this,(0,eA.pi)((0,eA.pi)({transportProvider:c.transportProvider,loggerProvider:new o$(r.loggerProvider||c.loggerProvider)},r),{apiKey:t}))||this).flushMaxRetries=void 0!==r.flushMaxRetries&&r.flushMaxRetries<=c.flushMaxRetries?r.flushMaxRetries:c.flushMaxRetries,u.apiKey=t,u.sampleRate=r.sampleRate||0,u.serverZone=r.serverZone||oL,u.configServerUrl=r.configServerUrl,u.trackServerUrl=r.trackServerUrl,u.shouldInlineStylesheet=r.shouldInlineStylesheet,u.version=r.version,u.performanceConfig=r.performanceConfig||oD,u.storeType=null!==(n=r.storeType)&&void 0!==n?n:"idb",u.applyBackgroundColorToBlockedElements=null!==(i=r.applyBackgroundColorToBlockedElements)&&void 0!==i&&i,u.enableUrlChangePolling=null!==(o=r.enableUrlChangePolling)&&void 0!==o&&o,u.urlChangePollingInterval=null!==(s=r.urlChangePollingInterval)&&void 0!==s?s:1e3,u.captureDocumentTitle=null!==(a=r.captureDocumentTitle)&&void 0!==a&&a,r.privacyConfig&&(u.privacyConfig=r.privacyConfig),r.interactionConfig&&(u.interactionConfig=r.interactionConfig,u.interactionConfig.ugcFilterRules&&oW(u.interactionConfig.ugcFilterRules)),r.debugMode&&(u.debugMode=r.debugMode),void 0!==r.useWebWorker?u.useWebWorker=r.useWebWorker:(null===(l=r.experimental)||void 0===l?void 0:l.useWebWorker)!==void 0&&(u.useWebWorker=r.experimental.useWebWorker),r.omitElementTags&&(u.omitElementTags=r.omitElementTags),u}return(0,eA.ZT)(t,e),t}(ty),o1=((A=o1||{})[A.DomContentLoaded=0]="DomContentLoaded",A[A.Load=1]="Load",A[A.FullSnapshot=2]="FullSnapshot",A[A.IncrementalSnapshot=3]="IncrementalSnapshot",A[A.Meta=4]="Meta",A[A.Custom=5]="Custom",A[A.Plugin=6]="Plugin",A),o2=((_=o2||{})[_.Mutation=0]="Mutation",_[_.MouseMove=1]="MouseMove",_[_.MouseInteraction=2]="MouseInteraction",_[_.Scroll=3]="Scroll",_[_.ViewportResize=4]="ViewportResize",_[_.Input=5]="Input",_[_.TouchMove=6]="TouchMove",_[_.MediaInteraction=7]="MediaInteraction",_[_.StyleSheetRule=8]="StyleSheetRule",_[_.CanvasMutation=9]="CanvasMutation",_[_.Font=10]="Font",_[_.Log=11]="Log",_[_.Drag=12]="Drag",_[_.StyleDeclaration=13]="StyleDeclaration",_[_.Selection=14]="Selection",_[_.AdoptedStyleSheet=15]="AdoptedStyleSheet",_[_.CustomElement=16]="CustomElement",_),o3=((E=o3||{})[E.MouseUp=0]="MouseUp",E[E.MouseDown=1]="MouseDown",E[E.Click=2]="Click",E[E.ContextMenu=3]="ContextMenu",E[E.DblClick=4]="DblClick",E[E.Focus=5]="Focus",E[E.Blur=6]="Blur",E[E.TouchStart=7]="TouchStart",E[E.TouchMove_Departed=8]="TouchMove_Departed",E[E.TouchEnd=9]="TouchEnd",E[E.TouchCancel=10]="TouchCancel",E),o4=((k=o4||{})[k.Mouse=0]="Mouse",k[k.Pen=1]="Pen",k[k.Touch=2]="Touch",k),o5=((x=o5||{})[x["2D"]=0]="2D",x[x.WebGL=1]="WebGL",x[x.WebGL2=2]="WebGL2",x),o6=((C=o6||{})[C.Play=0]="Play",C[C.Pause=1]="Pause",C[C.Seeked=2]="Seeked",C[C.VolumeChange=3]="VolumeChange",C[C.RateChange=4]="RateChange",C),o8=((I=o8||{}).Start="start",I.Pause="pause",I.Resume="resume",I.Resize="resize",I.Finish="finish",I.FullsnapshotRebuilded="fullsnapshot-rebuilded",I.LoadStylesheetStart="load-stylesheet-start",I.LoadStylesheetEnd="load-stylesheet-end",I.SkipStart="skip-start",I.SkipEnd="skip-end",I.MouseInteraction="mouse-interaction",I.EventCast="event-cast",I.CustomEvent="custom-event",I.Flush="flush",I.StateChange="state-change",I.PlayBack="play-back",I.Destroy="destroy",I),o7=((T=o7||{})[T.Document=0]="Document",T[T.DocumentType=1]="DocumentType",T[T.Element=2]="Element",T[T.Text=3]="Text",T[T.CDATA=4]="CDATA",T[T.Comment=5]="Comment",T),o9=function(e,t){var r=document.createDocumentFragment(),n=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter(function(e){try{r.querySelector(e)}catch(r){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invali
25d')),!1}return!0})).length)return e};return e.blockSelector=n(e.blockSelector),e.maskSelector=n(e.maskSelector),e.unmaskSelector=n(e.unmaskSelector),e},se=function(){function e(e,t){this.localConfig=t,this.remoteConfigClient=e}return e.prototype.generateJoinedConfig=function(){var e,t,r,n,i;return(0,eA.mG)(this,void 0,void 0,function(){var o,s,a,l,u,c,d,p,f,h,g,m,v,y,b,w,S,A=this;return(0,eA.Jh)(this,function(_){switch(_.label){case 0:(o=(0,eA.pi)({},this.localConfig)).optOut=this.localConfig.optOut,o.captureEnabled=!0,_.label=1;case 1:return _.trys.push([1,3,,4]),[4,new Promise(function(e,t){A.remoteConfigClient.subscribe("configs.sessionReplay","all",function(r,n){if(A.localConfig.loggerProvider.debug("Session Replay remote configuration received from ".concat(n,":"),JSON.stringify(r,null,2)),!r){t(Error("No remote config received"));return}var i,a=r.sr_sampling_config,l=r.sr_privacy_config,u=r.sr_targeting_config,c=null===(i=o.interactionConfig)||void 0===i?void 0:i.ugcFilterRules;o.interactionConfig=r.sr_interaction_config,o.interactionConfig&&c&&(o.interactionConfig.ugcFilterRules=c),o.loggingConfig=r.sr_logging_config,(a||l||u)&&(s={},a&&(s.sr_sampling_config=a),l&&(s.sr_privacy_config=l),u&&(s.sr_targeting_config=u)),e()})})];case 2:return _.sent(),[3,4];case 3:return a=_.sent(),this.localConfig.loggerProvider.error("Failed to generate joined config: ",a),o.captureEnabled=!1,[2,{localConfig:this.localConfig,joinedConfig:o,remoteConfig:void 0}];case 4:if(!s)return[2,{localConfig:this.localConfig,joinedConfig:o,remoteConfig:s}];if(l=s.sr_sampling_config,u=s.sr_privacy_config,c=s.sr_targeting_config,l&&Object.keys(l).length>0?(Object.prototype.hasOwnProperty.call(l,"capture_enabled")?o.captureEnabled=l.capture_enabled:o.captureEnabled=!1,Object.prototype.hasOwnProperty.call(l,"sample_rate")&&(o.sampleRate=l.sample_rate)):(o.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),u){d=null!==(e=o.privacyConfig)&&void 0!==e?e:{},p={defaultMaskLevel:null!==(r=null!==(t=u.defaultMaskLevel)&&void 0!==t?t:d.defaultMaskLevel)&&void 0!==r?r:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[],maskAttributes:(0,eA.ev)([],(0,eA.CR)(new Set((0,eA.ev)((0,eA.ev)([],(0,eA.CR)(null!==(n=d.maskAttributes)&&void 0!==n?n:[]),!1),(0,eA.CR)(null!==(i=u.maskAttributes)&&void 0!==i?i:[]),!1))),!1)},f=function(e){var t,r,n,i,o,s,a,l,u,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=(0,eA.XA)(null!==(a=e.blockSelector)&&void 0!==a?a:[]),p=d.next();!p.done;p=d.next()){var f=p.value;c[f]="block"}}catch(e){t={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}try{for(var h=(0,eA.XA)(null!==(l=e.maskSelector)&&void 0!==l?l:[]),g=h.next();!g.done;g=h.next()){var f=g.value;c[f]="mask"}}catch(e){n={error:e}}finally{try{g&&!g.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}try{for(var m=(0,eA.XA)(null!==(u=e.unmaskSelector)&&void 0!==u?u:[]),v=m.next();!v.done;v=m.next()){var f=v.value;c[f]="unmask"}}catch(e){o={error:e}}finally{try{v&&!v.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}return c},h=(0,eA.pi)((0,eA.pi)({},f(d)),f(u));try{for(m=(g=(0,eA.XA)(Object.entries(h))).next();!m.done;m=g.next())y=(v=(0,eA.CR)(m.value,2))[0],b=v[1],"mask"===b?p.maskSelector.push(y):"block"===b?p.blockSelector.push(y):"unmask"===b&&p.unmaskSelector.push(y)}catch(e){w={error:e}}finally{try{m&&!m.done&&(S=g.return)&&S.call(g)}finally{if(w)throw w.error}}o.privacyConfig=o9(p,this.localConfig.loggerProvider)}return c&&Object.keys(c).length>0&&(o.targetingConfig=c),this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:oX(o)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:o,remoteConfig:s}]}})})},e}(),st=Uint8Array,sr=Uint16Array,sn=Uint32Array,si=new st([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),so=new st([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ss=new st([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),sa=function(e,t){for(var r=new sr(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];
vendor: 5,677 bytes, line 25
25for(var i=new sn(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},sl=sa(si,2),su=sl[0],sc=sl[1];su[28]=258,sc[258]=28;for(var sd=sa(so,0),sp=(sd[0],sd[1]),sf=new sr(32768),sh=0;sh<32768;++sh){var sg=(43690&sh)>>>1|(21845&sh)<<1;sg=(61680&(sg=(52428&sg)>>>2|(13107&sg)<<2))>>>4|(3855&sg)<<4,sf[sh]=((65280&sg)>>>8|(255&sg)<<8)>>>1}for(var sm=function(e,t,r){for(var n,i=e.length,o=0,s=new sr(t);o<i;++o)++s[e[o]-1];var a=new sr(t);for(o=0;o<t;++o)a[o]=a[o-1]+s[o-1]<<1;if(r){n=new sr(1<<t);var l=15-t;for(o=0;o<i;++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],d=a[e[o]-1]++<<c,p=d|(1<<c)-1;d<=p;++d)n[sf[d]>>>l]=u}else for(o=0,n=new sr(i);o<i;++o)n[o]=sf[a[e[o]-1]++]>>>15-e[o];return n},sv=new st(288),sh=0;sh<144;++sh)sv[sh]=8;for(var sh=144;sh<256;++sh)sv[sh]=9;for(var sh=256;sh<280;++sh)sv[sh]=7;for(var sh=280;sh<288;++sh)sv[sh]=8;for(var sy=new st(32),sh=0;sh<32;++sh)sy[sh]=5;var sb=sm(sv,9,0),sw=sm(sy,5,0),sS=function(e){return(e/8>>0)+(7&e&&1)},sA=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof sr?sr:e instanceof sn?sn:st)(r-t);return n.set(e.subarray(t,r)),n},s_=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},sE=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},sk=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return[new st(0),0];if(1==i){var s=new st(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=r[r[u].f<r[d].f?u++:d++],l=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};for(var p=o[0].s,n=1;n<i;++n)o[n].s>p&&(p=o[n].s);var f=new sr(p+1),h=sx(r[c-1],f,0);if(h>t){var n=0,g=0,m=h-t,v=1<<m;for(o.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});n<i;++n){var y=o[n].s;if(f[y]>t)g+=v-(1<<h-f[y]),f[y]=t;else break}for(g>>>=m;g>0;){var b=o[n].s;f[b]<t?g-=1<<t-f[b]++-1:++n}for(;n>=0&&g;--n){var w=o[n].s;f[w]==t&&(--f[w],++g)}h=t}return[new st(f),h]},sx=function(e,t,r){return -1==e.s?Math.max(sx(e.l,t,r+1),sx(e.r,t,r+1)):t[e.s]=r},sC=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new sr(++t),n=0,i=e[0],o=1,s=function(e){r[n++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[r.subarray(0,n),t]},sI=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},sT=function(e,t,r){var n=r.length,i=sS(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<n;++o)e[i+o+4]=r[o];return(i+4+n)*8},sO=function(e,t,r,n,i,o,s,a,l,u,c){s_(t,c++,r),++i[256];for(var d,p,f,h,g=sk(i,15),m=g[0],v=g[1],y=sk(o,15),b=y[0],w=y[1],S=sC(m),A=S[0],_=S[1],E=sC(b),k=E[0],x=E[1],C=new sr(19),I=0;I<A.length;++I)C[31&A[I]]++;for(var I=0;I<k.length;++I)C[31&k[I]]++;for(var T=sk(C,7),O=T[0],R=T[1],P=19;P>4&&!O[ss[P-1]];--P);var M=u+5<<3,L=sI(i,sv)+sI(o,sy)+s,D=sI(i,m)+sI(o,b)+s+14+3*P+sI(C,O)+(2*C[16]+3*C[17]+7*C[18]);if(M<=L&&M<=D)return sT(t,c,e.subarray(l,l+u));if(s_(t,c,1+(D<L)),c+=2,D<L){d=sm(m,v,0),p=m,f=sm(b,w,0),h=b;var N=sm(O,R,0);s_(t,c,_-257),s_(t,c+5,x-1),s_(t,c+10,P-4),c+=14;for(var I=0;I<P;++I)s_(t,c+3*I,O[ss[I]]);c+=3*P;for(var j=[A,k],F=0;F<2;++F)for(var U=j[F],I=0;I<U.length;++I){var B=31&U[I];s_(t,c,N[B]),c+=O[B],B>15&&(s_(t,c,U[I]>>>5&127),c+=U[I]>>>12)}}else d=sb,p=sv,f=sw,h=sy;for(var I=0;I<a;++I)if(n[I]>255){var B=n[I]>>>18&31;sE(t,c,d[B+257]),c+=p[B+257],B>7&&(s_(t,c,n[I]>>>23&31),c+=si[B]);var $=31&n[I];sE(t,c,f[$]),c+=h[$],$>3&&(sE(t,c,n[I]>>>5&8191),c+=so[$])}else sE(t,c,d[n[I]]),c+=p[n[I]];return sE(t,c,d[256]),c+p[256]},sR=new sn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),sP=function(e,t,r,n,i,o){var s=e.length,a=new st(n+s+5*(1+Math.floor(s/7e3))+i),l=a.subarray(n,a.length-i),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=sT(l,u,e.subarray(c,d)):(l[c]=o,u=sT(l,u,e.subarray(c,s)))}else{for(var p=sR[t-1],f=p>>>13,h=8191&p,g=(1<<r)-1,m=new sr(32768),v=new sr(g+1),y=Math.ceil(r/3),b=2*y,w=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},S=new sn(25e3),A=new sr(288),_=new sr(32),E=0,k=0,c=0,x=0,C=0,I=0;c<s;++c){var T=w(c),O=32767&c,R=v[T];if(m[O]=R,v[T]=O,C<=c){var P=s-c;if((E>7e3||x>24576)&&P>423){u=sO(e,l,0,S,A,_,k,x,I,c-I,u),x=E=k=0,I=c;for(var M=0;M<286;++M)A[M]=0;for(var M=0;M<30;++M)_[M]=0}var L=2,D=0,N=h,j=O-R&32767;if(P>2&&T==w(c-j))for(var F=Math.min(f,P)-1,U=Math.min(32767,c),B=Math.min(258,P);j<=U&&--N&&O!=R;){if(e[c+L]==e[c+L-j]){for(var $=0;$<B&&e[c+$]==e[c+$-j];++$);if($>L){if(L=$,D=j,$>F)break;for(var q=Math.min(j,$-2),G=0,M=0;M<q;++M){var z=c-j+M+32768&32767,H=m[z],V=z-H+32768&32767;V>G&&(G=V,R=z)}}}R=m[O=R],j+=O-R+32768&32767}if(D){S[x++]=268435456|sc[L]<<18|sp[D];var J=31&sc[L],Z=31&sp[D];k+=si[J]+so[Z],++A[257+J],++_[Z],C=c+L,++E}else S[x++]=e[c],++A[e[c]]}}u=sO(e,l,o,S,A,_,k,x,I,c-I,u)}return sA(a,0,n+sS(u)+i)},sM=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,o=r.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)n+=r[s],i+=n;n%=65521,i%=65521}e=n,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},sL=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},sD=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)};let sN=e=>{var t,r,n,i,o;return function(e,t){var r="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var n=0;n<e.length;){var i=e[n++];i<128||t?r+=String.fromCharCode(i):i<224?r+=String.fromCharCode((31&i)<<6|63&e[n++]):i<240?r+=String.fromCharCode((1
255&i)<<12|(63&e[n++])<<6|63&e[n++]):r+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536)>>10,56320|1023&i)}return r}((t=function(e,t){var r=e.length;if(!t&&"undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var n=new st(e.length+(e.length>>>1)),i=0,o=function(e){n[i++]=e},s=0;s<r;++s){if(i+5>n.length){var a=new st(i+8+(r-s<<1));a.set(n),n=a}var l=e.charCodeAt(s);l<128||t?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++s))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return sA(n,0,i)}(JSON.stringify({...e,v:"v1"})),void 0===r&&(r={}),(n=sM()).p(t),sD(o=sP(t,null==(i=r).level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+i.mem,2,4,!0),r),sL(o,o.length-4,n.d()),o),!0)};var sj=function(){function e(e,t,r,n){var i,o=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(sN(e))},this.addCompressedEventToManager=function(e,t){o.eventsManager&&o.deviceId&&o.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:o.deviceId})},this.addCompressedEvent=function(e,t){if(o.worker)try{o.worker.postMessage({event:e,sessionId:t})}catch(r){"DataCloneError"===r.name?o.worker.postMessage(JSON.stringify({event:e,sessionId:t})):o.config.loggerProvider.warn("Unexpected error while posting message to worker:",r)}else{var r=o.compressEvent(e);o.addCompressedEventToManager(r,t)}},this.terminate=function(){var e;null===(e=o.worker)||void 0===e||e.terminate()};var s=(0,eC.l)();if(this.canUseIdleCallback=s&&"requestIdleCallback"in s,this.eventsManager=e,this.config=t,this.deviceId=r,this.timeout=(null===(i=t.performanceConfig)||void 0===i?void 0:i.timeout)||2e3,n){t.loggerProvider.log("Enabling web worker for compression");try{var a=new Blob([n],{type:"application/javascript"}),l=URL.createObjectURL(a),u=new Worker(l);u.onerror=function(e){e.preventDefault(),t.loggerProvider.error("Worker failed, falling back to non-worker compression:",e),u.terminate(),o.worker=void 0},u.onmessage=function(e){var t=e.data,r=t.compressedEvent,n=t.sessionId;o.addCompressedEventToManager(r,n)},this.worker=u}catch(e){t.loggerProvider.error("Failed to create worker, falling back to non-worker compression:",e)}}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(t){e.processQueue(t)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var r;this.canUseIdleCallback&&(null===(r=this.config.performanceConfig)||void 0===r?void 0:r.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var r=this.taskQueue.shift();if(r){var n=r.event,i=r.sessionId;this.addCompressedEvent(n,i)}}this.taskQueue.length>0?requestIdleCallback(function(e){t.processQueue(e)},{timeout:this.timeout}):this.isProcessing=!1},e}(),sF="Session replay event batch rejected due to exceeded retry count",sU="Failed to store session replay events in IndexedDB",sB="1.35.1",s$=function(){function e(e){var t=e.trackServerUrl,r=e.loggerProvider,n=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=r,this.payloadBatcher=n||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue((0,eA.pi)((0,eA.pi)({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:sF}),!1)}).forEach(function(t){e.queue=e.queue.concat(t),e.schedule(0)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:t=this.queue,this.queue=[],this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),a.label=1;case 1:a.trys.push([1,6,7,8]),n=(r=(0,eA.XA)(t)).next(),a.label=2;case 2:if(n.done)return[3,5];return i=n.value,[4,this.send(i,e)];case 3:a.sent(),a.label=4;case 4:return n=r.next(),[3,2];case 5:return[3,8];case 6:return o={error:a.sent()},[3,8];case 7:try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(o)throw o.error}
25return[7];case 8:return[2]}})})},e.prototype.send=function(e,t){var r,n;return void 0===t&&(t=!0),(0,eA.mG)(this,void 0,void 0,function(){var i,o,s,a,l,u,c,d,p,f,h,g,m;return(0,eA.Jh)(this,function(v){switch(v.label){case 0:if(!(i=e.apiKey))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing api key"})];if(!(o=e.deviceId))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing device ID"})];if(s=oV(),a=sB,l=e.sampleRate,u=new URLSearchParams({device_id:o,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),c="".concat((null===(r=e.version)||void 0===r?void 0:r.type)||"standalone","/").concat((null===(n=e.version)||void 0===n?void 0:n.version)||a),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];v.label=1;case 1:return v.trys.push([1,6,,7]),p={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":a,"X-Client-Library":c,"X-Client-Url":s.substring(0,1e3),"X-Client-Sample-Rate":"".concat(l),"X-Sampling-Hash-Alg":"xxhash32"},body:JSON.stringify(d),method:"POST"},f="".concat(oJ(e.serverZone,this.trackServerUrl),"?").concat(u.toString()),[4,fetch(f,p)];case 2:if(null===(h=v.sent()))return this.completeRequest({context:e,err:"Unexpected error occurred"}),[2];if(t)return[3,3];g="";try{g=JSON.stringify(h.body,null,2)}catch(e){}return this.completeRequest({context:e,success:"".concat(h.status,": ").concat(g)}),[3,5];case 3:return[4,this.handleReponse(h.status,e)];case 4:v.sent(),v.label=5;case 5:return[3,7];case 6:return m=v.sent(),this.completeRequest({context:e,err:m}),[3,7];case 7:return[2]}})})},e.prototype.handleReponse=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){switch(r.label){case 0:switch(new rf().buildStatus(e)){case W.Success:return[3,1];case W.Failed:return[3,2]}return[3,4];case 1:return this.handleSuccessResponse(t),[3,5];case 2:return[4,this.handleOtherResponse(t)];case 3:return r.sent(),[3,5];case 4:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"}),r.label=5;case 5:return[2]}})})},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(t=e.attempts*this.retryTimeout,e.attempts++,e.attempts>(e.flushMaxRetries||0))return this.completeRequest({context:e,err:sF}),[2];return[4,new Promise(function(e){return setTimeout(e,t)})];case 1:return r.sent(),[4,this.send(e,!0)];case 2:return r.sent(),[2]}})})},e.prototype.completeRequest=function(e){var t=e.context,r=e.err,n=e.success;t.onComplete(),r?this.loggerProvider.warn(r):n&&this.loggerProvider.log(n)},e}(),sq=r(26269),sG=function(){function e(e){var t,r,n,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var r=i.getStringSize(t);return i.getEventsArraySize(e)+r>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!==(t=e.minInterval)&&void 0!==t?t:this.minInterval,this.maxInterval=null!==(r=e.maxInterval)&&void 0!==r?r:this.maxInterval,this.maxPersistedEventsSize=null!==(n=e.maxPersistedEventsSize)&&void 0!==n?n:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e.prototype.getStringSize=function(e){return e.length},e.prototype.getEventsArraySize=function(e){var t,r,n=0;try{for(var i=(0,eA.XA)(e),o=i.next();!o.done;o=i.next()){var s=o.value;n+=this.getStringSize(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n+(2+Math.max(0,e.length-1)+2*e.length)},e}(),sz=function(e,t,r){"object"==typeof r&&null!==r&&"AbortError"===r.name?e.debug(t):e.warn(t)},sH="sessionCurrentSequence",sV="sequencesToSend",sJ=function(e){var t,r;return e.objectStoreNames.contains(sH)||(r=e.createObjectStore(sH,{keyPath:"sessionId"})),e.objectStoreNames.contains(sV)||(t=e.createObjectStore(sV,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:r}},sZ=function(e){function t(t){var r=e.call(this,t)||this;return r.getSequencesToSend=function(){return(0,eA.mG)(r,void 0,void 0,function(){var e,t,r,n,i,o;return(0,eA.Jh)(this,function(s){switch(s.label){case 0:return s.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=s.sent(),s.label=2;case 2:if(!t)return[3,4];return n=(r=t.value).sessionId,i=r.events,e.push({events:i,sequenceId:t.key,sessionId:n}),[4,t.continue()];case 3:return t=s.sent(),[3,2];case 4:return[2,e];case 5:return o=s.sent(),sz(this.loggerProvider,"".concat(sU,": ").concat(o),o),[3,6];case 6:return[2,void 0]}})})},r.storeCurrentSequence=function(e){return(0,eA.mG)(r,void 0,void 0,function(){var t,r,n;return(0,eA.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(sH,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(sV,{sessionId:e,events:t.events})];case 2:return r=i.sent(),[4,this.db.put(sH,{sessionId:e,events:[]})];case 3:return i.sent(),[2,(0,eA.pi)((0,eA.pi)({},t),{sessionId:e,sequenceId:r})];case 4:return n=i.sent(),sz(this.loggerProvider,"".concat(sU,": ").concat(n),n),[3,5];case 5:return[2,void 0]}})})},r.addEventToCurrentSequence=function(e,t){return(0,eA.mG)(r,void 0,void 0,function(){var r,n,i,o,s,a;return(0,eA.Jh)(this,function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),[4,(r=this.db.transaction(sH,"readwrite")).store.get(e)];case 1:if(n=l.sent())return[3,3];return[4,r.store.put({sessionId:e,events:[t]})];case 2:return l.sent(),[2];case 3:if(i=void 0,!this.shouldSplitEventsList(n.events,t))return[3,5];return i=n.events,[4,r.store.put({sessionId:e,events:[t]})];case 4:return l.sent(),[3,7];case 5:return o=n.events.concat(t),[4,r.store.put({sessionId:e,events:o})];case 6:l.sent(),l.label=7;case 7:return[4,r.done];case 8:if(l.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(s=l.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:s}];case 10:return a=l.sent(),sz(this.loggerProvider,"".concat(sU,": ").concat(a),a),[3,11];case 11:return[2,void 0]}})})},r.storeSendingEvents=function(e,t){return(0,eA.mG)(r,void 0,void 0,function(){var r;return(0,eA.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.db.put(sV,{sessionId:e,events:t})];case 1:return[2,n.sent()];case 2:return r=n.sent(),sz(this.loggerProvider,"".concat(sU,": ").concat(r),r),[3,3];case 3:return[2,void 0]}})})},r.cleanUpSessionEventsStore=function(e,t){return(0,eA.mG)(r,void 0,void 0,function(){var e;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(!t)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.db.delete(sV,t)];case 2:return r.sent(),[3,4];case 3:return e=r.sent(),sz(this.loggerProvider,"".concat(sU,": ").concat(e),e),[3,4];case 4:return[2]}})})},r.db=t.db,r}return(0,eA.ZT)(t,e),t.new=function(e,r){return(0,eA.mG)(this,void 0,void 0,function(){var n,i,o;return(0,eA.Jh)(this,function(s){switch(s.label){case 0:var a;return s.trys.push([0,2,,3]),n="replay"===e?"":"_".concat(e),[4,(a="".concat(r.a
25piKey.substring(0,10),"_amp_session_replay_events").concat(n),(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,sq.X3)(a,1,{upgrade:sJ})];case 1:return[2,e.sent()]}})}))];case 1:return i=s.sent(),[2,new t((0,eA.pi)((0,eA.pi)({},r),{db:i}))];case 2:return o=s.sent(),sz(r.loggerProvider,"".concat(sU,": ").concat(o),o),[3,3];case 3:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t,r,n,i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=a.sent()))return[2,void 0];return[2,[t]];case 2:r=[],a.label=3;case 3:return a.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(n=eA.XA.apply(void 0,[a.sent()])).next(),a.label=5;case 5:if(i.done)return[3,7];t=i.value,r.push(t),a.label=6;case 6:return i=n.next(),[3,5];case 7:return[3,10];case 8:return o={error:a.sent()},[3,10];case 9:try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}return[7];case 10:return[2,r]}})})},t}(sG),sW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return(0,eA.ZT)(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,r=(0,eA.ev)([],(0,eA.CR)(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:r},this.resetCurrentSequence(e),{sequenceId:t,events:r,sessionId:e}},t.prototype.getSequencesToSend=function(){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=(0,eA.CR)(e,2),r=t[0],n=t[1],i=n.sessionId,o=n.events;return{sequenceId:Number(r),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){var r;return(0,eA.Jh)(this,function(n){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(r=this.addSequence(e)),this.sequences[e].push(t),[2,r]})})},t.prototype.storeSendingEvents=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(sG),sK=function(e){var t=e.config,r=e.minInterval,n=e.maxInterval,i=e.type,o=e.payloadBatcher,s=e.storeType;return(0,eA.mG)(void 0,void 0,void 0,function(){var e,a,l,u,c;function d(t){return void 0===t&&(t=!1),(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return[2,e.flush(t)]})})}return(0,eA.Jh)(this,function(p){switch(p.label){case 0:if(e=new s$((0,eA.pi)((0,eA.pi)({},t),{loggerProvider:t.loggerProvider,payloadBatcher:o})),a=function(){return new sW({loggerProvider:t.loggerProvider,maxInterval:n,minInterval:r})},"idb"!==s)return[3,2];return[4,(0,eA.mG)(void 0,void 0,void 0,function(){var e;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:return[4,sZ.new(i,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:n,apiKey:t.apiKey})];case 1:if(!(e=o.sent()))return t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,a()];return[2,e]}})})];case 1:return u=p.sent(),[3,3];case 2:u=a(),p.label=3;case 3:return l=u,c=function(r){var n=r.events,o=r.sessionId,s=r.deviceId,a=r.sequenceId;t.debugMode&&oQ().then(function(e){var r=e.totalStorageSize,n=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(r," KB, percentage of quota: ").concat(n,"%, usage details: ").concat(i))}).catch(function(){}),e.sendEventsList({events:n,sessionId:o,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:s,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:i,onComplete:function(){return(0,eA.mG)(void 0,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){switch(e.label){case 0:return[4,l.cleanUpSessionEventsStore(o,a)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var r=e.sessionId,n=e.deviceId;l.storeCurrentSequence(r).then(function(e){e&&c({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:n})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var r=e.event,n=e.sessionId,i=e.deviceId;l.addEventToCurrentSequence(n,r.data).then(function(e){return e&&c({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return(0,eA.mG)(void 0,void 0,void 0,function(){var e;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return[4,l.getSequencesToSend()];case 1:return(e=r.sent())&&e.forEach(function(e){c({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:d}]}})})},sQ=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=new Map;e.forEach(function(e){r.set(e.name,e.manager)}),this.managers=r}return e.prototype.sendStoredEvents=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return t=[],this.managers.forEac
25h(function(r){t.push(r.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,r=e.sessionId,n=e.event,i=e.deviceId;null===(t=this.managers.get(n.type))||void 0===t||t.addEvent({sessionId:r,event:n,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,r=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:r})})},e.prototype.flush=function(e){return(0,eA.mG)(this,void 0,void 0,function(){var t;return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return t=[],this.managers.forEach(function(r){t.push(r.flush(e))}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e}();function sX(e,t,r){for(var n=null,i=[],o=e,s=0;o&&"break"!==function(){var e,a,l,u,c=new Date().getTime()-ef.getTime();if(void 0!==ed.timeoutMs&&c>ed.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=s6((e=o.getAttribute("id"))&&ed.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||s6.apply(void 0,(0,eA.ev)([],(0,eA.CR)(Array.from(o.attributes).filter(function(e){return ed.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||s6.apply(void 0,(0,eA.ev)([],(0,eA.CR)(Array.from(o.classList).filter(ed.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||s6((a=o.tagName.toLowerCase(),ed.tagName(a)?{name:a,penalty:2}:null))||[s3()],p=function(e){var t=e.parentNode;if(!t)return null;var r=t.firstChild;if(!r)return null;for(var n=0;r&&(r.nodeType===Node.ELEMENT_NODE&&n++,r!==e);)r=r.nextSibling;return n}(o);if("all"==t)p&&(d=d.concat(d.filter(s5).map(function(e){return s4(e,p)})));else if("two"==t)d=d.slice(0,1),p&&(d=d.concat(d.filter(s5).map(function(e){return s4(e,p)})));else if("one"==t){var f=(0,eA.CR)(d=d.slice(0,1),1)[0];p&&s5(f)&&(d=[s4(f,p)])}else"none"==t&&(d=[s3()],p&&(d=[s4(d[0],p)]));try{for(var h=(l=void 0,(0,eA.XA)(d)),g=h.next();!g.done;g=h.next()){var f=g.value;f.level=s}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(i.push(d),i.length>=ed.seedMinLength&&(n=sY(i,r)))return"break";o=o.parentElement,s++}(););return(n||(n=sY(i,r)),!n&&r)?r():n}function sY(e,t){var r,n,i=s7(function e(t,r){var n,i,o,s,a;return void 0===r&&(r=[]),(0,eA.Jh)(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(n=(0,eA.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,eA.XA)(e(t.slice(1,t.length),r.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=n.next(),[3,2];case 5:return[3,8];case 6:return s={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case 8:return[3,11];case 9:return[4,r];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));if(i.length>ed.threshold)return t?t():null;try{for(var o=(0,eA.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(s2(a))return a}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null}function s0(e){for(var t=e[0],r=t.name,n=1;n<e.length;n++){var i=e[n].level||0;r=t.level===i-1?"".concat(e[n].name," > ").concat(r):"".concat(e[n].name," ").concat(r),t=e[n]}return r}function s1(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function s2(e){var t=s0(e);switch(ep.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function s3(){return{name:"*",penalty:3}}function s4(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function s5(e){return"html"!==e.name&&!e.name.startsWith("#")}function s6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(s8);return r.length>0?r:null}function s8(e){return null!=e}function s7(e){return(0,eA.ev)([],(0,eA.CR)(e),!1).sort(function(e,t){return s1(e)-s1(t)})}var s9=function(e){var t=e.version,r=e.events,n=[];return r.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&n.push(t)}),{version:t,events:n}},ae=function(e){var t=e.version,r=e.events,n=[];return r.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&n.push(t)}),{version:t,events:Object.values(n.reduce(function(e,t){var r=t.x,n=t.y,i=t.selector,o=t.timestamp,s=o-o%36e5,a="".concat(r,":").concat(n,":").concat(null!=i?i:"",":").concat(s);return e[a]?e[a].count+=1:e[a]=(0,eA.pi)((0,eA.pi)({},t),{timestamp:s,count:1}),e},{}))}},at=function(e,t){var r=this;this.createHook=function(e){var t=e.eventsManager,n=e.sessionId,i=e.deviceIdFn,o=e.mirror,s=e.ugcFilterRules,a=e.performanceOptions;return function(e){if(e.type===o3.Click){var l,u=(0,eC.l)();
25if(u){var c=u.location,d=u.innerHeight,p=u.innerWidth;if(c){var f=e.x,h=e.y;if(void 0!==f&&void 0!==h){var g=o.getNode(e.id);if(g)try{l=function(e,t){if(ef=new Date,e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var r,n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};ep=(r=(ed=(0,eA.pi)((0,eA.pi)({},n),t)).root).nodeType===Node.DOCUMENT_NODE?r:r===n.root?r.ownerDocument:r;var i=sX(e,"all",function(){return sX(e,"two",function(){return sX(e,"one",function(){return sX(e,"none")})})});if(i){var o=s7(function e(t,r,n){var i,o,s;return void 0===n&&(n={counter:0,visited:new Map}),(0,eA.Jh)(this,function(a){switch(a.label){case 0:if(!(t.length>2&&t.length>ed.optimizedMinLength))return[3,5];i=1,a.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(n.counter>ed.maxNumberOfTries||(n.counter+=1,(o=(0,eA.ev)([],(0,eA.CR)(t),!1)).splice(i,1),s=s0(o),n.visited.has(s)))return[2];if(!(s2(o)&&(l=o,ep.querySelector(s0(l))===r)))return[3,4];return[4,o];case 2:return a.sent(),n.visited.set(s,!0),[5,(0,eA.XA)(e(o,r,n))];case 3:a.sent(),a.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),s0(i)}throw Error("Selector was not found.")}(g,a)}catch(e){r.logger.debug("error resolving selector from finder")}var m=oK(c.href,s),v={x:f+r.scrollWatcher.currentScrollX,y:h+r.scrollWatcher.currentScrollY,selector:l,viewportHeight:d,viewportWidth:p,pageUrl:m,timestamp:Date.now(),type:"click"},y=i();y&&t.addEvent({sessionId:n,event:{type:"interaction",data:JSON.stringify(v)},deviceId:y})}}}}}},this.logger=e,this.scrollWatcher=t};function ar(){var e=(0,eC.l)();return(null==e?void 0:e.innerHeight)||document.documentElement&&document.documentElement.clientHeight||0}function an(){var e=(0,eC.l)();return(null==e?void 0:e.innerWidth)||document.documentElement&&document.documentElement.clientWidth||0}var ai=function(){function e(e,t){var r=(0,eC.l)();r&&r.navigator&&"function"==typeof r.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(r.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var r=new XMLHttpRequest;return r.open("POST",e,!0),r.setRequestHeader("Accept","*/*"),r.send(JSON.stringify(t)),!0},this.basePageUrl=oJ(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var r=this.context,n=r.sessionId,i=r.type,o=new URLSearchParams({device_id:e,session_id:String(n),type:String(i),api_key:this.apiKey}),s="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(s,t)||this.sendXhr(s,t)},e}(),ao=function(){function e(e,t){var r=this;this.timestamp=Date.now(),this.hook=function(e){r.update(e)},this.send=function(e){return function(t){var n,i,o,s,a=e(),l=(0,eC.l)();if(l&&a){var u=null!==(n=l.scrollX)&&void 0!==n?n:0,c=null!==(i=l.scrollY)&&void 0!==i?i:0;(u>0||c>0)&&r.update({id:1,x:u,y:c}),r.transport.send(a,{version:1,events:[{maxScrollX:r._maxScrollX,maxScrollY:r._maxScrollY,maxScrollWidth:r._maxScrollWidth,maxScrollHeight:r._maxScrollHeight,viewportHeight:ar(),viewportWidth:an(),pageUrl:oK(l.location.href,null!==(s=null===(o=r.config.interactionConfig)||void 0===o?void 0:o.ugcFilterRules)&&void 0!==s?s:[]),timestamp:r.timestamp,type:"scroll"}]})}}},this._maxScrollX=0,this._maxScrollY=0,this._currentScrollX=0,this._currentScrollY=0,this._maxScrollWidth=an(),this._maxScrollHeight=ar(),this.config=t,this.transport=e}return e.default=function(t,r){return new e(new ai(t,r),r)},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth}
25,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollX",{get:function(){return this._currentScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollY",{get:function(){return this._currentScrollY},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(this._currentScrollX=e.x,this._currentScrollY=e.y,e.x>this._maxScrollX){var r=an();this._maxScrollX=e.x;var n=e.x+r;n>this._maxScrollWidth&&(this._maxScrollWidth=n),this.timestamp=t}if(e.y>this._maxScrollY){var i=ar();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),as=function(e){var t=e.sessionId,r=e.deviceId;this.deviceId=r,this.sessionId=t,t&&r&&(this.sessionReplayId="".concat(r,"/").concat(t))},aa=new function(){var e=this;this.dbs={},this.createStore=function(t){return(0,eA.mG)(e,void 0,void 0,function(){return(0,eA.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,sq.X3)(t,1,{upgrade:function(e){e.objectStoreNames.contains("sessionTargetingMatch")||e.createObjectStore("sessionTargetingMatch",{keyPath:"sessionId"})}})];case 1:return[2,e.sent()]}})})},this.openOrCreateDB=function(t){return(0,eA.mG)(e,void 0,void 0,function(){var e,r;return(0,eA.Jh)(this,function(n){switch(n.label){case 0:if(this.dbs&&this.dbs[t])return[2,this.dbs[t]];return e="".concat(t.substring(0,10),"_amp_session_replay_targeting"),[4,this.createStore(e)];case 1:return r=n.sent(),this.dbs[t]=r,[2,r]}})})},this.getTargetingMatchForSession=function(t){var r=t.loggerProvider,n=t.apiKey,i=t.sessionId;return(0,eA.mG)(e,void 0,void 0,function(){var e,t,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,this.openOrCreateDB(n)];case 1:return e=a.sent(),t=String(i),[4,e.get("sessionTargetingMatch",t)];case 2:return[2,null==(o=a.sent())?void 0:o.targetingMatch];case 3:return s=a.sent(),sz(r,"Failed to get targeting match for session id ".concat(i,": ").concat(s),s),[3,4];case 4:return[2,void 0]}})})},this.storeTargetingMatchForSession=function(t){var r=t.loggerProvider,n=t.apiKey,i=t.sessionId,o=t.targetingMatch;return(0,eA.mG)(e,void 0,void 0,function(){var e,t,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,this.openOrCreateDB(n)];case 1:return e=a.sent(),t=String(i),[4,e.put("sessionTargetingMatch",{targetingMatch:o,sessionId:t,lastUpdated:Date.now()})];case 2:return[2,a.sent()];case 3:return s=a.sent(),sz(r,"Failed to store targeting match for session id ".concat(i,": ").concat(s),s),[3,4];case 4:return[2,void 0]}})})},this.clearStoreOfOldSessions=function(t){var r=t.loggerProvider,n=t.apiKey,i=t.currentSessionId;return(0,eA.mG)(e,void 0,void 0,function(){var e,t,o,s,a,l,u,c;return(0,eA.Jh)(this,function(d){switch(d.label){case 0:return d.trys.push([0,8,,9]),[4,this.openOrCreateDB(n)];case 1:return e=d.sent(),t=String(i),[4,(o=e.transaction("sessionTargetingMatch","readwrite")).store.getAll()];case 2:s=d.sent(),a=0,d.label=3;case 3:if(!(a<s.length))return[3,6];if(l=s[a],u=Date.now()-l.lastUpdated,!(l.sessionId!==t&&u>1728e5))return[3,5];return[4,o.store.delete(l.sessionId)];case 4:d.sent(),d.label=5;case 5:return a++,[3,3];case 6:return[4,o.done];case 7:return d.sent(),[3,9];case 8:return c=d.sent(),sz(r,"Failed to clear old targeting matches for sessions: ".concat(c),c),[3,9];case 9:return[2]}})})}},al=function(e){var t=e.sessionId,n=e.targetingConfig,i=e.loggerProvider,o=e.apiKey,s=e.targetingParams,a=e.urlChange,l=void 0!==a&&a;return(0,eA.mG)(void 0,void 0,void 0,function(){var e,a,u;return(0,eA.Jh)(this,function(c){switch(c.label){case 0:return[4,aa.clearStoreOfOldSessions({loggerProvider:i,apiKey:o,currentSessionId:t})];case 1:return c.sent(),[4,aa.getTargetingMatchForSession({loggerProvider:i,apiKey:o,sessionId:t})];case 2:if(!0===c.sent()&&!l)return[2,!0];e=!0,c.label=3;case 3:return c.trys.push([3,6,,7]),[4,r.e(4895).then(r.bind(r,24895))];case 4:return[4,(0,c.sent().evaluateTargeting)((0,eA.pi)((0,eA.pi)({},s),{flag:n,sessionId:"string"==typeof t?parseInt(t,10):t,apiKey:o,loggerProvider:i}))];case 5:return(a=c.sent())&&a.sr_targeting_config&&(e="on"===a.sr_targeting_config.key),aa.storeTargetingMatchForSession({loggerProvider:i,apiKey:o,sessionId:t,targetingMatch:e}),[3,7];case 6:return u=c.sent(),i.warn(u.message),[3,7];case 7:return[2,e]}})})};function au(e,t){return(e<<t|e>>>32-t)>>>0}
25function ac(e,t){return e=Math.imul(e=au(e=e+Math.imul(t,2246822519)>>>0,13),2654435761)>>>0}function ad(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}var ap="__amplitude_url_tracking_patched__",af=new WeakMap;function ah(e,t,r){if(void 0===r&&(r={}),!(null==e?void 0:e.location))return function(){};var n=r.enablePolling,i=r.pollingInterval;if(void 0!==n&&n){var o=function(){var t;return null!==(t=e.location.href)&&void 0!==t?t:""},s=o(),a=e.setInterval(function(){var e=o();e!==s&&(s=e,t(e))},void 0===i?1e3:i);return function(){null!=a&&e.clearInterval(a)}}var l=af.get(e);if(!l){var u=void 0,c=new Set,d=function(){var t;return null!==(t=e.location.href)&&void 0!==t?t:""},p=function(){var e=d();(void 0===u||e!==u)&&(u=e,c.forEach(function(t){return t(e)}))},f=function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,t);return p(),n};return t[ap]=!0,t},h=e.history;if(null==h?void 0:h.pushState){var g=Reflect.get(h,"pushState");g[ap]||(h.pushState=f(g))}if(null==h?void 0:h.replaceState){var m=Reflect.get(h,"replaceState");m[ap]||(h.replaceState=f(m))}l={callbacks:c,notify:p,onPopStateOrHashChange:function(){return p()},listenersAttached:!1},af.set(e,l)}var v=l;return v.listenersAttached||(e.addEventListener("popstate",v.onPopStateOrHashChange),e.addEventListener("hashchange",v.onPopStateOrHashChange),v.listenersAttached=!0),v.callbacks.add(t),function(){v.callbacks.delete(t),0===v.callbacks.size&&v.listenersAttached&&(e.removeEventListener("popstate",v.onPopStateOrHashChange),e.removeEventListener("hashchange",v.onPopStateOrHashChange),v.listenersAttached=!1)}}function ag(e){return void 0===e&&(e={}),{name:"amplitude/url-tracking@1",observer:function(t,r,n){var i,o,s,a=(0,eA.pi)((0,eA.pi)({},e),n),l=a.ugcFilterRules||[],u=null!==(i=a.enablePolling)&&void 0!==i&&i,c=null!==(o=a.pollingInterval)&&void 0!==o?o:1e3,d=null!==(s=a.captureDocumentTitle)&&void 0!==s&&s;if(!r)return function(){};var p=void 0,f=function(){return r.location&&r.location.href||""},h=function(){var e=r.innerHeight,t=r.innerWidth,n=r.document,i=f(),o="";return d&&(o=(null==n?void 0:n.title)||""),{href:l.length>0?oK(i,l):i,title:o,viewportHeight:e,viewportWidth:t,type:"url-change-event"}},g=function(){var e=f();(void 0===p||e!==p)&&(p=e,t(h()))},m=ah(r,function(){return g()},u?{enablePolling:!0,pollingInterval:c}:{});return g(),function(){return m()}},options:e}}ag();var am=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.sessionTargetingMatch=!1,this.pageLeaveFns=[],this.recordFunction=null,this.urlChangeCleanup=null,this.latestUrlChangeTargetingEvaluationId=0,this.teardownEventListeners=function(t){var r=(0,eC.l)();r&&(r.removeEventListener("blur",e.blurListener),r.removeEventListener("focus",e.focusListener),t||r.addEventListener("blur",e.blurListener),t||r.addEventListener("focus",e.focusListener),r.self&&"onpagehide"in r.self?(r.removeEventListener("pagehide",e.pageLeaveListener),t||r.addEventListener("pagehide",e.pageLeaveListener)):(r.removeEventListener("beforeunload",e.pageLeaveListener),t||r.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents(!1)},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.evaluateTargetingAndCapture=function(t,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),(0,eA.mG)(e,void 0,void 0,function(){var e,o,s,a,l,u,c,d,p,f,h,g;return(0,eA.Jh)(this,function(m){switch(m.label){case 0:if(!this.identifiers||!this.identifiers.sessionId||!this.config)return this.identifiers&&!this.identifiers.sessionId?this.loggerProvider.log("Session ID has not been set yet, cannot evaluate targeting for Session Replay."):this.loggerProvider.warn("Session replay init has not been called, cannot evaluate targeting."),[2];if(!this.config.targetingConfig){if(!r)return this.loggerProvider.log("No targeting config set, skipping initialization/recording for event."),[2];this.loggerProvider.log("Targeting config has not been set yet, cannot evaluate targeting.")}if(this.lastTargetingParams=t,!((e=this.config.targetingConfig)&&!this.sessionTargetingMatch))return[3,2];return o=i?this.latestUrlChangeTargetingEvaluationId:void 0,(s=t.event)&&Object.values(X).includes(s.event_type)&&(s=void 0),a=null!==(h=null!==(d=null===(c=t.page)||void 0===c?void 0:c.url)&&void 0!==d?d:null===(f=null===(p=(0,eC.l)())||void 0===p?void 0:p.location)||void 0===f?void 0:f.href)&&void 0!==h?h:"",l=null!==(g=t.page)&&void 0!==g?g:""!==a?{url:a}:void 0,[4,al({sessionId:this.identifiers.sessionId,targetingConfig:e,loggerProvider:this.loggerProvider,apiKey:this.config.apiKey,targetingParams:{userProperties:t.userProperties,event:s,page:l},urlChange:i})];case 1:if(u=m.sent(),i&&void 0!==o&&o!==this.latestUrlChangeTargetingEvaluationId)return this.loggerProvider.debug("Ignoring stale URL-change targeting result #".concat(o,"; latest is #").concat(this.latestUrlChangeTargetingEvaluationId,".")),[2];this.sessionTargetingMatch=this.sessionTargetingMatch||u,this.loggerProvider.debug(JSON.stringify({name:"targeted replay capture config",sessionTargetingMatch:this.sessionTargetingMatch,event:s,targetingParams:t},null,2)),m.label=2;case 2:if(!r)return[3,3];return this.initialize(!0),[3,5];case 3:if(!(n||!this.recordCancelCallback))return[3,5];return this.loggerProvider.log("Recording events for session due to forceRestart or no ongoing recording."),[4,this.recordEvents()];case 4:m.sent(),m.label=5;case 5:return[2]}})})},this.addCustomRRWebEvent=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n=!0),(0,eA.mG)(e,void 0,void 0,function(){var e,i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:if(a.trys.push([0,3,,4]),e=void 0,!((i=this.config)&&t!==ec.METADATA)||(e={config:oX(i),version:sB},!n))return[3,2];return[4,oQ()];case 1:o=a.sent(),e=(0,eA.pi)((0,eA.pi)({},o),e),a.label=2;case 2:return this.recordCancelCallback&&this.recordFunction?this.recordFunction.addCustomEvent(t,(0,eA.pi)((0,eA.pi)({},r),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return s=a.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",s),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null===(t=e.networkObservers)||void 0===t||t.stop()}catch(t){e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(t.toString()))}},this.loggerProvider=new o$(new ek)}return e.prototype.init=function(e,t){return e_(this._init(e,t))},e.prototype.setupUrlChangeListenerForTargeting=function(){var e,t=this;null===(e=this.urlChangeCleanup)||void 0===e||e.call(this);var r=(0,eC.l)();if(null==r?void 0:r.location){var n=ah(r,function(e){var r=++t.latestUrlChangeTargetingEvaluationId;t.evaluateTargetingAndCapture({userProperties:{},event:void 0,page:{url:e}}
25,!1,!1,!0),t.loggerProvider.debug("Queued URL-change targeting re-evaluation #".concat(r," for ").concat(e,"."))});this.urlChangeCleanup=function(){n(),t.urlChangeCleanup=null}}},e.prototype.getCurrentPageForTargeting=function(){var e,t,r=null===(t=null===(e=(0,eC.l)())||void 0===e?void 0:e.location)||void 0===t?void 0:t.href;return null!=r?{url:r}:void 0},e.prototype._init=function(e,t){var n,i,o,s,a,l,u,c;return(0,eA.mG)(this,void 0,void 0,function(){var d,p,f,h,g,m,v,y,b,w,S,A,_,E,k;return(0,eA.Jh)(this,function(x){switch(x.label){case 0:return null===(n=this.urlChangeCleanup)||void 0===n||n.call(this),this.loggerProvider=new o$(t.loggerProvider||new ek),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new as({sessionId:t.sessionId,deviceId:t.deviceId}),d=this,[4,(0,eA.mG)(void 0,void 0,void 0,function(){var r;return(0,eA.Jh)(this,function(n){return r=new o0(e,t),[2,new se(new eR(e,r.loggerProvider,r.serverZone,t.configServerUrl),r)]})})];case 1:return d.joinedConfigGenerator=x.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig()];case 2:f=(p=x.sent()).joinedConfig,h=p.localConfig,g=p.remoteConfig,this.config=f,this.setMetadata(t.sessionId,f,h,g,null===(i=t.version)||void 0===i?void 0:i.version,sB,null===(o=t.version)||void 0===o?void 0:o.type),t.sessionId&&(null===(s=this.config.interactionConfig)||void 0===s?void 0:s.enabled)&&(m=ao.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[m.send(this.getDeviceId.bind(this)).bind(m)],this.scrollHook=m.hook.bind(m),this.clickHandler=new at(this.loggerProvider,m)),v=[],"idb"!==(y=this.config.storeType)||(null===(a=(0,eC.l)())||void 0===a?void 0:a.indexedDB)||(y="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(y," for event storage.")),x.label=3;case 3:return x.trys.push([3,5,,6]),[4,sK({config:this.config,type:"replay",storeType:y})];case 4:return b=x.sent(),v.push({name:"replay",manager:b}),[3,6];case 5:return w=x.sent(),this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(w.toString())),[3,6];case 6:if(!(null===(l=this.config.interactionConfig)||void 0===l?void 0:l.enabled))return[3,10];S=this.config.interactionConfig.batch?ae:s9,x.label=7;case 7:return x.trys.push([7,9,,10]),[4,sK({config:this.config,type:"interaction",minInterval:null!==(u=this.config.interactionConfig.trackEveryNms)&&void 0!==u?u:3e4,maxInterval:6e4,payloadBatcher:S,storeType:y})];case 8:return A=x.sent(),v.push({name:"interaction",manager:A}),[3,10];case 9:return w=x.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(w.toString())),[3,10];case 10:if(this.eventsManager=new(sQ.bind.apply(sQ,(0,eA.ev)([void 0],(0,eA.CR)(v),!1))),this.eventCompressor&&this.eventCompressor.terminate(),_=void 0,E=(0,eC.l)(),!(this.config.useWebWorker&&E&&E.Worker))return[3,12];return[4,r.e(8660).then(r.bind(r,8660))];case 11:_=x.sent().compressionScript,x.label=12;case 12:return this.eventCompressor=new sj(this.eventsManager,this.config,this.getDeviceId(),_),[4,this.initializeNetworkObservers()];case 13:return x.sent(),(null===(c=(0,eC.l)())||void 0===c?void 0:c.opener)&&(nS(k=nb()),k.setup((0,eA.pi)({logger:this.loggerProvider},this.config.serverZone&&{endpoint:ng[this.config.serverZone]}))),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),[4,this.evaluateTargetingAndCapture({userProperties:t.userProperties,page:this.getCurrentPageForTargeting()},!0)];case 14:return x.sent(),this.config.targetingConfig&&this.setupUrlChangeListenerForTargeting(),[2]}})})},e.prototype.setSessionId=function(e,t){return e_(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t,r){var n;return(0,eA.mG)(this,void 0,void 0,function(){var i,o,s;return(0,eA.Jh)(this,function(a){switch(a.label){case 0:if(this.latestUrlChangeTargetingEvaluationId++,this.sessionTargetingMatch=!1,this.lastShouldRecordDecision=void 0,(i=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(i),o=t||this.getDeviceId(),this.identifiers=new as({sessionId:e,deviceId:o}
25),!(this.joinedConfigGenerator&&i))return[3,2];return[4,this.joinedConfigGenerator.generateJoinedConfig()];case 1:s=a.sent().joinedConfig,this.config=s,a.label=2;case 2:if(!(null===(n=this.config)||void 0===n?void 0:n.targetingConfig))return[3,4];return[4,this.evaluateTargetingAndCapture({userProperties:null==r?void 0:r.userProperties,page:this.getCurrentPageForTargeting()},!1,!0)];case 3:return a.sent(),[3,6];case 4:return[4,this.recordEvents()];case 5:a.sent(),a.label=6;case 6:return[2]}})})},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,r=this.identifiers;if(!t||!r)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var n=this.getShouldRecord(),i={};return n&&((e={})[oM]=r.sessionReplayId?r.sessionReplayId:null,i=e,t.debugMode&&(i[oN]=JSON.stringify({appHash:eD(t.apiKey).toString()}))),this.addCustomRRWebEvent(ec.GET_SR_PROPS,{shouldRecord:n,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,r=e||(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId),n=this.getDeviceId();this.eventsManager&&r&&n&&this.eventsManager.sendCurrentSequenceEvents({sessionId:r,deviceId:n})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),(0,eA.mG)(this,void 0,void 0,function(){var r;return(0,eA.Jh)(this,function(n){return(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)?(r=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:r}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null===(e=this.config)||void 0===e?void 0:e.instanceName){var e,t,r;r=td(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==r?r:null===(t=this.config)||void 0===t?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,r=!1,n="",i=!1;return this.config.targetingConfig?this.sessionTargetingMatch?(n="Capturing replays for session ".concat(this.identifiers.sessionId," due to matching targeting conditions."),this.loggerProvider.log(n),r=!0,i=!0):(n="Not capturing replays for session ".concat(this.identifiers.sessionId," due to not matching targeting conditions."),this.loggerProvider.log(n),r=!1,i=!1):(e=this.identifiers.sessionId,t=this.config.sampleRate,function(e,t){void 0===t&&(t=0);var r,n=function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>=55296&&n<=56319&&r+1<e.length){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(n=(n-55296<<10)+(i-56320)+65536,r++)}n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<65536?t.push(224|n>>12,128|n>>6&63,128|63&n):t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n)}return new Uint8Array(t)}(e),i=n.length,o=0;if(i>=16){for(var s=t+2654435761+2246822519>>>0,a=t+2246822519>>>0,l=t>>>0,u=t-2654435761>>>0;o<=i-16;)s=ac(s,ad(n,o)),o+=4,a=ac(a,ad(n,o)),o+=4,l=ac(l,ad(n,o)),o+=4,u=ac(u,ad(n,o)),o+=4;r=au(s,1)+au(a,7)+au(l,12)+au(u,18)>>>0}else r=t+374761393>>>0;for(r=r+i>>>0;o<=i-4;)r=Math.imul(au(r=r+Math.imul(ad(n,o),3266489917)>>>0,17),668265263)>>>0,o+=4;for(;o<i;)r=Math.imul(au(r=r+Math.imul(n[o],374761393)>>>0,11),2654435761)>>>0,o++;return r^=r>>>15,r=Math.imul(r,2246822519)>>>0,r^=r>>>13,r=Math.imul(r,3266489917)>>>0,(r^=r>>>16)>>>0}(e.toString())%1e6/1e6<t)?(r=!0,i=!0):(n="Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate."),this.loggerProvider.log(n),r=!1,i=!1),this.lastShouldRecordDecision!==r&&this.config.targetingConfig&&(this.addCustomRRWebEvent(ec.TARGETING_DECISION,{message:n,sessionId:this.identifiers.sessionId,matched:i,targetingParams:this.lastTargetingParams}),this.lastShouldRecordDecision=r),r},e.prototype.getBlockSelectors=function(){var e,t,r,n=null!==(r=null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.blockSelector)&&void 0!==r?r:[];if(0!==n.length)return n},e.prototype.getMaskTextSelectors=function(){if((null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,r,n,i=null===(n=null===(r=this.config)||void 0===r?void 0:r.privacyConfig)||void 0===n?void 0:n.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t,n,i,o,s,a;return(0,eA.mG)(this,void 0,void 0,function(){var l,u,c,d;return(0,eA.Jh)(this,function(p){switch(p.label){case 0:l=[];try{u=ag({ugcFilterRules:(null===(n=null===(t=this.config)||void 0===t?void 0:t.interactionConfig)||void 0===n?void 0:n.ugcFilterRules)||[],enablePolling:(null===(i=this.config)||void 0===i?void 0:i.enableUrlChangePolling)||!1,pollingInterval:null===(o=this.config)||void 0===o?void 0:o.urlChangePollingInterval,captureDocumentTitle:null===(s=this.config)||void 0===s?void 0:s.captureDocumentTitle}),l.push(u)}catch(e){this.loggerProvider.warn("Failed to create URL tracking plugin:",e)}if(!(null===(a=null==e?void 0:e.console)||void 0===a?void 0:a.enabled))return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,r.e(1800).then(r.bind(r,68378))];case 2:return c=p.sent().getRecordConsolePlugin,l.push(c({level:e.console.levels})),[3,4];case 3:return d=p.sent(),this.loggerProvider.warn("Failed to load console plugin:",d),[3,4];case 4:return[2,l.length>0?l:void 0]}})})},e.prototype.getRecordFunction=function(){return(0,eA.mG)(this,void 0,void 0,function(){var e,t;return(0,eA.Jh)(this,function(n){switch(n.label){case 0:if(this.recordFunction)return[2,this.recordFunction];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.e(5347).then(r.bind(r,15512))];case 2:return e=n.sent().record,this.recordFunction=e,[2,e];case 3:return t=n.sent(),this.loggerProvider.warn("Failed to load rrweb-record module:",t),[2,null];case 4:return[2]}})})},e.prototype.recordEvents=function(e){var t,r,n,i,o,s,a,l;return void 0===e&&(e=!0),(0,eA.mG)(this,void 0,void 0,function(){var u,c,d,p,f,h,g,m,v,y,b,w,S,A,_,E=this;return(0,eA.Jh)(this,function(k){switch(k.label){case 0:if(u=this.config,c=this.getShouldRecord(),d=null===(t=this.identifiers)||void 0===t?void 0:t.sessionId,!c||!d||!u)return[2];return this.stopRecordingEvents(),[4,this.getRecordFunction()];case 1:if(!(p=k.sent()))return[2];return[4,this.initializeNetworkObservers()];case 2:k.sent(),f=null===(r=u.loggingConfig)||void 0===r?void 0:r.network,h=[oF,oU,oB,oJ(u.serverZone,u.trackServerUrl)],null===(n=this.networkObservers)||void 0===n||n.start(function(e){h.some(function(t){return e.url.
25startsWith(t)})||E.addCustomRRWebEvent(ec.FETCH_REQUEST,e)},f),g=u.privacyConfig,m=u.interactionConfig,v=u.loggingConfig,y=(null==m?void 0:m.enabled)?{mouseInteraction:this.eventsManager&&(null===(i=this.clickHandler)||void 0===i?void 0:i.createHook({eventsManager:this.eventsManager,sessionId:d,deviceIdFn:this.getDeviceId.bind(this),mirror:p.mirror,ugcFilterRules:null!==(o=m.ugcFilterRules)&&void 0!==o?o:[],performanceOptions:null===(s=u.performanceConfig)||void 0===s?void 0:s.interaction})),scroll:this.scrollHook}:{},b=(null==m?void 0:m.enabled)&&m.ugcFilterRules?m.ugcFilterRules:[],this.loggerProvider.log("Session Replay capture beginning for ".concat(d,".")),k.label=3;case 3:var x;return k.trys.push([3,5,,6]),w=this,S=p,_={emit:function(e){if(E.shouldOptOut()){E.loggerProvider.log("Opting session ".concat(d," out of recording due to optOut config.")),E.stopRecordingEvents(),E.sendEvents();return}e.type===o1.Meta&&(e.data.href=oK(e.data.href,b)),E.eventCompressor&&E.eventCompressor.enqueueEvent(e,d)},inlineStylesheet:u.shouldInlineStylesheet,hooks:y,maskAllInputs:!0,maskTextClass:oj,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),applyBackgroundColorToBlockedElements:u.applyBackgroundColorToBlockedElements,maskInputFn:oH("input",g),maskTextFn:oH("text",g),maskAttributeFn:(x=g,function(e,t,r){var n;return"style"!==e&&(null!==(n=null==x?void 0:x.maskAttributes)&&void 0!==n?n:[]).includes(e)&&oz("text",x,r)?t.replace(/[^\s]/g,"*"):t}),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,slimDOMOptions:{script:null===(a=u.omitElementTags)||void 0===a?void 0:a.script,comment:null===(l=u.omitElementTags)||void 0===l?void 0:l.comment},errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return E.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(v)];case 4:return w.recordCancelCallback=S.apply(void 0,[(_.plugins=k.sent(),_)]),this.addCustomRRWebEvent(ec.DEBUG_INFO),e&&this.addCustomRRWebEvent(ec.METADATA,this.metadata),[3,6];case 5:return A=k.sent(),this.loggerProvider.warn("Failed to initialize session replay:",A),[3,6];case 6:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return[2,null===(t=this.eventsManager)||void 0===t?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){var e;null===(e=this.urlChangeCleanup)||void 0===e||e.call(this),this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(e){return"plugin"===e?"@amplitude/plugin-session-replay-browser":"segment"===e?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(e,t,r,n,i,o,s){var a=(null==e?void 0:e.toString())?eD(e.toString()):void 0;this.metadata={joinedConfig:t,localConfig:r,remoteConfig:n,sessionId:e,hashValue:a,sampleRate:t.sampleRate,replaySDKType:this.mapSDKType(s),replaySDKVersion:i,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:o}},e.prototype.initializeNetworkObservers=function(){var e,t,n;return(0,eA.mG)(this,void 0,void 0,function(){var i,o;return(0,eA.Jh)(this,function(s){switch(s.label){case 0:if(!((null===(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.loggingConfig)||void 0===t?void 0:t.network)||void 0===n?void 0:n.enabled)&&!this.networkObservers))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r.e(1563).then(r.bind(r,41563))];case 2:return i=s.sent().NetworkObservers,this.networkObservers=new i,[3,4];case 3:return o=s.sent(),this.loggerProvider.warn("Failed to import or instantiate NetworkObservers:",o),[3,4];case 4:return[2]}})})},e}(),av=function(e){return function(){var t=e.config||oY();return{logger:t.loggerProvider,logLevel:t.logLevel}}},ay={init:tx((O=new am).init.bind(O),"init",av(O)),evaluateTargetingAndCapture:tx(O.evaluateTargetingAndCapture.bind(O),"evaluateTargetingAndRecord",av(O)),setSessionId:tx(O.setSessionId.bind(O),"setSessionId",av(O)),getSessionId:tx(O.getSessionId.bind(O),"getSessionId",av(O)),getSessionReplayProperties:tx(O.getSessionReplayProperties.bind(O),"getSessionReplayProperties",av(O)),flush:tx(O.flush.bind(O),"flush",av(O)),shutdown:tx(O.shutdown.bind(O),"shutdown",av(O))},ab=ay.init,aw=ay.setSessionId,aS=ay.getSessionId,aA=ay.getSessionReplayProperties,a_=ay.flush,aE=ay.shutdown,ak=ay.evaluateTargetingAndCapture;(R=eh||(eh={})).SET="$set",R.SET_ONCE="$setOnce",R.ADD="$add",R.APPEND="$append",R.PREPEND="$prepend",R.REMOVE="$remove",R.PREINSERT="$preInsert",R.POSTINSERT="$postInsert",R.UNSET="$unset",R.CLEAR_ALL="$clearAll",(P=eg||(eg={})).REVENUE_PRODUCT_ID="$productId",P.REVENUE_QUANTITY="$quantity",P.REVENUE_PRICE="$price",P.REVENUE_TYPE="$revenueType",P.REVENUE_CURRENCY="$currency",P.REVENUE="$revenue",(M=em||(em={})).IDENTIFY="$identify",M.GROUP_IDENTIFY="$groupidentify",M.REVENUE="revenue_amount";var ax=[eh.SET,eh.SET_ONCE,eh.ADD,eh.APPEND,eh.PREPEND,eh.POSTINSERT],aC=function(e){if(e.user_properties){var t={};
25return Object.keys(e.user_properties).forEach(function(r){if(ax.includes(r)){var n=e.user_properties&&e.user_properties[r];t=(0,eA.pi)((0,eA.pi)({},t),n)}}),t}},aI="1.27.6",aT="".concat("[Amplitude]"," Session Replay ID"),aO=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.config=null,this.sessionReplay={flush:a_,getSessionId:aS,getSessionReplayProperties:aA,init:ab,setSessionId:aw,shutdown:aE,evaluateTargetingAndCapture:ak},this.options=(0,eA.pi)({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var r,n,i,o,s,a,l,u;return(0,eA.mG)(this,void 0,void 0,function(){var t,c;return(0,eA.Jh)(this,function(d){switch(d.label){case 0:var p;return d.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(aI,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=(0,eA.pi)((0,eA.pi)({},e.defaultTracking),{sessions:!0})),t=(void 0===(p=this.config.instanceName)&&(p="$default_instance"),e0.getInstance(p)).identityStore.getIdentity().userProperties,this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!==(r=this.options.deviceId)&&void 0!==r?r:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl||(null===(n=this.config.remoteConfig)||void 0===n?void 0:n.serverUrl),trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null===(i=this.options.privacyConfig)||void 0===i?void 0:i.blockSelector,maskSelector:null===(o=this.options.privacyConfig)||void 0===o?void 0:o.maskSelector,unmaskSelector:null===(s=this.options.privacyConfig)||void 0===s?void 0:s.unmaskSelector,defaultMaskLevel:null===(a=this.options.privacyConfig)||void 0===a?void 0:a.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:aI},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,useWebWorker:null!==(l=this.options.useWebWorker)&&void 0!==l?l:null===(u=this.options.experimental)||void 0===u?void 0:u.useWebWorker,userProperties:t,omitElementTags:this.options.omitElementTags,applyBackgroundColorToBlockedElements:this.options.applyBackgroundColorToBlockedElements,interactionConfig:this.options.interactionConfig,captureDocumentTitle:this.options.captureDocumentTitle,enableUrlChangePolling:this.options.enableUrlChangePolling,urlChangePollingInterval:this.options.urlChangePollingInterval},[4,this.sessionReplay.init(e.apiKey,this.srInitOptions).promise];case 1:return d.sent(),[3,3];case 2:return c=d.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(c.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){var t;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){switch(r.label){case 0:return null===(t=this.config)||void 0===t||t.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sessionReplay.getSessionId()),".")),[4,this.sessionReplay.setSessionId(e).promise];case 1:return r.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){var t;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){switch(r.label){case 0:if(null===(t=this.config)||void 0===t||t.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sessionReplay.shutdown(),[3,4];case 1:if(!(null!=this.config))return[3,3];return[4,this.sessionReplay.init(this.config.apiKey,this.srInitOptions).promise];case 2:r.sent(),r.label=3;case 3:r.label=4;case 4:return[2]}})})},e.prototype.execute=function(e){var t,r,n;return(0,eA.mG)(this,void 0,void 0,function(){var i,o,s,a,l;return(0,eA.Jh)(this,function(u){switch(u.label){case 0:if(u.trys.push([0,9,,10]),!this.options.customSessionId)return[3,4];if(!(i=this.options.customSessionId(e)))return[3,3];if(!(i!==this.sessionReplay.getSessionId()))return[3,2];return[4,this.sessionReplay.setSessionId(i).promise];case 1:u.sent(),u.label=2;case 2:o=this.sessionReplay.getSessionReplayProperties(),e.event_properties=(0,eA.pi)((0,eA.pi)({},e.event_properties),o),u.label=3;case 3:return[3,8];case 4:if(!((i=null===(t=this.config)||void 0===t?void 0:t.sessionId)&&i!==this.sessionReplay.getSessionId()))return[3,6];return[4,this.sessionReplay.setSessionId(i).promise];case 5:u.sent(),u.label=6;case 6:if(!(i&&i===e.session_id))return[3,8];return s=void 0,e.event_type===X.IDENTIFY&&(s=aC(e)),a=(0,eC.l)(),[4,this.sessionReplay.evaluateTargetingAndCapture({event:e,userProperties:s,page:(null===(r=null==a?void 0:a.location)||void 0===r?void 0:r.href)!=null?{url:a.location.href}:void 0})];case 7:u.sent(),o=this.sessionReplay.getSessionReplayProperties(),e.event_properties=(0,eA.pi)((0,eA.pi)({},e.event_properties),o),u.label=8;case 8:return e.event_type===X.IDENTIFY&&e.event_properties&&delete e.event_properties[aT],[2,Promise.resolve(e)];case 9:return l=u.sent(),null===(n=this.config)||void 0===n||n.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(l.message)),[2,Promise.resolve(e)];case 10:return[2]}})})},e.prototype.teardown=function(){var e;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){try{this.sessionReplay.shutdown(),this.config=null}catch(t){null===(e=this.config)||void 0===e||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sessionReplay.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),aR=r(48764).Buffer,aP=function(e,t){return(aP=Object.setPrototypeOf||({__proto__:[]}
25)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function aM(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}aP(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var aL=function(){return(aL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function aD(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function aN(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function aj(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aF(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function aU(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var aB={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},a$=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return Uint8Array.from(t)},aq=function(e,t){void 0===t&&(t=0);for(var r=a$(e),n=r.length,i=n>>2,o=t,s=0;s<i;s++)o=aG(aV(r,s<<2),o);var a=i<<2,l=0;switch(n-a){case 3:l^=r[a+2]<<16,l^=r[a+1]<<8,l^=r[a],o^=l=Math.imul(l=aH(l=Math.imul(l,-862048943),15),461845907);break;case 2:l^=r[a+1]<<8,l^=r[a],o^=l=Math.imul(l=aH(l=Math.imul(l,-862048943),15),461845907);break;case 1:l^=r[a],o^=l=Math.imul(l=aH(l=Math.imul(l,-862048943),15),461845907)}return az(o^=n)>>>0},aG=function(e,t){var r=e,n=t;return n^=r=Math.imul(r=aH(r=Math.imul(r,-862048943),15),461845907),(n=Math.imul(n=aH(n,13),5))+-430675100|0},az=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>
2513,t=Math.imul(t,-1028477387),t^=t>>>16},aH=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var n=(e&4294967295<<r-t>>>0)>>>0>>>r-t>>>0;return(e<<t|n)>>>0},aV=function(e,t){return void 0===t&&(t=0),aJ(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},aJ=function(e){return(-16777216&e)>>>24|(16711680&e)>>>8|(65280&e)<<8|(255&e)<<24},aZ=function(e,t){var r,n;if(t&&0!==t.length){try{for(var i=aj(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(!s||!e||"object"!=typeof e)return;e=e[s]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(null!=e)return e}},aW="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),aK=function(){function e(e,t,r,n){void 0===n&&(n=void 0),this.major=e,this.minor=t,this.patch=r,this.preRelease=n}return e.parse=function(t){if(t){var r=new RegExp(aW).exec(t);if(r){var n=Number(r[1]),i=Number(r[2]);if(!(isNaN(n)||isNaN(i)))return new e(n,i,Number(r[4])||0,r[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),aQ=function(){function e(){}return e.prototype.evaluate=function(e,t){var r,n,i={},o={context:e,result:i};try{for(var s=aj(t),a=s.next();!a.done;a=s.next()){var l=a.value,u=this.evaluateFlag(o,l);u&&(i[l.key]=u)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i},e.prototype.evaluateFlag=function(e,t){try{for(var r,n,i,o=aj(t.segments),s=o.next();!s.done;s=o.next()){var a=s.value;if(i=this.evaluateSegment(e,t,a)){var l=aL(aL(aL({},t.metadata),a.metadata),i.metadata);i=aL(aL({},i),{metadata:l});break}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.prototype.evaluateSegment=function(e,t,r){if(!r.conditions){var n=this.bucket(e,r);return void 0!==n?t.variants[n]:void 0}if(this.evaluateConditions(e,r.conditions)){var n=this.bucket(e,r);if(void 0!==n)return t.variants[n]}},e.prototype.evaluateConditions=function(e,t){var r,n,i,o;try{for(var s=aj(t),a=s.next();!a.done;a=s.next()){var l=a.value,u=!0;try{for(var c=(i=void 0,aj(l)),d=c.next();!d.done;d=c.next()){var p=d.value;if(!(u=this.matchCondition(e,p)))break}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}if(u)return!0}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return!1},e.prototype.matchCondition=function(e,t){var r=aZ(e,t.selector);if(null==r)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var n=this.coerceStringArray(r);return!!n&&this.matchSet(n,t.op,t.values)}var i=this.coerceString(r);return void 0!==i&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return aq(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var r,n,i,o,s=this.coerceString(aZ(e,t.bucket.selector));if(!s||0===s.length)return t.variant;var a="".concat(t.bucket.salt,"/").concat(s),l=this.getHash(a),u=l%100,c=Math.floor(l/100);try{for(var d=aj(t.bucket.allocations),p=d.next();!p.done;p=d.next()){var f=p.value,h=f.range[0],g=f.range[1];if(u>=h&&u<g)try{for(var m=(i=void 0,aj(f.distributions)),v=m.next();!v.done;v=m.next()){var y=v.value,b=y.range[0],w=y.range[1];if(c>=b&&c<w)return y.variant}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}return t.variant},e.prototype.matchNull=function(e,t){var r=this.containsNone(t);switch(e){case aB.IS:case aB.CONTAINS:case aB.LESS_THAN:case aB.LESS_THAN_EQUALS:case aB.GREATER_THAN:case aB.GREATER_THAN_EQUALS:case aB.VERSION_LESS_THAN:case aB.VERSION_LESS_THAN_EQUALS:case aB.VERSION_GREATER_THAN:case aB.VERSION_GREATER_THAN_EQUALS:case aB.SET_IS:case aB.SET_CONTAINS:case aB.SET_CONTAINS_ANY:return r;case aB.IS_NOT:case aB.DOES_NOT_CONTAIN:case aB.SET_DOES_NOT_CONTAIN:case aB.SET_DOES_NOT_CONTAIN_ANY:return!r;default:return!1}},e.prototype.matchSet=function(e,t,r){switch(t){case aB.SET_IS:return this.setEquals(e,r);case aB.SET_IS_NOT:return!this.setEquals(e,r);case aB.SET_CONTAINS:return this.matchesSetContainsAll(e,r);case aB.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,r);case aB.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,r);case aB.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,r);default:return!1}},e.prototype.matchString=function(e,t,r){var n=this;switch(t){case aB.IS:return this.matchesIs(e,r);case aB.IS_NOT:return!this.matchesIs(e,r);case aB.CONTAINS:return this.matchesContains(e,r);case aB.DOES_NOT_CONTAIN:return!this.matchesContains(e,r);case aB.LESS_THAN:case aB.LESS_THAN_EQUALS:case aB.GREATER_THAN:case aB.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return n.parseNumber(e)},this.comparator);case aB.VERSION_LESS_THAN:case aB.VERSION_LESS_THAN_EQUALS:case aB.VERSION_GREATER_THAN:case aB.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return aK.parse(e)},this.versionComparator);case aB.REGEX_MATCH:return this.matchesRegex(e,r);case aB.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,r);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var r=e.toLowerCase();if("true"===r||"false"===r)return t.some(function(e){return e.toLowerCase()===r})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var r,n;try{for(var i=aj(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.toLowerCase().includes(s.toLowerCase()))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(e,t,r,n,i){var o=this,s=n(e),a=r.map(function(e){return n(e)}).filter(function(e){return void 0!==e});return void 0===s||0===a.length?r.some(function(r){return o.comparator(e,t,r)}):a.some(function(e){return i(s,t,e)})},e.prototype.comparator=function(e,t,r){switch(t){case aB.LESS_THAN:case aB.VERSION_LESS_THAN:return e<r;case aB.LESS_THAN_EQUALS:case aB.VERSION_LESS_THAN_EQUALS:return e<=r;case aB.GREATER_THAN:case aB.VERSION_GREATER_THAN:return e>r;case aB.GREATER_THAN_EQUALS:case aB.VERSION_GREATER_THAN_EQUALS:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var n=e.compareTo(r);switch(t){case aB.LESS_THAN:case aB.VERSION_LESS_THAN:return n<0;case aB.LESS_THAN_EQUALS:case aB.VERSION_LESS_THAN_EQUALS:return n<=0;case aB.GREATER_THAN:case aB.VERSION_GREATER_THAN:return n>0;case aB.GREATER_THAN_EQUALS:case aB.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!==(t=Number(e))&&void 0!==t?t:void 0},e.prototype.coerceString=function(e){return null==e?void 0:"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}
25).filter(Boolean)}var n=String(e);try{var i=JSON.parse(n);if(Array.isArray(i)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(n);return o?[o]:void 0}catch(e){var o=this.coerceString(n);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case aB.SET_IS:case aB.SET_IS_NOT:case aB.SET_CONTAINS:case aB.SET_DOES_NOT_CONTAIN:case aB.SET_CONTAINS_ANY:case aB.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),n=new Set(t);return r.size===n.size&&aU([],aF(n),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,n;if(e.length<t.length)return!1;try{for(var i=aj(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(!this.matchesIs(s,e))return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var r,n;try{for(var i=aj(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(this.matchesIs(s,e))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e}(),aX=function(e,t){var r,n,i=aL({},e),o=[],s=t||Object.keys(i);try{for(var a=aj(s),l=a.next();!l.done;l=a.next()){var u=l.value,c=aY(u,i);c&&o.push.apply(o,aU([],aF(c),!1))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},aY=function(e,t,r){void 0===r&&(r=[]);var n,i,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];r.push(o.key);var s=[],a=function(e){if(r.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(r));var n=aY(e,t,r);n&&s.push.apply(s,aU([],aF(n),!1))};try{for(var l=aj(o.dependencies),u=l.next();!u.done;u=l.next()){var c=u.value;a(c)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return s.push(o),r.pop(),delete t[o.key],s}};let a0="3.7.7",a1="function"==typeof aR,a2="function"==typeof TextDecoder?new TextDecoder:void 0,a3="function"==typeof TextEncoder?new TextEncoder:void 0,a4=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),a5=(i={},a4.forEach((e,t)=>i[e]=t),i),a6=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,a8=String.fromCharCode.bind(String),a7="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),a9=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),le=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),lt=e=>{let t,r,n,i,o="",s=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw TypeError("invalid character found");o+=a4[(t=r<<16|n<<8|i)>>18&63]+a4[t>>12&63]+a4[t>>6&63]+a4[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},lr="function"==typeof btoa?e=>btoa(e):a1?e=>aR.from(e,"binary").toString("base64"):lt,ln=a1?e=>aR.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(a8.apply(null,e.subarray(r,r+4096)));return lr(t.join(""))},li=(e,t=!1)=>t?a9(ln(e)):ln(e),lo=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?a8(192|t>>>6)+a8(128|63&t):a8(224|t>>>12&15)+a8(128|t>>>6&63)+a8(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return a8(240|t>>>18&7)+a8(128|t>>>12&63)+a8(128|t>>>6&63)+a8(128|63&t)},ls=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,la=e=>e.replace(ls,lo),ll=a1?e=>aR.from(e,"utf8").toString("base64"):a3?e=>ln(a3.encode(e)):e=>lr(la(e)),lu=(e,t=!1)=>t?a9(ll(e)):ll(e),lc=e=>lu(e,!0),ld=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,lp=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return a8((t>>>10)+55296)+a8((1023&t)+56320);case 3:return a8((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return a8((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},lf=e=>
25e.replace(ld,lp),lh=e=>{if(e=e.replace(/\s+/g,""),!a6.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let o=0;o<e.length;)t=a5[e.charAt(o++)]<<18|a5[e.charAt(o++)]<<12|(n=a5[e.charAt(o++)])<<6|(i=a5[e.charAt(o++)]),r+=64===n?a8(t>>16&255):64===i?a8(t>>16&255,t>>8&255):a8(t>>16&255,t>>8&255,255&t);return r},lg="function"==typeof atob?e=>atob(le(e)):a1?e=>aR.from(e,"base64").toString("binary"):lh,lm=a1?e=>a7(aR.from(e,"base64")):e=>a7(lg(e).split("").map(e=>e.charCodeAt(0))),lv=e=>lm(lb(e)),ly=a1?e=>aR.from(e,"base64").toString("utf8"):a2?e=>a2.decode(lm(e)):e=>lf(lg(e)),lb=e=>le(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),lw=e=>ly(lb(e)),lS=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),lA=function(){let e=(e,t)=>Object.defineProperty(String.prototype,e,lS(t));e("fromBase64",function(){return lw(this)}),e("toBase64",function(e){return lu(this,e)}),e("toBase64URI",function(){return lu(this,!0)}),e("toBase64URL",function(){return lu(this,!0)}),e("toUint8Array",function(){return lv(this)})},l_=function(){let e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,lS(t));e("toBase64",function(e){return li(this,e)}),e("toBase64URI",function(){return li(this,!0)}),e("toBase64URL",function(){return li(this,!0)})},lE={version:a0,VERSION:a0,atob:lg,atobPolyfill:lh,btoa:lr,btoaPolyfill:lt,fromBase64:lw,toBase64:lu,encode:lu,encodeURI:lc,encodeURL:lc,utob:la,btou:lf,decode:lw,isValid:e=>{if("string"!=typeof e)return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:li,toUint8Array:lv,extendString:lA,extendUint8Array:l_,extendBuiltins:()=>{lA(),l_()}};var lk=function(e){function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return aM(t,e),t}(Error),lx=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return aM(t,e),t}(Error),lC=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return aD(this,void 0,void 0,function(){var r,n,i,o;return aN(this,function(s){switch(s.label){case 0:return r=lE.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(n["X-Amp-Exp-Flag-Keys"]=lE.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(n["X-Amp-Exp-Track"]=t.trackingOption),(null==t?void 0:t.exposureTrackingOption)&&(n["X-Amp-Exp-Exposure-Track"]=t.exposureTrackingOption),i=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&i.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&i.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:"GET",headers:n,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=s.sent()).status)throw new lk(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),lI=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return aD(this,void 0,void 0,function(){var t,r;return aN(this,function(n){switch(n.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=lE.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=n.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),lT="undefined"!=typeof globalThis?globalThis:r.g||self,lO=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},lR=function(){var e=lO();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},lP=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=lT.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(lT.clearInterval(this.poller),this.poller=void 0)},e}
25(),lM=r(29293);(function(){function e(e){this.amplitudeInstance=e}e.prototype.getUser=function(){var e,t,r,n,i,o,s,a,l,u;return{device_id:null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e.options)||void 0===t?void 0:t.deviceId,user_id:null===(n=null===(r=this.amplitudeInstance)||void 0===r?void 0:r.options)||void 0===n?void 0:n.userId,version:null===(o=null===(i=this.amplitudeInstance)||void 0===i?void 0:i.options)||void 0===o?void 0:o.versionName,language:null===(a=null===(s=this.amplitudeInstance)||void 0===s?void 0:s.options)||void 0===a?void 0:a.language,platform:null===(u=null===(l=this.amplitudeInstance)||void 0===l?void 0:l.options)||void 0===u?void 0:u.platform,os:this.getOs(),device_model:this.getDeviceModel()}},e.prototype.getOs=function(){var e,t,r,n,i,o;return[null===(r=null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e._ua)||void 0===t?void 0:t.browser)||void 0===r?void 0:r.name,null===(o=null===(i=null===(n=this.amplitudeInstance)||void 0===n?void 0:n._ua)||void 0===i?void 0:i.browser)||void 0===o?void 0:o.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(){var e,t,r;return null===(r=null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e._ua)||void 0===t?void 0:t.os)||void 0===r?void 0:r.name}})(),function(){function e(e){this.amplitudeInstance=e}e.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},e.prototype.setUserProperty=function(e){var t,r;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null===(r=e.variant)||void 0===r?void 0:r.value,t))},e.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})}}();var lL=function(){return(lL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function lD(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function lN(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function lj(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lF(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function lU(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var lB=function(e,t){void 0===t&&(t=!1);var r,n,i=lG(e,t),o=void 0,s=lT.document.cookie.split("; ");try{for(var a=lj(s),l=a.next();!l.done;l=a.next()){var u=l.value,c=lF(u.split("=",2),2),d=c[0],p=c[1];d===i&&(o=decodeURIComponent(p))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}
25if(o)try{if(t){var f=atob(o);return JSON.parse(decodeURIComponent(f))}var h=o.split("."),g=void 0;return h.length>=2&&h[1]&&(g=atob(h[1])),{deviceId:h[0],userId:g}}catch(e){return}},l$=function(e){var t=lG(e,!0);try{var r=lT.localStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},lq=function(e){var t=lG(e,!0);try{var r=lT.sessionStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},lG=function(e,t){if(t){if((null==e?void 0:e.length)<10)return;return"AMP_".concat(e.substring(0,10))}if(!((null==e?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},lz=function(){function e(e,t,r){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=r,this.loadPersistedState(),r<=0&&(this.setup=void 0)}return e.prototype.setup=function(e,t){return lD(this,void 0,void 0,function(){return lN(this,function(r){return(null==e?void 0:e.automaticFetchOnAmplitudeIdentityChange)&&this.identityStore.addIdentityListener(function(){null==t||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(e){return!!this.eventBridge.receiver&&(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0)},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=lB(this.apiKey,!0);return!!(e||(e=lB(this.apiKey,!1))||(e=l$(this.apiKey))||(e=lq(this.apiKey)))&&(this.commitIdentityToConnector(e),!0)},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return lD(this,void 0,void 0,function(){var t,r=this;return lN(this,function(n){return(t=this.identityStore.getIdentity()).userId||t.deviceId?[2]:[2,Promise.race([new Promise(function(e){var t=function(){e(),r.identityStore.removeIdentityListener(t)};r.identityStore.addIdentityListener(t)}),new Promise(function(t,r){lT.setTimeout(r,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})},e}(),lH=lT.fetch||function(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],s=[],a={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return s},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase() in a}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,r){o.push(t=t.toLowerCase()),s.push([t,r]),a[t]=a[t]?a[t]+","+r:r}),r(l())},i.onerror=n,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})},lV=function(){function e(e){this.client=e}return e.prototype.request=function(e){return lD(this,void 0,void 0,function(){return lN(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},e}(),lJ={request:function(e,t,r,n,i){var o;return o=lD(void 0,void 0,void 0,function(){var i,o;return lN(this,function(s){switch(s.label){case 0:return[4,lH(e,{method:t,headers:r,body:n})];case 1:return o={status:(i=s.sent()).status},[4,i.text()];case 2:return o.body=s.sent(),[2,o]}})}),null==i||i<=0?o:new Promise(function(e,t){lT.setTimeout(function(){t(new lx("Request timeout after "+i+" milliseconds"))},i),o.then(e,t)})}};(L=ev||(ev={}))[L.Disable=0]="Disable",L[L.Error=1]="Error",L[L.Warn=2]="Warn",L[L.Info=3]="Info",L[L.Debug=4]="Debug",L[L.Verbose
25=5]="Verbose",(D=ey||(ey={})).LocalStorage="localStorage",D.InitialVariants="initialVariants",(N=eb||(eb={})).LocalStorage="storage",N.InitialVariants="initial",N.SecondaryLocalStorage="secondary-storage",N.SecondaryInitialVariants="secondary-initial",N.FallbackInline="fallback-inline",N.FallbackConfig="fallback-config",N.LocalEvaluation="local-evaluation";var lZ=function(e){return!e||e===eb.FallbackInline||e===eb.FallbackConfig||e===eb.SecondaryInitialVariants},lW={debug:!1,logLevel:ev.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:ey.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:lJ},lK="1.20.4",lQ=function(){function e(e,t){var r,n=this;this.isReady=new Promise(function(e){n.resolve=e}),this.config=e,this.client=t;var i=null!==(r=e.instanceName)&&void 0!==r?r:lW.instanceName;this.queue=new lY(i),this.cache=new lX(i)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e,t){if(this.cache.shouldTrack(e,t)){var r=this.getExposureEvent(e);this.queue.push(r)}},e.prototype.getExposureEvent=function(e){var t,r,n,i={eventType:"$exposure",eventProperties:e};return(null===(t=e.metadata)||void 0===t?void 0:t.exposureEvent)?i={eventType:null===(r=e.metadata)||void 0===r?void 0:r.exposureEvent,eventProperties:e}:(null===(n=e.metadata)||void 0===n?void 0:n.deliveryMethod)==="web"&&(i={eventType:"$impression",eventProperties:e}),i},e}(),lX=function(){function e(e){this.isSessionStorageAvailable=l0(),this.inMemoryCache={},this.identity={},this.storageKey="EXP_sent_v3_".concat(e),this.isSessionStorageAvailable&&(lT.sessionStorage.removeItem("EXP_sent_".concat(e)),lT.sessionStorage.removeItem("EXP_sent_v2_".concat(e)))}return e.prototype.shouldTrack=function(e,t){if((null===(r=e.metadata)||void 0===r?void 0:r.deliveryMethod)==="web")return!0;var r,n,i={userId:null==t?void 0:t.user_id,deviceId:null==t?void 0:t.device_id};this.identityEquals(this.identity,i)||this.clearCache(),this.identity=i,this.loadCache();var o=e.flag_key in this.inMemoryCache,s=this.inMemoryCache[e.flag_key],a=null!==(n=e.variant)&&void 0!==n?n:null,l=!1;return o&&(null!=s?s:null)===a||(l=!0,this.inMemoryCache[e.flag_key]=a),this.storeCache(),l},e.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&lT.sessionStorage.removeItem(this.storageKey)},e.prototype.identityEquals=function(e,t){return e.userId&&t.userId?e.userId===t.userId:!e.userId&&!t.userId&&e.deviceId===t.deviceId},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=lT.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{lT.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch(e){}},e}(),lY=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=lR(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=lT.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){if(this.tracker&&0!==this.inMemoryQueue.length){for(var e=0;e<this.inMemoryQueue.length;e++)try{if(!this.tracker(this.inMemoryQueue[e]))break}catch(e){break}this.inMemoryQueue=this.inMemoryQueue.slice(e),0===this.inMemoryQueue.length&&this.poller&&(lT.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=lT.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),lT.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),l0=function(){var e=lO();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},l1=function(){function e(e,t){void 0===t&&(t=ev.Error),this.logger=e,this.logLevel=t}return e.prototype.error=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.logLevel>=ev.Error&&(t=this.logger).error.apply(t,lU([e],lF(r),!1))},e.prototype.warn=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.logLevel>=ev.Warn&&(t=this.logger).warn.apply(t,lU([e],lF(r),!1))},e.prototype.info=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.logLevel>=ev.Info&&(t=this.logger).info.apply(t,lU([e],lF(r),!1))},e.prototype.debug=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.logLevel>=ev.Debug&&(t=this.logger).debug.apply(t,lU([e],lF(r),!1))},e.prototype.verbose=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.logLevel>=ev.Verbose&&(t=this.logger).verbose.apply(t,lU([e],lF(r),!1))},e}(),l2=function(){function e(){}return e.prototype.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];console.error.apply(console,lU([e],lF(t),!1))},e.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];console.warn.apply(console,lU([e],lF(t),!1))},e.prototype.info=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];console.info.apply(console,lU([e],lF(t),!1))},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];console.debug.apply(console,lU([e],lF(t),!1))},e.prototype.verbose=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];console.debug.apply(console,lU([e],lF(t),!1))},e}(),l3=function(){function e(){this.globalScope=lO()}return e.prototype.get=function(e){var t;return null===(t=this.globalScope)||void 0===t?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var r;null===(r=this.globalScope)||void 0===r||r.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null===(t=this.globalScope)||void 0===t||t.localStorage.removeItem(e)},e}(),l4=function(e,t,r){var n=e.substring(e.length-6);return new l7("amp-exp-".concat(t,"-").concat(n),r,l9)},l5=function(e,t,r){void 0===r&&(r=new l3);var n=e.substring(e.length-6);return new l7("amp-exp-".concat(t,"-").concat(n,"-flags"),r)},l6=function(e,t,r){void 0===r&&(r=new l3);var n=e.substring(e.length-6);return new l8("amp-exp-".concat(t,"-").concat(n,"-variants-options"),r)},l8=function(){function e(e,t){this.namespace=e,this.storage=t}return e.prototype.get=function(){return this.value},e.prototype.put=function(e){this.value=e},e.prototype.load=function(){var e=this.storage.get(this.namespace);e&&(this.value=JSON.parse(e))},e.prototype.store=function(){void 0===this.value?this.storage.delete(this.namespace):this.storage.put(this.namespace,JSON.stringify(this.value))},e}(),l7=function(){function e(e,t,r){this.cache={},this.namespace=e,this.storage=t,this.transformer=r}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return lL({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var n=lj(Object.keys(e)),i=n.next();!i.done;i=n.next()){var o=i.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,r,n=this.storage.get(this.namespace);try{r=JSON.parse(n)||{}}catch(e){return}var i={};try{for(var o=lj(Object.keys(r)),s=o.next();!s.done;s=o.next()){var a=s.value;try{var l=void 0;(l=this.transformer?this.transformer(r[a]):r[a])&&(i[a]=l)}catch(e){}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(i)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),l9=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,n=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&((i=i||{}).experimentKey=o);var s={};return t?s.key=t:r&&(s.key=r),r&&(s.value=r),i&&(s.metadata=i),n&&(s.payload=n),o&&(s.expKey=o),s}},ue=function(){function e(){this.globalScope=lO()}return e.prototype.get=function(e){var t;return null===(t=this.globalScope)||void 0===t?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var r;null===(r=this.globalScope)||void 0===r||r.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null===(t=this.globalScope)||void 0===t||t.sessionStorage.removeItem(e)},e}(),ut=function(e,t,r,n){var i,o=null==r?void 0:r.value,s="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:r,userProperty:s,properties:{key:t,variant:o,source:n},userProperties:((i={})[s]=o,i)}},ur=function(e){return null==e},un=function(e){return!!ur(e)||e&&0===Object.keys(e).length},ui=function(e){if(!e||"object"!=typeof e)return{};var t,r,n={};try{for(var i=lj(Object.entries(e)),o=i.next();!o.done;o=i.next()){var s=lF(o.value,2),a=s[0],l=s[1];ur(l)||(n[a]=l)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},uo=function(e){var t;return(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.evaluationMode)==="local"},us=function(){function e(e,t,r,n){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=n}return e.prototype.start=function(e){return lD(this,void 0,void 0,function(){return lN(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,r){return lD(this,void 0,void 0,function(){var n=this;return lN(this,function(i){return this.done||(this.timeoutHandle=lT.setTimeout(function(){return lD(n,void 0,void 0,function(){var n,i;return lN(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(n=t+1)<this.attempts&&(i=Math.min(r*this.scalar,this.max),this.backoff(e,n,i)
25),[3,3];case 3:return[2]}})})},r)),[2]})})},e}(),ua=function(e){if(!e)return{};var t,r,n,i,o={user:e},s=lO();s&&(o.page={url:s.location.href});var a={};if(!e.groups)return o;try{for(var l=lj(Object.keys(e.groups)),u=l.next();!u.done;u=l.next()){var c=u.value,d=e.groups[c];if(d.length>0&&d[0]){var p=d[0],f={group_name:p},h=null===(i=null===(n=e.group_properties)||void 0===n?void 0:n[c])||void 0===i?void 0:i[p];h&&Object.keys(h).length>0&&(f.group_properties=h),a[c]=f}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return Object.keys(a).length>0&&(o.groups=a),delete o.user.groups,delete o.user.group_properties,o},ul=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},uu=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},uc=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),ud=function(){function e(e){this.tracked={},this.identity={},this.exposureTrackingProvider=e}return e.prototype.track=function(e,t){var r={userId:null==t?void 0:t.user_id,deviceId:null==t?void 0:t.device_id};this.identityEquals(this.identity,r)||(this.tracked={}),this.identity=r;var n=e.flag_key in this.tracked,i=this.tracked[e.flag_key];n&&i===e.variant||(this.tracked[e.flag_key]=e.variant,this.exposureTrackingProvider.track(e))},e.prototype.identityEquals=function(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId},e}(),up=function(){function e(t,r){var n,i,o,s,a,l=this;this.engine=new aQ,this.isRunning=!1,this.apiKey=t,r=ui(r),this.config=lL(lL(lL({},lW),r),{serverUrl:(null==r?void 0:r.serverUrl)||((null===(n=null==r?void 0:r.serverZone)||void 0===n?void 0:n.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":lW.serverUrl),flagsServerUrl:(null==r?void 0:r.flagsServerUrl)||((null===(i=null==r?void 0:r.serverZone)||void 0===i?void 0:i.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":lW.flagsServerUrl),flagConfigPollingIntervalMillis:r.flagConfigPollingIntervalMillis<6e4?6e4:null!==(o=r.flagConfigPollingIntervalMillis)&&void 0!==o?o:lW.flagConfigPollingIntervalMillis}),this.logger=new l1(this.config.loggerProvider||new l2,e.getLogLevel(r));var u=null===(s=this.config)||void 0===s?void 0:s.internalInstanceNameSuffix;if(this.isWebExperiment="web"===u,this.poller=new lP(function(){return lD(l,void 0,void 0,function(){var e;return lN(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.doFlags()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this.logger.info(e),[3,3];case 3:return[2]}})})},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var c in this.config.initialVariants)this.config.initialVariants[c]=l9(this.config.initialVariants[c]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new uc(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new ud(this.config.exposureTrackingProvider)),this.integrationManager=new lQ(this.config,this);var d=new lV(this.config.httpClient||lJ);this.flagApi=new lI(this.apiKey,this.config.flagsServerUrl,d),this.evaluationApi=new lC(this.apiKey,this.config.serverUrl,d);var p=u?"".concat(this.config.instanceName,"-").concat(u):this.config.instanceName;a=this.isWebExperiment?new ue:new l3,this.variants=l4(this.apiKey,p,a),this.flags=l5(this.apiKey,p,a),this.fetchVariantsOptions=l6(this.apiKey,p,a);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){return lD(this,void 0,void 0,function(){var t,r,n;return lN(this,function(i){switch(i.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(e),i.label=1;case 1:if(i.trys.push([1,6,,7]),t=this.doFlags(),!(null===(n=this.config.fetchOnStart)||void 0===n||n))return[3,3];return[4,Promise.all([this.fetch(e),t])];case 2:return i.sent(),[3,5];case 3:return[4,t];case 4:i.sent(),i.label=5;case 5:return[3,7];case 6:if(r=i.sent(),this.config.throwOnError)throw r;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(){return lD(this,arguments,void 0,function(e,t){var r;return void 0===e&&(e=this.user),lN(this,function(n){switch(n.label){case 0:this.setUser(e||{}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return n.sent(),[3,4];case 3:if(r=n.sent(),this.config.throwOnError)throw r;return r instanceof lx?this.logger.debug(r):this.logger.error(r),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var r,n,i=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,i),this.logger.debug("[Experiment] variant for ".concat(e," is ").concat((null===(r=i.variant)||void 0===r?void 0:r.key)||(null===(n=i.variant)||void 0===n?void 0:n.value))),i.variant||{}}
25,e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)uo(this.flags.get(t))||delete e[t];return lL(lL(lL({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch(e){}},e.prototype.getUser=function(){if(!this.user)return this.user;if(null===(e=this.user)||void 0===e||!e.user_properties)return lL({},this.user);var e,t=lL({},this.user.user_properties);return lL(lL({},this.user),{user_properties:t})},e.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(null===(t=this.user)||void 0===t?void 0:t.user_properties){var r=lL({},e.user_properties);this.user=lL(lL({},e),{user_properties:r})}else this.user=lL({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,r,n=this.addContext(this.user),i=aX(this.flags.getAll(),e),o=ua(n),s=this.engine.evaluate(o,i),a={};try{for(var l=lj(Object.keys(s)),u=l.next();!u.done;u=l.next()){var c=u.value;a[c]=uu(s[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return a},e.prototype.variantAndSource=function(e,t){var r={};this.config.source===ey.LocalStorage?r=this.localStorageVariantAndSource(e,t):this.config.source===ey.InitialVariants&&(r=this.initialVariantsVariantAndSource(e,t));var n=this.flags.get(e);return(uo(n)||!r.variant&&n)&&(r=this.localEvaluationVariantAndSource(e,n,t)),r},e.prototype.localEvaluationVariantAndSource=function(e,t,r){var n,i={},o=this.evaluate([t.key])[e],s=eb.LocalEvaluation,a=null===(n=null==o?void 0:o.metadata)||void 0===n?void 0:n.default;if(!ur(o)&&!a)return{variant:ul(o),source:s,hasDefaultVariant:!1};if(a&&(i={variant:ul(o),source:s,hasDefaultVariant:!0}),!ur(r))return{variant:ul(r),source:eb.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var l=this.config.initialVariants[e];if(!ur(l))return{variant:ul(l),source:eb.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=ul(this.config.fallbackVariant),c={variant:u,source:eb.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return un(u)?i:c},e.prototype.localStorageVariantAndSource=function(e,t){var r,n={},i=this.variants.get(e),o=null===(r=null==i?void 0:i.metadata)||void 0===r?void 0:r.default;if(!ur(i)&&!o)return{variant:ul(i),source:eb.LocalStorage,hasDefaultVariant:!1};if(o&&(n={variant:ul(i),source:eb.LocalStorage,hasDefaultVariant:!0}),!ur(t))return{variant:ul(t),source:eb.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var s=this.config.initialVariants[e];if(!ur(s))return{variant:ul(s),source:eb.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var a=ul(this.config.fallbackVariant),l={variant:a,source:eb.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return un(a)?n:l},e.prototype.initialVariantsVariantAndSource=function(e,t){var r,n={},i=this.config.initialVariants[e];if(!ur(i))return{variant:ul(i),source:eb.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),s=null===(r=null==o?void 0:o.metadata)||void 0===r?void 0:r.default;if(!ur(o)&&!s)return{variant:ul(o),source:eb.LocalStorage,hasDefaultVariant:!1};if(s&&(n={variant:ul(o),source:eb.LocalStorage,hasDefaultVariant:!0}),!ur(t))return{variant:ul(t),source:eb.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var a=ul(this.config.fallbackVariant),l={variant:a,source:eb.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return un(a)?n:l},e.prototype.fetchInternal=function(e,t,r,n){return lD(this,void 0,void 0,function(){var i,o,s;return lN(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.logger.debug("[Experiment] Fetch all: retry=".concat(r)),r&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(e,t,lL({trackingOption:null===(s=this.fetchVariantsOptions.get())||void 0===s?void 0:s.trackingOption},n))];case 2:return i=a.sent(),[4,this.storeVariants(i,n)];case 3:return a.sent(),[2,i];case 4:throw o=a.sent(),r&&this.shouldRetryFetch(o)&&this.startRetries(e,n),o;case 5:return[2]}})})},e.prototype.setTracksAssignment=function(e){return lD(this,void 0,void 0,function(){return lN(this,function(t){return this.fetchVariantsOptions.put(lL(lL({},this.fetchVariantsOptions.get()||{}),{trackingOption:e?"track":"no-track"}
25)),this.fetchVariantsOptions.store(),[2]})})},e.prototype.cleanUserPropsForFetch=function(e){var t=lL({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,r){return lD(this,void 0,void 0,function(){var n,i,o,s,a,l,u;return lN(this,function(c){switch(c.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=c.sent(),e=this.cleanUserPropsForFetch(e),this.logger.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,lL({timeoutMillis:t},r))];case 2:n=c.sent(),i={};try{for(s=(o=lj(Object.keys(n))).next();!s.done;s=o.next())i[a=s.value]=uu(n[a])}catch(e){l={error:e}}finally{try{s&&!s.done&&(u=o.return)&&u.call(o)}finally{if(l)throw l.error}}return this.logger.debug("[Experiment] Received variants: ",i),[2,i]}})})},e.prototype.doFlags=function(){return lD(this,void 0,void 0,function(){var e,t,r;return lN(this,function(n){switch(n.label){case 0:if(n.trys.push([0,4,,5]),e=void 0,!this.isWebExperiment)return[3,2];return[4,this.addContextOrWait(this.getUser())];case 1:e=n.sent(),n.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:lK,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:(null==e?void 0:e.user_id)||(null==e?void 0:e.device_id)?{user_id:null==e?void 0:e.user_id,device_id:null==e?void 0:e.device_id}:void 0})];case 3:return t=n.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if((r=n.sent())instanceof lx){if(this.logger.debug(r),this.config.throwOnError)throw r}else throw r;return[3,5];case 5:try{this.flags.store()}catch(e){}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return lD(this,void 0,void 0,function(){var r,n,i,o;return lN(this,function(s){for(o in 0===(r=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),n=function(t){r=r.filter(function(e){return e!==t}),i.variants.put(t,e[t])},i=this,e)n(o);for(o in r)this.variants.remove(o);try{this.variants.store()}catch(e){}return this.logger.debug("[Experiment] Stored variants: ",e),[2]})})},e.prototype.startRetries=function(e,t){return lD(this,void 0,void 0,function(){var r=this;return lN(this,function(n){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new us(8,500,1e4,1.5),this.retriesBackoff.start(function(){return lD(r,void 0,void 0,function(){return lN(this,function(r){switch(r.label){case 0:return[4,this.fetchInternal(e,1e4,!1,t)];case 1:return r.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t,r=null===(t=this.userProvider)||void 0===t?void 0:t.getUser(),n=this.integrationManager.getUser(),i=lL(lL(lL({},null==r?void 0:r.user_properties),n.user_properties),null==e?void 0:e.user_properties);return lL(lL(lL(lL({library:"experiment-js-client/".concat(lK)},r),n),e),{user_properties:i})},e.prototype.addContextOrWait=function(e){return lD(this,void 0,void 0,function(){return lN(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){return this.config.source==ey.LocalStorage?this.variants.getAll():this.config.source==ey.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==ey.LocalStorage?this.config.initialVariants:this.config.source==ey.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null===(i=null===(n=null===(r=t.variant)||void 0===r?void 0:r.metadata)||void 0===n?void 0:n.trackExposure)||void 0===i||i){this.legacyExposureInternal(e,t.variant,t.source);var r,n,i,o,s,a,l,u,c,d={flag_key:e},p=lZ(t.source);if(!p||t.hasDefaultVariant){(null===(o=t.variant)||void 0===o?void 0:o.expKey)&&(d.experiment_key=null===(s=t.variant)||void 0===s?void 0:s.expKey);var f=null===(a=t.variant)||void 0===a?void 0:a.metadata;if(p||(null==f?void 0:f.default)||((null===(l=t.variant)||void 0===l?void 0:l.key)?d.variant=t.variant.key:(null===(u=t.variant)||void 0===u?void 0:u.value)&&(d.variant=t.variant.value)),f&&(d.metadata=f),this.isWebExperiment&&(d.time=Date.now()),this.isWebExperiment){var h=lO();if(null==h?void 0:h.location)try{var g=h.location.href;d.metadata.url=g.split("?")[0]||""}catch(e){}}var m=this.addContext(this.getUser());null===(c=this.userSessionExposureTracker)||void 0===c||c.track(d,m),this.integrationManager.track(d,m)}}},e.prototype.legacyExposureInternal=function(e,t,r){var n,i,o,s,a;if(this.analyticsProvider){var l=ut(this.addContext(this.getUser()),e,t,r);!lZ(r)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null===(s=null===(o=this.analyticsProvider)||void 0===o?void 0:o.setUserProperty)||void 0===s||s.call(o,l),null===(a=this.analyticsProvider)||void 0===a||a.track(l)):null===(i=null===(n=this.analyticsProvider)||void 0===n?void 0:n.unsetUserProperty)||void 0===i||i.call(n,l)}},e.getLogLevel=function(e){var t;return!0===e.debug?ev.Debug:null!==(t=e.logLevel)&&void 0!==t?t:ev.Error},e.prototype.shouldRetryFetch=function(e){return!(e instanceof lk)||e.statusCode<400||e.statusCode>=500||429===e.statusCode}
25,e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),uf=function(){function e(e,t){var r,n,i;this.globalScope=lO(),this.userAgent=void 0!==(null===(r=this.globalScope)||void 0===r?void 0:r.navigator)?null===(n=this.globalScope)||void 0===n?void 0:n.navigator.userAgent:void 0,this.ua=new lM.UAParser(this.userAgent).getResult(),this.localStorage=new l3,this.sessionStorage=new ue,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null===(i=this.apiKey)||void 0===i?void 0:i.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,n,i,o=(null===(e=this.userProvider)||void 0===e?void 0:e.getUser())||{};return lL({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!==(r=null===(t=this.ua.device)||void 0===t?void 0:t.type)&&void 0!==r?r:"desktop",referring_url:null===(i=null===(n=this.globalScope)||void 0===n?void 0:n.document)||void 0===i?void 0:i.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,r;return[null===(t=e.browser)||void 0===t?void 0:t.name,null===(r=e.browser)||void 0===r?void 0:r.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null===(t=e.os)||void 0===t?void 0:t.name},e.prototype.getBrowser=function(e){var t,r=null===(t=e.browser)||void 0===t?void 0:t.name;return(null==r?void 0:r.includes("Chrom"))&&(r="Chrome"),(null==r?void 0:r.includes("Firefox"))&&(r="Firefox"),(null==r?void 0:r.includes("Safari"))&&(r="Safari"),(null==r?void 0:r.includes("Edge"))&&(r="Edge"),(null==r?void 0:r.includes("Opera"))&&(r="Opera"),r},e.prototype.getCookie=function(){var e,t,r,n,i;if(null===(t=null===(e=this.globalScope)||void 0===e?void 0:e.document)||void 0===t?void 0:t.cookie)return Object.fromEntries(null===(i=null===(n=null===(r=this.globalScope)||void 0===r?void 0:r.document)||void 0===n?void 0:n.cookie)||void 0===i?void 0:i.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var r=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return r.landing_url||(r.landing_url=null===(t=null===(e=this.globalScope)||void 0===e?void 0:e.location)||void 0===t?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(r))),r.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,r,n={};try{var i=new URL(this.globalScope.location.href);try{for(var o=lj(i.searchParams),s=o.next();!s.done;s=o.next()){var a=lF(s.value,2),l=a[0],u=a[1];n[l]=lU(lU([],lF(null!==(r=n[l])&&void 0!==r?r:[]),!1),lF(u.split(",")),!1)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(n).reduce(function(e,t){var r=lF(t,2),n=r[0],i=r[1];return e[n]=1==i.length?i[0]:i,e},{})}},e}();lT.experimentInstances={};var uh=lT.experimentInstances,ug=function(e){return(null==e?void 0:e.instanceName)||lW.instanceName},um=function(e,t){var r=ug(t),n=null==t?void 0:t.internalInstanceNameSuffix;return n?"".concat(r,".").concat(e,".").concat(n):"".concat(r,".").concat(e)},uv=function(e,t,r){var n=um(e,t),i=uh[n];return i||(i=new up(e,lL(lL({},t),{userProvider:new uf(null==t?void 0:t.userProvider,e)})),r&&i.addPlugin(r()),uh[n]=i),i};!function(){function e(){}e.prototype.getUser=function(){return{}},e.prototype.start=function(e){return lD(this,void 0,void 0,function(){return lN(this,function(e){return[2]})})},e.prototype.stop=function(){},e.prototype.setUser=function(e){},e.prototype.fetch=function(e,t){return lD(this,void 0,void 0,function(){return lN(this,function(e){return[2,this]})})},e.prototype.getUserProvider=function(){return null},e.prototype.setUserProvider=function(e){return this},e.prototype.variant=function(e,t){return lW.fallbackVariant},e.prototype.all=function(){return{}},e.prototype.clear=function(){}
25,e.prototype.exposure=function(e){}}();var uy=function(){function e(t){this.name=e.pluginName,this.config=t}return e.prototype.setup=function(e,t){var r;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(t){var n,i;return this.experiment=uv(n=(null===(r=this.config)||void 0===r?void 0:r.deploymentKey)||e.apiKey,i=this.config,function(){return new lz(n,e0.getInstance(ug(i)),1e4)}),[2]})})},e.pluginName="@amplitude/experiment-analytics-plugin",e}(),ub=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:uw(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),uw=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},uS=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),uA=function(){return(uA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u_(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function uE(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}var uk=function(e,t){var r,n,i=typeof e;if(i!==typeof t)return!1;try{for(var o=u_(["string","number","boolean","undefined"]),s=o.next();!s.done;s=o.next())if(s.value===i)return e===t}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var a=Array.isArray(e),l=Array.isArray(t);if(a!==l)return!1;if(a&&l){for(var u=0;u<e.length;u++)if(!uk(e[u],t[u]))return!1}else{if(!uk(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(r){uk(e[r],t[r])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var ux=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=uA({},this.identity.userProperties),r=uA(uA({},this.identity),{userProperties:t});return{setUserId:function(e){return r.userId=e,this},setDeviceId:function(e){return r.deviceId=e,this},setUserProperties:function(e){return r.userProperties=e,this},setOptOut:function(e){return r.optOut=e,this},updateUserProperties:function(e){var t,n,i,o,s,a,l=r.userProperties||{};try{for(var u=u_(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=uE(c.value,2),p=d[0],f=d[1];switch(p){case"$set":try{for(var h=(i=void 0,u_(Object.entries(f))),g=h.next();!g.done;g=h.next()){var m=uE(g.value,2),v=m[0],y=m[1];l[v]=y}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(s=void 0,u_(Object.keys(f))),w=b.next();!w.done;w=b.next()){var v=w.value;delete l[v]}}catch(e){s={error:e}}finally{try{w&&!w.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return r.userProperties=l,this},commit:function(){return e.setIdentity(r),this}}},e.prototype.getIdentity=function(){return uA({},this.identity)},e.prototype.setIdentity=function(e){var t=uA({},this.identity);this.identity=uA({},e),uk(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),uC="u">typeof globalThis?globalThis:"u">typeof window?window:self,uI=function(){function e(){this.identityStore=new ux,this.eventBridge=new uS,this.applicationContextProvider=new ub}return e.getInstance=function(t){return uC.analyticsConnectorInstances||(uC.analyticsConnectorInstances={}),uC.analyticsConnectorInstances[t]||(uC.analyticsConnectorInstances[t]=new e),uC.analyticsConnectorInstances[t]},e}(),uT=["boot"],uO=((j=uO||{}).Local="https://local.amplitude.com:3010/",j.Staging="https://apps.stag2.amplitude.com/",j.Production="https://app.amplitude.com/",j.ProductionEU="https://app.eu.amplitude.com/",j),uR=((e=>{if("u">typeof window&&window.opener)for(let t of Object.values(uO))window.opener.postMessage({message:e},t)})("ENGAGEMENT_SNIPPET"),F=(e,t,r,n)=>(function(e,t,r,n){for(let i of e){let e=document.createElement("script");e.src=i,e.id="engagement-sdk-bundle",r&&e.setAttribute("nonce",r),t&&e.setAttribute("type",t),n&&(e.onerror=n),document.getElementsByTagName("head")[0].appendChild(e)}})([e||"https://cdn.amplitude.com/engagement-browser/prod/index.min.js.gz"],t,r,n),o="u">typeof window?window.engagement:void 0,s=!1,a={_q:null!=(U=null==o?void 0:o._q)?U:[],_configuration:{apiKey:null!=($=null==(B=null==o?void 0:o._configuration)?void 0:B.apiKey)?$:"",serverUrl:null==(q=null==o?void 0:o._configuration)?void 0:q.serverUrl,chatUrl:null==(G=null==o?void 0:o._configuration)?void 0:G.chatUrl,mediaUrl:null==(z=null==o?void 0:o._configuration)?void 0:z.mediaUrl,serverZone:null!=(V=null==(H=null==o?void 0:o._configuration)?void 0:H.serverZone)?V:"US",options:{...null==(J=null==o?void 0:o._configuration)?void 0:J.options}},init(e,t){var r,n,i,o;let l;if(a._configuration.apiKey){console.log("Engagement SDK has already been initialized. Ignoring additional init call.");return}if(null!=t&&t.useEngagementDomain){let e=(null!=(r=t.serverZone)?r:a._configuration.serverZone)==="EU",n="amplitudeengagement.com";t.serverUrl||(t.serverUrl=e?`https://gs.eu.${n}`:`https://gs.${n}`),t.chatUrl||(t.chatUrl=e?`https://houston-chat.eu.${n}`:`https://houston-chat.${n}`),t.mediaUrl||(t.mediaUrl=e?`https://engagement-static.eu.${n}`:`https://engagement-static.${n}`),t.cdnUrl||(t.cdnUrl=e?`https://cdn.eu.${n}`:`https://cdn.${n}`)}if(a._configuration={...a._configuration,...t,apiKey:e,options:{splitting:!0,...a._configuration.options,...null==t?void 0:t.options}},null!=(i=null==(n=a._configuration)?void 0:n.options)&&i.logger&&a._configuration.options.logger.enable(null!=(o=a._configuration.options.logLevel)?o:2),null!=t&&t.cdnUrl)l=a._configuration.options.splitting?`${t.cdnUrl}/engagement-browser/prod/split/index.js`:t.cdnUrl+"/engagement-browser/prod/index.min.js.gz";else{let e="EU"===a._configuration.serverZone?"https://cdn.eu.amplitude.com":"https://cdn.amplitude.com";l=a._configuration.options.splitting?`${e}/engagement-browser/prod/split/index.js`:`${e}/engagement-browser/prod/index.min.js.gz`}let u=null,c=()=>
25{if(s=!0,u&&(clearTimeout(u),u=null),a._q&&a._q.length>0)for(console.warn(`Engagement SDK failed to load within ${d}ms. Resolving pending calls gracefully.`);a._q.length>0;){let e=a._q.shift();if(!e)continue;let t=e[0],r=uT.includes(t);if(console.warn(`Engagement SDK method '${t}' still in queue (isAsyncMethod=${r}); attempting to resolve as no-op.`),r&&e[1]instanceof Function&&e[2]instanceof Function){let r=e[1];console.warn(`Engagement SDK method '${t}' resolved as no-op due to script loading failure`),r(void 0)}}};F(l,a._configuration.options.splitting?"module":void 0,null==t?void 0:t.nonce,c);let d=1e4;u=setTimeout(()=>{c()},1e4)},plugin(e){let t=a.init;return{name:"@amplitude/engagement-browser",type:"enrichment",async setup(r,n){var i;let o=null!=(i=r.instanceName)?i:"$default_instance",s=uI.getInstance(o).identityStore;t(r.apiKey,{serverZone:r.serverZone,...e,options:{logLevel:r.logLevel,logger:r.loggerProvider,...null==e?void 0:e.options}});let a=[{track:e=>{n.track(e)}}];await window.engagement.boot({user:()=>{let e=s.getIdentity();return{user_id:n.getUserId(),device_id:n.getDeviceId(),user_properties:e.userProperties,getSessionId:n.getSessionId}},integrations:a}),s.addIdentityListener(e=>{var t,r,i,o;if(!(null!=(t=window.engagement)&&t._.user)||!(null!=(r=window.engagement)&&r._analytics.hasBooted)){console.warn("Engagement SDK not booted. Ignoring identity change.");return}(null==(o=null==(i=window.engagement)?void 0:i._.user)?void 0:o.user_id)!==e.userId?(window.engagement.shutdown(),window.engagement.boot({user:()=>{let e=s.getIdentity();return{user_id:n.getUserId(),device_id:n.getDeviceId(),user_properties:e.userProperties,getSessionId:n.getSessionId}},integrations:a})):window.engagement._setUserProperties(e.userProperties)})},execute:async e=>(window.engagement.forwardEvent(e),e)}}},new Proxy(a,{get:function(e,t){return t in a?a[t]:"then"!==t?"gs"===t||"rc"===t?new Proxy({},{get:function(e,r){return function(){let e=Array.from(arguments),n=`${t}.${r}`;e.unshift(n),a._q.push(e)}}}):uT.includes(t)?function(){let e=Array.prototype.slice.call(arguments);return new Promise((r,n)=>{e.unshift(t,r,n),a._q.push(e),s&&r(void 0)})}:function(){let e=Array.prototype.slice.call(arguments);e.unshift(t),a._q.push(e)}:void 0}})),uP=e=>("u">typeof window&&!window.engagement&&(window.engagement=uR),uR.plugin(e)),uM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,eA.ZT)(t,e),t.prototype.sessionReplay=function(){return this._sessionReplay},t.prototype.experiment=function(){if(void 0!==this.config){var e=this.plugins(uy);if(0===e.length){this.config.loggerProvider.debug("".concat(uy.pluginName," plugin is not found."));return}if(1===e.length)return e[0].experiment;this.config.loggerProvider.debug("Multiple instances of ".concat(uy.pluginName," are found."))}},t.prototype.initAll=function(t,r){return(0,eA.mG)(this,void 0,void 0,function(){var n=this;return(0,eA.Jh)(this,function(i){return this._initAllPromise||(this._initAllPromise=(0,eA.mG)(n,void 0,void 0,function(){var n,i;return(0,eA.Jh)(this,function(o){switch(o.label){case 0:return n={serverZone:null==r?void 0:r.serverZone,instanceName:null==r?void 0:r.instanceName},e.prototype.add.call(this,{type:"enrichment",name:"@amplitude/unified-library-plugin",execute:function(e){var t;return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(r){return e.library="".concat("amplitude-ts-unified","/").concat("1.0.15","-").concat(null!==(t=e.library)&&void 0!==t?t:""),[2,e]})})}}),[4,e.prototype.init.call(this,t,(0,eA.pi)((0,eA.pi)({},null==r?void 0:r.analytics),n)).promise];case 1:return o.sent(),[4,e.prototype.add.call(this,new aO((0,eA.pi)((0,eA.pi)({},null==r?void 0:r.sessionReplay),n))).promise];case 2:return o.sent(),[4,e.prototype.add.call(this,new uy((0,eA.pi)((0,eA.pi)({},null==r?void 0:r.experiment),n))).promise];case 3:return o.sent(),void 0===(i=this.plugin(aO.pluginName))?this.config.loggerProvider.debug("".concat(aO.pluginName," plugin is not found.")):this._sessionReplay=i.sessionReplay,[4,e.prototype.add.call(this,uP((0,eA.pi)((0,eA.pi)({},null==r?void 0:r.engagement),n))).promise];case 4:return o.sent(),[2]}})}).finally(function(){n._initAllPromise=void 0})),[2,this._initAllPromise]})})},t.prototype.init=function(t,r,n){return void 0===t&&(t=""),e.prototype.init.call(this,t,r,n)},t}(oO),uL=function(){var e=new uM;return{_setDiagnosticsSampleRate:tx(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",t_(e),tk(e,["config"])),_enableRequestBodyCompressionExperimental:tx(e._enableRequestBodyCompressionExperimental.bind(e),"_enableRequestBodyCompressionExperimental",t_(e),tk(e,["config"])),experiment:tx(e.experiment.bind(e),"experiment",t_(e),tk(e,["config"])),sessionReplay:tx(e.sessionReplay.bind(e),"sessionReplay",t_(e),tk(e,["config"])),initAll:tx(e.initAll.bind(e),"initAll",t_(e),tk(e,["config"])),init:tx(e.init.bind(e),"init",t_(e),tk(e,["config"])),add:tx(e.add.bind(e),"add",t_(e),tk(e,["config.apiKey","timeline.plugins"])),remove:tx(e.remove.bind(e),"remove",t_(e),tk(e,["config.apiKey","timeline.plugins"])),track:tx(e.track.bind(e),"track",t_(e),tk(e,["config.apiKey","timeline.queue.length"])),logEvent:tx(e.logEvent.bind(e),"logEvent",t_(e),tk(e,["config.apiKey","timeline.queue.length"])),identify:tx(e.identify.bind(e),"identify",t_(e),tk(e,["config.apiKey","timeline.queue.length"])),groupIdentify:tx(e.groupIdentify.bind(e),"groupIdentify",t_(e),tk(e,["config.apiKey","timeline.queue.length"])),setGroup:tx(e.setGroup.bind(e),"setGroup",t_(e),tk(e,["config.apiKey","timeline.queue.length"])),revenue:tx(e.revenue.bind(e),"revenue",t_
25(e),tk(e,["config.apiKey","timeline.queue.length"])),flush:tx(e.flush.bind(e),"flush",t_(e),tk(e,["config.apiKey","timeline.queue.length"])),getUserId:tx(e.getUserId.bind(e),"getUserId",t_(e),tk(e,["config","config.userId"])),setUserId:tx(e.setUserId.bind(e),"setUserId",t_(e),tk(e,["config","config.userId"])),getDeviceId:tx(e.getDeviceId.bind(e),"getDeviceId",t_(e),tk(e,["config","config.deviceId"])),setDeviceId:tx(e.setDeviceId.bind(e),"setDeviceId",t_(e),tk(e,["config","config.deviceId"])),reset:tx(e.reset.bind(e),"reset",t_(e),tk(e,["config","config.userId","config.deviceId"])),getSessionId:tx(e.getSessionId.bind(e),"getSessionId",t_(e),tk(e,["config"])),setSessionId:tx(e.setSessionId.bind(e),"setSessionId",t_(e),tk(e,["config"])),extendSession:tx(e.extendSession.bind(e),"extendSession",t_(e),tk(e,["config"])),setOptOut:tx(e.setOptOut.bind(e),"setOptOut",t_(e),tk(e,["config"])),getOptOut:tx(e.getOptOut.bind(e),"getOptOut",t_(e),tk(e,["config"])),setTransport:tx(e.setTransport.bind(e),"setTransport",t_(e),tk(e,["config"])),getIdentity:tx(e.getIdentity.bind(e),"getIdentity",t_(e),tk(e,["config"])),setIdentity:tx(e.setIdentity.bind(e),"setIdentity",t_(e),tk(e,["config","config.userId","config.deviceId"]))}},uD=uL(),uN=uD._setDiagnosticsSampleRate,uj=uD._enableRequestBodyCompressionExperimental,uF=uD.initAll,uU=uD.experiment,uB=uD.sessionReplay,u$=uD.add,uq=uD.extendSession,uG=uD.flush,uz=uD.getDeviceId,uH=uD.getIdentity,uV=uD.getOptOut,uJ=uD.getSessionId,uZ=uD.getUserId,uW=uD.groupIdentify,uK=uD.identify,uQ=uD.logEvent,uX=uD.remove,uY=uD.reset,u0=uD.revenue,u1=uD.setDeviceId,u2=uD.setGroup,u3=uD.setIdentity,u4=uD.setOptOut,u5=uD.setSessionId,u6=uD.setTransport,u8=uD.setUserId,u7=uD.track;let{environment:u9}=(0,r(80104).h)();function ce(){console.log("INIT AMPLITUDE"),uF(u9.amplitude_id,{analytics:{autocapture:!0},sessionReplay:{sampleRate:1}})}var ct=eS},50752:function(e,t,r){"use strict";r.d(t,{QH:function(){return c()},ZP:function(){return w}});var n=r(62116),i=r.n(n),o=r(4146),s=r.n(o),a=r(9027),l=r.n(a),u=r(70378),c=r.n(u),d=r(68239);function p(e,t,r){return"dark"===r?{main:e[300],dark:e[400],light:e[200],hover:e[900],contrastText:t.palette.common.black}:{main:e[700],dark:e[800],light:e[300],hover:e[50],contrastText:t.palette.common.white}}function f(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return"dark"===t?{color:e[200],colorSecondary:e[300],background:e[950],backgroundTint:e[900],backgroundHover:e[900],border:e[800],borderHover:e[700],borderFocus:e[700]}:{color:e[700],colorSecondary:e[600],background:r?e[50]:e[25],backgroundTint:r?e[100]:e[50],backgroundHover:r?e[100]:e[50],border:r?e[100]:e[50],borderHover:r?e[200]:e[100],borderFocus:r?e[200]:e[100]}}function h(e,t){return{color:t.palette.panel[e].color,"&.MuiChip-filled":{backgroundColor:t.palette.panel[e].background,"& .MuiChip-filled":{backgroundColor:t.palette.panel[e].backgroundTint}},"&.ColorOnHover":{color:t.palette.panel.secondary.color,"&.MuiChip-filled":{backgroundColor:t.palette.panel.secondary.background,"& .MuiChip-filled":{backgroundColor:t.palette.panel.secondary.backgroundTint}}},"& .MuiChip-deleteIcon":{color:t.palette.panel[e].color,opacity:.5,"&:hover":{color:t.palette.panel[e].color,opacity:.75}},"& .MuiTouchRipple-child":{backgroundColor:t.palette.panel[e].background},"&.MuiChip-clickable:hover, &.MuiChip-clickable:focus, &.Mui-focusVisible":{color:t.palette.panel[e].colorSecondary,backgroundColor:t.palette.panel[e].backgroundHover,"&.MuiChip-filled":{color:t.palette.panel[e].colorSecondary,backgroundColor:t.palette.panel[e].backgroundHover,"& .MuiChip-filled":{color:t.palette.panel[e].colorSecondary,backgroundColor:t.palette.panel[e].backgroundHover}}}}}function g(e,t){return{color:t.palette.panel[e].color,backgroundColor:t.palette.panel[e].background}}function m(e,t){return{"&.MuiInputBase-root":{paddingRight:"4px"},"& .MuiOutlinedInput-notchedOutline":{borderColor:t.palette.panel[e].border},"& .MuiIconButton-colorSecondary":{color:t.palette.text.disabled},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:t.palette.panel[e].
25color,opacity:.5},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:t.palette.panel[e].borderHover},"& .MuiIconButton-colorSecondary":{color:t.palette.panel[e].borderHover,"&:hover":{backgroundColor:t.palette.panel[e].background}}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:t.palette.panel[e].borderHover},"& .MuiIconButton-colorSecondary":{color:t.palette.panel[e].borderHover,"&:hover":{backgroundColor:t.palette.panel[e].background}}}}}let v={palette:{common:{black:"#0F1010",white:"#fff"}},shape:{borderRadius:0}},y=e=>({palette:{grey:{50:e[50],100:e[100],200:e[200],300:e[300],400:e[400],500:e[500],600:e[600],700:e[700],800:e[800],900:e[900],950:e[950]}}}),b=(e,t,r)=>{let{primary:n,black:i,complementary:o,analogous:s,triadic:a,triadicAlt:l}=r;return{palette:{mode:t,..."light"===t?{background:{paper:e.palette.common.white,default:e.palette.common.white},primary:{...p(n,e,t)},secondary:{...p(i,e,t)},complementary:{...p(o,e,t)},analogous:{...p(s,e,t)},triadic:{...p(a,e,t)},triadicAlt:{...p(l,e,t)},error:{main:"#E3492D"},warning:{main:"#FFBE26"},info:{main:"#22C6E3"},success:{main:"#0F9660"},action:{active:n[300],hover:n[100],focus:n[100],selected:n[200],hoverLight:n[50],disabled:i[500],disabledBackground:i[100]},text:{primary:i[800],secondary:i[600],disabled:i[500]},divider:i[200]}:{background:{paper:e.palette.common.black,default:e.palette.common.black},primary:{...p(n,e,t)},secondary:{...p(i,e,t)},complementary:{...p(o,e,t)},analogous:{...p(s,e,t)},triadic:{...p(a,e,t)},triadicAlt:{...p(l,e,t)},error:{main:"#E3492D"},warning:{main:"#FFBE26"},info:{main:"#22C6E3"},success:{main:"#0F9660"},action:{active:n[300],hover:n[950],focus:n[950],selected:n[900],hoverLight:n[950],disabled:i[600],disabledBackground:i[950]},text:{primary:e.palette.common.white,secondary:i[400],disabled:i[500]},divider:i[800]}}}};var w=function(e,t){let{primary:r,black:n}=t,o=(0,d.Z)(v);return o=(0,d.Z)(o,y(n)),o=(0,d.Z)(o,b(o,e,t)),o=(0,d.Z)(o,function(e,t,r){let{primary:n,black:i,complementary:o,analogous:s,triadic:a,triadicAlt:l}=r;return{palette:{panel:{..."dark"===t?{dark:{color:i[300],colorSecondary:i[400],background:e.palette.common.black,border:i[600]},primary:{...f(n,t)},secondary:{...f(i,t)},complementary:{...f(o,t)},analogous:{...f(s,t)},triadic:{...f(a,t)},triadicAlt:{...f(l,t)}}:{dark:{color:e.palette.common.white,colorSecondary:i[300],background:e.palette.common.black,border:i[600]},primary:{...f(n,t)},secondary:{...f(i,t,!0)},complementary:{...f(o,t)},analogous:{...f(s,t)},triadic:{...f(a,t)},triadicAlt:{...f(l,t)}}}}}}(o,e,t)),o=(0,d.Z)(o,{typography:{htmlFontSize:16,fontFamily:s().style.fontFamily,body1:{fontFamily:s().style.fontFamily},body2:{fontFamily:s().style.fontFamily},subtitle1:{fontFamily:s().style.fontFamily},subtitle2:{fontFamily:s().style.fontFamily},caption:{fontFamily:s().style.fontFamily},overline:{fontFamily:s().style.fontFamily},h1:{fontFamily:i().style.fontFamily,fontSize:"6rem"},h2:{fontFamily:i().style.fontFamily,fontSize:"3.75rem"},h3:{fontFamily:i().style.fontFamily,fontSize:"3rem"},h4:{fontFamily:i().style.fontFamily,fontSize:"2.125rem"},h5:{fontFamily:i().style.fontFamily,fontSize:"1.5rem"},h6:{fontFamily:i().style.fontFamily,fontSize:"1.25rem",fontWeight:400}},components:{MuiButton:{styleOverrides:{root:{textTransform:"none",fontFamily:l().style.fontFamily,fontWeight:"normal","&.featureButton":{borderRadius:"100px",paddingLeft:"1.5em",paddingRight:"1.5em"}},containedPrimary:{backgroundColor:o.palette.primary.main,color:o.palette.primary.contrastText}}},MuiLoadingButton:{styleOverrides:{root:{"&.Mui-disabled.MuiButton-outlinedPrimary":{color:o.palette.primary.main,borderColor:o.palette.primary.main}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",fontFamily:l().style.fontFamily,fontWeight:"normal"}}},MuiButtonGroup:{styleOverrides:{grouped:{"&:not(:last-of-type)":{borderRight:"1px solid ".concat(o.palette.primary.contrastText)}}}},MuiTab:{styleOverrides:{root:{textTransform:"none",fontFamily:l().style.fontFamily,fontWeight:"normal"}}},MuiPaper:{styleOverrides:{rounded:{backgroundColor:o.palette.background.paper}}},MuiBadge:{styleOverrides:{colorDefault:{...g("primary",o)},colorPrimary:{...g("primary",o)},colorSecondary:{...g("secondary",o)},colorComplementary:{...g("complementary",o)}
25,colorAnalogous:{...g("analogous",o)},colorTriadic:{...g("triadic",o)},colorTriadicAlt:{...g("triadicAlt",o)}}},MuiChip:{styleOverrides:{root:{borderRadius:0,fontWeight:400,"&:active":{boxShadow:"none"}},colorDefault:{...h("primary",o)},colorPrimary:{...h("primary",o)},colorSecondary:{...h("secondary",o)},colorComplementary:{...h("complementary",o)},colorAnalogous:{...h("analogous",o)},colorTriadic:{...h("triadic",o)},colorTriadicAlt:{...h("triadicAlt",o)}}},MuiPopover:{styleOverrides:{paper:{backgroundImage:"none"}}},MuiListItemButton:{styleOverrides:{root:{"&:hover":{backgroundColor:o.palette.action.hover,"&.customSwatch-complementary":{backgroundColor:o.palette.panel.complementary.backgroundTint},"&.customSwatch-analogous":{backgroundColor:o.palette.panel.analogous.backgroundTint},"&.customSwatch-triadic":{backgroundColor:o.palette.panel.triadic.backgroundTint},"&.customSwatch-triadicAlt":{backgroundColor:o.palette.panel.triadicAlt.backgroundTint}},"& .MuiTouchRipple-root .MuiTouchRipple-child":{backgroundColor:o.palette.background.default},"&.MuiListItemButton-dense .MuiCheckbox-root":{paddingTop:"4px",paddingBottom:"4px"}}}},MuiMenu:{styleOverrides:{root:{"& .MuiMenu-paper":{border:"solid 1px",borderColor:o.palette.panel.primary.border},"& .MuiDivider-root":{borderColor:o.palette.panel.primary.border}}}},MuiMenuItem:{styleOverrides:{root:{color:o.palette.text.primary,"& .MuiTouchRipple-root .MuiTouchRipple-child":{backgroundColor:o.palette.background.default},"&:hover":{color:"dark"===e?r[100]:r[950]}}}},MuiAlert:{styleOverrides:{root:{"&.hasButtonAction":{"& .MuiAlert-action":{paddingRight:"8px",display:"flex",flexDirection:"column",justifyContent:"center",alignSelf:"center",height:"100%",minWidth:"180px"},[o.breakpoints.down("md")]:{paddingBottom:"56px",position:"relative","& .MuiAlert-action":{position:"absolute",bottom:"16px",left:"48px",height:"auto",padding:0}}}},standardSuccess:{color:o.palette.panel.primary.color,backgroundColor:o.palette.panel.primary.background,"& .MuiAlert-icon":{color:o.palette.panel.primary.color}}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"dark"===e?"rgba(47,47,47,0.9)":"rgba(97,97,97,0.9)"}}},MuiCheckbox:{styleOverrides:{root:{"&.Mui-disabled":{"&.Force-colorPrimary":{color:o.palette.panel.primary.color,opacity:.38}}}}},MuiAccordion:{styleOverrides:{root:{"&.Mui-disabled":{backgroundColor:o.palette.background.default,"& .MuiAccordionSummary-expandIconWrapper":{display:"none"}}}}},MuiDataGrid:{styleOverrides:{root:{borderColor:o.palette.divider,"&.synthesisSpecial":{"&.noBorder":{border:"none"},"& .MuiDataGrid-row, .MuiDataGrid-topContainer":{backgroundColor:o.palette.background.default,borderBottomWidth:1,borderBottomStyle:"solid",borderColor:o.palette.panel.secondary.border},"& .MuiDataGrid-cell":{borderWidth:0,"&.popover-cell, &.reset-padding":{padding:0},"&.variable-cell":{padding:0,borderRight:1,borderBottom:1,borderBottomStyle:"solid",borderRightStyle:"solid",borderColor:o.palette.panel.secondary.border,backgroundColor:"dark"===e?n[950]:n[25],"&.show-more":{overflow:"visible",backgroundColor:o.palette.panel.secondary.background}},"&.variable-meta-cell":{borderRight:1,borderBottom:1,borderBottomStyle:"solid",borderRightStyle:"solid",borderColor:o.palette.panel.secondary.border,backgroundColor:"dark"===e?n[950]:n[25]}},"& .MuiDataGrid-topContainer":{width:"var(--DataGrid-rowWidth)"},"& .MuiDataGrid-columnHeader":{"&.variable-header":{backgroundColor:"dark"===e?n[950]:n[25],borderRight:1,borderBottom:0,borderRightStyle:"solid",borderColor:o.palette.panel.secondary.border},"& .MuiDataGrid-columnSeparator":{color:"theme.palette.panel.secondary.background",opacity:0},"& .MuiDataGrid-columnSeparator--resizable:hover":{color:o.palette.panel.primary.color,opacity:1},"&.toggle-cell .MuiDataGrid-columnHeaderTitleContainerContent":{flex:1},"&.reset-padding":{padding:0}},"& .MuiDataGrid-row--lastVisible":{borderBottomWidth:0,"& .MuiDataGrid-cell":{borderBottomWidth:0,"&.sticky.sticky-left, &.sticky.sticky-left.sticky-last":{borderBottomWidth:0}}},"&.padBase .MuiDataGrid-virtualScrollerRenderZone":{backgroundColor:o.palette.panel.secondary.background,minHeight:"100%",paddingBottom:"72px",boxSizing:"border-box"}},"&.freeTheSticky":{"& .sticky":{position:"sticky",zIndex:4,backgroundColor:o.palette.background.default,"&:not(.MuiDataGrid-columnHeader)":{borderBottomWidth:1,borderBottomStyle:"solid",borderColor:o.palette.panel.secondary.border},"&.sticky-left":{left:0,"&.pad-for-checkbox":{left:"50px"},"&.sticky-last":{borderRightWidth:1,borderRightStyle:"solid",borderRightColor:o.palette.panel.secondary.border,"&:not(.MuiDataGrid-columnHeader)":{borderBottomWidth:1,borderBottomStyle:"solid",borderColor:o.palette.panel.secondary.border}}}},"& .MuiDataGrid-row":{"&:hover":{cursor:"pointer",backgroundColor:o.palette.panel.primary.background,"& .sticky, & .variable-cell, & .variable-meta-cell":{backgroundColor:o.palette.panel.primary.background,"&.show-more":{backgroundColor:o.palette.panel.secondary.background}}},"&:focus-within, .Mui-selected":{backgroundColor:o.palette.panel.primary.backgroundTint,"& .sticky, & .variable-cell, & .variable-meta-cell":{backgroundColor:o.palette.panel.primary.backgroundTint,"&.show-more":{backgroundColor:o.palette.panel.secondary.background}}}}},"&.striped":{".odd":{backgroundColor:o.palette.panel.secondary.background,"&:hover":{backgroundColor:o.palette.action.hover}}},"&.noVerticalScroll":{"& .MuiDataGrid-virtualScroller":{overflowY:"hidden"}},"& .MuiDataGrid-withBorderColor":{borderColor:o.palette.divider},"&.selectByRowNotCell":{"& .MuiDataGrid-row":{"&:hover":{cursor:"pointer",backgroundColor:o.palette.action.hover},"&:focus-within":{backgroundColor:o.palette.action.focus}},"& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within,& .MuiDataGrid-cell:focus":{outlineColor:"transparent"}},"&.noRowCellSelect":{"& .MuiDataGrid-row":{"&:hover":{backgroundColor:"inherit"},"&:focus-within":{backgroundColor:"inherit"}},"& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within,& .MuiDataGrid-cell:focus, & .MuiDataGrid-cell:focus-within":{outlineColor:"transparent"}},"&.textAlignTop":{"& .MuiDataGrid-cell":{whiteSpace:"normal",display:"flex"}}}}},MuiTable:{styleOverrides:{root:{"& .MuiTableCell-root":{borderColor:o.palette.divider}}}},MuiTypography:{h1:{[o.breakpoints.down("sm")]:{fontSize:"3rem"}},h2:{[o.breakpoints.down("sm")]:{fontSize:"2rem"}},h3:{[o.breakpoints.down("sm")]:{fontSize:"1.75rem"}},h4:{[o.breakpoints.down("sm")]:{fontSize:"1.5rem"}},h5:{[o.breakpoints.down("sm")]:{fontSize:"1.25rem"}},h6:{[o.breakpoints.down("sm")]:{fontSize:"1.05rem"}}},MuiFormControl:{styleOverrides:{root:{"&.disableAutofillHighlight":{"& input
25:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus,":{WebkitBoxShadow:"0 0 0px 1000px ".concat(o.palette.background.default," inset"),transition:"background-color 5000s ease-in-out 0s"}},"&.DarkPaletteBright":{"& .MuiInputBase-root":{color:o.palette.primary.light},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus,":{WebkitTextFillColor:"".concat(o.palette.primary.light,"!important"),color:"".concat(o.palette.primary.light,"!important"),WebkitBoxShadow:"0 0 0px 1000px rgba(0,0,0,0) inset",transition:"background-color 5000s ease-in-out 0s"},"& .MuiFormLabel-root":{color:o.palette.primary.light,opacity:1},"& .MuiOutlinedInput-notchedOutline":{borderColor:"".concat(o.palette.primary.light,"!important")},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"".concat(o.palette.primary.light,"!important")}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"".concat(o.palette.primary.light,"!important")}},"& .MuiInputAdornment-root":{color:o.palette.primary.light},"& ::placeholder":{color:o.palette.panel.primary.colorSecondary,opacity:"1!important"}},"&.DarkPalette":{"& .MuiInputBase-root":{color:o.palette.panel.dark.colorSecondary,outline:"none!important",boxShadow:"none!important"},"& .MuiInputBase-input":{outline:"none!important",boxShadow:"none!important"},"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.panel.dark.border},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.panel.dark.border}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.panel.dark.border}},"& .MuiInputAdornment-root":{color:o.palette.panel.dark.colorSecondary},"& ::placeholder":{color:o.palette.panel.dark.colorSecondary,opacity:"1!important"}}}}},MuiOutlinedInput:{styleOverrides:{colorDefault:{...m("primary",o)},colorPrimary:{...m("primary",o)},colorSecondary:{...m("secondary",o)},colorComplementary:{...m("complementary",o)},colorAnalogous:{...m("analogous",o)},colorTriadic:{...m("triadic",o)},colorTriadicAlt:{...m("triadicAlt",o)},root:{"&.disableAutofillHighlight":{"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus,":{WebkitBoxShadow:"0 0 0px 1000px ".concat(o.palette.background.default," inset"),transition:"background-color 5000s ease-in-out 0s"}}}}}}})}},69736:function(e,t,r){"use strict";r.d(t,{C2:function(){return u},ML:function(){return o},y8:function(){return i},zA:function(){return l}});var n=r(1900);let i=(0,n.jo)({parse:e=>e.split("||").reduce((e,t)=>e.set(t,!0),new Map),serialize:e=>Array.from(e.keys()).sort().join("||")}),o=(0,n.jo)({parse(e){let t=new Map;for(let r of e.split("||")){let e=!0;if(r.includes("::")){let t=r.split("::");r=t[0],e=(e=t[1].slice(1,-1)).split(",")}t.set(r,e)}return t},serialize(e){let t=[];for(let[r,n]of e.entries()){let e=Array.isArray(n)?r+"::["+n.sort().join(",")+"]":r;t.push(e)}return t.sort().join("||")}});function s(e,t){let r=[],n=0,i=0;for(let o=0;o<e.length;o++){let s=e[o];"["===s&&n++,"]"===s&&n--,e.startsWith(t,o)&&0===n&&(r.push(e.slice(i,o)),i=o+t.length,o+=t.length-1)}return r.push(e.slice(i)),r.filter(Boolean)}function a(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[n,...i]=t;if(n){if(e.has(n)||e.set(n,{name:n,children:new Map,selectedBranch:!1}),!i.length){e.get(n).selectedBranch=r;return}a(e.get(n).children,i,r)}}let l=(0,n.jo)({parse(e){let t=new Map;for(let n of s(e,"||"))for(let{category:e,item:i,selectedBranch:o}of function e(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.indexOf("::[");if(-1===n)return s(t,"||").map(e=>({category:r.join(":"),item:e}));let i=t.slice(0,n),o=t.slice(n+3,-1),a=[...r,i];return o?s(o,"||").flatMap(t=>e(t,a)):[{category:r.join(":"),item:i,selectedBranch:a.join(":")}]}(n)){var r;if(o){t.set(o,!0);continue}if(!i)continue;if(!e){t.set(i,!0);continue}let n=null!==(r=t.get(e))&&void 0!==r?r:[];n.includes(i)||n.push(i),t.set(e,n)}return t},serialize(e){let t=new Map;for(let[r,n]of e.entries()){if(!0===n){a(t,r.split(":"),!0);continue}
25Array.isArray(n)&&n.forEach(e=>{a(t,[...r.split(":"),e])})}return function e(t){return t.sort((e,t)=>e.name.localeCompare(t.name)).map(t=>t.selectedBranch?"".concat(t.name,"::[]"):t.children.size?"".concat(t.name,"::[").concat(e(Array.from(t.children.values())),"]"):t.name).join("||")}(Array.from(t.values()))}}),u=(0,n.jo)({parse(e){try{let t="string"==typeof e?JSON.parse(e):e;if(!Array.isArray(t)||!Array.isArray(t[0])||!Array.isArray(t[0][0])||!Array.isArray(t[0][0][0]))throw Error("Invalid coordinates structure");return t}catch(e){console.error("Failed to parse coordinates:",e);return}},serialize(e){try{return JSON.stringify(e)}catch(e){return console.error("Failed to serialize coordinates:",e),""}}});(0,n.jo)({parse(e){try{let t=e.split("||"),r={};for(let e of t){if(!e.includes("::"))continue;let[t,n]=e.split("::"),i=n.trim(),o=JSON.parse(i);if(Array.isArray(o)&&2===o.length&&o.every(e=>"number"==typeof e))r[t]=o;else throw Error("Invalid coordinate format")}if(!r.topLeft||!r.bottomRight)throw Error("Both topLeft and bottomRight must be defined");return r}catch(e){console.error("Failed to parse boundingBox:",e);return}},serialize(e){try{let{topLeft:t,bottomRight:r}=e;if(!Array.isArray(t)||!Array.isArray(r)||2!==t.length||2!==r.length)throw Error("Invalid boundingBox value");return"topLeft::".concat(JSON.stringify(t),"||bottomRight::").concat(JSON.stringify(r))}catch(e){return console.error("Failed to serialize boundingBox:",e),""}}})},89079:function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};function s(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function a(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,i],...o]=a(e),{domain:s,expires:l,httponly:d,maxage:p,path:f,samesite:h,secure:g,priority:m}=Object.fromEntries(o.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}({name:n,value:decodeURIComponent(i),domain:s,...l&&{expires:new Date(l)},...d&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:f,...h&&{sameSite:u.includes(t=(t=h).toLowerCase())?t:void 0},...g&&{secure:!0},...m&&{priority:c.includes(r=(r=m).toLowerCase())?r:void 0}})}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{RequestCookies:()=>d,ResponseCookies:()=>p,parseCookie:()=>a,parseSetCookie:()=>l,stringifyCookie:()=>s}),e.exports=((e,o,s,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let s of n(o))i.call(e,s)||void 0===s||t(e,s,{get:()=>o[s],enumerable:!(a=r(o,s))||a.enumerable});return e})(t({},"__esModule",{value:!0}),o);var u=["strict","lax","none"],c=["low","medium","high"],d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of a(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>s(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>s(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},p=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let i=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(i)?i:function(e){if(!e)return[];var t,r,n,i,o,s=[],a=0;function l(){for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length}for(;a<e.length;){for(t=a,o=!1;l();)if(","===(r=e.charAt(a))){for(n=a,a+=1,l(),i=a;a<e.length&&"="!==(r=e.charAt(a))&&";"!==r&&","!==r;)a+=1;a<e.length&&"="===e.charAt(a)?(o=!0,a=i,s.push(e.substring(t,n)),t=a):a=n+1}else a+=1;(!o||a>=e.length)&&s.push(e.substring(t,e.length))}return s}(i)){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,i=this._parsed;return i.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}
25({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=s(r);t.append("set-cookie",e)}}(i,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(s).join("; ")}}},77512:function(){},9027:function(e){e.exports={style:{fontFamily:"'__HexFranklin_b6f15a', '__HexFranklin_Fallback_b6f15a'"},className:"__className_b6f15a"}},62116:function(e){e.exports={style:{fontFamily:"'__HexFranklinCondensed_92013a', '__HexFranklinCondensed_Fallback_92013a'"},className:"__className_92013a"}},70378:function(e){e.exports={style:{fontFamily:"'__HexFranklinExtraCondensed_654913', '__HexFranklinExtraCondensed_Fallback_654913'",fontWeight:400,fontStyle:"normal"},className:"__className_654913"}},4146:function(e){e.exports={style:{fontFamily:"'__HexFranklinNarrow_ac9889', '__HexFranklinNarrow_Fallback_ac9889'"},className:"__className_ac9889"}},34042:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyHeadersError:function(){return i},HeadersAdapter:function(){return o}});let n=r(47246);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,i){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,i);let o=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==s)return n.ReflectAdapter.get(t,s,i)},set(t,r,i,o){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,i,o);let s=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===s);return n.ReflectAdapter.set(t,a??r,i,o)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0!==o&&n.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0===o||n.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},47246:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},9407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyRequestCookiesError:function(){return o},RequestCookiesAdapter:function(){return s},getModifiedCookieValues:function(){return l},appendMutableCookies:function(){return u},MutableRequestCookiesAdapter:function(){return c}});let n=r(80255),i=r(47246);
25class o extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new o}}class s{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return o.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let a=Symbol.for("next.mutated.cookies");function l(e){let t=e[a];return t&&Array.isArray(t)&&0!==t.length?t:[]}function u(e,t){let r=l(t);if(0===r.length)return!1;let i=new n.ResponseCookies(e),o=i.getAll();for(let e of r)i.set(e);for(let e of o)i.set(e);return!0}class c{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let o=[],s=new Set,l=()=>{var e;let i=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();if(i&&(i.pathWasRevalidated=!0),o=r.getAll().filter(e=>s.has(e.name)),t){let e=[];for(let t of o){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case a:return o;case"delete":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{l()}};case"set":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{l()}};default:return i.ReflectAdapter.get(e,t,r)}}})}}},80255:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies}});let n=r(89079)},14970:function(e,t,r){e.exports=r(90919)},39332:function(e,t,r){e.exports=r(56612)},11163:function(e,t,r){e.exports=r(73035)},4298:function(e,t,r){e.exports=r(45874)},34155:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},69921:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context");/**
26 * @license React
27 * react-is.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var r=Symbol.for("react.forward_ref"),n=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.ForwardRef=r,t.Memo=n},59864:function(e,t,r){"use strict";e.exports=r(69921)},95775:function(e){var t=Object.prototype.hasOwnProperty;function r(e){return"[Throws: "+(e?e.message:"?")+"]"}function n(e){var n=[];return function e(i){if(null===i||"object"!=typeof i)return i;if(-1!==n.indexOf(i))return"[Circular]";if(n.push(i),"function"==typeof i.toJSON)try{var o=e(i.toJSON());return n.pop(),o}catch(e){return r(e)}if(Array.isArray(i)){var s=i.map(e);return n.pop(),s}var a=Object.keys(i).reduce(function(n,o){return n[o]=e(function(e,n){if(t.call(e,n))try{return e[n]}catch(e){return r(e)}return e[n]}(i,o)),n},{});return n.pop(),a}(e)}e.exports=function(e,t,r){return JSON.stringify(n(e),t,r)},e.exports.ensureProperties=n},71739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},49329:function(e,t,r){e.exports=r(60516).Observable},60516:function(e,t){"use strict";t.Observable=void 0;let r=e=>!!Symbol[e],n=e=>r(e)?Symbol[e]:"@@"+e,i=n("iterator"),o=n("observable"),s=n("species");function a(e,t){let r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function l(e){let t=e.constructor;return void 0!==t&&null===(t=t[s])&&(t=void 0),void 0!==t?t:m}function u(e){u.log?u.log(e):setTimeout(()=>{throw e})}function c(e){Promise.resolve().then(()=>{try{e()}catch(e){u(e)}})}function d(e){let t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{let e=a(t,"unsubscribe");e&&e.call(t)}}catch(e){u(e)}}}function p(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function f(e,t,r){e._state="running";let n=e._observer;try{let i=a(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(p(e),i)i.call(n,r);else throw r;break;case"complete":p(e),i&&i.call(n)}}catch(e){u(e)}"closed"===e._state?d(e):"running"===e._state&&(e._state="ready")}function h(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],c(()=>(function(e){let t=e._queue;if(t){e._queue=void 0,e._state="ready";for(let r=0;r<t.length&&(f(e,t[r].type,t[r].value),"closed"!==e._state);++r);}})(e));return}f(e,t,r)}}class g{constructor(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";let r=this,n={get closed(){return"closed"===r._state},next(e){h(r,"next",e)},error(e){h(r,"error",e)},complete(){h(r,"complete")}};try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}get closed(){return"closed"===this._state}
33unsubscribe(){"closed"!==this._state&&(p(this),d(this))}}class m{constructor(e){if(!(this instanceof m))throw TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw TypeError("Observable initializer must be a function");this._subscriber=e}subscribe(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new g(e,this._subscriber)}forEach(e){return new Promise((t,r)=>{if("function"!=typeof e){r(TypeError(e+" is not a function"));return}function n(){i.unsubscribe(),t()}let i=this.subscribe({next(t){try{e(t,n)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t})})}map(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return new(l(this))(t=>this.subscribe({next(r){try{r=e(r)}catch(e){return t.error(e)}t.next(r)},error(e){t.error(e)},complete(){t.complete()}}))}filter(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return new(l(this))(t=>this.subscribe({next(r){try{if(!e(r))return}catch(e){return t.error(e)}t.next(r)},error(e){t.error(e)},complete(){t.complete()}}))}reduce(e){if("function"!=typeof e)throw TypeError(e+" is not a function");let t=l(this),r=arguments.length>1,n=!1,i=arguments[1],o=i;return new t(t=>this.subscribe({next(i){let s=!n;if(n=!0,!s||r)try{o=e(o,i)}catch(e){return t.error(e)}else o=i},error(e){t.error(e)},complete(){if(!n&&!r)return t.error(TypeError("Cannot reduce an empty sequence"));t.next(o),t.complete()}}))}async all(){let e=[];return await this.forEach(t=>e.push(t)),e}concat(...e){let t=l(this);return new t(r=>{let n;let i=0;return function o(s){n=s.subscribe({next(e){r.next(e)},error(e){r.error(e)},complete(){i===e.length?(n=void 0,r.complete()):o(t.from(e[i++]))}})}(this),()=>{n&&(n.unsubscribe(),n=void 0)}})}flatMap(e){if("function"!=typeof e)throw TypeError(e+" is not a function");let t=l(this);return new t(r=>{let n=[],i=this.subscribe({next(i){if(e)try{i=e(i)}catch(e){return r.error(e)}let s=t.from(i).subscribe({next(e){r.next(e)},error(e){r.error(e)},complete(){let e=n.indexOf(s);e>=0&&n.splice(e,1),o()}});n.push(s)},error(e){r.error(e)},complete(){o()}});function o(){i.closed&&0===n.length&&r.complete()}return()=>{n.forEach(e=>e.unsubscribe()),i.unsubscribe()}})}[o](){return this}static from(e){let t="function"==typeof this?this:m;if(null==e)throw TypeError(e+" is not an object");let n=a(e,o);if(n){let r=n.call(e);if(Object(r)!==r)throw TypeError(r+" is not an object");return r instanceof m&&r.constructor===t?r:new t(e=>r.subscribe(e))}if(r("iterator")&&(n=a(e,i)))return new t(t=>{c(()=>{if(!t.closed){for(let r of n.call(e))if(t.next(r),t.closed)return;t.complete()}})});if(Array.isArray(e))return new t(t=>{c(()=>{if(!t.closed){for(let r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}})});throw TypeError(e+" is not observable")}static of(...e){return new("function"==typeof this?this:m)(t=>{c(()=>{if(!t.closed){for(let r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}})})}static get[s](){return this}}t.Observable=m,Object.defineProperty(m,Symbol("extensions"),{value:{symbol:o,hostReportError:u},configurable:!0})},10434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},87462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{Z:function(){return n}})},63366:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}r.d(t,{Z:function(){return n}})},83997:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(71002);function i(e){var t=function(e,t){if("object"!=(0,n.Z)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,n.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.Z)(t)?t:t+""}},71002:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return n}})},60811:function(e,t,r){"use strict";r.d(t,{G:function(){return p}});var n=r(13533),i=r(43927),o=r(77061),s=r(41745);class a{constructor(e,t){let r,n;r=e||new i.s,n=t||new i.s,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,s.J8)(t)?(0,o.X)(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}
33getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){let e=(0,n.cu)(),t=(0,n.qA)(e);return t.stack=t.stack||new a((0,n.YO)("defaultCurrentScope",()=>new i.s),(0,n.YO)("defaultIsolationScope",()=>new i.s))}function u(e){return l().withScope(e)}function c(e,t){let r=l();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}function p(e){let t=(0,n.qA)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:u,withSetScope:c,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},13533:function(e,t,r){"use strict";r.d(t,{YO:function(){return a},cu:function(){return o},qA:function(){return s}});var n=r(39494),i=r(51597);function o(){return s(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.J,t[n.J]=t[n.J]||{}}function a(e,t,r=i.GLOBAL_OBJ){let o=r.__SENTRY__=r.__SENTRY__||{},s=o[n.J]=o[n.J]||{};return s[e]||(s[e]=t())}},73243:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="production"},73076:function(e,t,r){"use strict";let n;r.d(t,{$e:function(){return p},XX:function(){return h},aF:function(){return c},fU:function(){return l},lW:function(){return d},nZ:function(){return u},s3:function(){return f}});var i=r(60811),o=r(13533),s=r(43927),a=r(8151);function l(){return void 0!==n}function u(){let e=(0,o.cu)();return(0,i.G)(e).getCurrentScope()}function c(){let e=(0,o.cu)();return(0,i.G)(e).getIsolationScope()}function d(){return(0,o.YO)("globalScope",()=>new s.s)}function p(...e){let t=(0,o.cu)(),r=(0,i.G)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function f(){return u().getClient()}function h(e){let t=n?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:r,parentSpanId:i,propagationSpanId:o}=e.getPropagationContext(),s={trace_id:r,span_id:o||(0,a.M)()};return i&&(s.parent_span_id=i),s}},94223:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n=!1},11793:function(e,t,r){"use strict";r.d(t,{Mq:function(){return c},Q3:function(){return u},uE:function(){return d}});var n=r(72123),i=r(68967),o=r(52637),s=r(64004),a=r(91819),l=r(81585);function u(e,t,r,n){let i=(0,s.HY)(r),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,o.RA)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,s.Jd)(a,[l])}function c(e,t,r,n){let i=(0,s.HY)(r),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);let a=(0,s.Cd)(e,i,n,t);delete e.sdkProcessingMetadata;let l=[{type:o},e];return(0,s.Jd)(a,[l])}function d(e,t){let r=(0,n.jC)(e[0]),u=t?.getDsn(),c=t?.getOptions().tunnel,d={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!c&&u&&{dsn:(0,o.RA)(u)}},{beforeSendSpan:p,ignoreSpans:f}=t?.getOptions()||{},h=f?.length?e.filter(e=>{let t=(0,l.XU)(e);return!(0,a.l)({description:t.description,op:t.op,attributes:t.data},f)}):e,g=e.length-h.length;g&&t?.recordDroppedEvent("before_send","span",g);let m=p?e=>{let t=(0,l.XU)(e);return((0,i.V)(p)?t:p(t))||((0,l.R6)(),t)}:l.XU,v=[];for(let e of h){let t=m(e);t&&v.push((0,s.KQ)(t))}return(0,s.Jd)(d,v)}},39424:function(e,t,r){"use strict";r.d(t,{Qy:function(){return m},Tb:function(){return c},_k:function(){return g},cg:function(){return w},eN:function(){return p},uT:function(){return d},v:function(){return f},yj:function(){return v},yl:function(){return h}});var n=r(73076),i=r(94223),o=r(10042),s=r(5824),a=r(36360),l=r(46532),u=r(51597);function c(e,t){return(0,n.nZ)().captureException(e,(0,a.U0)(t))}function d(e,t){let r="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,n.nZ)().captureMessage(e,r,i)}function p(e,t){return(0,n.nZ)().captureEvent(e,t)}function f(e,t){(0,n.aF)().setContext(e,t)}async function h(e){let t=(0,n.s3)();return t?t.flush(e):(i.X&&s.fF.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function g(){let e=(0,n.s3)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function m(e){(0,n.aF)().addEventProcessor(e)}function v(e){let t=(0,n.aF)(),{user:r}=(0,l.ZM)(t,(0,n.nZ)()),{userAgent:i}=u.GLOBAL_OBJ.navigator||{},s=(0,o.Hv)({user:r,...i&&{userAgent:i},...e}),a=t.getSession();return a?.status==="ok"&&(0,o.CT)(a,{status:"exited"}),y(),t.setSession(s),s}function y(){let e=(0,n.aF)(),t=(0,n.nZ)().getSession()||e.getSession();t&&(0,o.RJ)(t),b(),e.setSession()}function b(){let e=(0,n.aF)(),t=(0,n.s3)(),r=e.getSession();r&&t&&t.captureSession(r)}function w(e=!1){if(e){y();return}b()}},81981:function(e,t,r){"use strict";let n;function i(e,t=!1){let r={};for(let[n,i]of Object.entries(e??{})){let e=function(e,t){let{value:r,unit:n}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),o=n&&"string"==typeof n?{unit:n}:{};if(i)return{...i,...o};
33if(!t||"skip-undefined"===t&&void 0===r)return;let s="";try{s=JSON.stringify(r)??""}catch{}return{value:s,type:"string",...o}}(i,t);e&&(r[n]=e)}return r}r.d(t,{hQ:function(){return S},lP:function(){return A}});var o=r(13533),s=r(73076),a=r(94223),l=r(5824),u=r(41745),c=r(46532),d=r(89366),p=r(90772);let f=0;var h=r(72123),g=r(81585);let m={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var v=r(52637),y=r(64004);function b(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function w(e,t){let r=_(),n=_().get(e);void 0===n?r.set(e,[t]):n.length>=100?(A(e,n),r.set(e,[t])):r.set(e,[...n,t])}function S(e,t=(0,s.nZ)(),r=w){let o=t?.getClient()??(0,s.s3)();if(!o){a.X&&l.fF.warn("No client available to capture log.");return}let{release:v,environment:y,enableLogs:S=!1,beforeSendLog:A}=o.getOptions();if(!S){a.X&&l.fF.warn("logging option not enabled, log will not be captured.");return}let[,_]=t?(0,s.$e)(t,()=>{let e=(0,g.HN)(),r=e?(0,g.wy)(e):(0,s.XX)(t);return[e?(0,h.jC)(e):(0,h.CG)(o,t),r]}):[void 0,void 0],E={...e.attributes},{user:{id:k,email:x,username:C},attributes:I={}}=(0,c.ZM)((0,s.aF)(),t);b(E,"user.id",k,!1),b(E,"user.email",x,!1),b(E,"user.name",C,!1),b(E,"sentry.release",v),b(E,"sentry.environment",y);let{name:T,version:O}=o.getSdkMetadata()?.sdk??{};b(E,"sentry.sdk.name",T),b(E,"sentry.sdk.version",O);let R=o.getIntegrationByName("Replay"),P=R?.getReplayId(!0);b(E,"sentry.replay_id",P),P&&R?.getRecordingMode()==="buffer"&&b(E,"sentry._internal.replay_is_buffering",!0);let M=e.message;if((0,u.Le)(M)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=M;t?.length&&(E["sentry.message.template"]=e),t.forEach((e,t)=>{E[`sentry.message.parameter.${t}`]=e})}let L=(0,d.Y)(t);b(E,"sentry.trace.parent_span_id",L?.spanContext().spanId);let D={...e,attributes:E};o.emit("beforeCaptureLog",D);let N=A?(0,l.Cf)(()=>A(D)):D;if(!N){o.recordDroppedEvent("before_send","log_item",1),a.X&&l.fF.warn("beforeSendLog returned null, log will not be captured.");return}let{level:j,message:F,attributes:U={},severityNumber:B}=N,$=(0,p.ph)(),q=function(e){let t=Math.floor(1e3*e);void 0!==n&&t!==n&&(f=0);let r=f;return f++,n=t,{key:"sentry.timestamp.sequence",value:{value:r,type:"integer"}}}($);r(o,{timestamp:$,level:j,body:F,trace_id:_?.trace_id,severity_number:B??m[j],attributes:{...i(I),...i(U,!0),[q.key]:q.value}}),o.emit("afterCaptureLog",N)}function A(e,t){let r=t??_().get(e)??[];if(0===r.length)return;let n=e.getOptions(),i=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=(0,v.RA)(n)),(0,y.Jd)(i,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(r,n._metadata,n.tunnel,e.getDsn());_().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function _(){return(0,o.YO)("clientToLogBufferMap",()=>new WeakMap)}},43927:function(e,t,r){"use strict";r.d(t,{s:function(){return h}});var n=r(94223),i=r(10042),o=r(5824),s=r(41745),a=r(3613),l=r(34156),u=r(8151),c=r(38044),d=r(89366),p=r(57360),f=r(90772);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.H)(),sampleRand:(0,c.n0)()}}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,d.D)(e,(0,d.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:i,user:o,contexts:a,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=(t instanceof h?t.getScopeData():(0,s.PO)(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,d.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.H)(),sampleRand:(0,c.n0)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,f.yW)(),...e,message:e.message?(0,p.$G)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,d.Y)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,a.T)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
33captureException(e,t){let r=t?.event_id||(0,l.DM)();if(!this._client)return n.X&&o.fF.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||(0,l.DM)();if(!this._client)return n.X&&o.fF.warn("No client configured on scope - will not capture message!"),i;let s=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...r,event_id:i},this),i}captureEvent(e,t){let r=e.event_id||t?.event_id||(0,l.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):n.X&&o.fF.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},31218:function(e,t,r){"use strict";r.d(t,{$J:function(){return s},Ap:function(){return g},E1:function(){return u},JQ:function(){return f},S3:function(){return a},TE:function(){return i},Wb:function(){return c},Zj:function(){return n},iT:function(){return o},ju:function(){return l},lH:function(){return h},p6:function(){return p},xF:function(){return d}});let n="sentry.source",i="sentry.sample_rate",o="sentry.previous_trace_sample_rate",s="sentry.op",a="sentry.origin",l="sentry.idle_span_finish_reason",u="sentry.measurement_unit",c="sentry.measurement_value",d="sentry.custom_span_name",p="sentry.profile_id",f="sentry.exclusive_time",h="sentry.link.type",g="gen_ai.conversation.id"},10042:function(e,t,r){"use strict";r.d(t,{CT:function(){return s},Hv:function(){return o},RJ:function(){return a}});var n=r(34156),i=r(90772);function o(e){let t=(0,i.ph)(),r={sid:(0,n.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:"number"==typeof r.did||"string"==typeof r.did?`${r.did}`:void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})};return e&&s(r,e),r}function s(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function a(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},72123:function(e,t,r){"use strict";r.d(t,{CG:function(){return g},Lh:function(){return f},jC:function(){return m}});var n=r(73243),i=r(73076),o=r(31218),s=r(15197),a=r(52637),l=r(51072),u=r(93820),c=r(81585),d=r(19923);let p="_frozenDsc";function f(e,t){(0,u.xp)(e,p,t)}function h(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},o={environment:r.environment||n.J,release:r.release,public_key:i,trace_id:e,org_id:(0,a.du)(t)};return t.emit("createDsc",o),o}function g(e,t){let r=t.getPropagationContext();return r.dsc||h(r.traceId,e)}function m(e){let t=(0,i.s3)();if(!t)return{};let r=(0,c.Gx)(e),n=(0,c.XU)(r),a=n.data,u=r.spanContext().traceState,f=u?.get("sentry.sample_rate")??a[o.TE]??a[o.iT];function g(e){return("number"==typeof f||"string"==typeof f)&&(e.sample_rate=`${f}`),e}let m=r[p];if(m)return g(m);let v=u?.get("sentry.dsc"),y=v&&(0,s.EN)(v);if(y)return g(y);let b=h(e.spanContext().traceId,t),w=a[o.Zj]??a["sentry.span.source"],S=n.description;return"url"!==w&&S&&(b.transaction=S),(0,l.f)()&&(b.sampled=String((0,c.Tt)(r)),b.sample_rand=u?.get("sentry.sample_rand")??d.I(r).scope?.getPropagationContext().sampleRand.toString()),g(b),t.emit("createDsc",b,r),b}},71867:function(e,t,r){"use strict";r.d(t,{Z:function(){return s},w:function(){return a}});var n=r(94223),i=r(5824),o=r(81585);function s(e){if(!n.X)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:s}=(0,o.XU)(e),{spanId:a}=e.spanContext(),l=(0,o.Tt)(e),u=(0,o.Gx)(e),c=u===e,d=`[Tracing] Starting ${l?"sampled":"unsampled"} ${c?"root ":""}span`,p=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(s&&p.push(`parent ID: ${s}`),!c){let{op:e,description:t}=(0,o.XU)(u);p.push(`root ID: ${u.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}i.fF.log(`${d}
34  ${p.join("\n  ")}`)}function a(e){if(!n.X)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,o.XU)(e),{spanId:s}=e.spanContext(),a=(0,o.Gx)(e)===e,l=`[Tracing] Finishing "${r}" ${a?"root ":""}span "${t}" with ID ${s}`;i.fF.log(l)}},72441:function(e,t,r){"use strict";r.d(t,{l:function(){return l},o:function(){return a}});var n=r(94223),i=r(31218),o=r(5824),s=r(81585);function a(e,t,r,a=(0,s.HN)()){let l=a&&(0,s.Gx)(a);l&&(n.X&&o.fF.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),l.addEvent(e,{[i.Wb]:t,[i.E1]:r}))}function l(e){if(!e||0===e.length)return;let t={};
34return e.forEach(e=>{let r=e.attributes||{},n=r[i.E1],o=r[i.Wb];"string"==typeof n&&"number"==typeof o&&(t[e.name]={value:o,unit:n})}),t}},58915:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(8151),i=r(81585);class o{constructor(e={}){this._traceId=e.traceId||(0,n.H)(),this._spanId=e.spanId||(0,n.M)(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},7568:function(e,t,r){"use strict";r.d(t,{s:function(){return m}});var n=r(73076),i=r(94223),o=r(11793),s=r(31218),a=r(5824),l=r(8151),u=r(81585),c=r(90772),d=r(72123),p=r(71867),f=r(72441),h=r(98346),g=r(19923);class m{constructor(e={}){this._traceId=e.traceId||(0,l.H)(),this._spanId=e.spanId||(0,l.M)(),this._startTime=e.startTimestamp||(0,c.ph)(),this._links=e.links,this._attributes={},this.setAttributes({[s.S3]:"manual",[s.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?u.i0:u.ve}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,u.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(s.Zj,"custom"),this}end(e){this._endTime||(this._endTime=(0,u.$k)(e),(0,p.w)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[s.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,u._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[s.S3],profile_id:this._attributes[s.p6],exclusive_time:this._attributes[s.JQ],measurements:(0,f.l)(this._events),is_segment:this._isStandaloneSpan&&(0,u.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,u.Gx)(this).spanContext().spanId:void 0,links:(0,u.FF)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,u.Gx)(this),status:(0,u.x_)(this._status),attributes:this._attributes,links:(0,u.vq)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){i.X&&a.fF.log("[Tracing] Adding an event to span:",e);let n=v(t)?t:r||(0,c.ph)(),o=v(t)?{}:t||{},s={name:e,time:(0,u.$k)(n),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,n.s3)();if(e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===(0,u.Gx)(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,n.s3)();if(!t)return;let r=e[1];if(!r||0===r.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}((0,o.uE)([this],e)):(i.X&&a.fF.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}if(e&&(0,h.k)(e)){e.emit("afterSegmentSpanEnd",this);return}let t=this._convertSpanToTransaction();t&&((0,g.I)(this).scope||(0,n.nZ)()).captureEvent(t)}_convertSpanToTransaction(){if(!y((0,u.XU)(this)))return;this._name||(i.X&&a.fF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,g.I)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=(0,u.Dp)(this).filter(e=>e!==this&&!(e instanceof m&&e.isStandaloneSpan())).map(e=>(0,u.XU)(e)).filter(y),o=this._attributes[s.Zj];
34delete this._attributes[s.xF],n.forEach(e=>{delete e.data[s.xF]});let l={contexts:{trace:(0,u.HR)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,d.jC)(this)},request:r,...o&&{transaction_info:{source:o}}},c=(0,f.l)(this._events);return c&&Object.keys(c).length&&(i.X&&a.fF.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function v(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function y(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}},68967:function(e,t,r){"use strict";function n(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}r.d(t,{V:function(){return n}})},98346:function(e,t,r){"use strict";function n(e){return"stream"===e.getOptions().traceLifecycle}r.d(t,{k:function(){return n}})},69737:function(e,t,r){"use strict";r.d(t,{OP:function(){return i},Q0:function(){return s},jt:function(){return o},pq:function(){return n}});let n=0,i=1,o=2;function s(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"}}return{code:o,message:"internal_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}},83268:function(e,t,r){"use strict";r.d(t,{qp:function(){return k},GK:function(){return E},hE:function(){return C},_d:function(){return x}});var n=r(60811),i=r(13533),o=r(73076),s=r(94223),a=r(31218),l=r(5824),u=r(77061),c=r(41745),d=r(51072),p=r(91819),f=r(98346),h=r(79769),g=r(89366),m=r(81585),v=r(72123),y=r(71867),b=r(58915),w=r(7568),S=r(69737),A=r(19923);let _="__SENTRY_SUPPRESS_TRACING__";function E(e,t){let r=O();if(r.startSpan)return r.startSpan(e,t);let n=T(e),{forceTransaction:i,parentSpan:s,scope:a}=e,l=a?.clone();return(0,o.$e)(l,()=>(void 0!==s?e=>x(s,e):e=>e())(()=>{let r=(0,o.nZ)(),a=P(r,s),l=(0,o.s3)(),d=e.onlyIfParent&&!a,p=d?new b.b:I({parentSpan:a,spanArguments:n,forceTransaction:i,scope:r});return d&&l?.recordDroppedEvent("no_parent_span","span"),p instanceof b.b&&"ignored"===p.dropReason&&a||(0,g.D)(r,p),function(e,t,r=()=>{},n=()=>{}){var i;let o;try{o=e()}catch(e){throw t(e),r(),e}return i=o,(0,c.J8)(i)?(0,u.X)(i,e=>{r(),n(e)},e=>{t(e),r()}):(r(),n(i),i)}(()=>t(p),()=>{let{status:e}=(0,m.XU)(p);p.isRecording()&&(!e||"ok"===e)&&p.setStatus({code:S.jt,message:"internal_error"})},()=>{p.end()})}))}function k(e){let t=O();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=T(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,o.$e)(e.scope,t):void 0!==i?e=>x(i,e):e=>e())(()=>{let t=(0,o.nZ)(),s=P(t,i),a=(0,o.s3)();return e.onlyIfParent&&!s?(a?.recordDroppedEvent("no_parent_span","span"),new b.b):I({parentSpan:s,spanArguments:r,forceTransaction:n,scope:t})})}function x(e,t){let r=O();return r.withActiveSpan?r.withActiveSpan(e,t):(0,o.$e)(r=>((0,g.D)(r,e||void 0),t(r)))}function C(e){let t=O();return t.suppressTracing?t.suppressTracing(e):(0,o.$e)(t=>{t.setSDKProcessingMetadata({[_]:!0});let r=e();return t.setSDKProcessingMetadata({[_]:void 0}),r})}function I({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!(0,d.f)()){let n=new b.b;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,v.jC)(n)};(0,v.Lh)(n,e)}return n}let s=(0,o.s3)();if(function(e,t){let r=e?.getOptions().ignoreSpans;return!!(e&&(0,f.k)(e)&&r?.length)&&(0,p.l)({description:t.name||"",op:t.attributes?.[a.$J]||t.op,attributes:t.attributes},r)}(s,t))return M(n)||s?.recordDroppedEvent("ignored","span"),new b.b({dropReason:"ignored",traceId:e?.
34spanContext().traceId??n.getPropagationContext().traceId});let l=(0,o.aF)();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),s=M(t),a=!s&&(0,m.Tt)(e),l=a?new w.s({...r,parentSpanId:n,traceId:i,sampled:a}):new b.b({traceId:i});(0,m.j5)(e,l);let u=(0,o.s3)();return u&&((0,f.k)(u)&&l instanceof b.b&&(e instanceof b.b&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):s||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),r.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,n,t),(0,m.j5)(e,i);else if(e){let r=(0,v.jC)(e),{traceId:o,spanId:s}=e.spanContext(),a=(0,m.Tt)(e);i=R({traceId:o,parentSpanId:s,...t},n,a),(0,v.Lh)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:o,sampled:s}={...l.getPropagationContext(),...n.getPropagationContext()};i=R({traceId:e,parentSpanId:o,...t},n,s),r&&(0,v.Lh)(i,r)}return(0,y.Z)(i),(0,A.Y)(i,n,l),i}function T(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,m.$k)(e.startTime),delete r.startTime,r}return t}function O(){let e=(0,i.cu)();return(0,n.G)(e)}function R(e,t,r){let n=(0,o.s3)(),i=n?.getOptions()||{},{name:u=""}=e,c={spanAttributes:{...e.attributes},spanName:u,parentSampled:r};n?.emit("beforeSampling",c,{decision:!1});let p=c.parentSampled??r,g=c.spanAttributes,m=t.getPropagationContext(),v=M(t),[y,b,S]=v?[!1]:function(e,t,r){let n,i;if(!(0,d.f)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let o=(0,h.o)(n);if(void 0===o)return s.X&&l.fF.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!o)return s.X&&l.fF.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,i];let a=r<o;return!a&&s.X&&l.fF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[a,o,i]}(i,{name:u,parentSampled:p,attributes:g,parentSampleRate:(0,h.o)(m.dsc?.sample_rate)},m.sampleRand),A=new w.s({...e,attributes:{[a.Zj]:"custom",[a.TE]:void 0!==b&&S?b:void 0,...g},sampled:y}
34);return y||!n||v||(s.X&&l.fF.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate",(0,f.k)(n)?"span":"transaction")),n&&n.emit("spanStart",A),A}function P(e,t){if(t)return t;if(null===t)return;let r=(0,g.Y)(e);if(!r)return;let n=(0,o.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,m.Gx)(r):r}function M(e){return!0===e.getScopeData().sdkProcessingMetadata[_]}},19923:function(e,t,r){"use strict";r.d(t,{I:function(){return l},Y:function(){return a}});var n=r(93820),i=r(51597);let o="_sentryScope",s="_sentryIsolationScope";function a(e,t,r){e&&((0,n.xp)(e,s,function(e){try{let t=i.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(r)),(0,n.xp)(e,o,t))}function l(e){return{scope:e[o],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[s])}}},15197:function(e,t,r){"use strict";r.d(t,{EN:function(){return a},IQ:function(){return l},XM:function(){return u},lq:function(){return s}});var n=r(94223),i=r(5824),o=r(41745);let s="sentry-";function a(e){let t=u(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.startsWith(s)&&(e[t.slice(s.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function l(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],o)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===o?s:`${e},${s}`;return a.length>8192?(n.X&&i.fF.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e),{}))}function u(e){return e&&((0,o.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(c(t)).forEach(([t,r])=>{e[t]=r}),e),{}):c(e):void 0}function c(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}},38143:function(e,t,r){"use strict";r.d(t,{Rt:function(){return o},iY:function(){return a},l4:function(){return s}});var n=r(41745);let i=r(51597).GLOBAL_OBJ;function o(e,t={}){if(!e)return"<unknown>";try{let r,o=e,s=[],a=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&a++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let o=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o?.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&(0,n.HD)(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(o,u),"html"!==r&&(!(a>1)||!(l+3*s.length+r.length>=c)));)s.push(r),l+=r.length,o=o.parentNode;return s.reverse().join(" > ")}catch{return"<unknown>"}}function s(){try{return i.document.location.href}catch{return""}}function a(e,t=5){if(!i.HTMLElement)return null;let r=e;for(let e=0;e<t&&r;e++){if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}},77061:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});let n=e=>e instanceof Promise&&!e[i],i=Symbol("chained PromiseLike"),o=(e,t,r)=>{let i=e.then(e=>(t(e),e),e=>{throw r(e),e});return n(i)&&n(e)?i:s(e,i)},s=(e,t)=>{let r=!1;for(let n in e){if(n in t)continue;r=!0;let i=e[n];"function"==typeof i?Object.defineProperty(t,n,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=i}return r&&Object.assign(t,{[i]:!0}),t}},5824:function(e,t,r){"use strict";r.d(t,{Cf:function(){return l},LD:function(){return a},RU:function(){return s},fF:function(){return p}});var n=r(13533),i=r(94223),o=r(51597);let s=["debug","info","warn","error","log","assert","trace"],a={};function l(e){if(!("console"in o.GLOBAL_OBJ))return e();let t=o.GLOBAL_OBJ.console,r={},n=Object.keys(a);
34n.forEach(e=>{let n=a[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function u(){return d().enabled}function c(e,...t){i.X&&u()&&l(()=>{o.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.X?(0,n.YO)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let p={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:u,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},52637:function(e,t,r){"use strict";r.d(t,{RA:function(){return a},U4:function(){return l},du:function(){return c},vK:function(){return d}});var n=r(94223),i=r(5824);let o=/^o(\d+)\./,s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function a(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${s}`}function l(e){let t=s.exec(e);if(!t){(0,i.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,o="",a="",l="",c=""]=t.slice(1),d="",p=c,f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){let e=p.match(/^\d+/);e&&(p=e[0])}return u({host:a,pass:o,path:d,projectId:p,port:l,protocol:r,publicKey:n})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){let t;let r=e.getOptions(),{host:n}=e.getDsn()||{};return r.orgId?t=String(r.orgId):n&&(t=function(e){let t=e.match(o);return t?.[1]}(n)),t}function d(e){let t="string"==typeof e?l(e):u(e);if(t&&function(e){if(!n.X)return!0;let{port:t,projectId:r,protocol:o}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.fF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"===o||"https"===o?!(t&&isNaN(parseInt(t,10)))||(i.fF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.fF.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(i.fF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},64004:function(e,t,r){"use strict";r.d(t,{BO:function(){return l},Cd:function(){return y},HY:function(){return v},Jd:function(){return a},KQ:function(){return f},R:function(){return c},V$:function(){return p},gv:function(){return u},mL:function(){return m},zQ:function(){return h}});var n=r(13533),i=r(52637),o=r(18846),s=r(51597);function a(e,t=[]){return[e,t]}function l(e,t){let[r,n]=e;return[r,[...n,t]]}function u(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function c(e,t){return u(e,(e,r)=>t.includes(r))}function d(e){let t=(0,n.qA)(s.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function p(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[d(n),e]:n.push("string"==typeof e?d(e):e)}for(let e of r){let[t,r]=e;if(i(`
35${JSON.stringify(t)}
36`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,o.Fv)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(n)}function f(e){return[{type:"span"},e]}function h(e){let t="string"==typeof e.data?d(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}let g={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function m(e){return e in g?g[e]:e}function v(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function y(e,t,r,n){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,i.RA)(n)},...o&&{trace:o}}}},51072:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(73076);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||n.s3()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},41745:function(e,t,r){"use strict";r.d(t,{Cy:function(){return v},HD:function(){return u},J8:function(){return m},Kj:function(){return g},Le:function(){return c},PO:function(){return p},TX:function(){return a},V9:function(){return y},VW:function(){return s},VZ:function(){return i},cO:function(){return f},fm:function(){return l},gJ:function(){return w},kK:function(){return h},pt:function(){return d},y1:function(){return b}});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object E
36xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function f(e){return"undefined"!=typeof Event&&y(e,Event)}function h(e){return"undefined"!=typeof Element&&y(e,Element)}function g(e){return o(e,"RegExp")}function m(e){return!!(e?.then&&"function"==typeof e.then)}function v(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e,t){try{return e instanceof t}catch{return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function w(e){return"undefined"!=typeof Request&&y(e,Request)}},3613:function(e,t,r){"use strict";r.d(t,{T:function(){return function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}}})},34156:function(e,t,r){"use strict";let n;r.d(t,{DM:function(){return a},Db:function(){return c},EG:function(){return d},YO:function(){return p},jH:function(){return u},s2:function(){return f}});var i=r(93820),o=r(38044),s=r(51597);function a(e=function(){let e=s.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,o.Ab)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*(0,o.n0)())>>e/4).toString(16))}function l(e){return e.exception?.values?.[0]}function u(e){let{message:t,event_id:r}=e;if(t)return t;let n=l(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function c(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function d(e,t){let r=l(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function p(e){if(f(e))return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch{}return!1}function f(e){try{return e.__sentry_captured__}catch{}}},18846:function(e,t,r){"use strict";r.d(t,{Fv:function(){return l},Qy:function(){return function e(t,r=3,n=102400){let i=l(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}}});var n=r(41745);let i=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");var s=r(93820),a=r(99603);function l(e,t=100,r=Infinity){try{return function e(t,r,l=Infinity,u=Infinity,c=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[d,p]=c;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let f=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.y1)(t))return(0,a.Jh)(t);if((0,n.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,a.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!f.startsWith("[object "))return f;if(r[i])return r;let h=function(e){let t=e[o];return"number"==typeof t?t:void 0}(r),g=void 0!==h?h:l;if(0===g)return f.replace("object ","");if(d(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,g-1,u,c)}catch{}let m=Array.isArray(r)?[]:{},v=0,y=(0,s.Sh)(r);for(let t in y){if(!Object.prototype.hasOwnProperty.call(y,t))continue;if(v>=u){m[t]="[MaxProperties ~]";break}let r=y[t];m[t]=e(t,r,g-1,u,c),v++}return p(r),m}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},93820:function(e,t,r){"use strict";r.d(t,{$Q:function(){return u},HK:function(){return c},Sh:function(){return d},hl:function(){return a},xp:function(){return l},zf:function(){return h}});
36var n=r(94223),i=r(38143),o=r(5824),s=r(41745);function a(e,t,r){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;let s=r(i);"function"==typeof s&&u(s,i);try{e[t]=s}catch{n.X&&o.fF.log(`Failed to replace method "${t}" in object`,e)}}function l(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.X&&o.fF.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function u(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,l(e,"__sentry_original__",t)}catch{}}function c(e){return e.__sentry_original__}function d(e){if((0,s.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if(!(0,s.cO)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,s.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,s.kK)(e)?(0,i.Rt)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function f(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function h(e){let t=Object.keys(d(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},79769:function(e,t,r){"use strict";function n(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}r.d(t,{o:function(){return n}})},36360:function(e,t,r){"use strict";let n,i,o,s;r.d(t,{U0:function(){return w},R:function(){return b}});var a=r(73243),l=r(94223),u=r(5824),c=r(41745),d=r(80157),p=r(43927),f=r(51597),h=r(34156),g=r(18846),m=r(46532),v=r(57360),y=r(90772);function b(e,t,r,b,w,S){let{normalizeDepth:A=3,normalizeMaxBreadth:_=1e3}=e,E={...t,event_id:t.event_id||r.event_id||(0,h.DM)(),timestamp:t.timestamp||(0,y.yW)()},k=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:o}=t;e.environment=e.environment||r||a.J,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let s=e.request;s?.url&&o&&(s.url=(0,v.$G)(s.url,o)),o&&e.exception?.values?.forEach(e=>{e.value&&(e.value=v.$G(e.value,o))})})(E,e),k.length>0&&(E.sdk=E.sdk||{},E.sdk.integrations=[...E.sdk.integrations||[],...k]),w&&w.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=f.GLOBAL_OBJ._sentryDebugIds,r=f.GLOBAL_OBJ._debugIds;if(!t&&!r)return{};let a=t?Object.keys(t):[],l=r?Object.keys(r):[];if(s&&a.length===i&&l.length===o)return s;i=a.length,o=l.length,s={},n||(n={});let u=(t,r)=>{for(let i of t){let t=r[i],o=n?.[i];if(o&&s&&t)s[o[0]]=t,n&&(n[i]=[o[0],t]);else if(t){let r=e(i);for(let e=r.length-1;e>=0;e--){let o=r[e],a=o?.filename;if(a&&s&&n){s[a]=t,n[i]=[a,t];break}}}}};return t&&u(a,t),r&&u(l,r),s}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(E,e.stackParser);let x=function(e,t){if(!t)return e;let r=e?e.clone():new p.s;return r.update(t),r}(b,r.captureContext);r.mechanism&&(0,h.EG)(E,r.mechanism);let C=w?w.getEventProcessors():[],I=(0,m.ZM)(S,x),T=[...r.attachments||[],...I.attachments];T.length&&(r.attachments=T),(0,m.gi)(E,I);let O=[...C,...I.eventProcessors];return(r.data&&!0===r.data.__sentry__?(0,d.WD)(E):function(e,t,r,n=0){try{let i=function e(t,r,n,i){let o=n[i];if(!t||!o)return t;let s=o({...t},r);return(l.X&&null===s&&u.fF.log(`Event processor "${o.id||"?"}" dropped event`),(0,c.J8)(s))?s.then(t=>e(t,r,n,i+1)):e(s,r,n,i+1)}(t,r,e,n);return(0,c.J8)(i)?i:(0,d.WD)(i)}catch(e){return(0,d.$2)(e)}}(O,E,r)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof A&&A>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,g.Fv)(e.data,t,r)}}))},...e.user&&{user:(0,g.Fv)(e.user,t,r)},...e.contexts&&{contexts:(0,g.Fv)(e.contexts,t,r)},...e.extra&&{extra:(0,g.Fv)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,g.Fv)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,g.Fv)(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,g.Fv)(e.contexts.flags,3,r)),n}(e,A,_):e)}function w(e){return e?e instanceof p.s||"function"==typeof e||Object.keys(e).some(e=>S.includes(e))?{captureContext:e}:e:void 0}let S=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},8151:function(e,t,r){"use strict";r.d(t,{H:function(){return i},M:function(){return o}});var n=r(34156);function i(){return(0,n.DM)()}function o(){return(0,n.DM)().substring(16)}},38044:function(e,t,r){"use strict";let n;r.d(t,{Ab:function(){return o},lk:function(){return a},n0:function(){return s}});var i=r(51597);function o(e){if(void 0!==n)return n?n(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=i.GLOBAL_OBJ;return t in r&&"function"==typeof r[t]?(n=r[t])(e):(n=null,e())}function s(){return o(()=>Math.random())}function a(){return o(()=>Date.now())}},46532:function(e,t,r){"use strict";r.d(t,{ZM:function(){return c},gi:function(){return a}});var n=r(73076),i=r(72123),o=r(3613),s=r(81585);function a(e,t){let{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,transactionName:a}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),n&&function(e,t){e.contexts={trace:(0,s.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.jC)(t),...e.sdkProcessingMetadata};let r=(0,s.Gx)(t),n=(0,s.XU)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint.length||delete e.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...a}}function l(e,t){let{extra:r,tags:n,attributes:i,user:s,contexts:a,level:l,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:p,eventProcessors:f,attachments:h,propagationContext:g,transactionName:m,span:v}=t;u(e,"extra",r),u(e,"tags",n),u(e,"attributes",i),u(e,"user",s),u(e,"contexts",a),e.sdkProcessingMetadata=(0,o.T)(e.sdkProcessingMetadata,c,2),l&&(e.level=l),m&&(e.transactionName=m),v&&(e.span=v),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),h.length&&(e.attachments=[...e.attachments,...h]
36),e.propagationContext={...e.propagationContext,...g}}function u(e,t,r){e[t]=(0,o.T)(e[t],r,1)}function c(e,t){let r=(0,n.lW)().getScopeData();return e&&l(r,e.getScopeData()),t&&l(r,t.getScopeData()),r}},91819:function(e,t,r){"use strict";r.d(t,{l:function(){return a},x:function(){return l}});var n=r(94223),i=r(5824),o=r(57360);function s(e){i.fF.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function a(e,t){if(!t?.length)return!1;for(let r of t){if("string"==typeof r||r instanceof RegExp){if(e.description&&(0,o.zC)(e.description,r))return n.X&&s(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&(0,o.zC)(e.description,r.name),a=!r.op||e.op&&(0,o.zC)(e.op,r.op),l=!r.attributes||Object.entries(r.attributes).every(([t,r])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,o.zC)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,r)=>e===t[r]):e===t})(e.attributes?.[t],r));if(i&&a&&l)return n.X&&s(e),!0}return!1}function l(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let t of e)t.parent_span_id===n&&(t.parent_span_id=r)}},89366:function(e,t,r){"use strict";r.d(t,{D:function(){return o},Y:function(){return s}});var n=r(93820);let i="_sentrySpan";function o(e,t){t?(0,n.xp)(e,i,t):delete e[i]}function s(e){return e[i]}},81585:function(e,t,r){"use strict";r.d(t,{$k:function(){return E},Dp:function(){return F},FF:function(){return A},FS:function(){return C},Gx:function(){return U},HN:function(){return $},HR:function(){return y},Hb:function(){return w},R6:function(){return q},Tt:function(){return R},XU:function(){return x},_4:function(){return P},ed:function(){return j},i0:function(){return m},j5:function(){return N},jN:function(){return S},ve:function(){return g},vq:function(){return _},wy:function(){return b},x_:function(){return M}});var n=r(60811),i=r(13533),o=r(73076),s=r(31218),a=r(69737),l=r(19923),u=r(93820),c=r(8151),d=r(90772),p=r(32616),f=r(5824),h=r(89366);let g=0,m=1,v=!1;function y(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:s,origin:a,links:l}=x(e);return{parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:s,origin:a,links:l}}function b(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:x(e).parent_span_id,o=(0,l.I)(e).scope;return{parent_span_id:i,span_id:n?o?.getPropagationContext().propagationSpanId||(0,c.M)():t,trace_id:r}}function w(e){let{traceId:t,spanId:r}=e.spanContext(),n=R(e);return(0,p.$p)(t,r,n)}function S(e){let{traceId:t,spanId:r}=e.spanContext(),n=R(e);return(0,p.i7)(t,r,n)}function A(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===m,attributes:i,...n})):void 0}function _(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:r},attributes:n})=>({span_id:e,trace_id:t,sampled:r===m,attributes:n})):void 0}function E(e){return"number"==typeof e?k(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?k(e.getTime()):(0,d.ph)()}function k(e){return e>9999999999?e/1e3:e}function x(e){if(O(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(T(e)){let{attributes:n,startTime:i,name:o,endTime:a,status:l,links:u}=e;return{span_id:t,trace_id:r,data:n,description:o,parent_span_id:I(e),start_timestamp:E(i),timestamp:E(a)||void 0,status:P(l),op:n[s.$J],origin:n[s.S3],links:A(u)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function C(e){if(O(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(T(e)){let{attributes:n,startTime:i,name:o,endTime:s,status:a,links:l}=e;return{name:o,span_id:t,trace_id:r,parent_span_id:I(e),start_timestamp:E(i),end_timestamp:E(s),is_segment:e===B(e),status:M(a),attributes:n,links:_(l)}}return{span_id:t,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===B(e)}}function I(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function T(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function O(e){return"function"==typeof e.getSpanJSON}function R(e){let{traceFlags:t}=e.spanContext();return t===m}function P(e){return e&&e.code!==a.pq?e.code===a.OP?"ok":e.message||"internal_error":void 0}function M(e){return e&&e.code!==a.OP&&e.code!==a.pq&&"cancelled"!==e.message?"error":"ok"}let L="_sentryChildSpans",D="_sentryRootSpan";function N(e,t){let r=e[D]||e;(0,u.xp)(t,D,r),e[L]?e[L].add(t):(0,u.xp)(e,L,new Set([t]))}function j(e,t){e[L]&&e[L].delete(t)}function F(e){let t=new Set;return function e(r){if(!t.has(r)&&R(r))for(let n of(t.add(r),r[L]?Array.from(r[L]):[]))e(n)}(e),Array.from(t)}let U=B;function B(e){return e[D]||e}function $(){let e=(0,i.cu)(),t=(0,n.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,h.Y)((0,o.nZ)())}function q(){v||((0,f.Cf)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),v=!0)}},99603:function(e,t,r){"use strict";r.d(t,{$P:function(){return c},Fi:function(){return n},Fr:function(){return d},Jh:function(){return p},Sq:function(){return a},pE:function(){return s}});let n="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>
36e[0]-t[0]).map(e=>e[1]);return(e,r=0,s=0)=>{let a=[],u=e.split("\n");for(let e=r;e<u.length;e++){let r=u[e];r.length>1024&&(r=r.slice(0,1024));let n=i.test(r)?r.replace(i,"$1"):r;if(!n.includes("Error: ")){for(let e of t){let t=e(n);if(t){a.push(t);break}}if(a.length>=50+s)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),o.test(l(t).function||"")&&(t.pop(),o.test(l(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||l(t).filename,function:e.function||n}))}(a.slice(s))}}function a(e){return Array.isArray(e)?s(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch{return u}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function p(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}},57360:function(e,t,r){"use strict";r.d(t,{$G:function(){return o},U0:function(){return l},nK:function(){return s},zC:function(){return a}});var n=r(41745),i=r(99603);function o(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let o=e[t];try{(0,n.y1)(o)?r.push((0,i.Jh)(o)):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function a(e,t,r=!1){return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):(0,n.HD)(t)?r?e===t:e.includes(t):"function"==typeof t&&t(e))}function l(e,t=[],r=!1){return t.some(t=>a(e,t,r))}},80157:function(e,t,r){"use strict";r.d(t,{$2:function(){return o},WD:function(){return i}});var n=r(41745);function i(e){return new s(t=>{t(e)})}function o(e){return new s((t,r)=>{r(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,n.J8)(t)){t.then(r,i);return}this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},90772:function(e,t,r){"use strict";let n;r.d(t,{Z1:function(){return u},ph:function(){return a},yW:function(){return s}});var i=r(38044),o=r(51597);function s(){return(0,i.lk)()/1e3}function a(){return(n??(n=function(){let{performance:e}=o.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return s;let t=e.timeOrigin;return()=>(t+(0,i.Ab)(()=>e.now()))/1e3}()))()}let l=null;function u(){return null===l&&(l=function(){let{performance:e}=o.GLOBAL_OBJ;if(!e?.now)return;let t=(0,i.Ab)(()=>e.now()),r=(0,i.lk)(),n=e.timeOrigin;if("number"==typeof n&&3e5>Math.abs(n+t-r))return n;let s=e.timing?.navigationStart;return"number"==typeof s&&3e5>Math.abs(s+t-r)?s:r-t}()),l}},32616:function(e,t,r){"use strict";r.d(t,{$p:function(){return u},Ke:function(){return a},i7:function(){return c},pT:function(){return l}});var n=r(15197),i=r(79769),o=r(8151),s=r(38044);let a=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function l(e,t){let r=function(e){let t;if(!e)return;let r=e.match(a);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),l=(0,n.EN)(t);if(!r?.traceId)return{traceId:(0,o.H)(),sampleRand:(0,s.n0)()};let u=function(e,t){let r=(0,i.o)(t?.sample_rand);if(void 0!==r)return r;let n=(0,i.o)(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?(0,s.n0)()*n:n+(0,s.n0)()*(1-n):(0,s.n0)()}(r,l);l&&(l.sample_rand=u.toString());let{traceId:c,parentSpanId:d,parentSampled:p}=r;return{traceId:c,parentSpanId:d,sampled:p,dsc:l||{},sampleRand:u}}function u(e=(0,o.H)(),t=(0,o.M)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function c(e=(0,o.H)(),t=(0,o.M)(),r){return`00-${e}-${t}-${r?"01":"00"}`}},39494:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="10.51.0"},51597:function(e,t,r){"use strict";r.d(t,{GLOBAL_OBJ:function(){return n}});let n=globalThis},36096:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n=!1},66474:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(7506),i=r(24139),o=new class extends n.l{#h;#g;#m;constructor(){super(),this.#m=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#g||this.setEventListener(this.#m)}onUnsubscribe(){this.hasListeners()||(this.#g?.(),this.#g=void 0)}setEventListener(e){this.#m=e,this.#g?.(),this.#g=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#h!==e&&(this.#h=e,this.onFocus())}onFocus(){let e=this.isFocused();
36this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#h?this.#h:globalThis.document?.visibilityState!=="hidden"}}},27037:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});var n=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0),o=n=>{t?e.push(n):i(()=>{r(n)})},s=()=>{let t=e;e=[],t.length&&i(()=>{n(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||s()}return r},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}()},14304:function(e,t,r){"use strict";r.d(t,{N:function(){return o}});var n=r(7506),i=r(24139),o=new class extends n.l{#v=!0;#g;#m;constructor(){super(),this.#m=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#g||this.setEventListener(this.#m)}onUnsubscribe(){this.hasListeners()||(this.#g?.(),this.#g=void 0)}setEventListener(e){this.#m=e,this.#g?.(),this.#g=e(this.setOnline.bind(this))}setOnline(e){this.#v!==e&&(this.#v=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#v}}},56888:function(e,t,r){"use strict";r.d(t,{A:function(){return a},z:function(){return l}});var n=r(24139),i=r(27037),o=r(72008),s=r(48907),a=class extends s.F{#y;#b;#w;#n;#l;#S;constructor(e){super(),this.#S=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#w=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#y=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#y,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){this.options={...this.#l,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#w.remove(this)}setData(e,t){let r=(0,n.oE)(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(n.ZT).catch(n.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#y)}isActive(){return this.observers.some(e=>!1!==(0,n.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,n.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#w.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#S?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#w.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#S=!0,r.signal)}
36)},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,n.cG)(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return(i(r),this.#S=!1,this.options.persister)?this.options.persister(e,r,this):e(r)}};i(s),this.options.behavior?.onFetch(s,this),this.#b=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta});let a=e=>{(0,o.DV)(e)&&e.silent||this.#i({type:"error",error:e}),(0,o.DV)(e)||(this.#w.config.onError?.(e,this),this.#w.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#n=(0,o.Mz)({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){a(e);return}this.#w.config.onSuccess?.(e,this),this.#w.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:a,onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#n.start()}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if((0,o.DV)(r)&&r.revert&&this.#b)return{...this.#b,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#w.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},48907:function(e,t,r){"use strict";r.d(t,{F:function(){return i}});var n=r(24139),i=class{#A;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.gcTime)&&(this.#A=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.sk?1/0:3e5))}clearGcTimeout(){this.#A&&(clearTimeout(this.#A),this.#A=void 0)}}},72008:function(e,t,r){"use strict";r.d(t,{DV:function(){return c},Kw:function(){return l},Mz:function(){return d}});var n=r(66474),i=r(14304),o=r(13820),s=r(24139);function a(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function d(e){let t,r=!1,c=0,d=!1,p=(0,o.O)(),f=()=>n.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),h=()=>l(e.networkMode)&&e.canRun(),g=r=>{d||(d=!0,e.onSuccess?.(r),t?.(),p.resolve(r))},m=r=>{d||(d=!0,e.onError?.(r),t?.(),p.reject(r))},v=()=>new Promise(r=>{t=e=>{(d||f())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),y=()=>{let t;if(d)return;let n=0===c?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{if(d)return;let n=e.retry??(s.sk?0:3),i=e.retryDelay??a,o="function"==typeof i?i(c,t):i,l=!0===n||"number"==typeof n&&c<n||"function"==typeof n&&n(c,t);if(r||!l){m(t);return}c++,e.onFail?.(c,t),(0,s._v)(o).then(()=>f()?void 0:v()).then(()=>{r?m(t):y()})})};return{promise:p,cancel:t=>{d||(m(new u(t)),e.abort?.())},continue:()=>(t?.(),p),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:h,start:()=>(h()?y():v().then(y),p)}}},7506:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},13820:function(e,t,r){"use strict";function n(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}
36r.d(t,{O:function(){return n}})},24139:function(e,t,r){"use strict";r.d(t,{CN:function(){return E},Ht:function(){return _},KC:function(){return l},Kp:function(){return a},Nc:function(){return u},PN:function(){return s},Q$:function(){return g},Rm:function(){return p},SE:function(){return o},VS:function(){return m},VX:function(){return A},X7:function(){return d},Ym:function(){return f},ZT:function(){return i},_v:function(){return w},_x:function(){return c},cG:function(){return k},oE:function(){return S},sk:function(){return n},to:function(){return h}});var n="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==p(s,t.options))return!1}else if(!h(t.queryKey,s))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(f(t.options.mutationKey)!==f(o))return!1}else if(!h(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function p(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function h(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!h(e[r],t[r]))}function g(e,t){if(e===t)return e;let r=v(e)&&v(t);if(r||y(e)&&y(t)){let n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),s=o.length,a=r?[]:{},l=0;for(let i=0;i<s;i++){let s=r?i:o[i];(!r&&n.includes(s)||r)&&void 0===e[s]&&void 0===t[s]?(a[s]=void 0,l++):(a[s]=g(e[s],t[s]),a[s]===e[s]&&void 0!==e[s]&&l++)}return i===s&&l===i?e:a}return t}function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(b(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return new Promise(t=>{setTimeout(t,e)})}function S(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?g(e,t):t}function A(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function _(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var E=Symbol();function k(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},30202:function(e,t,r){"use strict";r.d(t,{NL:function(){return s},aH:function(){return a}});var n=r(67294),i=r(85893),o=n.createContext(void 0),s=e=>{let t=n.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(o.Provider,{value:e,children:t}))},90512:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}},26269:function(e,t,r){"use strict";var n,i;let o,s;r.d(t,{X3:function(){return h}});let a=(e,t)=>t.some(t=>e instanceof t),l=new WeakMap,u=new WeakMap,c=new WeakMap,d={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return l.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return p(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function p(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(p(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return c.set(t,e),t}(e);if(u.has(e))return u.get(e);let r="function"==typeof(t=e)?(s||(s=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(f(this),e),p(this.request)}:function(...e){return p(t.apply(f(this),e))}:(t instanceof IDBTransaction&&function(e){if(l.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});l.set(e,t)}(t),a(t,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,d):t;return r!==e&&(u.set(e,r),c.set(r,e)),r}let f=e=>c.get(e);function h(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=p(s);return n&&s.addEventListener("upgradeneeded",e=>{n(p(s.result),e.oldVersion,e.newVersion,p(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}let g=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],v=new Map;function y(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(v.get(t))return v.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=m.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||g.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;
36return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return v.set(t,o),o}d={...n=d,get:(e,t,r)=>y(e,t)||n.get(e,t,r),has:(e,t)=>!!y(e,t)||n.has(e,t)};let b=["continue","continuePrimaryKey","advance"],w={},S=new WeakMap,A=new WeakMap,_={get(e,t){if(!b.includes(t))return e[t];let r=w[t];return r||(r=w[t]=function(...e){S.set(this,A.get(this)[t](...e))}),r}};async function*E(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,_);for(A.set(r,t),c.set(r,f(t));t;)yield r,t=await (S.get(r)||t.continue()),S.delete(r)}function k(e,t){return t===Symbol.asyncIterator&&a(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&a(e,[IDBIndex,IDBObjectStore])}d={...i=d,get:(e,t,r)=>k(e,t)?E:i.get(e,t,r),has:(e,t)=>k(e,t)||i.has(e,t)}},1900:function(e,t,r){"use strict";r.d(t,{jo:function(){return a},Qx:function(){return h},S$:function(){return p},AE:function(){return d},Lv:function(){return c},U:function(){return u},Oi:function(){return l},v1:function(){return L},XI:function(){return N}});var n,i=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}let e=localStorage.getItem("debug")??"";return e.includes("nuqs")||e.includes("next-usequerystate")}();function o(e,...t){if(!i)return;let r=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(r),console.log(e,...t)}function s(e,t,r){try{return e(t)}catch(e){return function(e,...t){i&&console.warn(e,...t)}("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,e,r),null}}function a(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),s(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}var l=a({parse:e=>e,serialize:e=>`${e}`}),u=a({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});a({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}});var c=a({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),d=a({parse:e=>"true"===e,serialize:e=>e?"true":"false"});function p(e,t=","){let r=e.eq??((e,t)=>e===t),n=encodeURIComponent(t);return a({parse:r=>""===r?[]:r.split(t).map((r,i)=>s(e.parse,r.replaceAll(n,t),`[${i}]`)).filter(e=>null!=e),serialize:r=>r.map(r=>(e.serialize?e.serialize(r):String(r)).replaceAll(t,n)).join(t),eq:(e,t)=>e===t||e.length===t.length&&e.every((e,n)=>r(e,t[n]))})}function f(e){if(0===e.size)return"";let t=[];for(let[r,n]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E")}`)}return"?"+t.join("&")}function h(e){return function(t,r={}){let[n,i]=g(t)?function(e){if("string"==typeof e){let[t="",r]=e.split("?");return[t,new URLSearchParams(r)]}return e instanceof URLSearchParams?["",new URLSearchParams(e)]:[e.origin+e.pathname,new URLSearchParams(e.searchParams)]}(t):["",new URLSearchParams],o=g(t)?r:t;if(null===o){for(let t in e)i.delete(t);return n+f(i)}for(let t in e){let r=e[t],n=o[t];if(!r||void 0===n)continue;let s=void 0!==r.defaultValue&&(r.eq??((e,t)=>e===t))(n,r.defaultValue);null===n||r.clearOnDefault&&s?i.delete(t):i.set(t,r.serialize(n))}return n+f(i)}}function g(e){return"string"==typeof e||e instanceof URLSearchParams||e instanceof URL}a({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString()}),a({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString()});var m={409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` was about to load on top.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cac
36he. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function v(e){return`[nuqs] ${m[e]}
37  See https://err.47ng.com/NUQS-${e}`}var y=r(39332),b=r(67294),w=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),S=new Map,A={history:"replace",scroll:!1,shallow:!0,throttleMs:w},_=new Set,E=0,k=null;function x(e,t,r,n){let i=null===t?null:r(t);return o("[nuqs queue] Enqueueing %s=%s %O",e,i,n),S.set(e,i),"push"===n.history&&(A.history="push"),n.scroll&&(A.scroll=!0),!1===n.shallow&&(A.shallow=!1),n.startTransition&&(_.add(n.startTransition),A.shallow=!1),A.throttleMs=Math.max(n.throttleMs??w,Number.isFinite(A.throttleMs)?A.throttleMs:0),i}function C(e){return S.get(e)??null}function I(e){return null===k&&(k=new Promise((t,r)=>{if(!Number.isFinite(A.throttleMs)){o("[nuqs queue] Skipping flush due to throttleMs=Infinity"),t(new URLSearchParams(location.search)),setTimeout(()=>{k=null},0);return}function n(){E=performance.now();let[n,i]=function(e){let t=new URLSearchParams(location.search);if(0===S.size)return[t,null];let r=Array.from(S.entries()),n={...A},i=Array.from(_);for(let[e,i]of(S.clear(),_.clear(),A.history="replace",A.scroll=!1,A.shallow=!0,A.throttleMs=w,o("[nuqs queue] Flushing queue %O with options %O",r,n),r))null===i?t.delete(e):t.set(e,i);try{let r=window.next?.router;if("string"==typeof r?.state?.asPath){let e=T(r.state.asPath.split("?")[0]??"",t);o("[nuqs queue (pages)] Updating url: %s",e),("push"===n.history?r.push:r.replace).call(r,e,e,{scroll:n.scroll,shallow:n.shallow})}else{let r=T(location.origin+location.pathname,t);o("[nuqs queue (app)] Updating url: %s",r);let s="push"===n.history?history.pushState:history.replaceState,a=(window.next?.version??"")>="14.1.0"?null:history.state;s.call(history,a,R,r),n.scroll&&window.scrollTo(0,0),n.shallow||function(e,t){let r=n=>{if(n===e.length)return t();let i=e[n];if(!i)throw Error("Invalid transition function");i(()=>r(n+1))};r(0)}(i,()=>{e.replace(r,{scroll:!1})})}return[t,null]}catch(e){return console.error(v(429),r.map(([e])=>e).join(),e),[t,e]}}(e);null===i?t(n):r(n),k=null}setTimeout(function(){let e=performance.now()-E,t=A.throttleMs,r=Math.max(0,Math.min(t,t-e));o("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",r,t),0===r?n():setTimeout(n,r)},0)})),k}function T(e,t){return(e.split("#")[0]??"")+f(t)+location.hash}var O=Symbol("__nuqs__SYNC__"),R="__nuqs__NO_SYNC__",P=Symbol("__nuqs__NOTIFY__"),M={all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(r){r(e,t)})}};function L(e,{history:t="replace",shallow:r=!0,scroll:n=!1,throttleMs:i=w,parse:a=e=>e,serialize:l=String,eq:u=(e,t)=>e===t,defaultValue:c,clearOnDefault:d=!1,startTransition:p}={history:"replace",scroll:!1,shallow:!0,throttleMs:w,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!1,defaultValue:void 0}){let f=(0,y.useRouter)(),h=(0,y.useSearchParams)(),g=b.useRef(null),[m,v]=b.useState(()=>{let t=C(e),r=h?.get(e)??null,n=t??r;return g.current=n,null===n?null:s(a,n,e)}),S=b.useRef(m);o("[nuqs `%s`] render - state: %O, iSP: %s",e,m,h?.get(e)??null),b.useEffect(()=>{if(window.next?.version!=="14.0.3")return;let t=h.get(e)??null;if(t===g.current)return;let r=null===t?null:s(a,t,e);o("[nuqs `%s`] syncFromUseSearchParams %O",e,r),S.current=r,g.current=t,v(r)},[h?.get(e),e]),b.useInsertionEffect(()=>{function t({state:t,query:r}){o("[nuqs `%s`] updateInternalState %O",e,t),S.current=t,g.current=r,v(t)}function r(r){let n=r.get(e);if(n===g.current)return;let i=null===n?null:s(a,n,e);o("[nuqs `%s`] syncFromURL %O",e,i),t({state:i,query:n})}return o("[nuqs `%s`] subscribing to sync",e),M.on(O,r),M.on(e,t),()=>{o("[nuqs `%s`] unsubscribing from sync",e),M.off(O,r),M.off(e,t)}},[e]);let A=b.useCallback((o,s={})=>{let a="function"==typeof o?o(S.current??c??null):o;return(s.clearOnDefault??d)&&null!==a&&void 0!==c&&u(a,c)&&(a=null),g.current=x(e,a,l,{history:s.history??t,shallow:s.shallow??r,scroll:s.scroll??n,throttleMs:s.throttleMs??i,startTransition:s.startTransition??p}),M.emit(e,{state:a,query:g.current}),I(f)},[e,t,r,n,i,p]);return[m??c??null,A]}"object"==typeof history&&function(){let e="1.20.0",t=history.__nuqs_patched;
37if(t){t!==e&&console.error(v(409),t,e);return}for(let t of(o("[nuqs] Patching history with %s",e),["pushState","replaceState"])){let e=history[t].bind(history);history[t]=function(r,n,i){if(!i)return o("[nuqs] history.%s(null) (%s) %O",t,n,r),e(r,n,i);let s=n===R?"internal":"external",a=new URL(i,location.origin).searchParams;if(o("[nuqs] history.%s(%s) (%s) %O",t,i,s,r),"external"===s){for(let[e,t]of a.entries()){let r=C(e);null!==r&&r!==t&&(o("[nuqs] Overwrite detected for key: %s, Server: %s, queue: %s",e,t,r),a.set(e,r))}setTimeout(()=>{o("[nuqs] External history.%s call: triggering sync with %s",t,a),M.emit(O,a),M.emit(P,{search:a,source:s})},0)}else setTimeout(()=>{M.emit(P,{search:a,source:s})},0);return e(r,n===R?"":n,i)}}Object.defineProperty(history,"__nuqs_patched",{value:e,writable:!1,enumerable:!1,configurable:!1})}();var D={};function N(e,{history:t="replace",scroll:r=!1,shallow:n=!0,throttleMs:i=w,clearOnDefault:s=!1,startTransition:a,urlKeys:l=D}={}){let u=Object.keys(e).join(","),c=b.useMemo(()=>Object.fromEntries(Object.keys(e).map(e=>[e,l[e]??e])),[u,l]),d=(0,y.useRouter)(),p=(0,y.useSearchParams)(),f=b.useRef({}),[h,g]=b.useState(()=>{let t=p??new URLSearchParams;return f.current=Object.fromEntries(t.entries()),j(e,l,t)}),m=b.useRef(h);return o("[nuq+ `%s`] render - state: %O, iSP: %s",u,h,p),b.useEffect(()=>{window.next?.version==="14.0.3"&&g(j(e,l,p,f.current,m.current))},[Object.keys(c).map(e=>p?.get(e)).join("&"),u]),b.useInsertionEffect(()=>{function t(e){o("[nuq+ `%s`] updateInternalState %O",u,e),m.current=e,g(e)}function r(r){let n=j(e,l,r,f.current,m.current);o("[nuq+ `%s`] syncFromURL %O",u,n),t(n)}let n=Object.keys(e).reduce((r,n)=>(r[n]=({state:r,query:i})=>{let{defaultValue:s}=e[n],a=c[n];m.current={...m.current,[n]:r??s??null},f.current[a]=i,o("[nuq+ `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",u,a,r,s,m.current),t(m.current)},r),{});for(let t of(M.on(O,r),Object.keys(e))){let e=c[t];o("[nuq+ `%s`] Subscribing to sync for `%s`",u,e),M.on(e,n[t])}return()=>{for(let t of(M.off(O,r),Object.keys(e))){let e=c[t];o("[nuq+ `%s`] Unsubscribing to sync for `%s`",u,e),M.off(e,n[t])}}},[e,c]),[h,b.useCallback((l,p={})=>{let h="function"==typeof l?l(m.current):null===l?Object.fromEntries(Object.keys(e).map(e=>[e,null])):l;for(let[l,d]of(o("[nuq+ `%s`] setState: %O",u,h),Object.entries(h))){let o=e[l],u=c[l];o&&((p.clearOnDefault??o.clearOnDefault??s)&&null!==d&&void 0!==o.defaultValue&&(o.eq??((e,t)=>e===t))(d,o.defaultValue)&&(d=null),f.current[u]=x(u,d,o.serialize??String,{history:p.history??o.history??t,shallow:p.shallow??o.shallow??n,scroll:p.scroll??o.scroll??r,throttleMs:p.throttleMs??o.throttleMs??i,startTransition:p.startTransition??o.startTransition??a}),M.emit(u,{state:d,query:f.current[u]??null}))}return I(d)},[e,t,n,r,i,a,c])]}function j(e,t,r,n,i){return Object.keys(e).reduce((o,a)=>{let l=t?.[a]??a,{defaultValue:u,parse:c}=e[a],d=r?.get(l)??null,p=C(l)??d;if(n&&i&&n[l]===p)return o[a]=i[a]??u??null,o;let f=null===p?null:s(c,p,a);return o[a]=f??u??null,n&&(n[l]=p),o},{})}},97582:function(e,t,r){"use strict";r.d(t,{CR:function(){return c},Jh:function(){return l},XA:function(){return u},ZT:function(){return i},_T:function(){return s},ev:function(){return d},mG:function(){return a},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
37function a(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function d(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(45237),t(6840),t(73035)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.