vendor: 4,395 bytes, line 1
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18702,(e,t,r)=>{!function(e){"use strict";var i="function",n="undefined",o="object",a="string",s="model",u="name",l="type",c="vendor",h="version",f="architecture",d="console",p="mobile",v="tablet",g="smarttv",y="wearable",m="embedded",b="Amazon",w="Apple",x="ASUS",k="BlackBerry",S="Browser",_="Chrome",I="Firefox",C="Google",E="Huawei",A="Microsoft",P="Motorola",O="Opera",T="Samsung",M="Sharp",V="Sony",U="Xiaomi",N="Zebra",F="Facebook",R=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},j=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},L=function(e,t){return typeof e===a&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},D=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,350)},q=function(e,t){for(var r,n,a,s,u,l,c=0;c<t.length&&!u;){var h=t[c],f=t[c+1];for(r=n=0;r<h.length&&!u;)if(u=h[r++].exec(e))for(a=0;a<f.length;a++)l=u[++n],typeof(s=f[a])===o&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||void 0;c+=2}},B=function(e,t){for(var r in t)if(typeof t[r]===o&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(L(t[r][i],e))return"?"===r?void 0:r}else if(L(t[r],e))return"?"===r?void 0:r;return e},z={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"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,h],[/opios[\/ ]+([\w\.]+)/i],[h,[u,O+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[u,O]],[/(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],[u,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[u,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[h,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],h],[/\bfocus\/([\w\.]+)/i],[h,[u,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[u,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[u,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[h,[u,I]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],h],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,F],h],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[u,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,_+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[h,B,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}
vendor: 4,519 bytes, line 1
1]],[/(webkit|khtml)\/([\w\.]+)/i],[u,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[u,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],[u,h],[/(cobalt)\/([\w\.]+)/i],[u,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,K]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,K]]],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],[s,[c,T],[l,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[c,T],[l,p]],[/((ipod|iphone)\d+,\d+)/i],[s,[c,w],[l,p]],[/(ipad\d+,\d+)/i],[s,[c,w],[l,v]],[/\((ip(?:hone|od)[\w ]*);/i],[s,[c,w],[l,p]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[c,w],[l,v]],[/(macintosh);/i],[s,[c,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[c,E],[l,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[c,E],[l,p]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[c,U],[l,p]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[c,U],[l,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[c,"OPPO"],[l,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[c,"Vivo"],[l,p]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[s,[c,"Realme"],[l,p]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[c,P],[l,p]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[c,P],[l,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[c,"LG"],[l,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[c,"LG"],[l,p]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[c,"Lenovo"],[l,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[c,"Nokia"],[l,p]],[/(pixel c)\b/i],[s,[c,C],[l,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[c,C],[l,p]],[/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],[s,[c,V],[l,p]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[c,V],[l,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[c,"OnePlus"],[l,p]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[c,b],[l,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[c,b],[l,p]],[/(playbook);[-\w\),; ]+(rim)/i],[s,c,[l,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[c,k],[l,p]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[c,x],[l,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[c,x],[l,p]],[/(nexus 9)/i],[s,[c,"HTC"],[l,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[s,/_/g," "],[l,p]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[c,"Acer"],[l,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[c,"Meizu"],[l,p]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[c,M],[l,p]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 3,509 bytes, line 1
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,s,[l,p]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,s,[l,v]],[/(surface duo)/i],[s,[c,A],[l,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[c,"Fairphone"],[l,p]],[/(u304aa)/i],[s,[c,"AT&T"],[l,p]],[/\bsie-(\w*)/i],[s,[c,"Siemens"],[l,p]],[/\b(rct\w+) b/i],[s,[c,"RCA"],[l,v]],[/\b(venue[\d ]{2,7}) b/i],[s,[c,"Dell"],[l,v]],[/\b(q(?:mv|ta)\w+) b/i],[s,[c,"Verizon"],[l,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[c,"Barnes & Noble"],[l,v]],[/\b(tm\d{3}\w+) b/i],[s,[c,"NuVision"],[l,v]],[/\b(k88) b/i],[s,[c,"ZTE"],[l,v]],[/\b(nx\d{3}j) b/i],[s,[c,"ZTE"],[l,p]],[/\b(gen\d{3}) b.+49h/i],[s,[c,"Swiss"],[l,p]],[/\b(zur\d{3}) b/i],[s,[c,"Swiss"],[l,v]],[/\b((zeki)?tb.*\b) b/i],[s,[c,"Zeki"],[l,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],s,[l,v]],[/\b(ns-?\w{0,9}) b/i],[s,[c,"Insignia"],[l,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[c,"NextBook"],[l,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],s,[l,p]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],s,[l,p]],[/\b(ph-1) /i],[s,[c,"Essential"],[l,p]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[c,"Envizen"],[l,v]],[/\b(trio[-\w\. ]+) b/i],[s,[c,"MachSpeed"],[l,v]],[/\btu_(1491) b/i],[s,[c,"Rotor"],[l,v]],[/(shield[\w ]+) b/i],[s,[c,"Nvidia"],[l,v]],[/(sprint) (\w+)/i],[c,s,[l,p]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[c,A],[l,p]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[c,N],[l,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[c,N],[l,p]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,s,[l,d]],[/droid.+; (shield) bui/i],[s,[c,"Nvidia"],[l,d]],[/(playstation [345portablevi]+)/i],[s,[c,V],[l,d]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[c,A],[l,d]],[/smart-tv.+(samsung)/i],[c,[l,g]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[c,T],[l,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,"LG"],[l,g]],[/(apple) ?tv/i],[c,[s,w+" TV"],[l,g]],[/crkey/i],[[s,_+"cast"],[c,C],[l,g]],[/droid.+aft(\w)( bui|\))/i],[s,[c,b],[l,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[c,M],[l,g]],[/(bravia[\w ]+)( bui|\))/i],[s,[c,V],[l,g]],[/(mitv-\w{5}) bui/i],[s,[c,U],[l,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[c,D],[s,D],[l,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,g]],[/((pebble))app/i],[c,s,[l,y]],[/droid.+; (glass) \d/i],[s,[c,C],[l,y]],[/droid.+; (wt63?0{2,3})\)/i],[s,[c,N],[l,y]],[/(quest( 2)?)/i],[s,[c,F],[l,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[l,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[s,[l,p]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[l,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,p]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[u,"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],[u,h],[/rv\
1:([\w\.]{1,9})\b.+(gecko)/i],[h,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[h,B,z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[h,B,z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,h],[/\(bb(10);/i],[h,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[u,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[h,[u,_+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"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],[u,h],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,h]]},J=function(t,r){if(typeof t===o&&(r=t,t=void 0),!(this instanceof J))return new J(t,r).getResult();var i=t||(typeof e!==n&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:""),d=r?R(W,r):W;return this.getBrowser=function(){var e,t={};return t[u]=void 0,t[h]=void 0,q.call(t,i,d.browser),t.major=typeof(e=t.version)===a?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={};return e[f]=void 0,q.call(e,i,d.cpu),e},this.getDevice=function(){var e={};return e[c]=void 0,e[s]=void 0,e[l]=void 0,q.call(e,i,d.device),e},this.getEngine=function(){var e={};return e[u]=void 0,e[h]=void 0,q.call(e,i,d.engine),e},this.getOS=function(){var e={};return e[u]=void 0,e[h]=void 0,q.call(e,i,d.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 i},this.setUA=function(e){return i=typeof e===a&&e.length>350?D(e,350):e,this},this.setUA(i),this};J.VERSION="0.7.33",J.BROWSER=j([u,h,"major"]),J.CPU=j([f]),J.DEVICE=j([s,c,l,d,p,g,v,y,m]),J.ENGINE=J.OS=j([u,h]),t.exports&&(r=t.exports=J),r.UAParser=J;var Q=typeof e!==n&&(e.jQuery||e.Zepto);if(Q&&!Q.ua){var X=new J;Q.ua=X.getResult(),Q.ua.get=function(){return X.getUA()},Q.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var r in t)Q.ua[r]=t[r]}}}("object"==typeof window?window:e.e)},32080,e=>{"use strict";let t;e.i(47167);var r,i,n,o,a,s,u=e.i(43476),l=e.i(71645),c=e.i(67034),h=function(e,t){return(h=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 f(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}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return(d=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function p(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})}function v(e,t){var r,i,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){var l=[s,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,i&&(n=2&l[0]?i.return:l[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;switch(i=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],i=0}finally{r=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function m(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var b="is not",w="contains",x="does not contain",k="less",S="less or equal",_="greater",I="greater or equal",C="version less",E="version less or equal",A="version greater",P="version greater or equal",O="set is",T="set is not",M="set contains",V="set does not contain",U="set contains any",N="set does not contain any",F=function(e){for(var t=[],r=0,i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:((64512&n)==55296&&i+1<e.length&&(64512&e.charCodeAt(i+1))==56320?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++i)),t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return Uint8Array.from(t)},R=function(e,t){void 0===t&&(t=0);for(var r=F(e),i=r.length,n=i>>2,o=t,a=0;a<n;a++)o=j(D(r,a<<2),o);var s=n<<2,u=0;switch(i-s){case 3:u^=r[s+2]<<16,u^=r[s+1]<<8,u^=r[s],o^=u=Math.imul(u=K(u=Math.imul(u,-0x3361d2af),15),0x1b873593);break;case 2:u^=r[s+1]<<8,u^=r[s],o^=u=Math.imul(u=K(u=Math.imul(u,-0x3361d2af),15),0x1b873593);break;case 1:u^=r[s],o^=u=Math.imul(u=K(u=Math.imul(u,-0x3361d2af),15),0x1b873593)}return L(o^=i)>>>0},j=function(e,t){var r=e,i=t;return i^=r=Math.imul(r=K(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(i=Math.imul(i=K(i,13),5))+-0x19ab949c|0},L=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},K=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var i=(e&0xffffffff<<r-t>>>0)>>>0>>>r-t>>>0;return(e<<t|i)>>>0},D=function(e,t){return void 0===t&&(t=0),q(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},q=function(e){return(-0x1000000&e)>>>24|(0xff0000&e)>>>8|(65280&e)<<8|(255&e)<<24},B=function(e,t){var r,i;if(t&&0!==t.length){try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}if(null==e)return;return e}},z="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),W=function(){function e(e,t,r,i){void 0===i&&(i=void 0),this.major=e,this.minor=t,this.patch=r,this.preRelease=i}return e.parse=function(t){if(t){var r=new RegExp(z).exec(t);if(r){var i=Number(r[1]),n=Number(r[2]);if(!(isNaN(i)||isNaN(n)))return new e(i,n,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}(),J=function(){function e(){}return e.prototype.evaluate=function(e,t){var r,i,n={},o={context:e,result:n};try{for(var a=g(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=this.evaluateFlag(o,u);l&&(n[u.key]=l)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return n},e.prototype.evaluateWithTraces=function(e,t){var r,i,n={},o={},a={context:e,result:n};try{for(var s=g(t),u=s.next();!u.done;u=s.next()){var l=u.value,c=this.evaluateFlagWithTrace(a,l),h=c.variant,f=c.trace;h&&(n[l.key]=h),o[l.key]=f}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return{results:n,traces:o}},e.prototype.evaluateFlag=function(e,t){try{for(var r,i,n,o=g(t.segments),a=o.next();!a.done;a=o.next()){var s=a.value;if(n=this.evaluateSegment(e,t,s)){var u=d(d(d({},t.metadata),s.metadata),n.metadata);n=d(d({},n),{metadata:u});break}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return n},e.prototype.evaluateFlagWithTrace=function(e,t){var r,i,n,o,a,s,u,l,c,h,f,p=[];try{for(var v=g(t.segments),y=v.next();!y.done;y=v.next()){var m=y.value;if(!m.conditions){var b=this.bucket(e,m),w=void 0!==b;p.push({segmentMetadata:m.metadata,conditionsPassed:!0,bucketed:w,bucketVariant:b,conditionResult:void 0,matched:w}),c||void 0===b||(c=t.variants[b],h=m,f=null==(u=m.metadata)?void 0:u.segmentName);continue}var x=[],k=!1;try{for(var S=(n=void 0,g(m.conditions)),_=S.next();!_.done;_=S.next()){var I=_.value,C=!0,E=[];try{for(var A=(a=void 0,g(I)),P=A.next();!P.done;P=A.next()){var O=P.value,T=B(e,O.selector),M=this.matchCondition(e,O);if(E.push({propValue:T,condition:O,matched:M}),!M){C=!1;break}}}catch(e){a={error:e}}finally{try{P&&!P.done&&(s=A.return)&&s.call(A)}finally{if(a)throw a.error}}if(x.push(E),C){k=!0;break}}}catch(e){n={error:e}}finally{try{_&&!_.done&&(o=S.return)&&o.call(S)}finally{if(n)throw n.error}}var V=!1,U=void 0;k&&(U=this.bucket(e,m),V=void 0!==U),p.push({segmentMetadata:m.metadata,conditionsPassed:k,bucketed:V,bucketVariant:U,conditionResult:x,matched:k&&V}),k&&void 0!==U&&!c&&(c=t.variants[U],h=m,f=null==(l=m.metadata)?void 0:l.segmentName)}}catch(e){r={error:e}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}if(c&&h){var N=d(d(d({},t.metadata),h.metadata),c.metadata);c=d(d({},c),{metadata:N})}var F={flagKey:t.key,matched:void 0!==c,matchedSegment:f,steps:p};return{variant:c,trace:F}},e.prototype.evaluateSegment=function(e,t,r){if(!r.conditions){var i=this.bucket(e,r);return void 0!==i?t.variants[i]:void 0}if(this.evaluateConditions(e,r.conditions)){var i=this.bucket(e,r);if(void 0!==i)return t.variants[i]}},e.prototype.evaluateConditions=function(e,t){var r,i,n,o;try{for(var a=g(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=!0;try{for(var c=(n=void 0,g(u)),h=c.next();!h.done;h=c.next()){var f=h.value;if(!(l=this.matchCondition(e,f)))break}}catch(e){n={error:e}}
1finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}if(l)return!0}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return!1},e.prototype.matchCondition=function(e,t){var r=B(e,t.selector);if(null==r)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var i=this.coerceStringArray(r);return!!i&&this.matchSet(i,t.op,t.values)}var n=this.coerceString(r);return void 0!==n&&this.matchString(n,t.op,t.values)},e.prototype.getHash=function(e){return R(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var r,i,n,o,a=this.coerceString(B(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),u=this.getHash(s),l=u%100,c=Math.floor(u/100);try{for(var h=g(t.bucket.allocations),f=h.next();!f.done;f=h.next()){var d=f.value,p=d.range[0],v=d.range[1];if(l>=p&&l<v)try{for(var y=(n=void 0,g(d.distributions)),m=y.next();!m.done;m=y.next()){var b=m.value,w=b.range[0],x=b.range[1];if(c>=w&&c<x)return b.variant}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return t.variant},e.prototype.matchNull=function(e,t){var r=this.containsNone(t);switch(e){case"is":case w:case k:case S:case _:case I:case C:case E:case A:case P:case O:case M:case U:return r;case b:case x:case V:case N:return!r;default:return!1}},e.prototype.matchSet=function(e,t,r){switch(t){case O:return this.setEquals(e,r);case T:return!this.setEquals(e,r);case M:return this.matchesSetContainsAll(e,r);case V:return!this.matchesSetContainsAll(e,r);case U:return this.matchesSetContainsAny(e,r);case N:return!this.matchesSetContainsAny(e,r);default:return!1}},e.prototype.matchString=function(e,t,r){var i=this;switch(t){case"is":return this.matchesIs(e,r);case b:return!this.matchesIs(e,r);case w:return this.matchesContains(e,r);case x:return!this.matchesContains(e,r);case k:case S:case _:case I:return this.matchesComparable(e,t,r,function(e){return i.parseNumber(e)},this.comparator);case C:case E:case A:case P:return this.matchesComparable(e,t,r,function(e){return W.parse(e)},this.versionComparator);case"regex match":return this.matchesRegex(e,r);case"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,i;try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(e,t,r,i,n){var o=this,a=i(e),s=r.map(function(e){return i(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?r.some(function(r){return o.comparator(e,t,r)}):s.some(function(e){return n(a,t,e)})},e.prototype.comparator=function(e,t,r){switch(t){case k:case C:return e<r;case S:case E:return e<=r;case _:case A:return e>r;case I:case P:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var i=e.compareTo(r);switch(t){case k:case C:return i<0;case S:case E:return i<=0;case _:case A:return i>0;case I:case P:return i>=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))?t:void 0},e.prototype.coerceString=function(e){if(null!=e)return"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)}
1).filter(Boolean)}var i=String(e);try{var n=JSON.parse(i);if(Array.isArray(n)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(i);return o?[o]:void 0}catch(e){var o=this.coerceString(i);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case O:case T:case M:case V:case U:case N:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),i=new Set(t);return r.size===i.size&&m([],y(i),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,i;if(e.length<t.length)return!1;try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var r,i;try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return!1},e}(),Q=function(e,t){var r,i,n=d({},e),o=[],a=t||Object.keys(n);try{for(var s=g(a),u=s.next();!u.done;u=s.next()){var l=u.value,c=X(l,n);c&&o.push.apply(o,m([],y(c),!1))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},X=function(e,t,r){void 0===r&&(r=[]);var i,n,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];r.push(o.key);var a=[],s=function(e){if(r.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(r));var i=X(e,t,r);i&&a.push.apply(a,m([],y(i),!1))};try{for(var u=g(o.dependencies),l=u.next();!l.done;l=u.next()){var c=l.value;s(c)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return a.push(o),r.pop(),delete t[o.key],a}};let $="function"==typeof c.Buffer,Z="function"==typeof TextDecoder?new TextDecoder:void 0,G="function"==typeof TextEncoder?new TextEncoder:void 0,H=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Y=(t={},H.forEach((e,r)=>t[e]=r),t),ee=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,et=String.fromCharCode.bind(String),er="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ei=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),en="function"==typeof btoa?e=>btoa(e):$?e=>c.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,i,n,o="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=H[(t=r<<16|i<<8|n)>>18&63]+H[t>>12&63]+H[t>>6&63]+H[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},eo=$?e=>c.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,i=e.length;r<i;r+=4096)t.push(et.apply(null,e.subarray(r,r+4096)));return en(t.join(""))},ea=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?et(192|t>>>6)+et(128|63&t):et(224|t>>>12&15)+et(128|t>>>6&63)+et(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return et(240|t>>>18&7)+et(128|t>>>12&63)+et(128|t>>>6&63)+et(128|63&t)},es=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,eu=$?e=>c.Buffer.from(e,"utf8").toString("base64"):G?e=>eo(G.encode(e)):e=>en(e.replace(es,ea)),el=(e,t=!1)=>t?ei(eu(e)):eu(e),ec=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,eh=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 et((t>>>10)+55296)+et((1023&t)+56320);case 3:return et((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return et((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ef="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):$?e=>c.Buffer.from(e,"base64").toString("binary"):e=>{let t,r,i;if(e=e.replace(/\s+/g,""),!ee.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let n=[];for(let o=0;o<e.length;)t=Y[e.charAt(o++)]<<18|Y[e.charAt(o++)]<<12|(r=Y[e.charAt(o++)])<<6|(i=Y[e.charAt(o++)]),64===r?n.push(et(t>>16&255)):64===i?n.push(et(t>>16&255,t>>8&255)):n.push(et(t>>16&255,t>>8&255,255&t));return n.join("")},ed=$?e=>er(c.Buffer.from(e,"base64")):e=>er(ef(e).split("").map(e=>e.charCodeAt(0))),ep=$?e=>c.Buffer.from(e,"base64").toString("utf8"):Z?e=>Z.decode(ed(e)):e=>ef(e).replace(ec,eh);var ev=function(e){function t(r,i){var n=e.call(this,i)||this;return n.statusCode=r,Object.setPrototypeOf(n,t.prototype),n}return f(t,e),t}(Error),eg=function(e){function t(r){var i=e.call(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return f(t,e),t}(Error),ey=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return p(this,void 0,void 0,function(){var r,i,n,o;return v(this,function(a){switch(a.label){case 0:return r=el(JSON.stringify(e),!0),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(i["X-Amp-Exp-Flag-Keys"]=el(JSON.stringify(t.flagKeys),!0)),(null==t?void 0:t.trackingOption)&&(i["X-Amp-Exp-Track"]=t.trackingOption),(null==t?void 0:t.exposureTrackingOption)&&(i["X-Amp-Exp-Exposure-Track"]=t.exposureTrackingOption),n=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&n.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&n.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:n.toString(),method:"GET",headers:i,timeoutMillis:null==t?void 0:t.t
1imeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new ev(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),em=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return p(this,void 0,void 0,function(){var t,r;return v(this,function(i){switch(i.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"]=el(JSON.stringify(e.user),!0)),[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=i.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}(),eb="u">typeof globalThis?globalThis:e.g||self,ew=function(){return"u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:e.g},ex=function(){var e=ew();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},ek=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=eb.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(eb.clearInterval(this.poller),this.poller=void 0)},e}(),eS=e.i(4230),e_=e.i(18702);function eI(e){this.amplitudeInstance=e}function eC(e){this.amplitudeInstance=e}eI.prototype.getUser=function(){var e,t,r,i,n,o,a,s,u,l;return{device_id:null==(t=null==(e=this.amplitudeInstance)?void 0:e.options)?void 0:t.deviceId,user_id:null==(i=null==(r=this.amplitudeInstance)?void 0:r.options)?void 0:i.userId,version:null==(o=null==(n=this.amplitudeInstance)?void 0:n.options)?void 0:o.versionName,language:null==(s=null==(a=this.amplitudeInstance)?void 0:a.options)?void 0:s.language,platform:null==(l=null==(u=this.amplitudeInstance)?void 0:u.options)?void 0:l.platform,os:this.getOs(),device_model:this.getDeviceModel()}},eI.prototype.getOs=function(){var e,t,r,i,n,o;return[null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.browser)?void 0:r.name,null==(o=null==(n=null==(i=this.amplitudeInstance)?void 0:i._ua)?void 0:n.browser)?void 0:o.major].filter(function(e){return null!=e}).join(" ")},eI.prototype.getDeviceModel=function(){var e,t,r;return null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.os)?void 0:r.name},eC.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},eC.prototype.setUserProperty=function(e){var t,r;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null==(r=e.variant)?void 0:r.value,t))},eC.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})};var eE=function(){return(eE=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function eA(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})}function eP(e,t){var r,i,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){var l=[s,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,i&&(n=2&l[0]?i.return:l[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;switch(i=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],i=0}finally{r=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function eO(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eT(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function eM(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var eV=function(e,t){void 0===t&&(t=!1);var r,i,n=eF(e,t),o=void 0,a=eb.document.cookie.split("; ");try{for(var s=eO(a),u=s.next();!u.done;u=s.next()){var l=u.value,c=eT(l.split("=",2),2),h=c[0],f=c[1];h===n&&(o=decodeURIComponent(f))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}if(o)try{if(t){var d=atob(o);return JSON.parse(decodeURIComponent(d))}var p=o.split("."),v=void 0;return p.length>=2&&p[1]&&(v=atob(p[1])),{deviceId:p[0],userId:v}}catch(e){return}},eU=function(e){var t=eF(e,!0);try{var r=eb.localStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eN=function(e){var t=eF(e,!0);try{var r=eb.sessionStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eF=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))},eR=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 eA(this,void 0,void 0,function(){return eP(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=eV(this.apiKey,!0);return!!(e||(e=eV(this.apiKey,!1))||(e=eU(this.apiKey))||(e=eN(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 eA(this,void 0,void 0,function(){var t,r=this;return eP(this,function(i){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){eb.setTimeout(r,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})},e}(),ej=eb.fetch||function(e,t){return t=t||{},new Promise(function(r,i){var n=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(JSON.parse(n.responseText))},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in n.open(t.method||"get",e,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,r){o.push(t=t.toLowerCase()),a.push([t,r]),s[t]=s[t]?s[t]+","+r:r}),r(u())},n.onerror=i,n.withCredentials="include"==t.credentials,t.headers)n.setRequestHeader(l,t.headers[l]);n.send(t.body||null)})},eL=function(){function e(e){this.client=e}return e.prototype.request=function(e){return eA(this,void 0,void 0,function(){return eP(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}(),eK={request:function(e,t,r,i,n){var o;return o=eA(void 0,void 0,void 0,function(){var n,o;return eP(this,function(a){switch(a.label){case 0:return[4,ej(e,{method:t,headers:r,body:i})];case 1:return o={status:(n=a.sent()).status},[4,n.text()];case 2:return o.body=a.sent(),[2,o]}})}),null==n||n<=0?o:new Promise(function(e,t){eb.setTimeout(function(){t(new eg("Request timeout after "+n+" milliseconds"))},n),o.then(e,t)})}};(r=o||(o={}))[r.Disable=0]="Disable",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Info=3]="Info",r[r.Debug=4]="Debug",r[r.Verbose=5]="Verbose",(i=a||(a={})).LocalStorage="localStorage",i.InitialVariants="initialVariants",(n=s||(s={})).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 eD=function(e){return!e||e===s.FallbackInline||e===s.FallbackConfig||e===s.SecondaryInitialVariants},eq={debug:!1,logLevel:o.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:a.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:eK},eB="1.21.0",ez=function(){function e(e,t){var r,i=this;this.isReady=new Promise(function(e){i.resolve=e}),this.config=e,this.client=t;var n=null!=(r=e.instanceName)?r:eq.instanceName;this.queue=new eJ(n),this.cache=new eW(n)}return e.prototype.ready=function(){return this.integration?this.isReady:Prom
1ise.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,i,n={eventType:"$exposure",eventProperties:e};return(null==(t=e.metadata)?void 0:t.exposureEvent)?n={eventType:null==(r=e.metadata)?void 0:r.exposureEvent,eventProperties:e}:(null==(i=e.metadata)?void 0:i.deliveryMethod)==="web"&&(n={eventType:"$impression",eventProperties:e}),n},e}(),eW=function(){function e(e){this.isSessionStorageAvailable=eQ(),this.inMemoryCache={},this.identity={},this.storageKey="EXP_sent_v3_".concat(e),this.isSessionStorageAvailable&&(eb.sessionStorage.removeItem("EXP_sent_".concat(e)),eb.sessionStorage.removeItem("EXP_sent_v2_".concat(e)))}return e.prototype.shouldTrack=function(e,t){if((null==(r=e.metadata)?void 0:r.deliveryMethod)==="web")return!0;var r,i,n={userId:null==t?void 0:t.user_id,deviceId:null==t?void 0:t.device_id};this.identityEquals(this.identity,n)||this.clearCache(),this.identity=n,this.loadCache();var o=e.flag_key in this.inMemoryCache,a=this.inMemoryCache[e.flag_key],s=null!=(i=e.variant)?i:null,u=!1;return o&&(null!=a?a:null)===s||(u=!0,this.inMemoryCache[e.flag_key]=s),this.storeCache(),u},e.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&eb.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=eb.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{eb.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch(e){}},e}(),eJ=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=ex(),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=eb.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&&(eb.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=eb.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)),eb.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),eQ=function(){var e=ew();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},eX=function(){function e(e,t){void 0===t&&(t=o.Error),this.logger=e,this.logLevel=t}return e.prototype.error=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.logLevel>=o.Error&&(t=this.logger).error.apply(t,eM([e],eT(r),!1))},e.prototype.warn=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.logLevel>=o.Warn&&(t=this.logger).warn.apply(t,eM([e],eT(r),!1))},e.prototype.info=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.logLevel>=o.Info&&(t=this.logger).info.apply(t,eM([e],eT(r),!1))},e.prototype.debug=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.logLevel>=o.Debug&&(t=this.logger).debug.apply(t,eM([e],eT(r),!1))},e.prototype.verbose=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.logLevel>=o.Verbose&&(t=this.logger).verbose.apply(t,eM([e],eT(r),!1))},e}(),e$=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,eM([e],eT(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,eM([e],eT(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,eM([e],eT(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,eM([e],eT(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,eM([e],eT(t),!1))},e}(),eZ=function(){function e(){this.globalScope=ew()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.localStorage.removeItem(e)},e}(),eG=function(e,t,r){var i=e.substring(e.length-6);return new e1("amp-exp-".concat(t,"-").concat(i),r,e2)},eH=function(e,t,r){void 0===r&&(r=new eZ);var i=e.substring(e.length-6);return new e1("amp-exp-".concat(t,"-").concat(i,"-flags"),r)},eY=function(e,t,r){void 0===r&&(r=new eZ);var i=e.substring(e.length-6);return new e0("amp-exp-".concat(t,"-").concat(i,"-variants-options"),r)},e0=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}(),e1=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 eE({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var i=eO(Object.keys(e)),n=i.next();!n.done;n=i.next()){var o=n.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}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,i=this.storage.get(this.namespace);try{r=JSON.parse(i)||{}}catch(e){return}var n={};try{for(var o=eO(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var u=void 0;(u=this.transformer?this.transformer(r[s]):r[s])&&(n[s]=u)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(n)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),e2=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,i=e.payload,n=e.metadata,o=e.expKey;n&&n.experimentKey?o=n.experimentKey:o&&((n=n||{}).experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),n&&(a.metadata=n),i&&(a.payload=i),o&&(a.expKey=o),a}},e3=function(){function e(){this.globalScope=ew()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.sessionStorage.removeItem(e)},e}(),e6=function(e,t,r,i){var n,o=null==r?void 0:r.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:o,source:i},userProperties:((n={})[a]=o,n)}},e4=function(e){return null==e},e5=function(e){return!!e4(e)||e&&0===Object.keys(e).length},e8=function(e){if(!e||"object"!=typeof e)return{};var t,r,i={};try{for(var n=eO(Object.entries(e)),o=n.next();!o.done;o=n.next()){var a=eT(o.value,2),s=a[0],u=a[1];e4(u)||(i[s]=u)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return i},e7=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"}
1,e9=function(){function e(e,t,r,i){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=i}return e.prototype.start=function(e){return eA(this,void 0,void 0,function(){return eP(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 eA(this,void 0,void 0,function(){var i=this;return eP(this,function(n){return this.done||(this.timeoutHandle=eb.setTimeout(function(){return eA(i,void 0,void 0,function(){var i,n;return eP(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(),(i=t+1)<this.attempts&&(n=Math.min(r*this.scalar,this.max),this.backoff(e,i,n)),[3,3];case 3:return[2]}})})},r)),[2]})})},e}(),te=function(e){if(!e)return{};var t,r,i,n,o={user:e},a=ew();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var u=eO(Object.keys(e.groups)),l=u.next();!l.done;l=u.next()){var c=l.value,h=e.groups[c];if(h.length>0&&h[0]){var f=h[0],d={group_name:f},p=null==(n=null==(i=e.group_properties)?void 0:i[c])?void 0:n[f];p&&Object.keys(p).length>0&&(d.group_properties=p),s[c]=d}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},tt=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},tr=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},ti=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}(),tn=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 i=e.flag_key in this.tracked,n=this.tracked[e.flag_key];i&&n===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}(),to=function(){function e(t,r){var i,n,o,a,s,u=this;this.engine=new J,this.isRunning=!1,this.apiKey=t,r=e8(r),this.config=eE(eE(eE({},eq),r),{serverUrl:(null==r?void 0:r.serverUrl)||((null==(i=null==r?void 0:r.serverZone)?void 0:i.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":eq.serverUrl),flagsServerUrl:(null==r?void 0:r.flagsServerUrl)||((null==(n=null==r?void 0:r.serverZone)?void 0:n.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":eq.flagsServerUrl),flagConfigPollingIntervalMillis:r.flagConfigPollingIntervalMillis<6e4?6e4:null!=(o=r.flagConfigPollingIntervalMillis)?o:eq.flagConfigPollingIntervalMillis}),this.logger=new eX(this.config.loggerProvider||new e$,e.getLogLevel(r));var l=null==(a=this.config)?void 0:a.internalInstanceNameSuffix;if(this.isWebExperiment="web"===l,this.poller=new ek(function(){return eA(u,void 0,void 0,function(){var e;return eP(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]=e2(this.config.initialVariants[c]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new ti(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new tn(this.config.exposureTrackingProvider)),this.integrationManager=new ez(this.config,this);var h=new eL(this.config.httpClient||eK);this.flagApi=new em(this.apiKey,this.config.flagsServerUrl,h),this.evaluationApi=new ey(this.apiKey,this.config.serverUrl,h);var f=l?"".concat(this.config.instanceName,"-").concat(l):this.config.instanceName;s=this.isWebExperiment?new e3:new eZ,this.variants=eG(this.apiKey,f,s),this.flags=eH(this.apiKey,f,s),this.fetchVariantsOptions=eY(this.apiKey,f,s);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){return eA(this,void 0,void 0,function(){var t,r,i;return eP(this,function(n){switch(n.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(e),n.label=1;case 1:if(n.trys.push([1,6,,7]),t=this.doFlags(),!(null==(i=this.config.fetchOnStart)||i))return[3,3];return[4,Promise.all([this.fetch(e),t])];case 2:return n.sent(),[3,5];case 3:return[4,t];case 4:n.sent(),n.label=5;case 5:return[3,7];case 6:if(r=n.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 eA(this,arguments,void 0,function(e,t){var r;return void 0===e&&(e=this.user),eP(this,function(i){switch(i.label){case 0:this.setUser(e||{}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return i.sent(),[3,4];case 3:if(r=i.sent(),this.config.throwOnError)throw r;return r instanceof eg?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,i,n=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,n),this.logger.debug("[Experiment] variant for ".concat(e," is ").concat((null==(r=n.variant)?void 0:r.key)||(null==(i=n.variant)?void 0:i.value))),n.variant||{}}
1,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)e7(this.flags.get(t))||delete e[t];return eE(eE(eE({},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)||!e.user_properties)return eE({},this.user);var e,t=eE({},this.user.user_properties);return eE(eE({},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.user_properties){var r=eE({},e.user_properties);this.user=eE(eE({},e),{user_properties:r})}else this.user=eE({},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,i=this.addContext(this.user),n=Q(this.flags.getAll(),e),o=te(i),a=this.engine.evaluate(o,n),s={};try{for(var u=eO(Object.keys(a)),l=u.next();!l.done;l=u.next()){var c=l.value;s[c]=tr(a[c])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return s},e.prototype.getEvaluationTraces=function(e){var t=this.addContext(this.user),r=Q(this.flags.getAll(),e),i=te(t);return this.engine.evaluateWithTraces(i,r).traces},e.prototype.variantAndSource=function(e,t){var r={};this.config.source===a.LocalStorage?r=this.localStorageVariantAndSource(e,t):this.config.source===a.InitialVariants&&(r=this.initialVariantsVariantAndSource(e,t));var i=this.flags.get(e);return(e7(i)||!r.variant&&i)&&(r=this.localEvaluationVariantAndSource(e,i,t)),r},e.prototype.localEvaluationVariantAndSource=function(e,t,r){var i,n={},o=this.evaluate([t.key])[e],a=s.LocalEvaluation,u=null==(i=null==o?void 0:o.metadata)?void 0:i.default;if(!e4(o)&&!u)return{variant:tt(o),source:a,hasDefaultVariant:!1};if(u&&(n={variant:tt(o),source:a,hasDefaultVariant:!0}),!e4(r))return{variant:tt(r),source:s.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var l=this.config.initialVariants[e];if(!e4(l))return{variant:tt(l),source:s.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var c=tt(this.config.fallbackVariant),h={variant:c,source:s.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return e5(c)?n:h},e.prototype.localStorageVariantAndSource=function(e,t){var r,i={},n=this.variants.get(e),o=null==(r=null==n?void 0:n.metadata)?void 0:r.default;if(!e4(n)&&!o)return{variant:tt(n),source:s.LocalStorage,hasDefaultVariant:!1};if(o&&(i={variant:tt(n),source:s.LocalStorage,hasDefaultVariant:!0}),!e4(t))return{variant:tt(t),source:s.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var a=this.config.initialVariants[e];if(!e4(a))return{variant:tt(a),source:s.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=tt(this.config.fallbackVariant),l={variant:u,source:s.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return e5(u)?i:l},e.prototype.initialVariantsVariantAndSource=function(e,t){var r,i={},n=this.config.initialVariants[e];if(!e4(n))return{variant:tt(n),source:s.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),a=null==(r=null==o?void 0:o.metadata)?void 0:r.default;if(!e4(o)&&!a)return{variant:tt(o),source:s.LocalStorage,hasDefaultVariant:!1};if(a&&(i={variant:tt(o),source:s.LocalStorage,hasDefaultVariant:!0}),!e4(t))return{variant:tt(t),source:s.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var u=tt(this.config.fallbackVariant),l={variant:u,source:s.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return e5(u)?i:l},e.prototype.fetchInternal=function(e,t,r,i){return eA(this,void 0,void 0,function(){var n,o,a;return eP(this,function(s){switch(s.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(),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,this.doFetch(e,t,eE({trackingOption:null==(a=this.fetchVariantsOptions.get())?void 0:a.trackingOption},i))];case 2:return n=s.sent(),[4,this.storeVariants(n,i)];case 3:return s.sent(),[2,n];case 4:throw o=s.sent(),r&&this.shouldRetryFetch(o)&&this.startRetries(e,i),o;case 5:return[2]}})})},e.prototype.setTracksAssignment=function(e){return eA(this,void 0,void 0,function(){return eP(this,function(t){return this.fetchVariantsOptions.put(eE(eE({},this.fetchVariantsOptions.get()||{}),{trackingOption:e?"track":"no-track"}
1)),this.fetchVariantsOptions.store(),[2]})})},e.prototype.cleanUserPropsForFetch=function(e){var t=eE({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,r){return eA(this,void 0,void 0,function(){var i,n,o,a,s,u,l;return eP(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,eE({timeoutMillis:t},r))];case 2:i=c.sent(),n={};try{for(a=(o=eO(Object.keys(i))).next();!a.done;a=o.next())n[s=a.value]=tr(i[s])}catch(e){u={error:e}}finally{try{a&&!a.done&&(l=o.return)&&l.call(o)}finally{if(u)throw u.error}}return this.logger.debug("[Experiment] Received variants: ",n),[2,n]}})})},e.prototype.doFlags=function(){return eA(this,void 0,void 0,function(){var e,t,r;return eP(this,function(i){switch(i.label){case 0:if(i.trys.push([0,4,,5]),e=void 0,!this.isWebExperiment)return[3,2];return[4,this.addContextOrWait(this.getUser())];case 1:e=i.sent(),i.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:eB,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=i.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if((r=i.sent())instanceof eg){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 eA(this,void 0,void 0,function(){var r,i,n,o;return eP(this,function(a){for(o in 0===(r=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),i=function(t){r=r.filter(function(e){return e!==t}),n.variants.put(t,e[t])},n=this,e)i(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 eA(this,void 0,void 0,function(){var r=this;return eP(this,function(i){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new e9(8,500,1e4,1.5),this.retriesBackoff.start(function(){return eA(r,void 0,void 0,function(){return eP(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.getUser(),i=this.integrationManager.getUser(),n=eE(eE(eE({},null==r?void 0:r.user_properties),i.user_properties),null==e?void 0:e.user_properties);return eE(eE(eE(eE({library:"experiment-js-client/".concat(eB)},r),i),e),{user_properties:n})},e.prototype.addContextOrWait=function(e){return eA(this,void 0,void 0,function(){return eP(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==a.LocalStorage?this.variants.getAll():this.config.source==a.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==a.LocalStorage?this.config.initialVariants:this.config.source==a.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null==(n=null==(i=null==(r=t.variant)?void 0:r.metadata)?void 0:i.trackExposure)||n){this.legacyExposureInternal(e,t.variant,t.source);var r,i,n,o,a,s,u,l,c,h={flag_key:e},f=eD(t.source);if(!f||t.hasDefaultVariant){(null==(o=t.variant)?void 0:o.expKey)&&(h.experiment_key=null==(a=t.variant)?void 0:a.expKey);var d=null==(s=t.variant)?void 0:s.metadata;if(f||(null==d?void 0:d.default)||((null==(u=t.variant)?void 0:u.key)?h.variant=t.variant.key:(null==(l=t.variant)?void 0:l.value)&&(h.variant=t.variant.value)),d&&(h.metadata=d),this.isWebExperiment&&(h.time=Date.now()),this.isWebExperiment){var p=ew();if(null==p?void 0:p.location)try{var v=p.location.href;h.metadata.url=v.split("?")[0]||""}catch(e){}}var g=this.addContext(this.getUser());null==(c=this.userSessionExposureTracker)||c.track(h,g),this.integrationManager.track(h,g)}}},e.prototype.legacyExposureInternal=function(e,t,r){var i,n,o,a,s;if(this.analyticsProvider){var u=e6(this.addContext(this.getUser()),e,t,r);!eD(r)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null==(a=null==(o=this.analyticsProvider)?void 0:o.setUserProperty)||a.call(o,u),null==(s=this.analyticsProvider)||s.track(u)):null==(n=null==(i=this.analyticsProvider)?void 0:i.unsetUserProperty)||n.call(i,u)}},e.getLogLevel=function(e){var t;return!0===e.debug?o.Debug:null!=(t=e.logLevel)?t:o.Error},e.prototype.shouldRetryFetch=function(e){return!(e instanceof ev)||e.statusCode<400||e.statusCode>=500||429===e.statusCode}
1,e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),ta=function(){function e(e,t){var r,i,n;this.globalScope=ew(),this.userAgent=void 0!==(null==(r=this.globalScope)?void 0:r.navigator)?null==(i=this.globalScope)?void 0:i.navigator.userAgent:void 0,this.ua=new e_.UAParser(this.userAgent).getResult(),this.localStorage=new eZ,this.sessionStorage=new e3,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(n=this.apiKey)?void 0:n.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,i,n,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return eE({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.type)?r:"desktop",referring_url:null==(n=null==(i=this.globalScope)?void 0:i.document)?void 0:n.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"u">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.name,null==(r=e.browser)?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.name},e.prototype.getBrowser=function(e){var t,r=null==(t=e.browser)?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,i,n;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(n=null==(i=null==(r=this.globalScope)?void 0:r.document)?void 0:i.cookie)?void 0:n.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.location)?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,i={};try{var n=new URL(this.globalScope.location.href);try{for(var o=eO(n.searchParams),a=o.next();!a.done;a=o.next()){var s=eT(a.value,2),u=s[0],l=s[1];i[u]=eM(eM([],eT(null!=(r=i[u])?r:[]),!1),eT(l.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(i).reduce(function(e,t){var r=eT(t,2),i=r[0],n=r[1];return e[i]=1==n.length?n[0]:n,e},{})}},e}();eb.experimentInstances={};var ts=eb.experimentInstances,tu=function(e){return(null==e?void 0:e.instanceName)||eq.instanceName},tl=function(e,t){var r=tu(t),i=null==t?void 0:t.internalInstanceNameSuffix;return i?"".concat(r,".").concat(e,".").concat(i):"".concat(r,".").concat(e)},tc=function(e,t,r){var i=tl(e,t),n=ts[i];return n?n:(n=new to(e,eE(eE({},t),{userProvider:new ta(null==t?void 0:t.userProvider,e)})),r&&n.addPlugin(r()),ts[i]=n,n)};function th(){}th.prototype.getUser=function(){return{}},th.prototype.start=function(e){return eA(this,void 0,void 0,function(){return eP(this,function(e){return[2]})})},th.prototype.stop=function(){},th.prototype.setUser=function(e){},th.prototype.fetch=function(e,t){return eA(this,void 0,void 0,function(){return eP(this,function(e){return[2,this]})})},th.prototype.getUserProvider=function(){return null},th.prototype.setUserProvider=function(e){return this},th.prototype.variant=function(e,t){return eq.fallbackVariant},th.prototype.all=function(){return{}},th.prototype.clear=function(){}
1,th.prototype.exposure=function(e){};var tf=e.i(60742),td=e.i(75664),tp=e.i(75157),tv=e.i(18566);let tg=(0,l.createContext)(void 0),ty="ebsco_exp_";function tm(e,t){t&&0!==Object.keys(t).length&&(document.cookie=`${ty+e}=${(0,tp.encodeBase64)({variants:t})}; path=/; SameSite=Lax`)}function tb(e){let t=ty+e,r=document.cookie.split("; ").find(e=>e.startsWith(t));if(!r)return null;try{return(0,tp.decodeBase64)(r.slice(t.length+1))}catch(e){return td.logger.warn("Failed to decode experiment variants from cross-tab cookie:",e),document.cookie=`${t}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`,null}}e.s(["ExperimentProvider",0,function({children:e}){let{isAmplitudeInitialized:t,getAmplitudeDeviceId:r,isOsanoAvailable:i,isAnalyticsConsented:n}=(0,tf.useAnalytics)(),o=(0,l.useRef)(null),a=(0,l.useRef)(!1),s=(0,l.useRef)(new Set),c=(0,l.useRef)(null),h=(0,l.useRef)(!1),f=(0,l.useRef)(null),d=(0,l.useRef)(!1),p=(0,l.useRef)(null),v=(0,tv.usePathname)(),[g,y]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e,s;if(!t||!i||a.current&&o.current&&!d.current)return;if(a.current=!0,!n){h.current=!0,td.logger.debug("Experiment client NOT initialized because analytics consent was not granted at page load");return}d.current&&(d.current=!1);let u=r();if(!u)return;o.current||(o.current=tc(e="client-UdwK8b0uZvxM5m0f79YBw8SWifkFXNRz",s={debug:!1},function(){return new eR(e,eS.AnalyticsConnector.getInstance(tu(s)),1e4)}),td.logger.debug("Experiment client initialized with Amplitude Analytics"));let l=o.current,c=tb(u);(c?Promise.resolve():l.fetch().then(()=>{tm(u,l.all()),td.logger.debug("Fetched experiment variants from Amplitude for deviceId:",u)})).then(()=>{c&&td.logger.debug("Cache Hit - Loaded experiment variants from sessionStorage for deviceId:",u),y(!0)}).catch(e=>{})},[t,r,n,i]);let m=(0,l.useCallback)(()=>{if(o.current&&0!==s.current.size){for(let e of(td.logger.debug(`Flushing ${s.current.size} pending experiment exposures:`,Array.from(s.current)),s.current))o.current.variant(e);s.current.clear()}},[]);(0,l.useEffect)(()=>{i&&n&&g&&m()},[i,n,g,m]),(0,l.useEffect)(()=>{if(!g)return;let e=r(),t={...e?tb(e)?.variants??{}:{},...o.current?.all()??{}};for(let[e,r]of Object.entries(t))r?.value&&document.documentElement.setAttribute(`data-exp-${e}`,r.value);document.documentElement.setAttribute("is-experiment-ready","true"),e&&tm(e,t)},[g,r]),(0,l.useEffect)(()=>{if(!i||n)return;c.current=null,s.current.clear(),h.current=!0,y(!1),d.current=!0;let e=o.current;e?.integrationManager?.track&&!p.current&&(p.current=e.integrationManager.track,e.integrationManager.track=()=>void 0)},[i,n]),(0,l.useEffect)(()=>{let e=f.current;if(f.current=n,!1!==e||!0!==n)return;let t=o.current;t?.integrationManager&&p.current&&(t.integrationManager.track=p.current,p.current=null)},[n]);let b=(0,l.useCallback)(e=>{if(!g)return;if(c.current!==v){null!==c.current&&(h.current=!1),c.current=v;let e=o.current;e?.userSessionExposureTracker&&(e.userSessionExposureTracker.tracked={}),e?.integrationManager?.cache?.clearCache?.()}if(h.current)return;let t=o.current?.all()[e];if(void 0===t){let i=r();i&&(t=tb(i)?.variants[e])}if(void 0!==t)return i&&n&&o.current?o.current.variant(e):i||s.current.add(e),t},[v,g,i,n,r]);return(0,u.jsx)(tg.Provider,{value:{getVariant:b,isDataInitialized:g},children:e})},"useExperimentContext",0,function(){let e=(0,l.useContext)(tg);if(!e)throw Error("useExperimentContext must be used within ExperimentProvider");return e}],32080)},91140,e=>{"use strict";var t=e.i(32080);e.s(["useExperiment",0,function(e){let{getVariant:r,isDataInitialized:i}=(0,t.useExperimentContext)();return{variant:r(e),isReady:i}}])}]);
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.