(function(){var k,aa=aa||{},l=this,m=function(a){return void 0!==a},p=function(a){return"string"==typeof a},q=function(a){return"number"==typeof a},da=function(){if(null===ba){a:{var a=l.document;if((a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&ca.test(a))break a;a=null}ba=a||""}return ba},ca=/^[\w+/_-]+[=]{0,2}$/,ba=null,ea=function(a){a=a.split(".");for(var b=l,c=0;cb?null:p(a)?a.charAt(b):a[b]},Ba=function(a,b){var c=xa(a,b),d;if(d=0<=c)x(null!=a.length),Array.prototype.splice.call(a,c, 1);return d},Ca=function(a){return Array.prototype.concat.apply([],arguments)},Da=function(a){var b=a.length;if(0b?1:0};var y;a:{var Ja=l.navigator;if(Ja){var Ka=Ja.userAgent;if(Ka){y=Ka;break a}}y=""}var z=function(a){return-1!=y.indexOf(a)};var La=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},Ma=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Na=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Oa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Pa=function(a,b){for(var c,d,e=1;eparseFloat(bb)){ab=String(db);break a}}ab=bb} var eb=ab,Ua={},fb=function(a){return Va(a,function(){for(var b=0,c=Ga(String(eb)).split("."),d=Ga(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&fb.length){c.push(lb(a)+"(");for(var d=a.arguments,e=0;d&&e=wb(this).value)for(ha(b)&&(b=b()),a=new ob(a,String(b),this.gb),c&&(a.Xa=c),c=this;c;){var d=c,e=a;if(d.$a)for(var f=0;b=d.$a[f];f++)b(e);c=c.getParent()}};B.prototype.info=function(a,b){this.log(tb,a,b)};B.prototype.B=function(a,b){this.log(ub,a,b)}; var xb={},yb=null,zb=function(a){yb||(yb=new B(""),xb[""]=yb,yb.Pa(ub));var b;if(!(b=xb[a])){b=new B(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=zb(a.substr(0,c));c.va||(c.va={});c.va[d]=b;b.ka=c;xb[a]=b}return b};var Ab=function(a,b){var c=zb(a);b&&c&&c.Pa(b);return c},Bb=function(a,b){a&&a.info(b,void 0)},C=function(a,b){a&&a.log(vb,b,void 0)};var Cb=function(a){a=Ab(a,tb);Bb(a,"Logging enabled.");return a};var Db=function(a){x(/^[a-zA-Z0-9][a-zA-Z0-9_\-]{0,49}$/.test(a),"A valid product name should be a non-empty string containing alphanumeric characters, dashes (-) and underscores(_). It must start with alphanumeric character and be at most 50 characters long.");this.Cb=a;this.H="empty";this.Va=null;this.Wa={}};k=Db.prototype;k.ea=function(){return this.Cb};k.Da=function(){return this.H};k.W=function(){return this.Va};k.getContext=function(){return this.Wa}; k.Z=function(a){x(/^[a-zA-Z0-9][a-zA-Z0-9_\-\.]{0,39}$/.test(a),"A valid version should be a non-empty string containing alphanumeric characters, dots(.), dashes (-) and underscores(_). It must start with an alphanumeric character and be at most 40 characters long.");this.H=a;return this};k.La=function(a){x(!Fa(a),"Channel must not be empty");this.Va=a;return this};k.Ma=function(a){x(ia(a),"Context must be an object");this.Wa=Na(a);return this};var Gb=function(a){var b=[];Eb(new Fb,a,b);return b.join("")},Fb=function(){this.pa=void 0},Eb=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(t(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f=a.length)throw Kb;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Nb=function(a,b){if(u(a))try{ya(a,b,void 0)}catch(c){if(c!==Kb)throw c;}else{a=Mb(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Kb)throw c;}}},Ob=function(a){if(u(a))return Da(a);a=Mb(a);var b=[];Nb(a,function(a){b.push(a)});return b};var Pb=function(){};var Qb=function(){};w(Qb,Pb);Qb.prototype.clear=function(){var a=Ob(this.S(!0)),b=this;ya(a,function(a){b.remove(a)})};var Rb=function(a){this.f=a};w(Rb,Qb);var Sb=function(a){if(!a.f)return!1;try{return a.f.setItem("__sak","1"),a.f.removeItem("__sak"),!0}catch(b){return!1}};k=Rb.prototype;k.set=function(a,b){try{this.f.setItem(a,b)}catch(c){if(0==this.f.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};k.get=function(a){a=this.f.getItem(a);if(!p(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};k.remove=function(a){this.f.removeItem(a)}; k.S=function(a){var b=0,c=this.f,d=new Lb;d.next=function(){if(b>=c.length)throw Kb;var d=sa(c.key(b++));if(a)return d;d=c.getItem(d);if(!p(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};k.clear=function(){this.f.clear()};k.key=function(a){return this.f.key(a)};var Tb=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.f=a};w(Tb,Rb);var Wb=function(a,b){this.b=a;this.Bb=36E5;this.mb="__webmonitoring_RateThrottler_history_hourlyRate";this.s=[];null===Ub&&(Ub=Cb("webmonitoring.RateThrottler"));this.f=null;b&&(this.f=new Tb);if(null!=this.f&&Sb(this.f)){var c=this.f.get(this.mb);if(null!=c)try{this.s=JSON.parse(c)||[]}catch(d){Ub&&Ub.log(rb,"Could not parse old history.",d)}}c=!1;t(this.s)||(this.s=[],c=!0);for(;this.s.length>this.b;)this.s.shift(),c=!0;c&&Vb(this)},Vb=function(a){if(null!=a.f&&Sb(a.f))try{a.f.set(a.mb,Gb(a.s))}catch(b){Ub&& Ub.log(rb,"Could not save history.",b)}};Wb.prototype.exec=function(a){var b=+new Date;x(this.s.length<=this.b);if(this.s.length==this.b)if(this.s[0]=a.keyCode)a.keyCode=-1}catch(b){}};var cc="closure_listenable_"+(1E6*Math.random()|0),dc=0;var ec=function(a,b,c,d,e){this.listener=a;this.na=null;this.src=b;this.type=c;this.capture=!!d;this.fa=e;this.key=++dc;this.P=this.ca=!1},fc=function(a){a.P=!0;a.listener=null;a.na=null;a.src=null;a.fa=null};var G=function(a){this.src=a;this.h={};this.ba=0};G.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.h[f];a||(a=this.h[f]=[],this.ba++);var g=gc(a,b,d,e);-1c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode= -1;break a}catch(n){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var g=c.length-1;!d.M&&0<=g;g--){d.currentTarget=c[g];var h=xc(c[g],f,!0,d);e=e&&h}for(g=0;!d.M&&g>>0),nc=function(a){x(a,"Listener can not be null.");if(ha(a))return a; x(a.handleEvent,"An object listener must have handleEvent method.");a[yc]||(a[yc]=function(b){return a.handleEvent(b)});return a[yc]};var H=function(){D.call(this);this.l=new G(this);this.rb=this;this.Ha=null};w(H,D);H.prototype[cc]=!0;H.prototype.addEventListener=function(a,b,c,d){mc(this,a,b,c,d)};H.prototype.removeEventListener=function(a,b,c,d){uc(this,a,b,c,d)}; H.prototype.dispatchEvent=function(a){oc(this);var b=this.Ha;if(b){var c=[];for(var d=1;b;b=b.Ha)c.push(b),x(1E3>++d,"infinite loop")}b=this.rb;d=a.type||a;if(p(a))a=new E(a,b);else if(a instanceof E)a.target=a.target||b;else{var e=a;a=new E(d,b);Pa(a,e)}e=!0;if(c)for(var f=c.length-1;!a.M&&0<=f;f--){var g=a.currentTarget=c[f];e=zc(g,d,!0,a)&&e}a.M||(g=a.currentTarget=b,e=zc(g,d,!0,a)&&e,a.M||(e=zc(g,d,!1,a)&&e));if(c)for(f=0;!a.M&&f2*this.b&&Hc(this),!0):!1};var Hc=function(a){if(a.b!=a.g.length){for(var b=0,c=0;b=d.g.length)throw Kb;var e=d.g[b++];return a?e:d.u[e]};return e}; var Ic=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Jc=function(a){if(a.A&&"function"==typeof a.A)return a.A();if(p(a))return a.split("");if(u(a)){for(var b=[],c=a.length,d=0;db)throw Error("Bad port number "+b);a.O=b}else a.O=null},ed=function(a,b,c){M(a);b instanceof N?(a.v=b,a.v.Oa(a.m)):(c||(b=gd(b,ld)),a.v=new N(b,a.m))};L.prototype.getQuery=function(){return this.v.toString()};L.prototype.removeParameter=function(a){M(this);this.v.remove(a);return this};var M=function(a){if(a.yb)throw Error("Tried to modify a read-only Uri");}; L.prototype.Oa=function(a){this.m=a;this.v&&this.v.Oa(a)}; var fd=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},gd=function(a,b,c){return p(a)?(a=encodeURI(a).replace(b,md),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},md=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},hd=/[#\/\?@]/g,jd=/[#\?:]/g,id=/[#\?]/g,ld=/[#\?@]/g,kd=/#/g,N=function(a,b){this.b=this.c=null;this.j=a||null;this.m=!!b},O=function(a){a.c||(a.c=new Gc,a.b=0,a.j&&Oc(a.j,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g, " ")),c)}))};k=N.prototype;k.add=function(a,b){O(this);this.j=null;a=nd(this,a);var c=this.c.get(a);c||this.c.set(a,c=[]);c.push(b);this.b=ra(this.b)+1;return this};k.remove=function(a){O(this);a=nd(this,a);return this.c.T(a)?(this.j=null,this.b=ra(this.b)-this.c.get(a).length,this.c.remove(a)):!1};k.clear=function(){this.c=this.j=null;this.b=0};k.T=function(a){O(this);a=nd(this,a);return this.c.T(a)}; k.forEach=function(a,b){O(this);this.c.forEach(function(c,d){ya(c,function(c){a.call(b,c,d,this)},this)},this)};k.D=function(){O(this);for(var a=this.c.A(),b=this.c.D(),c=[],d=0;d=a,"Global sampling should be a number between 0 and 100");x(a==a.toPrecision(5),"Global sampling percent supported only up to a thousandth precision");return a}; Q.prototype.enable=function(){if(this.isEnabled())return!1;this.Ga=window.onerror;window.onerror=this.zb.bind(this);return this.cb=!0};Q.prototype.enable=Q.prototype.enable; Q.prototype.Ja=function(a,b,c,d,e){var f=window.location.href;f=f instanceof L?f.clone():new L(f,void 0);a=null!=e&&null!=e.message?e.message:a;Bb(P,Ea('The following error:" %s" occurred at URL: %s',a,f.i));if(ha(this.ua)&&!this.ua(f.i,a,b,c,d,e))Bb(P,"The error was throttled by a custom handler and will not be uploaded.");else if(this.da){for(var g=Object.keys(this.Ia),h=100,n=0;n=this.Za*h/100?Bb(P, "The error upload was throttled due to sampling."):(0<=this.Fa&&null===this.oa&&(this.oa=new Wb(this.Fa,this.ob)),(null===this.oa?0:!this.oa.exec())?Bb(P,"The error upload was throttled since it exceeded the maximum allowed hourly rate."):this.da&&(g=Na(this.L.getContext()),g.url=f.i,this.vb&&(g.full_url=l.location.href),this.wb&&(g.user_agent=l.navigator.userAgent),g.type="JavascriptError",g.error_message=a,h="Other",Wa?h="Opera":A?h="Internet Explorer":od?h="Firefox":sd?h="Chrome":td&&(h="Safari"), g.browser=h,g.browser_version=vd,g.os=z("CrOS")?"Chrome OS":z("Linux")?"Linux":z("Windows")?"Windows":z("Android")?"Android":Ra()?"iPhone":z("iPad")?"iPad":z("iPod")?"iPod":z("Macintosh")?"Mac":"Unknown",h=y,n="",z("Windows")?(n=/Windows (?:NT|Phone) ([0-9.]+)/,n=(h=n.exec(h))?h[1]:"0.0"):Sa()?(n=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,n=(h=n.exec(h))&&h[1].replace(/_/g,".")):z("Macintosh")?(n=/Mac OS X ([0-9_.]+)/,n=(h=n.exec(h))?h[1].replace(/_/g,"."):"10"):z("Android")?(n=/Android\s+([^\);]+)(\)|;)/, n=(h=n.exec(h))&&h[1]):z("CrOS")&&(n=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,n=(h=n.exec(h))&&h[1]),g.os_version=n||"",null!=this.L.W()&&(g.channel=this.L.W()),Fa(this.wa)||(g.guid=this.wa),null!=b&&(g.src=b),null!=c&&(g.line=c),null!=d&&(g.column=d),g.prod=this.L.ea(),g.ver=this.L.Da(),c=null!=e?Ha(e.stack):"",b=xd(g),Fa(a)||(d=c.split("\n"),-1=+new Date&&b.push("adsid="+encodeURIComponent(X[1]));return a+"?"+b.join("&")},X,Y,Xd=function(){W=l;X=W.googleToken=W.googleToken||{};var a=+new Date;X[1]&&X[3]>a&&0=+new Date?Z.Ua(a):(Z.Ya().push(a),Z.jb()));X[3]>=+new Date&&X[2]>=+new Date||Z.jb()},Zd=function(a){l.processGoogleToken= l.processGoogleToken||function(a,c){var b=a,e=c;b=void 0===b?{}:b;e=void 0===e?0:e;var f=b.newToken||"",g="NT"==f,h=parseInt(b.freshLifetimeSecs||"",10),n=parseInt(b.validLifetimeSecs||"",10),wa=b["1p_jar"]||"";b=b.pucrd||"";Xd();1==e?Z.Gb():Z.Fb();var na=W.googleToken=W.googleToken||{},Vc=0==e&&f&&p(f)&&!g&&q(h)&&0=+new Date)||"NT"==X[1]);var $d=!(X[3]>=+new Date)&&0!=e;if(Vc||g||$d)g=+new Date,h=g+1E3*h,n=g+1E3*n,1E-5>Math.random()&&Rd("https://pagead2.googlesyndication.com/pagead/gen_204?id=imerr&err="+ e),na[5]=e,na[1]=f,na[2]=h,na[3]=n,na[4]=wa,na[6]=b,Xd();if(Vc||!Z.Aa()){e=Z.Ya();for(f=0;ff&&(f=d.length);c=d.indexOf("?");if(0>c||c>f){c=f;var g= ""}else g=d.substring(c+1,f);d=[d.substr(0,c),g,d.substr(f)];f=d[1];d[1]=e?f?f+"&"+e:e:f;d=d[0]+(d[1]?"?"+d[1]:"")+d[2]}ae("script",{src:d,nonce:da()})}},ae=function(a,b){var c=document.createElement(a);La(b,function(a,b){c.setAttribute(b,a)});document.body.appendChild(c)},ce=function(){try{var a=_402,b=la(be,a,void 0);if(a.im){if(""!=a.tld){var c=a.tld;Xd();Vd(c)&&(Y[1]=c)}Zd(b)}else b()}catch(f){a=f;a=ib(a);b=ea("window.location.href");if(p(a))a={message:a,name:"Unknown error",lineNumber:"Not available", fileName:b,stack:"Not available"};else{c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||l.$googDebugFname||b}catch(g){e="Not available",c=!0}a=!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:{message:a.message||"Not available",name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:a.stack||"Not available"}}Id&&Id.log(sb,"Logging an error.",a);(d=-1!==window.location.href.indexOf("204_debug"))&&window.console&& window.console.log&&(window.console.log("Exception caught: ",a),window.console.log("Stack: ",a.stack));Kd.Ja(a.message,window.location.href,Number(a.lineNumber),void 0,a);if(d)throw a;}};_402.load=_402.load||la(ce);_402.domWait=function(){Qd(function(){_402.load()})};}).call(this); window['_402'] = window['_402'] || {}; window['_402']['site'] = "kv4ic6olrzkr6"; window['_402']['im'] = true; window['_402']['tld'] = '.google.co.th'; (function(){ if(!window._402nosurvey){ var n = document.createElement("script"); n.setAttribute('charset', 'utf-8'); n.setAttribute('type', 'text/javascript'); n.setAttribute('src', '//survey.g.doubleclick.net/insights/consumersurveys/static/412047975257234113/prompt_embed_static.js'); var noncedScript = document.querySelector('script[nonce]'); if (noncedScript) { n.setAttribute('nonce', noncedScript['nonce'] || noncedScript.getAttribute('nonce')); } var parent = document.getElementsByTagName('head')[0] || document.getElementByTagName('body')[0]; parent.appendChild(n);} })(); window['_402']['promptHandlerUrl'] = window['_402']['promptHandlerUrl'] || '//survey.g.doubleclick.net/gk/prompt'; window['_402']['params'] = {}; window['_402']['domWait']();