1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():e()}(this,function(){"use strict";function t(t){this.SensorsABTest=t,this.para=t.para}function e(t){this.SensorsABTest=t,this.para=t.para}function s(t){var e="t6KJCZa5pDdQ9khoEM3Tj70fbP2eLSyc4BrsYugARqFIw1mzlGNVXOHiWvxUn8",s=e.length-1,r={},i=0;for(i=0;i<e.length;i++)r[e.charAt(i)]=e.charAt(s-i);var n="";for(i=0;i<t.length;i++)n+=t.charAt(i)in r?r[t.charAt(i)]:t.charAt(i);return n}function r(t){return 0===t.indexOf(Z)&&(t=t.substring(Z.length),t=s(t)),t}function i(t){return Z+s(t)}function n(t){this.SensorsABTest=t}function a(t){return I.isObject(t)&&I.isObject(t.readyState)&&t.readyState.state>=3?t:null}function o(t){var e={visibleHandle:I.isFunction(t.visible)?t.visible:function(){},hiddenHandler:I.isFunction(t.hidden)?t.hidden:function(){},visibilityChange:null,hidden:null,isSupport:function(){return"undefined"!=typeof document[this.hidden]},init:function(){"undefined"!=typeof document.hidden?(this.hidden="hidden",this.visibilityChange="visibilitychange"):"undefined"!=typeof document.mozHidden?(this.hidden="mozHidden",this.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.msHidden?(this.hidden="msHidden",this.visibilityChange="msvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(this.hidden="webkitHidden",this.visibilityChange="webkitvisibilitychange"),this.listen()},listen:function(){if(this.isSupport()){var t=this;document.addEventListener(t.visibilityChange,function(){document[t.hidden]?t.hiddenHandler():t.visibleHandle()},1)}else document.addEventListener?(window.addEventListener("focus",this.visibleHandle,1),window.addEventListener("blur",this.hiddenHandler,1)):(document.attachEvent("onfocusin",this.visibleHandle),document.attachEvent("onfocusout",this.hiddenHandler))}};e.init()}function l(t){var e=I.storage.get(t);I.isString(e)&&(e=r(e));try{e=JSON.parse(e)}catch(s){I.log(s)}return e}function c(t,e,s){t=JSON.stringify(t),s&&(t=i(t)),I.storage.set(t,e)}function u(t){this.attr_name="sa-abtest-"+t,this.remove_timer=null,this.is_added=!1,this.is_abort=!1,this.is_timeout=!1,this.style_element=null,this.createMaskStyle()}function h(t){this.SensorsABTest=t,this.isFirst=!0,this.start_time=null,this.mask_instance=null,this.is_filtered_out=!1,this.para={timeout:500,use_mask:!0,pass_params:!0,control_link_search:"default",experiment_link_search:"default"}}function p(){var t,e={},s=navigator.userAgent.toLowerCase();return(t=s.match(/opera.([\d.]+)/))?e.opera=Number(t[1].split(".")[0]):(t=s.match(/msie ([\d.]+)/))?e.ie=Number(t[1].split(".")[0]):(t=s.match(/edge.([\d.]+)/))?e.edge=Number(t[1].split(".")[0]):(t=s.match(/firefox\/([\d.]+)/))?e.firefox=Number(t[1].split(".")[0]):(t=s.match(/chrome\/([\d.]+)/))?e.chrome=Number(t[1].split(".")[0]):(t=s.match(/version\/([\d.]+).*safari/))?e.safari=Number(t[1].match(/^\d*.\d*/)):(t=s.match(/trident\/([\d.]+)/))&&(e.ie=11),e}function d(){if(!window.name)return!1;try{var t=JSON.parse(decodeURIComponent(window.name||"")),e=t.is_vabtesting,s=t.source_url,r=t.link_match_type;return!(e!==!0||!I.checkUrlIsMatch(s,r))||(I.log("A/B Testing SDK \u9875\u9762\u5730\u5740\uff0c\u4e0e\u5f53\u524d\u5b9e\u9a8c URL \u4e0d\u5339\u914d\uff0c\u8bf7\u4f7f\u7528\u6b63\u786e\u7684 URL\uff01"),!1)}catch(i){return!1}}function f(t,e){t=t||window;var s=!1,r=!0,i=t.document,n=i.documentElement,a=i.addEventListener,o=a?"addEventListener":"attachEvent",l=a?"removeEventListener":"detachEvent",c=a?"":"on",u=function(r){"readystatechange"==r.type&&"complete"!=i.readyState||(("load"==r.type?t:i)[l](c+r.type,u,!1),!s&&(s=!0)&&e.call(t,r.type||r))},h=function(){try{n.doScroll("left")}catch(t){return void setTimeout(h,50)}u("poll")};if("complete"==i.readyState)e.call(t,"lazy");else{if(!a&&n.doScroll){try{r=!t.frameElement}catch(p){}r&&h()}i[o](c+"DOMContentLoaded",u,!1),i[o](c+"readystatechange",u,!1),t[o](c+"load",u,!1)}}function g(t){if(!t.parentNode)return-1;for(var e=0,s=t.tagName,r=t.parentNode.children,i=0;i<r.length;i++)if(r[i].tagName===s){if(t===r[i])return e;e++}return-1}function _(t){var e=t.parentNode&&9==t.parentNode.nodeType?-1:g(t);return t.getAttribute&&t.getAttribute("id")&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(t.getAttribute("id"))?"#"+t.getAttribute("id"):t.tagName.toLowerCase()+(~e?":nth-of-type("+(e+1)+")":"")}function m(t,e){if(!t||!t.parentNode||!t.parentNode.children)return!1;e=e&&e.join?e:[];var s=t.nodeName.toLowerCase();return t&&"body"!==s&&1==t.nodeType?(e.unshift(_(t)),t.getAttribute&&t.getAttribute("id")&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(t.getAttribute("id"))?e.join(" > "):m(t.parentNode,e)):(e.unshift("body"),e.join(" > "))}function v(t,e){return t.currentStyle?t.currentStyle[e]:t.ownerDocument.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function y(t,e){var s={};return I.each(e||[],function(e){var r=e.replace(/[A-Z]+/g,function(t){return"-"+t.toLowerCase()});s[e]=v(t,r)}),s}function S(t){var e=t.childNodes,s="",r=!1;return I.each(e,function(t){r===!1&&3===t.nodeType&&(I.isString(t.textContent)||I.isString(t.innerText)||I.isString(t.nodeValue))&&(s=I.trim(t.textContent||t.innerText||t.nodeValue||""),r=!0)}),s}function b(t){function e(t,e){t=I.trim(t);var s;if("body"===t)return document.getElementsByTagName("body")[0];if(0===t.indexOf("#"))t=t.slice(1),s=document.getElementById(t);else if(t.indexOf(":nth-of-type")>
1-1){var r=t.split(":nth-of-type");if(!r[0]||!r[1])return null;var i=r[0],n=r[1].match(/\(([0-9]+)\)/);if(!n||!n[1])return null;var a=Number(n[1]);if(!(I.isElement(e)&&e.children&&e.children.length>0))return null;for(var o=e.children,l=0;l<o.length;l++)if(I.isElement(o[l])){var c=o[l].tagName.toLowerCase();if(c===i&&(a--,0===a)){s=o[l];break}}if(a>0)return null}return s?s:null}function s(t){var i,n=r.shift();if(!n)return t;try{i=e(n,t)}catch(a){i=null}return i&&I.isElement(i)?s(i):null}if(!I.isString(t))return null;var r=t.split(">"),i=null;return i=s(),i&&I.isElement(i)?i:null}function T(t){var e=t.match(/[\d.]+/g);if(e.length>=3){var s,r,i;return s=e[0],r=e[1],i=e[2],"rgb("+s+","+r+","+i+")"}return""}function A(t,e){function s(t,e){var s=t.length-e.length;return s>=0&&t.indexOf(e,s)==s}var r=p(),i=r.ie&&r.ie<9,n="";if(I.each(e,function(t,e){i&&t.indexOf("rgba")>-1&&(t=T(t));var s=e.replace(/[A-Z]+/g,function(t){return"-"+t.toLowerCase()});n+=";"+s+": "+t}),""!==n){var a=t.style,o=a.cssText||"";o&&!s(o,";")&&(o+=";"),a.cssText=o+n}}function B(t,e){var s=t.childNodes,r=!1;I.each(s,function(t){3===t.nodeType&&(r||(t.textContent?t.textContent=e:t.innerText?t.innerText=e:t.nodeValue=e,r=!0))})}function k(t,e){var s=t.originProps,r=e.originProps,i=s.attributes,n=r.attributes,a=!0;return s.text&&s.text!==r.text&&(a=!1),i&&I.each(["src","href","target"],function(t){i[t]&&i[t]!==n[t]&&(a=!1)}),a}function w(t,e,s){t.setAttribute(e,s)}function x(t,e){var s=e.originProps,r={attributes:{}},i=s.attributes;return I.each(i.style||{},function(e,s){r.attributes.style[s]=v(t,s)}),Object.hasOwnProperty.call(s,"text")&&(r.attributes.text=S(t)),I.each(["src","href"],function(e){Object.hasOwnProperty.call(i,e)&&(r.attributes[e]=t[e])}),Object.hasOwnProperty.call(i,"target")&&(r.attributes.target=t.getAttribute("target")),r}function D(t,e,s){if(s||(s=x(t,e)),k(e,s)){var r=e.props;I.isObject(r)&&O(t,r)}}function O(t,e){if(Object.hasOwnProperty.call(e,"attributes")){var s=e.attributes;Object.hasOwnProperty.call(s,"style")&&A(t,s.style),I.each(["href","target","src"],function(e){Object.hasOwnProperty.call(s,e)&&w(t,e,s[e])})}Object.hasOwnProperty.call(e,"text")&&B(t,e.text)}function E(t){t=I.extend({success:function(){},error:function(){},appendCall:function(t){document.getElementsByTagName("head")[0].appendChild(t)}},t);var e=null;"css"===t.type&&(e=document.createElement("link"),e.rel="stylesheet",e.href=t.url),"js"===t.type&&(e=document.createElement("script"),e.async="async",e.setAttribute("charset","UTF-8"),e.src=t.url,e.type="text/javascript"),t.id&&(e.id=t.id),e.onload=e.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(t.success(),e.onload=e.onreadystatechange=null)},e.onerror=function(){t.error(),e.onerror=null},t.appendCall(e)}function P(t,e){E(I.extend({success:function(){},error:function(){},type:"js",url:t},e))}function j(t){var e={childList:!0,subtree:!0},s=window.MutationObserver,r=new s(t);r.observe(document.body,e)}function N(t,e){var s=t.tagName.toLowerCase(),r=y(t,e),i={selector:m(t),originProps:{attributes:{style:r},text:S(t)},type:"text",tagName:s};"a"===s&&(i.originProps.attributes.href=t.href,t.getAttribute("target")&&(i.originProps.attributes.target=t.getAttribute("target")),i.type="link"),"img"===s&&(i.originProps.attributes.src=t.src,i.type="img");var n=t.getAttribute("style");return{originStyle:n,eleInfo:i,ele:t}}function L(t){var e=t.eleInfo,s=t.ele;if(s){var r=t.originStyle;O(s,e.originProps),r?s.style.cssText=r:s.style.cssText=""}}function F(t){this.SensorsABTest=t,this.enable_visualize=!1,this.vabtest_url=location.protocol+"//static.sensorsdata.cn/sdk/plugin/vabtest/"+this.SensorsABTest.lib_version+"/vabtest.min.js",this.timeout=500,this.is_editor=!1,this.use_mask=!0,this.originData=[],this.visualExp=null,this.isFirst=!0,this.start_time=null,this.is_have_observer=!1,this.imgLoadingList=[],this.isTrigger=!1}function R(){this.lib_version="0.1.3",this.para={},this.default_para={url:"",path:"",project_key:"",timeout_milliseconds:3e3,update_interval:6e5,collect_bridge_status:!0,encrypt_c
1ookie:!1},this.state={platform:"",storage:{name:"sawebjssdkabtest"}},this.bridgeState="",this.localdata={},this.originalData=[],this.triggerList={},this.updateTime=null,this.sd=null,this.link=new h(this),this.vabtest=new F(this),this.normalStore=new t(this),this.bridgeStore=new e(this),this.verifyStore=new n(this)}function C(t){this.SensorsABTest=t}function U(t){this.SensorsABTest=t}var I={},M=Array.prototype,H=Object.prototype,V=M.slice,z=H.toString,K=H.hasOwnProperty,$=M.forEach,J=Array.isArray,Q={};I.each=function(t,e,s){if(null==t)return!1;if($&&t.forEach===$)t.forEach(e,s);else if(I.isArray(t)&&t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(s,t[r],r,t)===Q)return!1}else for(var n in t)if(K.call(t,n)&&e.call(s,t[n],n,t)===Q)return!1},I.extend=function(t){return I.each(V.call(arguments,1),function(e){for(var s in e)K.call(e,s)&&void 0!==e[s]&&(t[s]=e[s])}),t},I.isArray=J||function(t){return"[object Array]"===z.call(t)},I.isObject=function(t){return null!=t&&"[object Object]"==z.call(t)},I.isElement=function(t){return!(!t||1!==t.nodeType)},I.isString=function(t){return"[object String]"==z.call(t)},I.isBoolean=function(t){return"[object Boolean]"==z.call(t)},I.isNumber=function(t){return"[object Number]"==z.call(t)&&/[\d\.]+/.test(String(t))},I.unique=function(t){for(var e,s=[],r={},i=0;i<t.length;i++)e=t[i],e in r||(r[e]=!0,s.push(e));return s},I.decodeURIComponent=function(t){var e=t;try{e=decodeURIComponent(t)}catch(s){e=t}return e},I.getQueryParam=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),t=I.decodeURIComponent(t);var s="[\\?&]"+e+"=([^&#]*)",r=new RegExp(s),i=r.exec(t);return null===i||i&&"string"!=typeof i[1]&&i[1].length?"":I.decodeURIComponent(i[1])},I.indexOf=function(t,e){var s=t.indexOf;if(s)return s.call(t,e);for(var r=0;r<t.length;r++)if(e===t[r])return r;return-1},I.isFunction=function(t){if(!t)return!1;var e=Object.prototype.toString.call(t);return"[object Function]"==e||"[object AsyncFunction]"==e},I.isEmptyObject=function(t){if(I.isObject(t)){for(var e in t)if(K.call(t,e))return!1;return!0}return!1},I.map=function(t,e){var s=[];return null==t?s:Array.prototype.map&&t.map===Array.prototype.map?t.map(e):(I.each(t,function(t,r,i){s.push(e(t,r,i))}),s)},I.base64Decode=function(t){var e=I.map(atob(t).split(""),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)});return decodeURIComponent(e.join(""))},I.getURLSearchParams=function(t){t=t||"";for(var e=function(t){return decodeURIComponent(t)},s={},r=t.substring(1),i=r.split("&"),n=0;n<i.length;n++){var a=i[n].indexOf("=");if(a!==-1){var o=i[n].substring(0,a),l=i[n].substring(a+1);o=e(o),l=e(l),s[o]=l}}return s},I.urlParse=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,"undefined"!=typeof t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!=typeof t)return!1;var e=this._values.QueryString||"";for(var s in t)e=new RegExp(s+"[^&]+").test(e)?e.replace(new RegExp(s+"[^&]+"),s+"="+t[s]):"&"===e.slice(-1)?e+s+"="+t[s]:""===e?s+"="+t[s]:e+"&"+s+"="+t[s];this._values.QueryString=e},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Port?":"+this._values.Port:"",t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:"",t+=this._values.Fragment?"#"+this._values.Fragment:""},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Port?":"+this._values.Port:"",t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);e||I.log("DPURLParser::_parse -> Invalid URL");for(var s in this._fields)"undefined"!=typeof e[this._fields[s]]&&(this._values[s]=e[this._fields[s]]);this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname},new e(t)},I.URL=function(t){var e={},s=function(){var t;
1try{return t=new URL("http://modernizr.com/"),"http://modernizr.com/"===t.href}catch(e){return!1}};if("function"==typeof window.URL&&s())e=new URL(t),e.searchParams||(e.searchParams=function(){var t=I.getURLSearchParams(e.search);return{get:function(e){return t[e]}}}());else{var r=/^https?:\/\/.+/;r.test(t)===!1&&I.log("Invalid URL");var i=I.urlParse(t);e.hash="",e.host=i._values.Host?i._values.Host+(i._values.Port?":"+i._values.Port:""):"",e.href=i._values.URL,e.password=i._values.Password,e.pathname=i._values.Path,e.port=i._values.Port,e.search=i._values.QueryString?"?"+i._values.QueryString:"",e.username=i._values.Username,e.hostname=i._values.Hostname,e.protocol=i._values.Protocol?i._values.Protocol+":":"",e.origin=i._values.Origin?i._values.Origin+(i._values.Port?":"+i._values.Port:""):"",e.searchParams=function(){var t=I.getURLSearchParams("?"+i._values.QueryString);return{get:function(e){return t[e]}}}()}return e},I.getQueryParam=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),t=I.decodeURIComponent(t);var s="[\\?&]"+e+"=([^&#]*)",r=new RegExp(s),i=r.exec(t);return null===i||i&&"string"!=typeof i[1]&&i[1].length?"":I.decodeURIComponent(i[1])},I.isEmptyObject=function(t){if(I.isObject(t)){for(var e in t)if(K.call(t,e))return!1;return!0}return!1},I.contentLoaded=function(t,e){var s=!1,r=!0,i=t.document,n=i.documentElement,a=i.addEventListener,o=a?"addEventListener":"attachEvent",l=a?"removeEventListener":"detachEvent",c=a?"":"on",u=function(r){"readystatechange"==r.type&&"complete"!=i.readyState||(("load"==r.type?t:i)[l](c+r.type,u,!1),!s&&(s=!0)&&e.call(t,r.type||r))},h=function(){try{n.doScroll("left")}catch(t){return void setTimeout(h,50)}u("poll")};if("complete"==i.readyState)e.call(t,"lazy");else{if(!a&&n.doScroll){try{r=!t.frameElement}catch(p){}r&&h()}i[o](c+"DOMContentLoaded",u,!1),i[o](c+"readystatechange",u,!1),t[o](c+"load",u,!1)}},I.secCheck={isHttpUrl:function(t){if("string"!=typeof t)return!1;var e=/^https?:\/\/.+/;return e.test(t)!==!1||(I.log("Invalid URL"),!1)},removeScriptProtocol:function(t){if("string"!=typeof t)return"";for(var e=/^\s*javascript/i;e.test(t);)t=t.replace(e,"");return t}},I.addEvent=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation,e._getPath=t._getPath),e}function e(e,s,r){var i=function(i){if(i=i||t(window.event)){i.target=i.srcElement;var n,a,o=!0;return"function"==typeof r&&(n=r(i)),a=s.call(e,i),!1!==n&&!1!==a||(o=!1),o}};return i}t._getPath=function(){var t=this,e=function(){try{var e=t.target,s=[e];if(null===e||null===e.parentElement)return[];for(;null!==e.parentElement;)e=e.parentElement,s.unshift(e);return s}catch(r){return[]}};return this.path||this.composedPath&&this.composedPath()||e()},t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0};var s=function(s,r,i){var n=!0;if(s&&s.addEventListener)s.addEventListener(r,function(e){e._getPath=t._getPath,i.call(this,e)},n);else{var a="on"+r,o=s[a];s[a]=e(s,i,o)}};s.apply(null,arguments)},I.addSinglePageEvent=function(t){var e=location.href,s=window.history.pushState,r=window.history.replaceState;window.history.pushState=function(){s.apply(window.history,arguments),t(e),e=location.href},window.history.replaceState=function(){r.apply(window.history,arguments),t(e),e=location.href};var i=s?"popstate":"hashchange";I.addEvent(window,i,function(){t(e),e=location.href})},I.trim=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},I.checkUrlIsMatch=function(t,e){var s,r,i=I.URL(t);if("STRICT"===e)return location.href===i.href;if("FUZZY"===e){try{s=I.URL(location.href)}catch(n){return I.log("url \u89e3\u6790\u5931\u8d25",n),!1}try{r=I.URL(t)}catch(n){return I.log("control_url \u89e3\u6790\u5931\u8d25",n),!1}return s.host===r.host&&s.pathname===r.pathname}return I.log("link_match_type\u5b57\u6bb5\u5f02\u5e38",e),!1},I.checkUrlIsRegexp=function(t,e){var s;try{s=I.URL(location.href)}catch(r){return I.log("url \u89e3\u6790\u5931\u8d25",r),!1}try{var i=e?new RegExp(t,e):new RegExp(t),n=i.exec(s.href),a=!0;return!!n&&(I.each(n,function(t){t||(a=!1)}),a)}catch(r){return I.log("control_link\u5b57\u6bb5\u5f02\u5e38",r),!1}},I.log=function(){if("object"==typeof console&&console.log){I.isString(arguments[0])&&(arguments[0]="sensorsabtestââââ"+arguments[0]);try{return console.log.apply(console,arguments)}catch(t){console.log(arguments[0])}}},I.error=function(){if("object"==typeof console&&console.error)try{return console.error.apply(console,arguments)}catch(t){console.error(arguments[0])}},I.storage={isSupport:function(){var t=!0;try{var e="__sensorsdatasupport__",s="testIsSupportStorage";window.localStorage.setItem(e,s),window.localStorage.getItem(e)!==s&&(t=!1),window.localStorage.removeItem(e)}catch(r){t=!1}return t},set:function(t,e){this.isSupport()&&window.localStorage.setItem(e,t)},get:function(t){var e=null;return this.isSupport()&&(e=window.localStorage.getItem(t)),e}},I.formatDate=function(t){function e(t){return t<10?"0"+t:t}return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())+" "+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())+"."+e(t.getMilliseconds())},I.isDate=function(t){return"[object Date]"==Object.prototype.toString.call(t)},t.prototype={init:function(t){return!!this.setPara(t)&&(this.bridgeState="ab_no_host_bridge",/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)?this.SensorsABTest.state.platform="H5":this.SensorsABTest.state.platform="Web",this.SensorsABTest.log("A/B Testing SDK \u521d\u59cb\u5316\u6210\u529f\uff0c\u8bd5\u9a8c URL\uff1a",t.url),this.SensorsABTest.checkSADebug(),void this.SensorsABTest.store.init(this.getResultFromServer,this))},setPara:function(t){if(!I.isString(t.url)||"http"!==t.url.slice(0,4))return this.SensorsABTest.log("A/B Testing SDK \u521d\u59cb\u5316\u5931\u8d25\uff0c\u8bf7\u4f7f\u7528\u6b63\u786e\u7684 URL\uff01"),!1;if("https"===location.protocol.slice(0,5)&&"http:"===t.url.slice(0,5))return this.SensorsABTest.log("A/B Testing SDK \u521d\u59cb\u5316\u5931\u8d25\uff0chttps \u9875\u9762\u5fc5\u987b\u4f7f\u7528 https \u7684 URL"),!1;var e=I.getQueryParam(t.url,"project-key");if(!e)return this.SensorsABTest.log("A/B Testing SDK \u521d\u59cb\u5316\u5931\u8d25\uff0c\u8bf7\u4f7f\u7528\u6b63\u786e\u7684 URL\uff08\u5fc5\u987b\u5305\u542b project-key\uff09\uff01"),!1;t.project_key=e;var s=this.SensorsABTest.verifyStore.para("A/B Testing SDK \u521d\u59cb\u5316",t,{timeout_milliseconds:"not_essential"});return this.SensorsABTest.para=I.extend({},this.SensorsABTest.default_para,s.para),I.isBoolean(this.SensorsABTest.para.collect_bridge_status)||(this.SensorsABTest.para.collect_bridge_status=!0),I.isNumber(this.SensorsABTest.para.update_interval)||(this.SensorsABTest.para.update_interval=6e5),this.SensorsABTest.sd.para.encrypt_c
1ookie===!0&&(this.SensorsABTest.para.encrypt_cookie=!0),this.SensorsABTest.sd.para.sdk_id&&(this.SensorsABTest.state.storage.name+="_"+this.SensorsABTest.sd.para.sdk_id),!0},asyncFetch:function(t){var e=this;this.SensorsABTest.normalStore.getResultFromServer({para:t,suc:function(s){if(I.isObject(s)&&"SUCCESS"===s.status){var r=e.SensorsABTest.getExpResult(t);t.callback(r)}else t.callback(t.default_value)},err:function(){t.callback(t.default_value)}})},creatRequestData:function(t){var e="";I.isEmptyObject(this.SensorsABTest.sd.store._state)||(e=this.SensorsABTest.sd.store._state._first_id||this.SensorsABTest.sd.store._state.first_id||this.SensorsABTest.sd.store._state._distinct_id||this.SensorsABTest.sd.store._state.distinct_id);var s={anonymous_id:e,platform:this.SensorsABTest.state.platform,abtest_lib_version:this.SensorsABTest.lib_version,properties:{$is_first_day:this.SensorsABTest.sd._.cookie.getNewUser()}};return I.isObject(t.properties)&&(s.properties=I.extend({},s.properties,t.properties)),I.isObject(t.custom_properties)&&(s.custom_properties=I.extend({},t.custom_properties),s.param_name=t.param_name),this.SensorsABTest.sd.store._state.first_id&&(s.login_id=this.SensorsABTest.sd.store.getDistinctId()),s},getResultFromServer:function(t){function e(){var t=s.SensorsABTest.sd.store.getDistinctId();s.SensorsABTest.sd._.ajax({url:s.SensorsABTest.para.url,type:"POST",data:JSON.stringify(a),credentials:!1,contentType:"application/json",timeout:r.timeout_milliseconds||s.SensorsABTest.para.timeout_milliseconds,cors:!0,success:function(e){s.SensorsABTest.dealResponseData(e,t),i&&i(e),s.SensorsABTest.fetchData.setNextFetch()},error:function(t){s.SensorsABTest.log("\u670d\u52a1\u7aef\u8bf7\u6c42\u53d1\u9001\u5931\u8d25",t),n&&n(),s.SensorsABTest.fetchData.setNextFetch()}})}var s=this;t=I.isObject(t)?t:{};var r=t.para||{},i=t.suc,n=t.err,a=this.creatRequestData(r);this.SensorsABTest.log("\u5411\u670d\u52a1\u7aef\u53d1\u8d77\u8bd5\u9a8c\u8bf7\u6c42"),e()}},t.prototype.methods={asyncFetchABTest:function(t){if(!I.isObject(t))return this.SensorsABTest.log("asyncFetchABTest\u8c03\u7528\u5931\u8d25\uff0c\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e"),!1;var e=this.SensorsABTest.verifyStore.para("asyncFetchABTest",t,{param_name:"essential",value_type:"essential",default_value:"essential",callback:"essential",timeout_milliseconds:"not_essential",properties:"not_essential"});if(e.verify_success){t=e.para;var s=this.SensorsABTest.verifyStore.resolveCustomProperties(t);if(!s.verify_success)return void t.callback(t.default_value);t=s.para,this.SensorsABTest.normalStore.asyncFetch(t)}},fastFetchABTest:function(t){if(!I.isObject(t))return this.SensorsABTest.log("fastFetchABTest\u8c03\u7528\u5931\u8d25\uff0c\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e"),!1;var e=this.SensorsABTest.verifyStore.para("fastFetchABTest",t,{param_name:"essential",value_type:"essential",default_value:"essential",callback:"essential",timeout_milliseconds:"not_essential",properties:"not_essential"});if(e.verify_success){t=e.para;var s=this.SensorsABTest.searchLocalExp(t.param_name);if(I.isObject(s)){var r=this.SensorsABTest.getExpResult(t,s);return void t.callback(r)}var i=this.SensorsABTest.verifyStore.resolveCustomProperties(t);if(!i.verify_success)return void t.callback(t.default_value);t=i.para,this.SensorsABTest.log("fastFetchABTest\u7f13\u5b58\u4e2d\u672a\u8bfb\u53d6\u5230\u6570\u636e\uff0c\u53d1\u8d77\u8bf7\u6c42"),this.SensorsABTest.normalStore.asyncFetch(t)}},fetchCacheABTest:function(t){if(!I.isObject(t))return void this.SensorsABTest.log("fetchCacheABTest\u8c03\u7528\u5931\u8d25\uff0c\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e");var e=this.SensorsABTest.verifyStore.para("fetchCacheABTest",t,{param_name:"essential",value_type:"essential",default_value:"essential"});if(e.verify_success)return this.SensorsABTest.getExpResult(e.para)}},e.prototype={init:function(t){var e=this;return this.SensorsABTest.state.storage.name="sawebjssdkabtest_bridge",!!this.setPara(t)&&(this.SensorsABTest.log("A/B Testing SDK \u521d\u59cb\u5316\u6210\u529f"),this.abBridge=new this.SensorsABTest.sd.JSBridge({type:"abtest",app_call_js:function(t){try{t=I.base64Decode(t)}catch(s){e.SensorsABTest.log("App\u6570\u636ebase64\u89e3\u7801\u5f02\u5e38",t)}try{t=JSON.parse(t),t.message_id&&this["double"](t)}catch(s){e.SensorsABTest.log("App\u6570\u636e\u89e3\u6790\u5f02\u5e38",t)}}}),I.isObject(window.SensorsData_iOS_JS_Bridge)&&window.SensorsData_iOS_JS_Bridge.sensorsdata_abtest_module&&this.abBridge.hasAppBridge()?this.SensorsABTest.bridgeState="ab_bridge_ok":I.isObject(window.SensorsData_APP_New_H5_Bridge)&&I.isFunction(window.SensorsData_APP_New_H5_Bridge.sensorsdata_abtest_module)&&window.SensorsData_APP_New_H5_Bridge.sensorsdata_abtest_module()&&this.abBridge.hasAppBridge()?this.SensorsABTest.bridgeState="ab_bridge_ok":this.SensorsABTest.bridgeState="ab_no_abtest_bridge",void this.SensorsABTest.store.init(this.getResultFromApp,this))},setPara:function(t){var e=this.SensorsABTest.verifyStore.para("\u6253\u901a\u521d\u59cb\u5316",t,{timeout_milliseconds:"not_essential"});return this.SensorsABTest.para=I.extend({},this.SensorsABTest.default_para,e.para),I.isBoolean(this.SensorsABTest.para.collect_bridge_status)||(this.SensorsABTest.para.collect_bridge_status=!0),I.isNumber(this.SensorsABTest.para.update_interval)||(this.SensorsABTest.para.update_interval=6e5),this.SensorsABTest.sd.para.encrypt_c
1ookie===!0&&(this.SensorsABTest.para.encrypt_cookie=!0),this.SensorsABTest.sd.para.sdk_id&&(this.SensorsABTest.state.storage.name+="_"+this.SensorsABTest.sd.para.sdk_id),!0},getResultFromApp:function(t){function e(){"ab_bridge_ok"===s.SensorsABTest.bridgeState?s.abBridge.requestToApp({data:{properties:r.properties,timeout:a,request_body:o},callback:function(t){I.isObject(t)&&I.isObject(t.data)?(s.SensorsABTest.log("\u6210\u529f\u83b7\u53d6\u5230 App \u7aef\u8fd4\u56de\u7684\u8bd5\u9a8c\u6570\u636e","data:",t),s.SensorsABTest.dealResponseData(t.data),i&&i(t)):(s.SensorsABTest.log("App \u7aef\u8bf7\u6c42\u5931\u8d25"),n&&n()),s.SensorsABTest.fetchData.setNextFetch()},timeout:{time:a,callback:function(){s.SensorsABTest.log("\u83b7\u53d6App\u7aef\u6570\u636e\u5931\u8d25"),n&&n(),s.SensorsABTest.fetchData.setNextFetch()}}}):n&&(s.SensorsABTest.log("A/B Testing \u6253\u901a\u5931\u8d25\uff0c",s.SensorsABTest.bridgeState),n())}var s=this;t=I.isObject(t)?t:{};var r=t.para||{},i=t.suc,n=t.err,a=r.timeout_milliseconds||this.SensorsABTest.para.timeout_milliseconds,o={origin_platform:"H5"};I.isObject(r.custom_properties)&&(o=I.extend(o,{custom_properties:r.custom_properties,param_name:r.param_name})),this.SensorsABTest.log("\u5411App\u53d1\u8d77\u8bd5\u9a8c\u8bf7\u6c42"),e()},asyncFetch:function(t){var e=this;this.SensorsABTest.bridgeStore.getResultFromApp({para:t,suc:function(s){if(I.isObject(s.properties)&&(t.properties=I.extend(s.properties,t.properties)),"SUCCESS"===s.data.status){var r=e.SensorsABTest.getExpResult(t);t.callback(r)}else t.callback(t.default_value)},err:function(){t.callback(t.default_value)}})}},e.prototype.methods={asyncFetchABTest:function(t){if(!I.isObject(t))return this.SensorsABTest.log("asyncFetchABTest\u8c03\u7528\u5931\u8d25\uff0c\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e"),!1;var e=this.SensorsABTest.verifyStore.para("asyncFetchABTest",t,{param_name:"essential",value_type:"essential",default_value:"essential",callback:"essential",timeout_milliseconds:"not_essential",properties:"not_essential"});if(e.verify_success){t=e.para;var s=this.SensorsABTest.verifyStore.resolveCustomProperties(t);return s.verify_success?(t=s.para,"ab_bridge_ok"!==this.SensorsABTest.bridgeState?void t.callback(t.default_value):void this.SensorsABTest.bridgeStore.asyncFetch(t)):void t.callback(t.default_value)}},fastFetchABTest:function(t){if(!I.isObject(t))return this.SensorsABTest.log("fastFetchABTest\u8c03\u7528\u5931\u8d25\uff0c\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e"),!1;var e=this.SensorsABTest.verifyStore.para("fastFetchABTest",t,{param_name:"essential",value_type:"essential",default_value:"essential",callback:"essential",timeout_milliseconds:"not_essential",properties:"not_essential"});if(e.verify_success){t=e.para;var s=this.SensorsABTest.searchLocalExp(t.param_name);if(I.isObject(s)){var r=this.SensorsABTest.getExpResult(t,s);return void t.callback(r)}var i=this.SensorsABTest.verifyStore.resolveCustomProperties(t);if(!i.verify_success)return void t.callback(t.default_value);if(t=i.para,"ab_bridge_ok"!==this.SensorsABTest.bridgeState)return void t.callback(t.default_value);this.SensorsABTest.log("fastFetchABTest\u7f13\u5b58\u4e2d\u672a\u8bfb\u53d6\u5230\u6570\u636e\uff0c\u53d1\u8d77\u8bf7\u6c42"),this.SensorsABTest.bridgeStore.asyncFetch(t)}},fetchCacheABTest:function(t){if(!I.isObject(t))return void this.SensorsABTest.log("fetchCacheABTest\u8c03\u7528\u5931\u8d25\uff0c\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e");var e=this.SensorsABTest.verifyStore.para("fetchCacheABTest",t,{param_name:"essential",value_type:"essential",default_value:"essential"});if(e.verify_success)return this.SensorsABTest.getExpResult(e.para)}};var Z="dfm-enc-";n.prototype={value_type_list:["Number","String","Object","Boolean"],regName:/^((?!^distinct_id$|^original_id$|^time$|^properties$|^id$|^first_id$|^second_id$|^users$|^events$|^event$|^user_id$|^date$|^datetime$|^user_tag.*|^user_group.*)[a-zA-Z_][a-zA-Z\d_]*)$/i,valueType:function(t,e){switch(e){case"Number":if(I.isNumber(t))return!0;break;case"String":if(I.isString(t))return!0;break;case"Object":if(I.isObject(t))return!0;break;case"Boolean":if(t===!0||t===!1)return!0;break;default:return!1}return!1},para:function(t,e,s){var r=this,i={verify_success:!0,para:null};return I.each(s,function(s,n){if("essential"===s)switch(n){case"param_name":I.isString(e.param_name)&&e.param_name.length>0||(r.SensorsABTest.log(t+"\u65b9\u6cd5\u8c03\u7528\u5931\u8d25\uff0cparam_name\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e\uff01param_name:",e.param_name),i.verify_success=!1);break;case"value_type":I.isString(e.value_type)&&I.indexOf(r.value_type_list,e.value_type)!==-1||(r.SensorsABTest.log(t+"\u65b9\u6cd5\u8c03\u7528\u5931\u8d25\uff0cvalue_type\u914d\u7f6e\u9519\u8bef",e.value_type),i.verify_success=!1);break;case"default_value":"undefined"==typeof e.default_value?(r.SensorsABTest.log(t+"\u65b9\u6cd5\u8c03\u7528\u5931\u8d25\uff0cdefault_value\u53c2\u6570\u672a\u914d\u7f6e"),i.verify_success=!1):r.valueType(e.default_value,e.value_type)||(r.SensorsABTest.log(t+"\u65b9\u6cd5\u8c03\u7528\u5931\u8d25\uff0cdefault_value\u7c7b\u578b\u5fc5\u987b\u4e0evalue_type\u4e00\u81f4\uff01",e.default_value,e.value_type),i.verify_success=!1);break;case"callback":I.isFunction(e.callback)||(r.SensorsABTest.log(t+"\u65b9\u6cd5\u8c03\u7528\u5931\u8d25\uff0ccallback\u53c2\u6570\u672a\u6b63\u786e\u914d\u7f6e"),i.verify_success=!1);break;default:i.verify_success=!1}else if("not_essential"===s)switch(n){case"timeout_milliseconds":e.timeout_milliseconds=e.timeout_milliseconds||r.SensorsABTest.para.timeout_milliseconds||r.SensorsABTest.default_para.timeout_milliseconds,(!I.isNumber(e.timeout_milliseconds)||I.isNumber(e.timeout_milliseconds)&&e.timeout_milliseconds<=0)&&(r.SensorsABTest.log("timeout_milliseconds \u53c2\u6570\u9519\u8bef",e.timeout_milliseconds),e.timeout_milliseconds=r.SensorsABTest.para.timeout_milliseconds),e.timeout_milliseconds<200&&(e.timeout_milliseconds=200);break;case"properties":e.properties=I.isObject(e.properties)?e.properties:{}}}),i.para=e,i},resolveCustomProperties:function(t){var e=this,s={verify_success:!0,para:null},r=t.custom_properties;if(!I.isObject(r)||I.isEmptyObject(r))return delete t.custom_properties,s.para=t,s;if(I.each(r,function(t,r){if((!I.isString(r)||!e.regName.test(r)||r.length>100)&&(e.SensorsABTest.log(" property name [ "+r+" ] is not invalid "),s.verify_success=!1),(I.isString(t)||I.isNumber(t)||I.isBoolean(t)||I.isArray(t)||I.isDate(t))&&
1!(I.isString(t)&&t.length>500)||(e.SensorsABTest.log("property [ "+r+" ] of value [ "+JSON.stringify(t)+" ] is not invalid"),s.verify_success=!1),I.isArray(t)){var i=!0;I.each(t,function(t){i!==!1&&(I.isString(t)||(i=!1))}),i||(e.SensorsABTest.log("property value type can be array, but only allow string item. property [ "+r+" ] of value "+JSON.stringify(t)+" is not invalid"),s.verify_success=!1)}}),s.verify_success===!0){var i={};I.each(r,function(t,e){I.isDate(t)?i[e]=I.formatDate(t):I.isString(t)?i[e]=t:i[e]=JSON.stringify(t)}),t.custom_properties=i}return s.para=t,s}},u.prototype={createMaskStyle:function(){var t="["+this.attr_name+"],["+this.attr_name+"] body{opacity:0 !important;-khtml-opacity:0 !important;-moz-opacity:0;filter:alpha(opacity=0);}",e=document.createElement("style");e.type="text/css";try{e.appendChild(document.createTextNode(t))}catch(s){e.styleSheet.cssText=t}try{this.style_element=e,document.getElementsByTagName("head")[0].appendChild(e)}catch(s){I.log("error when create calls")}},show:function(t){try{var e=this;if(this.is_abort)return!1;var s=null;if(s=document.getElementsByTagName("html")[0],!I.isElement(s))return;s.setAttribute(this.attr_name,"1"),this.is_added=!0,I.isNumber(t)&&(this.remove_timer=setTimeout(function(){ 2e.is_timeout=!0,e.remove()},t))}catch(r){I.log("error when show calls")}},remove:function(){try{if(this.is_abort||(this.is_abort=!0),this.is_added){this.is_added=!1;var t=null;if(t=document.getElementsByTagName("html")[0],!I.isElement(t))return;t.removeAttribute(this.attr_name),this.style_element&&(document.getElementsByTagName("head")[0].removeChild(this.style_element),this.style_element=null)}this.remove_timer&&(clearTimeout(this.remove_timer),this.remove_timer=null)}catch(e){I.log("error when remove calls")}}},h.prototype.init=function(t){return this.initPara(t),this.para?I.getQueryParam(location.href,"saSDKMultilink")?(this.is_filtered_out=!0,!1):(this.start_time=(new Date).getTime(),this.para.use_mask&&this.initMask(),void this.addSinglePageListener()):(this.SensorsABTest.log("multilink is closed"),!1)},h.prototype.addSinglePageListener=function(){var t=this;I.addSinglePageEvent(function(e){return e!==location.href&&(t.is_filtered_out=!1,t.isFirst=!0,t.mask_instance&&t.mask_instance.remove(),I.getQueryParam(location.href,"saSDKMultilink")?(t.is_filtered_out=!0,!1):(t.start_time=(new Date).getTime(),t.para.use_mask&&t.initMask(),void t.resolve(t.SensorsABTest.originalData)))})},h.prototype.initMask=function(){this.mask_instance=new u("link_"+this.SensorsABTest.sd.para.sdk_id),this.mask_instance.show(this.para.timeout)},h.prototype.initPara=function(t){if(I.isFunction(t))try{t=t()}catch(e){return this.SensorsABTest.log("link para error!"),void(this.para=!1)}t===!1?this.para=!1:I.isObject(t)&&(this.para.timeout=I.isNumber(t.timeout)&&t.timeout>=0?t.timeout:500,this.para.use_mask=I.isBoolean(t.use_mask)?t.use_mask:this.para.use_mask,this.para.control_link_search=I.isString(t.control_link_search)?t.control_link_search:"default",this.para.experiment_link_search=I.isString(t.experiment_link_search)?t.experiment_link_search:"default",this.para.pass_params=!I.isBoolean(t.pass_params)||t.pass_params)},h.prototype.resolve=function(t){var e=this;if(!this.para)return!1;if(!I.isArray(t))return!1;if(this.is_filtered_out)return!1;if(!this.isFirst)return!1;if(this.isFirst=!1,0===this.para.timeout)return!1;if((new Date).getTime()-this.start_time>this.para.timeout)return this.SensorsABTest.log("The multilink was stopped because the request timeout"),!1;var s=!1;I.each(t,function(t){return!!I.isObject(t)&&(!s&&("LINK"===t.experiment_type&&void(e.isTriggerLinkExp(t)&&(s=!0,e.redirectUrl(t)))))}),!s&&this.para.use_mask&&this.mask_instance&&this.mask_instance.remove()},h.prototype.stopTrigger=function(){this.isFirst=!1,this.SensorsABTest.log("The multilink was stopped because the request failed"),this.para.use_mask&&this.mask_instance&&this.mask_instance.remove()},h.prototype.isTriggerLinkExp=function(t){return I.isString(t.control_link)&&I.isString(t.link_match_type)?"REGEXP"===t.link_match_type?!!I.checkUrlIsRegexp(t.control_link,t.regexp_flags)||(this.SensorsABTest.log("\u591a\u94fe\u63a5\u8bd5\u9a8c\u5339\u914d\u5931\u8d25",t.abtest_experiment_id),!1):!!I.checkUrlIsMatch(t.control_link,t.link_match_type)||(this.SensorsABTest.log("\u591a\u94fe\u63a5\u8bd5\u9a8c\u5339\u914d\u5931\u8d25",t.abtest_experiment_id),!1):(this.SensorsABTest.log("\u591a\u94fe\u63a5\u8bd5\u9a8c\u6570\u636e\u5f02\u5e38",t.abtest_experiment_id),!1)},h.prototype.redirectUrl=function(t){function e(t){return I.secC
2heck.isHttpUrl(t)?I.secCheck.removeScriptProtocol(t):(this.SensorsABTest.log("\u975e\u6cd5URL"),!1)}if(!t.experiment_link||!I.isString(t.experiment_link))return void this.SensorsABTest.log("\u9875\u9762\u8df3\u8f6c\u5931\u8d25\uff0cexperiment_link\u5b57\u6bb5\u5f02\u5e38",t.abtest_experiment_id);if(t.is_control_group===!0&&("STRICT"===t.link_match_type||"REGEXP"===t.link_match_type))return void this.SensorsABTest.triggerHandle(t);var s=location.href,r=t.experiment_link,i=/\$\d+/;if("REGEXP"===t.link_match_type&&i.test(r)){var n=t.regexp_flags?new RegExp(t.control_link,t.regexp_flags):new RegExp(t.control_link);r=s.replace(n,r)}var a,o;if(this.para.pass_params?(o=this.getMergedUrl(t.is_control_group,r,s),a=e(o)):(o=this.getMergedUrl(t.is_control_group,r),a=e(o)),a){var l=this.SensorsABTest.triggerHandle(t);l?setTimeout(function(){location.href=a},80):setTimeout(function(){location.href=a},0),this.mask_instance&&this.mask_instance.remove_timer&&clearTimeout(this.mask_instance.remove_timer)}},h.prototype.getMergedUrl=function(t,e,s){function r(t){var e=/([^?#]+)(\?[^#]*)?(#.*)?/,s=e.exec(t);if(s){var r=s[1]||"",i=s[2]||"",n=s[3]||"";return{host:r,search:i,hash:n}}}function i(t){var e={hash:"",search:""};if(!I.isString(t))return e;var s=t.indexOf("?");return s>-1?(e.search=t.slice(s),e.hash=t.slice(0,s)):e.hash=t,e}var n="",a="",o="",l={parse_url:null,search:""},c={parse_url:null,search:"",hash:""};return s&&(l.parse_url=r(s),!l.parse_url)?void this.SensorsABTest.log("url \u89e3\u6790\u5931\u8d25",s):(c.parse_url=r(e),c.parse_url?(s&&("after_hash"===this.para.control_link_search?l.search=i(l.parse_url.hash).search:l.search=l.parse_url.search),t?"after_hash"===this.para.control_link_search?(c.search=i(c.parse_url.hash).search,c.hash=i(c.parse_url.hash).hash):c.search=c.parse_url.search:"after_hash"===this.para.experiment_link_search?(c.search=i(c.parse_url.hash).search,c.hash=i(c.parse_url.hash).hash):c.search=c.parse_url.search,a=s?this.getSearchStr(l.search,c.search):this.getSearchStr(c.search),t&&"after_hash"===this.para.control_link_search||!t&&"after_hash"===this.para.experiment_link_search?n=c.hash.length>0?c.parse_url.host+c.parse_url.search+c.hash+a:c.parse_url.search.length>0?c.parse_url.host+c.parse_url.search+"&"+a.substring(1):c.parse_url.host+a:(o="after_hash"===this.para.control_link_search?c.parse_url.hash:s?c.parse_url.hash||l.parse_url.hash:c.parse_url.hash,n=c.parse_url.host+a+o),n):void this.SensorsABTest.log("url \u89e3\u6790\u5931\u8d25",e))},h.prototype.getSearchStr=function(t,e){function s(t){var e={};if(!t||!t.length||0!==t.indexOf("?"))return e;if(t=t.slice(1),!t.length)return e;for(var s=t.split("&"),r=0;r<s.length;r++)if(s[r].indexOf("=")<0)e[s[r]]=null;else{var i=s[r].split("=");e[i[0]]=i[1]}return e}var r=s(t),i=s(e),n=I.extend(r,i),a="";if(I.isEmptyObject(n))return"?saSDKMultilink=true";var o=!0;for(var l in n)o?(a+="?",o=!1):a+="&",null!==n[l]?a=a+l+"="+n[l]:a+=l;return a+="&saSDKMultilink=true"},window.MutationObserver||(window.MutationObserver=function(t){function e(t){this._watched=[],this._listener=t}function s(t){!function s(){var r=t.takeRecords();r.length&&t._listener(r,t),t._timeout=setTimeout(s,e._period)}()}function r(e){var s={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(var r in e)g(s,r)&&e[r]!==t&&(s[r]=e[r]);return s}function i(t,e){var s=c(t,e);return function(i){var n,a=i.length;e.charData&&3===t.nodeType&&t.nodeValue!==s.charData&&i.push(new r({type:"characterData",target:t,oldValue:s.charData})),e.attr&&s.attr&&o(i,t,s.attr,e.afilter),(e.kids||e.descendents)&&(n=l(i,t,s,e)),(n||i.length!==a)&&(s=c(t,e))}}function n(t,e){return e.value}function a(t,e){return"style"!==e.name?e.value:t.style.cssText}function o(t,e,s,i){for(var n,a,o={},l=e.attributes,c=l.length;c--;)n=l[c],a=n.name,i&&!g(i,a)||(v(e,n)!==s[a]&&t.push(r({type:"attributes",target:e,attributeName:a,oldValue:s[a],attributeNamespace:n.namespaceURI})),o[a]=!0);
2for(a in s)o[a]||t.push(r({target:e,type:"attributes",attributeName:a,oldValue:s[a]}))}function l(e,s,i,n){function a(t,s,i,a,c){for(var u,h,p,d=t.length-1,f=-~((d-c)/2);p=t.pop();)u=i[p.i],h=a[p.j],n.kids&&f&&Math.abs(p.i-p.j)>=d&&(e.push(r({type:"childList",target:s,addedNodes:[u],removedNodes:[u],nextSibling:u.nextSibling,previousSibling:u.previousSibling})),f--),n.attr&&h.attr&&o(e,u,h.attr,n.afilter),n.charData&&3===u.nodeType&&u.nodeValue!==h.charData&&e.push(r({type:"characterData",target:u,oldValue:h.charData})),n.descendents&&l(u,h)}function l(s,i){for(var p,d,g,_,m,v,y,S=s.childNodes,b=i.kids,T=S.length,A=b?b.length:0,B=0,k=0,w=0;k<T||w<A;)v=S[k],m=b[w],y=m&&m.node,v===y?(n.attr&&m.attr&&o(e,v,m.attr,n.afilter),n.charData&&m.charData!==t&&v.nodeValue!==m.charData&&e.push(r({type:"characterData",target:v,oldValue:m.charData})),d&&a(d,s,S,b,B),n.descendents&&(v.childNodes.length||m.kids&&m.kids.length)&&l(v,m),k++,w++):(c=!0,p||(p={},d=[]),v&&(p[g=h(v)]||(p[g]=!0,(_=u(b,v,w))===-1?n.kids&&(e.push(r({type:"childList",target:s,addedNodes:[v],nextSibling:v.nextSibling,previousSibling:v.previousSibling})),B++):d.push({i:k,j:_})),k++),y&&y!==S[k]&&(p[g=h(y)]||(p[g]=!0,(_=f(S,y,k))===-1?n.kids&&(e.push(r({type:"childList",target:i.node,removedNodes:[y],nextSibling:b[w+1],previousSibling:b[w-1]})),B--):d.push({i:_,j:w})),w++));d&&a(d,s,S,b,B)}var c;return l(s,i),c}function c(t,e){var s=!0;return function r(t){var i={node:t};return!e.charData||3!==t.nodeType&&8!==t.nodeType?(e.attr&&s&&1===t.nodeType&&(i.attr=d(t.attributes,function(s,r){return e.afilter&&!e.afilter[r.name]||(s[r.name]=v(t,r)),s},{})),s&&(e.kids||e.charData||e.attr&&e.descendents)&&(i.kids=p(t.childNodes,r)),s=e.descendents):i.charData=t.nodeValue,i}(t)}function u(t,e,s){return f(t,e,s,_("node"))}function h(t){try{return t.id||(t[S]=t[S]||y++)}catch(e){try{return t.nodeValue}catch(s){return y++}}}function p(t,e){for(var s=[],r=0;r<t.length;r++)s[r]=e(t[r],r,t);return s}function d(t,e,s){for(var r=0;r<t.length;r++)s=e(s,t[r],r,t);return s}function f(t,e,s,r){for(;s<t.length;s++)if((r?t[s][r]:t[s])===e)return s;return-1}function g(e,s){return e[s]!==t}function _(t){return t}e._period=30,e.prototype={observe:function(t,e){for(var r={attr:!!(e.attributes||e.attributeFilter||e.attributeOldValue),kids:!!e.childList,descendents:!!e.subtree,charData:!(!e.characterData&&!e.characterDataOldValue)},n=this._watched,a=0;a<n.length;a++)n[a].tar===t&&n.splice(a,1);e.attributeFilter&&(r.afilter=d(e.attributeFilter,function(t,e){return t[e]=!0,t},{})),n.push({tar:t,fn:i(t,r)}),this._timeout||s(this)},takeRecords:function(){for(var t=[],e=this._watched,s=0;s<e.length;s++)e[s].fn(t);return t},disconnect:function(){this._watched=[],clearTimeout(this._timeout),this._timeout=null}};var m=document.createElement("i");m.style.top=0,m="null"!=m.attributes.style.value;var v=m?n:a,y=1,S="mo_id";return e}(void 0)),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),s=this,r=function(){},i=function(){return s.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),F.prototype.init=function(t){var e=this;this.initPara(t),this.enable_visualize!==!1&&(window.self!==window.top&&d()?(this.is_editor=!0,document.getElementById("sa-abtesting-vabtest-script")||P(this.vabtest_url,{id:"sa-abtesting-vabtest-script",success:function(){setTimeout(function(){e.SensorsABTest.sd.use("VABTest",{SensorsABTest:e.SensorsABTest})},0)}})):(this.start_time=(new Date).getTime(),this.use_mask&&this.initMask(),this.addSinglePageListener()))},F.prototype.initPara=function(t){if(I.isFunction(t))try{t=t()}catch(e){return this.SensorsABTest.log("ABTesting SDK !"),void(this.para=!1)}if(!I.isObject(t))return void(this.para=!1);Object.prototype.hasOwnProperty.call(t,"enable_visualize")&&I.isBoolean(t.enable_visualize)?this.enable_visualize=t.enable_visualize:this.SensorsABTest.log("ABTesting SDK \u521d\u59cb\u5316\u53c2\u6570 enable_visualize \u683c\u5f0f\u4e0d\u6b63\u786e\u3002 \u7c7b\u578b\u5e94\u4e3a Boolean"),this.use_mask=I.isBoolean(t.use_mask)?t.use_mask:this.use_mask,this.timeout=I.isNumber(t.timeout)&&t.timeout>=0?t.timeout:this.timeout;var s=I.isString(t.vabtest_url)?t.vabtest_url:"";s&&("https:"===location.protocol?"https:"===s.slice(0,6)?this.vabtest_url=s:this.SensorsABTest.log("ABTesting SDK \u521d\u59cb\u5316\u53c2\u6570 vabtest_url \u534f\u8bae\u5934\u5e94\u8bbe\u7f6e\u4e3a https"):"http:"===s.slice(0,5)||"https:"===s.slice(0,6)?this.vabtest_url=s:this.SensorsABTest.log("ABTesting SDK \u521d\u59cb\u5316\u53c2\u6570 vabtest_url \u5e94\u8bbe\u7f6e\u4e3a\u6709\u6548 URL"))},F.prototype.resolve=function(t){if(this.enable_visualize!==!1&&this.is_editor!==!0&&this.isFirst!==!1){if((new Date).getTime()-this.start_time>this.timeout)return this.SensorsABTest.log("\u8bf7\u6c42\u5b9e\u9a8c\u7ed3\u679c\u8d85\u65f6\uff0cA/B \u53ef\u89c6\u5316\u5b9e\u9a8c\u5931\u8d25\uff01"),!1;var e=this;this.isFirst=!1;var s=!1;I.each(t,function(t){if(!I.isObject(t)||"VISUAL"!==t.experiment_type)return!1;if(s)return!1;var r=t.experiment_value;if(!I.isArray(r))try{r=JSON.parse(t.experiment_value),t.experiment_value=r}catch(i){return!1}e.isTriggerVisualExp(t)&&(s=!0,e.prepareResource(t,e.render.bind(e)),e.visualExp=t)}),!s&&this.use_mask&&this.destroyMask(),f(window,function(){j(e.observerCallback.bind(e))})}},F.prototype.initMask=function(){this.mask_instance=new u("vabtest_"+this.SensorsABTest.sd.para.sdk_id),this.mask_instance.show(this.timeout)},F.prototype.destroyMask=function(){this.mask_instance&&this.mask_instance.remove()},F.prototype.prepareResource=function(t,e){var s=this,r=t.experiment_value;I.isArray(r)&&(I.each(r,function(r){function i(){var r=s.imgLoadingList.indexOf(o);r>-1&&s.imgLoadingList.splice(r,1),0===s.imgLoadingList.length&&e(t)}var n=r.tagName,a=r.props;if("img"===n&&a&&a.attributes&&I.isString(a.attributes.src)){var o=a.attributes.src;s.imgLoadingList.push(o);var l=document.createElement("img");l.width=1,l.height=1,l.onload=i,l.onerror=i,l.onabort=i,l.src=a.attributes.src}}),0===this.imgLoadingList.length&&e(t))},F.prototype.render=function(t){var e=this;f(window,function(){if(e.use_mask&&e.mask_instance&&e.mask_instance.is_timeout===!0)return void e.SensorsABTest.log("\u6e32\u67d3\u5b9e\u9a8c\u7ed3\u679c\u8d85\u65f6\uff0cA/B \u53ef\u89c6\u5316\u5b9e\u9a8c\u5931\u8d25\uff01");e.isTrigger||(e.SensorsABTest.triggerHandle(t),e.isTrigger=!0);var s=t.experiment_value;I.isArray(s)&&I.each(s,function(t){var s=t.selector,r=b(s);if(r)try{var i=N(r,[]),n=i.eleInfo;D(r,t,n),e.originData.push(i)}catch(a){}}),e.use_mask&&e.destroyMask()})},F.prototype.restoreElements=function(){I.each(this.originData,function(t){L(t)}),this.visualExp=null,this.isFirst=!0,this.start_time=(new Date).getTime(),this.originData=[],this.isTrigger=!1},F.prototype.addSinglePageListener=function(){var t=this;I.addSinglePageEvent(function(e){return e!==location.href&&(t.mask_instance&&t.destroyMask(),t.start_time=(new Date).getTime(),t.use_mask&&t.initMask(),t.restoreElements(),void t.resolve(t.SensorsABTest.originalData))})},F.prototype.observerCallback=function(){this.visualExp&&(I.each(this.originData,function(t){L(t)}),this.originData=[],this.render(this.visualExp))},F.prototype.stopTrigger=function(){this.isFirst=!1,this.SensorsABTest.log("\u8bf7\u6c42\u5b9e\u9a8c\u7ed3\u679c\u5931\u8d25\uff0cA/B \u53ef\u89c6\u5316\u5b9e\u9a8c\u5931\u8d25\uff01"),this.use_mask&&this.destroyMask()},F.prototype.isTriggerVisualExp=function(t){return I.isString(t.control_link)&&I.isString(t.link_match_type)?!!I.checkUrlIsMatch(t.control_link,t.link_match_type)||(this.SensorsABTest.log("\u53ef\u89c6\u5316\u8bd5\u9a8c\u5339\u914d\u5931\u8d25",t.abtest_experiment_id),!1):(this.SensorsABTest.log("\u53ef\u89c6\u5316\u8bd5\u9a8c\u6570\u636e\u5f02\u5e38",t.abtest_experiment_id),!1)},R.prototype.asyncFetchABTest=function(){I.error("asyncFetchABTest\u8c03\u7528\u5931\u8d25,A/B Testing\u672a\u521d\u59cb\u5316")},R.prototype.fastFetchABTest=function(){I.error("fastFetchABTest\u8c03\u7528\u5931\u8d25,A/B Testing\u672a\u521d\u59cb\u5316")},R.prototype.fetchCacheABTest=function(){I.error("fetchCacheABTest\u8c03\u7528\u5931\u8d25,A/B Testing\u672a\u521d\u59cb\u5316")},R.prototype.searchLocalExp=function(t){return this.localdata[t]?this.localdata[t]:null},R.prototype.getExpResult=function(t,e){var s=t.default_value,r=e?e:this.searchLocalExp(t.param_name);return I.isObject(r)?I.isObject(r.js_config)&&(r.js_config.type===t.value_type?(s=r.js_config.value,this.triggerHandle(r,t)):this.log("\u8bd5\u9a8c\u7ed3\u679c\u7c7b\u578b\u4e0e\u4ee3\u7801\u671f\u671b\u7c7b\u578b\u4e0d\u4e00\u81f4\uff0cparam_name\uff1a"+t.param_name+"\uff0c\u5f53\u524d\u8fd4\u56de\u7c7b\u578b\u4e3a\uff1a"+r.js_config.type+"\uff0c\u4ee3\u7801\u671f\u671b\u7c7b\u578b\u4e3a\uff1a"+t.value_type)):this.log("localdata\u672a\u67e5\u8be2\u5230\u8bd5\u9a8c\u6570\u636e\uff0c\u8bd5\u9a8c\u53c2\u6570\u540d\u79f0\uff1a"+t.param_name),s},R.prototype.resolveVariables=function(t){this.localdata={};var e=this;I.each(t,function(t){if(I.isObject(t)&&t.variables&&I.isArray(t.variables)){if(t.experiment_type&&"CODE"!==t.experiment_type)return!1;I.each(t.variables,function(s){I.isObject(s)&&!e.localdata[s.name]&&(e.localdata[s.name]={abtest_experiment_id:t.abtest_experiment_id,abtest_experiment_group_id:t.abtest_experiment_group_id,is_control_group:t.is_control_group,is_white_list:t.is_white_list,value:s.value,type:s.type,js_config:e.getRelativeValue(s.value,s.type),experiment_type:t.experiment_type})})}})},R.prototype.getRelativeValue=function(t,e){var s=this,r={},i={INTEGER:function(t){var e=parseFloat(t);isNaN(e)?s.log("\u539f\u59cb\u6570\u636e INTEGER \u7c7b\u578b\u89e3\u6790\u5f02\u5e38",t):(r.value=e,r.type="Number")},STRING:function(t){I.isString(t)?(r.value=t,r.type="String"):s.log("\u539f\u59cb\u6570\u636e STRING \u7c7b\u578b\u89e3\u6790\u5f02\u5e38",t)},JSON:function(t){var e=JSON.parse(t);I.isObject(e)?(r.value=e,r.type="Object"):s.log("\u539f\u59cb\u6570\u636e JSON \u7c7b\u578b\u89e3\u6790\u5f02\u5e38",t)},BOOLEAN:function(t){"true"===t?(r.value=!0,r.type="Boolean"):"false"===t?(r.value=!1,r.type="Boolean"):s.log("\u539f\u59cb\u6570\u636e BOOLEAN \u7c7b\u578b\u89e3\u6790\u5f02\u5e38",t)}};try{i[e]?i[e](t):s.log("\u8bd5\u9a8c\u6570\u636e\u7c7b\u578b\u89e3\u6790\u5931\u8d25",e,t)}catch(n){s.log(n,t,e)}return r},R.prototype.dealResponseData=function(t,e){I.isObject(t)?"SUCCESS"===t.status?I.isArray(t.results)&&(this.originalData=t.results,this.updateLocalData(t.results,e)):"FAILED"===t.status&&this.log("\u83b7\u53d6\u8bd5\u9a8c\u5931\u8d25\uff1aerror_type\uff1a"+t.error_type+",error\uff1a"+t.error):this.log("\u8bd5\u9a8c\u6570\u636e\u89e3\u6790\u5931\u8d25\uff0cresponse \uff1a",t)},R.prototype.updateLocalData=function(t,e){this.analyzeData(t),this.updateStorage(e),this.log("\u66f4\u65b0\u8bd5\u9a8c\u6570\u636e\u6210\u529f")},R.prototype.updateStorage=function(t){var e=(new Date).getTime(),s={data:this.originalData,updateTime:e,triggerList:this.triggerList,distinct_id:t||this.sd.store.getDistinctId()}
2,r=this.state.storage.name,i=this.para.encrypt_cookie;c(s,r,i),this.updateTime=e},R.prototype.analyzeData=function(t){return I.isArray(t)?(this.link.resolve(t),this.vabtest.resolve(t),void this.resolveVariables(t)):(this.log("\u89e3\u6790ââ\u6570\u636e\u683c\u5f0f\u9519\u8bef",t),!1)},R.prototype.triggerHandle=function(t,e){var s=this.sd.store.getDistinctId(),r=this.triggerList[s];I.isArray(r)&&I.each(r,function(t,e){I.isString(t)&&r.splice(e,1,{experiment_id:t})});var i=I.isObject(e)&&I.isObject(e.properties)?e.properties:{},n=this.trackTestTrigger(t,i),a=t.abtest_experiment_id;if(I.isString(a)){var o={experiment_id:a,group_id:t.abtest_experiment_group_id};if(r&&I.isArray(r)){var l=!1;I.each(r,function(t,e){t.experiment_id===a&&(r.splice(e,1,o),l=!0)}),l||r.push(o)}else this.triggerList[s]=[o];this.updateStorage()}return n},R.prototype.trackTestTrigger=function(t,e){var s=this.sd.store.getDistinctId(),r=!0,i=!0;if(e=I.isObject(e)?e:{},!t.is_white_list){this.triggerList&&I.isObject(this.triggerList)&&("{}"!==JSON.stringify(this.triggerList)&&(i=!1),this.triggerList[s]&&I.each(this.triggerList[s],function(e){e.experiment_id===t.abtest_experiment_id&&e.group_id===t.abtest_experiment_group_id&&(r=!1)}));var n={$abtest_experiment_id:t.abtest_experiment_id,$abtest_experiment_group_id:t.abtest_experiment_group_id};if(this.para.collect_bridge_status&&(n.$sdk_bridge_status=this.bridgeState),i){var a="web_abtesting:"+this.lib_version;n.$lib_plugin_version=[a]}var o=I.extend(n,e);return r&&this.sd.track("$ABTestTrigger",o),this.sd.track("WebABTestTrigger",o),r}},R.prototype.checkSADebug=function(){var t=this,e=I.getQueryParam(location.href,"sensors_abtest_url"),s=I.getQueryParam(location.href,"feature_code"),r=+I.getQueryParam(location.href,"account_id");if(e.length&&s.length&&I.isNumber(r)&&0!==r){var i={distinct_id:this.sd.store.getDistinctId(),feature_code:s,account_id:r};this.sd._.ajax({url:e,type:"POST",data:JSON.stringify(i),credentials:!1,contentType:"application/json",timeout:this.para.timeout_milliseconds,cors:!0,success:function(){},error:function(e){t.log("distinct_id\u53d1\u9001\u5931\u8d25,err:",e)}})}},R.prototype.initMethods=function(t){var e=this,s=["asyncFetchABTest","fastFetchABTest","fetchCacheABTest"];I.each(s,function(s){e[s]=t.methods[s].bind(t)})},C.prototype={timer:null,method:null,context:null,init:function(t,e){this.method=t,this.context=e,this.start(!0)},getServerData:function(t){var e=this;t?this.method.call(this.context,{suc:function(s){t&&("ab_bridge_ok"===e.SensorsABTest.bridgeState&&(s=s.data),I.isObject(s)&&"SUCCESS"===s.status&&I.isArray(s.results)||(e.SensorsABTest.link.stopTrigger(),e.SensorsABTest.vabtest.stopTrigger()))},err:function(){t&&(e.SensorsABTest.link.stopTrigger(),e.SensorsABTest.vabtest.stopTrigger())}}):this.method.call(this.context)},setNextFetch:function(t){var e=this,s=t||this.SensorsABTest.para.update_interval;this.clearFetchTimer(this.timer),this.timer=setTimeout(function(){e.getServerData()},s)},start:function(t){var e=null,s=(new Date).getTime(),r=l(this.SensorsABTest.state.storage.name),i=this.SensorsABTest.sd.store.getDistinctId();if(r&&I.isObject(r)&&r.distinct_id===i){if(e=r.updateTime,t){this.SensorsABTest.originalData=r.data;var n=r.triggerList;I.isObject(n)&&(this.SensorsABTest.triggerList=r.triggerList)}if(e&&I.isNumber(e)&&s-e>0&&s-e<this.SensorsABTest.para.update_interval){t&&this.SensorsABTest.analyzeData(r.data),this.SensorsABTest.log("\u6570\u636e\u4e0d\u66f4\u65b0",e,s);var a=s-e,o=this.SensorsABTest.para.update_interval-a;this.setNextFetch(o)}else this.SensorsABTest.log("\u7f13\u5b58\u6570\u636e\u8d85\u65f6",e,s),this.getServerData(t)}else e=this.SensorsABTest.updateTime,e&&I.isNumber(e)&&s-e>0&&s-e<this.SensorsABTest.para.update_interval?this.SensorsABTest.log("\u6570\u636e\u4e0d\u66f4\u65b0",e,s):this.getServerData(t)},stop:function(){this.SensorsABTest.log("\u6e05\u7a7a\u62c9\u53d6\u5b9a\u65f6\u5668"),this.clearFetchTimer()},clearFetchTimer:function(){clearTimeout(this.timer),this.timer=null}},U.prototype={init:function(t,e){var s=this;this.SensorsABTest.fetchData.init(t,e),this.SensorsABTest.initMethods(e),o({visible:function(){s.SensorsABTest.log("\u9875\u9762\u663e\u793a"),s.SensorsABTest.fetchData.start()},hidden:function(){s.SensorsABTest.fetchData.stop()}}),this.SensorsABTest.sd.events.on("changeDistinctId",function(){s.SensorsABTest.localdata={},s.SensorsABTest.originalData=[],s.SensorsABTest.vabtest.restoreElements(),s.SensorsABTest.updateStorage(),s.SensorsABTest.fetchData.getServerData()}),this.SensorsABTest.sd.events.isReady()}},R.prototype.init=function(t,e){return this.sd?(this.log("A/B Testing SDK \u91cd\u590d\u521d\u59cb\u5316\uff01\u53ea\u6709\u7b2c\u4e00\u6b21\u521d\u59cb\u5316\u6709\u6548\uff01"),!1):a(t)?(this.sd=t,I.isObject(e)?(I.storage.isSupport()||this.log("localstorage\u5f02\u5e38"),this.abtestingPara=e,this.fetchData=new C(this),this.store=new U(this),void this.initTest()):(this.log("A/B Testing SDK \u521d\u59cb\u5316\u5931\u8d25\uff0c\u8bf7\u4f20\u5165\u6b63\u786e\u7684\u521d\u59cb\u5316\u53c2\u6570!para:",e),!1)):(this.log("A/B Testing \u521d\u59cb\u5316\u5931\u8d25,Web JS SDK \u6ca1\u6709\u521d\u59cb\u5316\u5b8c\u6210"),!1)},R.prototype.initTest=function(){this.link.init(this.abtestingPara.multilink),this.vabtest.init(this.abtestingPara.visualize),this.sd.bridge.is_verify_success?this.bridgeStore.init(this.abtestingPara):this.normalStore.init(this.abtestingPara)},R.prototype.log=function(){return I.isString(arguments[0])&&(arguments[0]="sensorsabtestââââ"+arguments[0]),this.sd&&this.sd.log.apply(this,arguments)};var W=new R;return W.__constructor__=R,window.SensorsDataWebJSSDKPlugin&&"[object Object]"==Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.SensorsABTest=window.SensorsDataWebJSSDKPlugin.SensorsABTest||W:window.SensorsDataWebJSSDKPlugin={SensorsABTest:W},R});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.