a.pub.network
Open in
urlscan Pro
2606:4700::6812:15ce
Public Scan
URL:
https://a.pub.network/softwaretestinghelp-com/pubfig.min.js
Submission: On October 10 via api from LU — Scanned from DE
Submission: On October 10 via api from LU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
!function(){"use strict";const e="pubfig-engine-load-init",t="pubfig-loaded",i="pubfig-init-request-start",r="pubfig-init-request-end",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return new URLSearchParams(t.location?.search).get(e)??""};const n="main";class s{type="default";constructor(e,t){this._payload=this._buildPayload(e),this._topic=t}get payload(){return this._payload}get topic(){return this._topic||n}setTopic(e){this._topic=e}setType(e){this.type=e}_buildPayload(e){return e||{}}}class o extends s{type="customEvent";_buildPayload(e){const{eventType:t,data:i,eventName:r}=e;return{eventType:t,eventName:r,jsonValue:JSON.stringify(i)}}}function c(e){let{id:t,src:i,errorString:r}=e;const a=d({type:"script",id:t,src:i});throw window.freestar.fsdata=null,document.head.appendChild(a),new Error(r)}function d(e){let{type:t="div",classList:i=[],id:r=!1,src:a=!1,name:n=!1,attributes:s=[],children:o=[]}=e;const c=document.createElement(t);return i.length&&(c.className=i.join(" ")),a&&(c.src=a),r&&(c.id=r),n&&c.setAttribute("name",n),s.length&&s.forEach((e=>{Object.entries(e).forEach((e=>{let[t,i]=e;c.setAttribute(t,i)}))})),o.length&&o.forEach((e=>{c.appendChild(e)})),c}const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;return new Promise(((r,a)=>{!function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=arguments.length>5?arguments[5]:void 0;try{const s=d({type:"script",attributes:[{"data-owner":"freestar"}]});e&&(s.src=e),r&&(s.textContent=r),i&&(s.id=i),a&&(s.async=a),s.type="text/javascript",t&&s.addEventListener("load",t,{once:!0}),n&&s.addEventListener("error",n),document.getElementsByTagName("head")[0].appendChild(s)}catch(e){}}(e,r,t,i,!0,a)}))};function u(e){Math.random()<.01&&freestar.analyticsQueue.push(new o({eventName:"PUBFIG_NOT_LOADED",eventType:e||"",data:{domain:window.location.hostname}}))}function f(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)e[r]=i[r]}return e}!function e(t,i){function r(e,r,a){if("undefined"!=typeof document){"number"==typeof(a=f({},i,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var n="";for(var s in a)a[s]&&(n+="; "+s,!0!==a[s]&&(n+="="+a[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+n}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],r={},a=0;a<i.length;a++){var n=i[a].split("="),s=n.slice(1).join("=");try{var o=decodeURIComponent(n[0]);if(r[o]=t.read(s,o),e===o)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",f({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,f({},this.attributes,t))},withConverter:function(t){return e(f({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const p="https://a.pub.network/softwaretestinghelp-com/qa/",b={current:"current",fsLoadPubfigUrlparams:"fsLoadPubfigUrlparams"},h="fs-playwright-tests-script",w="fs-ab-tests-script",g="fsaltconfig",m="fs-qa",v="fsLoadPubfigVersion",y="fsaltconfig",k="fsdebug";let _=a(k),A=[];_&&"true"!==_&&!Number.isInteger(+_)&&(A=_.split(",").map((e=>e.toUpperCase())));const D=function(e){let t="Pubfig",i="background: #00C389; color: #fff; border-radius: 3px; padding: 3px";if("object"==typeof e&&(t=e.title?e.title:t,i=e.styles?e.styles:i,e=void 0!==e.level?e.level:1),(!a("fs-log-filter")||t===a("fs-log-filter"))&&((()=>{if("number"==typeof freestar.debug)return freestar.debug;const e=a("fslog");return"true"===e?99:""!==e&&Number.isFinite(+e)?+e:void 0})()>=e&&0===A.length||A.includes(t.toUpperCase()))){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];console.info(`%c${t}: `,i,...n)}},x="pubfig.min.js",S="https://a.pub.network/",T=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document).querySelectorAll(`script[src*="${x}"]`),t=Array.from(e).find((e=>!e.src.includes("/core/")));return t?t.src.split(S)[1]?.split("/")[0]:"freestar-com"},N="https://d.pub.network",L=`${N}/v2/sites/${T()}/configs?env=ENV`,E="fs.abtest.id",M="fs.abtest.variant_type",P="fs.config";var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===O}(e)}(e)};var O="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function j(e,t){return!1!==t.clone&&t.isMergeableObject(e)?$((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function R(e,t,i){return e.concat(t).map((function(e){return j(e,i)}))}function F(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function q(e,t){try{return t in e}catch(e){return!1}}function V(e,t,i){var r={};return i.isMergeableObject(e)&&F(e).forEach((function(t){r[t]=j(e[t],i)})),F(t).forEach((function(a){(function(e,t){return q(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(q(e,a)&&i.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return $;var i=t.customMerge(e);return"function"==typeof i?i:$}(a,i)(e[a],t[a],i):r[a]=j(t[a],i))})),r}function $(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||R,i.isMergeableObject=i.isMergeableObject||U,i.cloneUnlessOtherwiseSpecified=j;var r=Array.isArray(t);return r===Array.isArray(e)?r?i.arrayMerge(e,t,i):V(e,t,i):j(t,i)}$.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return $(e,i,t)}),{})};var z=C($);const B={videoAdhesion:{prettyName:"Sticky Footer Video Adhesion",disabled:!1},stickyFooter:{prettyName:"Sticky Footer",disabled:!1,refreshDisabled:!1,refreshInterval:0},video:{prettyName:"Video",disabled:!1,refreshDisabled:!1,refreshInterval:0},standAloneVideo:{prettyName:"Stand Alone Video",disabled:!1,refreshDisabled:!1,refreshInterval:0},revolvingRail:{prettyName:"Revolving Rail",disabled:!1,refreshDisabled:!1,refreshInterval:0},pushdown:{prettyName:"Pushdown",disabled:!1,refreshDisabled:!1,refreshInterval:0},dynamicAds:{prettyName:"Dynamic Ads",disabled:!1,refreshDisabled:!1,refreshInterval:0,optionsPath:"dynamicAdOptions"},dynamicAdsV2:{prettyName:"Dynamic Ads V2",disabled:!1,refreshDisabled:!1,refreshInterval:0,optionsPath:"dynamicAdOptionsV2"},footerBidding:{prettyName:"Footer Bidding",disabled:!1,refreshDisabled:!1,refreshInterval:0},superflex:{prettyName:"Superflex",disabled:!1,refreshDisabled:!1,refreshInterval:0},slidingUnit:{prettyName:"Sliding Unit",disabled:!1,refreshDisabled:!1,refreshInterval:0},sideWall:{prettyName:"Sidewall",disabled:!1,refreshDisabled:!1,refreshInterval:0},pageGrabber:{prettyName:"Page Grabber",disabled:!1,refreshDisabled:!1,refreshInterval:0},interstitial:{prettyName:"Interstitial",disabled:!1,refreshDisabled:!1,refreshInterval:0},googleInterstitial:{prettyName:"Google Interstitial",disabled:!1,refreshDisabled:!1,refreshInterval:0},dianomiContentRec:{prettyName:"Dianomi Content Recommendation",disabled:!1,refreshDisabled:!1,refreshInterval:0},lazyLoad:{prettyName:"Lazy Loaded Ads",disabled:!1,refreshDisabled:!1,refreshInterval:0},iai:{prettyName:"Intelligent Ad Insert",disabled:!1,refreshDisabled:!1,refreshInterval:0},stickyRail:{prettyName:"Sticky Rail",disabled:!1,refreshDisabled:!1,refreshInterval:0}},G=0,Q=99;class W{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{config:t={}}=e;this.enabled_slots=t.enabled_slots||[],this.products=t.products?z(B,t.products):B,this.logLevel=(()=>{const e=Number(a("fslog"));if("true"===String(e).trim())return Q;if(e)return Math.max(e,0);const t=a("fsdebug");if(t)return Q;const i=Number(t);return Number.isInteger(i)?i:G})()}resetEnabledSlots(){this.enabled_slots=[]}setOriginalChanel(e){e&&(this.orignalChannel=e)}}const H="Superflex,StickyAd,DynamicAds";function J(){if(freestar.performanceLogger.logMark({markerName:e}),freestar.modulesLoaded.engine)return freestar.log(0,"========== ENGINE ALREADY LOADED =========="),!1;let t=window.fsprebid||{};window.fsprebid=t,t.que=t.que||[],t.retries=0;if(freestar.fsdata.disallowedGeos&&freestar.fsdata.disallowedGeos.length&&freestar.fsdata.disallowedGeos.includes(freestar.locData.iso))freestar.log(0,"Ad serving is blocked in "+freestar.locData.iso);else{if(freestar.modulesLoaded.engine)return freestar.log(0,"========== ENGINE ALREADY LOADED =========="),!1;Y(),freestar.pubfigState.configReady=!0,function(e){const{name:t,detail:i}=e,r=new CustomEvent(t,{detail:i});window.dispatchEvent(r)}({name:"pubfigRunEngine",detail:!0})}}const Y=async()=>{const e=["engineMobile","engineDesktop","engineFallback"];for(const t of e)try{return void await freestar.scriptsManager.loadScript(t)}catch{}};function Z(){let e=window.freestar||{};window.freestar=e,e.log=D,e.disableAutoTrackPageviews=e.disableAutoTrackPageviews||!1,e.version="6.14.3",e.hitTime=e.hitTime||Date.now(),e.queue=e.queue||[],e.pubfigState={configReady:!1};const t=new W(e);e.config=e.config||{},e.configManager=t,e.config.products=t.products,e.config.enabled_slots=t.enabled_slots,e.modulesLoaded=e.modulesLoaded||{engine:!1,messaging:!1,pubfig:!1,prebid:!1},e.msg={},e.msg.collectorURL=window.freestarUrl||"https://c.pub.network",e.msg.dispensaryURL=window.dispensaryUrl||N,e.consentManagement={consentData:{}},e.analyticsQueue=[],e.featuresIncluded=H.includes("MODULES")?[]:H.split(",").map((e=>e.trim())),e.newAdSlots=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.loaded||u("newAdSlots"),e.queue.push((function(){e.newAdSlots(t,i)}))},e.deleteAdSlots=function(t){e.loaded||u("deleteAdSlots"),e.queue.push((function(){e.deleteAdSlots(t)}))},e.newStickyFooter=function(t){e.loaded||u("newStickyFooter"),e.queue.push((function(){e.newStickyFooter(t)}))},e.newSidewall=function(t){e.loaded||u("newSidewall"),e.queue.push((function(){e.newSidewall(t)}))},e.newVideo=function(t){e.loaded||u("newVideo"),e.queue.push((function(){e.newVideo(t)}))},e.newPushdown=function(t){e.loaded||u("newPushdown"),e.queue.push((function(){e.newPushdown(t)}))},e.newStandAlonePlayer=function(t){e.loaded||u("newStandAlonePlayer"),e.queue.push((function(){e.newStandAlonePlayer(t)}))},e.deleteStandAlonePlayer=function(t){e.loaded||u("deleteStandAlonePlayer"),e.queue.push((function(){e.deleteStandAlonePlayer(t)}))}}function X(e,t,i){if(!t)return;const r=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce(((e,t)=>e&&e[t]),e);return void 0===r?i:r}const K={string:{type:"string",default:""},array:{type:"array",default:[]},object:{type:"object",default:{}},number:{type:"number",default:void 0}};function ee(e){let{key:t,type:i=K.string.type}=e;const r=sessionStorage.getItem(t);if(i===K.object.type){if(r){const e=JSON.parse(r);if(e instanceof Object)return e}return K.object.default}if(i===K.array.type){if(r){const e=JSON.parse(r);if(Array.isArray(e))return e}return K.array.default}if(i===K.number.type){const e=Number(r);return Number.isInteger(e)?e:K.number.default}return r}function te(e){let{key:t,type:i=K.string,value:r}=e;r&&(i!==K.object&&i!==K.array||(r=JSON.stringify(r)),sessionStorage.setItem(t,r))}class ie{constructor(e){let{freestar:t}=e;this._freestar=t,this._analytics=null,this.isReportingActive=ee({key:E})||100*Math.random()<1,t.performanceMarksData=t.performanceMarksData||{pendingMarks:[],processedMarks:[]},this.isFirstLoad=this.getIsFirstLoad()}get performanceMarksData(){return this._freestar.performanceMarksData}set performanceMarksData(e){this._freestar.performanceMarksData=e}setAnalytics(e){this._analytics=e}resetPerformanceLogger(){sessionStorage.removeItem("hasLoadedBefore"),this.performanceMarksData={pendingMarks:[],processedMarks:[]}}fetchPerformanceMarkDetails(e){let{markerName:t,compareToData:i}=e;const r=performance?.getEntriesByName(t,"mark");if(0===r.length)return null;let a;i&&(a=performance.getEntriesByName(i,"mark"));const n=r[0];return{marker_name:n.name,absolute_time:n.startTime.toFixed(2),...this.compareMarks({mark:n,compareToPerformanceMarkData:a})}}compareMarks(e){let{mark:t,compareToPerformanceMarkData:i}=e;if(!i)return{};const r=(t.startTime-i[0].startTime).toFixed(2);return{compared_to:i[0].name,relative_Time:r}}fetchUserDetails(){const{deviceInfo:e,locData:t}=this._freestar,{browser:i,os:r,device:a}=e;return{...t,browser_name:i.name,browser_version:i.version,os_name:r.name,os_version:r.version,device_type:a.type}}getIsFirstLoad(){return null===sessionStorage.getItem("hasLoadedBefore")&&(sessionStorage.setItem("hasLoadedBefore","true"),!0)}sendPerformanceMarkerToQueue(e){let{markerName:t,compareTo:i}=e;if(this.isReportingActive&&!this.performanceMarksData.processedMarks.includes(t))if(this.performanceMarksData.processedMarks.push(t),0===i.length){const e=this.fetchPerformanceMarkDetails({markerName:t}),i=this.fetchUserDetails(),r=new o({eventType:"PERFORMANCE",eventName:t.toUpperCase(),data:{...e,...i,is_first_load:this.isFirstLoad,pubfig_version:this._freestar.version}});if(this._analytics)return void this._analytics.track(r);this._freestar.analyticsQueue.push(r)}else i.forEach((e=>{const i=this.fetchPerformanceMarkDetails({markerName:t,compareToData:e}),r=this.fetchUserDetails(),a=new o({eventType:"PERFORMANCE",eventName:t.toUpperCase(),data:{...i,...r,is_first_load:this.isFirstLoad,pubfig_version:this._freestar.version}});this._analytics?this._analytics.track(a):this._freestar.analyticsQueue.push(a)}))}pushAllPendingMarksToMsgQue(){this.performanceMarksData.pendingMarks.forEach((e=>{this.sendPerformanceMarkerToQueue(e)}))}logMark(e){let{markerName:t,compareTo:i=[],isFreestarDataCollectorInitialized:r=!0}=e;performance.mark(t),r&&this._freestar.deviceInfo&&this._freestar.locData?this.sendPerformanceMarkerToQueue({markerName:t,compareTo:i}):this.performanceMarksData.pendingMarks.push({markerName:t,compareTo:i})}logPerformanceMarkers(){const e=performance.getEntriesByType("mark");for(const t of e)console.log(`Mark [${t.name}]: ${t.startTime.toFixed(2)}ms`)}}var re,ae,ne={exports:{}};re=ne,ae=ne.exports,function(e,t){var i="function",r="undefined",a="object",n="string",s="major",o="model",c="name",d="type",l="vendor",u="version",f="architecture",p="console",b="mobile",h="tablet",w="smarttv",g="wearable",m="embedded",v="Amazon",y="Apple",k="ASUS",_="BlackBerry",A="Browser",D="Chrome",x="Firefox",S="Google",T="Huawei",N="LG",L="Microsoft",E="Motorola",M="Opera",P="Samsung",I="Sharp",C="Sony",U="Xiaomi",O="Zebra",j="Facebook",R="Chromium OS",F="Mac OS",q=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},V=function(e,t){return typeof e===n&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===n)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,350)},B=function(e,r){for(var n,s,o,c,d,l,u=0;u<r.length&&!d;){var f=r[u],p=r[u+1];for(n=s=0;n<f.length&&!d&&f[n];)if(d=f[n++].exec(e))for(o=0;o<p.length;o++)l=d[++s],typeof(c=p[o])===a&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;u+=2}},G=function(e,i){for(var r in i)if(typeof i[r]===a&&i[r].length>0){for(var n=0;n<i[r].length;n++)if(V(i[r][n],e))return"?"===r?t:r}else if(V(i[r],e))return"?"===r?t:r;return e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[u,[c,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,u],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[u,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+A],u],[/\bfocus\/([\w\.]+)/i],[u,[c,x+" Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[u,[c,x]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+A]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+A],u],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,u],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,j],u],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,u],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[u,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,D+" WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[u,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,x+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,u],[/(cobalt)\/([\w\.]+)/i],[c,[u,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,$]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[o,[l,P],[d,h]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[o,[l,P],[d,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[o,[l,y],[d,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[l,y],[d,h]],[/(macintosh);/i],[o,[l,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[l,I],[d,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[o,[l,T],[d,h]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[o,[l,T],[d,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[o,/_/g," "],[l,U],[d,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[o,/_/g," "],[l,U],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[l,"OPPO"],[d,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[l,"Vivo"],[d,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[o,[l,"Realme"],[d,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[l,E],[d,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[l,E],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[l,N],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[l,N],[d,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[o,[l,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[o,/_/g," "],[l,"Nokia"],[d,b]],[/(pixel c)\b/i],[o,[l,S],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[l,S],[d,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[l,C],[d,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[l,C],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[l,"OnePlus"],[d,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[l,v],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[l,v],[d,b]],[/(playbook);[-\w\),; ]+(rim)/i],[o,l,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[l,_],[d,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[l,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[l,k],[d,b]],[/(nexus 9)/i],[o,[l,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[l,[o,/_/g," "],[d,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[l,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[l,"Meizu"],[d,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[l,o,[d,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[l,o,[d,h]],[/(surface duo)/i],[o,[l,L],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[l,"Fairphone"],[d,b]],[/(u304aa)/i],[o,[l,"AT&T"],[d,b]],[/\bsie-(\w*)/i],[o,[l,"Siemens"],[d,b]],[/\b(rct\w+) b/i],[o,[l,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[o,[l,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[o,[l,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[l,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[o,[l,"NuVision"],[d,h]],[/\b(k88) b/i],[o,[l,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[o,[l,"ZTE"],[d,b]],[/\b(gen\d{3}) b.+49h/i],[o,[l,"Swiss"],[d,b]],[/\b(zur\d{3}) b/i],[o,[l,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[o,[l,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[l,"Dragon Touch"],o,[d,h]],[/\b(ns-?\w{0,9}) b/i],[o,[l,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[l,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[l,"Voice"],o,[d,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[l,"LvTel"],o,[d,b]],[/\b(ph-1) /i],[o,[l,"Essential"],[d,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[l,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[o,[l,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[o,[l,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[o,[l,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[l,o,[d,b]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[l,L],[d,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[l,O],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[l,O],[d,b]],[/smart-tv.+(samsung)/i],[l,[d,w]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[l,P],[d,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[l,N],[d,w]],[/(apple) ?tv/i],[l,[o,y+" TV"],[d,w]],[/crkey/i],[[o,D+"cast"],[l,S],[d,w]],[/droid.+aft(\w+)( bui|\))/i],[o,[l,v],[d,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[o,[l,I],[d,w]],[/(bravia[\w ]+)( bui|\))/i],[o,[l,C],[d,w]],[/(mitv-\w{5}) bui/i],[o,[l,U],[d,w]],[/Hbbtv.*(technisat) (.*);/i],[l,o,[d,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[l,z],[o,z],[d,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[l,o,[d,p]],[/droid.+; (shield) bui/i],[o,[l,"Nvidia"],[d,p]],[/(playstation [345portablevi]+)/i],[o,[l,C],[d,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[l,L],[d,p]],[/((pebble))app/i],[l,o,[d,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[o,[l,y],[d,g]],[/droid.+; (glass) \d/i],[o,[l,S],[d,g]],[/droid.+; (wt63?0{2,3})\)/i],[o,[l,O],[d,g]],[/(quest( 2| pro)?)/i],[o,[l,j],[d,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[l,[d,m]],[/(aeobc)\b/i],[o,[l,v],[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[o,[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,b]],[/(android[-\w\. ]{0,9});.+buil/i],[o,[l,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,u],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,u],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[u,G,Q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[u,G,Q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,F],[u,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[u,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,u],[/\(bb(10);/i],[u,[c,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,x+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[u,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[u,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[u,[c,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,R],u],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,u],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],u],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,u]]},H=function(p,w){if(typeof p===a&&(w=p,p=t),!(this instanceof H))return new H(p,w).getResult();var g=typeof e!==r&&e.navigator?e.navigator:t,m=p||(g&&g.userAgent?g.userAgent:""),v=g&&g.userAgentData?g.userAgentData:t,y=w?function(e,t){var i={};for(var r in e)t[r]&&t[r].length%2==0?i[r]=t[r].concat(e[r]):i[r]=e[r];return i}(W,w):W,k=g&&g.userAgent==m;return this.getBrowser=function(){var e,r={};return r[c]=t,r[u]=t,B.call(r,m,y.browser),r[s]=typeof(e=r[u])===n?e.replace(/[^\d\.]/g,"").split(".")[0]:t,k&&g&&g.brave&&typeof g.brave.isBrave==i&&(r[c]="Brave"),r},this.getCPU=function(){var e={};return e[f]=t,B.call(e,m,y.cpu),e},this.getDevice=function(){var e={};return e[l]=t,e[o]=t,e[d]=t,B.call(e,m,y.device),k&&!e[d]&&v&&v.mobile&&(e[d]=b),k&&"Macintosh"==e[o]&&g&&typeof g.standalone!==r&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[o]="iPad",e[d]=h),e},this.getEngine=function(){var e={};return e[c]=t,e[u]=t,B.call(e,m,y.engine),e},this.getOS=function(){var e={};return e[c]=t,e[u]=t,B.call(e,m,y.os),k&&!e[c]&&v&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,R).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return m},this.setUA=function(e){return m=typeof e===n&&e.length>350?z(e,350):e,this},this.setUA(m),this};H.VERSION="1.0.36",H.BROWSER=q([c,u,s]),H.CPU=q([f]),H.DEVICE=q([o,l,d,p,b,w,h,g,m]),H.ENGINE=H.OS=q([c,u]),re.exports&&(ae=re.exports=H),ae.UAParser=H;var J=typeof e!==r&&(e.jQuery||e.Zepto);if(J&&!J.ua){var Y=new H;J.ua=Y.getResult(),J.ua.get=function(){return Y.getUA()},J.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var i in t)J.ua[i]=t[i]}}}("object"==typeof window?window:I);var se=ne.exports;const oe=new class{constructor(){this.initManager()}initManager(){window.freestar=window.freestar||{},this._setDeviceType()}_setDeviceType(){window.freestar.deviceInfo=se.UAParser(),window.freestar.deviceInfo.device.type||(window.freestar.deviceInfo.device={type:"desktop"})}getFormattedDeviceType(){if(window.freestar)return"Apple"===window.freestar.deviceInfo.device.vendor?"smartphone-ios":window.freestar.deviceInfo.device.type}},ce=" exiting after creating new instance...";class de{constructor(){let{win:e=window}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._window=e,this._window._pubfigInstanceManagerConfig=this._window._pubfigInstanceManagerConfig||{},this.config=this._window._pubfigInstanceManagerConfig,this.fsLoadPubfigVersionUrlParams=a(v,e),this.fsLoadPubfigVersionUrlParams&&(this._window.freestar.pubfigVersionToLoad=this.fsLoadPubfigVersionUrlParams),this.fsAltConfigUrlParams=a(y,e),this.isQA=a(k,e),this._currentSitePath=T()}setEngineLocation(e){Object.values(b).includes(e)&&(this.config.engineLocation=e)}get sourcesPath(){return this.config.engineLocation===b.fsLoadPubfigUrlparams?`https://a.pub.network/core/pubfig/${this.fsLoadPubfigVersionUrlParams}/`:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(p.includes("localhost"))return p;const t=e.document.querySelectorAll(`script[src*="${x}"]`),i=Array.from(t).pop();return i?.src.substring(0,i?.src.lastIndexOf("/")+1)??`${S}${e.freestar?.fsdata?.path}/`}(this._window)}checkForAlternativeInstances(){let{isTest:e,onAlternativeInstanceFound:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isTest:"",onAlternativeInstanceFound:()=>{}};if(this.fsLoadPubfigVersionUrlParams&&!this.config.loadPubfigVersionRedirect)return this.config.loadPubfigVersionRedirect=!0,this.setEngineLocation(b.fsLoadPubfigUrlparams),t(),c({id:h,src:`https://a.pub.network/core/pubfig/${this.fsLoadPubfigVersionUrlParams}/pubfig.min.js`,errorString:`PLAYWRIGHTS TEST FOUND -${ce}`});if(e&&e.length)return t(),this.setEngineLocation(b.current),this._window.freestar.redirected=!0,c({id:w,src:e,errorString:`AB TEST FOUND -${ce}`});const i=Array.from(document.querySelectorAll(`script#${g}`));if(this.fsAltConfigUrlParams&&0===i.length)return t(),this.setEngineLocation(b.current),c({id:g,src:`https://a.pub.network/${this._currentSitePath}/test/${this.fsAltConfigUrlParams}/pubfig.min.js?bypass=true`,errorString:`Alternate Configuration - found alt version,${ce}`});if(this.isQA&&!this.config.fsQaRedirect){let e;if(this.config.fsQaRedirect=!0,document.querySelectorAll("script").forEach((t=>{t.innerText.includes("qa/pubfig")&&(e=!0)})),!e)return t(),this.setEngineLocation(b.current),c({id:m,src:`https://a.pub.network/${this._currentSitePath}/qa/pubfig.min.js`,errorString:`QA version called via params -${ce}`})}}}let le=null;function ue(){return le||(le=new de),le}const fe={emxdigital:"emx_digital",synacor:"synacormedia"};class pe{constructor(e){let{freestar:t}=e;this._freestar=t}_normalizeLocation(e){const t=X(e,"location");if(t)return{iso:t.countryCode,city:t.cityName,state:t.state}}networkSlugModification(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return fe[e]||e}_processNetworkMap(e){return X(e,"networkMap.networks")}_adaptFsDataSettings(e){let t=X(e,"pubfigSettings.fsdata");return t&&(t.timeout??=1200,t.mobileTimeout??=1200),t?.placements?.length&&(t.placements=this._filterOutArchivedPlacements(t.placements)),t?.networks?.length&&(t.networks=this._getDeviceExclusiveNetworks(t.networks)),t}_getDeviceExclusiveNetworks(e){return e.filter((e=>function(e){let{freestar:t=window.freestar,network:i}=e;return!i.deviceExclusive||i.deviceExclusive.toLowerCase()===t.deviceInfo.device.type}({freestar:this._freestar,network:e})))}_filterOutArchivedPlacements(e){return e.filter((e=>!e.archived))}_getFpc(e){return e.fsuid}_getAbTest(e){return X(e,"pubfigSettings.abTest")??{}}_getPubfigLocation(e){return X(e,"pubfigSettings.pubfigLocation")}adapt(e){return e&&0!==Object.keys(e).length?{fpc:this._getFpc(e),location:this._normalizeLocation(e),networkMap:this._processNetworkMap(e),fsdata:this._adaptFsDataSettings(e,e.adRefresh),abTest:this._getAbTest(e),pubfigLocation:this._getPubfigLocation(e)}:(console.error("Empty data provided to DispensaryDataAdapter"),{})}}class be{constructor(e){let{freestar:t}=e;this.adapters={dispensaryData:new pe({freestar:t})}}adapt(e,t){if(!this.adapters[e])throw new Error(`No adapter found for data type ${e}`);return this.adapters[e].adapt(t)}}class he{_isLoaded=!1;constructor(e){let{freestar:t}=e;this._freestar=t,this.fpc,this.locData,this.networkMap,this.fsdata,this.config={},this.envAndConfig,this.cdep,this.dataAdapter=new be({freestar:t})}async load(){this._isLoaded||(this._setEnvironmentAndConfig(),await this._fetchDispensaryData(),this.cdep=await this._getCookieDeprecationLabel(),this._isLoaded=!0)}_setEnvironmentAndConfig(){const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return new URLSearchParams(t.location.search).has(e)}(k),t=a(y),i=a("fstesturl");this.envAndConfig={env:"PROD",version:!1,altUrl:i},e?this.envAndConfig.env="QA":t&&t>0&&(this.envAndConfig.env="TEST",this.envAndConfig.version=t)}async _getCookieDeprecationLabel(){return"cookieDeprecationLabel"in navigator?navigator.cookieDeprecationLabel.getValue():null}_getInitUrl(){let e=L.replace("ENV",this.envAndConfig.env);"TEST"===this.envAndConfig.env&&(e+="&configId=NUMBER".replace("NUMBER",this.envAndConfig.version.toString())),"PROD"!==this.envAndConfig.env&&(e+="&debug=true");const t=ee({key:E}),i=ee({key:M});return t&&(e+="&testId=TEST_ID".replace("TEST_ID",t)),i&&(e+="&variantId=VARIANT_ID".replace("VARIANT_ID",i)),e}async _fallBackFetch(){const e=await fetch(`https://a.pub.network/${T()}/fsdata.json`);if(!e.ok){const t=`No data returned from fsdata fallback endpoint: ${e.status}`;throw new Error(t)}const t=await e.json();t?(this.fsdata=t,this.locData=null,this.networkMap=null):console.error("DispensaryData: No data returned from dispensary endpoint")}_reportEmptyData(){freestar.analyticsQueue.push(new o({eventName:"INIT_ENDPOINT_FAILED",eventType:"EMPTY_FSDATA",data:freestar.fsdata})),console.error("DispensaryData: Empty data returned")}abTestDataFetchAndSet(e){let{pubfigSettings:{abTest:t,pubfigLocation:i}}=e;if(t&&!this._freestar.redirected){const{testGroup:e,testId:r,testType:a,testVariantId:n}=t;if(`${e}`.length&&te({key:"fs.abtest.group",value:`${e}`,type:K.string}),r&&te({key:E,value:r,type:K.string}),n&&te({key:M,value:n,type:K.string}),a&&(te({key:"fs.abtest.type",value:a,type:K.string}),"PUBFIG_TEMPLATE"===a&&i))return te({key:"fs.abtest.pubfig_location",value:i,type:K.string}),i}return!1}_getLocationData(e,t){const i=X(e,t);if(i)return{iso:i.countryCode,city:i.cityName,state:i.state}}_processData(e){const t=this.dataAdapter.adapt("dispensaryData",e);ue().checkForAlternativeInstances({isTest:this.abTestDataFetchAndSet(e),onAlternativeInstanceFound:()=>{this._freestar.performanceLogger.resetPerformanceLogger(),this._freestar.modulesLoaded.pubfig=!1}}),this.fpc=t.fpc,this.locData=t.location,this.networkMap=t.networkMap,this.fsdata=t.fsdata,this.abTest=t.abTest,this.pubfigLocation=t.pubfigLocation}async _fetchDispensaryData(){let e=ee({key:P});if(e&&(e=JSON.parse(e),e.timestamp&&(Date.now()-e.timestamp)/1e3/60>=180&&(e=null)),("PROD"!==this.envAndConfig.env||"PROD"===this.envAndConfig.env&&e&&e.altconfig)&&(e=null),!e)try{const t=await fetch(this._getInitUrl(),{credentials:"include"});if(!t.ok)throw console.log(`DispensaryData: No data returned from initURL fetching fsdata endpoint: ${t.status}`),new Error("Fetching dispensary data failed");if(e=await t.json(),!e||0===Object.keys(e).length)throw this._reportEmptyData(),new Error("Empty data returned");e.timestamp=Date.now(),"TEST"!==this.envAndConfig.env||e.altconfig||(e.altconfig=!0),te({key:P,value:e,type:K.object})}catch(e){return void await this._fallBackFetch()}this._processData(e)}getValue(e){return X(this.fsdata,e)}}class we{constructor(){let{win:e,scripts:t=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._win=e,this._scripts=new Map(t.map((e=>[e.id,e])))}addScripts(e){e.forEach((e=>this._scripts.set(e.id,e)))}getScript(e){return this._scripts.get(e)}async loadScript(e){const t=this.getScript(e);if(!t)throw new Error(`Script ${e} not found`);return t.load()}async loadScripts(){let{id:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.flatMap((e=>this.getScript(e)||[]));return Promise.all(t.map((e=>e.load())))}}const ge="idle",me="pending",ve="ready",ye="skipped",ke="error";class _e{constructor(e){let{id:t,location:i}=e;this.status=ge,this.id=t,this.location=i,this._onLoad=[]}onLoad(e){this.status!==ve?this._onLoad.push(e):e()}beforeLoad(){return!0}afterLoad(){}async load(){if(this.status!==ge)return;this.status=me;if(this.beforeLoad())try{await l(this.location,null,null),this.afterLoad(),this._onLoad.forEach((e=>e())),this._onLoad=[],this.status=ve}catch(e){throw this.status=ke,e}else this.status=ye}}class Ae extends _e{constructor(){let{freestar:e=window.freestar,instanceManager:t=ue()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({id:"engineMobile",location:`${t.sourcesPath}pubfig.engine.mobile.js`}),this._freestar=e}load(){if("mobile"!==(this._freestar.deviceInfo?.device?.type??"desktop").toLowerCase())throw new Error("device type not supported");return super.load()}afterLoad(){this._restoreGlobalUnderscore()}_restoreGlobalUnderscore(){this._freestar.globalUnderscore&&(window._=this._freestar.globalUnderscore)}}class De extends _e{constructor(){let{freestar:e=window.freestar,instanceManager:t=ue()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({id:"engineDesktop",location:`${t.sourcesPath}pubfig.engine.js`}),this._freestar=e}afterLoad(){this._restoreGlobalUnderscore()}_restoreGlobalUnderscore(){this._freestar.globalUnderscore&&(window._=this._freestar.globalUnderscore)}}class xe extends _e{constructor(){let{freestar:e=window.freestar}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({id:"engineFallback",location:`https://a.pub.network/core/pubfig/${e.version}/pubfig.engine.js`}),this._freestar=e}afterLoad(){this._restoreGlobalUnderscore()}_restoreGlobalUnderscore(){this._freestar.globalUnderscore&&(window._=this._freestar.globalUnderscore)}}const Se="https://securepubads.g.doubleclick.net/tag/js/gpt.js";class Te extends _e{constructor(){let{win:e=window,dispensaryData:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({id:"gam",location:""}),this._win=e,this._dispensaryData=t,this._setLocation()}beforeLoad(){return this._win.googletag=this._win.googletag||{},this._win.googletag.cmd=this._win.googletag.cmd||[],!0}_getGamNetworkCode(){return this._dispensaryData.fsdata.placements[0].dfpId.split("/")[1].split(",")[0]}_setLocation(){const e=this._getGamNetworkCode();this.location=e?`${Se}?network_code=${e}`:Se}}class Ne extends _e{constructor(){super({id:"prebid",location:"https://a.pub.network/core/prebid-analytics-8.49.83.js"})}}!async function(){if(function(){if(a("fsdisable"))throw new Error("pubfig disabled.")}(),Z(),freestar.modulesLoaded.pubfig)return;freestar.modulesLoaded.pubfig=!0;const e=new ie({freestar:window.freestar});freestar.performanceLogger=e,e.logMark({markerName:t,isFreestarDataCollectorInitialized:!1}),oe.initManager(),ue().checkForAlternativeInstances({isTest:!1,onAlternativeInstanceFound:()=>{e.resetPerformanceLogger(),freestar.modulesLoaded.pubfig=!1}}),e.logMark({markerName:i,isFreestarDataCollectorInitialized:!1});const n=new he({freestar:freestar});await n.load(),freestar.dispensaryData=n,freestar.cdep=n.cdep,freestar.fsdata=n.fsdata??{},freestar.msg.fpc=n.fpc??"",freestar.locData=n.locData??{},freestar.networkMap=n.networkMap??{},freestar.scriptsManager=new we({win:window,scripts:[new Ne,new Te({dispensaryData:n}),new Ae,new De,new xe]}),freestar.scriptsManager.loadScripts({id:["gam","prebid"]}),e.logMark({markerName:r,compareTo:[i]}),J()}()}();