(function(){const e={SITE_NAME:"ThisVid",POPUP_TITLE:"Downloader for ThisVid",activationHeading:"Get started in seconds",activationTitle:"Activate Video Downloader for ThisVid",AUTH:{baseUrl:"https://auth.serp.co",entitlement:"thisvid-downloader",storagePrefix:"thisvid-downloader",requiresCode:!0},WORKER_URL:"",GUMROAD_PRODUCT_ID:"",GH_LICENSE_ID:"",PRODUCT_URL:"https://serp.ly/thisvid-downloader",UPDATE_CHECK:{enabled:!0,provider:"github-releases",repoOwner:"serpapps",repoName:"thisvid-downloader",checkIntervalMs:216e5,requestTimeoutMs:8e3,releaseApiUrl:"https://api.github.com/repos/serpapps/thisvid-downloader/releases/latest",releasePageUrl:"https://github.com/serpapps/thisvid-downloader/releases/latest"},LOG_LEVEL:"error",LOG_MIRROR_TO_BG:!0,AUTH_ENTITLEMENT_ALIASES:[],COLORS:{brandAccent:"#0ea5e9",brandAccentHover:"#0b73b9",bgDark:"#1b1b1b",bgDarker:"#2a2a2a",borderDark:"#333",inputBorder:"#555",textPrimary:"#ffffff",textMuted:"#999999",textSubtle:"#cccccc",success:"#4caf50",error:"#f44336",info:"#2196f3",lightBg:"#ffffff",lightBorder:"#e9ecef",lightMutedText:"#6c757d",lightPanelBg:"#f8f9fa",lightMutedText2:"#95a5a6",darkTextStrong:"#2c3e50"}};function l(t=""){return String(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/_/g,"-").toLowerCase()}function n(t=typeof document<"u"?document:null,c=e.COLORS,i="site-theme-vars"){if(t)try{const o=String(t.contentType||"").toLowerCase();if(o&&!o.includes("html"))return;const s=String(t.documentElement&&t.documentElement.nodeName||"").toLowerCase();if(s&&s!=="html"||t.getElementById(i))return;const a=t.createElement("style");a.id=i;const d=Object.entries(c||{}).filter(([,r])=>r!=null&&String(r)!=="").map(([r,T])=>`--${l(r)}:${String(T)};`).join(`
        `);a.textContent=`:root{
        ${d}
      }`,(t.head||t.documentElement).appendChild(a)}catch{}}try{globalThis.SiteConfig=e}catch{}try{e.AUTH_BASE_URL=e.AUTH&&e.AUTH.baseUrl,e.AUTH_ENTITLEMENT=e.AUTH&&e.AUTH.entitlement,e.AUTH_STORAGE_PREFIX=e.AUTH&&e.AUTH.storagePrefix,e.AUTH_ENTITLEMENT_ALIASES=Array.isArray(e.AUTH_ENTITLEMENT_ALIASES)?[...new Set(e.AUTH_ENTITLEMENT_ALIASES.map(t=>String(t).trim()).filter(Boolean))]:[]}catch{}try{typeof document<"u"&&n(document,e.COLORS,"serp-auth-theme-vars")}catch{}try{globalThis.applySiteThemeVariables=n}catch{}try{n()}catch{}})();
