PageSourceSearch

https://www.janakkalansanomat.fi/_next/static/chunks/7af10625.f4be0c63536834b5.js

js janakkalansanomat.fi collected 2026-09-25 00:52:00 UTC 125,249 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7685],{34050:(e,t,n)=>{let i,r,s,o;n.d(t,{a:()=>i7});var a,l,u,c,d,p,h,f,m,g=n(14232),v=n(99742),b="user-agent",y="function",_="object",w="string",x="undefined",k="browser",S="device",E="engine",I="result",O="name",C="type",P="vendor",T="version",A="architecture",N="major",L="model",j="console",M="mobile",R="tablet",B="smarttv",D="wearable",U="embedded",V="inapp",q="brands",F="formFactors",z="fullVersionList",H="platform",W="platformVersion",Q="bitness",G="sec-ch-ua",Y=G+"-full-version-list",J=G+"-arch",$=G+"-"+Q,K=G+"-form-factors",X=G+"-"+M,Z=G+"-"+L,ee=G+"-"+H,et=ee+"-version",en=[q,z,M,L,H,W,A,F,Q],ei="Amazon",er="Apple",es="ASUS",eo="BlackBerry",ea="Google",el="Huawei",eu="Lenovo",ec="Honor",ed="Microsoft",ep="Motorola",eh="Nvidia",ef="OnePlus",em="OPPO",eg="Samsung",ev="Sharp",eb="Sony",ey="Xiaomi",e_="Zebra",ew="Chrome",ex="Chromium",ek="Chromecast",eS="Edge",eE="Firefox",eI="Opera",eO="Facebook",eC="Sogou",eP="Mobile ",eT=" Browser",eA="Windows",eN=(0,window.navigator)?window.navigator:void 0,eL=eN&&eN.userAgentData?eN.userAgentData:void 0,ej=function(e,t){var n={},i=t;if(!eB(t))for(var r in i={},t)for(var s in t[r])i[s]=t[r][s].concat(i[s]?i[s]:[]);for(var o in e)n[o]=i[o]&&i[o].length%2==0?i[o].concat(e[o]):e[o];return n},eM=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},eR=function(e,t){if(typeof e===_&&e.length>0){for(var n in e)if(eV(t)==eV(e[n]))return!0;return!1}return!!eD(e)&&eV(t)==eV(e)},eB=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||!!t&&eB(e[n])},eD=function(e){return typeof e===w},eU=function(e){if(e){for(var t=[],n=eF(e).split(","),i=0;i<n.length;i++)if(n[i].indexOf(";")>-1){var r=eW(n[i]).split(";v=");t[i]={brand:r[0],version:r[1]}}else t[i]=eW(n[i]);return t}},eV=function(e){return eD(e)?e.toLowerCase():e},eq=function(e){return eD(e)?eH(/[^\d\.]/g,e).split(".")[0]:void 0},eF=function(e){return eD(e)?eW(eH(/\\?\"/g,e),500):void 0},ez=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];typeof n==_&&2==n.length?this[n[0]]=n[1]:this[n]=void 0}return this},eH=function(e,t){return eD(t)?t.replace(e,""):t},eW=function(e,t){return e=eH(/^\s\s*/,String(e)),typeof t===x?e:e.substring(0,t)},eQ=function(e,t){if(!(!e||!t))for(var n,i,r,s,o,a,l=0;l<t.length&&!o;){var u=t[l],c=t[l+1];for(n=i=0;n<u.length&&!o&&u[n];)if(o=u[n++].exec(e))for(r=0;r<c.length;r++)a=o[++i],typeof(s=c[r])===_&&s.length>0?2===s.length?typeof s[1]==y?this[s[0]]=s[1].call(this,a):this[s[0]]=s[1]:s.length>=3&&(typeof s[1]!==y||s[1].exec&&s[1].test?3==s.length?this[s[0]]=a?a.replace(s[1],s[2]):void 0:4==s.length?this[s[0]]=a?s[3].call(this,a.replace(s[1],s[2])):void 0:s.length>4&&(this[s[0]]=a?s[3].apply(this,[a.replace(s[1],s[2])].concat(s.slice(4))):void 0):s.length>3?this[s[0]]=a?s[1].apply(this,s.slice(2)):void 0:this[s[0]]=a?s[1].call(this,a,s[2]):void 0):this[s]=a||void 0;l+=2}},eG=function(e,t){for(var n in t)if(typeof t[n]===_&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(eR(t[n][i],e))return"?"===n?void 0:n}else if(eR(t[n],e))return"?"===n?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},eY={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},eJ={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},e$={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},eK={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[T,[O,eP+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[T,[O,eS+" WebView"],[C,V]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[T,[O,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[O,T],[/opios[\/ ]+([\w\.]+)/i],[T,[O,eI+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[T,[O,eI+" GX"]],[/\bopr\/([\w\.]+)/i],[T,[O,eI]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[T,[O,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[T,[O,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[O,T],[/quark(?:pc)?\/([-\w\.]+)/i],[T,[O,"Quark"]],[/\bddg\/([\w\.]+)/i],[T,[O,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb| ucpc)[\/ ]?([\w\.]+)/i],[T,[O,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[T,[O,"WeChat"]],[/konqueror\/([\w\.]+)/i],[T,[O,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[T,[O,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[T,[O,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[T,[O,"Smart "+eu+eT]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[O,/(.+)/,"$1 Secure"+eT],T],[/norton\/([\w\.]+)/i],[T,[O,"Norton Private"+eT]],[/\bfocus\/([\w\.]+)/i],[T,[O,eE+" Focus"]],[/ mms\/([\w\.]+)$/i],[T,[O,eI+" Neon"]],[/ opt\/([\w\.]+)$/i],[T,[O,eI+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[T,[O,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[T,[O,"Dolphin"]],[/coast\/([\w\.]+)/i],[T,[O,eI+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[T,[O,"MIUI"+eT]
1],[/fxios\/([\w\.-]+)/i],[T,[O,eP+eE]],[/\bqihoobrowser\/?([\w\.]*)/i],[T,[O,"360"]],[/\b(qq)\/([\w\.]+)/i],[[O,/(.+)/,"$1Browser"],T],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[O,/(.+)/,"$1"+eT],T],[/ HBPC\/([\w\.]+)/],[T,[O,el+eT]],[/samsungbrowser\/([\w\.]+)/i],[T,[O,eg+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[T,[O,eC+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[O,eC+" Mobile"],T],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[O,T],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[O],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[T,O],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[O,eO],T,[C,V]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[O,T,[C,V]],[/\bgsa\/([\w\.]+) .*safari\//i],[T,[O,"GSA"],[C,V]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[T,[O,"TikTok"],[C,V]],[/\[(linkedin)app\]/i],[O,[C,V]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[O,/(.+)/,"Zalo"],T,[C,V]],[/(chromium)[\/ ]([-\w\.]+)/i],[O,T],[/ome-(lighthouse)$/i],[O,[C,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[T,[O,ew+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[T,[O,eS+" WebView2"],[C,V]],[/; wv\).+(chrome)\/([\w\.]+)/i],[[O,ew+" WebView"],T,[C,V]],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[T,[O,"Android"+eT]],[/chrome\/([\w\.]+) mobile/i],[T,[O,eP+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[O,T],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[T,[O,eP+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[O,eP+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[T,O],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[O,[T,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[O,T],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[O,eP+eE],T],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[O,"Netscape"],T],[/(wolvic|librewolf)\/([\w\.]+)/i],[O,T],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[T,[O,eE+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[O,[T,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[O,[T,/[^\d\.]+./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[A,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[A,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[A,"arm"]],[/ sun4\w[;\)]/i],[[A,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[A,/ower/,"",eV]],[/mc680.0/i],[[A,"68k"]],[/winnt.+\[axp/i],[[A,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[L,[P,eg],[C,R]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[L,[P,eg],[C,M]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[L,[P,er],[C,M]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[L,[P,er],[C,R]],[/(macintosh);/i],[L,[P,er]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[L,[P,ev],[C,M]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[L,[P,ec],[C,R]],[/honor([-\w ]+)[;\)]/i],[L,[P,ec],[C,M]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[L,[P,el],[C,R]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[L,[P,el],[C,M]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[L,/_/g," "],[P,ey],[C,R]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/; ([\w ]+) miui\/v?\d/i],[[L,/_/g," "],[P,ey],[C,M]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[L,[P,ef],[C,M]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[L,[P,em],[C,M]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[L,[P,eG,{OnePlus:["203","304","403","404","413","415"],"*":em}],[C,R]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[L,[P,"BLU"],[C,M]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[L,[P,"Vivo"],[C,M]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[L,[P,"Realme"],[C,M]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
vendor: 6,125 bytes, line 1
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[L,[P,eu],[C,R]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[L,[P,eu],[C,M]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[L,[P,ep],[C,M]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[L,[P,ep],[C,R]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[L,[P,"LG"],[C,R]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[L,[P,"LG"],[C,M]],[/(nokia) (t[12][01])/i],[P,L,[C,R]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[L,/_/g," "],[C,M],[P,"Nokia"]],[/(pixel (c|tablet))\b/i],[L,[P,ea],[C,R]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[L,[P,ea],[C,M]],[/(google) (pixelbook( go)?)/i],[P,L],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[L,[P,eb],[C,M]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[L,"Xperia Tablet"],[P,eb],[C,R]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[L,[P,ei],[C,R]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[L,/(.+)/g,"Fire Phone $1"],[P,ei],[C,M]],[/(playbook);[-\w\),; ]+(rim)/i],[L,P,[C,R]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[L,[P,eo],[C,M]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[L,[P,es],[C,R]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[L,[P,es],[C,M]],[/(nexus 9)/i],[L,[P,"HTC"],[C,R]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[P,[L,/_/g," "],[C,M]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[L,[P,"TCL"],[C,R]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[L,[P,"TCL"],[C,M]],[/(itel) ((\w+))/i],[[P,eV],L,[C,eG,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[L,[P,"Acer"],[C,R]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[L,[P,"Meizu"],[C,M]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[L,[P,"Ulefone"],[C,M]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[L,[P,"Energizer"],[C,M]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[L,[P,"Cat"],[C,M]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[L,[P,"Smartfren"],[C,M]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[L,[P,"Nothing"],[C,M]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[L,[P,"Archos"],[C,R]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[L,[P,"Archos"],[C,M]],[/blackview ([-\w ]+)( b|\))/i,/; (bv\d{4}[-\w ]*)( b|\))/i],[L,[P,"Blackview"],[C,M]],[/; (n159v)/i],[L,[P,"HMD"],[C,M]],[/((revvl[ \w\+]+|tm(?:rv|af)\w*[45]g(?:tb)?))( b|\))/i],[L,[C,function(e,t){return t.test.test(e)?t.ifTrue:t.ifFalse},{test:/ta?b/i,ifTrue:R,ifFalse:M}],[P,"T-Mobile"]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[P,L,[C,R]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|coolpad|cubot|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([-\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[P,L,[C,M]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[P,L,[C,R]],[/(surface duo)/i],[L,[P,ed],[C,R]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[L,[P,"Fairphone"],[C,M]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[L,[P,eh],[C,R]],[/(sprint) (\w+)/i],[P,L,[C,M]],[/(kin\.[onetw]{3})/i],[[L,/\./g," "],[P,ed],[C,M]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[L,[P,e_],[C,R]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[L,[P,e_],[C,M]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[P,[C,B]],[/hbbtv.+maple;(\d+)/i],[[L,/^/,"SmartTV"],[P,eg],[C,B]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[P,L,[C,B]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[P,"LG"],[C,B]],[/(apple) ?tv/i],[P,[L,er+" TV"],[C,B]],[/crkey.*devicetype\/chromecast/i],[[L,ek+" Third Generation"],[P,ea],[C,B]],[/crkey.*devicetype\/([^/]*)/i],[[L,/^/,"Chromecast "],[P,ea],[C,B]],[/fuchsia.*crkey/i],[[L,ek+" Nest Hub"],[P,ea],[C,B]],[/crkey/i],[[L,ek],[P,ea],[C,B]],[/(portaltv)/i],[L,[P,eO],[C,B]],[/droid.+aft(\w+)( bui|\))/i],[L,[P,ei],[C,B]],[/(shield \w+ tv)/i],[L,[P,eh],[C,B]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[L,[P,ev],[C,B]],[/(bravia[\w ]+)( bui|\))/i],[L,[P,eb],[C,B]],[/(mi(tv|box)-?\w+) bui/i],[L,[P,ey],[C,B]],[/Hbbtv.*(technisat) (.*);/i],[P,L,[C,B]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[P,/.+\/(\w+)/,"$1",eG,{LG:"lge"}],[L,eW],[C,B]],[/(playstation \w+)/i],[L,[P,eb],[C,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[L,[P,ed],[C,j]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[P,eG,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],L,[C,j]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[L,[P,eg],[C,D]],[/((pebble))app/i,/(asu
1s|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[P,L,[C,D]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[L,[P,em],[C,D]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[L,[P,er],[C,D]],[/(opwwe\d{3})/i],[L,[P,ef],[C,D]],[/(moto 360)/i],[L,[P,ep],[C,D]],[/(smartwatch 3)/i],[L,[P,eb],[C,D]],[/(g watch r)/i],[L,[P,"LG"],[C,D]],[/droid.+; (wt63?0{2,3})\)/i],[L,[P,e_],[C,D]],[/droid.+; (glass) \d/i],[L,[P,ea],[C,"xr"]],[/(pico) ([\w ]+) os\d/i],[P,L,[C,"xr"]],[/(quest( \d| pro)?s?).+vr/i],[L,[P,eO],[C,"xr"]],[/mobile vr; rv.+firefox/i],[[C,"xr"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[P,[C,U]],[/(aeobc)\b/i],[L,[P,ei],[C,U]],[/(homepod).+mac os/i],[L,[P,er],[C,U]],[/windows iot/i],[[C,U]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[L,[C,B]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[C,B]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[L,[C,eG,{mobile:"Mobile",xr:"VR","*":R}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[C,R]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[C,M]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[L,[P,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[T,[O,eS+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[O,T],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[T,[O,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[O,T],[/ladybird\//i],[[O,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[T,O]],os:[[/(windows nt) (6\.[23]); arm/i],[[O,/N/,"R"],[T,eG,eY]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[O,T],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[T,/(;|\))/g,"",eG,eY],[O,eA]],[/(windows ce)\/?([\d\.]*)/i],[O,T],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[T,/_/g,"."],[O,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[O,"macOS"],[T,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[T,[O,ek+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[T,[O,ek+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[T,[O,ek+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[T,[O,ek+" Linux"]],[/crkey\/([\d\.]+)/i],[T,[O,ek]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[T,O],[/(ubuntu) ([\w\.]+) like android/i],[[O,/(.+)/,"$1 Touch"],T],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[O,T],[/\(bb(10);/i],[T,[O,eo]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[T,[O,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[T,[O,eE+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[T,[O,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[T,eG,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[O,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[T,[O,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[T,[O,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[T,[O,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[O,T],[/(sunos) ?([\d\.]*)/i],[[O,"Solaris"],T],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[O,T]]},eX=(tE={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},ez.call(tE.init,[[k,[O,T,N,C]],["cpu",[A]],[S,[C,L,P]],[E,[O,T]],["os",[O,T]]]),ez.call(tE.isIgnore,[[k,[T,N]],[E,[T]],["os",[T]]]),ez.call(tE.isIgnoreRgx,[[k,/ ?browser$/i],["os",/ ?os$/i]]),ez.call(tE.toString,[[k,[O,T]],["cpu",[A]],[S,[P,L]],[E,[O,T]],["os",[O,T]]]),tE),eZ=function(e,t){var n=eX.init[t],i=eX.isIgnore[t]||0,r=eX.isIgnoreRgx[t]||0,s=eX.toString[t]||0;function o(){ez.call(this,n)}return o.prototype.getItem=function(){return e},o.prototype.withClientHints=function(){return eL?eL.getHighEntropyValues(en).then(function(t){return e.setCH(new e0(t,!1)).parseCH().get()}):e.parseCH().get()}
1,o.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=I&&(o.prototype.is=function(e){var t=!1;for(var n in this)if(this.hasOwnProperty(n)&&!eR(i,n)&&eV(r?eH(r,this[n]):this[n])==eV(r?eH(r,e):e)){if(t=!0,e!=x)break}else if(e==x&&t){t=!t;break}return t},o.prototype.toString=function(){var e="";for(var t in s)typeof this[s[t]]!==x&&(e+=(e?" ":"")+this[s[t]]);return e||x}),o.prototype.then=function(e){var t=this,n=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};n.prototype={is:o.prototype.is,toString:o.prototype.toString,withClientHints:o.prototype.withClientHints,withFeatureCheck:o.prototype.withFeatureCheck};var i=new n;return e(i),i},new o};function e0(e,t){if(e=e||{},ez.call(this,en),t)ez.call(this,[[q,eU(e[G])],[z,eU(e[Y])],[M,/\?1/.test(e[X])],[L,eF(e[Z])],[H,eF(e[ee])],[W,eF(e[et])],[A,eF(e[J])],[F,eU(e[K])],[Q,eF(e[$])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==x&&(this[n]=e[n])}function e1(e,t,n,i){return ez.call(this,[["itemType",e],["ua",t],["uaCH",i],["rgxMap",n],["data",eZ(this,e)]]),this}function e2(e,t,n){if(typeof e===_?(eB(e,!0)?(typeof t===_&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e!==w||eB(t,!0)||(n=t,t=void 0),n)if(typeof n.append===y){var i={};n.forEach(function(e,t){i[String(t).toLowerCase()]=e}),n=i}else{var r={};for(var s in n)n.hasOwnProperty(s)&&(r[String(s).toLowerCase()]=n[s]);n=r}if(!(this instanceof e2))return new e2(e,t,n).getResult();var o=typeof e===w?e:n&&n[b]?n[b]:eN&&eN.userAgent?eN.userAgent:"",a=new e0(n,!0),l=eK,u=function(e){return e==I?function(){return new e1(e,o,l,a).set("ua",o).set(k,this.getBrowser()).set("cpu",this.getCPU()).set(S,this.getDevice()).set(E,this.getEngine()).set("os",this.getOS()).get()}:function(){return new e1(e,o,l[e],a).parseUA().get()}};return ez.call(this,[["getBrowser",u(k)],["getCPU",u("cpu")],["getDevice",u(S)],["getEngine",u(E)],["getOS",u("os")],["getResult",u(I)],["getUA",function(){return o}],["setUA",function(e){return eD(e)&&(o=eW(e,500)),this}],["useExtension",function(e){return e&&(l=ej(l,e)),this}]]).setUA(o).useExtension(t),this}function e3(e){return(e3="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 e4(e,t,n){var i;return(i=function(e,t){if("object"!=e3(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=e3(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==e3(i)?i:i+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e6(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(0===i.length)return e(t);if(!e5(t))return!1;let[s,...o]=i;return e6(e,t[s],...o)}function e5(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}function e8(e){return"string"==typeof e}function e9(e){return"boolean"==typeof e}e1.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},e1.prototype.set=function(e,t){return this.data[e]=t,this},e1.prototype.setCH=function(e){return this.uaCH=e,this},e1.prototype.detectFeature=function(){if(eN&&eN.userAgent==this.ua)switch(this.itemType){case k:eN.brave&&typeof eN.brave.isBrave==y&&this.set(O,"Brave");break;case S:!this.get(C)&&eL&&eL[M]&&this.set(C,M),"Macintosh"==this.get(L)&&eN&&typeof eN.standalone!==x&&eN.maxTouchPoints&&eN.maxTouchPoints>2&&this.set(L,"iPad").set(C,R);break;case"os":!this.get(O)&&eL&&eL[H]&&this.set(O,eL[H]);break;case I:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(k,t(k)).set("cpu",t("cpu")).set(S,t(S)).set(E,t(E)).set("os",t("os"))}return this},e1.prototype.parseUA=function(){switch(this.itemType!=I&&eQ.call(this.data,this.ua,this.rgxMap),this.itemType){case k:this.set(N,eq(this.get(T)));break;case"os":if("iOS"==this.get(O)&&this.get(T)&&/^1[89][^\d]/.exec(this.get(T))){var e=/\) Version\/((\d+)[\d\.]*)/.exec(this.ua);e&&parseInt(e[2],10)>=26&&this.set(T,e[1])}}return this},e1.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case k:case E:var n,i=e[z]||e[q];if(i)for(var r=0;r<i.length;r++){var s=i[r].brand||i[r],o=i[r].version;this.itemType==k&&!/not.a.brand/i.test(s)&&(!n||/Chrom/.test(n)&&s!=ex||n==eS&&/WebView2/.test(s))&&(s=eG(s,e$),(n=this.get(O))&&!/Chrom/.test(n)&&/Chrom/.test(s)||this.set(O,s).set(T,o).set(N,eq(o)),n=s),this.itemType==E&&s==ex&&this.set(T,o)}break;case"cpu":var a=e[A];a&&(a&&"64"==e[Q]&&(a+="64"),eQ.call(this.data,a+";",t));break;case S:if(e[M]&&this.set(C,M),e[L]&&(this.set(L,e[L]),!this.get(C)||!this.get(P))){var l,u={};eQ.call(u,"droid 9; "+e[L]+")",t),!this.get(C)&&u.type&&this.set(C,u.type),!this.get(P)&&u.vendor&&this.set(P,u.vendor)}if(e[F]){if("string"!=typeof e[F])for(var c=0;!l&&c<e[F].length;)l=eG(e[F][c++],eJ);else l=eG(e[F],eJ);this.set(C,l)}break;case"os":var d=e[H];if(d){var p=e[W];d==eA&&(p=parseInt(eq(p),10)>=13?"11":"10"),this.set(O,d).set(T,p)}this.get(O)==eA&&"Xbox"==e[L]&&this.set(O,"Xbox").set(T,void 0);break;case I:var h=this.data,f=function(t){return h[t].getItem().setCH(e).parseCH().get()};this.set(k,f(k)).set("cpu",f("cpu")).set(S,f(S)).set(E,f(E)).set("os",f("os"))}return this},e2.VERSION="2.0.10",e2.BROWSER=eM([O,T,N,C]),e2.CPU=eM([A]),e2.DEVICE=eM([L,P,C,j,M,B,R,D,U]),e2.ENGINE=e2.OS=eM([O,T]);var e7=(i=e=>{var t,n,i,r;
1Object.defineProperty(e,"__esModule",{value:!0}),e.Status=e.AdRole=void 0,(i=t||(e.AdRole=t={})).NonLoggedInUser="Non_Logged_In_User",i.LoggedInUser="Logged_In_User",i.SubscribedUser="Subscribed_User",i.SubscribedLimitedUser="Subscribed_Limited_User",i.SubscribedAvodUser="Subscribed_Avod_User",(r=n||(e.Status=n={})).Streaming="streaming",r.NotStarted="not_started",r.Ended="ended",r.NotAvailable="not_available"},()=>(r||(i((r={exports:{}}).exports,r),i=null),r.exports));async function te(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,n=new AbortController,i=()=>n.abort(),r=setTimeout(i,t);null==e||e.addEventListener("abort",i);try{var s,o,a=await (s=await tt(n.signal),o=n.signal,new Promise((e,t)=>{let n=()=>t(o.reason);o.addEventListener("abort",n,{once:!0}),s("getTCData",2,(i,r)=>{o.removeEventListener("abort",n),!0===r?e(i):t()})}));if(e6(e8,a,"tcString"))return{gdprApplies:!0===a.gdprApplies,tcString:a.tcString,purpose1:e6(e9,a.purpose,"consents","1")?a.purpose.consents[1]:void 0};return}catch(e){}finally{clearTimeout(r),null==e||e.removeEventListener("abort",i)}}async function tt(e){return"__tcfapi"in window&&"function"==typeof window.__tcfapi?window.__tcfapi:new Promise((t,n)=>{e.addEventListener("abort",r,{once:!0});let i=setInterval(()=>{"__tcfapi"in window&&"function"==typeof window.__tcfapi&&(clearInterval(i),e.removeEventListener("abort",r),t(window.__tcfapi))},100);function r(){clearInterval(i),n(e.reason)}})}function tn(){var e;let t=new Date().getTime();return"function"==typeof(null==(e=window.performance)?void 0:e.now)&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)})}e7();var ti=(s=(e,t)=>{var n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(e,t){return new Promise(function(n,i){var r,s,o;function a(n){e.removeListener(t,l),i(n)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}g(e,t,l,{once:!0}),"error"!==t&&(r=e,s=a,o={once:!0},"function"==typeof r.on&&g(r,"error",s,o))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,i){var r,s,o;if(l(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),void 0===o)o=s[t]=n,++e._eventsCount;else if("function"==typeof o?o=s[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=u(e))>0&&o.length>r&&!o.warned){o.warned=!0;var a=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,console&&console.warn&&console.warn(a)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function h(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=Array(t),i=0;i<t;++i)n[i]=e[i];return n}function g(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function r(s){i.once&&e.removeEventListener(t,r),n(s)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
1,set:function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,s=this._events;if(void 0!==s)r=r&&void 0===s.error;else if(!r)return!1;if(r){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,a=Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else for(var u=l.length,c=m(l,u),n=0;n<u;++n)i(c[n],this,t);return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,r,s,o;if(l(t),void 0===(i=this._events)||void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,r=s;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i=this._events;if(void 0===i)return this;if(void 0===i.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0==arguments.length){var r,s=Object.keys(i);for(n=0;n<s.length;++n)"removeListener"!==(r=s[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},()=>(o||(s((o={exports:{}}).exports,o),s=null),o.exports))(),tr=class{emit(e){try{var t;null==(t=this.eventCallback)||t.call(this,e)}catch(e){}return("error"!==e.type||0!==this.eventEmitter.listenerCount("error"))&&this.eventEmitter.emit(e.type,e)}on(e,t){return this.eventEmitter.on(e,t)}off(e,t){return this.eventEmitter.off(e,t)}once(e,t){return this.eventEmitter.once(e,t)}constructor(e){e4(this,"eventCallback",void 0),e4(this,"eventEmitter",new ti.EventEmitter),this.eventCallback=e}};e7();var ts=class extends Error{get message(){return"".concat(this.assetType," asset not found. ").concat(this.asset.sourceType,": ").concat(this.asset.source)}constructor(e,t){super(),e4(this,"name","PlayerAssetNotFoundError"),e4(this,"assetType",void 0),e4(this,"asset",void 0),this.assetType=e,this.asset=t}};async function to(e,t){var n;let i=await (await fetch(e,{headers:{...t&&{Authorization:"Bearer "+t}}})).text(),r=new DOMParser().parseFromString(i,"text/xml").querySelector("geoblock");if(r&&"false"!==r.getAttribute("status"))throw new ta(null!=(n=r.textContent)?n:"")}Object.freeze({dev:{url:"https://dev-opal.nm-ovp.nelonenmedia.fi/v1",apiKey:"PJVrgFSVRt1HOe417Q4bN43cM65d5Jbv6EJJxtiz"},staging:{url:"https://sta-opal.nm-ovp.nelonenmedia.fi/v1",apiKey:"WjR91Mduq99ahiYxIqrhK1oaCFrklTbcaBjgb63x"},prod:{url:"https://opal.nm-ovp.nelonenmedia.fi/v1",apiKey:"x0gPdEMkkLaOpG3BmCQgo3vFEk97NQlz9TPWnxwd"}});
1var ta=class extends Error{constructor(e){super(),e4(this,"name","GeoblockError"),e4(this,"message",void 0),this.message=e}};function tl(e){return(tl="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 tu(e,t,n){var i;return(i=function(e,t){if("object"!=tl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=tl(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==tl(i)?i:i+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function tc(e,t,n){let i="".concat(function(e){switch(e){case"prod":return"https://mcc.nm-ovp.nelonenmedia.fi/v2";case"staging":return"https://sta-mcc.nm-ovp.nelonenmedia.fi/v2";case"dev":return"https://dev-mcc.nm-ovp.nelonenmedia.fi/v2"}}(e),"/media/").concat(t),r;try{r=await fetch(i,{headers:{...n&&{Authorization:"Bearer "+n}}})}catch(e){throw new th(i,e)}if(!r.ok)throw 404===r.status?new ts("mcc",{sourceType:"id",source:t.toString()}):new tp(i,r.status);try{return r.json()}catch(e){throw new tf(i)}}var td=class extends Error{get name(){return"Unknown MCC media error"}get message(){return"Unknown error while getting: ".concat(this.url)}constructor(e){super(),tu(this,"url",void 0),this.url=e}},tp=class extends td{get name(){return"MCC media not ok error: ".concat(this.code)}get message(){switch(this.code){case 404:return"Media not found: ".concat(this.url);case 403:return"Access denied: ".concat(this.url);default:return"Unexpected status code ".concat(this.code," for: ").concat(this.url)}}constructor(e,t){super(e),tu(this,"code",void 0),this.code=t}},th=class extends td{get name(){return"MCC media fetch error"}get message(){return this.originalErrorMessage?"Failed to fetch: ".concat(this.url," (").concat(this.originalErrorMessage,")"):"Failed to fetch: ".concat(this.url)}constructor(e,t){super(e),tu(this,"originalErrorMessage",void 0),t instanceof Error&&(this.originalErrorMessage=t.message)}},tf=class extends td{get name(){return"MCC media JSON parsing error"}get message(){return"Failed to parse JSON: ".concat(this.url)}};async function tm(e,t){let n=await tc("sta"===e?"staging":null!=e?e:"prod",t,null);if("video"!==n.type)throw Error("Invalid video type");return new tg(n)}var tg=class{get id(){return this.data.clip.metadata.mediaId}get passthroughVariables(){return this.data.clip.passthroughVariables}constructor(e){tu(this,"data",void 0),this.data=e}},{device:tv,os:tb,browser:ty}=new e2().getResult();function t_(e){var t,n,i,r,s;let{data:o}=e,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(a)return null==(n=o.clip.playback.media.streamUrls)||null==(n=n.http)?void 0:n.url;if(window.ManagedMediaSource){if((null!=(i=ty.name)&&i.includes("Safari")?parseFloat(ty.version||"0"):parseFloat(tb.version||"0"))<18.2)return null==(r=o.clip.playback.media.streamUrls)||null==(r=r.dash)?void 0:r.url}else if("iPad"===tv.model||"macOS"===tb.name&&navigator.maxTouchPoints>1)return null==(s=o.clip.playback.media.streamUrls)||null==(s=s.dash)?void 0:s.url;return null==(t=o.clip.playback.media.streamUrls)||null==(t=t.webHls)?void 0:t.url}var tw=Object.freeze(["is.fi","test.is.fi","hs.fi","test.hs.fi","Aamulehti.fi","satakunnankansa.fi","Hyvaterveys.fi","kodinkuvalehti.fi","Soppa365.fi","tyrvaansanomat.fi","janakkalansanomat.fi","kankaanpaanseutu.fi","nokianuutiset.fi","jamsanseutu.fi","suurkeuruu.fi","kmvlehti.fi","gloria.fi","valkeakoskensanomat.fi","rannikkoseutu.fi"]),tx=class e{static async init(t,n,i,r){var s,o;await function(){if(tO)return tO;let e=location.hostname.split(".").slice(-2).join("."),t=tw.find(t=>t===e)||"ruutu.fi";return tO=new Promise(e=>{let n=document.createElement("script");n.src="https://rac.".concat(t,"/js/rat.js"),n.type="text/javascript",n.onload=()=>{e()},n.onerror=()=>{e()},document.head.appendChild(n)})}();let a=await tk(i);return n&&delete a.logger.targets.finnpanel,s=a,o=location.hostname.split(".").slice(-2).join("."),tw.find(e=>e===o)&&s.logger.targets.rac&&(s.logger.targets.rac.base_url="https://rac.".concat(o,"/sat/sat.gif?")),new e(await tS(a,t),[...a.logger.events.heartbeat.interval.initial_event_timestamps,a.logger.events.heartbeat.interval.default],r)}onMediaStart(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.playbackStartSent||(this.playbackStartSent=!0,this.log(e?"video autostart":"video start")),this.contentStartSent||this.dynamicParamaters["{i.is_ad}"]||(this.log("content start"),this.contentStartSent=!0)}onPlay(){this.paused&&(this.paused=!1,this.log("play"))}onPause(){this.playbackStartSent&&(this.paused=!0,this.log("pause"))}onProgress(e){this.dynamicParamaters["{i.video_accumulated_playing_time}"]+=e,this.nextHeartbeat-=e,this.nextHeartbeat<=0&&(this.nextHeartbeat=this.heartbeatIntervals.length>1?this.heartbeatIntervals.shift():this.heartbeatIntervals[0],this.log("heartbeat"))}onCurrentTime(e){this.dynamicParamaters["{i.video_absolute_position}"]=Math.floor(1e3*e)}onStop(){this.log("stop")}onEnd(){this.contentEndSent||(this.contentEndSent=!0,this.log("content end"))}onAdStart(e){this.log("".concat(e.slot," started"),{"{e.ad_duration}":e.duration,"{e.creativeId}":e.id,"{i.current_break_index}":e.index})}onAdEnd(e){this.log("".concat(e.slot," ended"),{"{e.ad_duration}":e.duration,"{e.creativeId}":e.id})}onAdBreakStart(){this.dynamicParamaters["{i.is_ad}"]=!0}onAdBreakEnd(){this.dynamicParamaters["{i.is_ad}"]=!1}onRateChange(e){this.dynamicParamaters["{i.trickplay_speed}"]=e,this.log("trickplay adjust")}onSeek(e,t,n){this.log("dragged",{"{i.seek_start_position}":e,"{i.seek_end_position}":t,"{i.seek_button_pressed}":n})}log(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={...this.dynamicParamaters,...t,"{i.timestamp}":Date.now()};
1this.events[e].forEach(e=>{for(let t in n)e=e.replace(encodeURIComponent(t),n[t]);e=e.replace(/%7B[im]\./g,"%7B"),this.useImageRequest?this.sendRequestViaImage(e):fetch(e,{credentials:"include",mode:"no-cors"}).catch(()=>{})})}sendRequestViaImage(e){let t=new Image;t.src=e,t.onload=t.onerror=()=>{t.onload=null,t.onerror=null}}constructor(e,t,n=!1){tu(this,"events",void 0),tu(this,"dynamicParamaters",{"{i.is_ad}":!1,"{i.trickplay_speed}":1,"{i.video_player_state}":"default","{i.video_absolute_position}":0,"{i.video_rebuffering_duration}":0,"{i.video_accumulated_playing_time}":0,"{i.mirrored}":"0"}),tu(this,"heartbeatIntervals",void 0),tu(this,"useImageRequest",void 0),tu(this,"nextHeartbeat",void 0),tu(this,"playbackStartSent",!1),tu(this,"contentStartSent",!1),tu(this,"contentEndSent",!1),tu(this,"paused",!1),this.events=e,this.useImageRequest=n,this.heartbeatIntervals=[...t],this.nextHeartbeat=this.heartbeatIntervals.shift()}};async function tk(e){return await (await fetch(null!=e?e:"https://sf.nm-ovp.nelonenmedia.fi/logger/logger-ini.json")).json()}async function tS(e,t){let n={},i={};for(let n in e.logger.targets){var r;let s=e.logger.targets[n];for(let e in i[n]={},s.params)i[n][e]=null!=(r=t[s.params[e]])?r:s.params[e]}for(let t in e.logger.events){let r=e.logger.events[t];for(let s of(n[t]=[],r.targets)){if(!e.logger.targets[s])continue;let o=i[s],a=r.params[s]||{},l=[];for(let e in{...o,...a}){let t=a[e]||o[e];l.push("".concat(e,"=").concat(encodeURIComponent(t)))}n[t].push(e.logger.targets[s].base_url+l.join("&"))}}return n}var tE,tI,tO,tC,tP=new e2().getResult();tP.browser.name&&["Safari","Mobile Safari"].includes(tP.browser.name),["Mac OS","macOS"].includes(null!=(tI=tP.os.name)?tI:""),tP.os.name;var tT="iPad"===tP.device.model||"macOS"===tP.os.name&&(null==(tC=navigator)?void 0:tC.maxTouchPoints)>1,tA="mobile"===tP.device.type,tN="tablet"===tP.device.type||tT,tL=!tA&&!tN;async function tj(e,t){var n,i,r,s,o,a,l,u;let c,d;if(!e.analytics)return;let{service:p,currentSite:h,userRole:f,userAdId:m}=e.analytics,g=function(){try{let e=localStorage.getItem("cookieConsent");if(!e)throw Error("No cookie consent found");let t=JSON.parse(e);if("object"!=typeof t||!t)throw Error("Invalid cookie consent");return{spad:+(1===t.spad),spam:+(1===t.spam),spcx:+(1===t.spcx),spem:+(1===t.spem),spma:+(1===t.spma),sppd:+(1===t.sppd)}}catch(e){}return{spad:0,spam:0,spcx:0,spem:0,spma:0,sppd:0}}(),v=null===e.tcData?void 0:null!=(n=e.tcData)?n:await te();return tx.init({...((c=Object.entries(r=t.passthroughVariables).reduce((e,t)=>{let[n,i]=t;return{...e,["{m.".concat(n,"}")]:null==i?void 0:i.toString()}},{}))["{m.ic}"]=null!=(s=r.internal_class)?s:void 0,c["{m.isc}"]=null!=(o=r.internal_subclass)?o:void 0,c),"{i.player_type}":"web","{i.client_site}":"Web player","{i.player_name}":"Web player","{i.reels}":!0,"{i.player_version}":function(e){let[t,n,i]=e.split("-")[0].split(".").map(Number);return i+100*n+1e4*t}("2.4.3"),"{i.platform_type}":tA?"Mobile Phone":tL?"Desktop":tN?"Tablet":void 0,"{i.service_name}":p,"{i.current_site}":h,"{i.browser_url}":document.location.href,"{i.referrer}":document.referrer,"{i.autoplay}":!1,"{i.spam}":g.spam,"{i.sppd}":g.sppd,"{i.spcx}":g.spcx,"{i.spad}":g.spad,"{i.spma}":g.spma,"{i.custom_purposes}":function(e){if(!e)return;let{spad:t,spam:n,spcx:i,spma:r,sppd:s}=e;return"sppd: ".concat(s,",spcx: ").concat(i,",spam: ").concat(n,",spma: ").concat(r,",spad: ").concat(t)}(g),"{i.consent_odc}":function(){try{var e;let t=localStorage.getItem("sa-said");if(!t)return;let n=JSON.parse(t);return null==n||null==(e=n.data)?void 0:e.odcStatus}catch(e){}}(),"{i.consent_p1}":null!=v&&v.purpose1?1:0,"{i.finnpanel_id}":(d=new Date().getTime(),"function"==typeof(null==(a=window.performance)?void 0:a.now)&&(d+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=(d+16*Math.random())%16|0;return d=Math.floor(d/16),("x"===e?t:3&t|8).toString(16)})),"{i.ceid}":function(e){let t="racUUID";try{if(1!==e.spam||1!==e.spad||1!==e.sppd||1!==e.spma||1!==e.spcx)return void localStorage.removeItem(t);let n=localStorage.getItem(t);if(!n){let e=tn();return localStorage.setItem(t,e),e}return n}catch(e){}}(g),"{i.ecid}":(null==(l=window)||null==(l=l._satellite)||null==(u=l.getVar)?void 0:u.call(l,"ECID"))||void 0,"{i.scapi_id}":function(){try{let e=localStorage.getItem("userProfile"),t=e&&JSON.parse(e);if(t&&"string"==typeof t.hashedAccountId)return t.hashedAccountId}catch(e){}}(),"{i.service_role}":f,"{i.products}":"","{i.said}":m},!1,null==(i=e.experimental)?void 0:i.loggerIniUrl)}async function tM(e){if(e){let e=(await n.e(7642).then(n.t.bind(n,12974,19))).default;return e.log.setLevel(e.log.Level.V2),e}return(await n.e(3649).then(n.t.bind(n,85351,19))).default}tP.os.name,tP.browser.name,tP.browser.version,tP.os.name,tP.os.version,tP.ua,(()=>{try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}})();var tR=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tB=globalThis,tD="10.67.0";function tU(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"10.67.0",t[tD]=t["10.67.0"]||{}}function tV(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tB,i=n.__SENTRY__=n.__SENTRY__||{},r=i[tD]=i["10.67.0"]||{};return r[e]||(r[e]=t())}var tq={};function tF(e){if(!("console"in tB))return e();let t=tB.console,n={},i=Object.keys(tq);
1i.forEach(e=>{let i=tq[e];n[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}function tz(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];tR&&function(){return tR?tV("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&tF(()=>{tB.console[e]("".concat("Sentry Logger ","[").concat(e,"]:"),...n)})}var tH=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];tz("log",...t)},tW=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];tz("warn",...t)},tQ=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];tz("error",...t)},tG=/\(error: (.*)\)/,tY=/captureMessage|captureException/;function tJ(e){return e[e.length-1]||{}}var t$="<anonymous>";function tK(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){return}}}var tX=Object.prototype.toString;function tZ(e){switch(tX.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ne(e,Error)}}function t0(e,t){return tX.call(e)==="[object ".concat(t,"]")}function t1(e){return t0(e,"ErrorEvent")}function t2(e){return t0(e,"DOMError")}function t3(e){return t0(e,"String")}function t4(e){return"object"==typeof e&&!!e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function t6(e){return null===e||t4(e)||"object"!=typeof e&&"function"!=typeof e}function t5(e){return t0(e,"Object")}function t8(e){return"object"==typeof e&&!!e}function t9(e){return"u">typeof Event&&ne(e,Event)}function t7(e){return!!(null!=e&&e.then&&"function"==typeof e.then)}function ne(e,t){try{return e instanceof t}catch(e){return!1}}function nt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){tR&&tH('Failed to add non-enumerable property "'.concat(String(t),'" to object'),e)}}function nn(e){if(tZ(e))return{message:e.message,name:e.name,stack:e.stack,...ni(e)};if(t9(e)){let{type:t,target:n,currentTarget:i,detail:r}=e;return{type:t,target:n,currentTarget:i,...r?{detail:r}:{},...ni(e)}}return e}function ni(e){return t8(e)?Object.fromEntries(Object.entries(e)):{}}function nr(e){if(void 0!==a)return a?a(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in tB&&"function"==typeof tB[t]?(a=tB[t])(e):(a=null,e())}function ns(){return nr(()=>Math.random())}function no(){return nr(()=>Date.now())}var na=Symbol.for("sentry.skipNormalization"),nl=Symbol.for("sentry.overrideNormalizationDepth");function nu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return function e(t,n){let i,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(i=new WeakSet,[function(e){return!!i.has(e)||(i.add(e),!1)},function(e){i.delete(e)}]),[u,c]=a;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let d=function(e){try{var t;let n;if(l){let t=l(e);if(t)return t}return"u">typeof global&&e===global?"[Global]":"number"!=typeof e||Number.isFinite(e)?"function"==typeof e?"[Function: ".concat(function(e){try{return e&&"function"==typeof e&&e.name||t$}catch(e){return t$}}(e),"]"):"symbol"==typeof e?"[".concat(String(e),"]"):"bigint"==typeof e?"[BigInt: ".concat(String(e),"]"):"[object ".concat((t=e,n=Object.getPrototypeOf(t),null!=n&&n.constructor?n.constructor.name:"null prototype"),"]"):"[".concat(e,"]")}catch(e){return"**non-serializable** (".concat(e,")")}}(n);if(!d.startsWith("[object "))return d;if(n[na])return n;let p="number"==typeof(r=n[nl])?r:void 0,h=void 0===p?s:p;if(0===h)return d.replace("object ","");if(u(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{return e("",n.toJSON(),h-1,o,a)}catch(e){}let f=Array.isArray(n)?[]:{},m=0,g=nn(n);for(let t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(m>=o){f[t]="[MaxProperties ~]";break}let n=g[t];f[t]=e(t,n,h-1,o,a),m++}return c(n),f}("",e,t,n)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function nc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}
1function nd(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!t3(e)&&(t0(t,"RegExp")?t.test(e):t3(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function np(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tB.crypto||tB.msCrypto;try{if(null!=e&&e.randomUUID)return nr(()=>e.randomUUID()).replace(/-/g,"")}catch(e){}return u||(u="10000000100040008000100000000000"),u.replace(/[018]/g,e=>(e^(15&16*ns())>>e/4).toString(16))}function nh(e,t,n){let i=e.exception=e.exception||{},r=i.values=i.values||[],s=r[0]=r[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function nf(e,t){var n;let i=null==(n=e.exception)||null==(n=n.values)?void 0:n[0];if(!i)return;let r=i.mechanism;if(i.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...null==r?void 0:r.data,...t.data};i.mechanism.data=e}}function nm(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{nt(e,"__sentry_captured__",!0)}catch(e){}return!1}function ng(){return no()/1e3}function nv(){return(null!=c?c:c=function(){let{performance:e}=tB;if(!(null!=e&&e.now)||!e.timeOrigin)return ng;let t=e.timeOrigin;return()=>(t+nr(()=>e.now()))/1e3}())()}function nb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||nv(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:np()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ny(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let i={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=ny(i[e],t[e],n-1));return i}function n_(){return np().substring(16)}function nw(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch(e){return}return e}}var nx="_sentrySpan";function nk(e,t){t?nt(e,nx,function(e){try{let t=tB.WeakRef;if("function"==typeof t)return new t(e)}catch(e){}return e}(t)):delete e[nx]}var nS=class e{clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,nk(t,nw(this[nx])),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&nb(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n="function"==typeof t?t(this):t,{tags:i,attributes:r,extra:s,user:o,contexts:a,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=(n instanceof e?n.getScopeData():t5(n)?t:void 0)||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,nk(this,void 0),this._attachments=[],this.setPropagationContext({traceId:np(),sampleRand:ns()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let i={timestamp:ng(),...e,message:e.message?nc(e.message,2048):e.message};if(this._breadcrumbs.push(i),this._breadcrumbs.length>n){var r;this._breadcrumbs=this._breadcrumbs.slice(-n),null==(r=this._client)||r.recordDroppedEvent("buffer_overflow","log_item")}return this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:nw(this[nx]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ny(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=(null==t?void 0:t.event_id)||np();if(!this._client)return tR&&tW("No client configured on scope - will not capture exception!"),n;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){var i;let r=(null==n?void 0:n.event_id)||np();if(!this._client)return tR&&tW("No client configured on scope - will not capture message!"),r;let s=null!=(i=null==n?void 0:n.syntheticException)?i:Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:r},this),r}
1captureEvent(e,t){let n=e.event_id||(null==t?void 0:t.event_id)||np();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):tR&&tW("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:np(),sampleRand:ns()}}},nE=e=>e instanceof Promise&&!e[nI],nI=Symbol("chained PromiseLike"),nO=class{withScope(e){var t,n,i;let r,s=this._pushScope(),o;try{o=e(s)}catch(e){throw this._popScope(),e}return t7(o)?(t=o,n=()=>this._popScope(),i=()=>this._popScope(),nE(r=t.then(e=>(n(),e),e=>{throw i(),e}))&&nE(t)?r:((e,t)=>{if(!t)return e;let n=!1;for(let i in e){if(i in t)continue;n=!0;let r=e[i];"function"==typeof r?Object.defineProperty(t,i,{value:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.apply(e,n)},enumerable:!0,configurable:!0,writable:!0}):t[i]=r}return n&&Object.assign(t,{[nI]:!0}),t})(t,r)):(this._popScope(),o)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}constructor(e,t){let n,i;n=e||new nS,i=t||new nS,this._stack=[{scope:n}],this._isolationScope=i}};function nC(){let e=tU((tU(tB),tB));return e.stack=e.stack||new nO(tV("defaultCurrentScope",()=>new nS),tV("defaultIsolationScope",()=>new nS))}function nP(e){return nC().withScope(e)}function nT(e,t){let n=nC();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function nA(e){return nC().withScope(()=>e(nC().getIsolationScope()))}function nN(e){let t=tU(e);return t.acs?t.acs:{withIsolationScope:nA,withScope:nP,withSetScope:nT,withSetIsolationScope:(e,t)=>nA(t),getCurrentScope:()=>nC().getScope(),getIsolationScope:()=>nC().getIsolationScope()}}function nL(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};for(let[i,r]of Object.entries(null!=e?e:{})){let e=function(e,t){var n;let{value:i,unit:r}="object"==typeof e&&e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},s=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(i),o=r&&"string"==typeof r?{unit:r}:{};if(s)return{...s,...o};if(!t||"skip-undefined"===t&&void 0===i)return;let a="";try{a=null!=(n=JSON.stringify(i))?n:""}catch(e){}return{value:a,type:"string",...o}}(r,t);e&&(n[i]=e)}return n}function nj(){return nN((tU(tB),tB)).getCurrentScope()}function nM(){return nj().getClient()}var nR="sentry.op";function nB(e){return{scope:e._sentryScope,isolationScope:nw(e._sentryIsolationScope)}}function nD(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch(e){return}})}).reduce((e,t)=>{let[n,i]=t;return n&&i&&(e[n]=i),e},{})}var nU=/^o(\d+)\./,nV=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function nq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:i,pass:r,port:s,projectId:o,protocol:a,publicKey:l}=e;return"".concat(a,"://").concat(l).concat(t&&r?":".concat(r):"","@").concat(n).concat(s?":".concat(s):"","/").concat(i&&"".concat(i,"/")).concat(o)}function nF(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var nz=!1;function nH(e){return"number"==typeof e?nW(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nW(e.getTime()):nv()}function nW(e){return e>0x2540be3ff?e/1e3:e}function nQ(e){var t,n,i;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:s}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:o,name:a,endTime:l,status:u,links:c}=e;return{span_id:r,trace_id:s,data:t,description:a,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?null==(i=n.parentSpanContext)?void 0:i.spanId:void 0,start_timestamp:nH(o),timestamp:nH(l)||void 0,status:function(e){if(!(!e||0===e.code))return 1===e.code?"ok":e.message||"internal_error"}(u),op:t[nR],origin:t["sentry.origin"],links:function(e){if(e&&e.length>0)return e.map(e=>{let{context:{spanId:t,traceId:n,traceFlags:i,...r},attributes:s}=e;return{span_id:t,trace_id:n,sampled:1===i,attributes:s,...r}})}(c)}}return{span_id:r,trace_id:s,start_timestamp:0,data:{}}}var nG=function(e){return e._sentryRootSpan||e};function nY(){nz||(tF(()=>{}),nz=!0)}function nJ(e){var t;if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let n=e||(null==(t=nM())?void 0:t.getOptions());return!!n&&(null!=n.tracesSampleRate||!!n.tracesSampler)}function n$(e){tH("Ignoring span ".concat(e.op," - ").concat(e.description," because it matches `ignoreSpans`."))}function nK(e,t){if(!(null!=t&&t.length))return!1;for(let i of t){var n;
1if("string"==typeof(n=i)||n instanceof RegExp){if(e.description&&nd(e.description,i))return tR&&n$(e),!0;continue}let t=!!i.attributes&&Object.keys(i.attributes).length>0;if(!i.name&&!i.op&&!t)continue;let r=!i.name||e.description&&nd(e.description,i.name),s=!i.op||e.op&&nd(e.op,i.op),o=!i.attributes||Object.entries(i.attributes).every(t=>{var n;let[i,r]=t;return function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?nd(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}(null==(n=e.attributes)?void 0:n[i],r)});if(r&&s&&o)return tR&&n$(e),!0}return!1}var nX=Symbol.for("sentry.nonRecordingSpan");function nZ(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},r={environment:n.environment||"production",release:n.release,public_key:i,trace_id:e,org_id:function(e){let t,n=e.getOptions(),{host:i}=e.getDsn()||{},r;return n.orgId?r=String(n.orgId):i&&(r=null==(t=i.match(nU))?void 0:t[1]),r}(t)};return t.emit("createDsc",r),r}function n0(e,t){let n=t.getPropagationContext();return n.dsc||nZ(n.traceId,e)}function n1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function n2(e,t){let[n,i]=e;return[n,[...i,t]]}function n3(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function n4(e){let t=tU(tB);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}var n6={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function n5(e){return e in n6?n6[e]:e}function n8(e){if(!(null!=e&&e.sdk))return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function n9(e,t){let{extra:n,tags:i,attributes:r,user:s,contexts:o,level:a,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:p,propagationContext:h,transactionName:f,span:m}=t;n7(e,"extra",n),n7(e,"tags",i),n7(e,"attributes",r),n7(e,"user",s),n7(e,"contexts",o),e.sdkProcessingMetadata=ny(e.sdkProcessingMetadata,l,2),a&&(e.level=a),f&&(e.transactionName=f),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}
1function n7(e,t,n){e[t]=ny(e[t],n,1)}function ie(e){return new ii(t=>{t(e)})}function it(e){return new ii((t,n)=>{n(e)})}var ii=class e{then(t,n){return new e((e,i)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(e){i(e)}else e(n)},t=>{if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let i,r;return this.then(e=>{r=!1,i=e,t&&t()},e=>{r=!0,i=e,t&&t()}).then(()=>{r?n(i):e(i)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(t7(t))return void t.then(n,i);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},i=e=>{t(2,e)};try{e(n,i)}catch(e){i(e)}}constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}};function ir(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}var is=[];function io(e,t){for(let n of t)null!=n&&n.afterAllSetup&&n.afterAllSetup(e)}function ia(e,t,n){if(n[t.name]){tR&&tH("Integration skipped because it was already installed: ".concat(t.name));return}if(n[t.name]=t,is.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),is.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,i)=>n(t,i,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),i=Object.assign((t,i)=>n(t,i,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(n=>{let i=t[n];"function"==typeof i&&e.on(n,n=>i.call(t,n,e))}),tR&&tH("Integration installed: ".concat(t.name))}function il(){let e;return!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("u">typeof v?v:0))||(null==(e=tB.process)?void 0:e.type)==="renderer"}function iu(e,t){var n,i,r,s,o,a;let l,u,c=null!=(n=null!=t?t:(a=e,ic().get(a)))?n:[];if(0===c.length)return;let d=e.getOptions(),p=(i=d._metadata,r=d.tunnel,s=e.getDsn(),o=e.getDataCollectionOptions().userInfo,l={},null!=i&&i.sdk&&(l.sdk={name:i.sdk.name,version:i.sdk.version}),r&&s&&(l.dsn=nq(s)),n1(l,[(u=o?"auto":"never",[{type:"log",item_count:c.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...il()&&{ingest_settings:{infer_ip:u,infer_user_agent:u}},items:c}])]));ic().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(p)}function ic(){return tV("clientToLogBufferMap",()=>new WeakMap)}function id(e,t){var n,i,r,s,o,a;let l,u,c=null!=(n=null!=t?t:(a=e,ip().get(a)))?n:[];if(0===c.length)return;let d=e.getOptions(),p=(i=d._metadata,r=d.tunnel,s=e.getDsn(),o=e.getDataCollectionOptions().userInfo,l={},null!=i&&i.sdk&&(l.sdk={name:i.sdk.name,version:i.sdk.version}),r&&s&&(l.dsn=nq(s)),n1(l,[(u=o?"auto":"never",[{type:"trace_metric",item_count:c.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...il()&&{ingest_settings:{infer_ip:u,infer_user_agent:u}},items:c}])]));ip().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(p)}function ip(){return tV("clientToMetricBufferMap",()=>new WeakMap)}var ih=Symbol.for("SentryBufferFullError");function im(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return it(ih);let i=n();return t.add(i),i.then(()=>{t.delete(i)},()=>{t.delete(i)}),i},drain:function(e){if(!t.size)return ie(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>ir(setTimeout(()=>t(!1),e)))]):n}}}var ig=["forwarded","-ip","remote-","via","-user"],iv={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},ib="Not capturing exception because it's already been captured.",iy="Discarded session because of missing or non-string release",i_=Symbol.for("SentryInternalError"),iw=Symbol.for("SentryDoNotSendEventError");function ix(e){return{message:e,[i_]:!0}}function ik(e){return{message:e,[iw]:!0}}function iS(e){return t8(e)&&i_ in e}function iE(e){return t8(e)&&iw in e}function iI(e,t,n,i,r){let s=0,o,a=!1;e.on(n,()=>{s=0,clearTimeout(o),a=!1}),e.on(t,t=>{if((s+=i(t))>=8e5)r(e);else if(!a){var n;let t=null!=(n=e.getOptions()._flushInterval)?n:5e3;t>0&&(a=!0,o=ir(setTimeout(()=>{r(e)},t)))}}),e.on("flush",()=>{r(e)})}var iO=class{captureException(e,t,n){let i=np();if(nm(e))return tR&&tH(ib),i;let r={event_id:i,...t};return this._process(()=>this.eventFromException(e,r).then(e=>this._captureEvent(e,r,n)).then(e=>e),"error"),r.event_id}captureMessage(e,t,n,i){let r={event_id:np(),...n},s=t4(e)?e:String(e),o=t6(e),a=o?this.eventFromMessage(s,t,r):this.eventFromException(e,r);return this._process(()=>a.then(e=>this._captureEvent(e,r,i)),o?"unknown":"error"),r.event_id}captureEvent(e,t,n){let i=np();if(null!=t&&t.originalException&&nm(t.originalException))return tR&&tH(ib),i;let r={event_id:i,...t},s=e.sdkProcessingMetadata||{},o=s.capturedSpanScope,a=s.capturedSpanIsolationScope,l=iC(e.type);return this._process(()=>this._captureEvent(e,r,o||n,a),l),r.event_id}captureSession(e){this.sendSession(e),nb(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;
1if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),i=await t.flush(e);return n&&i}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(e=>{let{name:t}=e;return t.startsWith("Spotlight")}))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),ia(this,e,this._integrations),t||io(this,[e])}sendEvent(e){var t,n,i,r;let s,o,a,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,u);let c=function(e,t){var n,i,r;if("transaction"!==e.type||!(null!=(n=e.spans)&&n.length)||!(null!=(i=e.sdkProcessingMetadata)&&i.hasGenAiSpans)||!1===t.getOptions().streamGenAiSpans||"stream"===t.getOptions().traceLifecycle)return;let s=[],o=[];for(let t of e.spans)null!=(r=t.op)&&r.startsWith("gen_ai.")?s.push(function(e){var t,n;return{...t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links},attributes:nL(t.attributes),links:null==(n=t.links)?void 0:n.map(e=>({...e,attributes:nL(e.attributes)}))}}(t)):o.push(t);if(0===s.length)return;e.spans=o;let a=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:s.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...il()&&{ingest_settings:{infer_ip:a,infer_user_agent:a}},items:s}]}(e,this),d=(t=this._dsn,n=this._options._metadata,i=this._options.tunnel,s=n8(n),o=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){var n,i,r,s;if(!t)return;let o=e.sdk||{};e.sdk={...o,name:o.name||t.name,version:o.version||t.version,integrations:[...(null==(n=e.sdk)?void 0:n.integrations)||[],...t.integrations||[]],packages:[...(null==(i=e.sdk)?void 0:i.packages)||[],...t.packages||[]],settings:null!=(r=e.sdk)&&r.settings||t.settings?{...null==(s=e.sdk)?void 0:s.settings,...t.settings}:void 0}}(e,null==n?void 0:n.sdk),a=null==(r=e.sdkProcessingMetadata)?void 0:r.dynamicSamplingContext,l={event_id:e.event_id,sent_at:new Date(no()).toISOString(),...s&&{sdk:s},...!!i&&t&&{dsn:nq(t)},...a&&{trace:a}},delete e.sdkProcessingMetadata,n1(l,[[{type:o},e]]));for(let e of u.attachments||[])d=n2(d,function(e){let t="string"==typeof e.data?n4(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));c&&(d=n2(d,c)),this.sendEnvelope(d).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,i;let r,{release:s,environment:o="production"}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!s){tR&&tW(iy);return}t.release=t.release||s,t.environment=t.environment||o,e.attrs=t}else{if(!e.release&&!s){tR&&tW(iy);return}e.release=e.release||s,e.environment=e.environment||o}this.emit("beforeSendSession",e);let a=(t=this._dsn,n=this._options._metadata,i=this._options.tunnel,r=n8(n),n1({sent_at:new Date(no()).toISOString(),...r&&{sdk:r},...!!i&&t&&{dsn:nq(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(a)}recordDroppedEvent(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this._options.sendClientReports){let i="".concat(e,":").concat(t);tR&&tH('Recording outcome: "'.concat(i,'"').concat(n>1?" (".concat(n," times)"):"")),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,i=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return t(...n)};return n.add(i),()=>{n.delete(i)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r=this._hooks[e];
1r&&r.forEach(e=>e(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return tR&&tQ("Error while sending envelope:",e),{}}return tR&&tQ("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(t=>{null!=t&&t.beforeSetup&&t.beforeSetup(e)}),n.forEach(n=>{n&&ia(e,n,t)}),t),io(this,n)}_updateSessionFromEvent(e,t){var n,i;let r="fatal"===t.level,s=!1,o=null==(n=t.exception)?void 0:n.values;if(o){for(let e of(s=!0,r=!1,o))if((null==(i=e.mechanism)?void 0:i.handled)===!1){r=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&r)&&(nb(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i){let r=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),(function(e,t,n,i,r,s){var o,a,l,u;let c,d,{normalizeDepth:g=3,normalizeMaxBreadth:v=1e3}=e,b={...t,event_id:t.event_id||n.event_id||np(),timestamp:t.timestamp||ng()},y=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:i,dist:r,maxValueLength:s}=t;e.environment=e.environment||n||"production",!e.release&&i&&(e.release=i),!e.dist&&r&&(e.dist=r);let o=e.request;if(null!=o&&o.url&&s&&(o.url=nc(o.url,s)),s){var a;null==(a=e.exception)||null==(a=a.values)||a.forEach(e=>{e.value&&(e.value=nc(e.value,s))})}})(b,e),o=b,(a=y).length>0&&(o.sdk=o.sdk||{},o.sdk.integrations=[...o.sdk.integrations||[],...a]),r&&r.emit("applyFrameMetadata",t),void 0===t.type&&(l=b,c=function(e){let t=tB._sentryDebugIds,n=tB._debugIds;if(!t&&!n)return{};let i=t?Object.keys(t):[],r=n?Object.keys(n):[];if(m&&i.length===h&&r.length===f)return m;h=i.length,f=r.length,m={},p||(p={});let s=(t,n)=>{for(let i of t){let t=n[i],r=null==p?void 0:p[i];if(r&&m&&t)m[r[0]]=t,p&&(p[i]=[r[0],t]);else if(t){let n=e(i);for(let e=n.length-1;e>=0;e--){let r=n[e],s=null==r?void 0:r.filename;if(s&&m&&p){m[s]=t,p[i]=[s,t];break}}}}};return t&&s(i,t),n&&s(r,n),m}(e.stackParser),null==(u=l.exception)||null==(u=u.values)||u.forEach(e=>{var t;null==(t=e.stacktrace)||null==(t=t.frames)||t.forEach(e=>{e.filename&&(e.debug_id=c[e.filename])})}));let _=function(e,t){if(!t)return e;let n=e?e.clone():new nS;return n.update(t),n}(i,n.captureContext);n.mechanism&&nf(b,n.mechanism);let w=r?r.getEventProcessors():[],x=(d=tV("globalScope",()=>new nS).getScopeData(),s&&n9(d,s.getScopeData()),_&&n9(d,_.getScopeData()),d),k=[...n.attachments||[],...x.attachments];k.length&&(n.attachments=k),function(e,t){var n,i,r,s,o,a,l,u;let c,d,{fingerprint:p,span:h,breadcrumbs:f,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:n,tags:i,user:r,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(i).length&&(e.tags={...i,...e.tags}),Object.keys(r).length&&(e.user={...r,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),o&&(e.level=o),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),h&&((n=e).contexts={trace:function(e){let{spanId:t,traceId:n,isRemote:i}=e.spanContext(),r=i?t:nQ(e).parent_span_id,s=nB(e).scope;return{parent_span_id:r,span_id:i?(null==s?void 0:s.getPropagationContext().propagationSpanId)||n_():t,trace_id:n}}(i=h),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:function(e){var t,n,i,r,s;let o=nM();if(!o)return{};let a=nG(e),l=nQ(a),u=l.data,c=a.spanContext().traceState,d=null!=(t=null!=(n=null==c?void 0:c.get("sentry.sample_rate"))?n:u["sentry.sample_rate"])?t:u["sentry.previous_trace_sample_rate"];function p(e){return("number"==typeof d||"string"==typeof d)&&(e.sample_rate="".concat(d)),e}let h=a._frozenDsc;if(h)return p(h);let f=!!a&&!0===a[nX],m=f&&"ignored"===a.dropReason;if(f&&(!nJ(o.getOptions())||m)){let e=nB(a).scope;if(e){let t={...n0(o,e)};return m&&(t.sampled="false"),p(t)}}let g=null==c?void 0:c.get("sentry.dsc"),v=g&&function(e){let t=function(e){if(!(!e||!t3(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
1(Object.entries(nD(t)).forEach(t=>{let[n,i]=t;e[n]=i}),e),{}):nD(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,t)=>{let[n,i]=t;return n.startsWith("sentry-")&&(e[n.slice(7)]=i),e},{});if(Object.keys(n).length>0)return n}(g);if(v)return p(v);let b=nZ(e.spanContext().traceId,o),y=null!=(i=u["sentry.source"])?i:u["sentry.segment.name.source"],_=l.description;return"url"!==y&&_&&(b.transaction=_),nJ()&&(b.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return 1===t}(a)),b.sample_rand=null!=(r=null==c?void 0:c.get("sentry.sample_rand"))?r:null==(s=nB(a).scope)?void 0:s.getPropagationContext().sampleRand.toString()),p(b),o.emit("createDsc",b,a),b}(i),...n.sdkProcessingMetadata},(c=nQ(nG(i)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=c)),r=e,s=p,r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],s&&(r.fingerprint=r.fingerprint.concat(s)),r.fingerprint.length||delete r.fingerprint,o=e,a=f,d=[...o.breadcrumbs||[],...a],o.breadcrumbs=d.length?d:void 0,l=e,u=m,l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...u}}(b,x);let S=[...w,...x.eventProcessors];return(n.data&&!0===n.data.__sentry__?ie(b):function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{let r=function e(t,n,i,r){let s=i[r];if(!t||!s)return t;let o=s({...t},n);return tR&&null===o&&tH('Event processor "'.concat(s.id||"?",'" dropped event')),t7(o)?o.then(t=>e(t,n,i,r+1)):e(o,n,i,r+1)}(t,n,e,i);return t7(r)?r:ie(r)}catch(e){return it(e)}}(S,b,n)).then(e=>(e&&function(e){var t;let n={};if(null==(t=e.exception)||null==(t=t.values)||t.forEach(e=>{var t;null==(t=e.stacktrace)||null==(t=t.frames)||t.forEach(e=>{e.debug_id&&(e.abs_path?n[e.abs_path]=e.debug_id:e.filename&&(n[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(n).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let i=e.debug_meta.images;Object.entries(n).forEach(e=>{let[t,n]=e;i.push({type:"sourcemap",code_file:t,debug_id:n})})}(e),"number"==typeof g&&g>0?function(e,t,n){var i,r;if(!e)return null;let s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:nu(e.data,t,n)}}))},...e.user&&{user:nu(e.user,t,n)},...e.contexts&&{contexts:nu(e.contexts,t,n)},...e.extra&&{extra:nu(e.extra,t,n)}};return null!=(i=e.contexts)&&i.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=nu(e.contexts.trace.data,t,n))),e.spans&&(s.spans=e.spans.map(e=>({...e,...e.data&&{data:nu(e.data,t,n)}}))),null!=(r=e.contexts)&&r.flags&&s.contexts&&(s.contexts.flags=nu(e.contexts.flags,3,n)),s}(e,g,v):e))})(r,e,t,n,this,i).then(e=>{var i;
1return null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...null==(i=e.contexts)?void 0:i.trace,...function(e){let t=null==d?void 0:d();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:i,propagationSpanId:r}=e.getPropagationContext(),s={trace_id:n,span_id:r||n_()};return i&&(s.parent_span_id=i),s}(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:n0(this,n),...e.sdkProcessingMetadata}),e})}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nj(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:nN((tU(tB),tB)).getIsolationScope();return tR&&iP(e)&&tH("Captured error event `".concat(function(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];null!=n&&n.value&&(t.push(n.value),n.type&&t.push("".concat(n.type,": ").concat(n.value)))}catch(e){}return t}(e)[0]||"<unknown>","`")),this._processEvent(e,t,n,i).then(e=>e.event_id,e=>{tR&&(iE(e)?tH(e.message):iS(e)?tW(e.message):tW(e))})}_processEvent(e,t,n,i){let r=this.getOptions(),{sampleRate:s}=r,o=iT(e),a=iP(e),l="before send for type `".concat(e.type||"error","`"),u=void 0===s?void 0:function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t}(s);if(a&&"number"==typeof u&&ns()>u)return this.recordDroppedEvent("sample_rate","error"),it(ik("Discarding event because it's not included in the random sample (sampling rate = ".concat(s,")")));let c=iC(e.type);return this._prepareEvent(e,t,n,i).then(e=>{var n;if(null===e)throw this.recordDroppedEvent("event_processor",c),ik("An event processor returned `null`, will not send event.");return(null==(n=t.data)?void 0:n.__sentry__)===!0?e:function(e,t){let n="".concat(t," must return `null` or a valid event.");if(t7(e))return e.then(e=>{if(!t5(e)&&null!==e)throw ix(n);return e},e=>{throw ix("".concat(t," rejected with ").concat(e))});if(!t5(e)&&null!==e)throw ix(n);return e}(function(e,t,n,i){var r;let{beforeSend:s,beforeSendTransaction:o,ignoreSpans:a}=t,l=!((r=t.beforeSendSpan)&&"function"==typeof r&&"_streamed"in r&&r._streamed)&&t.beforeSendSpan,u=n;if(iP(u)&&s)return s(u,i);if(iT(u)){if(l||a){let t=function(e){var t,n,i;let{trace_id:r,parent_span_id:s,span_id:o,status:a,origin:l,data:u,op:c}=null!=(t=null==(i=e.contexts)?void 0:i.trace)?t:{};return{data:null!=u?u:{},description:e.transaction,op:c,parent_span_id:s,span_id:null!=o?o:"",start_timestamp:null!=(n=e.start_timestamp)?n:0,status:a,timestamp:e.timestamp,trace_id:null!=r?r:"",origin:l,profile_id:null==u?void 0:u["sentry.profile_id"],exclusive_time:null==u?void 0:u["sentry.exclusive_time"],measurements:e.measurements,is_segment:!0}}(u);if(null!=a&&a.length&&nK({description:t.description,op:t.op,attributes:t.data},a))return null;if(l){let e=l(t);e?u=ny(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}):nY()}if(u.spans){let t=[],n=u.spans;for(let e of n){if(null!=a&&a.length&&nK({description:e.description,op:e.op,attributes:e.data},a)){!function(e,t){let n=t.parent_span_id,i=t.span_id;if(n)for(let t of e)t.parent_span_id===i&&(t.parent_span_id=n)}(n,e);continue}if(l){let n=l(e);n?t.push(n):(nY(),t.push(e))}else t.push(e)}let i=u.spans.length-t.length;i&&e.recordDroppedEvent("before_send","span",i),u.spans=t}}if(o){if(u.spans){let e=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(u,i)}}return u}(this,r,e,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw ik("".concat(l," returned `null`, will not send event."))}let s=n.getSession()||i.getSession();if(a&&s&&this._updateSessionFromEvent(s,r),o){var u;let e=((null==(u=r.sdkProcessingMetadata)?void 0:u.spanCountBeforeProcessing)||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let d=r.transaction_info;return o&&d&&r.transaction!==e.transaction&&(r.transaction_info={...d,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{throw iE(e)||iS(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),ix("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e)))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===ih&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(e=>{let[t,n]=e,[i,r]=t.split(":");return{reason:i,category:r,quantity:n}})}_flushOutcomes(){var e;tR&&tH("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){tR&&tH("No outcomes to send");return}if(!this._dsn){tR&&tH("No dsn provided, will not send outcomes");return}tR&&tH("Sending outcomes:",t);let n=n1((e=this._options.tunnel&&nq(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:ng(),discarded_events:t}]]);this.sendEnvelope(n)}constructor(e){var t,n,i,r,s,o,a;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=im(null!=(t=null==(s=e.transportOptions)?void 0:s.bufferSize)?t:64),this._dataCollection=function(e){var t,n,i,r,s,o,a,l,u,c,d,p,h,f,m,g,v,b,y,_,w;let x=null==e.dataCollection?!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
1,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:ig},httpHeaders:{request:{deny:ig},response:{deny:ig}},httpBodies:[],urlQueryParams:{deny:ig},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}:iv,k=null!=(t=e.dataCollection)?t:{};return{userInfo:null!=(n=k.userInfo)?n:x.userInfo,cookies:null!=(i=k.cookies)?i:x.cookies,httpHeaders:{request:null!=(r=null==(g=k.httpHeaders)?void 0:g.request)?r:x.httpHeaders.request,response:null!=(s=null==(v=k.httpHeaders)?void 0:v.response)?s:x.httpHeaders.response},httpBodies:null!=(o=k.httpBodies)?o:x.httpBodies,urlQueryParams:null!=(a=null!=(l=k.urlQueryParams)?l:k.queryParams)?a:x.urlQueryParams,graphQL:{document:null!=(u=null==(b=k.graphQL)?void 0:b.document)?u:x.graphQL.document,variables:null!=(c=null==(y=k.graphQL)?void 0:y.variables)?c:x.graphQL.variables},genAI:{inputs:null!=(d=null==(_=k.genAI)?void 0:_.inputs)?d:x.genAI.inputs,outputs:null!=(p=null==(w=k.genAI)?void 0:w.outputs)?p:x.genAI.outputs},databaseQueryData:null!=(h=k.databaseQueryData)?h:x.databaseQueryData,stackFrameVariables:null!=(f=k.stackFrameVariables)?f:x.stackFrameVariables,frameContextLines:null!=(m=k.frameContextLines)?m:x.frameContextLines}}(e),e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=nV.exec(e);if(!t)return void tF(()=>{console.error("Invalid Sentry Dsn: ".concat(e))});let[n,i,r="",s="",o="",a=""]=t.slice(1),l="",u=a,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return nF({host:s,pass:r,path:l,projectId:u,port:o,protocol:n,publicKey:i})}(e):nF(e);if(!(!t||!function(e){if(!tR)return!0;let{port:t,projectId:n,protocol:i}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(tQ("Invalid Sentry Dsn: ".concat(t," missing")),!0))&&(n.match(/^\d+$/)?"http"===i||"https"===i?!(t&&isNaN(parseInt(t,10)))||(tQ("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):(tQ("Invalid Sentry Dsn: Invalid protocol ".concat(i)),!1):(tQ("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(t)))return t}(e.dsn):tR&&tW("No DSN provided, client will not send events."),this._dsn){let t=function(e,t,n){let i,r,s;return t||"".concat("".concat((i=e.protocol?"".concat(e.protocol,":"):"",r=e.port?":".concat(e.port):"","".concat(i,"//").concat(e.host).concat(r).concat(e.path?"/".concat(e.path):"","/api/"))).concat(e.projectId,"/envelope/"),"?").concat((s={sentry_version:"7"},e.publicKey&&(s.sentry_key=e.publicKey),n&&(s.sentry_client="".concat(n.name,"/").concat(n.version)),new URLSearchParams(s).toString()))}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=null!=(n=this._options.enableLogs)?n:null==(o=this._options._experiments)?void 0:o.enableLogs,this._options.enableLogs&&iI(this,"afterCaptureLog","flushLogs",iN,iu),(null==(i=null!=(r=this._options.enableMetrics)?r:null==(a=this._options._experiments)?void 0:a.enableMetrics)||i)&&iI(this,"afterCaptureMetric","flushMetrics",iA,id)}};function iC(e){return"replay_event"===e?"replay":e||"error"}function iP(e){return void 0===e.type}function iT(e){return"transaction"===e.type}function iA(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+iL(e.attributes)}function iN(e){let t=0;return e.message&&(t+=2*e.message.length),t+iL(e.attributes)}function iL(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ij(e[0]):t6(e)?t+=ij(e):t+=100}),t}function ij(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function iM(e){if("aggregates"in e){var t;(null==(t=e.attrs)?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"})}else void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var iR=new WeakMap;function iB(e){return tZ(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?"".concat(e.message," (").concat(e.__sentry_fetch_url_host__,")"):e.message}function iD(e,t){let n=tK(e),i=tK(t);if(!n&&!i)return!0;
1if(n&&!i||!n&&i||i.length!==n.length)return!1;for(let e=0;e<i.length;e++){let t=i[e],r=n[e];if(t.filename!==r.filename||t.lineno!==r.lineno||t.colno!==r.colno||t.function!==r.function)return!1}return!0}function iU(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return n.join("")===i.join("")}catch(e){return!1}}function iV(e){var t;return null==(t=e.exception)||null==(t=t.values)?void 0:t[0]}function iq(){let e=function(){try{return tB.document.location.href}catch(e){return""}}(),{referrer:t}=tB.document||{},{userAgent:n}=tB.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function iF(e,t){var n,i;let r,s,o=iH(e,t),a={type:!(r=null==(n=t)?void 0:n.name)&&iQ(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":r,value:(s=null==(i=t)?void 0:i.message,iQ(i)?Array.isArray(i.message)&&2==i.message.length?i.message[1]:"wasm exception":s?s.error&&"string"==typeof s.error.message?iB(s.error):iB(i):"No error message")};return o.length&&(a.stacktrace={frames:o}),void 0===a.type&&""===a.value&&(a.value="Unrecoverable error caught"),a}function iz(e,t){return{exception:{values:[iF(e,t)]}}}function iH(e,t){var n,i;let r=t.stacktrace||t.stack||"",s=(n=t)&&iW.test(n.message)?1:0,o="number"==typeof(i=t).framesToPop?i.framesToPop:0;try{return e(r,s,o)}catch(e){}return[]}var iW=/Minified React error #\d+;/i;function iQ(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function iG(e,t,n,i){let r={};if(i&&n){let i=iH(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]}),nf(r,{synthetic:!0})}if(t4(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return r.logentry={message:e,params:n},r}return r.message=t,r}var iY=class extends iO{eventFromException(e,t){var n,i;let r;return n=this._options.stackParser,i=this._options.attachStacktrace,r=function(e,t,n,i){let r;if(t1(t)&&t.error)return iz(e,t.error);if(t2(t)||t0(t,"DOMException")){if("stack"in t){var s;let o=null==(s=(r=iz(e,t)).exception)||null==(s=s.values)?void 0:s[0];if(i&&n&&o&&!o.stacktrace){let t=iH(e,n);t.length&&(o.stacktrace={frames:t},nf(r,{synthetic:!0}))}}else{let s=t.name||(t2(t)?"DOMError":"DOMException"),o=t.message?"".concat(s,": ").concat(t.message):s;nh(r=iG(e,o,n,i),o)}return"code"in t&&(r.tags={...r.tags,"DOMException.code":"".concat(t.code)}),r}return tZ(t)?iz(e,t):(t5(t)||t9(t)?nf(r=function(e,t,n,i){let r=nM(),s=null==r?void 0:r.getOptions().normalizeDepth,o=Object.values(t).find(e=>e instanceof Error),a={__serialized__:function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,r=nu(t,n);return~-encodeURI(JSON.stringify(r)).split(/%..|./).length>i?e(t,n-1,i):r}(t,s)};if(o)return{exception:{values:[iF(e,o)]},extra:a};let l={exception:{values:[{type:t9(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:function(e,t){let n,{isUnhandledRejection:i}=t,r=((n=Object.keys(nn(e))).sort(),n[0]?n.join(", "):"[object has no keys]"),s=i?"promise rejection":"exception";return t1(e)?"Event `ErrorEvent` captured as ".concat(s," with message `").concat(e.message,"`"):t9(e)?"Event `".concat(function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e),"` (type=").concat(e.type,") captured as ").concat(s):"Object captured as ".concat(s," with keys: ").concat(r)}(t,{isUnhandledRejection:i})}]},extra:a};if(n){let t=iH(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,void 0),{synthetic:!0}):(nh(r=iG(e,t,n,i),"".concat(t),void 0),nf(r,{synthetic:!0})),r)}(n,e,(null==t?void 0:t.syntheticException)||void 0,i),nf(r),r.level="error",null!=t&&t.event_id&&(r.event_id=t.event_id),ie(r)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,s=iG(e,t,(null==i?void 0:i.syntheticException)||void 0,r);return s.level=n,null!=i&&i.event_id&&(s.event_id=i.event_id),ie(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,i)}constructor(e){var t;let n=function(e){var t;return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:null==(t=tB.SENTRY_RELEASE)?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",r=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};r.name||(r.name="sentry.javascript.".concat(t),r.packages=n.map(e=>({name:"".concat(i,":@sentry/").concat(e),version:tD})),r.version=tD)})(n,"browser",["browser"],tB.SENTRY_SDK_SOURCE||"npm"),super(n);let{userInfo:i}=this.getDataCollectionOptions();null!=(t=n._metadata)&&t.sdk&&(n._metadata.sdk.settings={infer_ip:i?"auto":"never",...n._metadata.sdk.settings});let{sendClientReports:r}=this._options;tB.document&&tB.document.addEventListener("visibilitychange",()=>{"hidden"===tB.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),i&&this.on("beforeSendSession",iM)}},iJ=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,i$={};function iK(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t;let n=i$[e];if(n)return n;let i=tB[e];if((t=i)&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString()))return i$[e]=i.bind(tB);let r=tB.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let n=t.contentWindow;null!=n&&n[e]&&(i=n[e]),r.head.removeChild(t)}catch(t){iJ&&tW("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),t)}return i&&(i$[e]=i.bind(tB))}("fetch"),n=0,i=0;async function r(r){let s=r.body.length;n+=s,i++;
1let o={body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw i$.fetch=void 0,e}finally{n-=s,i--}}return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:im(e.bufferSize||64),i={};return{send:function(r){let s=[];if(n3(r,(t,n)=>{let r=n5(n);!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:no();return(e[t]||e.all||0)>n}(i,r)?s.push(t):e.recordDroppedEvent("ratelimit_backoff",r)}),0===s.length)return Promise.resolve({});let o=n1(r[0],s),a=t=>{var n;if(n=["client_report"],n3(o,(e,t)=>n.includes(t))){tR&&tW("Dropping client report. Will not send outcomes (reason: ".concat(t,")."));return}n3(o,(n,i)=>{e.recordDroppedEvent(t,n5(i))})};return n.add(()=>t({body:function(e){let[t,n]=e,i=JSON.stringify(t);function r(e){"string"==typeof i?i="string"==typeof e?i+e:[n4(i),e]:i.push("string"==typeof e?n4(e):e)}for(let e of n){let[t,n]=e;if(r("\n".concat(JSON.stringify(t),"\n")),"string"==typeof n||n instanceof Uint8Array)r(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(nu(n))}r(e)}}return"string"==typeof i?i:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let i of e)t.set(i,n),n+=i.length;return t}(i)}(o)}).then(e=>(413===e.statusCode?(tR&&tQ("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error")):(tR&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&tW("Sentry responded with status code ".concat(e.statusCode," to sent event.")),i=function(e,t){let{statusCode:n,headers:i}=t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:no(),s={...e},o=null==i?void 0:i["x-sentry-rate-limits"],a=null==i?void 0:i["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,i]=e.split(":",5),o=parseInt(t,10),a=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(s[e]=r+a):s[e]=r+a;else s.all=r+a}else a?s.all=r+function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:no(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;let i=Date.parse("".concat(e));return isNaN(i)?6e4:i-t}(a,r):429===n&&(s.all=r+6e4);return s}(i,e)),e),e=>{throw a("network_error"),tR&&tQ("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===ih)return tR&&tQ("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,r,im(e.bufferSize||40))}function iX(e,t,n,i){let r={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}var iZ=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,i0=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i1=/\((\S*)(?::(\d+))(?::(\d+))\)/,i2=/at (.+?) ?\(data:(.+?),/,i3=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,i4=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,i6=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=t.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[],s=e.split("\n");for(let e=t;e<s.length;e++){let t=s[e];t.length>1024&&(t=t.slice(0,1024));let o=tG.test(t)?t.replace(tG,"$1"):t;if(!o.includes("Error: ")){for(let e of i){let t=e(o);if(t){r.push(t);break}}if(r.length>=50+n)break}}var o=r.slice(n);if(!o.length)return[];let a=Array.from(o);return/sentryWrapped/.test(tJ(a).function||"")&&a.pop(),a.reverse(),tY.test(tJ(a).function||"")&&(a.pop(),tY.test(tJ(a).function||"")&&a.pop()),a.slice(0,50).map(e=>({...e,filename:e.filename||tJ(a).filename,function:e.function||"?"}))}}([30,e=>{let t=e.match(i2);if(t)return{filename:"<data:".concat(t[2],">"),function:t[1]};let n=iZ.exec(e);if(n){let[,e,t,i]=n;return iX(e,"?",+t,+i)}let i=i0.exec(e);if(i){var r;if((null==(r=i[2])?void 0:r.indexOf("eval"))===0){let e=i1.exec(i[2]);e&&(i[2]=e[1],i[3]=e[2],i[4]=e[3])}let[e,t]=i5(i[1]||"?",i[2]);return iX(t,e,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],[50,e=>{let t=i3.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=i4.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=i5(n,e),iX(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),i5=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1===e.indexOf("@")?"?":e.split("@")[0],n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},i8=new Map,i9=class e{get playState(){return{duration:this.video.duration,currentTime:this.video.currentTime,playbackRate:this.video.playbackRate,volume:this.video.volume,muted:this.video.muted}}static async create(t,n){let i=new e(t,await tM(),n);return i.player.attach(i.video),i}setMute(e){this.video.muted=e}setVolume(e){isNaN(e)&&(e=1),e=parseFloat((e=e=Math.max(0,Math.min(1,e))).toFixed(2)),this.video.volume=e}async play(){await this.video.play()}pause(){this.video.pause()}seekBy(e){this.seekTo(this.video.currentTime+e,!0)}seekTo(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(isNaN(e)||isNaN(this.video.duration))return;let i=Math.max(0,Math.min(this.video.duration,e));null==(t=this.logger)||t.onSeek(this.video.currentTime,i,n),this.video.currentTime=i}async load(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto";this.loadAbortSignal&&this.loadAbortSignal();let r=new AbortController;this.loadAbortSignal=()=>r.abort(),this.executionQueue=this.executionQueue.finally(async()=>
1{if((2===this.player.getLoadMode()||3===this.player.getLoadMode())&&(this.logger&&(this.logger.onStop(),this.logger=void 0),await this.player.unload(),this.eventBus.emit({type:"unloaded",trigger:i}),r.signal.aborted)||(this.preload&&this.preload.id!==t&&(await this.preload.manager.destroy(),this.preload=null),r.signal.aborted))return;this.eventBus.emit({type:"load",trigger:i,asset:{type:"mcc",sourceType:"id",source:String(t)}});let s=this.player.getStats().estimatedBandwidth;isNaN(s)||this.player.configure({abr:{defaultBandwidthEstimate:s}});let o=this.getVideo(t),a=o.then(e=>tj(this.config,e)).catch(()=>void 0);try{if(this.preload)await this.player.load(this.preload.manager);else{let e=t_(await o,this.hlsUnsupportedByBrowser);if(!e)throw Error("No valid stream URL");await this.player.load(e)}}catch(i){if(this.isUnsuppotedError(i)&&!this.hlsUnsupportedByBrowser){this.hlsUnsupportedByBrowser=!0,this.load(e,t,n);return}throw i}if(r.signal.aborted)return;e.appendChild(this.video);try{this.logger=await a}catch(e){this.captureSentryException(e)}if(r.signal.aborted)return;let l=await o;this.eventBus.emit({type:"loaded",trigger:i,asset:{type:"mcc",mediaType:l.data.clip.playback.mediaType,id:String(l.id),passthroughVariables:l.passthroughVariables,data:function(e){var t,n,i;let{clip:r}=e5(e)?e:{},{playback:s,metadata:o}=r||{};return{clip:{playback:{mediaType:"string"==typeof(null==s?void 0:s.mediaType)&&("audio_webradio"===s.mediaType||"video_clip"===s.mediaType||"video_episode"===s.mediaType||"video_live"===s.mediaType)?s.mediaType:void 0,media:{imageTemplate:"string"==typeof(null==s||null==(t=s.media)?void 0:t.imageTemplate)?s.media.imageTemplate:void 0,subtitles:Array.isArray(null==s||null==(n=s.media)?void 0:n.subtitles)?s.media.subtitles.filter(e=>e5(e)).map(e=>({name:"string"==typeof e.name?e.name:void 0,language:"string"==typeof e.language?e.language:void 0,url:"string"==typeof e.url?e.url:void 0})):void 0,stripe:e5(null==s||null==(i=s.media)?void 0:i.stripe)?{url:"string"==typeof s.media.stripe.url?s.media.stripe.url:void 0,width:"number"==typeof s.media.stripe.width?s.media.stripe.width:void 0,height:"number"==typeof s.media.stripe.height?s.media.stripe.height:void 0,splitUrls:"string"==typeof s.media.stripe.splitUrls?s.media.stripe.splitUrls:void 0}:void 0}},metadata:{parentId:"number"==typeof(null==o?void 0:o.parentId)?o.parentId:void 0,programName:"string"==typeof(null==o?void 0:o.programName)?o.programName:void 0,channelName:"string"==typeof(null==o?void 0:o.channelName)?o.channelName:void 0,description:"string"==typeof(null==o?void 0:o.description)?o.description:void 0,videoSpecs:Array.isArray(null==o?void 0:o.videoSpecs)?o.videoSpecs.filter(e=>"string"==typeof e):void 0,videoOrientation:(null==o?void 0:o.videoOrientation)==="horizontal"||(null==o?void 0:o.videoOrientation)==="vertical"||(null==o?void 0:o.videoOrientation)==="square"?o.videoOrientation:void 0,episodeName:"string"==typeof(null==o?void 0:o.episodeName)?o.episodeName:void 0,seriesName:"string"==typeof(null==o?void 0:o.seriesName)?o.seriesName:void 0,seriesId:"number"==typeof(null==o?void 0:o.seriesId)?o.seriesId:void 0,episodeNumber:"number"==typeof(null==o?void 0:o.episodeNumber)?o.episodeNumber:void 0,seasonNumber:"number"==typeof(null==o?void 0:o.seasonNumber)?o.seasonNumber:void 0}}}}(l.data)}}),this.startTrigger=i;try{await this.video.play()}catch(e){this.eventBus.emit({type:"paused",trigger:"auto",playState:this.playState,contentType:"content"})}try{if(n&&!this.hlsUnsupportedByBrowser){let e=await this.getVideo(n);if(!e||r.signal.aborted)return;let t=t_(e);if(t){let e=await this.player.preload(t);e&&(e.waitForFinish().catch(()=>{}),this.preload={id:n,manager:e})}}}catch(e){this.captureSentryException(e)}}).catch(e=>{this.captureSentryException(e),this.eventBus.emit({type:"error",trigger:"auto",error:e})}),await this.executionQueue}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";this.videoTracking.destroy(),this.player.destroy(),this.video.remove(),this.eventBus.emit({type:"destroyed",trigger:e})}async getVideo(e){var t,n,i;let r=this.videos.find(t=>
1t.id===e);if(r)return r;let s=await tm(null!=(t=null==(n=this.config.experimental)?void 0:n.env)?t:"prod",e);return null!=(i=this.config.experimental)&&i.skipGeoblockCheck||s.data.clip.playback.geoblock.enabled&&await to(s.data.clip.playback.geoblock.url),this.videos.push(s),s}isUnsuppotedError(e){return e instanceof this.shaka.util.Error&&e.code===this.shaka.util.Error.Code.CONTENT_UNSUPPORTED_BY_BROWSER}captureSentryException(e){var t;e instanceof th||e instanceof tp||e instanceof ts||null==(t=this.sentryClient)||t.captureException(e)}constructor(e,t,n){var i,r,s;tu(this,"shaka",void 0),tu(this,"player",void 0),tu(this,"video",void 0),tu(this,"videos",[]),tu(this,"config",void 0),tu(this,"sentryClient",void 0),tu(this,"eventBus",void 0),tu(this,"executionQueue",Promise.resolve()),tu(this,"loadAbortSignal",null),tu(this,"logger",void 0),tu(this,"videoTracking",void 0),tu(this,"preload",null),tu(this,"hlsUnsupportedByBrowser",!1),tu(this,"startTrigger","auto"),tu(this,"onVideoEvent",e=>{var t,n,i,r,s,o,a;switch(e.type){case"starting":this.eventBus.emit({type:"contentStarting",trigger:this.startTrigger,playState:this.playState});break;case"started":this.eventBus.emit({type:"contentStarted",trigger:this.startTrigger,playState:this.playState}),this.startTrigger="auto",null==(t=this.logger)||t.onMediaStart(),null==(n=this.logger)||n.onPlay();break;case"ended":this.eventBus.emit({type:"contentEnded",trigger:"auto"}),this.video.currentTime=0,this.video.play();break;case"playing":this.eventBus.emit({type:"resumed",trigger:"user",playState:this.playState,contentType:"content"}),null==(i=this.logger)||i.onMediaStart(),null==(r=this.logger)||r.onPlay();break;case"paused":this.eventBus.emit({type:"paused",trigger:"user",playState:this.playState,contentType:"content"}),null==(s=this.logger)||s.onPause();break;case"buffering":this.eventBus.emit({type:"buffering",trigger:"auto",playState:this.playState,contentType:"content"});break;case"position":let l=e.to-e.from;this.eventBus.emit({type:"position",trigger:"auto",playState:this.playState,contentType:"content",seek:l<0||1<l,from:e.from,to:e.to}),null==(o=this.logger)||o.onCurrentTime(e.to),null==(a=this.logger)||a.onProgress(l);break;case"mute":this.eventBus.emit({type:"mute",trigger:"user",muted:e.to});break;case"volume":this.eventBus.emit({type:"volume",trigger:"user",from:e.from,to:e.to});case"playbackRate":this.eventBus.emit({type:"playbackRate",trigger:"user",from:e.from,to:e.to})}}),this.shaka=t,this.config=e,this.eventBus=new tr(n),this.shaka.polyfill.installAll(),this.video=document.createElement("video"),this.video.controls=!1,this.video.playsInline=!0,this.video.muted=!0,this.video.volume=1,this.video.disableRemotePlayback=!0,this.video.disablePictureInPicture=!0,this.videoTracking=function(e,t){let n=e.readyState>0,i=!e.paused,r=e.ended,s=e.currentTime,o=e.duration,a=e.playbackRate,l=e.volume,u=e.muted,c=function(e,t){let n;for(n in t)e.addEventListener(n,t[n]);return function(){for(n in t)e.removeEventListener(n,t[n])}}(e,{playing:function(){n?i&&(i=!1,t({type:"playing"})):(t({type:"started",restart:r}),r=!1,n=!0,s=e.currentTime,o=e.duration)},pause:function(){r||!n||i||(e.ended?d():(i=!0,t({type:"paused"})))},waiting:function(){r||t({type:"buffering"})},timeupdate:function(){r||e.currentTime===s||(t({type:"position",to:e.currentTime,from:s}),s=e.currentTime)},durationchange:function(){n&&!r&&e.duration!==o&&(t({type:"duration",to:e.duration,from:o}),o=e.duration)},ended:d,emptied:function(){n&&(r=!0,n=!1,i=!1,t({type:"emptied"}))},volumechange:function(){e.muted!==u&&(t({type:"mute",to:e.muted}),u=e.muted),e.volume!==l&&(t({type:"volume",to:e.volume,from:l}),l=e.volume)},ratechange:function(){e.playbackRate!==a&&(t({type:"playbackRate",to:e.playbackRate,from:a}),a=e.playbackRate)},play:function(){n||t({type:"starting",restart:r})}});function d(){r||(r=!0,n=!1,t({type:"ended"}))}return{destroy:function(){c()}}}(this.video,this.onVideoEvent),this.sentryClient=function(e,t,n){let i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"production",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;if(Math.random()>=n)return;let o=i8.get(t);if(o)return o;let a=0,l=new nS,u=new iY({environment:r,dsn:e,release:t,transport:iK,stackParser:i6,integrations:[{name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=new Proxy(e,{apply(e,t,n){let i=t.__sentry_original__,r=t;try{iR.has(nM())&&i&&(r=i)}catch(e){}return Reflect.apply(e,r,n)}})}catch(e){}},setup(e){iR.set(e,!0)}},{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,n,r,s,o,a;let l,u,c,d;if(t=e,(n=i)&&(r=t,s=n,l=r.message,u=s.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&iU(r,s)&&iD(r,s)||(o=t,a=n,c=iV(a),d=iV(o),c&&d&&c.type===d.type&&c.value===d.value&&iU(o,a)&&iD(o,a))))return tR&&tW("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return i=e}},{name:"HttpContext",preprocessEvent(e){var t;if(!tB.navigator&&!tB.location&&!tB.document)return;let n=iq(),i={...n.headers,...null==(t=e.request)?void 0:t.headers};e.request={...n,...e.request,headers:i}},processSegmentSpan(e){var t,n,i;let r,s=null==(t=e.attributes)?void 0:t[nR];if(!tB.navigator&&!tB.location&&!tB.document)return;let o=iq();n={"url.full":"http.client"===s?void 0:o.url,"http.request.header.user_agent":o.headers["User-Agent"],"http.request.header.referer":o.headers.Referer},r=null!=(i=e.attributes)?i:e.attributes={}
1,Object.entries(n).forEach(e=>{let[t,n]=e;null==n||t in r||(r[t]=n)})}}],beforeSend(e){var t;return null==(t=e.exception)||null==(t=t.values)||t.forEach(e=>{e.stacktrace&&(e.stacktrace=void 0)}),a<s?(a++,e):null},normalizeDepth:5});l.setClient(u),u.init();let c={scope:l,captureException:(e,t)=>{t&&Object.entries(t).forEach(e=>{let[t,n]=e;l.setTag(t,n)}),u.captureException(e,void 0,l)},addBreadcrumb:e=>{l.addBreadcrumb(e)}};return i8.set(t,c),c}("https://[email protected]/4508499019563008","reels-2.4.3",null!=(i=null==(r=e.experimental)?void 0:r.sentrySampleRate)?i:.025,null==(s=e.experimental)?void 0:s.sentryEnv),this.player=new this.shaka.Player,this.player.configure({abrFactory:()=>{let e;return e=this.shaka,new class extends e.abr.SimpleAbrManager{segmentDownloaded(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[0]>20&&this.amountOfLoadedSegments++,super.segmentDownloaded(...t)}getBandwidthEstimate(){let e=super.getBandwidthEstimate();return this.amountOfLoadedSegments<3?.3*e:e}constructor(...e){super(...e),tu(this,"amountOfLoadedSegments",0)}}},abr:{switchInterval:4,defaultBandwidthEstimate:5e6}}),this.eventBus.emit({type:"created",trigger:"auto"})}};function i7(e,t,n,i){let[r,s]=(0,g.useState)(null),[o,a]=(0,g.useState)([]),[l,u]=(0,g.useState)({status:"idle",volume:1,isMuted:!0}),c=(0,g.useRef)(i);return(0,g.useEffect)(()=>{c.current=e=>{var n,s,o,a;let l=null!=(n=null==r?void 0:r.playState.volume)?n:1,c=null==(s=null==r?void 0:r.playState.muted)||s,d=null!=(o=null==r?void 0:r.playState.currentTime)?o:0,p=null!=(a=null==r?void 0:r.playState.duration)?a:NaN;switch(e.type){case"load":case"contentStarting":u({status:"loading",id:t,volume:l,isMuted:c});break;case"contentStarted":case"resumed":u({status:"playing",id:t,progress:d,duration:p,volume:l,isMuted:c});break;case"paused":u({status:"paused",id:t,progress:d,duration:p,volume:l,isMuted:c});break;case"buffering":u({status:"buffering",id:t,progress:d,duration:p,volume:l,isMuted:c});break;case"position":u(e=>{let t=e.status;return"playing"!==t&&"paused"!==t&&"buffering"!==t?e:{...e,status:"buffering"===t?"playing":t,progress:d,duration:p,volume:l,isMuted:c}})}null==i||i(e)}},[i,t,r]),(0,g.useEffect)(()=>{i9.create(n,e=>{var t;return null==(t=c.current)?void 0:t.call(c,e)}).then(s)},[]),(0,g.useEffect)(()=>()=>{null==r||r.destroy()},[r]),(0,g.useEffect)(()=>{if(r){var e,t,i;let s=null!=(e=n.experimental)&&e.enableSnowplowMediaEvents?function(e,t){let n,i=0,r={currentTime:0,ended:!1,paused:!0,fullscreen:!1,duration:void 0};function s(e){n=void 0,i=0,r.currentTime=0,r.duration=0,r.ended=!1,r.paused=!0,y({action:"start",player:r,media:{...t,...function(e){var t,n,i,r,s,o,a,l,u,c,d,p,h,f,m,g,v,b;switch(e.type){case"mcc":return{mediaId:String(e.passthroughVariables.nid),mediaType:e.passthroughVariables.media_type_b,name:e.passthroughVariables.program_name,channel:String(e.passthroughVariables.channel),contentOwner:null!=(t=e.passthroughVariables.content_owner)?t:void 0,series:null!=(n=e.passthroughVariables.series_name)?n:void 0,runtime:e.passthroughVariables.runtime,internalClass:e.passthroughVariables.internal_class?String(e.passthroughVariables.internal_class):void 0,internalSubclass:e.passthroughVariables.internal_subclass?String(e.passthroughVariables.internal_subclass):void 0};case"richieArticle":case"richiePodcast":return{mediaId:null==(i=e.passthroughVariables)?void 0:i.nid,mediaType:null==(r=e.passthroughVariables)?void 0:r.media_type_b,name:null==(s=e.passthroughVariables)?void 0:s.program_name,channel:String(null==(o=e.passthroughVariables)?void 0:o.channel),contentOwner:null==(a=e.passthroughVariables)?void 0:a.content_owner,series:null==(l=e.passthroughVariables)?void 0:l.series_name,runtime:null==(u=e.passthroughVariables)?void 0:u.runtime,machineAudio:null==(c=e.passthroughVariables)?void 0:c.machineAudio,noAds:null==(d=e.passthroughVariables)?void 0:d.noAds};case"tts":return{mediaId:null==(p=e.passthroughVariables)?void 0:p.nid,mediaType:null==(h=e.passthroughVariables)?void 0:h.media_type_b,name:null==(f=e.passthroughVariables)?void 0:f.program_name,contentOwner:null==(m=e.passthroughVariables)?void 0:m.content_owner,machineAudio:null==(g=e.passthroughVariables)?void 0:g.machineAudio,noAds:null==(v=e.passthroughVariables)?void 0:v.noAds,contentPricing:null==(b=e.passthroughVariables)?void 0:b.paid}}}(e.asset)}})}function o(){r.ended=!1,r.paused=!1,y({action:"play",player:r})}function a(){y({action:"end",player:r})}function l(e){y({action:"ad break start",adBreak:{startTime:e.adBreak.position,podSize:e.adBreak.ads.length,breakId:"preroll"===e.adBreak.type||"postroll"===e.adBreak.type?e.adBreak.type:"midroll_".concat(e.adBreak.index)}})}function u(){y({action:"ad break end"})}function c(e){r.currentTime=0,r.ended=!1,r.paused=!1,y({action:"ad start",ad:{adId:e.ad.id,duration:e.ad.duration,podPosition:e.ad.index+1}})}function d(){y({action:"ad end"})}function p(e){r.paused=!1,"content"===e.contentType&&y({action:"play",player:r})}function h(e){r.paused=!0,"content"===e.contentType&&y({action:"pause",player:r})}
1function f(e){r.currentTime=e.to,!e.seek&&e.to>e.from&&(i+=e.to-e.from)>=10&&(y({action:"progress",player:r}),i=0),e.seek&&y({action:"seek",player:r})}function m(e){r.fullscreen=e.fullscreen,y({action:"fullscreen change",player:r})}function g(){y({action:"rate change",player:r})}function v(){y({action:"picture-in-picture change",player:r})}function b(){r.ended=!0,r.paused=!0}function y(e){var t;n||(n=tn()),null==(t=window.dataLayer)||t.push({event:"mediaTrackingEvent",id:n,...e})}return e.on("loaded",s),e.on("contentStarted",o),e.on("contentEnded",a),e.on("adBreakStarted",l),e.on("adBreakEnded",u),e.on("adStarted",c),e.on("adEnded",d),e.on("resumed",p),e.on("paused",h),e.on("position",f),e.on("fullscreenChange",m),e.on("playbackRate",g),e.on("enterPictureInPicture",v),e.on("exitPictureInPicture",v),e.on("finished",b),{destroy:function(){e.off("loaded",s),e.off("contentStarted",o),e.on("contentEnded",a),e.off("adStarted",c),e.off("adEnded",d),e.off("resumed",p),e.off("paused",h),e.off("position",f),e.off("fullscreenChange",m),e.off("playbackRate",g),e.off("enterPictureInPicture",v),e.off("exitPictureInPicture",v),e.off("adBreakStarted",l),e.off("adBreakEnded",u),e.off("finished",b)}}}(r.eventBus,{reels:!0,serviceName:null==(t=n.analytics)?void 0:t.service,serviceRole:null==(i=n.analytics)?void 0:i.userRole}):void 0;return()=>{null==s||s.destroy()}}},[r,n]),(0,g.useEffect)(()=>{r&&e&&a(t=>e.map(e=>t.find(t=>t.id===e)||{id:e,ref:(0,g.createRef)()}))},[r,JSON.stringify(e)]),(0,g.useEffect)(()=>{var n;let i=null==(n=o.find(e=>e.id===t))?void 0:n.ref.current;if(r&&t&&i){let n=0===e.indexOf(t)?"auto":"user";r.load(i,t,e[e.indexOf(t)+1],n).catch(()=>{u({status:"error",id:t,volume:r.playState.volume,isMuted:r.playState.muted})})}},[r,t,o]),{videoContainers:o,state:l,setMute:(0,g.useMemo)(()=>e=>null==r?void 0:r.setMute(e),[r]),setVolume:(0,g.useMemo)(()=>e=>null==r?void 0:r.setVolume(e),[r]),play:(0,g.useMemo)(()=>async()=>await (null==r?void 0:r.play()),[r]),pause:(0,g.useMemo)(()=>()=>null==r?void 0:r.pause(),[r]),seekTo:(0,g.useMemo)(()=>e=>null==r?void 0:r.seekTo(e),[r]),seekBy:(0,g.useMemo)(()=>e=>null==r?void 0:r.seekBy(e),[r])}}}}]);

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.