(function(){
var di={zi:90043694,vd:"edayo.waqool.com",ra:0,ri:"",gr:"<N-R-V>fgbr</N-R-V>"};
window.__sotoda_rtus_cb=function(p){
if(typeof(p)!=="undefined"&&p!=null&&typeof(p.userid)!=="undefined"&&p.userid!=null&&p.userid!="")window.__sotoda_rtus=p.userid;
};
function appendImuidScript(){
var scriptEl=document.createElement("script");
scriptEl.src="//dmp.im-apps.net/scripts/im-uid-hook.js?cid=3929";
scriptEl.async=true;
document.body.appendChild(scriptEl);
}
function getImuidAsQueryParameter(){
var cookieMap={};
try{
cookieMap=document.cookie.split("; ").reduce(function(acc,ck){
var keyValue=ck.split("=");
acc[keyValue[0]]=keyValue[1];
return acc;
},{});
}catch(e){}
var imuid=cookieMap["_im_uid.3929"];
return imuid?"&extuid="+encodeURIComponent("im:"+imuid):"";
}
function bc(){
var ua=window.navigator.userAgent.toLowerCase();
var b=0;
if(ua.indexOf("opr")>=0)b=-1;
else if(ua.indexOf("msie")>=0){
var v=window.navigator.appVersion.toLowerCase();
if(v.indexOf("msie 10.")>=0)b=2;
else b=-2;
}else if(ua.indexOf("trident")>=0)b=2;
else if(ua.indexOf("edge")>=0||ua.indexOf("edga")>=0||ua.indexOf("edgios")>=0)b=-6;
else if(ua.indexOf("chrome")>=0||ua.indexOf("crios")>=0)b=-3;
else if(ua.indexOf("firefox")>=0||ua.indexOf("fxios")>=0)b=-5;
else if(ua.indexOf("safari")>=0)b=4;
return b;
}
function dc(){
var ua=window.navigator.userAgent.toLowerCase();
var d=0;
if(ua.indexOf("android")>=0)d=1;
return d;
}
function setUserAgent(){
let canUseLocalStorage;
try {
canUseLocalStorage = !!localStorage;
} catch {
canUseLocalStorage = false;
}
// chrome以外だとuserAgentDataがundefinedなので
if (!canUseLocalStorage || !window.navigator.userAgentData || !window.navigator.userAgentData.getHighEntropyValues) return new Promise((res) => res());

return window.navigator.userAgentData
.getHighEntropyValues([
"architecture",
"model",
"mobile",
"platform",
"bitness",
"platformVersion",
"fullVersionList",
])
.then((ua) => {
localStorage.setItem("ua", JSON.stringify(ua));
});
};
function makeUAQuery() {
let ua;
try {
if (!localStorage) return "";
const uach = localStorage.getItem("ua");
if(!uach) return "";
ua = JSON.parse(uach);
} catch {
return "";
}
if (!ua) return "";
let query = "";
if (ua.fullVersionList) {
query += "&ucfvl=";
const fullVersionList = ua.fullVersionList.reduce((acc, cur) => {
let str = acc;
if (str) str += ",";
str += '"' + cur.brand + '";v="' + cur.version + '"';
return str;
}, "");
query += encodeURIComponent(fullVersionList);
}
if (ua.platform) query += "&ucp=" + encodeURIComponent('"' + ua.platform + '"');
if (ua.architecture) query += "&ucarch=" + encodeURIComponent('"' + ua.architecture + '"');
if (ua.platformVersion) query += "&ucpv=" + encodeURIComponent('"' + ua.platformVersion + '"');
if (ua.bitness) query += "&ucbit=" + encodeURIComponent('"' + ua.bitness + '"');
query += "&ucmbl=?" + (ua.mobile ? "1" : "0");
if (ua.model) query += "&ucmdl=" + encodeURIComponent('"' + ua.model + '"');

return query;
}
var rk="gen_crtg_rta";
function ru(){
var n="__sotoda_rta";
var u=(location.protocol=="https:"?"https:":"http:");
u+="//rtax.criteo.com/delivery/rta/rta.js";
u+="?netId="+encodeURIComponent(di.ri);
u+="&amp;cookieName="+encodeURIComponent(rk);
u+="&amp;rnd="+Math.floor(Math.random()*99999999999);
u+="&amp;varName="+encodeURIComponent(n);
return u;
}
function du(){
var d=document;
var g=(typeof(geparams)!=="undefined"&&typeof(geparams)=="object"&&geparams)?geparams:{};
var ref=(typeof(d.referrer)!=="undefined")?d.referrer:"";
if((!("loc"in g))||(typeof(g.loc)!="string")||(typeof(g.loc.substring)!="function")||(g.loc.substring(0,4)!=="http")){
g.loc=(d.location?d.location.href:"");
if(window.top!==window.self){
try{
g.loc=window.top.location.href;
ref=window.top.document.referrer;
}catch(e){
try{
if(window.frameElement&&!window.frameElement.src){
ref="";
}else if(ref){
g.loc=ref;
}}catch(e){
if(ref){
g.loc=ref;
}}}}}
if((!("ref"in g))||(typeof(g.ref)!="string")||(typeof(g.ref.substring)!="function")||(g.ref.substring(0,4)!=="http"))
g.ref=ref;
if((!("ct0"in g))||(typeof(g.ct0)!="string")||(typeof(g.ct0.substring)!="function")||(g.ct0.substring(0,4)!=="http")){
g.ct0="undefined";
if((typeof(d.GEN_ct0)!="undefined")&&(typeof(d.GEN_ct0)=="string")&&(typeof(d.GEN_ct0.substring)=="function")&&(d.GEN_ct0.substring(0,4)=="http"))g.ct0=d.GEN_ct0;
}
var u=(location.protocol=="https:"?"https:":"http:");
u+="//"+di.vd+"/yie/ld/jsk";
u+="?zoneid="+di.zi;
u+="&amp;cb="+Math.floor(Math.random()*99999999999);
u+=((d.charset)?("&amp;charset="+d.charset):((d.characterSet)?("&amp;charset="+d.characterSet):""));
u+="&amp;loc="+encodeURIComponent(g.loc);
u+=((g.ct0!=="undefined")?("&amp;ct0="+encodeURIComponent(g.ct0)):"");
u+=((g.ref)?("&amp;referer="+encodeURIComponent(g.ref)):"");
try {
if((window.self.toString()!=="[object Window]")||(window.parent.toString()!=="[object Window]"))u+="&amp;err=1";
}catch(e){}
if(("zip" in g)&&(typeof(g.zip)!=="undefined")&&(g.zip!=null)&&(g.zip!=""))u+="&amp;zip="+encodeURIComponent(g.zip);
if(("country" in g)&&(typeof(g.country)!=="undefined")&&(g.country!=null)&&(g.country!=""))u+="&amp;country="+encodeURIComponent(g.country);
if(("city" in g)&&(typeof(g.city)!=="undefined")&&(g.city!=null)&&(g.city!=""))u+="&amp;city="+encodeURIComponent(g.city);
if(("long" in g)&&(typeof(g.long)!=="undefined")&&(g.long!=null)&&(g.long!=""))u+="&amp;long="+encodeURIComponent(g.long);
if(("lati" in g)&&(typeof(g.lati)!=="undefined")&&(g.lati!=null)&&(g.lati!=""))u+="&amp;lati="+encodeURIComponent(g.lati);
if(("custom"in g)&&(typeof(g.custom)!=="undefined")&&(typeof(g.custom)=="object")&&g.custom)for(var c in g.custom)if((typeof(g.custom[c])!=="undefined")&&(g.custom[c]!=null)&&(g.custom[c]!=""))u+=("&amp;"+encodeURIComponent("custom_"+c)+"="+encodeURIComponent(g.custom[c]));
if(typeof(gecuparams)!=="undefined"&&typeof(gecuparams)=="object"&&gecuparams){
if(("ver"in gecuparams)&&(typeof(gecuparams.ver)!=="undefined")&&(gecuparams.ver!=null)&&(gecuparams.ver!=""))u+="&amp;gc_ver="+encodeURIComponent(gecuparams.ver);
if(("minor"in gecuparams)&&(typeof(gecuparams.minor)!=="undefined")&&(gecuparams.minor!=null)&&(gecuparams.minor!=""))u+="&amp;gc_minor="+encodeURIComponent(gecuparams.minor);
if(("value"in gecuparams)&&(typeof(gecuparams.value)!=="undefined")&&(gecuparams.value!=null)&&(gecuparams.value!=""))u+="&amp;gc_value="+encodeURIComponent(gecuparams.value);
}
if(("idfa" in g)&&(typeof(g.idfa)!=="undefined")&&(g.idfa!=null)&&(g.idfa!=""))u+="&amp;idfa="+encodeURIComponent(g.idfa);
if('lat' in g)u+='&amp;adtk='+encodeURIComponent(g.lat ? '0' : '1');
if(("bundle" in g)&&(typeof(g.bundle)!=="undefined")&&(g.bundle!=null)&&(g.bundle!=""))u+="&amp;apid="+encodeURIComponent(g.bundle);
u+=ss();
u+=fg();
u+=getImuidAsQueryParameter();
u+=makeUAQuery();
return u;
}
function ss(){
if(typeof screen==="undefined")return "";
var sw=screen.width;
var sh=screen.height;
if(sw>sh)return "&amp;sw="+sh+"&amp;sh="+sw;
return "&amp;sw="+sw+"&amp;sh="+sh;
}
function ii(){
var ua=navigator.userAgent.toLowerCase();
if(ua.indexOf("msie")!==-1)return false;
var r=/trident\/(\d+\.\d)/;
var b=ua.match(r);
if(b===null)return false;
var c=parseFloat(b[1]);
if(c>=7.0)return true;
return false;
}
function fg(){

return "";
}
function gc(n){
var v=null;
var t=document.cookie;
if(t!=""){
var cs=t.split("; ");
for(var i=0;i<cs.length;i++){
var c=cs[i];
var p=c.indexOf("=");
var k=c.substring(0,p);
if(k==n){
v=decodeURIComponent(c.substring(p+1));
break;
}}}
return v;
}
function go(){
var of="(function(){";
of+="function op(p){";
of+="for(var e=p.firstChild;e!=null;e=e.nextSibling){";
of+="if(e.nodeType==1){";
of+="if(e.nodeName=='A'){";
of+="var ah=e.href;";
of+="if(ah!=null&&ah!=''){";
of+="var hp='';";
of+="var hq='';";
of+="var hh='';";
of+="var qb=ah.indexOf('?');";
of+="if(qb>=0){";
of+="hp=ah.substring(0,qb);";
of+="var hb=ah.indexOf('#',qb+1);";
of+="if(hb>=0){";
of+="hq=ah.substring(qb+1,hb);";
of+="hh=ah.substring(hb+1);";
of+="}else{";
of+="hq=ah.substring(qb+1);";
of+="}";
of+="}else{";
of+="hp=ah;";
of+="}";
of+="if(hq!=''){";
of+="var ob=hq.toLowerCase().indexOf('=');";
of+="if(ob==0||(ob>0&&hq.charAt(ob-1)=='&')){";
of+="continue;";
of+="}else{";
of+="hq+='&=1';";
of+="}";
of+="}else{";
of+="hq='=1';";
of+="}";
of+="ah=hp;";
of+="if(hq!=''){";
of+="ah+='?'+hq;";
of+="if(hh!=''){";
of+="ah+='#'+hh;";
of+="}";
of+="}";
of+="e.href=ah;";
of+="}}";
of+="if(e.nodeName!='SCRIPT'){";
of+="op(e);";
of+="}}}}";
of+="function os(){";
of+="var dd=0;";
of+="if(typeof(window.__sotoda_open_safari)!=='undefined'&&window.__sotoda_open_safari!=null&&window.__sotoda_open_safari==1&&dd==1){";
of+="window.__sotoda_open_safari=0;";
of+="var ss=document.getElementsByTagName('script');";
of+="var se=ss[ss.length-1];";
of+="var sp=se.parentNode;";
of+="var pe=null;";
of+="if(window.parent==window.self){";
of+="while(sp!=null&&sp!=document.documentElement&&sp!=document.body){";
of+="if(sp.nodeType==1&&sp.nodeName=='DIV'){";
of+="pe=sp;";
of+="break;";
of+="}";
of+="sp=sp.parentNode;";
of+="}";
of+="}else{";
of+="while(sp!=null&&sp!=document.documentElement){";
of+="if(sp.nodeType==1&&sp.nodeName=='BODY'){";
of+="pe=sp;";
of+="break;";
of+="}";
of+="sp=sp.parentNode;";
of+="}}";
of+="if(pe!=null)";
of+="op(pe);";
of+="}}";
of+="os();";
of+="})();";
return of;
}
function r(){
var iie = ii();
if(!iie)
document.open();
var b=bc();
var rat="";
if(di.ra==1&&(typeof(window.__sotoda_rta)==="undefined"||window.__sotoda_rta==null||window.__sotoda_rta=="")){
window.__sotoda_rta=gc(rk);
var ra=ru();
rat="<script defer async type='text/javascript' src='"+ra+"'><\/"+"script>";
}
var rst="";
if(b==4&&dc()==0&&(typeof(window.__sotoda_rtus)==="undefined"||window.__sotoda_rtus==null||window.__sotoda_rtus=="")&&di.gr!=1){
var rs="https://gum.criteo.com/sync?c=54&r=2&j=__sotoda_rtus_cb";
rst="<script defer async type='text/javascript' src='"+rs+"'><\/"+"script>";
}
var egt="";
if (b>0&&(typeof(window.__sotoda_usd)==="undefined"||window.__sotoda_usd==null||typeof(window.__sotoda_usd.kvc)==="undefined"||window.__sotoda_usd.kvc==null||window.__sotoda_usd.kvc=="")){
var eg="https://cs.waqool.com/yie/ld/eg";
eg+="?bc="+b;
egt="<script type='text/javascript' src='"+eg+"'><\/"+"script>";
}
var d="<script type='text/javascript'>";
d+="(function(){";
d+="var d='"+du()+"';";
d+="if(typeof(window.__sotoda_usd)!=='undefined'&&typeof(window.__sotoda_usd.kvc)!=='undefined'&&window.__sotoda_usd.kvc!='')";
d+="d+=('&amp;etp='+window.__sotoda_usd.kvc);";
d+="if(typeof(window.__sotoda_rtus)!=='undefined'&&window.__sotoda_rtus!=null&&window.__sotoda_rtus!='')";
d+="d+=('&amp;rtus='+encodeURIComponent(window.__sotoda_rtus));";
d+="if(typeof(window.__sotoda_rta)!=='undefined'&&window.__sotoda_rta!=null&&window.__sotoda_rta!='')";
d+="d+=('&amp;custom_rta='+encodeURIComponent(window.__sotoda_rta));";
d+="d+=('&amp;topframe='+((window.parent==window.self)?1:0));";
if(!iie)
d+="document.open();";
d+="document.write(\"<script type='text/javascript' src='\"+d+\"'><\\\/\"+\"script>\");";
if(!iie)
d+="document.close();";
d+="})();";
d+="<\/"+"script>";
if(b==-2){
document.write(rat+rst+egt+d);
}else{
var ost="<script type='text/javascript'>";
ost+=go();
ost+="<\/"+"script>";
document.write("<div>"+rat+rst+egt+d+ost+"<\/"+"div>");
}
if(!iie)
document.close();
}
setUserAgent();
r();
appendImuidScript();
function encodeURIComponent(a) {
var b = window.encodeURIComponent(a);
b = b.replace(/'/g, '%27');
return b;
}
})();
