/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */
{
window.__webcompat_spoof_platform = "windows";
}
if (!navigator.userAgent.includes("Chrome/")) {
const { appVersion, userAgent } = navigator;
let actualPlatform = "linux";
if (appVersion.includes("Android")) {
actualPlatform = "android";
} else if (appVersion.includes("Macintosh")) {
actualPlatform = "mac";
} else if (appVersion.includes("Windows")) {
actualPlatform = "windows";
}
const wantedPlatform = window.__webcompat_spoof_platform ?? actualPlatform;
if (wantedPlatform) {
let mobile = "";
let osSegment = `Windows NT 10; Win64; x64`;
if (wantedPlatform == "android") {
mobile = userAgent.includes("Mobile") ? "Mobile " : "";
osSegment = `Linux; Android 10; K`;
} else if (wantedPlatform == "mac") {
osSegment = "Macintosh; Intel Mac OS X 10_15_7";
} else if (wantedPlatform == "linux") {
osSegment = "X11; Linux x86_64";
}
const final_ua = `Mozilla/5.0 (${osSegment}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 ${mobile}Safari/537.36`;
const nav = Object.getPrototypeOf(navigator);
const ua = Object.getOwnPropertyDescriptor(nav, "userAgent");
ua.get = () => final_ua;
Object.defineProperty(nav, "userAgent", ua);
window.__webcompat = (window.__webcompat ?? new Set()).add(
"navigator.userAgent"
);
}
}
if (!navigator.userAgent.includes("NT 11.0")) {
let val;
Object.defineProperty(window, "OS_TYPE_ETAX", {
configurable: true,
get: () => val,
set: x => {
val = x;
x.OTHER_WINDOWS = x.WINDOWS_11;
x.WINDOWS_10 = x.WINDOWS_11;
},
});
const final_ua = navigator.userAgent.replace("NT 10", "NT 11.0");
const nav = Object.getPrototypeOf(navigator);
const ua = Object.getOwnPropertyDescriptor(nav, "userAgent");
ua.get = () => final_ua;
Object.defineProperty(nav, "userAgent", ua);
}
delete window.__webcompat_spoof_platform;
{
const bugInfo = [["www.keisan.nta.go.jp", ["1902520"]]];
const msgs = window.__webcompat;
delete window.__webcompat;
if (msgs?.size) {
const bugs =
bugInfo.find(([domain]) => location.href.includes(domain))?.[1] ??
bugInfo[0][1];
console.info(
`${[...msgs].join(", ")} ${msgs.size > 1 ? "are" : "is"} being altered for compatibility reasons. See ${bugNumbers} for details.`
);
}
}