Files
2026-11-16 01:39:59 +07:00

6 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(win,key){
win[key]=window[key]||{};
win[key].punishPath="https://www.lazada.co.th:443//wow/i/th/marketing/ams_lp_____tmd_____/punish?punishFlowType=jsonp&callback=true&x5secdata=xddbf7c68de2fc6a744da332f2e785a7053cf105373112444c1702627503a1984346082a783244911abaac3caa__bx__www.lazada.co.th%3A443%2Fwow%2Fi%2Fth%2Fmarketing%2Fams_lp&x5step=2&action=captcha&pureCaptcha=";
})(window,"__baxia__");
!function(){"use strict";var e=window,n=function(n,r){var t=e.__baxia__||{};return n?t[n]||r:t},r=function(n,r){e.__baxia__=e.__baxia__||{},e.__baxia__[n]=r},t=location,a=document,i=function(e,n,r){(void 0===n&&(n=1),void 0===r&&(r=.1),0>=r||Math.random()<r)&&function(e,n){var r=[];for(var t in e)r.push(t+"="+encodeURIComponent(e[t]));(new Image).src=n+r.join("&")}({code:n,msg:(e+"").substr(0,1e3)+";v:2.5.6",pid:"baxia",page:t.href.split(/[#?]/)[0],query:t.search.substr(1),hash:t.hash,referrer:a.referrer,title:a.title,ua:navigator.userAgent},"//gm.mmstat.com/fsp.1.1?")};var o=document;try{var s=document;({init:function(){this.punishPath=n("punishPath","https://www.taobao.com/markets/bx/deny_h5"),this.dialogSize=n("dialogSize",""),r("punishPath",""),this.listenOnLoad()},getCurrentScript:function(){if(s.currentScript)return s.currentScript;var e=null,n=document.getElementsByTagName("script"),r=null;try{throw Error()}catch(i){var t,a=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if((r=n[t]).src==a||"interactive"==r.readyState)return e=n[t],n[t]}return e},updatejQueryEvent:function(e,n,r){var t=window.jQuery;t&&(t.event.triggered=n,r&&t(e).trigger(r))},getHandlerPath:function(e,r){return r.jsPath?r.jsPath:""+n("cdnPath","https://g.alicdn.com/sd/baxia/2.5.6/")+e+".js"},listenOnLoad:function(){var e=this.getCurrentScript();this.updatejQueryEvent("","load");var n=e.onreadystatechange||e.onload,r=this;e.onload=function(){var e=this;this.onload=this.onreadystatechange=null,r.handler("Jsonp",{result:{rgv587_flag:"sm",url:r.punishPath,dialogSize:r.dialogSize},config:{url:this.src,bxOriginUrl:this.bxOriginUrl,done:function(){e.readyState="loaded",n&&n.call(e,"",!1),r.updatejQueryEvent(e,"","load")},fail:function(){e.readyState="error",n&&n.call(e,"",!1),r.updatejQueryEvent(e,"","error")}}})}},handler:function(e,t){void 0===e&&(e="Xhr"),void 0===t&&(t={});var a=n("pluginInstance",null),s=n("handlerQueue",[]);try{if(a)return a.handler(t);s.push({pluginName:e,props:t});var u=s[0],l="baxia"+u.pluginName+"Handler",c=this.getHandlerPath(l,u.props);r("handlerQueue",s),function(e,n,r,t){if(!e)return n();var a=o.getElementsByTagName("script")[0],s=o.createElement("script");if(s.async=!0,s.src=e,t&&(s.bxOriginUrl=t),e.indexOf("alicdn")>-1&&(s.crossOrigin=!0),s.onerror=function(n){i("function:loadJS. msg:"+e+"load error。props:"+JSON.stringify(r)),s.onerror=null},n){var u=!1;s.onload=s.onreadystatechange=function(){u||s.readyState&&!/loaded|complete/.test(s.readyState)||(s.onload=s.onreadystatechange=null,u=!0,n())}}a.parentNode.insertBefore(s,a)}(c,function(){var e=n("pluginInstance",null);if(e){s=n("handlerQueue",[]);for(var t=0;s.length>t;t++)e.handler(s[t].props)}else{s=n("handlerQueue",[]),e=new window[l];for(t=0;s.length>t;t++)e.handler(s[t].props);r("pluginInstance",e),r("handlerQueue",[])}})}catch(d){r("pluginInstance",null),i("handler err,param:"+JSON.stringify(arguments)+","+d.message+d.stack)}}}).init()}catch(u){i("Hook JSONP ,Message:"+u.message,13,.1)}}();