(()=>{var mr=Object.create;var wi=Object.defineProperty;var pr=Object.getOwnPropertyDescriptor;var _r=Object.getOwnPropertyNames;var br=Object.getPrototypeOf,Ar=Object.prototype.hasOwnProperty;var gr=(c,e)=>()=>(e||c((e={exports:{}}).exports,e),e.exports);var Er=(c,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of _r(e))!Ar.call(c,r)&&r!==i&&wi(c,r,{get:()=>e[r],enumerable:!(n=pr(e,r))||n.enumerable});return c};var Sr=(c,e,i)=>(i=c!=null?mr(br(c)):{},Er(e||!c||!c.__esModule?wi(i,"default",{value:c,enumerable:!0}):i,c));var $i=gr((Ue,Ft)=>{(function(c,e){typeof Ue=="object"&&typeof Ft=="object"?Ft.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Ue=="object"?Ue.bowser=e():c.bowser=e()})(Ue,(function(){return(function(c){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return c[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=c,i.c=e,i.d=function(n,r,o){i.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:o})},i.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,r){if(1&r&&(n=i(n)),8&r||4&r&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&r&&typeof n!="string")for(var u in n)i.d(o,u,function(t){return n[t]}.bind(null,u));return o},i.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(r,"a",r),r},i.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},i.p="",i(i.s=90)})({17:function(c,e,i){"use strict";e.__esModule=!0,e.default=void 0;var n=i(18),r=(function(){function o(){}return o.getFirstMatch=function(u,t){var s=t.match(u);return s&&s.length>0&&s[1]||""},o.getSecondMatch=function(u,t){var s=t.match(u);return s&&s.length>1&&s[2]||""},o.matchAndReturnConst=function(u,t,s){if(u.test(t))return s},o.getWindowsVersionName=function(u){switch(u){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},o.getMacOSVersionName=function(u){var t=u.split(".").splice(0,2).map((function(A){return parseInt(A,10)||0}));t.push(0);var s=t[0],a=t[1];if(s===10)switch(a){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(s){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},o.getAndroidVersionName=function(u){var t=u.split(".").splice(0,2).map((function(s){return parseInt(s,10)||0}));if(t.push(0),!(t[0]===1&&t[1]<5))return t[0]===1&&t[1]<6?"Cupcake":t[0]===1&&t[1]>=6?"Donut":t[0]===2&&t[1]<2?"Eclair":t[0]===2&&t[1]===2?"Froyo":t[0]===2&&t[1]>2?"Gingerbread":t[0]===3?"Honeycomb":t[0]===4&&t[1]<1?"Ice Cream Sandwich":t[0]===4&&t[1]<4?"Jelly Bean":t[0]===4&&t[1]>=4?"KitKat":t[0]===5?"Lollipop":t[0]===6?"Marshmallow":t[0]===7?"Nougat":t[0]===8?"Oreo":t[0]===9?"Pie":void 0},o.getVersionPrecision=function(u){return u.split(".").length},o.compareVersions=function(u,t,s){s===void 0&&(s=!1);var a=o.getVersionPrecision(u),A=o.getVersionPrecision(t),f=Math.max(a,A),h=0,m=o.map([u,t],(function(b){var v=f-o.getVersionPrecision(b),q=b+new Array(v+1).join(".0");return o.map(q.split("."),(function(me){return new Array(20-me.length).join("0")+me})).reverse()}));for(s&&(h=f-Math.min(a,A)),f-=1;f>=h;){if(m[0][f]>m[1][f])return 1;if(m[0][f]===m[1][f]){if(f===h)return 0;f-=1}else if(m[0][f]1?A-1:0),h=1;h0){var Ye=Object.keys(b),pe=t.default.find(Ye,(function(Q){return m.isOS(Q)}));if(pe){var P=this.satisfies(b[pe]);if(P!==void 0)return P}var fe=t.default.find(Ye,(function(Q){return m.isPlatform(Q)}));if(fe){var Ee=this.satisfies(b[fe]);if(Ee!==void 0)return Ee}}if(me>0){var ht=Object.keys(q),Xe=t.default.find(ht,(function(Q){return m.isBrowser(Q,!0)}));if(Xe!==void 0)return this.compareVersion(q[Xe])}},f.isBrowser=function(h,m){m===void 0&&(m=!1);var b=this.getBrowserName().toLowerCase(),v=h.toLowerCase(),q=t.default.getBrowserTypeByAlias(v);return m&&q&&(v=q.toLowerCase()),v===b},f.compareVersion=function(h){var m=[0],b=h,v=!1,q=this.getBrowserVersion();if(typeof q=="string")return h[0]===">"||h[0]==="<"?(b=h.substr(1),h[1]==="="?(v=!0,b=h.substr(2)):m=[],h[0]===">"?m.push(1):m.push(-1)):h[0]==="="?b=h.substr(1):h[0]==="~"&&(v=!0,b=h.substr(1)),m.indexOf(t.default.compareVersions(q,b,v))>-1},f.isOS=function(h){return this.getOSName(!0)===String(h).toLowerCase()},f.isPlatform=function(h){return this.getPlatformType(!0)===String(h).toLowerCase()},f.isEngine=function(h){return this.getEngineName(!0)===String(h).toLowerCase()},f.is=function(h,m){return m===void 0&&(m=!1),this.isBrowser(h,m)||this.isOS(h)||this.isPlatform(h)},f.some=function(h){var m=this;return h===void 0&&(h=[]),h.some((function(b){return m.is(b)}))},A})();e.default=a,c.exports=e.default},92:function(c,e,i){"use strict";e.__esModule=!0,e.default=void 0;var n,r=(n=i(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,u=[{test:[/gptbot/i],describe:function(t){var s={name:"GPTBot"},a=r.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/chatgpt-user/i],describe:function(t){var s={name:"ChatGPT-User"},a=r.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/oai-searchbot/i],describe:function(t){var s={name:"OAI-SearchBot"},a=r.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var s={name:"ClaudeBot"},a=r.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var s={name:"Omgilibot"},a=r.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/diffbot/i],describe:function(t){var s={name:"Diffbot"},a=r.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/perplexitybot/i],describe:function(t){var s={name:"PerplexityBot"},a=r.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/perplexity-user/i],describe:function(t){var s={name:"Perplexity-User"},a=r.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/youbot/i],describe:function(t){var s={name:"YouBot"},a=r.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/meta-webindexer/i],describe:function(t){var s={name:"Meta-WebIndexer"},a=r.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/meta-externalads/i],describe:function(t){var s={name:"Meta-ExternalAds"},a=r.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/meta-externalagent/i],describe:function(t){var s={name:"Meta-ExternalAgent"},a=r.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/meta-externalfetcher/i],describe:function(t){var s={name:"Meta-ExternalFetcher"},a=r.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/googlebot/i],describe:function(t){var s={name:"Googlebot"},a=r.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/amazonbot/i],describe:function(t){var s={name:"AmazonBot"},a=r.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/bingbot/i],describe:function(t){var s={name:"BingCrawler"},a=r.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/baiduspider/i],describe:function(t){var s={name:"BaiduSpider"},a=r.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/duckduckbot/i],describe:function(t){var s={name:"DuckDuckBot"},a=r.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/ia_archiver/i],describe:function(t){var s={name:"InternetArchiveCrawler"},a=r.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var s={name:"Opera"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/opr\/|opios/i],describe:function(t){var s={name:"Opera"},a=r.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/SamsungBrowser/i],describe:function(t){var s={name:"Samsung Internet for Android"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/Whale/i],describe:function(t){var s={name:"NAVER Whale Browser"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/PaleMoon/i],describe:function(t){var s={name:"Pale Moon"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/MZBrowser/i],describe:function(t){var s={name:"MZ Browser"},a=r.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/focus/i],describe:function(t){var s={name:"Focus"},a=r.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/swing/i],describe:function(t){var s={name:"Swing"},a=r.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/coast/i],describe:function(t){var s={name:"Opera Coast"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var s={name:"Opera Touch"},a=r.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/yabrowser/i],describe:function(t){var s={name:"Yandex Browser"},a=r.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/ucbrowser/i],describe:function(t){var s={name:"UC Browser"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/Maxthon|mxios/i],describe:function(t){var s={name:"Maxthon"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/epiphany/i],describe:function(t){var s={name:"Epiphany"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/puffin/i],describe:function(t){var s={name:"Puffin"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/sleipnir/i],describe:function(t){var s={name:"Sleipnir"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/k-meleon/i],describe:function(t){var s={name:"K-Meleon"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/micromessenger/i],describe:function(t){var s={name:"WeChat"},a=r.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/qqbrowser/i],describe:function(t){var s={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},a=r.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/msie|trident/i],describe:function(t){var s={name:"Internet Explorer"},a=r.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/\sedg\//i],describe:function(t){var s={name:"Microsoft Edge"},a=r.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/edg([ea]|ios)/i],describe:function(t){var s={name:"Microsoft Edge"},a=r.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/vivaldi/i],describe:function(t){var s={name:"Vivaldi"},a=r.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/seamonkey/i],describe:function(t){var s={name:"SeaMonkey"},a=r.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/sailfish/i],describe:function(t){var s={name:"Sailfish"},a=r.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return a&&(s.version=a),s}},{test:[/silk/i],describe:function(t){var s={name:"Amazon Silk"},a=r.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/phantom/i],describe:function(t){var s={name:"PhantomJS"},a=r.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/slimerjs/i],describe:function(t){var s={name:"SlimerJS"},a=r.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var s={name:"BlackBerry"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var s={name:"WebOS Browser"},a=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/bada/i],describe:function(t){var s={name:"Bada"},a=r.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/tizen/i],describe:function(t){var s={name:"Tizen"},a=r.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/qupzilla/i],describe:function(t){var s={name:"QupZilla"},a=r.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/librewolf/i],describe:function(t){var s={name:"LibreWolf"},a=r.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var s={name:"Firefox"},a=r.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/electron/i],describe:function(t){var s={name:"Electron"},a=r.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var s={name:"Sogou Browser"},a=r.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),A=r.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),f=r.default.getFirstMatch(/se ([\d.]+)x/i,t),h=a||A||f;return h&&(s.version=h),s}},{test:[/MiuiBrowser/i],describe:function(t){var s={name:"Miui"},a=r.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/chromium/i],describe:function(t){var s={name:"Chromium"},a=r.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/chrome|crios|crmo/i],describe:function(t){var s={name:"Chrome"},a=r.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/GSA/i],describe:function(t){var s={name:"Google Search"},a=r.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:function(t){var s=!t.test(/like android/i),a=t.test(/android/i);return s&&a},describe:function(t){var s={name:"Android Browser"},a=r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/playstation 4/i],describe:function(t){var s={name:"PlayStation 4"},a=r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/safari|applewebkit/i],describe:function(t){var s={name:"Safari"},a=r.default.getFirstMatch(o,t);return a&&(s.version=a),s}},{test:[/.*/i],describe:function(t){var s=t.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:r.default.getFirstMatch(s,t),version:r.default.getSecondMatch(s,t)}}}];e.default=u,c.exports=e.default},93:function(c,e,i){"use strict";e.__esModule=!0,e.default=void 0;var n,r=(n=i(17))&&n.__esModule?n:{default:n},o=i(18),u=[{test:[/Roku\/DVP/],describe:function(t){var s=r.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:s}}},{test:[/windows phone/i],describe:function(t){var s=r.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:s}}},{test:[/windows /i],describe:function(t){var s=r.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),a=r.default.getWindowsVersionName(s);return{name:o.OS_MAP.Windows,version:s,versionName:a}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var s={name:o.OS_MAP.iOS},a=r.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return a&&(s.version=a),s}},{test:[/macintosh/i],describe:function(t){var s=r.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),a=r.default.getMacOSVersionName(s),A={name:o.OS_MAP.MacOS,version:s};return a&&(A.versionName=a),A}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var s=r.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:s}}},{test:[/OpenHarmony/i],describe:function(t){var s=r.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.HarmonyOS,version:s}}},{test:function(t){var s=!t.test(/like android/i),a=t.test(/android/i);return s&&a},describe:function(t){var s=r.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),a=r.default.getAndroidVersionName(s),A={name:o.OS_MAP.Android,version:s};return a&&(A.versionName=a),A}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var s=r.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),a={name:o.OS_MAP.WebOS};return s&&s.length&&(a.version=s),a}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var s=r.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||r.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||r.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:s}}},{test:[/bada/i],describe:function(t){var s=r.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:s}}},{test:[/tizen/i],describe:function(t){var s=r.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:s}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var s=r.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:s}}}];e.default=u,c.exports=e.default},94:function(c,e,i){"use strict";e.__esModule=!0,e.default=void 0;var n,r=(n=i(17))&&n.__esModule?n:{default:n},o=i(18),u=[{test:[/googlebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/amazonbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/yahoo/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var s=r.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",a={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return s&&(a.model=s),a}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var s=t.test(/ipod|iphone/i),a=t.test(/like (ipod|iphone)/i);return s&&!a},describe:function(t){var s=r.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:s}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var s=r.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),a={type:o.PLATFORMS_MAP.mobile,vendor:"Nokia"};return s&&(a.model=s),a}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName(!0)==="blackberry"},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return t.getBrowserName(!0)==="bada"},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName()==="windows phone"},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var s=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&s>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return t.getOSName(!0)==="android"},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getOSName(!0)==="macos"},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return t.getOSName(!0)==="windows"},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="linux"},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="playstation 4"},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="roku"},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];e.default=u,c.exports=e.default},95:function(c,e,i){"use strict";e.__esModule=!0,e.default=void 0;var n,r=(n=i(17))&&n.__esModule?n:{default:n},o=i(18),u=[{test:function(t){return t.getBrowserName(!0)==="microsoft edge"},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var s=r.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:s}}},{test:[/trident/i],describe:function(t){var s={name:o.ENGINE_MAP.Trident},a=r.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:function(t){return t.test(/presto/i)},describe:function(t){var s={name:o.ENGINE_MAP.Presto},a=r.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:function(t){var s=t.test(/gecko/i),a=t.test(/like gecko/i);return s&&!a},describe:function(t){var s={name:o.ENGINE_MAP.Gecko},a=r.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var s={name:o.ENGINE_MAP.WebKit},a=r.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return a&&(s.version=a),s}}];e.default=u,c.exports=e.default}})}))});var{entries:Bi,setPrototypeOf:Pi,isFrozen:Tr,getPrototypeOf:vr,getOwnPropertyDescriptor:Or}=Object,{freeze:H,seal:Y,create:Rt}=Object,{apply:Dt,construct:kt}=typeof Reflect<"u"&&Reflect;H||(H=function(e){return e});Y||(Y=function(e){return e});Dt||(Dt=function(e,i){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?i-1:0),r=1;r1?i-1:0),r=1;r2&&arguments[2]!==void 0?arguments[2]:st;Pi&&Pi(c,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){let o=i(r);o!==r&&(Tr(e)||(e[n]=o),r=o)}c[r]=!0}return c}function Pr(c){for(let e=0;e/gm),Dr=Y(/\$\{[\w\W]*/gm),kr=Y(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fr=Y(/^aria-[\-\w]+$/),Ui=Y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Br=Y(/^(?:\w+script|data):/i),Ur=Y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hi=Y(/^html$/i),Hr=Y(/^[a-z][.\w]*(-[.\w]+)+$/i),ki=Object.freeze({__proto__:null,ARIA_ATTR:Fr,ATTR_WHITESPACE:Ur,CUSTOM_ELEMENT:Hr,DATA_ATTR:kr,DOCTYPE_NAME:Hi,ERB_EXPR:Rr,IS_ALLOWED_URI:Ui,IS_SCRIPT_OR_DATA:Br,MUSTACHE_EXPR:xr,TMPLIT_EXPR:Dr}),Be={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gr=function(){return typeof window>"u"?null:window},Wr=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";i&&i.hasAttribute(r)&&(n=i.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Fi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Gi(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gr(),e=_=>Gi(_);if(e.version="3.3.1",e.removed=[],!c||!c.document||c.document.nodeType!==Be.document||!c.Element)return e.isSupported=!1,e;let{document:i}=c,n=i,r=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:u,Node:t,Element:s,NodeFilter:a,NamedNodeMap:A=c.NamedNodeMap||c.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:m}=c,b=s.prototype,v=Fe(b,"cloneNode"),q=Fe(b,"remove"),me=Fe(b,"nextSibling"),Ye=Fe(b,"childNodes"),pe=Fe(b,"parentNode");if(typeof u=="function"){let _=i.createElement("template");_.content&&_.content.ownerDocument&&(i=_.content.ownerDocument)}let P,fe="",{implementation:Ee,createNodeIterator:ht,createDocumentFragment:Xe,getElementsByTagName:Q}=i,{importNode:Se}=n,B=Fi();e.isSupported=typeof Bi=="function"&&typeof pe=="function"&&Ee&&Ee.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ft,ERB_EXPR:mt,TMPLIT_EXPR:pt,DATA_ATTR:ir,ARIA_ATTR:rr,IS_SCRIPT_OR_DATA:sr,ATTR_WHITESPACE:ni,CUSTOM_ELEMENT:nr}=ki,{IS_ALLOWED_URI:ai}=ki,C=null,oi=g({},[...Ii,...Pt,...Ct,...It,...xi]),I=null,li=g({},[...Ri,...xt,...Di,...rt]),M=Object.seal(Rt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,_t=null,Te=Object.seal(Rt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ci=!0,bt=!0,di=!1,ui=!0,ve=!1,Qe=!0,_e=!1,At=!1,gt=!1,Oe=!1,Ke=!1,Je=!1,hi=!0,fi=!1,ar="user-content-",Et=!0,Ie=!1,Me={},ee=null,St=g({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),mi=null,pi=g({},["audio","video","img","source","image","track"]),Tt=null,_i=g({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",Le=ne,vt=!1,Ot=null,or=g({},[Ze,je,ne],yt),et=g({},["mi","mo","mn","ms","mtext"]),tt=g({},["annotation-xml"]),lr=g({},["title","style","font","a","script"]),xe=null,cr=["application/xhtml+xml","text/html"],dr="text/html",N=null,Ne=null,ur=i.createElement("form"),bi=function(l){return l instanceof RegExp||l instanceof Function},Mt=function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ne&&Ne===l)){if((!l||typeof l!="object")&&(l={}),l=ie(l),xe=cr.indexOf(l.PARSER_MEDIA_TYPE)===-1?dr:l.PARSER_MEDIA_TYPE,N=xe==="application/xhtml+xml"?yt:st,C=K(l,"ALLOWED_TAGS")?g({},l.ALLOWED_TAGS,N):oi,I=K(l,"ALLOWED_ATTR")?g({},l.ALLOWED_ATTR,N):li,Ot=K(l,"ALLOWED_NAMESPACES")?g({},l.ALLOWED_NAMESPACES,yt):or,Tt=K(l,"ADD_URI_SAFE_ATTR")?g(ie(_i),l.ADD_URI_SAFE_ATTR,N):_i,mi=K(l,"ADD_DATA_URI_TAGS")?g(ie(pi),l.ADD_DATA_URI_TAGS,N):pi,ee=K(l,"FORBID_CONTENTS")?g({},l.FORBID_CONTENTS,N):St,Ce=K(l,"FORBID_TAGS")?g({},l.FORBID_TAGS,N):ie({}),_t=K(l,"FORBID_ATTR")?g({},l.FORBID_ATTR,N):ie({}),Me=K(l,"USE_PROFILES")?l.USE_PROFILES:!1,ci=l.ALLOW_ARIA_ATTR!==!1,bt=l.ALLOW_DATA_ATTR!==!1,di=l.ALLOW_UNKNOWN_PROTOCOLS||!1,ui=l.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=l.SAFE_FOR_TEMPLATES||!1,Qe=l.SAFE_FOR_XML!==!1,_e=l.WHOLE_DOCUMENT||!1,Oe=l.RETURN_DOM||!1,Ke=l.RETURN_DOM_FRAGMENT||!1,Je=l.RETURN_TRUSTED_TYPE||!1,gt=l.FORCE_BODY||!1,hi=l.SANITIZE_DOM!==!1,fi=l.SANITIZE_NAMED_PROPS||!1,Et=l.KEEP_CONTENT!==!1,Ie=l.IN_PLACE||!1,ai=l.ALLOWED_URI_REGEXP||Ui,Le=l.NAMESPACE||ne,et=l.MATHML_TEXT_INTEGRATION_POINTS||et,tt=l.HTML_INTEGRATION_POINTS||tt,M=l.CUSTOM_ELEMENT_HANDLING||{},l.CUSTOM_ELEMENT_HANDLING&&bi(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=l.CUSTOM_ELEMENT_HANDLING.tagNameCheck),l.CUSTOM_ELEMENT_HANDLING&&bi(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),l.CUSTOM_ELEMENT_HANDLING&&typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve&&(bt=!1),Ke&&(Oe=!0),Me&&(C=g({},xi),I=[],Me.html===!0&&(g(C,Ii),g(I,Ri)),Me.svg===!0&&(g(C,Pt),g(I,xt),g(I,rt)),Me.svgFilters===!0&&(g(C,Ct),g(I,xt),g(I,rt)),Me.mathMl===!0&&(g(C,It),g(I,Di),g(I,rt))),l.ADD_TAGS&&(typeof l.ADD_TAGS=="function"?Te.tagCheck=l.ADD_TAGS:(C===oi&&(C=ie(C)),g(C,l.ADD_TAGS,N))),l.ADD_ATTR&&(typeof l.ADD_ATTR=="function"?Te.attributeCheck=l.ADD_ATTR:(I===li&&(I=ie(I)),g(I,l.ADD_ATTR,N))),l.ADD_URI_SAFE_ATTR&&g(Tt,l.ADD_URI_SAFE_ATTR,N),l.FORBID_CONTENTS&&(ee===St&&(ee=ie(ee)),g(ee,l.FORBID_CONTENTS,N)),l.ADD_FORBID_CONTENTS&&(ee===St&&(ee=ie(ee)),g(ee,l.ADD_FORBID_CONTENTS,N)),Et&&(C["#text"]=!0),_e&&g(C,["html","head","body"]),C.table&&(g(C,["tbody"]),delete Ce.tbody),l.TRUSTED_TYPES_POLICY){if(typeof l.TRUSTED_TYPES_POLICY.createHTML!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof l.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');P=l.TRUSTED_TYPES_POLICY,fe=P.createHTML("")}else P===void 0&&(P=Wr(m,r)),P!==null&&typeof fe=="string"&&(fe=P.createHTML(""));H&&H(l),Ne=l}},Ai=g({},[...Pt,...Ct,...Cr]),gi=g({},[...It,...Ir]),hr=function(l){let d=pe(l);(!d||!d.tagName)&&(d={namespaceURI:Le,tagName:"template"});let p=st(l.tagName),O=st(d.tagName);return Ot[l.namespaceURI]?l.namespaceURI===je?d.namespaceURI===ne?p==="svg":d.namespaceURI===Ze?p==="svg"&&(O==="annotation-xml"||et[O]):!!Ai[p]:l.namespaceURI===Ze?d.namespaceURI===ne?p==="math":d.namespaceURI===je?p==="math"&&tt[O]:!!gi[p]:l.namespaceURI===ne?d.namespaceURI===je&&!tt[O]||d.namespaceURI===Ze&&!et[O]?!1:!gi[p]&&(lr[p]||!Ai[p]):!!(xe==="application/xhtml+xml"&&Ot[l.namespaceURI]):!1},te=function(l){Re(e.removed,{element:l});try{pe(l).removeChild(l)}catch{q(l)}},be=function(l,d){try{Re(e.removed,{attribute:d.getAttributeNode(l),from:d})}catch{Re(e.removed,{attribute:null,from:d})}if(d.removeAttribute(l),l==="is")if(Oe||Ke)try{te(d)}catch{}else try{d.setAttribute(l,"")}catch{}},Ei=function(l){let d=null,p=null;if(gt)l=""+l;else{let L=wt(l,/^[\r\n\t ]+/);p=L&&L[0]}xe==="application/xhtml+xml"&&Le===ne&&(l=''+l+" ");let O=P?P.createHTML(l):l;if(Le===ne)try{d=new h().parseFromString(O,xe)}catch{}if(!d||!d.documentElement){d=Ee.createDocument(Le,"template",null);try{d.documentElement.innerHTML=vt?fe:O}catch{}}let k=d.body||d.documentElement;return l&&p&&k.insertBefore(i.createTextNode(p),k.childNodes[0]||null),Le===ne?Q.call(d,_e?"html":"body")[0]:_e?d.documentElement:k},Si=function(l){return ht.call(l.ownerDocument||l,l,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},Lt=function(l){return l instanceof f&&(typeof l.nodeName!="string"||typeof l.textContent!="string"||typeof l.removeChild!="function"||!(l.attributes instanceof A)||typeof l.removeAttribute!="function"||typeof l.setAttribute!="function"||typeof l.namespaceURI!="string"||typeof l.insertBefore!="function"||typeof l.hasChildNodes!="function")},Ti=function(l){return typeof t=="function"&&l instanceof t};function ae(_,l,d){it(_,p=>{p.call(e,l,d,Ne)})}let vi=function(l){let d=null;if(ae(B.beforeSanitizeElements,l,null),Lt(l))return te(l),!0;let p=N(l.nodeName);if(ae(B.uponSanitizeElement,l,{tagName:p,allowedTags:C}),Qe&&l.hasChildNodes()&&!Ti(l.firstElementChild)&&U(/<[/\w!]/g,l.innerHTML)&&U(/<[/\w!]/g,l.textContent)||l.nodeType===Be.progressingInstruction||Qe&&l.nodeType===Be.comment&&U(/<[/\w]/g,l.data))return te(l),!0;if(!(Te.tagCheck instanceof Function&&Te.tagCheck(p))&&(!C[p]||Ce[p])){if(!Ce[p]&&Mi(p)&&(M.tagNameCheck instanceof RegExp&&U(M.tagNameCheck,p)||M.tagNameCheck instanceof Function&&M.tagNameCheck(p)))return!1;if(Et&&!ee[p]){let O=pe(l)||l.parentNode,k=Ye(l)||l.childNodes;if(k&&O){let L=k.length;for(let W=L-1;W>=0;--W){let oe=v(k[W],!0);oe.__removalCount=(l.__removalCount||0)+1,O.insertBefore(oe,me(l))}}}return te(l),!0}return l instanceof s&&!hr(l)||(p==="noscript"||p==="noembed"||p==="noframes")&&U(/<\/no(script|embed|frames)/i,l.innerHTML)?(te(l),!0):(ve&&l.nodeType===Be.text&&(d=l.textContent,it([ft,mt,pt],O=>{d=De(d,O," ")}),l.textContent!==d&&(Re(e.removed,{element:l.cloneNode()}),l.textContent=d)),ae(B.afterSanitizeElements,l,null),!1)},Oi=function(l,d,p){if(hi&&(d==="id"||d==="name")&&(p in i||p in ur))return!1;if(!(bt&&!_t[d]&&U(ir,d))){if(!(ci&&U(rr,d))){if(!(Te.attributeCheck instanceof Function&&Te.attributeCheck(d,l))){if(!I[d]||_t[d]){if(!(Mi(l)&&(M.tagNameCheck instanceof RegExp&&U(M.tagNameCheck,l)||M.tagNameCheck instanceof Function&&M.tagNameCheck(l))&&(M.attributeNameCheck instanceof RegExp&&U(M.attributeNameCheck,d)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(d,l))||d==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&U(M.tagNameCheck,p)||M.tagNameCheck instanceof Function&&M.tagNameCheck(p))))return!1}else if(!Tt[d]){if(!U(ai,De(p,ni,""))){if(!((d==="src"||d==="xlink:href"||d==="href")&&l!=="script"&&Nr(p,"data:")===0&&mi[l])){if(!(di&&!U(sr,De(p,ni,"")))){if(p)return!1}}}}}}}return!0},Mi=function(l){return l!=="annotation-xml"&&wt(l,nr)},Li=function(l){ae(B.beforeSanitizeAttributes,l,null);let{attributes:d}=l;if(!d||Lt(l))return;let p={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0},O=d.length;for(;O--;){let k=d[O],{name:L,namespaceURI:W,value:oe}=k,ye=N(L),Nt=oe,x=L==="value"?Nt:yr(Nt);if(p.attrName=ye,p.attrValue=x,p.keepAttr=!0,p.forceKeepAttr=void 0,ae(B.uponSanitizeAttribute,l,p),x=p.attrValue,fi&&(ye==="id"||ye==="name")&&(be(L,l),x=ar+x),Qe&&U(/((--!?|])>)|<\/(style|title|textarea)/i,x)){be(L,l);continue}if(ye==="attributename"&&wt(x,"href")){be(L,l);continue}if(p.forceKeepAttr)continue;if(!p.keepAttr){be(L,l);continue}if(!ui&&U(/\/>/i,x)){be(L,l);continue}ve&&it([ft,mt,pt],yi=>{x=De(x,yi," ")});let Ni=N(l.nodeName);if(!Oi(Ni,ye,x)){be(L,l);continue}if(P&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!W)switch(m.getAttributeType(Ni,ye)){case"TrustedHTML":{x=P.createHTML(x);break}case"TrustedScriptURL":{x=P.createScriptURL(x);break}}if(x!==Nt)try{W?l.setAttributeNS(W,L,x):l.setAttribute(L,x),Lt(l)?te(l):Ci(e.removed)}catch{be(L,l)}}ae(B.afterSanitizeAttributes,l,null)},fr=function _(l){let d=null,p=Si(l);for(ae(B.beforeSanitizeShadowDOM,l,null);d=p.nextNode();)ae(B.uponSanitizeShadowNode,d,null),vi(d),Li(d),d.content instanceof o&&_(d.content);ae(B.afterSanitizeShadowDOM,l,null)};return e.sanitize=function(_){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=null,p=null,O=null,k=null;if(vt=!_,vt&&(_=""),typeof _!="string"&&!Ti(_))if(typeof _.toString=="function"){if(_=_.toString(),typeof _!="string")throw ke("dirty is not a string, aborting")}else throw ke("toString is not a function");if(!e.isSupported)return _;if(At||Mt(l),e.removed=[],typeof _=="string"&&(Ie=!1),Ie){if(_.nodeName){let oe=N(_.nodeName);if(!C[oe]||Ce[oe])throw ke("root node is forbidden and cannot be sanitized in-place")}}else if(_ instanceof t)d=Ei(""),p=d.ownerDocument.importNode(_,!0),p.nodeType===Be.element&&p.nodeName==="BODY"||p.nodeName==="HTML"?d=p:d.appendChild(p);else{if(!Oe&&!ve&&!_e&&_.indexOf("<")===-1)return P&&Je?P.createHTML(_):_;if(d=Ei(_),!d)return Oe?null:Je?fe:""}d&>&&te(d.firstChild);let L=Si(Ie?_:d);for(;O=L.nextNode();)vi(O),Li(O),O.content instanceof o&&fr(O.content);if(Ie)return _;if(Oe){if(Ke)for(k=Xe.call(d.ownerDocument);d.firstChild;)k.appendChild(d.firstChild);else k=d;return(I.shadowroot||I.shadowrootmode)&&(k=Se.call(n,k,!0)),k}let W=_e?d.outerHTML:d.innerHTML;return _e&&C["!doctype"]&&d.ownerDocument&&d.ownerDocument.doctype&&d.ownerDocument.doctype.name&&U(Hi,d.ownerDocument.doctype.name)&&(W=" `+W),ve&&it([ft,mt,pt],oe=>{W=De(W,oe," ")}),P&&Je?P.createHTML(W):W},e.setConfig=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mt(_),At=!0},e.clearConfig=function(){Ne=null,At=!1},e.isValidAttribute=function(_,l,d){Ne||Mt({});let p=N(_),O=N(l);return Oi(p,O,d)},e.addHook=function(_,l){typeof l=="function"&&Re(B[_],l)},e.removeHook=function(_,l){if(l!==void 0){let d=Mr(B[_],l);return d===-1?void 0:Lr(B[_],d,1)[0]}return Ci(B[_])},e.removeHooks=function(_){B[_]=[]},e.removeAllHooks=function(){B=Fi()},e}var Wi=Gi();var $r=["download-button","other-platforms-block","download-checkbox","download-radio","update-link","simplify-download","eula-download","other-download","download-selector","direct-download","deprecated-banner","deprecation-description","context-download"],Vr=[{component:"download-button",path:"common/download-button/download-button.tpl"},{component:"other-platforms-block",path:"blocks/other-platforms/other-platforms-block.tpl"},{component:"download-checkbox",path:"common/download-checkbox/download-checkbox.tpl"},{component:"download-radio",path:"common/download-radio/download-radio.tpl"},{component:"update-link",path:"common/update-link/update-link.tpl"},{component:"simplify-download",path:"blocks/simplify-download/simplify-download.tpl"},{component:"context-download",path:"blocks/context-download/context-download.tpl"},{component:"eula-download",path:"blocks/eula-download/eula-download.tpl"},{component:"other-download",path:"blocks/other-download/other-download.tpl"},{component:"download-selector",path:"common/download-selector/download-selector.tpl"},{component:"direct-download",path:"common/direct-download/direct-download.tpl"},{component:"deprecated-banner",path:"common/deprecated-banner/deprecated-banner.tpl"},{component:"deprecation-description",path:"common/deprecation-description/deprecation-description.tpl"}],qr="/chrome/static/installer/html/components/",J=class c{constructor(){if(c.instance)return c.instance;c.instance=this,this.htmls={},this.setHtmls_()}setHtmls_(){Vr.forEach(e=>{this.htmls[e.component]=this.getComponetText_(e)})}getComponetText_(e){let i=`${qr}${e.path}`;return new Promise(n=>{let r=window.sessionStorage.getItem(e.component);if(r){let o=[...$r,"svg","use"],u=Wi.sanitize(r,{ADD_TAGS:o,ADD_ATTR:["xlink:href"]});n(u)}else fetch(i).then(o=>o.text()).then(o=>{window.sessionStorage.setItem(e.component,o),n(o)}).catch(o=>{console.log(o)})})}getHtml_(e){return this.htmls[e]}};var Ki=Sr($i());var He={STABLE:"stable",DEV:"dev",BETA:"beta",CANARY:"canary"},Vi=[He.DEV,He.BETA,He.CANARY];var qi=new Set(["mac","mac49","mac65","mac88","mac104","mac116","mac129","mac139","linux","debian","fedora","chromeos","ios","android","win","win_arm64","win49","win64","win110","win110_64","unknown"]),S={LINUX:{DEFAULT:"linux",FEDORA:"fedora",DEBIAN:"debian"},MAC:"mac",MAC49:"mac49",MAC65:"mac65",MAC88:"mac88",MAC104:"mac104",MAC116:"mac116",MAC129:"mac129",MAC139:"mac139",MAC_DEV:"mac_dev",MAC_BETA:"mac_beta",MAC_CANARY:"mac_canary",WIN:"win",WIN_ARM64:"win_arm64",WIN49:"win49",WIN64:"win64",WIN110:"win110",WIN110_64:"win110_64",IOS:"ios",ANDROID:"android",UNKNOWN:"unknown",CHROMEOS:"chromeOS",WIN_STANDALONE:{dev:"win_standalone_dev",beta:"win_standalone_beta",stable:"win_standalone"},WIN64_STANDALONE:{dev:"win64_standalone_dev",beta:"win64_standalone_beta",stable:"win64_standalone"},WIN_ARM_STANDALONE:{dev:"win_arm64_standalone_dev",beta:"win_arm64_standalone_beta",stable:"win_arm64_standalone"}},Bt={WIN:"x86",WIN_ARM64:"arm",WIN49:"x86",WIN64:"x64",WIN110:"x86",WIN110_64:"x64"},Ae={X64:"x64",X86:"x86",ARM:"arm"},Ge={win:{stable:"{8A69D345-D564-463C-AFF1-A69D9E530F96}",beta:"{8237E44A-0054-442C-B6B6-EA0509993955}",dev:"{401C381F-E0DE-4B85-8BD8-3F3F14FBDA57}",canary:"{4EA16AC7-FD5A-47C3-875B-DBF4A2008C20}"},mac:{stable:"COM.GOOGLE.CHROME",beta:"COM.GOOGLE.CHROME.BETA",dev:"COM.GOOGLE.CHROME.DEV",canary:"COM.GOOGLE.CHROME.CANARY"},linux:"{09B7AEA4-0188-44A4-B064-96CEFC2C3DA6}",android:"{387E11AD-7109-45F6-83CF-CAA241ADC9DF}",ios:"{13976EAF-2B4D-4030-BBD5-8C06D138A2BA}",default:"{8A69D345-D564-463C-AFF1-A69D9E530F96}"},zi={stable:"Google%20Chrome",beta:"Google%20Chrome%20Beta",dev:"Google%20Chrome%20Dev",canary:"Google%20Chrome%20Canary"},nt={ie:2,firefox:3,chrome:4,edge:5,default:0},Yi="https://dl.google.com",at={ANDROID_STABLE:"https://play.google.com/store/apps/details?id=com.android.chrome",ANDROID_DEV:"https://play.google.com/store/apps/details?id=com.chrome.dev",ANDROID_BETA:"https://play.google.com/store/apps/details?id=com.chrome.beta",ANDROID_CANARY:"https://play.google.com/store/apps/details?id=com.chrome.canary",IOS_STABLE:"https://itunes.apple.com/us/app/chrome/id535886823",IOS_BETA:"https://testflight.apple.com/join/LPQmtkUs",DEBIAN:"/linux/direct/google-chrome-stable_current_amd64.deb",DEBIAN_BETA:"/linux/direct/google-chrome-beta_current_amd64.deb",DEBIAN_DEV:"/linux/direct/google-chrome-unstable_current_amd64.deb",DEBIAN_CANARY:"/linux/direct/google-chrome-canary_current_amd64.deb",FEDORA:"/linux/direct/google-chrome-stable_current_x86_64.rpm",FEDORA_BETA:"/linux/direct/google-chrome-beta_current_x86_64.rpm",FEDORA_DEV:"/dl/linux/direct/google-chrome-unstable_current_x86_64.rpm",FEDORA_CANARY:"/dl/linux/direct/google-chrome-canary_current_x86_64.rpm",LINUX:"/linux/direct/google-chrome-stable_current_amd64.deb",MAC:"/chrome/mac/universal/stable/%s/googlechrome.dmg",MAC49:"/dl/chrome/mac/legacy/%s/googlechrome.dmg",MAC65:"/dl/chrome/mac/legacy10_9/%s/googlechrome.dmg",MAC88:"/dl/chrome/mac/legacy10_10/%s/googlechrome.dmg",MAC104:"/dl/chrome/mac/legacy10_11/%s/googlechrome.dmg",MAC116:"/dl/chrome/mac/legacy10_13/%s/googlechrome.dmg",MAC129:"/dl/chrome/mac/legacy10_15/%s/googlechrome.dmg",MAC139:"/dl/chrome/mac/legacy11/%s/googlechrome.dmg",MAC_BETA:"/chrome/mac/universal/beta/googlechromebeta.dmg",MAC_CANARY:"/chrome/mac/universal/canary/googlechromecanary.dmg",MAC_DEV:"/chrome/mac/universal/dev/googlechromedev.dmg",WIN:"/tag/s/%s/update2/installers/ChromeSetup.exe",WIN64:"/tag/s/%s/update2/installers/ChromeSetup.exe",WIN_ARM64:"/tag/s/%s/update2/installers/ChromeSetup.exe",WIN49:"/tag/s/%s/update2/installers/win_xp/ChromeSetup.exe",WIN110_64:"/tag/s/%s/update2/installers/win_7/ChromeSetup.exe",WIN110:"/tag/s/%s/update2/installers/win_7/ChromeSetup.exe",WIN_STANDALONE_BETA:"/tag/s/%s/chrome/install/beta/ChromeBetaStandaloneSetup.exe",WIN_STANDALONE_DEV:"/tag/s/%s/chrome/install/dev/ChromeDevStandaloneSetup.exe",WIN_STANDALONE_STABLE:"/tag/s/%s/chrome/install/ChromeStandaloneSetup.exe",WIN64_STANDALONE_STABLE:"/tag/s/%s/chrome/install/ChromeStandaloneSetup64.exe",WIN64_STANDALONE_BETA:"/tag/s/%s/chrome/install/beta/ChromeBetaStandaloneSetup64.exe",WIN64_STANDALONE_DEV:"/tag/s/%s/chrome/install/dev/ChromeDevStandaloneSetup64.exe",WIN_ARM64_STANDALONE_STABLE:"/tag/s/%s/chrome/install/ChromeStandaloneSetupARM64.exe",WIN_ARM64_STANDALONE_BETA:"/tag/s/%s/chrome/install/beta/ChromeBetaStandaloneSetupARM64.exe",WIN_ARM64_STANDALONE_DEV:"/tag/s/%s/chrome/install/dev/ChromeDevStandaloneSetupARM64.exe"},re={WINXP:"win-xp",WINVISTA:"win-vista",WIN7:"win-7",WIN8:"win-8",WIN10:"win-10"},We={mac:{DEFAULT:"GGRO",LOOKUP:[{REGEX:/^GGRO$/,VALUE:"GGRO"},{REGEX:/^OQMJ$/,VALUE:"OQMJ"},{REGEX:/^OZZY$/,VALUE:"OZZY"},{REGEX:/^RXSR$/,VALUE:"RXSR"},{REGEX:/^BAPC$/,VALUE:"BAPC"},{REGEX:/^LDPL$/,VALUE:"LDPL"},{REGEX:/^LSJR$/,VALUE:"LSJR"},{REGEX:/^NXHP$/,VALUE:"NXHP"},{REGEX:/^GKPW$/,VALUE:"GKPW"},{REGEX:/^ZNUK$/,VALUE:"ZNUK"},{REGEX:/^PBUL$/,VALUE:"PBUL"},{REGEX:/^KXLH$/,VALUE:"KXLH"},{REGEX:/^XQIR$/,VALUE:"XQIR"},{REGEX:/^AJCO$/,VALUE:"AJCO"},{REGEX:/^HKFL$/,VALUE:"HKFL"},{REGEX:/^CMPY$/,VALUE:"CMPY"},{REGEX:/^VOKR$/,VALUE:"VOKR"},{REGEX:/^PYEH$/,VALUE:"PYEH"},{REGEX:/^JHUI$/,VALUE:"JHUI"},{REGEX:/^DXUD$/,VALUE:"DXUD"},{REGEX:/^QUGG$/,VALUE:"QUGG"},{REGEX:/^HHHW$/,VALUE:"HHHW"},{REGEX:/^FNOS$/,VALUE:"FNOS"},{REGEX:new RegExp("^("+["CHOA","CHOB","CHOC","CHOT","CHOU","CHOR","CHOQ","CHOP","CHON","CHOO","CHPD","CHPE","CHPF","CHPG","GGLS","GGLA","CHMA","CHMB","CHMF","CHMG","CHMQ","CHMV","CHNC","CHNB","CHNH","CHNI","CHFT","CHMI","CHNG","CHOS","CHFO","CHOX","CHOY","CHOZ","CHMH","CHME","CHHS","CHHM","GGRM"].join("|")+")$"),VALUE:"GGRM"},{REGEX:/^[A-Z]{4}$/,VALUE:"CHFA"}]}},Xi={stable:"/chrome/next-steps.html",dev:"/chrome/dev/next-steps.html",beta:"/chrome/beta/next-steps.html",canary:"/chrome/canary/next-steps.html"};var T={CUSTOM_DOWNLOAD_EVENT:"customDownloadEvent",FILENAME:"fileName",HAS_INSTALLED:"hasInstalled",IID:"iid",INSTALLER_PATH:"installer",PLATFORMS:"platforms",PING_URL:"ping"},X={BRAND:"brand",DEBUG:"debug",SYSTEM:"system",PLATFORM:"platform",STANDALONE:"standalone"};var Z={CHANNEL:"channel",TY:"ty",EXPERIMENT:"experiment",PLATFORM:"platform",STANDALONE:"standalone"},le={TY:"thankyou",INDEX:"index",INSTALL:"install",RETRY:"retry",EULA:"eula"},ot={STABLE:"stable",DEV:"dev",BETA:"beta",CANARY:"canary"},Ut={WOW:"WOW64",WIN64:"Win64"},y={OS:{macOS:"mac",Windows:"win",iOS:"ios",Android:"android","Chrome OS":"chromeos",Linux:"linux"},BROWSER:{"Samsung Internet for Android":"samsung",Chrome:"chrome","Microsoft Edge":"edge",Firefox:"firefox",Safari:"safari",Opera:"opera"}},Ht={DEFAULT:"en_US",LIST:["en_US","ar_SA","bg_BG","ca_CA","cs_CZ","da_DK","de_DE","el_GR","en_GB","en_SG","es_419","es_ES","es_US","et_EE","fa_FA","fi_FI","fil_PH","fr_CA","fr_FR","he_HE","hi_IN","hr_HR","hu_HU","id_ID","it_IT","ja_JP","ko_KR","lt_LT","lv_LV","ms_MY","nb_NO","nl_NL","pl_PL","pt_PT","pt_BR","ro_RO","ru_RU","sk_SL","sl_SI","sr_SR","sv_SE","th_TH","tr_TR","uk_UA","vi_VN","zh_Hans_CN","zh_Hans_HK","zh_Hant_TW"]},Qi="data-ga-installer-config";var Gt=class c{constructor(e=null){this.userAgent_=e??navigator.userAgent,this.environment_=new Promise(i=>{this.resolveEnvironment_=i}),this.clientHints_=this.setClientHints_(),this.clientHints_?this.getClientHints_():(this.arch_=this.setArchByUA_(),this.setEnvironment_(this.userAgent_)),c.instance=this}setArchByUA_(){return this.userAgent_.match(Ut.WOW)!==null||this.userAgent_.match(Ut.WIN64)!==null?Ae.X64:Ae.X32}setEnvironment_(e){let i=this.isIpad_(),{os:n,browser:r}=Ki.default.parse(e);return this.resolveEnvironment_({os:i?y.OS.iOS:y.OS[n.name],browser:y.BROWSER[r.name],arch:this.arch_,bitness:this.bitness_,platformVersion:this.platformVersion_,version:n.version}),this.environment_}isIpad_(){let e=navigator.userAgent,i=navigator.maxTouchPoints||0,n=window.DeviceMotionEvent||window.DeviceOrientationEvent;return e.includes("Macintosh")&&"ontouchend"in document&&i>0&&n}getEnvironment_(){return this.environment_}setClientHints_(){return navigator.userAgentData?.getHighEntropyValues(["architecture","bitness","platformVersion"])??void 0}async getClientHints_(){try{let{architecture:e,bitness:i,platformVersion:n}=await this.clientHints_;e==="arm"?(this.arch_=e,this.bitness_=i):this.arch_=this.setArchByUA_(),this.platformVersion_=n?parseInt(n.split(".")[0]):null,this.setEnvironment_(this.userAgent_)}catch(e){console.error(e)}}},lt=Gt;var E={STATSCHANGED:"statschanged",PLATFORMCHANGED:"platformchanged",DEFAULTCHANGED:"defaultchanged",CHECKBOX_CHANGED:"checkbox_changed",SELECTOR_POPULATE:"selector_populate",SELECTOR_DEFAULT:"selector_default",UPDATE_DOWNLOAD_PATH:"update_download_path",EULA_TRIGGER:"show_modal_eula-modal-shell",EULA_OPEN:"eula_open",RADIO_CHANGED:"radiochanged",OSCHANGED:"oschanged",PAGE_SHOW:"pageshow"},$={FILE_DOWNLOAD:"chrome_file_download",FILE_DOWNLOAD_MAC_SAFARI:"chrome_file_download_mac_safari",FILE_DOWNLOAD_WIN10:"chrome_file_download_win_10",FILE_DOWNLOAD_WIN11:"chrome_file_download_win_11",DOWNLOAD_CTA_CLICK:"download_chrome_cta_click",BUILD_CLICK_EVENT:"build_click_event",DOWNLOAD_START:"chrome_download_start",COMBO_SELECT:"combochanged"};var Wt=class{constructor(){this.url_=new URL(window.location.href),this.params_=new URLSearchParams(this.url_.search)}getQueryParam(e){return this.params_.get(e)}},j=Wt;var $e=class{constructor(){this.brandQp_=new j().getQueryParam(X.BRAND),this.expBrandcode_=this.setBrandcodeExperiment()}getBrandCode_({platformOS:e,platform:i,channel:n}){return e!==y.OS.macOS?this.brandQp_?this.brandQp_:null:i!==S.MAC?We.mac.DEFAULT:this.expBrandcode_?this.expBrandcode_:n!==He.STABLE?null:this.setMacBrandcode_(this.brandQp_)}setBrandcodeExperiment(){if(document.body.dataset[Z.EXPERIMENT]){let e=JSON.parse(document.body.dataset[Z.EXPERIMENT]).brand??null;if(e)return e}}setMacBrandcode_(e){if(!e)return We.mac.DEFAULT;let[i]=We.mac.LOOKUP.filter(n=>n.REGEX.test(e.toUpperCase()));return i?.VALUE??We.mac.DEFAULT}};var $t=class c{constructor(e,i,n,r,o){if(c.instance)return c.instance;this.platforms_={default:null,custom:null,other:null},this.os_=e,this.version_=i,this.arch_=n,this.bitness_=r,this.platform_="",this.channel_=o,this.isThankYou_=!!document.body.dataset[Z.TY],this.qp_=new j,this.platformQp_=this.qp_.getQueryParam(X.PLATFORM),this.standaloneQp_=this.qp_.getQueryParam(X.STANDALONE),qi.has(this.platformQp_)||(this.platformQp_=null),this.setPlatform_(this.platformQp_),c.instance=this}setPlatform_(e=null){if(this.isThankYou_&&sessionStorage.getItem(T.PLATFORMS)){this.platforms_=JSON.parse(sessionStorage.getItem(T.PLATFORMS));return}switch(e&&(this.platforms_.custom=e,e.includes("win")&&(this.platforms_.custom=this.validateWinStandalonePlatform_(e))),this.os_){case y.OS.macOS:this.platforms_.default=this.setMacPlatform_();break;case y.OS.Windows:this.platforms_.default=this.setWinPlatform_();break;case y.OS.Linux:this.platforms_.default=S.LINUX.DEFAULT;break;case y.OS["Chrome OS"]:this.platforms_.default=S.CHROMEOS;break;case y.OS.iOS:this.platforms_.default=S.IOS;break;case y.OS.Android:this.platforms_.default=S.ANDROID;break;default:break}}getPlatform_(){return this.platforms_.other?this.platforms_.other:this.platforms_.custom?this.platforms_.custom:this.platforms_.default}getChannel_(){return this.channel_}handleOsByPlatform_(){let e=this.getPlatform_();return e.includes("win")?"win":e.includes("mac")?"mac":e.includes("chrome")?"chromeos":e.includes("debian")||e.includes("fedora")||e.includes("linux")?"linux":e.includes("ios")?"ios":e.includes("android")?"android":e}setMacPlatform_(){let e=this.version_.split(".")[1]?Number(this.version_.split(".")[1]):0;return e>=6&&e<=8?S.MAC49:e===9?S.MAC65:e===10?S.MAC88:e>10&&e<13?S.MAC104:e>=13&&e<15?S.MAC116:S.MAC}setOtherPlatform(e){this.platforms_.other=e}setWinPlatform_(){let e=this.getwinVersion(),i="";e===re.WINXP||e===re.WINVISTA?i=S.WIN49:e===re.WIN8||e===re.WIN7?this.arch_===Ae.X64?i=S.WIN110_64:i=S.WIN110:this.arch_===Ae.X64?i=S.WIN64:i=S.WIN,this.arch_===Ae.ARM&&this.bitness_==="64"&&(i=S.WIN_ARM64);let n=this.validateWinStandalonePlatform_(i);return n||i}validateWinStandalonePlatform_(e){return this.standaloneQp_==="1"&&this.isModernWin_(e)&&this.channel_!==ot.CANARY?`${e}_standalone_${this.channel_}`:e}isModernWin_(e){return e===S.WIN64||e===S.WIN||e===S.WIN_ARM64}getWindowsNT_(){return parseFloat(/NT (\d*\.\d*)/.exec(this.version_)[1])}getwinVersion(){let e=this.getWindowsNT_();if(e==5.1||e==5.2)return re.WINXP;if(e==6)return re.WINVISTA;if(e==6.1)return re.WIN7;if(e>=6.2&&e<10)return re.WIN8;if(e>=10)return re.WIN10}static resetInstance(){c.instance=null}},Ji=$t;var zr="{11112222-3333-4444-5555-666677778888}",Ve=class{constructor(){}getIid_(){if(!navigator.cookieEnabled){sessionStorage.setItem(T.IID,zr);return}let e=sessionStorage.getItem(T.IID);return e||(e=this.generateIid_(),sessionStorage.setItem(T.IID,e),e)}generateIid_(){return[`{${this.getFourCharId_()}${this.getFourCharId_()}-`,`${this.getFourCharId_()}-${this.getFourCharId_()}-`,`${this.getFourCharId_()}-${this.getFourCharId_()}`,`${this.getFourCharId_()}${this.getFourCharId_()}}`].join("")}getFourCharId_(){let i=Math.floor(Math.random()*1e5).toString(16);return i.length<4&&(i=`0${i}000`),i.substring(0,4).toUpperCase()}};var R=class c{constructor(e=null){if(c.instance)return c.instance;this.userAgent_=e??navigator.userAgent,this.environment_=this.getEnvironment_(),this.platform_=this.getPlatform_(),this.lang_=this.getLang_(),this.iid_=this.getIid_(),this.channel_=this.getChannel_(),this.debugQp_=new j().getQueryParam(X.DEBUG),this.systemQp_=new j().getQueryParam(X.SYSTEM),this.subscribeEvents_(),this.setContext_(),this.debugQp_&&this.debugContext_(),c.instance=this}setContext_(){Promise.all([this.platform_,this.environment_]).then(([{platformOS:e,platform:i},n])=>{this.setGUID_(e),this.setAppName_(e),this.setAp_(i,n.arch),this.setBrandCode_({platformOS:e,platform:i,channel:this.channel_}),this.setNeedsAdmin_(e,this.systemQp_),this.setBrowser_(n.browser),this.setUsageStats_(e),this.setInstallDataIndex_(e),this.setIsMobile_(e),this.setExperimentParameter_()})}setExperimentParameter_(){let e=document.body.dataset[Z.EXPERIMENT];if(!e){this.experiment_=null;return}e=JSON.parse(document.body.dataset[Z.EXPERIMENT]);let i="";if(e.time){let n=e.time*24*60*60*1e3;i=`|${new Date(new Date().getTime()+n).toUTCString()}`}this.experiment_=`${e.key}=${e.value}${i}`}getContext_(){return Promise.all([this.environment_,this.platform_]).then(([e,{platform:i,platformOS:n,platformContext:r}])=>Promise.resolve({brandcode:this.brandCode_,guid:this.guid_,browser:this.browser_,environment:e,ap:this.ap_,installDataIndex:this.installDataIndex_,needsAdmin:this.needsAdmin_,usageStats:this.usageStats_,channel:this.channel_,lang:this.lang_,iid:this.iid_,experiment:this.experiment_,appName:this.appName_,isMobile:this.isMobile_,platform:i,platformOS:n,platformContext:r}))}setInstallDataIndex_(e,i="empty"){e.includes("win")?this.installDataIndex_=i:this.installDataIndex_=null}subscribeEvents_(){window.addEventListener(E.PLATFORMCHANGED,this.handlePlatformChanged_.bind(this)),window.addEventListener(E.STATSCHANGED,this.handleStatsChanged_.bind(this)),window.addEventListener(E.DEFAULTCHANGED,this.handleDefaultChanged_.bind(this))}handleStatsChanged_(e){this.changeUsageStats_(e.detail.value),this.debugQp_&&this.debugContext_()}handleDefaultChanged_(e){this.changeDefaultBrowser_(e.detail.value),this.debugQp_&&this.debugContext_()}handlePlatformChanged_(e){this.platformDetector_.setOtherPlatform(e.detail),this.platform_=this.getPlatform_(),this.setContext_(),this.debugQp_&&this.debugContext_()}debugContext_(){this.getContext_().then(e=>{console.debug("%c Installer Context ","background: green; color: white;font-weight: 800",e),console.debug("%c Platform ","background: lightgreen; color: black; font-weight: 800",e.platform)})}getIid_(){return new Ve().getIid_()}setUsageStats_(e){if(e.includes("win")){this.usageStats_=0;return}this.usageStats_=null}changeUsageStats_(e=0){this.usageStats_=e}changeDefaultBrowser_(e="empty"){this.installDataIndex_=e}setIsMobile_(e){this.isMobile_=e.includes("android")||e.includes("ios")}getEnvironment_(){return new lt(this.userAgent_).getEnvironment_()}getPlatform_(){return this.environment_.then(({os:e,version:i,arch:n,bitness:r})=>(this.platformDetector_=new Ji(e,i,n,r,this.channel_),Promise.resolve({platform:this.platformDetector_.getPlatform_(),platformOS:this.platformDetector_.handleOsByPlatform_(),platformContext:this.platformDetector_.platforms_})))}setNeedsAdmin_(e,i){if(e.includes("win")){if(this.channel_===ot.CANARY){this.needsAdmin_="false";return}if(i){this.needsAdmin_=i;return}this.needsAdmin_="prefers";return}this.needsAdmin_=null}setAppName_(e){if(e.includes("win")){this.appName_=zi[this.channel_];return}this.appName_=null}setBrandCode_(e){this.brandCode_=new $e().getBrandCode_(e)}getChannel_(){return document.body.dataset[Z.CHANNEL]}setGUID_(e){if(!Ge[e]){this.guid_=Ge.default;return}if(new RegExp(/linux|android|ios/).test(e)){this.guid_=Ge[e];return}this.guid_=Ge[e][this.channel_]}getLang_(){return document.documentElement.lang}setAp_(e,i){if(e.includes("win")){let n="";if(e.includes("standalone")){let r=e.split("_standalone_")[0];n=Bt[r.toUpperCase()]??i,this.ap_=`-arch_${n}-statsdef_1`;return}n=Bt[e.toUpperCase()]??i,this.ap_=`-arch_${n}-statsdef_1`;return}this.ap_=null}setBrowser_(e){if(!nt[e]){this.browser_=nt.default;return}this.browser_=nt[e]}static resetInstance(){c.instance=null}};var we={IID:"iid",BROWSER:"browser",GUID:"appguid",LANG:"lang",STAGE:"stage",BRAND:"brand"},Yr="https://tools.google.com/service/update2/dlpageping",Vt=class{constructor(){this.context_=new R,this.debugQp_=new j().getQueryParam(X.DEBUG)}async pingOmaha(e="index"){if(e==="")return"404";let i=await this.generatePingUrl_(e);setTimeout(async()=>{try{let n=await fetch(i);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`)}catch(n){console.error(n.message)}},500)}generatePingUrl_(e){return this.context_.getContext_().then(({brandcode:i,guid:n,browser:r,lang:o,iid:u,experiment:t})=>{let s=[`${we.GUID}=${n}`,`${we.IID}=${u}`,`${we.LANG}=${o}`,`${we.BROWSER}=${r}`,`${we.STAGE}=${e}`].join("&");i&&(s+=`&${we.BRAND}=${i}`),t&&(s+=`&${t}`);let a=`${Yr}?${s}`;return sessionStorage.setItem(T.PING_URL,a),this.debugQp_&&this.debugPingURL_(s.split("&"),a),Promise.resolve(a)})}debugPingURL_(e,i){console.debug("%c Ping Params: ","background: lightblue; color: black; font-weight: 800",e),console.debug("%c Ping URL: ","background: pink; color: black; font-weight: 800",i)}},ct=Vt;var qe=class{constructor(){this.debugQp_=new j().getQueryParam(X.DEBUG),this.ping_=new ct}getAndValidateDownloadUrl_(){return sessionStorage.getItem(T.INSTALLER_PATH)}triggerInstall_(e=!1){if(sessionStorage.getItem(T.HAS_INSTALLED)==="true")return;let i=sessionStorage.getItem(T.INSTALLER_PATH);if(!i)return;let n=document.createElement("a");n.href=i,document.body.appendChild(n),n.click(),e?(sessionStorage.setItem(T.HAS_INSTALLED,"true"),this.ping_.pingOmaha(le.RETRY)):(sessionStorage.setItem(T.HAS_INSTALLED,"true"),this.ping_.pingOmaha(le.INSTALL)),this.debugQp_&&this.debugDownloadPath_(i)}debugDownloadPath_(e){console.debug("%c Installer Path: ","background: purple; color: white; font-weight: 800",decodeURIComponent(e).split("&"))}};var Xr="next-steps",Qr="other-platforms",ce=class c{constructor(){if(c.instance)return c.instance;c.instance=this,this.isThankYouPage_=!!document.body.dataset[Z.TY],this.installTrigger_=new qe,this.context_=new R,this.ping_=new ct,this.handleEventSubscription_(),this.handleInstallStage_()}handleEventSubscription_(){window.addEventListener(E.EULA_OPEN,this.handleEulaOpened_.bind(this)),window.addEventListener(E.PAGE_SHOW,this.handlePageShow_.bind(this))}handlePageShow_(e){this.handleOPCache_(),e.persisted&&(this.isThankYouPage_?this.isThankYouPage_&&this.ping_.pingOmaha(le.TY):this.ping_.pingOmaha(le.INDEX))}handleOPCache_(){let e=window.location.href;if(!(e.includes(Xr)||e.includes(Qr)))try{let n=sessionStorage.getItem(T.PLATFORMS);if(n){let r=JSON.parse(n);r.other=null,sessionStorage.setItem(T.PLATFORMS,JSON.stringify(r))}}catch(n){console.error("Failed to reset platform cache in session storage:",n)}}handleEulaOpened_(){this.ping_.pingOmaha(le.EULA)}redirectToThankyou(e){let i=window.location.search,n=window.location.pathname,r=n.indexOf("/chrome/"),u=`${r>0?n.substring(0,r):""}${Xi[e]}${i}`;setTimeout(()=>{window.location.href=u},500)}handleInstallStage_(){this.isThankYouPage_?(window.addEventListener("load",this.triggerInstallOnLoad_.bind(this)),this.ping_.pingOmaha(le.TY)):this.ping_.pingOmaha(le.INDEX)}initializeDownloadFlow({gaLabel:e,isExternal:i=!1,triggerElement:n}){this.context_.getContext_().then(r=>{if(this.setDownloadPath_(r),r.isMobile){let t=this.buildGaEventPayload_({linkText:e,triggerElement:n});this.dispatchInstallerEvent_($.DOWNLOAD_CTA_CLICK,t),this.redirectToStore_(r.platform,r.channel,r.environment.browser,i);return}let o=this.getCustomFileNameEvent_(r),u=this.buildGaEventPayload_({filename:`${r.channel}-${r.platformOS}`,linkText:e,customEventName:o,triggerElement:n});this.dispatchInstallerEvent_($.FILE_DOWNLOAD,u),sessionStorage.setItem(T.HAS_INSTALLED,"false"),sessionStorage.setItem(T.PLATFORMS,JSON.stringify(r.platformContext)),sessionStorage.setItem(T.FILENAME,JSON.stringify(u.filename)),sessionStorage.setItem(T.CUSTOM_DOWNLOAD_EVENT,JSON.stringify(o)),this.redirectToThankyou(r.channel)})}initializeLinuxDownloadFlow({gaLabel:e,triggerElement:i}){this.dispatchInstallerEvent_(E.EULA_TRIGGER);let n=this.buildGaEventPayload_({linkText:e,triggerElement:i});this.dispatchInstallerEvent_($.DOWNLOAD_CTA_CLICK,n)}redirectToStore_(e,i,n,r=!1){let o=`${e.toUpperCase()}_${i.toUpperCase()}`,u=at[o],t=n===y.BROWSER.Safari&&e===y.OS.iOS;if(r&&!t){window.open(u,"_blank");return}window.location.href=u}triggerDirectDownload({gaLabel:e,triggerElement:i,gaSource:n=null}){if(sessionStorage.getItem(T.INSTALLER_PATH)){sessionStorage.setItem(T.HAS_INSTALLED,"false");let r=JSON.parse(sessionStorage.getItem(T.FILENAME)),o=JSON.parse(sessionStorage.getItem(T.CUSTOM_DOWNLOAD_EVENT)),u={filename:r,linkText:e,customEventName:o,triggerElement:i,retry:n==="retry"};this.dispatchInstallerEvent_($.FILE_DOWNLOAD,u),this.triggerInstall_(!0)}else this.dispatchInstallerEvent_(E.EULA_TRIGGER,{})}dispatchInstallerEvent_(e,i){let n=new CustomEvent(e,{detail:i});dispatchEvent(n)}triggerInstallOnLoad_(){this.triggerInstall_(!1)}triggerInstall_(e){this.installTrigger_.triggerInstall_(e);let i=JSON.parse(sessionStorage.getItem(T.FILENAME));this.dispatchInstallerEvent_($.DOWNLOAD_START,i)}setDownloadPath_(e){let{platformOS:i,platform:n,channel:r}=e,o=n,u="",t="";i.includes(S.WIN)?u=this.handleWinDownloadParams_(e):i.includes(S.MAC)?u=e.brandcode:u=null,n===S.ANDROID||n===S.IOS?o=`${n}_${r}`:n===S.LINUX.DEFAULT&&(o=S.LINUX.DEBIAN),Vi.includes(r)&&(n===S.MAC?o=`${n}_${r}`:n===S.LINUX.DEFAULT?o=`${S.LINUX.DEBIAN}_${r}`:(n===S.LINUX.FEDORA||n===S.LINUX.DEBIAN)&&(o=`${n}_${r}`)),u?t=at[o.toUpperCase()].replace("%s",u):t=at[o.toUpperCase()];let s=`${Yi}${t}`;e.isMobile||sessionStorage.setItem(T.INSTALLER_PATH,s)}handleWinDownloadParams_(e){let{guid:i,browser:n,appName:r,lang:o,iid:u,usageStats:t,needsAdmin:s,ap:a,installDataIndex:A,brandcode:f,experiment:h}=e,m=[`appguid=${i}`,`iid=${u}`,`lang=${o}`,`browser=${n}`,`usagestats=${t}`,`appname=${r}`,`needsadmin=${s}`,`ap=${a}`,`installdataindex=${A}`].join("&");return f&&(m+=`&brand=${f}`),encodeURIComponent(m)}getCustomFileNameEvent_(e){if(e.platformOS===y.OS.macOS){if(e.environment.browser===y.BROWSER.Safari)return $.FILE_DOWNLOAD_MAC_SAFARI}else if(e.platformOS===y.OS.Windows)return e.environment.platformVersion&&e.environment.platformVersion>=13?$.FILE_DOWNLOAD_WIN11:$.FILE_DOWNLOAD_WIN10;return null}buildGaEventPayload_({filename:e,linkText:i,customEventName:n,triggerElement:r}){let o={linkText:i};return e!==null&&(o.filename=e),n!==null&&(o.customEventName=n),r!==null&&(o.triggerElement=r),o}};var w=class extends HTMLElement{constructor(){super()}connectedCallback(){this.htmlHandler_=new J;let e=document.createElement("template");this.htmlHandler_.getHtml_(this.componentName_).then(i=>{e.innerHTML=i,this.appendChild(e.content.cloneNode(!0)),this.handleView_()})}handleVisibility_(e,i,n){n[i]?(e.innerHTML=n[i],e.style.display=""):e.style.display="none"}};var qt=class extends w{constructor(){super(),this.isCommon_=!0,this.componentName_="download-button",this.downloadButton_=this.querySelector(".js-download-button-v2"),this.installer_=new ce}static get observedAttributes(){return["label","eula-trigger","button-class","icon","external","data-id","custom-button-class"]}handleClickDownload_(){if(this.eulaTrigger)this.installer_.initializeLinuxDownloadFlow({gaLabel:this.label,triggerElement:this.downloadButton_});else{let e=this.getAttribute("external")||!1;this.installer_.initializeDownloadFlow({gaLabel:this.label,isExternal:e,triggerElement:this.downloadButton_})}}attributeChangedCallback(e,i,n){if(e==="label"){let r=this.querySelector(".js-download-button-label-v2");r&&(r.innerText=n,this.label=n)}if(e==="eula-trigger"&&(this.eulaTrigger=n==="true"),(e==="icon"||e==="external")&&this.updateIcon_(),e=="data-id"&&this.querySelector(".js-download-button-v2, .chr-download-button")?.setAttribute("id",n),e=="button-class"&&this.querySelector(".js-download-button-v2, .chr-download-button")?.setAttribute("class",n),e=="custom-button-class"){let r=this.querySelector(".js-download-button-v2, .chr-download-button");r&&!r.classList.contains(n)&&r?.classList.add(n)}}updateIcon_(){let e=this.querySelector(".chr-download-button-v2__icon");if(!e)return;let i=this.hasAttribute("icon"),n=this.getAttribute("external")==="true";if(!i&&!n){e.style.display="none";return}else e.removeAttribute("style");let r=e.querySelector("use");if(!r)return;let o=this.getAttribute("icon"),t=`/chrome/static/images/site-icons.svg#${n?"arrow-external":o||"download"}`;r.setAttribute("xlink:href",t),this.querySelector(".js-download-button-v2")?.classList.toggle("external",n)}handleView_(){let e=this.querySelector(".js-download-button-label-v2");this.label=this.getAttribute("label")||"Download Chrome",e.innerText=this.label,this.updateIcon_(),this.downloadButton_=this.querySelector(".js-download-button-v2"),this.getAttribute("button-class")&&this.downloadButton_.setAttribute("class",this.getAttribute("button-class")),this.getAttribute("custom-button-class")&&(this.downloadButton_.classList.contains(this.getAttribute("custom-button-class"))||this.downloadButton_.classList.add(this.getAttribute("custom-button-class"))),this.downloadButton_.addEventListener("click",this.handleClickDownload_.bind(this))}};customElements.define("download-button",qt);var se=class c{static eventSubscriptions={};static addEventListener(e,i){c.eventSubscriptions[e]||(c.eventSubscriptions[e]=[]),c.eventSubscriptions[e].push(i)}static removeEventListener(e,i){if(!c.eventSubscriptions[e])return;let n=c.eventSubscriptions[e].indexOf(i);n>-1&&c.eventSubscriptions[e].splice(n,1)}static dispatchEvent(e,i={}){c.eventSubscriptions[e]&&c.eventSubscriptions[e].forEach(n=>n(i))}};var dt="chr-download-selector",ut={SELECT:`.${dt}__select`,LABEL:`.${dt}__label`,LINK:`.${dt}__link`,LINK_ICON:`.${dt}__link-icon`},zt=class extends w{constructor(){super(),this.isCommon_=!0,this.componentName_="download-selector",this.params_=this.dataset,this.id_=this.params_.id||"default",this.defaultOption_=this.params_.default||"Select your option",this.populateSelector_=this.populateSelector_.bind(this),this.setDefaultOption_=this.setDefaultOption_.bind(this),this.isPopulated_=!1}handleView_(){this.prepareElements_(),this.addEventListener_(),this.dispatchEvent(new CustomEvent("child-loaded",{bubbles:!0,composed:!0})),this.buildElements_()}addEventListener_(){se.addEventListener(`${this.id_}-${E.SELECTOR_POPULATE}`,e=>{!this.isPopulated_&&this.id_==="platform"&&(this.populateSelector_(e),this.isPopulated_=!0),this.id_==="version"&&this.populateSelector_(e)}),se.addEventListener(`${this.id_}-${E.SELECTOR_DEFAULT}`,()=>{this.setDefaultOption_()}),this.id_==="version"&&this.select_.addEventListener("change",this.handleSelection.bind(this)),this.id_==="platform"&&this.select_.addEventListener("change",this.handlePlatformSelection.bind(this))}handlePlatformSelection(){let e=new CustomEvent(E.OSCHANGED);if(dispatchEvent(e),this.select_.value==="ios"||this.select_.value==="android"){let n=new CustomEvent(E.PLATFORMCHANGED,{detail:this.select_.value});dispatchEvent(n)}let i=new CustomEvent($.COMBO_SELECT,{detail:{value:this.select_.value,text:this.params_.label,element:this}});dispatchEvent(i)}handleSelection(e){let i=new CustomEvent(E.PLATFORMCHANGED,{detail:this.select_.value});dispatchEvent(i);let n=new CustomEvent($.COMBO_SELECT,{detail:{value:this.select_.value,text:this.params_.label,element:this}});dispatchEvent(n)}setLabels(e){if(e.label&&this.label_&&(this.label_.textContent=e.label),e.default_option){this.defaultOption_=e.default_option;let i=this.select_.querySelector("option[disabled]");i&&(i.textContent=this.defaultOption_)}e.link&&this.handleLink_(e.link)}buildElements_(){this.handleDisable_(),this.handleLabel_(),this.handleLink_(),this.handleID_()}handleDisable_(){this.params_.disabled&&this.select_.setAttribute("disabled",!0)}handleSelectedPlatform_(e){let i=document.querySelector(".other-platforms-block");i.style.display="inherit"}prepareElements_(){this.label_=this.querySelector(ut.LABEL),this.select_=this.querySelector(ut.SELECT),this.link_=this.querySelector(ut.LINK),this.linkIcon_=this.querySelector(ut.LINK_ICON)}handleLabel_(){let e=this.params_.label||"Default label";e&&(this.label_.innerHTML=e)}handleLink_(e){let n=e||(this.params_.link?JSON.parse(this.params_.link):null);n&&this.link_?(this.link_.href=n.href,this.link_.firstChild.textContent=n.label,this.handleLinkIcon_(n),n.external?this.link_.setAttribute("target","_blank"):this.link_.removeAttribute("target"),this.link_.removeAttribute("style")):this.link_.style.display="none"}handleLinkIcon_(e){let i=e.icon;i?this.linkIcon_.querySelector("use").setAttribute("xlink:href",i):this.linkIcon_.remove()}handleID_(){this.label_.setAttribute("for",this.id_),this.select_.setAttribute("id",this.id_),this.select_.setAttribute("name",this.id_),this.select_.setAttribute("autocomplete","off")}setDefaultOption_(){this.select_.innerHTML=``}populateSelector_({options:e,usePlaceholderOption:i=!1}){i&&(this.select_.innerHTML=``),Object.values(e).forEach(n=>{let r=document.createElement("option");r.value=n.value,r.textContent=n.label,r.selected=!1,this.select_.appendChild(r)}),i&&(this.select_.value="")}};customElements.define("download-selector",zt);var Yt=class extends w{constructor(){super(),this.content_=this.innerHTML,this.innerHTML="",this.isCommon_=!0,this.componentName_="direct-download",this.installer_=new ce}handleClickDownload_(e){let i=e.target;this.installer_.triggerDirectDownload({gaLabel:i.innetText,gaSource:this.source,triggerElement:i})}handleView_(){let e=this.querySelector("button");e.innerHTML=this.content_,this.source=e.dataset.source,e.addEventListener("click",this.handleClickDownload_.bind(this))}};customElements.define("direct-download",Yt);var Pe=500,Xt=class extends w{constructor(){super(),this.isCommon_=!0,this.componentName_="download-checkbox",this.context_=new R,this.setId_()}static get observedAttributes(){return["label","checked"]}setId_(){this.context_.getContext_().then(({platform:e,channel:i})=>{this.id_=`${e}-${i}-${this.dataset.type}-cb`})}attributeChangedCallback(e,i,n){if(e==="label"){let r=this.querySelector(".chr-checkbox__label");this.label_=n,r&&(r.innerHTML=n)}if(e==="checked"&&(this.checkbox_=this.querySelector(".chr-checkbox__input"),this.checkbox_)){let r=n==="true";if(r?this.checkbox_.checked=!0:this.checkbox_.checked=!1,this.dataset.type==="stats"){let o={value:r?1:0};this.dispatchCheckboxEvent_(o,E.STATSCHANGED,Pe)}if(this.dataset.type==="default"){let o={value:r?"defaultbrowser":"empty"};this.dispatchCheckboxEvent_(o,E.DEFAULTCHANGED,Pe)}}}dispatchCheckboxEvent_(e,i,n=0){let r=new CustomEvent(i,{detail:e});setTimeout(()=>{dispatchEvent(r)},n)}handleStats_(e){let i=e.target.checked,n={value:i?1:0};this.dispatchCheckboxEvent_({id:this.id_,checked:i,label:this.label_,element:this.checkbox_,source:this.dataset.source},E.CHECKBOX_CHANGED),this.dispatchCheckboxEvent_(n,E.STATSCHANGED,Pe)}handleDefault_(e){let i=e.target.checked,n={value:i?"defaultbrowser":"empty"};this.dispatchCheckboxEvent_(i,E.CHECKBOX_CHANGED),this.dispatchCheckboxEvent_(n,E.DEFAULTCHANGED,Pe)}handleView_(){let e=this.getAttribute("label");this.checkbox_=this.querySelector(".chr-checkbox__input");let i=this.querySelector(".chr-checkbox__label");if(this.dataset.type==="stats"&&this.checkbox_.addEventListener("change",this.handleStats_.bind(this)),this.dataset.type==="default"&&this.checkbox_.addEventListener("change",this.handleDefault_.bind(this)),this.getAttribute("checked")){let n=this.getAttribute("checked")==="true";if(n?this.checkbox_.checked=!0:this.checkbox_.checked=!1,this.dataset.type==="stats"){let r={value:n?1:0};this.dispatchCheckboxEvent_(r,E.STATSCHANGED,Pe)}if(this.dataset.type==="default"){let r={value:n?"defaultbrowser":"empty"};this.dispatchCheckboxEvent_(r,E.DEFAULTCHANGED,Pe)}}e&&i&&(i.innerHTML=e)}};customElements.define("download-checkbox",Xt);var ge=class{constructor(e){this.context_=new R,this.blockType_=e,this.baseBlocks="/chrome/static/installer/content/blocks/",this.baseGlobals="/chrome/static/installer/content/globals/";let i=window.document.body.dataset.region,n=Ht.LIST.includes(i)?i:Ht.DEFAULT;this.locale=n,this.data=this.setData_(e)}setData_(e){return this.context_.getContext_().then(async({platform:i,channel:n})=>{i.includes("standalone")&&(i=i.split("_standalone_")[0]);let u=/fedora|debian/.test(i)?"linux":i,t=`${this.baseBlocks}${e}/${n}/${this.locale.toLowerCase()}.json`,s=window.sessionStorage.getItem(t),a;s?a=JSON.parse(s):(a=await(await fetch(t)).json(),window.sessionStorage.setItem(t,JSON.stringify(a)));let A=a[u]||{};return JSON.stringify(A)})}async getOtherPlatformsData_(){let{channel:e}=await this.context_.getContext_(),i=`${this.baseBlocks}${this.blockType_}/${e}/${this.locale.toLowerCase()}.json`,n=window.sessionStorage.getItem(i);if(n)return JSON.parse(n);try{let o=await(await fetch(i)).json();return window.sessionStorage.setItem(i,JSON.stringify(o)),o}catch(r){return console.error(`Failed to load other platforms content from ${i}:`,r),{}}}async getGlobalsData_(){let e=`${this.baseGlobals}${this.locale.toLowerCase()}.json`,i=window.sessionStorage.getItem(e);if(i)return JSON.parse(i);try{let r=await(await fetch(e)).json();return window.sessionStorage.setItem(e,JSON.stringify(r)),r}catch(n){return console.error(`Failed to load global content from ${e}:`,n),{}}}getData_(){return this.data}};var Kr="/chrome-installer-v2/static/installer/html/components/",z=class extends HTMLElement{constructor(){super()}connectedCallback(){this.data_=new ge(this.block_),this.htmlHandler_=new J;let e=document.createElement("template");this.htmlHandler_.getHtml_(this.componentName_).then(i=>{e.innerHTML=i,this.appendChild(e.content.cloneNode(!0)),this.data_.getData_().then(n=>{let r=JSON.parse(n);this.handleView_(r),this.findGaEvents()}).catch(n=>{})})}setViewUrl_(e=!1,i){let n=e?"common/":"";this.viewUrl_=`${Kr}${n}${i}/${i}.html`}handleVisibility_(e,i,n){n[i]?(e.innerHTML=n[i],e.style.display=""):e.style.display="none"}dispatchInstallerEvent_(e,i){let n=new CustomEvent(e,{detail:i});dispatchEvent(n)}findGaEvents(){let i={elements:this.querySelectorAll(`a[${Qi}]`)};this.dispatchInstallerEvent_($.BUILD_CLICK_EVENT,i)}};var Qt=class extends w{constructor(){super(),this.isCommon_=!0,this.componentName_="download-radio"}static get observedAttributes(){return["label","value","checked"]}attributeChangedCallback(e,i,n){if(e==="label"){let r=this.querySelector(".chr-radio__label");r&&(r.innerHTML=n)}if(e==="checked"){let r=this.querySelector(".chr-radio__input");r&&r.setAttribute("checked","true")}if(e==="value"){let r=this.querySelector(".chr-radio__input"),o=this.querySelector(".chr-radio__label");r&&(r.value=n,r.id=n),o&&o.setAttribute("for",n)}}handleSelection_(e){let i=e.target;if(i.checked){let n=new CustomEvent(E.PLATFORMCHANGED,{detail:i.value});dispatchEvent(n)}}handleView_(){let e=this.getAttribute("label"),i=this.querySelector(".chr-radio__input"),n=this.querySelector(".chr-radio__label");if(i.addEventListener("change",this.handleSelection_.bind(this)),this.getAttribute("checked")){let r=this.querySelector(".chr-radio__input");r&&(r.checked=!0)}e&&n&&(n.innerHTML=e)}};customElements.define("download-radio",Qt);var Kt=class extends w{constructor(){super(),this.isCommon_=!0,this.componentName_="update-link",this.context_=new R}static get observedAttributes(){return["href","label","external"]}attributeChangedCallback(e,i,n){if(e==="label"){let r=this.querySelector(".chr-installer-update");r&&(r.innerText=n)}if(e==="external"){let r=this.querySelector(".chr-installer-update__icon");r.style.display=n?"inline":"none"}if(e==="href"){let r=this.querySelector(".chr-installer-update");r.href=n,r.target="_blank"}}handleView_(){this.context_.getContext_().then(({browser:e})=>{if(e!==4)this.style.display="none";else{let i=this.querySelector(".chr-installer-update"),n=this.getAttribute("label")||"I want to update Chrome",r=this.getAttribute("href");if(this.getAttribute("external")){let o=this.querySelector(".chr-installer-update__icon");o.style.display="inline"}else{let o=this.querySelector(".chr-installer-update__icon");o.style.display="none"}r&&(i.href=r,i.target="_blank"),i.innerText=n}})}};customElements.define("update-link",Kt);var Jt=class extends w{constructor(){super(),this.isCommon_=!0,this.componentName_="deprecated-banner"}static get observedAttributes(){return["label"]}attributeChangedCallback(e,i,n){e==="label"&&i!==n&&this.handleView_()}handleView_(){let e=this.querySelector(".chr-deprecated-banner__label"),i=this.getAttribute("label")||"This device won't receive updates because Google Chrome no longer supports your operating system.";e.innerText=i}};customElements.define("deprecated-banner",Jt);var Zt=class extends w{constructor(){super(),this.isCommon_=!0,this.componentName_="deprecation-description"}static get observedAttributes(){return["labels"]}attributeChangedCallback(e,i,n){e==="labels"&&i!==n&&this.handleView_()}handleView_(){let e=this.querySelector(".chr-deprecation-description"),i=this.getAttribute("labels");if(i)try{let r=JSON.parse(i).map(o=>`${o}
`).join("");e.innerHTML=r}catch(n){console.error("Failed to parse labels attribute:",n),e.innerHTML=""}}};customElements.define("deprecation-description",Zt);var F="eula-download",D={HEADING:`${F}__heading`,SUBHEADING:`${F}__subheading`,LEGAL:`${F}__legal`,UPDATE:`${F}__update`,STATS:`${F}__checkbox-stats`,DEFAULT_CB:`${F}__checkbox-default`,BUTTON:`${F}__button`,SNIFFER:`${F}__sniffer`,DEPRECATED:`${F}__deprecated`,OPTIONS:`${F}__options`,UBUNTU:`${F}__radio-ubuntu`,FEDORA:`${F}__radio-fedora`,PACKAGES:`${F}__packages`,CAPTION:`${F}__caption`,COPY:`${F}__copy`,TEXTLINK:`${F}__text-link`,ICON:".chr-download-button-v2__icon"},jt=class extends z{constructor(){super(),this.block_="eula",this.componentName_="eula-download"}selectElements_(){this.heading=this.querySelector(`.${D.HEADING}`),this.subheading=this.querySelector(`.${D.SUBHEADING}`),this.copy=this.querySelector(`.${D.COPY}`),this.textLink=this.querySelector(`.${D.TEXTLINK}`),this.sniffer=this.querySelector(`.${D.SNIFFER}`),this.deprecated=this.querySelector(`.${D.DEPRECATED}`),this.legal=this.querySelector(`.${D.LEGAL}`),this.update=this.querySelector(`.${D.UPDATE}`),this.statsCheckbox=this.querySelector(`.${D.STATS}`),this.defaultCheckbox=this.querySelector(`.${D.DEFAULT_CB}`),this.downloadButton=this.querySelector(`.${D.BUTTON}`),this.options=this.querySelector(`.${D.OPTIONS}`),this.ubuntuRadio=this.querySelector(`.${D.UBUNTU}`),this.fedoraRadio=this.querySelector(`.${D.FEDORA}`),this.packages=this.querySelector(`.${D.PACKAGES}`),this.caption=this.querySelector(`.${D.CAPTION}`),this.icon=this.querySelector(D.ICON)}handleView_(e){this.selectElements_(),e.default?(this.defaultCheckbox.setAttribute("label",e.default.label),e.default.checked&&this.defaultCheckbox.setAttribute("checked",e.default.checked)):this.defaultCheckbox.remove(),e.stats?(this.statsCheckbox.setAttribute("label",e.stats.label),e.stats.checked&&this.statsCheckbox.setAttribute("checked",e.stats.checked)):this.statsCheckbox.remove(),e.ubuntu?this.setDownloadRadioProperties_(this.ubuntuRadio,e.ubuntu):this.ubuntuRadio.remove(),e.fedora?this.setDownloadRadioProperties_(this.fedoraRadio,e.fedora):this.fedoraRadio.remove(),e.download?this.setDownloadButtonProperties_(this.downloadButton,e.download):this.downloadButton&&this.downloadButton.remove(),e.deprecated?this.setDeprecatedProperties_(this.deprecated,e.deprecated):this.deprecated.remove(),this.handleVisibility_(this.heading,"heading",e),this.handleVisibility_(this.subheading,"subheading",e),this.handleVisibility_(this.copy,"copy",e),this.handleVisibility_(this.textLink,"text-link",e),this.handleVisibility_(this.sniffer,"sniffer",e),this.handleVisibility_(this.legal,"legal",e),this.handleVisibility_(this.options,"options",e),this.handleVisibility_(this.packages,"packages",e),this.handleVisibility_(this.caption,"caption",e)}setDownloadRadioProperties_(e,i){e.setAttribute("label",i.label),e.setAttribute("value",i.value)}setDownloadButtonProperties_(e,i){e.setAttribute("label",i.label),i.icon?e.setAttribute("icon",i.icon):e.removeAttribute("icon"),i["button-class"]?e.setAttribute("button-class",i["button-class"]):e.removeAttribute("button-class"),i["custom-button-class"]?e.setAttribute("custom-button-class",i["custom-button-class"]):e.removeAttribute("custom-button-class"),i.modifier&&e.classList.add(i.modifier)}setDeprecatedProperties_(e,i){e.setAttribute("label",i)}};customElements.define("eula-download",jt);var de="simplify-download",V={LEGAL:`${de}__legal`,OTHERS:`${de}__others`,UPDATE:`${de}__update`,STATS:`${de}__checkbox-stats`,DEFAULT_CB:`${de}__checkbox-default`,BUTTON:`${de}__button`,SNIFFER:`${de}__sniffer`,DEPRECATED:`${de}__deprecated`,DEPRECATION_DESCRIPTION:`${de}__deprecation-description`},ei=class extends z{constructor(){super(),this.block_="simplify",this.componentName_="simplify-download",this.classList.add(this.componentName_)}static get observedAttributes(){return["label"]}selectElements_(){this.sniffer=this.querySelector(`.${V.SNIFFER}`),this.deprecated=this.querySelector(`.${V.DEPRECATED}`),this.update=this.querySelector(`.${V.UPDATE}`),this.statsCheckbox=this.querySelector(`.${V.STATS}`),this.defaultCheckbox=this.querySelector(`.${V.DEFAULT_CB}`),this.downloadButton=this.querySelector(`.${V.BUTTON}`),this.legal=this.querySelector(`.${V.LEGAL}`),this.others=this.querySelector(`.${V.OTHERS}`),this.deprecationDescription=this.querySelector(`.${V.DEPRECATION_DESCRIPTION}`)}attributeChangedCallback(e,i,n){e==="label"&&(this.customLabel=n,this.downloadButton&&this.downloadButton.setAttribute("label",this.customLabel))}handleView_(e){if(this.selectElements_(),this.handleVisibility_(this.sniffer,"sniffer",e),this.handleVisibility_(this.legal,"legal",e),this.handleVisibility_(this.others,"others",e),e.default?(this.defaultCheckbox.setAttribute("label",e.default.label),e.default.checked&&this.defaultCheckbox.setAttribute("checked",e.default.checked)):this.defaultCheckbox.remove(),e.stats?(this.statsCheckbox||(this.statsCheckbox=document.createElement("download-checkbox"),this.statsCheckbox.className=V.STATS.slice(1),this.statsCheckbox.dataset.type="stats",this.downloadButton.parentElement.insertBefore(this.statsCheckbox,this.downloadButton)),this.statsCheckbox.setAttribute("label",e.stats.label),e.stats.checked&&this.statsCheckbox.setAttribute("checked",e.stats.checked)):this.statsCheckbox&&this.statsCheckbox.remove(),e.download){this.downloadButton||(this.downloadButton=document.createElement("download-button"),this.downloadButton.className=V.BUTTON.slice(1),this.downloadButton.dataset.source="hero",this.insertBefore(this.downloadButton,this.sniffer));let i=e.download;this.customLabel&&(i.label=this.customLabel),this.setDownloadButtonProperties_(this.downloadButton,i)}else this.downloadButton&&this.downloadButton.remove();e.update?(this.update||(this.update=document.createElement("update-link"),this.update.className=V.UPDATE.slice(1),this.insertBefore(this.update,this.defaultCheckbox)),this.setUpdateLinkProperties_(this.update,e.update)):this.update&&this.update.remove(),e.deprecated?(this.deprecated||(this.deprecated=document.createElement("deprecated-banner"),this.deprecated.className=V.DEPRECATED.slice(1),this.insertBefore(this.deprecated,this.update||this.defaultCheckbox)),this.setDeprecatedProperties_(this.deprecated,e.deprecated)):this.deprecated&&this.deprecated.remove(),e["deprecation-description"]?(this.deprecationDescription||(this.deprecationDescription=document.createElement("deprecation-description"),this.deprecationDescription.className=V.DEPRECATION_DESCRIPTION,this.appendChild(this.deprecationDescription)),this.setDeprecatedDescriptionProperties_(this.deprecationDescription,e["deprecation-description"])):this.deprecationDescription&&this.deprecationDescription.remove()}setDownloadButtonProperties_(e,i){e.setAttribute("label",i.label),e.setAttribute("id","download-simplify"),i.icon?e.setAttribute("icon",i.icon):e.removeAttribute("icon"),i["button-class"]?e.setAttribute("button-class",i["button-class"]):e.removeAttribute("button-class"),i["custom-button-class"]?e.setAttribute("custom-button-class",i["custom-button-class"]):e.removeAttribute("custom-button-class"),i.eulaTrigger&&e.setAttribute("eula-trigger",i.eulaTrigger)}setUpdateLinkProperties_(e,i){i.label?e.setAttribute("label",i.label):e.setAttribute("label",i),i.external&&e.setAttribute("external",i.external),i.href&&e.setAttribute("href",i.href)}setDeprecatedProperties_(e,i){e.setAttribute("label",i)}setDeprecatedDescriptionProperties_(e,i){e.setAttribute("labels",JSON.stringify(i))}};customElements.define("simplify-download",ei);var ue="other-download",he={LEGAL:`${ue}__legal`,UPDATE:`${ue}__update`,STATS:`${ue}__checkbox-stats`,DEFAULT_CB:`${ue}__checkbox-default`,BUTTON:`${ue}__button`,SNIFFER:`${ue}__sniffer`,DEPRECATED:`${ue}__deprecated`,PACKAGES:`${ue}__packages`,CAPTION:`${ue}__caption`},ti=class extends z{constructor(){super(),this.block_="other-platforms",this.componentName_="other-download",this.classList.add(this.componentName_),this.context_=new R,this.platformData_={},this.setEventListeners_(),this.style.display="none"}selectElements_(){this.sniffer=this.querySelector(`.${he.SNIFFER}`),this.deprecated=this.querySelector(`.${he.DEPRECATED}`),this.legal=this.querySelector(`.${he.LEGAL}`),this.update=this.querySelector(`.${he.UPDATE}`),this.statsCheckbox=this.querySelector(`.${he.STATS}`),this.defaultCheckbox=this.querySelector(`.${he.DEFAULT_CB}`),this.downloadButton=this.querySelector(`.${he.BUTTON}`),this.packages=this.querySelector(`.${he.PACKAGES}`),this.caption=this.querySelector(`.${he.CAPTION}`)}setEventListeners_(){window.addEventListener(E.PLATFORMCHANGED,this.handleContent_.bind(this)),window.addEventListener(E.OSCHANGED,this.handleOsChanged_.bind(this)),window.addEventListener(E.OTHER_PLATFORMS_LOADED,this.handleAllPlatformsLoaded_.bind(this))}handleOsChanged_(){this.style.opacity=0}handleAllPlatformsLoaded_(e){this.platformData_=e.detail.platformData}handleContent_(e){let i=e.detail,n=this.platformData_[i];n&&(this.handleView_(n),this.style.opacity=1,this.style.display="inherit")}handleView_(e){this.selectElements_(),e.default?(this.defaultCheckbox.style.display="inherit",this.defaultCheckbox.removeAttribute("checked",!1),this.defaultCheckbox.setAttribute("label",e.default.label),e.default.checked&&this.defaultCheckbox.setAttribute("checked",e.default.checked)):this.defaultCheckbox.style.display="none",e.stats?(this.statsCheckbox.style.display="inherit",this.statsCheckbox.setAttribute("checked",!1),this.statsCheckbox.setAttribute("label",e.stats.label),e.stats.checked&&this.statsCheckbox.setAttribute("checked",e.stats.checked)):this.statsCheckbox.style.display="none",e.download&&(this.downloadButton.style.display="inherit",this.setDownloadButtonProperties_(this.downloadButton,e.download)),e.deprecated?(this.deprecated.style.display="inherit",this.setDeprecatedProperties_(this.deprecated,e.deprecated)):this.deprecated.style.display="none",e.packages?this.packages.style.display="inline-block":this.packages.style.display="none",e.caption?this.caption.style.display="inline-block":this.caption.style.display="none",this.handleVisibility_(this.sniffer,"sniffer",e),this.handleVisibility_(this.legal,"legal",e),this.handleVisibility_(this.packages,"packages",e),this.handleVisibility_(this.caption,"caption",e)}setDownloadButtonProperties_(e,i){e.setAttribute("label",i.label),e.setAttribute("id","download-simplify"),e.setAttribute("external",i.external||!1),i["button-class"]?e.setAttribute("button-class",i["button-class"]):e.removeAttribute("button-class"),i["custom-button-class"]?e.setAttribute("custom-button-class",i["custom-button-class"]):e.removeAttribute("custom-button-class"),i.icon?e.setAttribute("icon",i.icon):e.removeAttribute("icon")}setUpdateLinkProperties_(e,i){e.setAttribute("label",i)}setDeprecatedProperties_(e,i){e.setAttribute("label",i)}};customElements.define("other-platforms-download",ti);var ze=class extends z{constructor(){super(),this.block_="other-platforms",this.platformData_={},this.globalsData_={}}connectedCallback(){this.data_=new ge(this.block_),this.htmlHandler_=new J;let e=document.createElement("template");this.htmlHandler_.getHtml_(this.componentName_).then(async i=>{e.innerHTML=i,this.appendChild(e.content.cloneNode(!0)),Promise.all([this.data_.getOtherPlatformsData_(),this.data_.getGlobalsData_()]).then(([n,r])=>{this.handleView_(n,r)})})}};var ii={mac:{value:"mac",label:"Mac"},windows:{value:"windows",label:"Windows"},linux:{value:"linux",label:"Linux"},android:{value:"android",label:"Android"},ios:{value:"ios",label:"iOS"}};var Zi="chr-other-platforms",ji={PLATFORM:`.${Zi}__platform`,VERSION:`.${Zi}__version`},er={HIDE:"hide"},ri=class extends ze{constructor(){super(),this.componentName_="other-platforms-block"}handleView_(e,i){this.platformData_=e,this.globalsData_=i,this.addEventListener("child-loaded",this.onChildLoaded),this.prepareElements_(),this.setGlobalContent_(),this.populatePlatformSelector_(),this.addEventListener_();let n=new CustomEvent(E.OTHER_PLATFORMS_LOADED,{detail:{platformData:this.platformData_}});window.dispatchEvent(n)}setGlobalContent_(){this.globalsData_?.platform_selector&&this.platformSelector_.setLabels(this.globalsData_.platform_selector),this.globalsData_?.version_selector&&this.versionSelector_.setLabels(this.globalsData_.version_selector)}onChildLoaded(){this.prepareElements_()}prepareElements_(){this.platformSelector_=this.querySelector(ji.PLATFORM),this.versionSelector_=this.querySelector(ji.VERSION)}populatePlatformSelector_(){let e=new Set;for(let n in this.platformData_){let r=this.platformData_[n];r.other_platforms_group&&e.add(r.other_platforms_group)}let i=[];for(let n in ii){let r=ii[n];e.has(r.value)&&i.push(r)}se.dispatchEvent(`platform-${E.SELECTOR_POPULATE}`,{options:i,usePlaceholderOption:!0}),se.dispatchEvent(`version-${E.SELECTOR_POPULATE}`,{options:[],usePlaceholderOption:!0})}addEventListener_(){this.platformSelector_.addEventListener("change",e=>{let i=e.target.value,n=this.versionSelector_.querySelector("select"),r=document.querySelector(".chr-download-legal-v2");if(i==="ios"||i==="android")n.disabled=!0,this.versionSelector_.classList.add(er.HIDE),se.dispatchEvent(`version-${E.SELECTOR_POPULATE}`,{options:[],usePlaceholderOption:!0});else{let o={};for(let u in this.platformData_){let t=this.platformData_[u];t.other_platforms_group===i&&(o[u]={value:u,label:t.other_platforms_label})}this.versionSelector_.classList.remove(er.HIDE),n.disabled=!1,se.dispatchEvent(`version-${E.SELECTOR_POPULATE}`,{options:Object.values(o),usePlaceholderOption:!0}),r&&(r.style.display="",r.innerHTML="")}})}};customElements.define("other-platforms-block",ri);var Jr="context-download",tr={BUTTON:`${Jr}__button`},si=class extends z{constructor(){super(),this.block_="context-download",this.componentName_="context-download",this.classList.add(this.componentName_)}static get observedAttributes(){return["button-class","label","data-id"]}selectElements_(){this.downloadButton=this.querySelector(`.${tr.BUTTON}`)}attributeChangedCallback(e,i,n){e==="button-class"&&(this.customButtonClass_=n,this.downloadButton&&this.downloadButton.setAttribute("button-class",n)),e==="label"&&(this.customLabel_=n,this.downloadButton&&this.downloadButton.setAttribute("label",n)),e==="data-id"&&(this.customId_=n,this.downloadButton&&this.downloadButton.setAttribute("data-id",n))}handleView_(e){if(this.selectElements_(),e.download){this.downloadButton||(this.downloadButton=document.createElement("download-button"),this.downloadButton.className=tr.BUTTON.slice(1),this.insertBefore(this.downloadButton));let i=e.download;this.customLabel_&&(i.label=this.customLabel_),this.customButtonClass_&&(i["button-class"]=this.customButtonClass_),this.customId_&&(i["data-id"]=this.customId_),this.setDownloadButtonProperties_(this.downloadButton,i)}else this.downloadButton&&this.downloadButton.remove()}setDownloadButtonProperties_(e,i){e.setAttribute("label",i.label),i["data-id"]?e.setAttribute("data-id",i["data-id"]):e.removeAttribute("data-id"),i.icon?e.setAttribute("icon",i.icon):e.removeAttribute("icon"),i["button-class"]?e.setAttribute("button-class",i["button-class"]):e.removeAttribute("button-class"),i["custom-button-class"]?e.setAttribute("custom-button-class",i["custom-button-class"]):e.removeAttribute("custom-button-class"),i.eulaTrigger&&e.setAttribute("eula-trigger",i.eulaTrigger)}};customElements.define("context-download",si);new lt;new ce;new R;new J;})(); /*! Bundled license information: dompurify/dist/purify.es.mjs: (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *) */