{"version":3,"names":[],"sources":["theme-2-inline-common-head_tag.js"],"sourcesContent":["\n/* iTG Chrome prepaint (mirrors the itg-prime prepaint): iTG data-theme is the source of truth, default light, stored in\n   localStorage \"itgw-theme\" (shared with the main site once the forum is served from www). Discourse colour scheme is kept\n   on the same side: its forced_color_mode cookie (read server-side on the next page view) + the two scheme stylesheets. */\n(function () {\n  var theme = \"light\";\n  try {\n    var stored = localStorage.getItem(\"itgw-theme\");\n    theme = stored === \"dark\" || stored === \"light\" ? stored : \"light\";\n  } catch (e) { /* private mode: stay light */ }\n  document.documentElement.setAttribute(\"data-theme\", theme);\n  try {\n    var m = document.cookie.match(/(?:^|; )forced_color_mode=([^;]*)/);\n    if (!m || m[1] !== theme) {\n      document.cookie = \"forced_color_mode=\" + theme + \"; path=/; max-age=31536000; samesite=lax\" + (location.protocol === \"https:\" ? \"; secure\" : \"\");\n    }\n  } catch (e) { /* cookies off */ }\n  var light = document.querySelector(\"link.light-scheme\");\n  var dark = document.querySelector(\"link.dark-scheme\");\n  if (light && dark) {\n    light.media = theme === \"dark\" ? \"none\" : \"all\";\n    dark.media = theme === \"dark\" ? \"all\" : \"none\";\n  }\n  // First-party ax beacon only (no GA4, no Raptive). Body markers + ax.js inserted from this nonce-trusted script, so\n  // Discourse CSP (script-src nonce + strict-dynamic) accepts it with no script-src entry. SPA: counts the first page load\n  // of a visit; route-change pageviews wait for itgAx.nav() (N4). Never patch the collector here.\n  try {\n    document.body.setAttribute(\"data-td-site\", \"itechguides\");\n    document.body.setAttribute(\"data-ax-pt\", \"community\");\n    if (!document.querySelector(\"script[data-itg-ax]\")) {\n      var ax = document.createElement(\"script\");\n      ax.src = \"https://www.itechguides.com/best/api/ax.js\";\n      ax.async = true;\n      ax.setAttribute(\"data-extra\", \"https://www.itechguides.com/best/api/ax-extra.js\");\n      ax.setAttribute(\"data-itg-ax\", \"1\");\n      document.head.appendChild(ax);\n    }\n  } catch (e) { /* analytics is optional */ }\n  var pressed = function () {\n    var b = document.querySelectorAll(\"[data-itgw-theme]\");\n    for (var i = 0; i < b.length; i++) {\n      b[i].setAttribute(\"aria-pressed\", theme === \"dark\" ? \"true\" : \"false\");\n    }\n  };\n  if (document.readyState === \"loading\") {\n    document.addEventListener(\"DOMContentLoaded\", pressed);\n  } else {\n    pressed();\n  }\n})();\n"],"mappings":"AACA;AACA;AACA;AACA,CAAC,YAAY;EACX,IAAI,KAAK,GAAG,OAAO;EACnB,IAAI;IACF,IAAI,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC;IAC/C,KAAK,GAAG,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO;EACpE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAE;EACd,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC;EAC1D,IAAI;IACF,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,CAAC;IAClE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE;MACxB,QAAQ,CAAC,MAAM,GAAG,oBAAoB,GAAG,KAAK,GAAG,0CAA0C,IAAI,QAAQ,CAAC,QAAQ,KAAK,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAC;IAClJ;EACF,CAAC,CAAC,OAAO,CAAC,EAAE,CAAE;EACd,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,mBAAmB,CAAC;EACvD,IAAI,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAC;EACrD,IAAI,KAAK,IAAI,IAAI,EAAE;IACjB,KAAK,CAAC,KAAK,GAAG,KAAK,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK;IAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,KAAK,MAAM,GAAG,KAAK,GAAG,MAAM;EAChD;EACA;EACA;EACA;EACA,IAAI;IACF,QAAQ,CAAC,I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