1var y=Object.defineProperty;var G=(o,s,t)=>s in o?y(o,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[s]=t;var c=(o,s,t)=>G(o,typeof s!="symbol"?s+"":s,t);import{pI as f,pv as w,m as I,pJ as h,pK as u}from"./commonChunk.CbHrP2ip.js";import"./vendorChunk.96TTY5fG.js";import"../vendors/vendor-stable.CbjAnMzp.js";class P extends f{constructor(t){super(w.GoogleAnalytics);c(this,"gtagId");c(this,"gtmId");c(this,"platformConfig");this.platformConfig=t,this.initByManual()}initialize(){}initByManual(){var m,l,p;const t={135:"G-9X82YGV0Q2",169:"G-GNDTTGM3NH",186:"G-EMBLFYWWDV",187:"G-6CJMZXRHJZ",226:"G-R74FL1K499",232:"G-GPGDN0CSWR",255:"AW-11157983322",105:"G-6T2LLVRP8B"},e={135:"GTM-NZSPCGN",190:"GTM-KFL64BH",218:"GTM-PJNQGPK7",226:"GTM-PKXMZVW",352:"GTM-MQ9V4BG"},i=(m=I().siteCode)!=null?m:"",r=(l=this.platformConfig)==null?void 0:l.find(n=>n.category===h.Google&&n.type==u.GTAG),d=(p=this.platformConfig)==null?void 0:p.find(n=>n.category===h.Google&&n.type==u.GTM),a=(r==null?void 0:r.gid)||new URL(location.href).searchParams.get("gtagId")||t[i],g=(d==null?void 0:d.gid)||new URL(location.href).searchParams.get("gtmId")||e[i];this.gtagId=this.isValidTrackingId(a)?a:void 0,this.gtmId=this.isValidTrackingId(g)?g:void 0,(this.gtagId||this.gtmId)&&(this.loadJs(),window.dataLayer=window.dataLayer||[],this.gtagId&&(this.dataLayerPush("js",new Date),this.dataLayerPush("config",this.gtagId,{cookie_flags:"SameSite=None;Secure"})),this.gtmId&&this.createNoScript(),window.GTM=this,this.isInitialized=!0)}dataLayerPush(...t){var e;(e=window.dataLayer)==null||e.push(arguments)}GTMdataLayerPush(...t){var i;const e=t[2];(i=window.dataLayer)==null||i.push({[t[0]]:t[1],value:e})}report(t){const{eventName:e,payload:i}=t;this.gtagId&&this.dataLayerPush("event",e,i),this.gtmId&&this.GTMdataLayerPush("event",e,i)}async loadJs(){var i,r,d;const{gtagId:t,gtmId:e}=this;if(t){(i=document.querySelector("#script-gtag"))==null||i.remove();const a=document.createElement("script");a.id="script-gtag",a.async=!0,a.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,document.head.appendChild(a)}if(e){(r=document.querySelector("#script-gtm"))==null||r.remove(),(d=document.querySelector("#script-inner-gtm"))==null||d.remove();const a=document.createElement("script");a.id="script-gtm",a.type="text/javascript",a.appendChild(document.createTextNode(`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 2 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 3 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
4 'https://www.googletagmanager.com/gtm.js?id='+i+dl; 5 // ç»å建ç script å ç´ è®¾ç½® ID 6 j.id = 'script-inner-gtm'; 7 f.parentNode.insertBefore(j,f); 8 })(window,document,'script','dataLayer','${e}');`)),document.head.appendChild(a)}}createNoScript(){var e;(e=document.querySelector("#noscript-gtm"))==null||e.remove();const t=document.createElement("noscript");t.id="noscript-gtm",t.innerHTML=`<iframe 9 title="googletagmanager" 10 src="https://www.googletagmanager.com/ns.html?id=${this.gtmId}" 11 height="0" 12 width="0" 13 style="display: none; visibility: hidden" 14 ></iframe 15 >`,document.body.insertBefore(t,document.body.children[0])}}export{P as ReporterGoogleAnalyticslImp,P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.