1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24916,(e,t,n)=>{!function(n){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,s){var a;return r((a=r(r(t,e),r(i,s)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function u(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function c(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;var n,i,c,l,p,d=0x67452301,f=-0x10325477,h=-0x67452302,v=0x10325476;for(n=0;n<e.length;n+=16)i=d,c=f,l=h,p=v,d=o(d,f,h,v,e[n],7,-0x28955b88),v=o(v,d,f,h,e[n+1],12,-0x173848aa),h=o(h,v,d,f,e[n+2],17,0x242070db),f=o(f,h,v,d,e[n+3],22,-0x3e423112),d=o(d,f,h,v,e[n+4],7,-0xa83f051),v=o(v,d,f,h,e[n+5],12,0x4787c62a),h=o(h,v,d,f,e[n+6],17,-0x57cfb9ed),f=o(f,h,v,d,e[n+7],22,-0x2b96aff),d=o(d,f,h,v,e[n+8],7,0x698098d8),v=o(v,d,f,h,e[n+9],12,-0x74bb0851),h=o(h,v,d,f,e[n+10],17,-42063),f=o(f,h,v,d,e[n+11],22,-0x76a32842),d=o(d,f,h,v,e[n+12],7,0x6b901122),v=o(v,d,f,h,e[n+13],12,-0x2678e6d),h=o(h,v,d,f,e[n+14],17,-0x5986bc72),f=o(f,h,v,d,e[n+15],22,0x49b40821),d=s(d,f,h,v,e[n+1],5,-0x9e1da9e),v=s(v,d,f,h,e[n+6],9,-0x3fbf4cc0),h=s(h,v,d,f,e[n+11],14,0x265e5a51),f=s(f,h,v,d,e[n],20,-0x16493856),d=s(d,f,h,v,e[n+5],5,-0x29d0efa3),v=s(v,d,f,h,e[n+10],9,0x2441453),h=s(h,v,d,f,e[n+15],14,-0x275e197f),f=s(f,h,v,d,e[n+4],20,-0x182c0438),d=s(d,f,h,v,e[n+9],5,0x21e1cde6),v=s(v,d,f,h,e[n+14],9,-0x3cc8f82a),h=s(h,v,d,f,e[n+3],14,-0xb2af279),f=s(f,h,v,d,e[n+8],20,0x455a14ed),d=s(d,f,h,v,e[n+13],5,-0x561c16fb),v=s(v,d,f,h,e[n+2],9,-0x3105c08),h=s(h,v,d,f,e[n+7],14,0x676f02d9),f=s(f,h,v,d,e[n+12],20,-0x72d5b376),d=a(d,f,h,v,e[n+5],4,-378558),v=a(v,d,f,h,e[n+8],11,-0x788e097f),h=a(h,v,d,f,e[n+11],16,0x6d9d6122),f=a(f,h,v,d,e[n+14],23,-0x21ac7f4),d=a(d,f,h,v,e[n+1],4,-0x5b4115bc),v=a(v,d,f,h,e[n+4],11,0x4bdecfa9),h=a(h,v,d,f,e[n+7],16,-0x944b4a0),f=a(f,h,v,d,e[n+10],23,-0x41404390),d=a(d,f,h,v,e[n+13],4,0x289b7ec6),v=a(v,d,f,h,e[n],11,-0x155ed806),h=a(h,v,d,f,e[n+3],16,-0x2b10cf7b),f=a(f,h,v,d,e[n+6],23,0x4881d05),d=a(d,f,h,v,e[n+9],4,-0x262b2fc7),v=a(v,d,f,h,e[n+12],11,-0x1924661b),h=a(h,v,d,f,e[n+15],16,0x1fa27cf8),f=a(f,h,v,d,e[n+2],23,-0x3b53a99b),d=u(d,f,h,v,e[n],6,-0xbd6ddbc),v=u(v,d,f,h,e[n+7],10,0x432aff97),h=u(h,v,d,f,e[n+14],15,-0x546bdc59),f=u(f,h,v,d,e[n+5],21,-0x36c5fc7),d=u(d,f,h,v,e[n+12],6,0x655b59c3),v=u(v,d,f,h,e[n+3],10,-0x70f3336e),h=u(h,v,d,f,e[n+10],15,-1051523),f=u(f,h,v,d,e[n+1],21,-0x7a7ba22f),d=u(d,f,h,v,e[n+8],6,0x6fa87e4f),v=u(v,d,f,h,e[n+15],10,-0x1d31920),h=u(h,v,d,f,e[n+6],15,-0x5cfebcec),f=u(f,h,v,d,e[n+13],21,0x4e0811a1),d=u(d,f,h,v,e[n+4],6,-0x8ac817e),v=u(v,d,f,h,e[n+11],10,-0x42c50dcb),h=u(h,v,d,f,e[n+2],15,0x2ad7d2bb),f=u(f,h,v,d,e[n+9],21,-0x14792c6f),d=r(d,i),f=r(f,c),h=r(h,l),v=r(v,p);return[d,f,h,v]}function l(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(t=0,n[(e.length>>2)-1]=void 0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function d(e){var t,n,r="0123456789abcdef",i="";for(n=0;n<e.length;n+=1)i+=r.charAt((t=e.charCodeAt(n))>>>4&15)+r.charAt(15&t);return i}function f(e){return unescape(encodeURIComponent(e))}function h(e){var t;return l(c(p(t=f(e)),8*t.length))}function v(e,t){return function(e,t){var n,r,i=p(e),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=c(i,8*e.length)),n=0;n<16;n+=1)o[n]=0x36363636^i[n],s[n]=0x5c5c5c5c^i[n];return r=c(o.concat(p(t)),512+8*t.length),l(c(s.concat(r),640))}(f(e),f(t))}function y(e,t,n){if(!t)return n?h(e):d(h(e));return n?v(t,e):d(v(t,e))}if("function"==typeof define&&define.amd)e.r,void 0!==y&&e.v(y);else t.exports?t.exports=y:n.md5=y}(e.e)},56860,(e,t,n)=>{!function(r,i){"use strict";var o="function",s="undefined",a="object",u="string",c="model",l="name",p="type",d="vendor",f="version",h="architecture",v="console",y="mobile",g="tablet",m="smarttv",b="wearable",_="embedded",w="Amazon",I="Apple",S="ASUS",k="BlackBerry",x="Browser",O="Chrome",E="Firefox",C="Google",N="Huawei",A="Microsoft",P="Motorola",j="Opera",T="Samsung",U="Sharp",q="Sony",D="Xiaomi",R="Zebra",M="Facebook",K=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},L=function(e,t){return typeof e===u&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},B=function(e,t){for(var n,r,i,s,u,c,l=0;l<t.length&&!u;){var p=t[l],d=t[l+1];for(n=r=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(i=0;i<d.length;i++)c=u[++r],typeof(s=d[i])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0):this[s]=c||void 0;l+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(L(t[n][r],e))return"?"===n?void 0:n}else if(L(t[n],e))return"?"===n?void 0:n;return e},W={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"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[l,"E
1dge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,f],[/opios[\/ ]+([\w\.]+)/i],[f,[l,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[l,j]],[/(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],[l,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[l,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+x],f],[/\bfocus\/([\w\.]+)/i],[f,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[l,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[f,[l,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+x],f],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,M],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[l,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[f,G,{"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],[l,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[l,E+" 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],[l,f],[/(cobalt)\/([\w\.]+)/i],[l,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,$]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,$]]],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,[d,T],[p,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,T],[p,y]],[/((ipod|iphone)\d+,\d+)/i],[c,[d,I],[p,y]],[/(ipad\d+,\d+)/i],[c,[d,I],[p,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,I],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,I],[p,g]],[/(macintosh);/i],[c,[d,I]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,N],[p,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[d,N],[p,y]],[/\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," "],[d,D],[p,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,D],[p,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[p,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[p,y]],[/\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,[d,P],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,P],[p,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,"LG"],[p,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,"LG"],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[p,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[p,y]],[/(pixel c)\b/i],[c,[d,C],[p,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,C],[p,y]],[/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,[d,q],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,q],[p,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,w],[p,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)
vendor: 5,209 bytes, line 1
1/g,"Fire Phone $1"],[d,w],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[p,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,k],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,S],[p,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,S],[p,y]],[/(nexus 9)/i],[c,[d,"HTC"],[p,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[p,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[p,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[p,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,U],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[p,y]],[/(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],[d,c,[p,g]],[/(surface duo)/i],[c,[d,A],[p,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[p,y]],[/(u304aa)/i],[c,[d,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[p,g]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[p,g]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[p,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[p,g]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[p,g]],[/\b(k88) b/i],[c,[d,"ZTE"],[p,g]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[p,g]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[p,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[p,g]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[p,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[p,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[p,y]],[/\b(ph-1) /i],[c,[d,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[p,g]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[p,g]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[p,g]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[p,g]],[/(sprint) (\w+)/i],[d,c,[p,y]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,A],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,R],[p,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,R],[p,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[p,v]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[p,v]],[/(playstation [345portablevi]+)/i],[c,[d,q],[p,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,A],[p,v]],[/smart-tv.+(samsung)/i],[d,[p,m]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,T],[p,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,"LG"],[p,m]],[/(apple) ?tv/i],[d,[c,I+" TV"],[p,m]],[/crkey/i],[[c,O+"cast"],[d,C],[p,m]],[/droid.+aft(\w)( bui|\))/i],[c,[d,w],[p,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[d,U],[p,m]],[/(bravia[\w ]+)( bui|\))/i],[c,[d,q],[p,m]],[/(mitv-\w{5}) bui/i],[c,[d,D],[p,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,z],[c,z],[p,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,m]],[/((pebble))app/i],[d,c,[p,b]],[/droid.+; (glass) \d/i],[c,[d,C],[p,b]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,R],[p,b]],[/(quest( 2)?)/i],[c,[d,M],[p,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[p,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[p,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[l,"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],[l,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[f,G,W]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[f,G,W]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,f],[/\(bb(10);/i],[f,[l,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
1 rv:.+ gecko\/([\w\.]+)/i],[f,[l,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[l,O+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],f],[/(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],[l,f],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,f]]},J=function(e,t){if(typeof e===a&&(t=e,e=void 0),!(this instanceof J))return new J(e,t).getResult();var n=e||(typeof r!==s&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),i=t?K(V,t):V;return this.getBrowser=function(){var e,t={};return t[l]=void 0,t[f]=void 0,B.call(t,n,i.browser),t.major=typeof(e=t.version)===u?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={};return e[h]=void 0,B.call(e,n,i.cpu),e},this.getDevice=function(){var e={};return e[d]=void 0,e[c]=void 0,e[p]=void 0,B.call(e,n,i.device),e},this.getEngine=function(){var e={};return e[l]=void 0,e[f]=void 0,B.call(e,n,i.engine),e},this.getOS=function(){var e={};return e[l]=void 0,e[f]=void 0,B.call(e,n,i.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 n},this.setUA=function(e){return n=typeof e===u&&e.length>350?z(e,350):e,this},this.setUA(n),this};if(J.VERSION="0.7.33",J.BROWSER=F([l,f,"major"]),J.CPU=F([h]),J.DEVICE=F([c,d,p,v,y,m,g,b,_]),J.ENGINE=J.OS=F([l,f]),typeof n!==s)t.exports&&(n=t.exports=J),n.UAParser=J;else if(typeof define===o&&define.amd)e.r,void 0!==J&&e.v(J);else typeof r!==s&&(r.UAParser=J);var Z=typeof r!==s&&(r.jQuery||r.Zepto);if(Z&&!Z.ua){var H=new J;Z.ua=H.getResult(),Z.ua.get=function(){return H.getUA()},Z.ua.set=function(e){H.setUA(e);var t=H.getResult();for(var n in t)Z.ua[n]=t[n]}}}("object"==typeof window?window:e.e)},83497,89280,e=>{"use strict";var t,n,r=e.i(21168);e.i(50461);var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function u(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})}function c(e,t){var n,r,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(u){var c=[a,u];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function d(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function f(){return"object"==typeof window&&(null==window?void 0:window.document)!==void 0}"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>s,"__awaiter",()=>u,"__extends",()=>o,"__generator",()=>c,"__read",()=>p,"__rest",()=>a,"__spreadArray",()=>d,"__values",()=>l],89280);var h=function(){var e;if(f()){var t=Array;if(void 0!==window.Prototype&&(null==(e=t.prototype)?void 0:e.toJSON)!==void 0)return delete t.prototype.toJSON,!0}return!1},v=e.i(24916);let y="%[a-f0-9]{2}",g=RegExp("("+y+")|([^%]+?)","gi"),m=RegExp("("+y+")+","gi");function b(e,t){if("string"!=typeof e||"string"!=typeof t)throw TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];let n=e.indexOf(t);return -1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}let _=Symbol("encodeFragmentIdentifier");function w(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function I(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`):encodeURIComponent(e):e}function S(e,t){if(t.decode){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{var n=e;let t={"%FE%FF":"��","%FF%FE":"��"},r=m.exec(n);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let t=e.match(g)||[];for(let n=1;n<t.length;n++)t=(e=(function e(t,n){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;n=n||1;let r=t.slice(0,n),i=t.slice(n);return Array.prototype.concat.call([],e(r),e(i))})(t,n).join("")).match(g)||[];return e}}(r[0]);e!==r[0]&&(t[r[0]]=e)}r=m.exec(n)}for(let e of(t["%C2"]="�",Object.keys(t)))n=n.replace(RegExp(e,"g"),t[e]);return n}}return e}function k(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function x(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function O(e){let t=(e=k(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function E(e,t){w((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);let n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){r[e]=n;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[...r[e],n]};case"colon-list-separator":return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[...r[e],n]};case"comma":case"separator":return(t,n,r)=>{let i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&S(n,e).includes(e.arrayFormatSeparator);n=o?S(n,e):n;let s=i||o?n.split(e.arrayFormatSeparator).map(t=>S(t,e)):null===n?n:S(n,e);r[t]=s};case"bracket-separator":return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!i){r[t]=n?S(n,e):n;return}let o=null===n?[]:n.split(e.arrayFormatSeparator).map(t=>S(t,e));if(void 0===r[t]){r[t]=o;return}r[t]=[...r[t],...o]};default:return(e,t,n)=>{if(void 0===n[e]){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return r;for(let i of e.split("&")){if(""===i)continue;let e=t.decode?i.replace(/\+/g," "):i,[o,s]=b(e,"=");void 0===o&&(o=e),s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:S(s,t),n(S(o,t),s,r)}for(let[e,n]of Object.entries(r))if("object"==typeof n&&null!==n)for(let[e,r]of Object.entries(n))n[e]=x(r,t);else r[e]=x(n,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>
1{let n=r[t];return n&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}function C(e,t){if(!e)return"";w((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{let i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,I(t,e)+"["+i+"]"]:[...n,I(t,e)+"["+I(i,e)+"]="+I(r,e)]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,I(t,e)+"[]"]:[...n,I(t,e)+"[]="+I(r,e)];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,I(t,e)+":list="]:[...n,I(t,e)+":list="+I(r,e)];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length)?[[I(n,e),t,I(i,e)].join("")]:[[r,I(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,I(t,e)]:[...n,I(t,e)+"="+I(r,e)]}}(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{let i=e[n];return void 0===i?"":null===i?I(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?I(n,t)+"[]":i.reduce(r(n),[]).join("&"):I(n,t)+"="+I(i,t)}).filter(e=>e.length>0).join("&")}function N(e,t){t={decode:!0,...t};let[n,r]=b(e,"#");return void 0===n&&(n=e),{url:n?.split("?")?.[0]??"",query:E(O(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:S(r,t)}:{}}}function A(e,t){var n;let r,i;t={encode:!0,strict:!0,[_]:!0,...t};let o=k(e.url).split("?")[0]||"",s=C({...E(O(e.url),{sort:!1}),...e.query},t);s&&(s=`?${s}`);let a=(n=e.url,r="",-1!==(i=n.indexOf("#"))&&(r=n.slice(i)),r);if(e.fragmentIdentifier){let n=new URL(o);n.hash=e.fragmentIdentifier,a=t[_]?n.hash:`#${e.fragmentIdentifier}`}return`${o}${s}${a}`}function P(e,t,n){let{url:r,query:i,fragmentIdentifier:o}=N(e,n={parseFragmentIdentifier:!0,[_]:!1,...n});return A({url:r,query:function(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}(i,t),fragmentIdentifier:o},n)}function j(e,t,n){return P(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}e.s(["exclude",()=>j,"extract",()=>O,"parse",()=>E,"parseUrl",()=>N,"pick",()=>P,"stringify",()=>C,"stringifyUrl",()=>A],92597);var T=e.i(92597),U=e.i(56860),q=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:D(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),D=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},R=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}(),M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function K(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}"function"==typeof SuppressedError&&SuppressedError;var L=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=K(["string","number","boolean","undefined"]),s=o.next();!s.done;s=o.next())if(s.value===i)return e===t}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;
1if(null==e||null==t||e.length!==t.length)return!1;var a=Array.isArray(e),u=Array.isArray(t);if(a!==u)return!1;if(a&&u){for(var c=0;c<e.length;c++)if(!L(e[c],t[c]))return!1}else{if(!L(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var l=!0;return Object.keys(e).forEach(function(n){L(e[n],t[n])||(l=!1)}),l}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var $=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=M({},this.identity.userProperties),n=M(M({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,s,a,u=n.userProperties||{};try{for(var c=K(Object.entries(e)),l=c.next();!l.done;l=c.next()){var p=F(l.value,2),d=p[0],f=p[1];switch(d){case"$set":try{for(var h=(i=void 0,K(Object.entries(f))),v=h.next();!v.done;v=h.next()){var y=F(v.value,2),g=y[0],m=y[1];u[g]=m}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(s=void 0,K(Object.keys(f))),_=b.next();!_.done;_=b.next()){var g=_.value;delete u[g]}}catch(e){s={error:e}}finally{try{_&&!_.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}break;case"$clearAll":u={}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return n.userProperties=u,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return M({},this.identity)},e.prototype.setIdentity=function(e){var t=M({},this.identity);this.identity=M({},e),L(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}(),z="undefined"!=typeof globalThis?globalThis:e.g,B=function(){function e(){this.identityStore=new $,this.eventBridge=new R,this.applicationContextProvider=new q}return e.getInstance=function(t){return z.analyticsConnectorInstances||(z.analyticsConnectorInstances={}),z.analyticsConnectorInstances[t]||(z.analyticsConnectorInstances[t]=new e),z.analyticsConnectorInstances[t]},e}();function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e){return(V="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)}function J(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ee(r.key),r)}}function H(e,t,n){return t&&Z(e.prototype,t),n&&Z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function X(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ee(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var et="$default_instance",en="$identify",er="$groupidentify",ei="api.amplitude.com",eo="regionconfig.amplitude.com",es="cookies",ea="none",eu="localStorage",ec="sessionStorage",el="revenue_amount",ep="utm_source",ed="utm_medium",ef="utm_campaign",eh="utm_term",ev="utm_content",ey="http",eg="beacon",em=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(r>127&&r<2048?t+=String.fromCharCode(r>>6|192):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128)),t+=String.fromCharCode(63&r|128))}return t},eb=function(e){for(var t="",n=0,r=0,i=0,o=0;n<e.length;)(r=e.charCodeAt(n))<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(t+=String.fromCharCode((31&r)<<6|63&(i=e.charCodeAt(n+1))),n+=2):(t
1+=String.fromCharCode((15&r)<<12|(63&(i=e.charCodeAt(n+1)))<<6|63&e.charCodeAt(n+2)),n+=3);return t},e_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e.g,ew={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(e_.btoa&&e_.atob)return e_.btoa(unescape(encodeURIComponent(e)))}catch(e){}return ew._encode(e)},_encode:function(e){var t,n,r,i,o,s,a,u="",c=0;for(e=em(e);c<e.length;)t=e.charCodeAt(c++),n=e.charCodeAt(c++),r=e.charCodeAt(c++),i=t>>2,o=(3&t)<<4|n>>4,s=(15&n)<<2|r>>6,a=63&r,isNaN(n)?s=a=64:isNaN(r)&&(a=64),u=u+ew._keyStr.charAt(i)+ew._keyStr.charAt(o)+ew._keyStr.charAt(s)+ew._keyStr.charAt(a);return u},decode:function(e){try{if(e_.btoa&&e_.atob)return decodeURIComponent(escape(e_.atob(e)))}catch(e){}return ew._decode(e)},_decode:function(e){var t,n,r,i,o,s,a,u="",c=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");c<e.length;)i=ew._keyStr.indexOf(e.charAt(c++)),o=ew._keyStr.indexOf(e.charAt(c++)),s=ew._keyStr.indexOf(e.charAt(c++)),a=ew._keyStr.indexOf(e.charAt(c++)),t=i<<2|o>>4,n=(15&o)<<4|s>>2,r=(3&s)<<6|a,u+=String.fromCharCode(t),64!==s&&(u+=String.fromCharCode(n)),64!==a&&(u+=String.fromCharCode(r));return eb(u)}},eI=Object.prototype.toString;function eS(e){switch(eI.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!=e?"nan":e&&1===e.nodeType?"element":void 0!==r.Buffer&&"function"==typeof r.Buffer.isBuffer&&r.Buffer.isBuffer(e)?"buffer":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),V(e))}var ek={DISABLE:0,ERROR:1,WARN:2,INFO:3},ex=ek.WARN,eO={error:function(e){ex>=ek.ERROR&&eE(e)},warn:function(e){ex>=ek.WARN&&eE(e)},info:function(e){ex>=ek.INFO&&eE(e)}},eE=function(e){try{console.log("[Amplitude] "+e)}catch(e){}},eC=function(e,t,n){return eS(e)===n||(eO.error("Invalid "+t+" input type. Expected "+n+" but received "+eS(e)),!1)},eN=function(e){var t=eS(e);if("object"!==t)return eO.error("Error: invalid properties format. Expecting Javascript object, received "+t+", ignoring"),{};if(Object.keys(e).length>1e3)return eO.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=r,o=eS(i);"string"!==o&&(i=String(i),eO.warn("WARNING: Non-string property key, received type "+o+', coercing to string "'+i+'"'));var s=eP(i,e[r]);null!==s&&(n[i]=s)}return n},eA=["nan","function","arguments","regexp","element"],eP=function e(t,n){var r=eS(n);if(-1!==eA.indexOf(r))eO.warn('WARNING: Property key "'+t+'" with invalid value type '+r+", ignoring"),n=null;else if("undefined"===r)n=null;else if("error"===r)n=String(n),eO.warn('WARNING: Property key "'+t+'" with value type error, coercing to '+n);else if("array"===r){for(var i=[],o=0;o<n.length;o++){var s=n[o],a=eS(s);if("array"===a){eO.warn("WARNING: Cannot have "+a+" nested in an array property value, skipping");continue}"object"===a?i.push(eN(s)):i.push(e(t,s))}n=i}else"object"===r&&(n=eN(n));return n},ej=function(e,t){var n=eS(t);if("string"===n)return t;if("date"===n||"number"===n||"boolean"===n)return t=String(t),eO.warn("WARNING: Non-string groupName, received type "+n+', coercing to string "'+t+'"'),t;if("array"===n){for(var r=[],i=0;i<t.length;i++){var o=t[i],s=eS(o);if("array"===s||"object"===s){eO.warn("WARNING: Skipping nested "+s+" in array groupName");continue}"string"===s?r.push(o):("date"===s||"number"===s||"boolean"===s)&&(o=String(o),eO.warn("WARNING: Non-string groupName, received type "+s+', coercing to string "'+o+'"'),r.push(o))}return r}eO.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},eT=function(e){Object.prototype.hasOwnProperty.call(ek,e)&&(ex=ek[e])},eU=function(e){return!e||0===e.length},eq=function(){return"undefined"!=typeof WorkerGlobalScope},eD=function(e,t){var n=RegExp("[\\?&]"+(e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)").exec(t);return null===n?void 0:decodeURIComponent(n[1].replace(/\+/g," "))},eR=function e(t){if("array"===eS(t))for(var n,r=0;r<t.length;r++)t[r]=e(t[r]);else if("object"===eS(t))for(var i in t)i in t&&(t[i]=e(t[i]));else{t="string"===eS(n=t)&&n.length>4096?n.substring(0,4096):n}return t},eM=function(e){var t=eS(e);if("object"!==t)return eO.error("Error: invalid groups format. Expecting Javascript object, received "+t+", ignoring"),{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=r,o=eS(i);"string"!==o&&(i=String(i),eO.warn("WARNING: Non-string groupType, received type "+o+', coercing to string "'+i+'"'));var s=ej(i,e[r]);null!==s&&(n[i]=s)}return n},eK=function(e){return!!eC(e,"deviceId","string")&&(!(e.indexOf(".")>=0)||(eO.error("Device IDs may not contain '.' characters. Value will be ignored: \"".concat(e,'"')),!1))},eF=function(e){return!!eC(e,"transport","string")&&(e!==ey&&e!==eg?(eO.error("transport value must be one of '".concat(eg,"' or '").concat(ey,"'")),!1):e===ey||"undefined"==typeof navigator||!!navigator.sendBeacon||(eO.error("browser does not support sendBeacon, so transport must be HTTP"),!1))},eL=function(){return e_.location},e$=function(e){var t=e_.location?e_.location.hostname:"";if(e){if("undefined"!=typeof document){var n=document.createElement("a");return n.href=e,n.hostname||t}if("function"==typeof URL)return new URL(e).hostname||t}return t},ez=function(e){try{for(var t=document.cookie.split(";"),n=null,r=0;r<t.length;r++){for(var i=t[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e)){n=i.substring(e.length,i.length);break}}return n}catch(e){return null}},eB=function(e,t,n){var r=null!==t?n.expirationDays:-1;if(r){var i=new Date;i.setTime(i.getTime()+24*r*36e5),r=i}var o=e+"="+t;r&&(o+="; expires="+r.toUTCString()),o+="; path=/",n.domain&&(o+="; domain="+n.domain),n.secure&&(o+="; Secure"),n.sameSite&&(o+="; SameSite="+n.sameSite),document.cookie=o},eG=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[4];return(n&&(e=parseInt(n,32)),e)?e:(eO.warn("unable to parse malformed cookie: ".concat(t)),0)},eW=function(e){try{var t,n=document.cookie.split(";").map(function(e){return e.trimStart()}),r=[],i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=Q(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}(n);try{for(i.s();!(t=i.n()).done;){for(var o=t.value;" "===o.charAt(0);)o=o.substring(1);0===o.indexOf(e)&&r.push(o.substring(e.length))}}catch(e){i.e(e)}finally{i.f()}return r}catch(e){return[]}},eV=function(e){return((function(e){if(Array.isArray(e))return Y(e)})(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,t){var n=eG(e);return eG(t)-n})},eJ=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="amp_cookie_test";if("undefined"==typeof document)return!1;var n=!1;try{var r=String(Date.now());eB(t,r,e),eO.info("Testing if cookies available"),n=ez(t+"=")===r}catch(e){eO.warn('Error thrown when checking for cookies. Reason: "'.concat(e,'"'))}finally{eO.info("Cleaning up cookies availability test"),eB(t,null,e)}return n},eZ=function(){for(var e="",t=0;t<22;++t)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Math.floor(64*Math.random()));return e},eH=function(e){var t=e$(e).split("."),n=[],r="_tldtest_"+eZ();if(eq())return"";for(var i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));for(var o=0;o<n.length;++o){var s=n[o],a={domain:"."+s};if(eB(r,1,a),ez(r))return eB(r,null,a),s}return""},eX={expirationDays:void 0,domain:void 0},eQ=function(e){var t="";return eX.domain&&(t="."===eX.domain.charAt(0)?eX.domain.substring(1):eX.domain),e+t},eY=function(e){var t=ez(eQ(e)+"=");try{if(t)return JSON.parse(ew.decode(t))}catch(e){}return null},e0=function(e,t){try{return eB(eQ(e),ew.encode(JSON.stringify(t)),eX),!0}catch(e){return!1}},e1=function(e){try{return eB(eQ(e),null,eX),!0}catch(e){return!1}},e2={reset:function(){eX={expirationDays:void 0,domain:void 0}},options:function(e){if(0==arguments.length)return eX;e=e||{},eX.expirationDays=e.expirationDays,eX.secure=e.secure,eX.sameSite=e.sameSite;var t=eU(e.domain)?"."+eH(eL().href):e.domain,n=Math.random();eX.domain=t,e0("amplitude_test",n);var r=eY("amplitude_test");return r&&r===n||(t=null),e1("amplitude_test"),eX.domain=t,eX},get:eY,set:e0,remove:e1,setRaw:function(e,t){try{return eB(eQ(e),t,eX),!0}catch(e){return!1}},getRaw:function(e){return ez(eQ(e)+"=")}},e3=function(){function e(){J(this,e),this.map=new Map,this.length=0}return H(e,[{key:"key",value:function(e){var t=Array.from(this.map.keys())[e];return this.map.get(t)}},{key:"getItem",value:function(e){return this.map.get(e)}},{key:"setItem",value:function(e,t){this.map.has(e)||(this.length+=1),this.map.set(e,t)}},{key:"removeItem",value:function(e){this.map.has(e)&&(this.length-=1,this.map.delete(e))}},{key:"clear",value:function(){this.map.clear(),this.length=0}}]),e}();if(function(){var e,t=new Date;try{return e_.localStorage.setItem(t,t),e=e_.localStorage.getItem(t)===String(t),e_.localStorage.removeItem(t),e}catch(e){}return!1}())t=e_.localStorage;else if(void 0!==e_&&e_.globalStorage)try{t=e_.globalStorage[e_.location.hostname]}catch(e){}else if("undefined"!=typeof document){var e6=document.createElement("div"),e4="localStorage";e6.style.display="none",document.getElementsByTagName("head")[0].appendChild(e6),e6.addBehavior&&(e6.addBehavior("#default#userdata"),t={length:0,setItem:function(e,t){e6.load(e4),!e6.getAttribute(e)&&this.length++,e6.setAttribute(e,t),e6.save(e4)},getItem:function(e){return e6.load(e4),e6.getAttribute(e)},removeItem:function(e){e6.load(e4),e6.getAttribute(e)&&this.length--,e6.removeAttribute(e),e6.save(e4)},clear:function(){e6.load(e4);for(var e,t=0;e=e6.XMLDocument.documentElement.attributes[t++];)e6.removeAttribute(e.name);
vendor: 1,525 bytes, line 1
1e6.save(e4),this.length=0},key:function(e){return e6.load(e4),e6.XMLDocument.documentElement.attributes[e]}},e6.load(e4),t.length=e6.XMLDocument.documentElement.attributes.length)}else eq()&&(t=new e3);t||(t={length:0,setItem:function(e,t){},getItem:function(e){},removeItem:function(e){},clear:function(){},key:function(e){}});var e5=t,e8=function(){this.storage=null};e8.prototype.getStorage=function(e){if(null!==this.storage)return this.storage;if(!e&&eJ())this.storage=e2;else{var t="amp_cookiestore_";this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function(e){return 0==arguments.length?this._options:(e=e||{},this._options.expirationDays=e.expirationDays||this._options.expirationDays,this._options.domain=e.domain||this._options.domain||e_&&e_.location&&e_.location.hostname,this._options.secure=e.secure||!1)},get:function(e){try{return JSON.parse(e5.getItem(t+e))}catch(e){}return null},set:function(e,n){try{return e5.setItem(t+e,JSON.stringify(n)),!0}catch(e){}return!1},remove:function(e){try{e5.removeItem(t+e)}catch(e){return!1}}}}return this.storage};var e9=(X(n={},es,!0),X(n,ea,!0),X(n,eu,!0),X(n,ec,!0),n),e7=function(){function e(t){var n=t.storageKey,r=t.disableCookies,i=t.domain,o=t.secure,s=t.sameSite,a=t.expirationDays,u=t.storage;J(this,e),this.storageKey=n,this.domain=i,this.secure=o,this.sameSite=s,this.expirationDays=a,this.cookieDomain="";var c=eL()?eL().href:void 0,l=r?"":eH(c);
1this.cookieDomain=i||(l?"."+l:null),e9[u]?this.storage=u:r||!eJ({domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays})?this.storage=eu:this.storage=es}return H(e,[{key:"getCookieStorageKey",value:function(){if(!this.domain)return this.storageKey;var e="."===this.domain.charAt(0)?this.domain.substring(1):this.domain;return"".concat(this.storageKey).concat(e?"_".concat(e):"")}},{key:"save",value:function(e){var t=e.deviceId,n=e.userId,r=e.optOut,i=e.sessionId,o=e.lastEventTime,s=e.eventId,a=e.identifyId,u=e.sequenceNumber;if(this.storage!==ea){var c=[t,ew.encode(n||""),r?"1":"",i?i.toString(32):"0",o?o.toString(32):"0",s?s.toString(32):"0",a?a.toString(32):"0",u?u.toString(32):"0"].join(".");switch(this.storage){case ec:e_.sessionStorage&&e_.sessionStorage.setItem(this.storageKey,c);break;case eu:e5.setItem(this.storageKey,c);break;case es:this.saveCookie(c)}}}},{key:"saveCookie",value:function(e){eB(this.getCookieStorageKey(),e,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays})}},{key:"load",value:function(){var e,t=this;if(this.storage===es){var n=this.getCookieStorageKey()+"=",r=eW(n);if(0===r.length||1===r.length)e=r[0];else{var i=eV(r)[0];r.forEach(function(){return eB(t.getCookieStorageKey(),null,{})}),this.saveCookie(i),e=ez(n)}}if(e||(e=e5.getItem(this.storageKey)),!e)try{e=e_.sessionStorage&&e_.sessionStorage.getItem(this.storageKey)}catch(e){eO.info('window.sessionStorage unavailable. Reason: "'.concat(e,'"'))}if(!e)return null;var o=e.split("."),s=null;if(o[1])try{s=ew.decode(o[1])}catch(e){s=null}return{deviceId:o[0],userId:s,optOut:"1"===o[2],sessionId:parseInt(o[3],32),lastEventTime:parseInt(o[4],32),eventId:parseInt(o[5],32),identifyId:parseInt(o[6],32),sequenceNumber:parseInt(o[7],32)}}},{key:"clear",value:function(){var e;if(this.storage===es&&(e=ez(this.getCookieStorageKey()+"="),eB(this.getCookieStorageKey(),null,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:0})),e||(e=e5.getItem(this.storageKey),e5.clear()),!e)try{e=e_.sessionStorage&&e_.sessionStorage.getItem(this.storageKey),e_.sessionStorage.clear()}catch(e){eO.info('window.sessionStorage unavailable. Reason: "'.concat(e,'"'))}return!!e}}]),e}(),te=function(e,t){var n=e?"?"+e.split(".").slice(-1)[0].replace(/\|/g,"&"):"",r=function(e,t,n,r){return eD(e,t)||eD(n,r)},i=r(ep,t,"utmcsr",n),o=r(ed,t,"utmcmd",n),s=r(ef,t,"utmccn",n),a=r(eh,t,"utmctr",n),u=r(ev,t,"utmcct",n),c={},l=function(e,t){eU(t)||(c[e]=t)};return l(ep,i),l(ed,o),l(ef,s),l(eh,a),l(ev,u),c},tt="$clearAll",tn=function(){this.userPropertiesOperations={},this.properties=[]};tn.prototype.add=function(e,t){return"number"===eS(t)||"string"===eS(t)?this._addOperation("$add",e,t):eO.error("Unsupported type for value: "+eS(t)+", expecting number or string"),this},tn.prototype.append=function(e,t){return this._addOperation("$append",e,t),this},tn.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,tt)||eO.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"):this.userPropertiesOperations[tt]="-",this},tn.prototype.prepend=function(e,t){return this._addOperation("$prepend",e,t),this},tn.prototype.set=function(e,t){return this._addOperation("$set",e,t),this},tn.prototype.setOnce=function(e,t){return this._addOperation("$setOnce",e,t),this},tn.prototype.unset=function(e){return this._addOperation("$unset",e,"-"),this},tn.prototype.preInsert=function(e,t){return this._addOperation("$preInsert",e,t),this},tn.prototype.postInsert=function(e,t){return this._addOperation("$postInsert",e,t),this},tn.prototype.remove=function(e,t){return this._addOperation("$remove",e,t),this},tn.prototype._addOperation=function(e,t,n){Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,tt)?eO.error("This identify already contains a $clearAll operation, skipping operation "+e):-1!==this.properties.indexOf(t)?eO.error('User property "'+t+'" already used in this identify, skipping operation '+e):(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t))};var tr=function(e,t,n){this.url=e,this.data=t||{},this.headers=n};tr.prototype.send=function(e){if(e_.XDomainRequest){var t=new e_.XDomainRequest;t.open("POST",this.url,!0),t.onload=function(){e(200,t.responseText)},t.onerror=function(){"Request Entity Too Large"===t.responseText?e(413,t.responseText):e(500,t.responseText)},t.ontimeout=function(){},t.onprogress=function(){},t.send(T.stringify(this.data))}else if("undefined"!=typeof XMLHttpRequest){var n=new XMLHttpRequest;n.open("POST",this.url,!0),n.onreadystatechange=function(){4===n.readyState&&e(n.status,n.responseText)};var r=this.headers;for(var i in r)("Cross-Origin-Resource-Policy"!==i||r[i])&&n.setRequestHeader(i,r[i]);n.send(T.stringify(this.data))}else{var o=void 0;fetch(this.url,{method:"POST",headers:this.headers,body:T.stringify(this.data)}).then(function(e){return o=e.status,e.text()}).then(function(t){e(o,t)}
1)}};var ti=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};ti.prototype.setProductId=function(e){return"string"!==eS(e)?eO.error("Unsupported type for productId: "+eS(e)+", expecting string"):eU(e)?eO.error("Invalid empty productId"):this._productId=e,this},ti.prototype.setQuantity=function(e){return"number"!==eS(e)?eO.error("Unsupported type for quantity: "+eS(e)+", expecting number"):this._quantity=parseInt(e),this},ti.prototype.setPrice=function(e){return"number"!==eS(e)?eO.error("Unsupported type for price: "+eS(e)+", expecting number"):this._price=e,this},ti.prototype.setRevenueType=function(e){return"string"!==eS(e)?eO.error("Unsupported type for revenueType: "+eS(e)+", expecting string"):this._revenueType=e,this},ti.prototype.setEventProperties=function(e){return"object"!==eS(e)?eO.error("Unsupported type for eventProperties: "+eS(e)+", expecting object"):this._properties=eN(e),this},ti.prototype._isValidRevenue=function(){return"number"===eS(this._price)||(eO.error("Invalid revenue, need to set price field"),!1)},ti.prototype._toJSONObject=function(){var e="object"===eS(this._properties)?this._properties:{};return null!==this._productId&&(e.$productId=this._productId),null!==this._quantity&&(e.$quantity=this._quantity),null!==this._price&&(e.$price=this._price),null!==this._revenueType&&(e.$revenueType=this._revenueType),e};var to=function(e){var t=ei;switch(e){case"EU":t="api.eu.amplitude.com";break;case"US":t=ei}return t},ts=function(e){var t=eo;switch(e){case"EU":t="regionconfig.eu.amplitude.com";break;case"US":t=eo}return t},ta="8.21.9",tu={apiEndpoint:ei,batchEvents:!1,cookieExpiration:365,cookieName:"amplitude_id",sameSiteCookie:"Lax",cookieForceUpgrade:!1,deferInitialization:!1,disableCookies:!1,deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:3e4,eventUploadThreshold:30,forceHttps:!0,includeFbclid:!1,includeGclid:!1,includeReferrer:!1,includeUtm:!1,ingestionMetadata:{sourceName:"",sourceVersion:""},language:({getLanguage:function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||""}}).getLanguage(),library:{name:"amplitude-js",version:ta},logLevel:"WARN",logAttributionCapturedEvent:!1,optOut:!1,onError:function(){},onExitPage:function(){},onNewSessionStart:function(){},plan:{branch:"",source:"",version:"",versionId:""},platform:"Web",savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:18e5,storage:"",trackingOptions:{city:!0,country:!0,carrier:!0,device_manufacturer:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},transport:ey,unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Cross-Origin-Resource-Policy":"cross-origin"},serverZone:"US",useDynamicConfig:!1,serverZoneBasedApi:!1,sessionId:null,partnerId:""},tc=new(function(){function e(){return J(this,e),e.instance||(this.ingestionEndpoint=ei,e.instance=this),e.instance}return H(e,[{key:"refresh",value:function(e,t,n){var r="https";t||"https:"===e_.location.protocol||(r="http");var i=r+"://"+ts(e),o=this;if(e_.XDomainRequest){var s=new e_.XDomainRequest;s.open("GET",i,!0),s.onload=function(){o.ingestionEndpoint=JSON.parse(s.responseText).ingestionEndpoint,n&&n()},s.onerror=function(){},s.ontimeout=function(){},s.onprogress=function(){},s.send()}else{var a=new XMLHttpRequest;a.open("GET",i,!0),a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(o.ingestionEndpoint=JSON.parse(a.responseText).ingestionEndpoint,n&&n())},a.send()}}}]),e}()),tl=function(e){f()||eq()||eO.warn("amplitude-js will not work in a non-browser environment. If you are planning to add Amplitude to a node environment, please use @amplitude/node"),this._instanceName=eU(e)?et:e.toLowerCase(),this._unsentEvents=[],this._unsentIdentifys=[],this.options=W(W({},tu),{},{headers:W({},tu.headers),ingestionMetadata:W({},tu.ingestionMetadata),library:W({},tu.library),plan:W({},tu.plan),trackingOptions:W({},tu.trackingOptions)}),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInitCallbacks=[],this._onNewSessionStartCallbacks=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._connector=null,this._userAgent="undefined"!=typeof navigator&&navigator&&navigator.userAgent||null,this._ua=new U.default(this._userAgent).getResult()};tl.prototype.Identify=tn,tl.prototype.Revenue=ti,tl.prototype.init=function(e,t,n,r){var i=this;if("string"!==eS(e)||eU(e))return void eO.error("Invalid apiKey. Please re-initialize with a valid apiKey");try{this._connector=B.getInstance(this._instanceName),td(this.options,n),(f()||eq())&&void 0!==e_.Prototype&&Array.prototype.toJSON&&(h(),eO.warn("Prototype.js injected Array.prototype.toJSON. Deleting Array.prototype.toJSON to prevent double-stringify")),this.options.cookieName!==tu.cookieName&&eO.warn("The cookieName option is deprecated. We will be ignoring it for newer cookies"),this.options.serverZoneBasedApi&&(this.options.apiEndpoint=to(this.options.serverZone)),this._refreshDynamicConfig(),this.options.apiKey=e,this._storageSuffix="_"+e+(this._instanceName===et?"":"_"+this._instanceName),this._storageSuffixV5=e.slice(0,6),this._oldCookiename=this.options.cookieName+this._storageSuffix,this._unsentKey=this.options.unsentKey+this._storageSuffix,this._unsentIdentifyKey=this.options.unsentIdentifyKey+this._storageSuffix,this._cookieName="amp_"+this._storageSuffixV5,this.cookieStorage=new e8().getStorage(this.options.disableCookies),this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie}),this._metadataStorage=new e7({storageKey:this._cookieName,disableCookies:this.options.disableCookies,expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie,storage:this.options.storage});var o=!!this.cookieStorage.get(this._oldCookiename),s=!!this._metadataStorage.load();if(this._useOldCookie=!s&&o&&!this.options.cookieForceUpgrade,this.options.deferInitialization&&!(s||o))return void this._deferInitialization(e,t,n,r);this.options.domain=this.cookieStorage.options().domain,"string"===eS(this.options.logLevel)&&eT(this.options.logLevel);var a=tI(this);this._apiPropertiesTrackingOptions=Object.keys(a).length>0?{tracking_options:a}:{},this.options.cookieForceUpgrade&&o&&(s||th(this),this.cookieStorage.remove(this._oldCookiename)),tf(this),this._pendingReadStorage=!0,this.options.saveEvents&&(this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey).map(function(e){return{event:e}}).concat(this._unsentEvents),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey).map(function(e){return{event:e}}).concat(this._unsentIdentifys)),n&&n.onNewSessionStart&&this.onNewSessionStart(this.options.onNewSessionStart),function(){n&&n.deviceId&&!eK(n.deviceId)&&(eO.error('Invalid device ID rejected. Randomly generated UUID will be used instead of "'.concat(n.deviceId,'"')),delete n.deviceId),i.options.deviceId=i._getInitialDeviceId(n&&n.deviceId,void 0),i.options.userId="string"===eS(t)&&!e
1U(t)&&t||"number"===eS(t)&&t.toString()||i.options.userId||null;var e=new Date().getTime(),r=!i._sessionId||!i._lastEventTime||e-i._lastEventTime>i.options.sessionTimeout||i.options.sessionId;r&&(i.options.unsetParamsReferrerOnNewSession&&i._unsetUTMParams(),i._newSession=!0,i._sessionId=i.options.sessionId||e,i.options.sessionId=void 0,i.options.saveParamsReferrerOncePerSession&&i._trackParamsAndReferrer()),i.options.saveParamsReferrerOncePerSession||i._trackParamsAndReferrer(),i.options.saveEvents&&(tp(i._unsentEvents),tp(i._unsentIdentifys)),i._lastEventTime=e,ty(i),i._pendingReadStorage=!1,i._sendEventsIfReady();for(var o=0;o<i._onInitCallbacks.length;o++)i._onInitCallbacks[o](i);i._onInitCallbacks=[],i._isInitialized=!0,r&&i._runNewSessionStartCallbacks()}(),this.runQueuedFunctions(),"function"===eS(r)&&r(this);var u=this.options.onExitPage;if("function"===eS(u)&&e_.addEventListener&&!this.pageHandlersAdded){this.pageHandlersAdded=!0;var c=function(){var e=i.options.transport;i.setTransport(eg),u(),i.setTransport(e)};e_.addEventListener("pagehide",function(){c()},!1)}this._connector.eventBridge.setEventReceiver(function(e){i._logEvent(e.eventType,e.eventProperties,e.userProperties)});var l=this._connector.identityStore.editIdentity();this.options.deviceId&&l.setDeviceId(this.options.deviceId),this.options.userId&&l.setUserId(this.options.userId),l.commit()}catch(e){eO.error(e),n&&"function"===eS(n.onError)&&n.onError(e)}},tl.prototype._runNewSessionStartCallbacks=function(){for(var e=0;e<this._onNewSessionStartCallbacks.length;e++)this._onNewSessionStartCallbacks[e](this)},tl.prototype.deleteLowerLevelDomainCookies=function(){var e=e$(),t=this.options.domain&&"."===this.options.domain[0]?this.options.domain.slice(1):this.options.domain;if(t&&eq()&&e!==t&&RegExp(t+"$").test(e)){for(var n=e.split("."),r=t.split("."),i=n.length;i>r.length;--i){var o=n.slice(n.length-i).join(".");eB(this._cookieName,null,{domain:"."+o})}eB(this._cookieName,null,{})}},tl.prototype._getInitialDeviceId=function(e,t){if(e)return e;if(this.options.deviceIdFromUrlParam){var n=this._getDeviceIdFromUrlParam(this._getUrlParams());if(n)return n}return this.options.deviceId?this.options.deviceId:t||eZ()};var tp=function(e){for(var t=0;t<e.length;t++){var n=e[t].event.user_properties,r=e[t].event.event_properties,i=e[t].event.groups;e[t].event.user_properties=eN(n),e[t].event.event_properties=eN(r),e[t].event.groups=eM(i)}};tl.prototype._trackParamsAndReferrer=function(){if(this.options.includeUtm&&(e=this._initUtmData()),this.options.includeReferrer&&(t=this._saveReferrer(this._getReferrer())),this.options.includeGclid&&(n=this._saveGclid(this._getUrlParams())),this.options.includeFbclid&&(r=this._saveFbclid(this._getUrlParams())),this.options.logAttributionCapturedEvent){var e,t,n,r,i=W(W(W(W({},e),t),n),r);Object.keys(i).length>0&&this.logEvent("[Amplitude] Attribution Captured",i)}};var td=function e(t,n){if("object"===eS(n)){var r=new Set(["headers"]),i=new Set(["eventUploadPeriodMillis"]);for(var o in n)r.has(o)?t[o]=W(W({},t[o]),n[o]):Object.prototype.hasOwnProperty.call(n,o)&&function(r){if(Object.prototype.hasOwnProperty.call(t,r)){var o,s=n[r],a=eS(t[r]);if("transport"!==r||eF(s)){if("sessionId"===r&&null!==s){t[r]=eC(o=s,"sessionId","number")&&new Date(o).getTime()>0||(eO.error("sessionId value must in milliseconds since epoch (Unix Timestamp)"),0)?s:null;return}if(!eC(s,r+" option",a))return;
1"boolean"===a?t[r]=!!s:"string"===a&&!eU(s)||"number"===a&&(s>0||0===s&&i.has(r))||"function"===a?t[r]=s:"object"===a&&e(t[r],s)}}}(o)}};tl.prototype.runQueuedFunctions=function(){var e=this._q;this._q=[];for(var t=0;t<e.length;t++){var n=this[e[t][0]];"function"===eS(n)&&n.apply(this,e[t].slice(1))}},tl.prototype._apiKeySet=function(e){return!eU(this.options.apiKey)||(eO.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1)},tl.prototype._loadSavedUnsentEvents=function(e){var t=this._getFromStorage(e5,e),n=this._parseSavedUnsentEventsString(t,e);return this._setInStorage(e5,e,JSON.stringify(n)),n},tl.prototype._parseSavedUnsentEventsString=function(e,t){if(eU(e))return[];if("string"===eS(e))try{var n=JSON.parse(e);if("array"===eS(n))return n}catch(e){}return eO.error("Unable to load "+t+" events. Restart with a new empty queue."),[]},tl.prototype.isNewSession=function(){return this._newSession},tl.prototype.onInit=function(e){this._isInitialized?e(this):this._onInitCallbacks.push(e)},tl.prototype.onNewSessionStart=function(e){this._onNewSessionStartCallbacks.push(e)},tl.prototype.getSessionId=function(){return this._sessionId},tl.prototype.nextEventId=function(){return this._eventId++,this._eventId},tl.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},tl.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},tl.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},tl.prototype._sendEventsIfReady=function(){return 0!==this._unsentCount()&&(!this.options.batchEvents||this._unsentCount()>=this.options.eventUploadThreshold||this.options.transport===eg?(this.sendEvents(),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout((function(){this._updateScheduled=!1,this.sendEvents()}).bind(this),this.options.eventUploadPeriodMillis)),!1))},tl.prototype.clearStorage=function(){return this._metadataStorage.clear()},tl.prototype._getFromStorage=function(e,t){return e.getItem(t+this._storageSuffix
1)},tl.prototype._setInStorage=function(e,t,n){e.setItem(t+this._storageSuffix,n)};var tf=function(e){if(!e._useOldCookie){var t=e._metadataStorage.load();"object"===eS(t)&&tv(e,t);return}var n=e.cookieStorage.get(e._oldCookiename);if("object"===eS(n))return void tv(e,n)},th=function(e){var t=e.cookieStorage.get(e._oldCookiename);"object"===eS(t)&&(tv(e,t),ty(e))},tv=function(e,t){t.deviceId&&(e.options.deviceId=t.deviceId),t.userId&&(e.options.userId=t.userId),null!==t.optOut&&void 0!==t.optOut&&!1!==t.optOut&&(e.options.optOut=t.optOut),t.sessionId&&(e._sessionId=parseInt(t.sessionId,10)),t.lastEventTime&&(e._lastEventTime=parseInt(t.lastEventTime,10)),t.eventId&&(e._eventId=parseInt(t.eventId,10)),t.identifyId&&(e._identifyId=parseInt(t.identifyId,10)),t.sequenceNumber&&(e._sequenceNumber=parseInt(t.sequenceNumber,10))},ty=function(e){var t={deviceId:e.options.deviceId,userId:e.options.userId,optOut:e.options.optOut,sessionId:e._sessionId,lastEventTime:e._lastEventTime,eventId:e._eventId,identifyId:e._identifyId,sequenceNumber:e._sequenceNumber};e._useOldCookie?e.cookieStorage.set(e.options.cookieName+e._storageSuffix,t):e._metadataStorage.save(t)};tl.prototype._initUtmData=function(e,t){e=e||this._getUrlParams();var n=te(t=t||this.cookieStorage.get("__utmz"),e);return tg(this,n),n},tl.prototype._unsetUTMParams=function(){var e=new tn;e.unset("referrer"),e.unset("referring_domain"),e.unset(ep),e.unset(ed),e.unset(ef),e.unset(eh),e.unset(ev),this.identify(e)};var tg=function(e,t){if("object"===eS(t)&&0!==Object.keys(t).length){var n=new tn;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n.setOnce("initial_"+r,t[r]),n.set(r,t[r]));e.identify(n)}};tl.prototype._getReferrer=function(){var e=this._getReferrerFromUrlParam(this._getUrlParams());return e||("undefined"!=typeof document?document.referrer:"")},tl.prototype._getUrlParams=function(){return e_.location.search},tl.prototype._saveGclid=function(e){var t=eD("gclid",e);if(!eU(t)){var n={gclid:t};return tg(this,n),n}},tl.prototype._saveFbclid=function(e){var t=eD("fbclid",e);if(!eU(t)){var n={fbclid:t};return tg(this,n),n}},tl.prototype._getDeviceIdFromUrlParam=function(e){return eD("amp_device_id",e)},tl.prototype._getReferrerFromUrlParam=function(e){return eD("amp_referrer",e)},tl.prototype._getReferringDomain=function(e){if(eU(e))return null;var t=e.split("/");return t.length>=3?t[2]:null},tl.prototype._saveReferrer=function(e){if(!eU(e)){var t={referrer:e,referring_domain:this._getReferringDomain(e)};return tg(this,t),t}},tl.prototype.saveEvents=function(){try{var e=JSON.stringify(this._unsentEvents.map(function(e){return e.event}));this._setInStorage(e5,this.options.unsentKey,e)}catch(e){}try{var t=JSON.stringify(this._unsentIdentifys.map(function(e){return e.event}));this._setInStorage(e5,this.options.unsentIdentifyKey,t)}catch(e){}},tl.prototype.setDomain=function(e){if(this._shouldDeferCall())return this._q.push(["setDomain"].concat(Array.prototype.slice.call(arguments,0)));if(eC(e,"domain","string"))try{this.cookieStorage.options({expirationDays:this.options.cookieExpiration,secure:this.options.secureCookie,domain:e,sameSite:this.options.sameSiteCookie}),this.options.domain=this.cookieStorage.options().domain,tf(this),ty(this)}catch(e){eO.error(e)}},tl.prototype.setUserId=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(eC(t,"startNewSession","boolean")){if(this._shouldDeferCall())return this._q.push(["setUserId"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.userId=null!=e&&""+e||null,t&&(this.options.unsetParamsReferrerOnNewSession&&this._unsetUTMParams(),this._newSession=!0,this._sessionId=new Date().getTime(),this._runNewSessionStartCallbacks(),this.options.saveParamsReferrerOncePerSession&&this._trackParamsAndReferrer()),ty(this),this._connector&&this._connector.identityStore.editIdentity().setUserId(this.options.userId).commit()}catch(e){eO.error(e)}}},tl.prototype.setGroup=function(e,t){if(this._shouldDeferCall())return this._q.push(["setGroup"].concat(Array.prototype.slice.call(arguments,0)));if(!(!this._apiKeySet("setGroup()")||!eC(e,"groupType","string")||eU(e))){var n={};n[e]=t;var r=new tn().set(e,t);this._logEvent(en,null,null,r.userPropertiesOperations,n,null,null,null)}},tl.prototype.setOptOut=function(e){if(this._shouldDeferCall())return this._q.push(["setOptOut"].concat(Array.prototype.slice.call(arguments,0)));if(eC(e,"enable","boolean"))try{this.options.optOut=e,ty(this)}catch(e){eO.error(e)}},tl.prototype.setSessionId=function(e){if(eC(e,"sessionId","number"))try{this._sessionId=e,ty(this)}catch(e){eO.error(e)}},tl.prototype.resetSessionId=function(){this.setSessionId(new Date().getTime())},tl.prototype.regenerateDeviceId=function(){if(this._shouldDeferCall())return this._q.push(["regenerateDeviceId"].concat(Array.prototype.slice.call(arguments,0)));this.setDeviceId(eZ())},tl.prototype.setDeviceId=function(e){if(this._shouldDeferCall())return this._q.push(["setDeviceId"].concat(Array.prototype.slice.call(arguments,0)));if(eK(e))try{!eU(e)&&(this.options.deviceId=""+e,ty(this),this._connector&&this._connector.identityStore.editIdentity().setDeviceId(this.options.deviceId).commit())}catch(e){eO.error(e)}},tl.prototype.setTransport=function(e){if(this._shouldDeferCall())return this._q.push(["setTransport"].concat(Array.prototype.slice.call(arguments,0)));eF(e)&&(this.options.transport=e)},tl.prototype.setUserProperties=function(e){if(this._shouldDeferCall())return this._q.push(["setUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("setUserProperties()")&&eC(e,"userProperties","object")){var t=eR(eN(e));if(0!==Object.keys(t).length){var n=new tn;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.set(r,t[r]);this.identify(n)}}},tl.prototype.clearUserProperties=function(){if(this._shouldDeferCall())return this._q.push(["clearUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("clearUserProperties()")){var e=new tn;e.clearAll(),this.identify(e)}};var tm=function(e,t){for(var n=0;n<t._q.length;n++){var r=e[t._q[n][0]];"function"===eS(r)&&r.apply(e,t._q[n].slice(1))}return e};tl.prototype.identify=function(e,t,n,r){if(this._shouldDeferCall())return this._q.push(["identify"].
1concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("identify()"))return void tk(t,n,0,"No request sent",{reason:"API key is not set"});if("object"===eS(e)&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=tm(new tn,e)),e instanceof tn)if(Object.keys(e.userPropertiesOperations).length>0)return this._logEvent(en,null,null,e.userPropertiesOperations,null,null,null,t,n,r);else tk(t,n,0,"No request sent",{reason:"No user property operations"});else eO.error("Invalid identify input type. Expected Identify object but saw "+eS(e)),tk(t,n,0,"No request sent",{reason:"Invalid identify input type"})},tl.prototype.groupIdentify=function(e,t,n,r,i,o){if(this._shouldDeferCall())return this._q.push(["groupIdentify"].concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("groupIdentify()"))return void tk(r,i,0,"No request sent",{reason:"API key is not set"});if(!eC(e,"group_type","string")||eU(e))return void tk(r,i,0,"No request sent",{reason:"Invalid group type"});if(null==t)return void tk(r,i,0,"No request sent",{reason:"Invalid group name"});if("object"===eS(n)&&Object.prototype.hasOwnProperty.call(n,"_q")&&(n=tm(new tn,n)),n instanceof tn)if(Object.keys(n.userPropertiesOperations).length>0)return this._logEvent(er,null,null,null,X({},e,t),n.userPropertiesOperations,null,r,i,o);else tk(r,i,0,"No request sent",{reason:"No group property operations"});else eO.error("Invalid identify input type. Expected Identify object but saw "+eS(n)),tk(r,i,0,"No request sent",{reason:"Invalid identify input type"})},tl.prototype.setVersionName=function(e){if(this._shouldDeferCall())return this._q.push(["setVersionName"].concat(Array.prototype.slice.call(arguments,0)));eC(e,"versionName","string")&&(this.options.versionName=e)},tl.prototype._logEvent=function(e,t,n,r,i,o,s,a,u,c){if(tf(this),!e)return void tk(a,u,0,"No request sent",{reason:"Missing eventType"});if(this.options.optOut)return void tk(a,u,0,"No request sent",{reason:"optOut is set to true"});try{var l=e===en||e===er?this.nextIdentifyId():this.nextEventId(),p=this.nextSequenceNumber(),d="number"===eS(s)?s:new Date().getTime();c?this._sessionId=-1:this._sessionId&&this._lastEventTime&&!(d-this._lastEventTime>this.options.sessionTimeout)||(this._sessionId=d,this._runNewSessionStartCallbacks()),this._lastEventTime=d,ty(this);var f=this._ua.browser.name,h=this._ua.browser.major,v=this._ua.device.model||this._ua.os.name,y=this._ua.device.vendor;r=r||{};var g=W({},this._apiPropertiesTrackingOptions);n=W(W({},n||{}),g),t=t||{},i=i||{},o=o||{};var m={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:d,event_id:l,session_id:this._sessionId||-1,event_type:e,version_name:this.options.versionName||null,platform:tw(this,"platform")?this.options.platform:null,os_name:tw(this,"os_name")&&f||null,os_version:tw(this,"os_version")&&h||null,device_model:tw(this,"device_model")&&v||null,device_manufacturer:tw(this,"device_manufacturer")&&y||null,language:tw(this,"language")?this.options.language:null,api_properties:n,event_properties:eR(eN(t)),user_properties:eR(eN(r)),uuid:function e(t){return t?(t^16*Math.random()>>t/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e)}(),library:this.options.library,sequence_number:p,groups:eR(eM(i)),group_properties:eR(eN(o)),user_agent:this._userAgent,partner_id:this.options.partnerId||null};return tb(this)&&(m.plan={branch:this.options.plan.branch||void 0,source:this.options.plan.source||void 0,version:this.options.plan.version||void 0,versionId:this.options.plan.versionId||void 0}),t_(this)&&(m.ingestion_metadata={source_name:this.options.ingestionMetadata.sourceName||void 0,source_version:this.options.ingestionMetadata.sourceVersion||void 0}),e===en||e===er?(this._unsentIdentifys.push({event:m,callback:a,errorCallback:u}),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push({event:m,callback:a,errorCallback:u}),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(),e===en&&this._connector&&this._connector.identityStore.editIdentity().updateUserProperties(eR(eN(r))).commit(),l}catch(e){eO.error(e)}};var tb=function(e){return e.options.plan&&(e.options.plan.source||e.options.plan.branch||e.options.plan.version||e.options.plan.versionId)},t_=function(e){return e.options.ingestionMetadata&&(e.options.ingestionMetadata.sourceName||e.options.ingestionMetadata.sourceVersion)},tw=function(e,t){return!!e.options.trackingOptions[t]},tI=function(e){for(var t=["city","country","dma","ip_address","region"],n={},r=0;r<t.length;r++){var i=t[r];tw(e,i)||(n[i]=!1)}return n};tl.prototype._limitEventsQueued=function(e){e.length>this.options.savedMaxCount&&e.splice(0,e.length-this.options.savedMaxCount).forEach(function(e){tk(e.callback,e.errorCallback,0,"No request sent",{reason:"Event dropped because options.savedMaxCount exceeded. User may be offline or have a content blocker"})})},tl.prototype.logEvent=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this._shouldDeferCall()?this._q.push(["logEvent"].concat(Array.prototype.slice.call(arguments,0))):this.logEventWithTimestamp(e,t,null,n,r,i)},tl.prototype.logEventWithTimestamp=function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this._shouldDeferCall()?this._q.push(["logEventWithTimestamp"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEvent()")?eC(e,"eventType","string")?eU(e)?(tk(r,i,0,"No request sent",{reason:"Missing eventType"}
1),-1):(eC(o,"outOfSession","boolean")||tk(r,i,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(e,t,null,null,null,null,n,r,i,o)):(tk(r,i,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(tk(r,i,0,"No request sent",{reason:"API key not set"}),-1)},tl.prototype.logEventWithGroups=function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this._shouldDeferCall()?this._q.push(["logEventWithGroups"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEventWithGroups()")?eC(e,"eventType","string")?(eC(o,"outOfSession","boolean")||tk(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(e,t,null,null,n,null,null,r,i,o)):(tk(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(tk(event.callback,event.errorCallback,0,"No request sent",{reason:"API key not set"}),-1)};var tS=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},tk=function(e,t,n,r,i){"function"===eS(e)&&e(n,r,i),"function"===eS(t)&&t(n,r,i)};tl.prototype.logRevenueV2=function(e){if(this._shouldDeferCall())return this._q.push(["logRevenueV2"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("logRevenueV2()"))if("object"===eS(e)&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=tm(new ti,e)),e instanceof ti){if(e&&e._isValidRevenue())return this.logEvent(el,e._toJSONObject())}else eO.error("Invalid revenue input type. Expected Revenue object but saw "+eS(e))},tl.prototype.logRevenue=function(e,t,n){return this._shouldDeferCall()?this._q.push(["logRevenue"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logRevenue()")&&tS(e)&&(void 0===t||tS(t))?this._logEvent(el,{},{productId:n,special:"revenue_amount",quantity:t||1,price:e},null,null,null,null,null):-1},tl.prototype._logErrorsOnEvents=function(e,t,n,r){for(var i=["_unsentEvents","_unsentIdentifys"],o=0;o<i.length;o++)for(var s=i[o],a="_unsentEvents"===s?e:t,u=0;u<this[s].length||0;u++){var c=this[s][u];c.event.event_id<=a&&c.errorCallback&&c.errorCallback(n,r)}},tl.prototype.removeEvents=function(e,t,n,r){tx(this,"_unsentEvents",e,n,r),tx(this,"_unsentIdentifys",t,n,r)};var tx=function(e,t,n,r,i){if(!(n<0)){for(var o=[],s=0;s<e[t].length||0;s++){var a=e[t][s];a.event.event_id>n?o.push(a):a.callback&&a.callback(r,i)}e[t]=o}};tl.prototype.sendEvents=function(){if(!this._apiKeySet("sendEvents()"))return void this.removeEvents(1/0,1/0,0,"No request sent",{reason:"API key not set"});if(this.options.optOut)return void this.removeEvents(1/0,1/0,0,"No request sent",{reason:"Opt out is set to true"});if(0!==this._unsentCount()){if(this.options.transport!==eg){if(this._sending)return;this._sending=!0}var e=(this.options.forceHttps||"https:"===e_.location.protocol?"https":"http")+"://"+this.options.apiEndpoint,t=Math.min(this._unsentCount(),this.options.uploadBatchSize),n=this._mergeEventsAndIdentifys(t),r=n.maxEventId,i=n.maxIdentifyId,o=JSON.stringify(n.eventsToSend.map(function(e){return e.event})),s=new Date().getTime(),a={client:this.options.apiKey,e:o,v:2,upload_time:s,checksum:(0,v.default)(2+this.options.apiKey+o+s)};if(this.options.transport===eg&&"undefined"!=typeof navigator)return void(navigator.sendBeacon(e,new URLSearchParams(a))?(this.removeEvents(r,i,200,"success"),this.options.saveEvents&&this.saveEvents()):this._logErrorsOnEvents(r,i,0,""));var u=this;try{new tr(e,a,this.options.headers).send(function(e,n){u._sending=!1;try{200===e?(u.removeEvents(r,i,e,n),u.options.saveEvents&&u.saveEvents(),u._sendEventsIfReady()):(u._logErrorsOnEvents(r,i,e,n),413===e&&(1===u.options.uploadBatchSize&&u.removeEvents(r,i,e,n),u.options.uploadBatchSize=Math.ceil(t/2),u.sendEvents()))}catch(e){}})}catch(e){var c="Request failed to send";eO.error(c),u._logErrorsOnEvents(r,i,0,c),u.removeEvents(r,i,0,c,{reason:e.message})}}},tl.prototype._mergeEventsAndIdentifys=function(e){for(var t=[],n=0,r=-1,i=0,o=-1;t.length<e;){var s=void 0,a=i>=this._unsentIdentifys.length,u=n>=this._unsentEvents.length;if(u&&a){eO.error("Merging Events and Identifys, less events and identifys than expected");break}a?r=(s=this._unsentEvents[n++]).event.event_id:u||"sequence_number"in this._unsentEvents[n].event&&!(this._unsentEvents[n].event.sequence_number<this._unsentIdentifys[i].event.sequence_number)?o=(s=this._unsentIdentifys[i++]).event.event_id:r=(s=this._unsentEvents[n++]).event.event_id,t.push(s)}return{eventsToSend:t,maxEventId:r,maxIdentifyId:o}},tl.prototype.setGlobalUserProperties=function(e){this.setUserProperties(e)},tl.prototype.__VERSION__=function(){return this.options.library.version},tl.prototype.setLibrary=function(e,t){null!=e&&(this.options.library.name=e),null!=t&&(this.options.library.version=t)},tl.prototype._shouldDeferCall=function(){return this._pendingReadStorage||this._initializationDeferred},tl.prototype._deferInitialization=function(){this._initializationDeferred=!0,this._q.push(["init"].concat(Array.prototype.slice.call(arguments,0)))},tl.prototype.enableTracking=function(){this._initializationDeferred=!1,ty(this),this.runQueuedFunctions()},tl.prototype._refreshDynamicConfig=function(){this.options.useDynamicConfig&&tc.refresh(this.options.serverZone,this.options.forceHttps,(function(){this.options.apiEndpoint=tc.ingestionEndpoint}).bind(this))},tl.prototype.getDeviceId=function(){return this.options.deviceId},tl.prototype.getUserId=function(){return this.options.userId},tl.prototype.setMinTimeBetweenSessionsMillis=function(e){if(eC(e,"timeInMillis","number")){if(this._shouldDeferCall())return this._q.push(["setMinTimeBetweenSessionsMillis"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.sessionTimeout=e}catch(e){eO.error(e)}}},tl.prototype.setEventUploadThreshold=function(e){if(eC(e,"eventUploadThreshold","number")){if(this._shouldDeferCall())return this._q.push(["setEventUploadThreshold"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.eventUploadThreshold=e}catch(e){eO.error(e)}}},tl.prototype.setUseDynamicConfig=function(e){if(eC(e,"useDynamicConfig","boolean")){if(this._shouldDeferCall())return this._q.push(["setUseDynamicConfig"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.useDynamicConfig=e,this._refreshDynamicConfig()}catch(e){eO.error(e)}}},tl.prototype.setServerZone=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(("EU"===e||"US"===e)&&eC(t,"serverZoneBasedApi","boolean")){if(this._shouldDeferCall())return this._q.push(["setServerZone"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.serverZone=e,this.options.serverZoneBasedApi=t,t&&(this.options.apiEndpoint=to(this.options.serverZone))}catch(e){eO.error(e)}}},tl.prototype.setServerUrl=function(e){if(eC(e,"serverUrl","string")){if(this._shouldDeferCall())return this._q.push(["setServerUrl"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.apiEndpoint=e}catch(e){eO.error(e)}}};var tO=function(){this.options=W({},tu),this._q=[],this._instances={}};tO.prototype.Identify=tn,tO.prototype.Revenue=ti,tO.prototype.getInstance=function(e){e=eU(e)?et:e.toLowerCase();var t=this._instances[e];return void 0===t&&(t=new tl(e),this._instances[e]=t),t},tO.prototype.init=function(e,t,n,r){this.getInstance().init(e,t,n,(function(e){this.options=e.options,"function"===eS(r)&&r(e)}).bind(this))},tO.prototype.isNewSession=function(){return this.getInstance().isNewSession()},tO.prototype.getSessionId=function(){return this.getInstance().getSessionId()},tO.prototype.nextEventId=function(){return this.getInstance().nextEventId()},tO.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},tO.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},tO.prototype.saveEvents=function(){this.getInstance().saveEvents()},tO.prototype.setDomain=function(e){this.getInstance().setDomain(e)},tO.prototype.setUserId=function(e){this.getInstance().setUserId(e)},tO.prototype.setGroup=function(e,t){this.getInstance().setGroup(e,t)},tO.prototype.setOptOut=function(e){this.getInstance().setOptOut(e)},tO.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},tO.prototype.setDeviceId=function(e){this.getInstance().setDeviceId(e)},tO.prototype.setUserProperties=function(e){this.getInstance().setUserProperties(e)},tO.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},tO.prototype.identify=function(e,t){this.getInstance().identify(e,t)},tO.prototype.setVersionName=function(e){this.getInstance().setVersionName(e)},tO.prototype.logEvent=function(e,t,n){return this.getInstance().logEvent(e,t,n)},tO.prototype.logEventWithGroups=function(e,t,n,r){return this.getInstance().logEventWithGroups(e,t,n,r)},tO.prototype.logRevenueV2=function(e){return this.getInstance().logRevenueV2(e)},tO.prototype.logRevenue=function(e,t,n){return this.getInstance().logRevenue(e,t,n)},tO.prototype.removeEvents=function(e,t){this.getInstance().removeEvents(e,t)},tO.prototype.sendEvents=function(e){this.getInstance().sendEvents(e)},tO.prototype.setGlobalUserProperties=function(e){this.getInstance().setUserProperties(e)},tO.prototype.__VERSION__=ta;var tE=void 0!==e_&&e_.amplitude||{},tC=new tO;for(var tN in tC._q=tE._q||[],tE._iq)Object.prototype.hasOwnProperty.call(tE._iq,tN)&&(tC.getInstance(tN)._q=tE._iq[tN]._q||[]);var tA=e.i(34319);class tP{static instance;static commonEvents;constructor(){tP.instance||(tP.instance=tC.getInstance(),tP.instance.init(tA.AMPLITUDE_KEY))}setCommonEvents({eventProperties:e}){tP.commonEvents={...e}}sendEvent({type:e,properties:t,userId:n,userProperties:r}){tP.instance.init(tA.AMPLITUDE_KEY),n&&(tP.instance.init(tA.AMPLITUDE_KEY),tP.instance.setUserId(n),r&&tP.instance.setUserProperties(r)),r&&tP.instance.setUserProperties(r);let i={...tP.commonEvents,...t};tP.instance.logEvent(e,i)}}e.s(["clearAmplitude",0,()=>{let e=tC.getInstance();tA.AMPLITUDE_KEY&&(e.init(tA.AMPLITUDE_KEY),e.setUserId(null))},"default",0,tP],83497)}]);
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.