Files
documents/GEGI/Договор от 13 июля 2022/Kucoin/Terms of Use KuCoin_files/kcsensors.min.js
mguschin 050d0a4c49 Init.
2026-02-02 19:13:26 +03:00

2 lines
112 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).$KcSensors=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},r=e,n=function(t){return Object(r(t))},i={}.hasOwnProperty,s=function(t,e){return i.call(t,e)},o={}.toString,a=function(t){return o.call(t).slice(8,-1)},u=a,c=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==u(t)?t.split(""):Object(t)},l=c,f=e,p=function(t){return l(f(t))},h=Math.ceil,d=Math.floor,v=function(t){return isNaN(t=+t)?0:(t>0?d:h)(t)},g=v,_=Math.min,y=function(t){return t>0?_(g(t),9007199254740991):0},m=v,b=Math.max,S=Math.min,A=p,w=y,T=function(t,e){return(t=m(t))<0?b(t+e,0):S(t,e)},x={exports:{}},k={exports:{}},B=k.exports={version:"2.6.12"};"number"==typeof __e&&(__e=B);var O={exports:{}},j=O.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=j);var E=k.exports,P=O.exports,D="__core-js_shared__",L=P[D]||(P[D]={});(x.exports=function(t,e){return L[t]||(L[t]=void 0!==e?e:{})})("versions",[]).push({version:E.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var R,N=0,F=Math.random(),I=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+F).toString(36))},C=x.exports("keys"),M=I,U=function(t){return C[t]||(C[t]=M(t))},z=s,H=p,$=(R=!1,function(t,e,r){var n,i=A(t),s=w(i.length),o=T(r,s);if(R&&e!=e){for(;s>o;)if((n=i[o++])!=n)return!0}else for(;s>o;o++)if((R||o in i)&&i[o]===e)return R||o||0;return!R&&-1}),V=U("IE_PROTO"),K="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),W=function(t,e){var r,n=H(t),i=0,s=[];for(r in n)r!=V&&z(n,r)&&s.push(r);for(;e.length>i;)z(n,r=e[i++])&&(~$(s,r)||s.push(r));return s},G=K,q=Object.keys||function(t){return W(t,G)},J=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Q=J,X=function(t,e,r){if(Q(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},Z={},Y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},tt=Y,et=function(t){if(!tt(t))throw TypeError(t+" is not an object!");return t},rt=function(t){try{return!!t()}catch(t){return!0}},nt=!rt((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),it=Y,st=O.exports.document,ot=it(st)&&it(st.createElement),at=function(t){return ot?st.createElement(t):{}},ut=!nt&&!rt((function(){return 7!=Object.defineProperty(at("div"),"a",{get:function(){return 7}}).a})),ct=Y,lt=et,ft=ut,pt=function(t,e){if(!ct(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!ct(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!ct(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!ct(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},ht=Object.defineProperty;Z.f=nt?Object.defineProperty:function(t,e,r){if(lt(t),e=pt(e,!0),lt(r),ft)try{return ht(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t};var dt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},vt=Z,gt=dt,_t=nt?function(t,e,r){return vt.f(t,e,gt(1,r))}:function(t,e,r){return t[e]=r,t},yt=O.exports,mt=k.exports,bt=X,St=_t,At=s,wt=function(t,e,r){var n,i,s,o=t&wt.F,a=t&wt.G,u=t&wt.S,c=t&wt.P,l=t&wt.B,f=t&wt.W,p=a?mt:mt[e]||(mt[e]={}),h=p.prototype,d=a?yt:u?yt[e]:(yt[e]||{}).prototype;for(n in a&&(r=e),r)(i=!o&&d&&void 0!==d[n])&&At(p,n)||(s=i?d[n]:r[n],p[n]=a&&"function"!=typeof d[n]?r[n]:l&&i?bt(s,yt):f&&d[n]==s?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):c&&"function"==typeof s?bt(Function.call,s):s,c&&((p.virtual||(p.virtual={}))[n]=s,t&wt.R&&h&&!h[n]&&St(h,n,s)))};wt.F=1,wt.G=2,wt.S=4,wt.P=8,wt.B=16,wt.W=32,wt.U=64,wt.R=128;var Tt=wt,xt=Tt,kt=k.exports,Bt=rt,Ot=n,jt=q;!function(t,e){var r=(kt.Object||{})[t]||Object[t],n={};n[t]=e(r),xt(xt.S+xt.F*Bt((function(){r(1)})),"Object",n)}("keys",(function(){return function(t){return jt(Ot(t))}}));var Et=k.exports.Object.keys;function Pt(t,e){if(null==t)return{};var r,n,i={},s=Et(t);for(n=0;n<s.length;n++)r=s[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}var Dt=v,Lt=e,Rt=_t,Nt={},Ft=Z,It=et,Ct=q,Mt=nt?Object.defineProperties:function(t,e){It(t);for(var r,n=Ct(e),i=n.length,s=0;i>s;)Ft.f(t,r=n[s++],e[r]);return t},Ut=O.exports.document,zt=Ut&&Ut.documentElement,Ht=et,$t=Mt,Vt=K,Kt=U("IE_PROTO"),Wt=function(){},Gt=function(){var t,e=at("iframe"),r=Vt.length;for(e.style.display="none",zt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Gt=t.F;r--;)delete Gt.prototype[Vt[r]];return Gt()},qt=Object.create||function(t,e){var r;return null!==t?(Wt.prototype=Ht(t),r=new Wt,Wt.prototype=null,r[Kt]=t):r=Gt(),void 0===e?r:$t(r,e)},Jt={exports:{}},Qt=x.exports("wks"),Xt=I,Zt=O.exports.Symbol,Yt="function"==typeof Zt;(Jt.exports=function(t){return Qt[t]||(Qt[t]=Yt&&Zt[t]||(Yt?Zt:Xt)("Symbol."+t))}).store=Qt;var te=Z.f,ee=s,re=Jt.exports("toStringTag"),ne=function(t,e,r){t&&!ee(t=r?t:t.prototype,re)&&te(t,re,{configurable:!0,value:e})},ie=qt,se=dt,oe=ne,ae={};_t(ae,Jt.exports("iterator"),(function(){return this}));var ue=s,ce=n,le=U("IE_PROTO"),fe=Object.prototype,pe=Object.getPrototypeOf||function(t){return t=ce(t),ue(t,le)?t[le]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?fe:null},he=Tt,de=Rt,ve=_t,ge=Nt,_e=function(t,e,r){t.prototype=ie(ae,{next:se(1,r)}),oe(t,e+" Iterator")},ye=ne,me=pe,be=Jt.exports("iterator"),Se=!([].keys&&"next"in[].keys()),Ae="keys",we="values",Te=function(){return this},xe=function(t,e,r,n,i,s,o){_e(r,e,n);var a,u,c,l=function(t){if(!Se&&t in d)return d[t];switch(t){case Ae:case we:return function(){return new r(this,t)}}return function(){return new r(this,t)}},f=e+" Iterator",p=i==we,h=!1,d=t.prototype,v=d[be]||d["@@iterator"]||i&&d[i],g=v||l(i),_=i?p?l("entries"):g:void 0,y="Array"==e&&d.entries||v;if(y&&(c=me(y.call(new t)))!==Object.prototype&&c.next&&ye(c,f,!0),p&&v&&v.name!==we&&(h=!0,g=function(){return v.call(this)}),o&&(Se||h||!d[be])&&ve(d,be,g),ge[e]=g,ge[f]=Te,i)if(a={values:p?g:l(we),keys:s?g:l(Ae),entries:_},o)for(u in a)u in d||de(d,u,a[u]);else he(he.P+he.F*(Se||h),e,a);return a},ke=function(t){return function(e,r){var n,i,s=String(Lt(e)),o=Dt(r),a=s.length;return o<0||o>=a?t?"":void 0:(n=s.charCodeAt(o))<55296||n>56319||o+1===a||(i=s.charCodeAt(o+1))<56320||i>57343?t?s.charAt(o):n:t?s.slice(o,o+2):i-56320+(n-55296<<10)+65536}}(!0);xe(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=ke(e,r),this._i+=t.length,{value:t,done:!1})}));var Be=function(t,e){return{value:e,done:!!t}},Oe=Nt,je=p;xe(Array,"Array",(function(t,e){this._t=je(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,Be(1)):Be(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),Oe.Arguments=Oe.Array;for(var Ee=O.exports,Pe=_t,De=Nt,Le=Jt.exports("toStringTag"),Re="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Ne=0;Ne<Re.length;Ne++){var Fe=Re[Ne],Ie=Ee[Fe],Ce=Ie&&Ie.prototype;Ce&&!Ce[Le]&&Pe(Ce,Le,Fe),De[Fe]=De.Array}var Me=a,Ue=Jt.exports("toStringTag"),ze="Arguments"==Me(function(){return arguments}()),He=function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ue))?r:ze?Me(e):"Object"==(n=Me(e))&&"function"==typeof e.callee?"Arguments":n},$e=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t},Ve={exports:{}},Ke=et,We=Nt,Ge=Jt.exports("iterator"),qe=Array.prototype,Je=He,Qe=Jt.exports("iterator"),Xe=Nt,Ze=k.exports.getIteratorMethod=function(t){if(null!=t)return t[Qe]||t["@@iterator"]||Xe[Je(t)]},Ye=X,tr=function(t,e,r,n){try{return n?e(Ke(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&Ke(i.call(t)),e}},er=function(t){return void 0!==t&&(We.Array===t||qe[Ge]===t)},rr=et,nr=y,ir=Ze,sr={},or={},ar=Ve.exports=function(t,e,r,n,i){var s,o,a,u,c=i?function(){return t}:ir(t),l=Ye(r,n,e?2:1),f=0;if("function"!=typeof c)throw TypeError(t+" is not iterable!");if(er(c)){for(s=nr(t.length);s>f;f++)if((u=e?l(rr(o=t[f])[0],o[1]):l(t[f]))===sr||u===or)return u}else for(a=c.call(t);!(o=a.next()).done;)if((u=tr(a,l,o.value,e))===sr||u===or)return u};ar.BREAK=sr,ar.RETURN=or;var ur,cr,lr,fr=et,pr=J,hr=Jt.exports("species"),dr=function(t,e){var r,n=fr(t).constructor;return void 0===n||null==(r=fr(n)[hr])?e:pr(r)},vr=X,gr=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)},_r=zt,yr=at,mr=O.exports,br=mr.process,Sr=mr.setImmediate,Ar=mr.clearImmediate,wr=mr.MessageChannel,Tr=mr.Dispatch,xr=0,kr={},Br="onreadystatechange",Or=function(){var t=+this;if(kr.hasOwnProperty(t)){var e=kr[t];delete kr[t],e()}},jr=function(t){Or.call(t.data)};Sr&&Ar||(Sr=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return kr[++xr]=function(){gr("function"==typeof t?t:Function(t),e)},ur(xr),xr},Ar=function(t){delete kr[t]},"process"==a(br)?ur=function(t){br.nextTick(vr(Or,t,1))}:Tr&&Tr.now?ur=function(t){Tr.now(vr(Or,t,1))}:wr?(lr=(cr=new wr).port2,cr.port1.onmessage=jr,ur=vr(lr.postMessage,lr,1)):mr.addEventListener&&"function"==typeof postMessage&&!mr.importScripts?(ur=function(t){mr.postMessage(t+"","*")},mr.addEventListener("message",jr,!1)):ur=Br in yr("script")?function(t){_r.appendChild(yr("script")).onreadystatechange=function(){_r.removeChild(this),Or.call(t)}}:function(t){setTimeout(vr(Or,t,1),0)});var Er={set:Sr,clear:Ar},Pr=O.exports,Dr=Er.set,Lr=Pr.MutationObserver||Pr.WebKitMutationObserver,Rr=Pr.process,Nr=Pr.Promise,Fr="process"==a(Rr),Ir={},Cr=J;function Mr(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Cr(e),this.reject=Cr(r)}Ir.f=function(t){return new Mr(t)};var Ur=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},zr=O.exports.navigator,Hr=zr&&zr.userAgent||"",$r=et,Vr=Y,Kr=Ir,Wr=function(t,e){if($r(t),Vr(e)&&e.constructor===t)return e;var r=Kr.f(t);return(0,r.resolve)(e),r.promise},Gr=_t,qr=function(t,e,r){for(var n in e)r&&t[n]?t[n]=e[n]:Gr(t,n,e[n]);return t},Jr=O.exports,Qr=k.exports,Xr=Z,Zr=nt,Yr=Jt.exports("species"),tn=Jt.exports("iterator"),en=!1;try{var rn=[7][tn]();rn.return=function(){en=!0},Array.from(rn,(function(){throw 2}))}catch(t){}var nn,sn,on,an,un=O.exports,cn=X,ln=He,fn=Tt,pn=Y,hn=J,dn=$e,vn=Ve.exports,gn=dr,_n=Er.set,yn=function(){var t,e,r,n=function(){var n,i;for(Fr&&(n=Rr.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(Fr)r=function(){Rr.nextTick(n)};else if(!Lr||Pr.navigator&&Pr.navigator.standalone)if(Nr&&Nr.resolve){var i=Nr.resolve(void 0);r=function(){i.then(n)}}else r=function(){Dr.call(Pr,n)};else{var s=!0,o=document.createTextNode("");new Lr(n).observe(o,{characterData:!0}),r=function(){o.data=s=!s}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}(),mn=Ir,bn=Ur,Sn=Hr,An=Wr,wn="Promise",Tn=un.TypeError,xn=un.process,kn=xn&&xn.versions,Bn=kn&&kn.v8||"",On=un.Promise,jn="process"==ln(xn),En=function(){},Pn=sn=mn.f,Dn=!!function(){try{var t=On.resolve(1),e=(t.constructor={})[require("./_wks")("species")]=function(t){t(En,En)};return(jn||"function"==typeof PromiseRejectionEvent)&&t.then(En)instanceof e&&0!==Bn.indexOf("6.6")&&-1===Sn.indexOf("Chrome/66")}catch(t){}}(),Ln=function(t){var e;return!(!pn(t)||"function"!=typeof(e=t.then))&&e},Rn=function(t,e){if(!t._n){t._n=!0;var r=t._c;yn((function(){for(var n=t._v,i=1==t._s,s=0,o=function(e){var r,s,o,a=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(i||(2==t._h&&In(t),t._h=1),!0===a?r=n:(l&&l.enter(),r=a(n),l&&(l.exit(),o=!0)),r===e.promise?c(Tn("Promise-chain cycle")):(s=Ln(r))?s.call(r,u,c):u(r)):c(n)}catch(t){l&&!o&&l.exit(),c(t)}};r.length>s;)o(r[s++]);t._c=[],t._n=!1,e&&!t._h&&Nn(t)}))}},Nn=function(t){_n.call(un,(function(){var e,r,n,i=t._v,s=Fn(t);if(s&&(e=bn((function(){jn?xn.emit("unhandledRejection",i,t):(r=un.onunhandledrejection)?r({promise:t,reason:i}):(n=un.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=jn||Fn(t)?2:1),t._a=void 0,s&&e.e)throw e.v}))},Fn=function(t){return 1!==t._h&&0===(t._a||t._c).length},In=function(t){_n.call(un,(function(){var e;jn?xn.emit("rejectionHandled",t):(e=un.onrejectionhandled)&&e({promise:t,reason:t._v})}))},Cn=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),Rn(e,!0))},Mn=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw Tn("Promise can't be resolved itself");(e=Ln(t))?yn((function(){var n={_w:r,_d:!1};try{e.call(t,cn(Mn,n,1),cn(Cn,n,1))}catch(t){Cn.call(n,t)}})):(r._v=t,r._s=1,Rn(r,!1))}catch(t){Cn.call({_w:r,_d:!1},t)}}};Dn||(On=function(t){dn(this,On,wn,"_h"),hn(t),nn.call(this);try{t(cn(Mn,this,1),cn(Cn,this,1))}catch(t){Cn.call(this,t)}},(nn=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=qr(On.prototype,{then:function(t,e){var r=Pn(gn(this,On));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=jn?xn.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&Rn(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),on=function(){var t=new nn;this.promise=t,this.resolve=cn(Mn,t,1),this.reject=cn(Cn,t,1)},mn.f=Pn=function(t){return t===On||t===an?new on(t):sn(t)}),fn(fn.G+fn.W+fn.F*!Dn,{Promise:On}),ne(On,wn),function(t){var e="function"==typeof Qr[t]?Qr[t]:Jr[t];Zr&&e&&!e[Yr]&&Xr.f(e,Yr,{configurable:!0,get:function(){return this}})}(wn),an=k.exports.Promise,fn(fn.S+fn.F*!Dn,wn,{reject:function(t){var e=Pn(this);return(0,e.reject)(t),e.promise}}),fn(fn.S+true*fn.F,wn,{resolve:function(t){return An(this===an?On:this,t)}}),fn(fn.S+fn.F*!(Dn&&function(t,e){if(!e&&!en)return!1;var r=!1;try{var n=[7],i=n[tn]();i.next=function(){return{done:r=!0}},n[tn]=function(){return i},t(n)}catch(t){}return r}((function(t){On.all(t).catch(En)}))),wn,{all:function(t){var e=this,r=Pn(e),n=r.resolve,i=r.reject,s=bn((function(){var r=[],s=0,o=1;vn(t,!1,(function(t){var a=s++,u=!1;r.push(void 0),o++,e.resolve(t).then((function(t){u||(u=!0,r[a]=t,--o||n(r))}),i)})),--o||n(r)}));return s.e&&i(s.v),r.promise},race:function(t){var e=this,r=Pn(e),n=r.reject,i=bn((function(){vn(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}});var Un=Tt,zn=k.exports,Hn=O.exports,$n=dr,Vn=Wr;Un(Un.P+Un.R,"Promise",{finally:function(t){var e=$n(this,zn.Promise||Hn.Promise),r="function"==typeof t;return this.then(r?function(r){return Vn(e,t()).then((function(){return r}))}:t,r?function(r){return Vn(e,t()).then((function(){throw r}))}:t)}});var Kn=Ir,Wn=Ur;Tt(Tt.S,"Promise",{try:function(t){var e=Kn.f(this),r=Wn(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}});var Gn=k.exports.Promise,qn={};qn.f=Object.getOwnPropertySymbols;var Jn={};Jn.f={}.propertyIsEnumerable;var Qn=nt,Xn=q,Zn=qn,Yn=Jn,ti=n,ei=c,ri=Object.assign,ni=!ri||rt((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=ri({},t)[r]||Object.keys(ri({},e)).join("")!=n}))?function(t,e){for(var r=ti(t),n=arguments.length,i=1,s=Zn.f,o=Yn.f;n>i;)for(var a,u=ei(arguments[i++]),c=s?Xn(u).concat(s(u)):Xn(u),l=c.length,f=0;l>f;)a=c[f++],Qn&&!o.call(u,a)||(r[a]=u[a]);return r}:ri,ii=Tt;ii(ii.S+ii.F,"Object",{assign:ni});var si=k.exports.Object.assign,oi={exports:{}};!function(e,r){var n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Function]",a="[object Object]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[s]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[o]=l["[object Map]"]=l["[object Number]"]=l[a]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var f="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),d=r&&!r.nodeType&&r,v=d&&e&&!e.nodeType&&e,g=v&&v.exports===d,_=g&&f.process,y=function(){try{var t=v&&v.require&&v.require("util").types;return t||_&&_.binding&&_.binding("util")}catch(t){}}(),m=y&&y.isTypedArray;function b(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var S,A,w=Array.prototype,T=Function.prototype,x=Object.prototype,k=h["__core-js_shared__"],B=T.toString,O=x.hasOwnProperty,j=function(){var t=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),E=x.toString,P=B.call(Object),D=RegExp("^"+B.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=g?h.Buffer:void 0,R=h.Symbol,N=h.Uint8Array,F=L?L.allocUnsafe:void 0,I=(S=Object.getPrototypeOf,A=Object,function(t){return S(A(t))}),C=Object.create,M=x.propertyIsEnumerable,U=w.splice,z=R?R.toStringTag:void 0,H=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),$=L?L.isBuffer:void 0,V=Math.max,K=Date.now,W=dt(h,"Map"),G=dt(Object,"create"),q=function(){function t(){}return function(e){if(!kt(e))return{};if(C)return C(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function J(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Z(t){var e=this.__data__=new Q(t);this.size=e.size}function Y(t,e){var r=St(t),n=!r&&bt(t),i=!r&&!n&&wt(t),s=!r&&!n&&!i&&Ot(t),o=r||n||i||s,a=o?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=a.length;for(var c in t)!e&&!O.call(t,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vt(c,u))||a.push(c);return a}function tt(t,e,r){(void 0!==r&&!mt(t[e],r)||void 0===r&&!(e in t))&&nt(t,e,r)}function et(t,e,r){var n=t[e];O.call(t,e)&&mt(n,r)&&(void 0!==r||e in t)||nt(t,e,r)}function rt(t,e){for(var r=t.length;r--;)if(mt(t[r][0],e))return r;return-1}function nt(t,e,r){"__proto__"==e&&H?H(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}J.prototype.clear=function(){this.__data__=G?G(null):{},this.size=0},J.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},J.prototype.get=function(t){var e=this.__data__;if(G){var r=e[t];return r===n?void 0:r}return O.call(e,t)?e[t]:void 0},J.prototype.has=function(t){var e=this.__data__;return G?void 0!==e[t]:O.call(e,t)},J.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=G&&void 0===e?n:e,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(t){var e=this.__data__,r=rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():U.call(e,r,1),--this.size,!0)},Q.prototype.get=function(t){var e=this.__data__,r=rt(e,t);return r<0?void 0:e[r][1]},Q.prototype.has=function(t){return rt(this.__data__,t)>-1},Q.prototype.set=function(t,e){var r=this.__data__,n=rt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(W||Q),string:new J}},X.prototype.delete=function(t){var e=ht(this,t).delete(t);return this.size-=e?1:0,e},X.prototype.get=function(t){return ht(this,t).get(t)},X.prototype.has=function(t){return ht(this,t).has(t)},X.prototype.set=function(t,e){var r=ht(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Z.prototype.clear=function(){this.__data__=new Q,this.size=0},Z.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Z.prototype.get=function(t){return this.__data__.get(t)},Z.prototype.has=function(t){return this.__data__.has(t)},Z.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Q){var n=r.__data__;if(!W||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new X(n)}return r.set(t,e),this.size=r.size,this};var it,st=function(t,e,r){for(var n=-1,i=Object(t),s=r(t),o=s.length;o--;){var a=s[it?o:++n];if(!1===e(i[a],a,i))break}return t};function ot(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?function(t){var e=O.call(t,z),r=t[z];try{t[z]=void 0;var n=!0}catch(t){}var i=E.call(t);n&&(e?t[z]=r:delete t[z]);return i}(t):function(t){return E.call(t)}(t)}function at(t){return Bt(t)&&ot(t)==s}function ut(t){return!(!kt(t)||function(t){return!!j&&j in t}(t))&&(Tt(t)?D:u).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function ct(t){if(!kt(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=gt(t),r=[];for(var n in t)("constructor"!=n||!e&&O.call(t,n))&&r.push(n);return r}function lt(t,e,r,n,i){t!==e&&st(e,(function(s,o){if(i||(i=new Z),kt(s))!function(t,e,r,n,i,s,o){var u=_t(t,r),c=_t(e,r),l=o.get(c);if(l)return void tt(t,r,l);var f=s?s(u,c,r+"",t,e,o):void 0,p=void 0===f;if(p){var h=St(c),d=!h&&wt(c),v=!h&&!d&&Ot(c);f=c,h||d||v?St(u)?f=u:Bt(b=u)&&At(b)?f=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(u):d?(p=!1,f=function(t,e){if(e)return t.slice();var r=t.length,n=F?F(r):new t.constructor(r);return t.copy(n),n}(c,!0)):v?(p=!1,g=c,_=!0?(y=g.buffer,m=new y.constructor(y.byteLength),new N(m).set(new N(y)),m):g.buffer,f=new g.constructor(_,g.byteOffset,g.length)):f=[]:function(t){if(!Bt(t)||ot(t)!=a)return!1;var e=I(t);if(null===e)return!0;var r=O.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&B.call(r)==P}(c)||bt(c)?(f=u,bt(u)?f=function(t){return function(t,e,r,n){var i=!r;r||(r={});var s=-1,o=e.length;for(;++s<o;){var a=e[s],u=n?n(r[a],t[a],a,r,t):void 0;void 0===u&&(u=t[a]),i?nt(r,a,u):et(r,a,u)}return r}(t,jt(t))}(u):kt(u)&&!Tt(u)||(f=function(t){return"function"!=typeof t.constructor||gt(t)?{}:q(I(t))}(c))):p=!1}var g,_,y,m;var b;p&&(o.set(c,f),i(f,c,n,s,o),o.delete(c));tt(t,r,f)}(t,e,o,r,lt,n,i);else{var u=n?n(_t(t,o),s,o+"",t,e,i):void 0;void 0===u&&(u=s),tt(t,o,u)}}),jt)}function ft(t,e){return yt(function(t,e,r){return e=V(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=V(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=n[i];return a[e]=r(o),b(t,this,a)}}(t,e,Dt),t+"")}var pt=H?function(t,e){return H(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:Dt;function ht(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function dt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ut(r)?r:void 0}function vt(t,e){var r=typeof t;return!!(e=null==e?i:e)&&("number"==r||"symbol"!=r&&c.test(t))&&t>-1&&t%1==0&&t<e}function gt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||x)}function _t(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var yt=function(t){var e=0,r=0;return function(){var n=K(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(pt);function mt(t,e){return t===e||t!=t&&e!=e}var bt=at(function(){return arguments}())?at:function(t){return Bt(t)&&O.call(t,"callee")&&!M.call(t,"callee")},St=Array.isArray;function At(t){return null!=t&&xt(t.length)&&!Tt(t)}var wt=$||function(){return!1};function Tt(t){if(!kt(t))return!1;var e=ot(t);return e==o||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function xt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function kt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Bt(t){return null!=t&&"object"==typeof t}var Ot=m?function(t){return function(e){return t(e)}}(m):function(t){return Bt(t)&&xt(t.length)&&!!l[ot(t)]};function jt(t){return At(t)?Y(t,!0):ct(t)}var Et,Pt=(Et=function(t,e,r){lt(t,e,r)},ft((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,s=n>2?e[2]:void 0;for(i=Et.length>3&&"function"==typeof i?(n--,i):void 0,s&&function(t,e,r){if(!kt(r))return!1;var n=typeof e;return!!("number"==n?At(r)&&vt(e,r.length):"string"==n&&e in r)&&mt(r[e],t)}(e[0],e[1],s)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var o=e[r];o&&Et(t,o,r,i)}return t})));function Dt(t){return t}e.exports=Pt}(oi,oi.exports);var ai=oi.exports,ui="default",ci="not_collect",li="production",fi=["de","en","es","fr","ko","nl","pt","ru","tr","vi","zh-hans","zh-hant","it","id","ms","hi","th","ja","bn","pl","fil"],pi=a,hi=Array.isArray||function(t){return"Array"==pi(t)};Tt(Tt.S,"Array",{isArray:hi});var di=k.exports.Array.isArray,vi=k.exports,gi=vi.JSON||(vi.JSON={stringify:JSON.stringify}),_i=function(t){return gi.stringify.apply(gi,arguments)},yi="\t\n\v\f\r    \u2028\u2029\ufeff",mi=Tt,bi=e,Si=rt,Ai=yi,wi="["+Ai+"]",Ti=RegExp("^"+wi+wi+"*"),xi=RegExp(wi+wi+"*$"),ki=function(t,e,r){var n={},i=Si((function(){return!!Ai[t]()||"…"!="…"[t]()})),s=n[t]=i?e(Bi):Ai[t];r&&(n[r]=s),mi(mi.P+mi.F*i,"String",n)},Bi=ki.trim=function(t,e){return t=String(bi(t)),1&e&&(t=t.replace(Ti,"")),2&e&&(t=t.replace(xi,"")),t},Oi=ki,ji=O.exports.parseFloat,Ei=Oi.trim,Pi=Tt,Di=1/ji(yi+"-0")!=-1/0?function(t){var e=Ei(String(t),3),r=ji(e);return 0===r&&"-"==e.charAt(0)?-0:r}:ji;Pi(Pi.G+Pi.F*(parseFloat!=Di),{parseFloat:Di});var Li=k.exports.parseFloat,Ri={exports:{}},Ni=Ri.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=Ni);var Fi={exports:{}},Ii=Fi.exports={version:"2.6.12"};"number"==typeof __e&&(__e=Ii);var Ci={},Mi=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Ui=Mi,zi=function(t){if(!Ui(t))throw TypeError(t+" is not an object!");return t},Hi=function(t){try{return!!t()}catch(t){return!0}},$i=!Hi((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),Vi=Mi,Ki=Ri.exports.document,Wi=Vi(Ki)&&Vi(Ki.createElement),Gi=function(t){return Wi?Ki.createElement(t):{}},qi=!$i&&!Hi((function(){return 7!=Object.defineProperty(Gi("div"),"a",{get:function(){return 7}}).a})),Ji=Mi,Qi=function(t,e){if(!Ji(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!Ji(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!Ji(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!Ji(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Xi=zi,Zi=qi,Yi=Qi,ts=Object.defineProperty;Ci.f=$i?Object.defineProperty:function(t,e,r){if(Xi(t),e=Yi(e,!0),Xi(r),Zi)try{return ts(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t};var es=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},rs=Ci,ns=es,is=$i?function(t,e,r){return rs.f(t,e,ns(1,r))}:function(t,e,r){return t[e]=r,t},ss={exports:{}},os={}.hasOwnProperty,as=function(t,e){return os.call(t,e)},us=0,cs=Math.random(),ls=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++us+cs).toString(36))},fs={exports:{}},ps=Fi.exports,hs=Ri.exports,ds="__core-js_shared__",vs=hs[ds]||(hs[ds]={});(fs.exports=function(t,e){return vs[t]||(vs[t]=void 0!==e?e:{})})("versions",[]).push({version:ps.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var gs=fs.exports("native-function-to-string",Function.toString),_s=Ri.exports,ys=is,ms=as,bs=ls("src"),Ss=gs,As="toString",ws=(""+Ss).split(As);Fi.exports.inspectSource=function(t){return Ss.call(t)},(ss.exports=function(t,e,r,n){var i="function"==typeof r;i&&(ms(r,"name")||ys(r,"name",e)),t[e]!==r&&(i&&(ms(r,bs)||ys(r,bs,t[e]?""+t[e]:ws.join(String(e)))),t===_s?t[e]=r:n?t[e]?t[e]=r:ys(t,e,r):(delete t[e],ys(t,e,r)))})(Function.prototype,As,(function(){return"function"==typeof this&&this[bs]||Ss.call(this)}));var Ts=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},xs=Ts,ks=function(t,e,r){if(xs(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},Bs=Ri.exports,Os=Fi.exports,js=is,Es=ss.exports,Ps=ks,Ds=function(t,e,r){var n,i,s,o,a=t&Ds.F,u=t&Ds.G,c=t&Ds.S,l=t&Ds.P,f=t&Ds.B,p=u?Bs:c?Bs[e]||(Bs[e]={}):(Bs[e]||{}).prototype,h=u?Os:Os[e]||(Os[e]={}),d=h.prototype||(h.prototype={});for(n in u&&(r=e),r)s=((i=!a&&p&&void 0!==p[n])?p:r)[n],o=f&&i?Ps(s,Bs):l&&"function"==typeof s?Ps(Function.call,s):s,p&&Es(p,n,s,t&Ds.U),h[n]!=s&&js(h,n,o),l&&d[n]!=s&&(d[n]=s)};Bs.core=Os,Ds.F=1,Ds.G=2,Ds.S=4,Ds.P=8,Ds.B=16,Ds.W=32,Ds.U=64,Ds.R=128;var Ls=Ds,Rs=Ri.exports.document,Ns=Rs&&Rs.documentElement,Fs={}.toString,Is=function(t){return Fs.call(t).slice(8,-1)},Cs=Math.ceil,Ms=Math.floor,Us=function(t){return isNaN(t=+t)?0:(t>0?Ms:Cs)(t)},zs=Us,Hs=Math.max,$s=Math.min,Vs=function(t,e){return(t=zs(t))<0?Hs(t+e,0):$s(t,e)},Ks=Us,Ws=Math.min,Gs=function(t){return t>0?Ws(Ks(t),9007199254740991):0},qs=Ls,Js=Ns,Qs=Is,Xs=Vs,Zs=Gs,Ys=[].slice;qs(qs.P+qs.F*Hi((function(){Js&&Ys.call(Js)})),"Array",{slice:function(t,e){var r=Zs(this.length),n=Qs(this);if(e=void 0===e?r:e,"Array"==n)return Ys.call(this,t,e);for(var i=Xs(t,r),s=Xs(e,r),o=Zs(s-i),a=new Array(o),u=0;u<o;u++)a[u]="String"==n?this.charAt(i+u):this[i+u];return a}});var to={exports:{}},eo=fs.exports("wks"),ro=ls,no=Ri.exports.Symbol,io="function"==typeof no;(to.exports=function(t){return eo[t]||(eo[t]=io&&no[t]||(io?no:ro)("Symbol."+t))}).store=eo;var so=Is,oo=to.exports("toStringTag"),ao="Arguments"==so(function(){return arguments}()),uo=function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),oo))?r:ao?so(e):"Object"==(n=so(e))&&"function"==typeof e.callee?"Arguments":n},co=uo,lo={};lo[to.exports("toStringTag")]="z",lo+""!="[object z]"&&ss.exports(Object.prototype,"toString",(function(){return"[object "+co(this)+"]"}),!0);var fo=zi,po=function(){var t=fo(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};$i&&"g"!=/./g.flags&&Ci.f(RegExp.prototype,"flags",{configurable:!0,get:po});var ho=zi,vo=po,go=$i,_o="toString",yo=/./.toString,mo=function(t){ss.exports(RegExp.prototype,_o,t,!0)};Hi((function(){return"/a/b"!=yo.call({source:"a",flags:"b"})}))?mo((function(){var t=ho(this);return"/".concat(t.source,"/","flags"in t?t.flags:!go&&t instanceof RegExp?vo.call(t):void 0)})):yo.name!=_o&&mo((function(){return yo.call(this)}));var bo=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},So=bo,Ao=function(t){return Object(So(t))},wo=Us,To=bo,xo=function(t){return function(e,r){var n,i,s=String(To(e)),o=wo(r),a=s.length;return o<0||o>=a?t?"":void 0:(n=s.charCodeAt(o))<55296||n>56319||o+1===a||(i=s.charCodeAt(o+1))<56320||i>57343?t?s.charAt(o):n:t?s.slice(o,o+2):i-56320+(n-55296<<10)+65536}}(!0),ko=function(t,e,r){return e+(r?xo(t,e).length:1)},Bo=uo,Oo=RegExp.prototype.exec,jo=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Bo(t))throw new TypeError("RegExp#exec called on incompatible receiver");return Oo.call(t,e)},Eo=po,Po=RegExp.prototype.exec,Do=String.prototype.replace,Lo=Po,Ro=function(){var t=/a/,e=/b*/g;return Po.call(t,"a"),Po.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),No=void 0!==/()??/.exec("")[1];(Ro||No)&&(Lo=function(t){var e,r,n,i,s=this;return No&&(r=new RegExp("^"+s.source+"$(?!\\s)",Eo.call(s))),Ro&&(e=s.lastIndex),n=Po.call(s,t),Ro&&n&&(s.lastIndex=s.global?n.index+n[0].length:e),No&&n&&n.length>1&&Do.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n});var Fo=Lo;Ls({target:"RegExp",proto:!0,forced:Fo!==/./.exec},{exec:Fo});var Io=ss.exports,Co=is,Mo=Hi,Uo=bo,zo=to.exports,Ho=Fo,$o=zo("species"),Vo=!Mo((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ko=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}(),Wo=function(t,e,r){var n=zo(t),i=!Mo((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),s=i?!Mo((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[$o]=function(){return r}),r[n](""),!e})):void 0;if(!i||!s||"replace"===t&&!Vo||"split"===t&&!Ko){var o=/./[n],a=r(Uo,n,""[t],(function(t,e,r,n,s){return e.exec===Ho?i&&!s?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}})),u=a[0],c=a[1];Io(String.prototype,t,u),Co(RegExp.prototype,n,2==e?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}},Go=zi,qo=Ao,Jo=Gs,Qo=Us,Xo=ko,Zo=jo,Yo=Math.max,ta=Math.min,ea=Math.floor,ra=/\$([$&`']|\d\d?|<[^>]*>)/g,na=/\$([$&`']|\d\d?)/g;Wo("replace",2,(function(t,e,r,n){return[function(n,i){var s=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,s,i):r.call(String(s),n,i)},function(t,e){var s=n(r,t,this,e);if(s.done)return s.value;var o=Go(t),a=String(this),u="function"==typeof e;u||(e=String(e));var c=o.global;if(c){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var p=Zo(o,a);if(null===p)break;if(f.push(p),!c)break;""===String(p[0])&&(o.lastIndex=Xo(a,Jo(o.lastIndex),l))}for(var h,d="",v=0,g=0;g<f.length;g++){p=f[g];for(var _=String(p[0]),y=Yo(ta(Qo(p.index),a.length),0),m=[],b=1;b<p.length;b++)m.push(void 0===(h=p[b])?h:String(h));var S=p.groups;if(u){var A=[_].concat(m,y,a);void 0!==S&&A.push(S);var w=String(e.apply(void 0,A))}else w=i(_,a,y,m,S,e);y>=v&&(d+=a.slice(v,y)+w,v=y+_.length)}return d+a.slice(v)}];function i(t,e,n,i,s,o){var a=n+t.length,u=i.length,c=na;return void 0!==s&&(s=qo(s),c=ra),r.call(o,c,(function(r,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":c=s[o.slice(1,-1)];break;default:var l=+o;if(0===l)return r;if(l>u){var f=ea(l/10);return 0===f?r:f<=u?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):r}c=i[l-1]}return void 0===c?"":c}))}}));var ia=Mi,sa=zi,oa=function(t,e){if(sa(t),!ia(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},aa={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=require("./_ctx")(Function.call,require("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return oa(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:oa},ua=Mi,ca=aa.set,la=function(t,e,r){var n,i=e.constructor;return i!==r&&"function"==typeof i&&(n=i.prototype)!==r.prototype&&ua(n)&&ca&&ca(t,n),t},fa={},pa=Is,ha=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==pa(t)?t.split(""):Object(t)},da=ha,va=bo,ga=function(t){return da(va(t))},_a=ga,ya=Gs,ma=Vs,ba=fs.exports("keys"),Sa=ls,Aa=function(t){return ba[t]||(ba[t]=Sa(t))},wa=as,Ta=ga,xa=function(t){return function(e,r,n){var i,s=_a(e),o=ya(s.length),a=ma(n,o);if(t&&r!=r){for(;o>a;)if((i=s[a++])!=i)return!0}else for(;o>a;a++)if((t||a in s)&&s[a]===r)return t||a||0;return!t&&-1}}(!1),ka=Aa("IE_PROTO"),Ba=function(t,e){var r,n=Ta(t),i=0,s=[];for(r in n)r!=ka&&wa(n,r)&&s.push(r);for(;e.length>i;)wa(n,r=e[i++])&&(~xa(s,r)||s.push(r));return s},Oa="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ja=Ba,Ea=Oa.concat("length","prototype");fa.f=Object.getOwnPropertyNames||function(t){return ja(t,Ea)};var Pa=Mi,Da=Is,La=to.exports("match"),Ra=function(t){var e;return Pa(t)&&(void 0!==(e=t[La])?!!e:"RegExp"==Da(t))},Na=Ri.exports,Fa=Ci,Ia=$i,Ca=to.exports("species"),Ma=Ri.exports,Ua=la,za=Ci.f,Ha=fa.f,$a=Ra,Va=po,Ka=Ma.RegExp,Wa=Ka,Ga=Ka.prototype,qa=/a/g,Ja=/a/g,Qa=new Ka(qa)!==qa;if($i&&(!Qa||Hi((function(){return Ja[to.exports("match")]=!1,Ka(qa)!=qa||Ka(Ja)==Ja||"/a/i"!=Ka(qa,"i")})))){Ka=function(t,e){var r=this instanceof Ka,n=$a(t),i=void 0===e;return!r&&n&&t.constructor===Ka&&i?t:Ua(Qa?new Wa(n&&!i?t.source:t,e):Wa((n=t instanceof Ka)?t.source:t,n&&i?Va.call(t):e),r?this:Ga,Ka)};for(var Xa=function(t){t in Ka||za(Ka,t,{configurable:!0,get:function(){return Wa[t]},set:function(e){Wa[t]=e}})},Za=Ha(Wa),Ya=0;Za.length>Ya;)Xa(Za[Ya++]);Ga.constructor=Ka,Ka.prototype=Ga,ss.exports(Ma,"RegExp",Ka)}!function(t){var e=Na[t];Ia&&e&&!e[Ca]&&Fa.f(e,Ca,{configurable:!0,get:function(){return this}})}("RegExp");var tu,eu,ru=Is,nu=Array.isArray||function(t){return"Array"==ru(t)},iu=Mi,su=nu,ou=to.exports("species"),au=function(t){var e;return su(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!su(e.prototype)||(e=void 0),iu(e)&&null===(e=e[ou])&&(e=void 0)),void 0===e?Array:e},uu=ks,cu=ha,lu=Ao,fu=Gs,pu=function(t,e){return new(au(t))(e)},hu=function(t,e){var r=1==t,n=2==t,i=3==t,s=4==t,o=6==t,a=5==t||o,u=e||pu;return function(e,c,l){for(var f,p,h=lu(e),d=cu(h),v=uu(c,l,3),g=fu(d.length),_=0,y=r?u(e,g):n?u(e,0):void 0;g>_;_++)if((a||_ in d)&&(p=v(f=d[_],_,h),t))if(r)y[_]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return _;case 2:y.push(f)}else if(s)return!1;return o?-1:i||s?s:y}},du=Hi,vu=Ls,gu=hu(1);vu(vu.P+vu.F*(eu=!0,!((tu=[].map)&&du((function(){eu?tu.call(null,(function(){}),1):tu.call(null)})))),"Array",{map:function(t){return gu(this,t,arguments[1])}});var _u=zi,yu=Ts,mu=to.exports("species"),bu=Ra,Su=zi,Au=function(t,e){var r,n=_u(t).constructor;return void 0===n||null==(r=_u(n)[mu])?e:yu(r)},wu=ko,Tu=Gs,xu=jo,ku=Fo,Bu=Hi,Ou=Math.min,ju=[].push,Eu=4294967295,Pu=!Bu((function(){RegExp(Eu,"y")}));Wo("split",2,(function(t,e,r,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!bu(t))return r.call(n,t,e);for(var i,s,o,a=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,l=void 0===e?Eu:e>>>0,f=new RegExp(t.source,u+"g");(i=ku.call(f,n))&&!((s=f.lastIndex)>c&&(a.push(n.slice(c,i.index)),i.length>1&&i.index<n.length&&ju.apply(a,i.slice(1)),o=i[0].length,c=s,a.length>=l));)f.lastIndex===i.index&&f.lastIndex++;return c===n.length?!o&&f.test("")||a.push(""):a.push(n.slice(c)),a.length>l?a.slice(0,l):a}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var s=t(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,s,n):i.call(String(s),r,n)},function(t,e){var s=n(i,t,this,e,i!==r);if(s.done)return s.value;var o=Su(t),a=String(this),u=Au(o,RegExp),c=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Pu?"y":"g"),f=new u(Pu?o:"^(?:"+o.source+")",l),p=void 0===e?Eu:e>>>0;if(0===p)return[];if(0===a.length)return null===xu(f,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){f.lastIndex=Pu?d:0;var g,_=xu(f,Pu?a:a.slice(d));if(null===_||(g=Ou(Tu(f.lastIndex+(Pu?0:d)),a.length))===h)d=wu(a,d,c);else{if(v.push(a.slice(h,d)),v.length===p)return v;for(var y=1;y<=_.length-1;y++)if(v.push(_[y]),v.length===p)return v;d=h=g}}return v.push(a.slice(h)),v}]}));var Du=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},Lu=zi,Ru=Du,Nu=jo;Wo("search",1,(function(t,e,r,n){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=n(r,t,this);if(e.done)return e.value;var i=Lu(t),s=String(this),o=i.lastIndex;Ru(o,0)||(i.lastIndex=0);var a=Nu(i,s);return Ru(i.lastIndex,o)||(i.lastIndex=o),null===a?-1:a.index}]}));var Fu=Ci.f,Iu=Function.prototype,Cu=/^\s*function ([^ (]*)/,Mu="name";Mu in Iu||$i&&Fu(Iu,Mu,{configurable:!0,get:function(){try{return(""+this).match(Cu)[1]}catch(t){return""}}});var Uu=zi,zu=Gs,Hu=ko,$u=jo;Wo("match",1,(function(t,e,r,n){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=n(r,t,this);if(e.done)return e.value;var i=Uu(t),s=String(this);if(!i.global)return $u(i,s);var o=i.unicode;i.lastIndex=0;for(var a,u=[],c=0;null!==(a=$u(i,s));){var l=String(a[0]);u[c]=l,""===l&&(i.lastIndex=Hu(s,zu(i.lastIndex),o)),c++}return 0===c?null:u}]}));var Vu={},Ku={};Ku.f={}.propertyIsEnumerable;var Wu=Ku,Gu=es,qu=ga,Ju=Qi,Qu=as,Xu=qi,Zu=Object.getOwnPropertyDescriptor;Vu.f=$i?Zu:function(t,e){if(t=qu(t),e=Ju(e,!0),Xu)try{return Zu(t,e)}catch(t){}if(Qu(t,e))return Gu(!Wu.f.call(t,e),t[e])};var Yu=Ls,tc=bo,ec=Hi,rc="\t\n\v\f\r    \u2028\u2029\ufeff",nc="["+rc+"]",ic=RegExp("^"+nc+nc+"*"),sc=RegExp(nc+nc+"*$"),oc=function(t,e,r){var n={},i=ec((function(){return!!rc[t]()||"…"!="…"[t]()})),s=n[t]=i?e(ac):rc[t];r&&(n[r]=s),Yu(Yu.P+Yu.F*i,"String",n)},ac=oc.trim=function(t,e){return t=String(tc(t)),1&e&&(t=t.replace(ic,"")),2&e&&(t=t.replace(sc,"")),t},uc=oc,cc=Ba,lc=Oa,fc=Object.keys||function(t){return cc(t,lc)},pc=Ci,hc=zi,dc=fc,vc=$i?Object.defineProperties:function(t,e){hc(t);for(var r,n=dc(e),i=n.length,s=0;i>s;)pc.f(t,r=n[s++],e[r]);return t},gc=zi,_c=vc,yc=Oa,mc=Aa("IE_PROTO"),bc=function(){},Sc=function(){var t,e=Gi("iframe"),r=yc.length;for(e.style.display="none",Ns.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Sc=t.F;r--;)delete Sc.prototype[yc[r]];return Sc()},Ac=Object.create||function(t,e){var r;return null!==t?(bc.prototype=gc(t),r=new bc,bc.prototype=null,r[mc]=t):r=Sc(),void 0===e?r:_c(r,e)},wc=Ri.exports,Tc=as,xc=Is,kc=la,Bc=Qi,Oc=Hi,jc=fa.f,Ec=Vu.f,Pc=Ci.f,Dc=uc.trim,Lc="Number",Rc=wc.Number,Nc=Rc,Fc=Rc.prototype,Ic=xc(Ac(Fc))==Lc,Cc="trim"in String.prototype,Mc=function(t){var e=Bc(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,s=(e=Cc?e.trim():Dc(e,3)).charCodeAt(0);if(43===s||45===s){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===s){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var o,a=e.slice(2),u=0,c=a.length;u<c;u++)if((o=a.charCodeAt(u))<48||o>i)return NaN;return parseInt(a,n)}}return+e};if(!Rc(" 0o1")||!Rc("0b1")||Rc("+0x1")){Rc=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Rc&&(Ic?Oc((function(){Fc.valueOf.call(r)})):xc(r)!=Lc)?kc(new Nc(Mc(e)),r,Rc):Mc(e)};for(var Uc,zc=$i?jc(Nc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Hc=0;zc.length>Hc;Hc++)Tc(Nc,Uc=zc[Hc])&&!Tc(Rc,Uc)&&Pc(Rc,Uc,Ec(Nc,Uc));Rc.prototype=Fc,Fc.constructor=Rc,ss.exports(wc,Lc,Rc)}var $c=Ls,Vc=Hi,Kc=bo,Wc=/"/g,Gc=function(t,e,r,n){var i=String(Kc(t)),s="<"+e;return""!==r&&(s+=" "+r+'="'+String(n).replace(Wc,"&quot;")+'"'),s+">"+i+"</"+e+">"};!function(t,e){var r={};r[t]=e(Gc),$c($c.P+$c.F*Vc((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",r)}("link",(function(t){return function(e){return t(this,"a","href",e)}}));var qc={},Jc=Array.prototype,Qc=Object.prototype,Xc=Jc.slice,Zc=Qc.toString,Yc=Qc.hasOwnProperty,tl=Jc.forEach,el=di,rl={};function nl(t){this.SensorsABTest=t,this.para=t.para}function il(t){this.SensorsABTest=t,this.para=t.para}qc.each=function(t,e,r){if(null==t)return!1;if(tl&&t.forEach===tl)t.forEach(e,r);else if(qc.isArray(t)&&t.length===+t.length){for(var n=0,i=t.length;n<i;n++)if(n in t&&e.call(r,t[n],n,t)===rl)return!1}else for(var s in t)if(Yc.call(t,s)&&e.call(r,t[s],s,t)===rl)return!1},qc.extend=function(t){return qc.each(Xc.call(arguments,1),(function(e){for(var r in e)Yc.call(e,r)&&void 0!==e[r]&&(t[r]=e[r])})),t},qc.isArray=el||function(t){return"[object Array]"===Zc.call(t)},qc.isObject=function(t){return null!=t&&"[object Object]"==Zc.call(t)},qc.isElement=function(t){return!(!t||1!==t.nodeType)},qc.isString=function(t){return"[object String]"==Zc.call(t)},qc.isBoolean=function(t){return"[object Boolean]"==Zc.call(t)},qc.isNumber=function(t){return"[object Number]"==Zc.call(t)&&/[\d\.]+/.test(String(t))},qc.unique=function(t){for(var e,r=[],n={},i=0;i<t.length;i++)(e=t[i])in n||(n[e]=!0,r.push(e));return r},qc.decodeURIComponent=function(t){var e=t;try{e=decodeURIComponent(t)}catch(r){e=t}return e},qc.getQueryParam=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),t=qc.decodeURIComponent(t);var r=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===r||r&&"string"!=typeof r[1]&&r[1].length?"":qc.decodeURIComponent(r[1])},qc.indexOf=function(t,e){var r=t.indexOf;if(r)return r.call(t,e);for(var n=0;n<t.length;n++)if(e===t[n])return n;return-1},qc.isFunction=function(t){if(!t)return!1;var e=Object.prototype.toString.call(t);return"[object Function]"==e||"[object AsyncFunction]"==e},qc.isEmptyObject=function(t){if(qc.isObject(t)){for(var e in t)if(Yc.call(t,e))return!1;return!0}return!1},qc.map=function(t,e){var r=[];return null==t?r:Array.prototype.map&&t.map===Array.prototype.map?t.map(e):(qc.each(t,(function(t,n,i){r.push(e(t,n,i))})),r)},qc.base64Decode=function(t){var e=qc.map(atob(t).split(""),(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}));return decodeURIComponent(e.join(""))},qc.getURLSearchParams=function(t){for(var e=function(t){return decodeURIComponent(t)},r={},n=(t=t||"").substring(1).split("&"),i=0;i<n.length;i++){var s=n[i].indexOf("=");if(-1!==s){var o=n[i].substring(0,s),a=n[i].substring(s+1);o=e(o),a=e(a),r[o]=a}}return r},qc.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*)/,void 0!==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 r in t)e=new RegExp(r+"[^&]+").test(e)?e.replace(new RegExp(r+"[^&]+"),r+"="+t[r]):"&"===e.slice(-1)?e+r+"="+t[r]:""===e?r+"="+t[r]:e+"&"+r+"="+t[r];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:"")+(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)+(this._values.QueryString?"?"+this._values.QueryString:"")},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);for(var r in e||qc.log("DPURLParser::_parse -> Invalid URL"),this._fields)void 0!==e[this._fields[r]]&&(this._values[r]=e[this._fields[r]]);this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname},new e(t)},qc.URL=function(t){var e,r={};if("function"==typeof window.URL&&function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(t){return!1}}())(r=new URL(t)).searchParams||(r.searchParams=(e=qc.getURLSearchParams(r.search),{get:function(t){return e[t]}}));else{!1===/^https?:\/\/.+/.test(t)&&qc.log("Invalid URL");var n=qc.urlParse(t);r.hash="",r.host=n._values.Host?n._values.Host+(n._values.Port?":"+n._values.Port:""):"",r.href=n._values.URL,r.password=n._values.Password,r.pathname=n._values.Path,r.port=n._values.Port,r.search=n._values.QueryString?"?"+n._values.QueryString:"",r.username=n._values.Username,r.hostname=n._values.Hostname,r.protocol=n._values.Protocol?n._values.Protocol+":":"",r.origin=n._values.Origin?n._values.Origin+(n._values.Port?":"+n._values.Port:""):"",r.searchParams=function(){var t=qc.getURLSearchParams("?"+n._values.QueryString);return{get:function(e){return t[e]}}}()}return r},qc.getQueryParam=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),t=qc.decodeURIComponent(t);var r=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===r||r&&"string"!=typeof r[1]&&r[1].length?"":qc.decodeURIComponent(r[1])},qc.isEmptyObject=function(t){if(qc.isObject(t)){for(var e in t)if(Yc.call(t,e))return!1;return!0}return!1},qc.contentLoaded=function(t,e){var r=!1,n=!0,i=t.document,s=i.documentElement,o=i.addEventListener,a=o?"addEventListener":"attachEvent",u=o?"removeEventListener":"detachEvent",c=o?"":"on",l=function n(s){"readystatechange"==s.type&&"complete"!=i.readyState||(("load"==s.type?t:i)[u](c+s.type,n,!1),!r&&(r=!0)&&e.call(t,s.type||s))};if("complete"==i.readyState)e.call(t,"lazy");else{if(!o&&s.doScroll){try{n=!t.frameElement}catch(t){}n&&function t(){try{s.doScroll("left")}catch(e){return void setTimeout(t,50)}l("poll")}()}i[a](c+"DOMContentLoaded",l,!1),i[a](c+"readystatechange",l,!1),t[a](c+"load",l,!1)}},qc.secCheck={isHttpUrl:function(t){return"string"==typeof t&&(!1!==/^https?:\/\/.+/.test(t)||(qc.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}},qc.addEvent=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation,e._getPath=t._getPath),e}t._getPath=function(){var t=this;return this.path||this.composedPath&&this.composedPath()||function(){try{var e=t.target,r=[e];if(null===e||null===e.parentElement)return[];for(;null!==e.parentElement;)e=e.parentElement,r.unshift(e);return r}catch(t){return[]}}()},t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,r,n){if(e&&e.addEventListener)e.addEventListener(r,(function(e){e._getPath=t._getPath,n.call(this,e)}),!0);else{var i="on"+r,s=e[i];e[i]=function(e,r,n){return function(i){if(i=i||t(window.event)){i.target=i.srcElement;var s,o,a=!0;return"function"==typeof n&&(s=n(i)),o=r.call(e,i),!1!==s&&!1!==o||(a=!1),a}}}(e,n,s)}}.apply(null,arguments)},qc.addSinglePageEvent=function(t){var e=location.href,r=window.history.pushState,n=window.history.replaceState;window.history.pushState=function(){r.apply(window.history,arguments),t(e),e=location.href},window.history.replaceState=function(){n.apply(window.history,arguments),t(e),e=location.href};var i=r?"popstate":"hashchange";qc.addEvent(window,i,(function(){t(e),e=location.href}))},qc.trim=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},qc.checkUrlIsMatch=function(t,e){var r,n,i=qc.URL(t);if("STRICT"===e)return location.href===i.href;if("FUZZY"===e){try{r=qc.URL(location.href)}catch(t){return qc.log("url 解析失败",t),!1}try{n=qc.URL(t)}catch(t){return qc.log("control_url 解析失败",t),!1}return r.host===n.host&&r.pathname===n.pathname}return qc.log("link_match_type字段异常",e),!1},qc.checkUrlIsRegexp=function(t,e){var r;try{r=qc.URL(location.href)}catch(t){return qc.log("url 解析失败",t),!1}try{var n=(e?new RegExp(t,e):new RegExp(t)).exec(r.href),i=!0;return!!n&&(qc.each(n,(function(t){t||(i=!1)})),i)}catch(t){return qc.log("control_link字段异常",t),!1}},qc.log=function(){if("object"==typeof console&&console.log){qc.isString(arguments[0])&&(arguments[0]="sensorsabtest————"+arguments[0]);try{return console.log.apply(console,arguments)}catch(t){console.log(arguments[0])}}},qc.error=function(){if("object"==typeof console&&console.error)try{return console.error.apply(console,arguments)}catch(t){console.error(arguments[0])}},qc.storage={isSupport:function(){var t=!0;try{var e="__sensorsdatasupport__",r="testIsSupportStorage";window.localStorage.setItem(e,r),window.localStorage.getItem(e)!==r&&(t=!1),window.localStorage.removeItem(e)}catch(e){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}},nl.prototype={init:function(t){if(!this.setPara(t))return!1;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 初始化成功,试验 URL",t.url),this.SensorsABTest.checkSADebug(),this.SensorsABTest.store.init(this.getResultFromServer,this)},setPara:function(t){if(!qc.isString(t.url)||"http"!==t.url.slice(0,4))return this.SensorsABTest.log("A/B Testing SDK 初始化失败,请使用正确的 URL"),!1;if("https"===location.protocol.slice(0,5)&&"http:"===t.url.slice(0,5))return this.SensorsABTest.log("A/B Testing SDK 初始化失败https 页面必须使用 https 的 URL"),!1;var e=qc.getQueryParam(t.url,"project-key");if(!e)return this.SensorsABTest.log("A/B Testing SDK 初始化失败,请使用正确的 URL必须包含 project-key"),!1;t.project_key=e;var r=this.SensorsABTest.verifyStore.para("A/B Testing SDK 初始化",t,{timeout_milliseconds:"not_essential"});return this.SensorsABTest.para=qc.extend({},this.SensorsABTest.default_para,r.para),qc.isBoolean(this.SensorsABTest.para.collect_bridge_status)||(this.SensorsABTest.para.collect_bridge_status=!0),qc.isNumber(this.SensorsABTest.para.update_interval)||(this.SensorsABTest.para.update_interval=6e5),!0===this.SensorsABTest.sd.para.encrypt_cookie&&(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(r){if(qc.isObject(r)&&"SUCCESS"===r.status){var n=e.SensorsABTest.getExpResult(t);t.callback(n)}else t.callback(t.default_value)},err:function(){t.callback(t.default_value)}})},creatRequestData:function(t){var e="";qc.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 r={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 qc.isObject(t.properties)&&(r.properties=qc.extend({},r.properties,t.properties)),this.SensorsABTest.sd.store._state.first_id&&(r.login_id=this.SensorsABTest.sd.store.getDistinctId()),r},getResultFromServer:function(t){var e,r=this,n=(t=qc.isObject(t)?t:{}).para||{},i=t.suc,s=t.err,o=this.creatRequestData(n);this.SensorsABTest.log("向服务端发起试验请求"),e=r.SensorsABTest.sd.store.getDistinctId(),r.SensorsABTest.sd._.ajax({url:r.SensorsABTest.para.url,type:"POST",data:_i(o),credentials:!1,contentType:"application/json",timeout:n.timeout_milliseconds||r.SensorsABTest.para.timeout_milliseconds,cors:!0,success:function(t){r.SensorsABTest.dealResponseData(t,e),i&&i(t),r.SensorsABTest.fetchData.setNextFetch()},error:function(t){r.SensorsABTest.log("服务端请求发送失败",t),s&&s(),r.SensorsABTest.fetchData.setNextFetch()}})}},nl.prototype.methods={asyncFetchABTest:function(t){if(!qc.isObject(t))return qc.error("asyncFetchABTest调用失败参数未正确配置"),!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"});e.verify_success&&(t=e.para,this.SensorsABTest.normalStore.asyncFetch(t))},fastFetchABTest:function(t){if(!qc.isObject(t))return qc.error("fastFetchABTest调用失败参数未正确配置"),!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 r=this.SensorsABTest.searchLocalExp(t.param_name);if(qc.isObject(r)){var n=this.SensorsABTest.getExpResult(t,r);t.callback(n)}else this.SensorsABTest.log("fastFetchABTest缓存中未读取到数据发起请求"),this.SensorsABTest.normalStore.asyncFetch(t)}},fetchCacheABTest:function(t){if(qc.isObject(t)){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)}else qc.error("fetchCacheABTest调用失败参数未正确配置")}},il.prototype={init:function(t){var e=this;if(this.SensorsABTest.state.storage.name="sawebjssdkabtest_bridge",!this.setPara(t))return!1;this.SensorsABTest.log("A/B Testing SDK 初始化成功"),this.abBridge=new this.SensorsABTest.sd.JSBridge({type:"abtest",app_call_js:function(t){try{t=qc.base64Decode(t)}catch(r){e.SensorsABTest.log("App数据base64解码异常",t)}try{(t=JSON.parse(t)).message_id&&this.double(t)}catch(r){e.SensorsABTest.log("App数据解析异常",t)}}}),qc.isObject(window.SensorsData_iOS_JS_Bridge)&&window.SensorsData_iOS_JS_Bridge.sensorsdata_abtest_module&&this.abBridge.hasAppBridge()||qc.isObject(window.SensorsData_APP_New_H5_Bridge)&&qc.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",this.SensorsABTest.store.init(this.getResultFromApp,this)},setPara:function(t){var e=this.SensorsABTest.verifyStore.para("打通初始化",t,{timeout_milliseconds:"not_essential"});return this.SensorsABTest.para=qc.extend({},this.SensorsABTest.default_para,e.para),qc.isBoolean(this.SensorsABTest.para.collect_bridge_status)||(this.SensorsABTest.para.collect_bridge_status=!0),qc.isNumber(this.SensorsABTest.para.update_interval)||(this.SensorsABTest.para.update_interval=6e5),!0===this.SensorsABTest.sd.para.encrypt_cookie&&(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){var e=this,r=(t=qc.isObject(t)?t:{}).para||{},n=t.suc,i=t.err,s=r.timeout_milliseconds||this.SensorsABTest.para.timeout_milliseconds;this.SensorsABTest.log("向App发起试验请求"),"ab_bridge_ok"===e.SensorsABTest.bridgeState?e.abBridge.requestToApp({data:{properties:r.properties,timeout:s,request_body:{origin_platform:"H5"}},callback:function(t){qc.isObject(t)&&qc.isObject(t.data)?(e.SensorsABTest.log("成功获取到 App 端返回的试验数据","data:",t),e.SensorsABTest.dealResponseData(t.data),n&&n(t)):(e.SensorsABTest.log("App 端请求失败"),i&&i()),e.SensorsABTest.fetchData.setNextFetch()},timeout:{time:s,callback:function(){e.SensorsABTest.log("获取App端数据失败"),i&&i(),e.SensorsABTest.fetchData.setNextFetch()}}}):i&&(e.SensorsABTest.log("A/B Testing 打通失败,",e.SensorsABTest.bridgeState),i())},asyncFetch:function(t){var e=this;this.SensorsABTest.bridgeStore.getResultFromApp({para:t,suc:function(r){if(qc.isObject(r.properties)&&(t.properties=qc.extend(r.properties,t.properties)),"SUCCESS"===r.data.status){var n=e.SensorsABTest.getExpResult(t);t.callback(n)}else t.callback(t.default_value)},err:function(){t.callback(t.default_value)}})}},il.prototype.methods={asyncFetchABTest:function(t){if(!qc.isObject(t))return qc.error("asyncFetchABTest调用失败参数未正确配置"),!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"});e.verify_success&&(t=e.para,"ab_bridge_ok"===this.SensorsABTest.bridgeState?this.SensorsABTest.bridgeStore.asyncFetch(t):t.callback(t.default_value))},fastFetchABTest:function(t){if(!qc.isObject(t))return qc.error("fastFetchABTest调用失败参数未正确配置"),!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 r=this.SensorsABTest.searchLocalExp(t.param_name);if(qc.isObject(r)){var n=this.SensorsABTest.getExpResult(t,r);t.callback(n)}else this.SensorsABTest.log("fastFetchABTest缓存中未读取到数据发起请求"),"ab_bridge_ok"===this.SensorsABTest.bridgeState?this.SensorsABTest.bridgeStore.asyncFetch(t):t.callback(t.default_value)}},fetchCacheABTest:function(t){if(qc.isObject(t)){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)}else qc.error("fetchCacheABTest调用失败参数未正确配置")}};var sl="dfm-enc-";function ol(t){var e="t6KJCZa5pDdQ9khoEM3Tj70fbP2eLSyc4BrsYugARqFIw1mzlGNVXOHiWvxUn8",r=e.length-1,n={},i=0;for(i=0;i<e.length;i++)n[e.charAt(i)]=e.charAt(r-i);var s="";for(i=0;i<t.length;i++)t.charAt(i)in n?s+=n[t.charAt(i)]:s+=t.charAt(i);return s}function al(t){this.SensorsABTest=t}function ul(t){var e=qc.storage.get(t);qc.isString(e)&&(e=function(t){return 0===t.indexOf(sl)&&(t=ol(t=t.substring(sl.length))),t}(e));try{e=JSON.parse(e)}catch(t){qc.log(t)}return e}function cl(t,e,r){t=_i(t),r&&(t=function(t){return sl+ol(t)}(t)),qc.storage.set(t,e)}function ll(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 fl(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 pl(t,e){t=t||window;var r=!1,n=!0,i=t.document,s=i.documentElement,o=i.addEventListener,a=o?"addEventListener":"attachEvent",u=o?"removeEventListener":"detachEvent",c=o?"":"on",l=function n(s){"readystatechange"==s.type&&"complete"!=i.readyState||(("load"==s.type?t:i)[u](c+s.type,n,!1),!r&&(r=!0)&&e.call(t,s.type||s))};if("complete"==i.readyState)e.call(t,"lazy");else{if(!o&&s.doScroll){try{n=!t.frameElement}catch(t){}n&&function t(){try{s.doScroll("left")}catch(e){return void setTimeout(t,50)}l("poll")}()}i[a](c+"DOMContentLoaded",l,!1),i[a](c+"readystatechange",l,!1),t[a](c+"load",l,!1)}}function hl(t,e){if(!t||!t.parentNode||!t.parentNode.children)return!1;e=e&&e.join?e:[];var r=t.nodeName.toLowerCase();return t&&"body"!==r&&1==t.nodeType?(e.unshift(function(t){var e=t.parentNode&&9==t.parentNode.nodeType?-1:function(t){if(!t.parentNode)return-1;for(var e=0,r=t.tagName,n=t.parentNode.children,i=0;i<n.length;i++)if(n[i].tagName===r){if(t===n[i])return e;e++}return-1}(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)+")":"")}(t)),t.getAttribute&&t.getAttribute("id")&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(t.getAttribute("id"))?e.join(" > "):hl(t.parentNode,e)):(e.unshift("body"),e.join(" > "))}function dl(t,e){return t.currentStyle?t.currentStyle[e]:t.ownerDocument.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function vl(t){var e=t.childNodes,r="",n=!1;return qc.each(e,(function(t){!1===n&&3===t.nodeType&&(qc.isString(t.textContent)||qc.isString(t.innerText)||qc.isString(t.nodeValue))&&(r=qc.trim(t.textContent||t.innerText||t.nodeValue||""),n=!0)})),r}function gl(t,e){var r=function(){var t,e={},r=navigator.userAgent.toLowerCase();return(t=r.match(/opera.([\d.]+)/))?e.opera=Number(t[1].split(".")[0]):(t=r.match(/msie ([\d.]+)/))?e.ie=Number(t[1].split(".")[0]):(t=r.match(/edge.([\d.]+)/))?e.edge=Number(t[1].split(".")[0]):(t=r.match(/firefox\/([\d.]+)/))?e.firefox=Number(t[1].split(".")[0]):(t=r.match(/chrome\/([\d.]+)/))?e.chrome=Number(t[1].split(".")[0]):(t=r.match(/version\/([\d.]+).*safari/))?e.safari=Number(t[1].match(/^\d*.\d*/)):(t=r.match(/trident\/([\d.]+)/))&&(e.ie=11),e}(),n=r.ie&&r.ie<9,i="";if(qc.each(e,(function(t,e){n&&t.indexOf("rgba")>-1&&(t=function(t){var e=t.match(/[\d.]+/g);return e.length>=3?"rgb("+e[0]+","+e[1]+","+e[2]+")":""}(t));var r=e.replace(/[A-Z]+/g,(function(t){return"-"+t.toLowerCase()}));i+=";"+r+": "+t})),""!==i){var s,o,a=t.style,u=a.cssText||"";!u||(";",(o=(s=u).length-";".length)>=0&&s.indexOf(";",o)==o)||(u+=";"),a.cssText=u+i}}function _l(t,e,r){if(r||(r=function(t,e){var r=e.originProps,n={attributes:{}},i=r.attributes;return qc.each(i.style||{},(function(e,r){n.attributes.style[r]=dl(t,r)})),Object.hasOwnProperty.call(r,"text")&&(n.attributes.text=vl(t)),qc.each(["src","href"],(function(e){Object.hasOwnProperty.call(i,e)&&(n.attributes[e]=t[e])})),Object.hasOwnProperty.call(i,"target")&&(n.attributes.target=t.getAttribute("target")),n}(t,e)),function(t,e){var r=t.originProps,n=e.originProps,i=r.attributes,s=n.attributes,o=!0;return r.text&&r.text!==n.text&&(o=!1),i&&qc.each(["src","href","target"],(function(t){i[t]&&i[t]!==s[t]&&(o=!1)})),o}(e,r)){var n=e.props;qc.isObject(n)&&yl(t,n)}}function yl(t,e){if(Object.hasOwnProperty.call(e,"attributes")){var r=e.attributes;Object.hasOwnProperty.call(r,"style")&&gl(t,r.style),qc.each(["href","target","src"],(function(e){Object.hasOwnProperty.call(r,e)&&function(t,e,r){t.setAttribute(e,r)}(t,e,r[e])}))}Object.hasOwnProperty.call(e,"text")&&function(t,e){var r=t.childNodes,n=!1;qc.each(r,(function(t){3===t.nodeType&&(n||(t.textContent?t.textContent=e:t.innerText?t.innerText=e:t.nodeValue=e,n=!0))}))}(t,e.text)}function ml(t,e){!function(t){t=qc.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")).rel="stylesheet",e.href=t.url),"js"===t.type&&((e=document.createElement("script")).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)}(qc.extend({success:function(){},error:function(){},type:"js",url:t},e))}function bl(t,e){var r=t.tagName.toLowerCase(),n=function(t,e){var r={};return qc.each(e||[],(function(e){var n=e.replace(/[A-Z]+/g,(function(t){return"-"+t.toLowerCase()}));r[e]=dl(t,n)})),r}(t,e),i={selector:hl(t),originProps:{attributes:{style:n},text:vl(t)},type:"text",tagName:r};return"a"===r&&(i.originProps.attributes.href=t.href,t.getAttribute("target")&&(i.originProps.attributes.target=t.getAttribute("target")),i.type="link"),"img"===r&&(i.originProps.attributes.src=t.src,i.type="img"),{originStyle:t.getAttribute("style"),eleInfo:i,ele:t}}function Sl(t){var e=t.eleInfo,r=t.ele;if(r){var n=t.originStyle;yl(r,e.originProps),r.style.cssText=n||""}}function Al(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 wl(){this.lib_version="0.1.0",this.para={},this.default_para={url:"",path:"",project_key:"",timeout_milliseconds:3e3,update_interval:6e5,collect_bridge_status:!0,session_limit:6e5,encrypt_cookie:!1},this.state={platform:"",storage:{name:"sawebjssdkabtest"}},this.bridgeState="",this.localdata={},this.originalData=[],this.triggerList={},this.updateTime=null,this.sd=null,this.link=new fl(this),this.vabtest=new Al(this),this.normalStore=new nl(this),this.bridgeStore=new il(this),this.verifyStore=new al(this)}function Tl(t){this.SensorsABTest=t}function xl(t){this.SensorsABTest=t}al.prototype={value_type_list:["Number","String","Object","Boolean"],valueType:function(t,e){switch(e){case"Number":if(qc.isNumber(t))return!0;break;case"String":if(qc.isString(t))return!0;break;case"Object":if(qc.isObject(t))return!0;break;case"Boolean":if(!0===t||!1===t)return!0;break;default:return!1}return!1},para:function(t,e,r){var n=this,i={verify_success:!0,para:null};return qc.each(r,(function(r,s){if("essential"===r)switch(s){case"param_name":qc.isString(e.param_name)&&e.param_name.length>0||(qc.error(t+"方法调用失败param_name参数未正确配置param_name:",e.param_name),i.verify_success=!1);break;case"value_type":qc.isString(e.value_type)&&-1!==qc.indexOf(n.value_type_list,e.value_type)||(qc.error(t+"方法调用失败value_type配置错误",e.value_type),i.verify_success=!1);break;case"default_value":void 0===e.default_value?(qc.error(t+"方法调用失败default_value参数未配置"),i.verify_success=!1):n.valueType(e.default_value,e.value_type)||(qc.error(t+"方法调用失败default_value类型必须与value_type一致",e.default_value,e.value_type),i.verify_success=!1);break;case"callback":qc.isFunction(e.callback)||(qc.error(t+"方法调用失败callback参数未正确配置"),i.verify_success=!1);break;default:i.verify_success=!1}else if("not_essential"===r)switch(s){case"timeout_milliseconds":e.timeout_milliseconds=e.timeout_milliseconds||n.SensorsABTest.para.timeout_milliseconds||n.SensorsABTest.default_para.timeout_milliseconds,(!qc.isNumber(e.timeout_milliseconds)||qc.isNumber(e.timeout_milliseconds)&&e.timeout_milliseconds<=0)&&(qc.error("timeout_milliseconds 参数错误",e.timeout_milliseconds),e.timeout_milliseconds=n.SensorsABTest.para.timeout_milliseconds),e.timeout_milliseconds<200&&(e.timeout_milliseconds=200);break;case"properties":e.properties=qc.isObject(e.properties)?e.properties:{}}})),i.para=e,i}},ll.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(r){e.styleSheet.cssText=t}try{this.style_element=e,document.getElementsByTagName("head")[0].appendChild(e)}catch(t){qc.log("error when create calls")}},show:function(t){try{var e=this;if(this.is_abort)return!1;var r=null;if(r=document.getElementsByTagName("html")[0],!qc.isElement(r))return;r.setAttribute(this.attr_name,"1"),this.is_added=!0,qc.isNumber(t)&&(this.remove_timer=setTimeout((function(){e.is_timeout=!0,e.remove()}),t))}catch(t){qc.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],!qc.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(t){qc.log("error when remove calls")}}},fl.prototype.init=function(t){return this.initPara(t),this.para?qc.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)},fl.prototype.addSinglePageListener=function(){var t=this;qc.addSinglePageEvent((function(e){return e!==location.href&&(t.is_filtered_out=!1,t.isFirst=!0,t.mask_instance&&t.mask_instance.remove(),qc.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)))}))},fl.prototype.initMask=function(){this.mask_instance=new ll("link_"+this.SensorsABTest.sd.para.sdk_id),this.mask_instance.show(this.para.timeout)},fl.prototype.initPara=function(t){if(qc.isFunction(t))try{t=t()}catch(t){return this.SensorsABTest.log("link para error!"),void(this.para=!1)}!1===t?this.para=!1:qc.isObject(t)&&(this.para.timeout=qc.isNumber(t.timeout)&&t.timeout>=0?t.timeout:500,this.para.use_mask=qc.isBoolean(t.use_mask)?t.use_mask:this.para.use_mask,this.para.control_link_search=qc.isString(t.control_link_search)?t.control_link_search:"default",this.para.experiment_link_search=qc.isString(t.experiment_link_search)?t.experiment_link_search:"default",this.para.pass_params=!qc.isBoolean(t.pass_params)||t.pass_params)},fl.prototype.resolve=function(t){var e=this;if(!this.para)return!1;if(!qc.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 r=!1;qc.each(t,(function(t){return!!qc.isObject(t)&&!r&&"LINK"===t.experiment_type&&void(e.isTriggerLinkExp(t)&&(r=!0,e.redirectUrl(t)))})),!r&&this.para.use_mask&&this.mask_instance&&this.mask_instance.remove()},fl.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()},fl.prototype.isTriggerLinkExp=function(t){return qc.isString(t.control_link)&&qc.isString(t.link_match_type)?"REGEXP"===t.link_match_type?!!qc.checkUrlIsRegexp(t.control_link,t.regexp_flags)||(this.SensorsABTest.log("多链接试验匹配失败",t.abtest_experiment_id),!1):!!qc.checkUrlIsMatch(t.control_link,t.link_match_type)||(this.SensorsABTest.log("多链接试验匹配失败",t.abtest_experiment_id),!1):(this.SensorsABTest.log("多链接试验数据异常",t.abtest_experiment_id),!1)},fl.prototype.redirectUrl=function(t){if(t.experiment_link&&qc.isString(t.experiment_link))if(!0!==t.is_control_group||"STRICT"!==t.link_match_type&&"REGEXP"!==t.link_match_type){var e,r,n=location.href,i=t.experiment_link;if("REGEXP"===t.link_match_type&&/\$\d+/.test(i)){var s=t.regexp_flags?new RegExp(t.control_link,t.regexp_flags):new RegExp(t.control_link);i=n.replace(s,i)}this.para.pass_params?(r=this.getMergedUrl(t.is_control_group,i,n),e=o(r)):(r=this.getMergedUrl(t.is_control_group,i),e=o(r)),e&&(this.SensorsABTest.triggerHandle(t)?setTimeout((function(){location.href=e}),80):setTimeout((function(){location.href=e}),0),this.mask_instance&&this.mask_instance.remove_timer&&clearTimeout(this.mask_instance.remove_timer))}else this.SensorsABTest.triggerHandle(t);else this.SensorsABTest.log("页面跳转失败experiment_link字段异常",t.abtest_experiment_id);function o(t){return qc.secCheck.isHttpUrl(t)?qc.secCheck.removeScriptProtocol(t):(this.SensorsABTest.log("非法URL"),!1)}},fl.prototype.getMergedUrl=function(t,e,r){var n="",i="",s="",o={parse_url:null,search:""},a={parse_url:null,search:"",hash:""};function u(t){var e=/([^?#]+)(\?[^#]*)?(#.*)?/.exec(t);if(e)return{host:e[1]||"",search:e[2]||"",hash:e[3]||""}}if(!r||(o.parse_url=u(r),o.parse_url)){if(a.parse_url=u(e),a.parse_url)return r&&("after_hash"===this.para.control_link_search?o.search=c(o.parse_url.hash).search:o.search=o.parse_url.search),t?"after_hash"===this.para.control_link_search?(a.search=c(a.parse_url.hash).search,a.hash=c(a.parse_url.hash).hash):a.search=a.parse_url.search:"after_hash"===this.para.experiment_link_search?(a.search=c(a.parse_url.hash).search,a.hash=c(a.parse_url.hash).hash):a.search=a.parse_url.search,i=r?this.getSearchStr(o.search,a.search):this.getSearchStr(a.search),t&&"after_hash"===this.para.control_link_search||!t&&"after_hash"===this.para.experiment_link_search?n=a.hash.length>0?a.parse_url.host+a.parse_url.search+a.hash+i:a.parse_url.search.length>0?a.parse_url.host+a.parse_url.search+"&"+i.substring(1):a.parse_url.host+i:(s="after_hash"===this.para.control_link_search?a.parse_url.hash:r?a.parse_url.hash||o.parse_url.hash:a.parse_url.hash,n=a.parse_url.host+i+s),n;this.SensorsABTest.log("url 解析失败",e)}else this.SensorsABTest.log("url 解析失败",r);function c(t){var e={hash:"",search:""};if(!qc.isString(t))return e;var r=t.indexOf("?");return r>-1?(e.search=t.slice(r),e.hash=t.slice(0,r)):e.hash=t,e}},fl.prototype.getSearchStr=function(t,e){function r(t){var e={};if(!t||!t.length||0!==t.indexOf("?"))return e;if(!(t=t.slice(1)).length)return e;for(var r=t.split("&"),n=0;n<r.length;n++)if(r[n].indexOf("=")<0)e[r[n]]=null;else{var i=r[n].split("=");e[i[0]]=i[1]}return e}var n=r(t),i=r(e),s=qc.extend(n,i),o="";if(qc.isEmptyObject(s))return"?saSDKMultilink=true";var a=!0;for(var u in s)a?(o+="?",a=!1):o+="&",null!==s[u]?o=o+u+"="+s[u]:o+=u;return o+"&saSDKMultilink=true"},window.MutationObserver||(window.MutationObserver=function(t){function e(t){this._watched=[],this._listener=t}function r(e){var r={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(var n in e)d(r,n)&&e[n]!==t&&(r[n]=e[n]);return r}function n(e,n){var i=a(e,n);return function(s){var c,l=s.length;n.charData&&3===e.nodeType&&e.nodeValue!==i.charData&&s.push(new r({type:"characterData",target:e,oldValue:i.charData})),n.attr&&i.attr&&o(s,e,i.attr,n.afilter),(n.kids||n.descendents)&&(c=function(e,n,i,s){var a;function c(t,n,i,a,u){for(var c,f,p,h=t.length-1,d=-~((h-u)/2);p=t.pop();)c=i[p.i],f=a[p.j],s.kids&&d&&Math.abs(p.i-p.j)>=h&&(e.push(r({type:"childList",target:n,addedNodes:[c],removedNodes:[c],nextSibling:c.nextSibling,previousSibling:c.previousSibling})),d--),s.attr&&f.attr&&o(e,c,f.attr,s.afilter),s.charData&&3===c.nodeType&&c.nodeValue!==f.charData&&e.push(r({type:"characterData",target:c,oldValue:f.charData})),s.descendents&&l(c,f)}function l(n,i){for(var p,d,v,g,_,y,m,b=n.childNodes,S=i.kids,A=b.length,w=S?S.length:0,T=0,x=0,k=0;x<A||k<w;)(y=b[x])===(m=(_=S[k])&&_.node)?(s.attr&&_.attr&&o(e,y,_.attr,s.afilter),s.charData&&_.charData!==t&&y.nodeValue!==_.charData&&e.push(r({type:"characterData",target:y,oldValue:_.charData})),d&&c(d,n,b,S,T),s.descendents&&(y.childNodes.length||_.kids&&_.kids.length)&&l(y,_),x++,k++):(a=!0,p||(p={},d=[]),y&&(p[v=f(y)]||(p[v]=!0,-1===(g=u(S,y,k))?s.kids&&(e.push(r({type:"childList",target:n,addedNodes:[y],nextSibling:y.nextSibling,previousSibling:y.previousSibling})),T++):d.push({i:x,j:g})),x++),m&&m!==b[x]&&(p[v=f(m)]||(p[v]=!0,-1===(g=h(b,m,x))?s.kids&&(e.push(r({type:"childList",target:i.node,removedNodes:[m],nextSibling:S[k+1],previousSibling:S[k-1]})),T--):d.push({i:g,j:k})),k++));d&&c(d,n,b,S,T)}return l(n,i),a}(s,e,i,n)),(c||s.length!==l)&&(i=a(e,n))}}e._period=30,e.prototype={observe:function(t,r){for(var i,s={attr:!!(r.attributes||r.attributeFilter||r.attributeOldValue),kids:!!r.childList,descendents:!!r.subtree,charData:!(!r.characterData&&!r.characterDataOldValue)},o=this._watched,a=0;a<o.length;a++)o[a].tar===t&&o.splice(a,1);r.attributeFilter&&(s.afilter=p(r.attributeFilter,(function(t,e){return t[e]=!0,t}),{})),o.push({tar:t,fn:n(t,s)}),this._timeout||(i=this,function t(){var r=i.takeRecords();r.length&&i._listener(r,i),i._timeout=setTimeout(t,e._period)}())},takeRecords:function(){for(var t=[],e=this._watched,r=0;r<e.length;r++)e[r].fn(t);return t},disconnect:function(){this._watched=[],clearTimeout(this._timeout),this._timeout=null}};var i=document.createElement("i");i.style.top=0;var s=(i="null"!=i.attributes.style.value)?function(t,e){return e.value}:function(t,e){return"style"!==e.name?e.value:t.style.cssText};function o(t,e,n,i){for(var o,a,u={},c=e.attributes,l=c.length;l--;)a=(o=c[l]).name,i&&!d(i,a)||(s(e,o)!==n[a]&&t.push(r({type:"attributes",target:e,attributeName:a,oldValue:n[a],attributeNamespace:o.namespaceURI})),u[a]=!0);for(a in n)u[a]||t.push(r({target:e,type:"attributes",attributeName:a,oldValue:n[a]}))}function a(t,e){var r=!0;return function t(n){var i={node:n};return!e.charData||3!==n.nodeType&&8!==n.nodeType?(e.attr&&r&&1===n.nodeType&&(i.attr=p(n.attributes,(function(t,r){return e.afilter&&!e.afilter[r.name]||(t[r.name]=s(n,r)),t}),{})),r&&(e.kids||e.charData||e.attr&&e.descendents)&&(i.kids=function(t,e){for(var r=[],n=0;n<t.length;n++)r[n]=e(t[n],n,t);return r}(n.childNodes,t)),r=e.descendents):i.charData=n.nodeValue,i}(t)}function u(t,e,r){return h(t,e,r,"node")}var c=1,l="mo_id";function f(t){try{return t.id||(t[l]=t[l]||c++)}catch(e){try{return t.nodeValue}catch(t){return c++}}}function p(t,e,r){for(var n=0;n<t.length;n++)r=e(r,t[n],n,t);return r}function h(t,e,r,n){for(;r<t.length;r++)if((n?t[r][n]:t[r])===e)return r;return-1}function d(e,r){return e[r]!==t}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),r=this,n=function(){},i=function(){return r.apply(this instanceof n&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,i.prototype=new n,i}),Al.prototype.init=function(t){var e=this;this.initPara(t),!1!==this.enable_visualize&&(window.self!==window.top&&function(){if(!window.name)return!1;try{var t=JSON.parse(decodeURIComponent(window.name||"")),e=t.is_vabtesting,r=t.source_url,n=t.link_match_type;return!(!0!==e||!qc.checkUrlIsMatch(r,n))||(qc.log("A/B Testing SDK 页面地址,与当前实验 URL 不匹配,请使用正确的 URL"),!1)}catch(t){return!1}}()?(this.is_editor=!0,document.getElementById("sa-abtesting-vabtest-script")||ml(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()))},Al.prototype.initPara=function(t){if(qc.isFunction(t))try{t=t()}catch(t){return this.SensorsABTest.log("ABTesting SDK !"),void(this.para=!1)}if(qc.isObject(t)){Object.prototype.hasOwnProperty.call(t,"enable_visualize")&&qc.isBoolean(t.enable_visualize)?this.enable_visualize=t.enable_visualize:this.SensorsABTest.log("ABTesting SDK 初始化参数 enable_visualize 格式不正确。 类型应为 Boolean"),this.use_mask=qc.isBoolean(t.use_mask)?t.use_mask:this.use_mask,this.timeout=qc.isNumber(t.timeout)&&t.timeout>=0?t.timeout:this.timeout;var e=qc.isString(t.vabtest_url)?t.vabtest_url:"";e&&("https:"===location.protocol?"https:"===e.slice(0,6)?this.vabtest_url=e:this.SensorsABTest.log("ABTesting SDK 初始化参数 vabtest_url 协议头应设置为 https"):"http:"===e.slice(0,5)||"https:"===e.slice(0,6)?this.vabtest_url=e:this.SensorsABTest.log("ABTesting SDK 初始化参数 vabtest_url 应设置为有效 URL"))}else this.para=!1},Al.prototype.resolve=function(t){if(!1!==this.enable_visualize&&!0!==this.is_editor&&!1!==this.isFirst){if((new Date).getTime()-this.start_time>this.timeout)return this.SensorsABTest.log("请求实验结果超时A/B 可视化实验失败!"),!1;var e=this;this.isFirst=!1;var r=!1;qc.each(t,(function(t){if(!qc.isObject(t)||"VISUAL"!==t.experiment_type)return!1;if(r)return!1;var n=t.experiment_value;if(!qc.isArray(n))try{n=JSON.parse(t.experiment_value),t.experiment_value=n}catch(t){return!1}e.isTriggerVisualExp(t)&&(r=!0,e.prepareResource(t,e.render.bind(e)),e.visualExp=t)})),!r&&this.use_mask&&this.destroyMask(),pl(window,(function(){!function(t){new window.MutationObserver(t).observe(document.body,{childList:!0,subtree:!0})}(e.observerCallback.bind(e))}))}},Al.prototype.initMask=function(){this.mask_instance=new ll("vabtest_"+this.SensorsABTest.sd.para.sdk_id),this.mask_instance.show(this.timeout)},Al.prototype.destroyMask=function(){this.mask_instance&&this.mask_instance.remove()},Al.prototype.prepareResource=function(t,e){var r=this,n=t.experiment_value;qc.isArray(n)&&(qc.each(n,(function(n){var i=n.tagName,s=n.props;if("img"===i&&s&&s.attributes&&qc.isString(s.attributes.src)){var o=s.attributes.src;r.imgLoadingList.push(o);var a=document.createElement("img");a.width=1,a.height=1,a.onload=u,a.onerror=u,a.onabort=u,a.src=s.attributes.src}function u(){var n=r.imgLoadingList.indexOf(o);n>-1&&r.imgLoadingList.splice(n,1),0===r.imgLoadingList.length&&e(t)}})),0===this.imgLoadingList.length&&e(t))},Al.prototype.render=function(t){var e=this;pl(window,(function(){if(e.use_mask&&e.mask_instance&&!0===e.mask_instance.is_timeout)e.SensorsABTest.log("渲染实验结果超时A/B 可视化实验失败!");else{e.isTrigger||(e.SensorsABTest.triggerHandle(t),e.isTrigger=!0);var r=t.experiment_value;qc.isArray(r)&&qc.each(r,(function(t){var r=function(t){if(!qc.isString(t))return null;var e,r=t.split(">");return(e=function t(e){var n,i=r.shift();if(!i)return e;try{n=function(t,e){var r;if("body"===(t=qc.trim(t)))return document.getElementsByTagName("body")[0];if(0===t.indexOf("#"))t=t.slice(1),r=document.getElementById(t);else if(t.indexOf(":nth-of-type")>-1){var n=t.split(":nth-of-type");if(!n[0]||!n[1])return null;var i=n[0],s=n[1].match(/\(([0-9]+)\)/);if(!s||!s[1])return null;var o=Number(s[1]);if(!(qc.isElement(e)&&e.children&&e.children.length>0))return null;for(var a=e.children,u=0;u<a.length;u++)if(qc.isElement(a[u])&&a[u].tagName.toLowerCase()===i&&0==--o){r=a[u];break}if(o>0)return null}return r||null}(i,e)}catch(t){n=null}return n&&qc.isElement(n)?t(n):null}())&&qc.isElement(e)?e:null}(t.selector);if(r)try{var n=bl(r,[]);_l(r,t,n.eleInfo),e.originData.push(n)}catch(t){}})),e.use_mask&&e.destroyMask()}}))},Al.prototype.restoreElements=function(){qc.each(this.originData,(function(t){Sl(t)})),this.visualExp=null,this.isFirst=!0,this.start_time=(new Date).getTime(),this.originData=[],this.isTrigger=!1},Al.prototype.addSinglePageListener=function(){var t=this;qc.addSinglePageEvent((function(e){if(e===location.href)return!1;t.mask_instance&&t.destroyMask(),t.start_time=(new Date).getTime(),t.use_mask&&t.initMask(),t.restoreElements(),t.resolve(t.SensorsABTest.originalData)}))},Al.prototype.observerCallback=function(){this.visualExp&&(qc.each(this.originData,(function(t){Sl(t)})),this.originData=[],this.render(this.visualExp))},Al.prototype.stopTrigger=function(){this.isFirst=!1,this.SensorsABTest.log("请求实验结果失败A/B 可视化实验失败!"),this.use_mask&&this.destroyMask()},Al.prototype.isTriggerVisualExp=function(t){return qc.isString(t.control_link)&&qc.isString(t.link_match_type)?!!qc.checkUrlIsMatch(t.control_link,t.link_match_type)||(this.SensorsABTest.log("可视化试验匹配失败",t.abtest_experiment_id),!1):(this.SensorsABTest.log("可视化试验数据异常",t.abtest_experiment_id),!1)},wl.prototype.asyncFetchABTest=function(){qc.error("asyncFetchABTest调用失败,A/B Testing未初始化")},wl.prototype.fastFetchABTest=function(){qc.error("fastFetchABTest调用失败,A/B Testing未初始化")},wl.prototype.etchCacheABTest=function(){qc.error("fetchCacheABTest调用失败,A/B Testing未初始化")},wl.prototype.searchLocalExp=function(t){return this.localdata[t]?this.localdata[t]:null},wl.prototype.getExpResult=function(t,e){var r=t.default_value,n=e||this.searchLocalExp(t.param_name);return qc.isObject(n)?qc.isObject(n.js_config)&&(n.js_config.type===t.value_type?(r=n.js_config.value,this.triggerHandle(n,t)):this.log("试验结果类型与代码期望类型不一致param_name"+t.param_name+",当前返回类型为:"+n.js_config.type+",代码期望类型为:"+t.value_type)):this.log("localdata未查询到试验数据试验参数名称"+t.param_name),r},wl.prototype.resolveVariables=function(t){this.localdata={};var e=this;qc.each(t,(function(t){if(qc.isObject(t)&&t.variables&&qc.isArray(t.variables)){if(t.experiment_type&&"CODE"!==t.experiment_type)return!1;qc.each(t.variables,(function(r){qc.isObject(r)&&!e.localdata[r.name]&&(e.localdata[r.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:r.value,type:r.type,js_config:e.getRelativeValue(r.value,r.type),experiment_type:t.experiment_type})}))}}))},wl.prototype.getRelativeValue=function(t,e){var r=this,n={},i={INTEGER:function(t){var e=Li(t);isNaN(e)?r.log("原始数据 INTEGER 类型解析异常",t):(n.value=e,n.type="Number")},STRING:function(t){qc.isString(t)?(n.value=t,n.type="String"):r.log("原始数据 STRING 类型解析异常",t)},JSON:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=JSON.parse(t);qc.isObject(e)?(n.value=e,n.type="Object"):r.log("原始数据 JSON 类型解析异常",t)})),BOOLEAN:function(t){"true"===t?(n.value=!0,n.type="Boolean"):"false"===t?(n.value=!1,n.type="Boolean"):r.log("原始数据 BOOLEAN 类型解析异常",t)}};try{i[e]?i[e](t):r.log("试验数据类型解析失败",e,t)}catch(n){r.log(n,t,e)}return n},wl.prototype.dealResponseData=function(t,e){qc.isObject(t)?"SUCCESS"===t.status?qc.isArray(t.results)&&(this.originalData=t.results,this.updateLocalData(t.results,e)):"FAILED"===t.status&&this.log("获取试验失败error_type"+t.error_type+",error"+t.error):this.log("试验数据解析失败response ",t)},wl.prototype.updateLocalData=function(t,e){this.analyzeData(t),this.updateStorage(e),this.log("更新试验数据成功")},wl.prototype.updateStorage=function(t){var e=(new Date).getTime();cl({data:this.originalData,updateTime:e,triggerList:this.triggerList,distinct_id:t||this.sd.store.getDistinctId()},this.state.storage.name,this.para.encrypt_cookie),this.updateTime=e},wl.prototype.analyzeData=function(t){if(!qc.isArray(t))return this.log("解析——数据格式错误",t),!1;this.link.resolve(t),this.vabtest.resolve(t),this.resolveVariables(t)},wl.prototype.triggerHandle=function(t,e){var r=qc.isObject(e)&&qc.isObject(e.properties)?e.properties:{},n=this.trackTestTrigger(t,r),i=t.abtest_experiment_id;if(qc.isString(i)){var s=this.sd.store.getDistinctId();this.triggerList[s]&&qc.isArray(this.triggerList[s])?(this.triggerList[s].push(i),this.triggerList[s]=qc.unique(this.triggerList[s])):this.triggerList[s]=[i],this.updateStorage()}return n},wl.prototype.trackTestTrigger=function(t,e){var r=this.sd.store.getDistinctId(),n=!0,i=!0;if(e=qc.isObject(e)?e:{},!t.is_white_list){this.triggerList&&qc.isObject(this.triggerList)&&("{}"!==_i(this.triggerList)&&(i=!1),this.triggerList[r]&&qc.isArray(this.triggerList[r])&&qc.each(this.triggerList[r],(function(e){e===t.abtest_experiment_id&&(n=!1)})));var s={$abtest_experiment_id:t.abtest_experiment_id,$abtest_experiment_group_id:t.abtest_experiment_group_id};if(this.para.collect_bridge_status&&(s.$sdk_bridge_status=this.bridgeState),i){var o="web_abtesting:"+this.lib_version;s.$lib_plugin_version=[o]}var a=qc.extend(s,e);return n&&this.sd.track("$ABTestTrigger",a),this.sd.track("WebABTestTrigger",a),n}},wl.prototype.checkSADebug=function(){var t=this,e=qc.getQueryParam(location.href,"sensors_abtest_url"),r=qc.getQueryParam(location.href,"feature_code"),n=+qc.getQueryParam(location.href,"account_id");if(e.length&&r.length&&qc.isNumber(n)&&0!==n){var i={distinct_id:this.sd.store.getDistinctId(),feature_code:r,account_id:n};this.sd._.ajax({url:e,type:"POST",data:_i(i),credentials:!1,contentType:"application/json",timeout:this.para.timeout_milliseconds,cors:!0,success:function(){},error:function(e){t.log("distinct_id发送失败,err:",e)}})}},wl.prototype.initMethods=function(t){var e=this;qc.each(["asyncFetchABTest","fastFetchABTest","fetchCacheABTest"],(function(r){e[r]=function(){t.methods[r].apply(t,arguments)}}))},Tl.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(r){t&&("ab_bridge_ok"===e.SensorsABTest.bridgeState&&(r=r.data),qc.isObject(r)&&"SUCCESS"===r.status&&qc.isArray(r.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,r=t||this.SensorsABTest.para.update_interval;this.clearFetchTimer(this.timer),this.timer=setTimeout((function(){e.getServerData()}),r)},start:function(t){var e=null,r=(new Date).getTime(),n=ul(this.SensorsABTest.state.storage.name),i=this.SensorsABTest.sd.store.getDistinctId();if(n&&qc.isObject(n)&&n.distinct_id===i)if(e=n.updateTime,t&&(this.SensorsABTest.originalData=n.data,e&&qc.isNumber(e)&&r-e>0&&r-e<this.SensorsABTest.para.session_limit&&qc.isObject(n.triggerList)&&(this.SensorsABTest.triggerList=n.triggerList),this.SensorsABTest.analyzeData(n.data)),e&&qc.isNumber(e)&&r-e>0&&r-e<this.SensorsABTest.para.update_interval){this.SensorsABTest.log("数据不更新",e,r);var s=r-e,o=this.SensorsABTest.para.update_interval-s;this.setNextFetch(o)}else this.SensorsABTest.log("缓存数据超时",e,r),this.getServerData(t);else(e=this.SensorsABTest.updateTime)&&qc.isNumber(e)&&r-e>0&&r-e<this.SensorsABTest.para.update_interval?this.SensorsABTest.log("数据不更新",e,r):this.getServerData(t)},stop:function(){this.SensorsABTest.log("清空拉取定时器"),this.clearFetchTimer()},clearFetchTimer:function(){clearTimeout(this.timer),this.timer=null}},xl.prototype={init:function(t,e){var r=this;this.SensorsABTest.fetchData.init(t,e),this.SensorsABTest.initMethods(e),function(t){({visibleHandle:qc.isFunction(t.visible)?t.visible:function(){},hiddenHandler:qc.isFunction(t.hidden)?t.hidden:function(){},visibilityChange:null,hidden:null,isSupport:function(){return void 0!==document[this.hidden]},init:function(){void 0!==document.hidden?(this.hidden="hidden",this.visibilityChange="visibilitychange"):void 0!==document.mozHidden?(this.hidden="mozHidden",this.visibilityChange="mozvisibilitychange"):void 0!==document.msHidden?(this.hidden="msHidden",this.visibilityChange="msvisibilitychange"):void 0!==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))}}).init()}({visible:function(){r.SensorsABTest.log("页面显示"),r.SensorsABTest.fetchData.start()},hidden:function(){r.SensorsABTest.fetchData.stop()}}),this.SensorsABTest.sd.events.on("changeDistinctId",(function(t){r.SensorsABTest.localdata={},r.SensorsABTest.originalData=[],r.SensorsABTest.vabtest.restoreElements(),r.SensorsABTest.updateStorage(),r.SensorsABTest.fetchData.getServerData()})),this.SensorsABTest.sd.events.isReady()}},wl.prototype.init=function(t,e){return this.sd?(this.log("A/B Testing SDK 重复初始化!只有第一次初始化有效!"),!1):function(t){return qc.isObject(t)&&qc.isObject(t.readyState)&&t.readyState.state>=3?t:null}(t)?(this.sd=t,qc.isObject(e)?(qc.storage.isSupport()||this.log("localstorage异常"),this.abtestingPara=e,this.fetchData=new Tl(this),this.store=new xl(this),void this.initTest()):(this.log("A/B Testing SDK 初始化失败,请传入正确的初始化参数!para:",e),!1)):(this.log("A/B Testing 初始化失败,Web JS SDK 没有初始化完成"),!1)},wl.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)},wl.prototype.log=function(){return qc.isString(arguments[0])&&(arguments[0]="sensorsabtest————"+arguments[0]),this.sd&&this.sd.log.apply(this,arguments)};var kl=new wl;kl.__constructor__=wl,window.SensorsDataWebJSSDKPlugin&&"[object Object]"==Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.SensorsABTest=window.SensorsDataWebJSSDKPlugin.SensorsABTest||kl:window.SensorsDataWebJSSDKPlugin={SensorsABTest:kl};var Bl="",Ol="",jl=function(){return Ol},El=function(t){Bl=t},Pl=to.exports("unscopables"),Dl=Array.prototype;null==Dl[Pl]&&is(Dl,Pl,{});var Ll=Ls,Rl=hu(5),Nl="find",Fl=!0;function Il(t,e){void 0===e&&(e={});for(var r=function(t){for(var e=[],r=0;r<t.length;){var n=t[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)e.push({type:"CHAR",index:r,value:t[r++]});else{var i=1,s="";if("?"===t[a=r+1])throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<t.length;)if("\\"!==t[a]){if(")"===t[a]){if(0==--i){a++;break}}else if("("===t[a]&&(i++,"?"!==t[a+1]))throw new TypeError("Capturing groups are not allowed at "+a);s+=t[a++]}else s+=t[a++]+t[a++];if(i)throw new TypeError("Unbalanced pattern at "+r);if(!s)throw new TypeError("Missing pattern at "+r);e.push({type:"PATTERN",index:r,value:s}),r=a}else{for(var o="",a=r+1;a<t.length;){var u=t.charCodeAt(a);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;o+=t[a++]}if(!o)throw new TypeError("Missing parameter name at "+r);e.push({type:"NAME",index:r,value:o}),r=a}else e.push({type:"CLOSE",index:r,value:t[r++]});else e.push({type:"OPEN",index:r,value:t[r++]});else e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});else e.push({type:"MODIFIER",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}(t),n=e.prefixes,i=void 0===n?"./":n,s="[^"+Cl(e.delimiter||"/#?")+"]+?",o=[],a=0,u=0,c="",l=function(t){if(u<r.length&&r[u].type===t)return r[u++].value},f=function(t){var e=l(t);if(void 0!==e)return e;var n=r[u],i=n.type,s=n.index;throw new TypeError("Unexpected "+i+" at "+s+", expected "+t)},p=function(){for(var t,e="";t=l("CHAR")||l("ESCAPED_CHAR");)e+=t;return e};u<r.length;){var h=l("CHAR"),d=l("NAME"),v=l("PATTERN");if(d||v){var g=h||"";-1===i.indexOf(g)&&(c+=g,g=""),c&&(o.push(c),c=""),o.push({name:d||a++,prefix:g,suffix:"",pattern:v||s,modifier:l("MODIFIER")||""})}else{var _=h||l("ESCAPED_CHAR");if(_)c+=_;else if(c&&(o.push(c),c=""),l("OPEN")){g=p();var y=l("NAME")||"",m=l("PATTERN")||"",b=p();f("CLOSE"),o.push({name:y||(m?a++:""),pattern:y&&!m?s:m,prefix:g,suffix:b,modifier:l("MODIFIER")||""})}else f("END")}}return o}function Cl(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Ml(t){return t&&t.sensitive?"":"i"}function Ul(t,e,r){return function(t,e,r){void 0===r&&(r={});for(var n=r.strict,i=void 0!==n&&n,s=r.start,o=void 0===s||s,a=r.end,u=void 0===a||a,c=r.encode,l=void 0===c?function(t){return t}:c,f="["+Cl(r.endsWith||"")+"]|$",p="["+Cl(r.delimiter||"/#?")+"]",h=o?"^":"",d=0,v=t;d<v.length;d++){var g=v[d];if("string"==typeof g)h+=Cl(l(g));else{var _=Cl(l(g.prefix)),y=Cl(l(g.suffix));if(g.pattern)if(e&&e.push(g),_||y)if("+"===g.modifier||"*"===g.modifier){var m="*"===g.modifier?"?":"";h+="(?:"+_+"((?:"+g.pattern+")(?:"+y+_+"(?:"+g.pattern+"))*)"+y+")"+m}else h+="(?:"+_+"("+g.pattern+")"+y+")"+g.modifier;else h+="("+g.pattern+")"+g.modifier;else h+="(?:"+_+y+")"+g.modifier}}if(u)i||(h+=p+"?"),h+=r.endsWith?"(?="+f+")":"$";else{var b=t[t.length-1],S="string"==typeof b?p.indexOf(b[b.length-1])>-1:void 0===b;i||(h+="(?:"+p+"(?="+f+"))?"),S||(h+="(?="+p+"|"+f+")")}return new RegExp(h,Ml(r))}(Il(t,r),e,r)}function zl(t,e,r){return t instanceof RegExp?function(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(t.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,r){var n=t.map((function(t){return zl(t,e,r).source}));return new RegExp("(?:"+n.join("|")+")",Ml(r))}(t,e,r):Ul(t,e,r)}Nl in[]&&Array(1).find((function(){Fl=!1})),Ll(Ll.P+Ll.F*Fl,"Array",{find:function(t){return Rl(this,t,arguments.length>1?arguments[1]:void 0)}}),function(t){Dl[Pl][t]=!0}(Nl);var Hl=function(){return window.navigator.userAgent.indexOf("KuCoin")>-1},$l=function(t){return!!di(t)&&!!t.some((function(t){return di(t)}))};function Vl(){}var Kl="",Wl={},Gl=function(){return console.warn("[kc sensors]: invalid spm argument, please pass spm argument like [blockId(String), eleId(String)] or [pageId(String), [blockId(String), eleId(String)]]")},ql=function(t,e){return void 0===e&&(e=!1),!(!di(t)||2!==t.length||!t.every((function(t){return"string"==typeof t})))||(e&&Gl(),!1)},Jl=function(t){if(di(t)){if($l(t)){var e=t[0],r=t[1];return!("string"!=typeof e||!ql(r))||(Gl(),!1)}return ql(t,!0)}return Gl(),!1},Ql=function(t){Kl=t},Xl=function(){return Kl},Zl=function(t){Wl=t},Yl=function(t){var e=Et(Wl),r=t||window.location.pathname,n=r.split("/")[1],i=fi.find((function(t){return t===n}));if(i){var s=new RegExp("^/"+i+"/?");r=r.replace(s,"/")}r="/"===r?r:r.replace(/\/$/,"");var o=e.find((function(t){return zl(t).test(r)}));return o?Wl[o]:""},tf=function(t){var e=t||window.location.search;try{return new URLSearchParams(e).get("spm")||""}catch(t){return""}},ef=function(t){if($l(t)){var e=t[0],r=t[1];return Kl+"."+(Yl()||e)+"."+r.join(".")}return Kl+"."+Yl()+"."+t.join(".")},rf=function(t){return function(e){if("$pageview"===e.event)return t()}},nf=Object.freeze({__proto__:null,validateSpm:Jl,setSiteId:Ql,getSiteId:Xl,setPageIdMap:Zl,getPageId:Yl,getPreSpmCode:tf,compose:ef,wrapPv:rf});Tt(Tt.S,"Date",{now:function(){return(new Date).getTime()}});var sf=k.exports.Date.now,of=function(){function t(){this.cache={}}var e=t.prototype;return e.on=function(t,e){this.cache[t]=this.cache[t]||[];var r=this.cache[t];return-1===r.indexOf(e)&&r.push(e),this},e.emit=function(t){for(var e=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var s=this.cache[t];return di(s)&&s.forEach((function(t){t.apply(e,n)})),this},e.off=function(t,e){var r=this.cache[t];if(di(r))if(e){var n=r.indexOf(e);-1!==n&&r.splice(n,1)}else r.length=0;return this},t}(),af=!1,uf=new of;function cf(t){var e=window.history[t];return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var s=e.apply(this,n),o=new window.Event(t.toLowerCase());return o.arguments=n,window.dispatchEvent(o),s}}window.history.pushState=cf("pushState"),window.history.replaceState=cf("replaceState"),window.addEventListener("load",(function(t){uf.emit("$enter",t)})),window.addEventListener("beforeunload",(function(t){af=!0,uf.emit("$leave",t)})),document.addEventListener("visibilitychange",(function(t){"visible"===document.visibilityState&&uf.emit("$enter",t),"hidden"===document.visibilityState&&(af||uf.emit("$leave",t))}));["pushstate","popstate","replacestate"].forEach((function(t){window.addEventListener(t,(function(t){uf.emit("$leave",t),uf.emit("$enter",t)}))}));var lf={t0:sf(),originPathname:window.location.pathname,originSearch:window.location.search},ff=function(){lf.t0=sf(),lf.originPathname=window.location.pathname,lf.originSearch=window.location.search},pf=function(){window.sensors.track("web_page_leave",{pre_spm_id:tf(lf.originSearch),site_id:Xl(),page_id:Yl(lf.originPathname),event_duration:(sf()-lf.t0)/1e3})};var hf=["env","send_url","abtest_url","page_view","web_click","web_stay","web_page_leave","log","spa"],df=null,vf=Y,gf=hi,_f=Jt.exports("species"),yf=function(t){var e;return gf(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!gf(e.prototype)||(e=void 0),vf(e)&&null===(e=e[_f])&&(e=void 0)),void 0===e?Array:e},mf=X,bf=c,Sf=n,Af=y,wf=function(t,e){return new(yf(t))(e)},Tf=function(t,e){var r=1==t,n=2==t,i=3==t,s=4==t,o=6==t,a=5==t||o,u=e||wf;return function(e,c,l){for(var f,p,h=Sf(e),d=bf(h),v=mf(c,l,3),g=Af(d.length),_=0,y=r?u(e,g):n?u(e,0):void 0;g>_;_++)if((a||_ in d)&&(p=v(f=d[_],_,h),t))if(r)y[_]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return _;case 2:y.push(f)}else if(s)return!1;return o?-1:i||s?s:y}},xf={exports:{}},kf=I("meta"),Bf=Y,Of=s,jf=Z.f,Ef=0,Pf=Object.isExtensible||function(){return!0},Df=!rt((function(){return Pf(Object.preventExtensions({}))})),Lf=function(t){jf(t,kf,{value:{i:"O"+ ++Ef,w:{}}})},Rf=xf.exports={KEY:kf,NEED:!1,fastKey:function(t,e){if(!Bf(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Of(t,kf)){if(!Pf(t))return"F";if(!e)return"E";Lf(t)}return t[kf].i},getWeak:function(t,e){if(!Of(t,kf)){if(!Pf(t))return!0;if(!e)return!1;Lf(t)}return t[kf].w},onFreeze:function(t){return Df&&Rf.NEED&&Pf(t)&&!Of(t,kf)&&Lf(t),t}},Nf=Y,Ff=function(t,e){if(!Nf(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},If=qr,Cf=xf.exports.getWeak,Mf=et,Uf=Y,zf=$e,Hf=Ve.exports,$f=Tf,Vf=s,Kf=Ff,Wf=$f(5),Gf=$f(6),qf=0,Jf=function(t){return t._l||(t._l=new Qf)},Qf=function(){this.a=[]},Xf=function(t,e){return Wf(t.a,(function(t){return t[0]===e}))};Qf.prototype={get:function(t){var e=Xf(this,t);if(e)return e[1]},has:function(t){return!!Xf(this,t)},set:function(t,e){var r=Xf(this,t);r?r[1]=e:this.a.push([t,e])},delete:function(t){var e=Gf(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}};var Zf,Yf={getConstructor:function(t,e,r,n){var i=t((function(t,s){zf(t,i,e,"_i"),t._t=e,t._i=qf++,t._l=void 0,null!=s&&Hf(s,r,t[n],t)}));return If(i.prototype,{delete:function(t){if(!Uf(t))return!1;var r=Cf(t);return!0===r?Jf(Kf(this,e)).delete(t):r&&Vf(r,this._i)&&delete r[this._i]},has:function(t){if(!Uf(t))return!1;var r=Cf(t);return!0===r?Jf(Kf(this,e)).has(t):r&&Vf(r,this._i)}}),i},def:function(t,e,r){var n=Cf(Mf(e),!0);return!0===n?Jf(t).set(e,r):n[t._i]=r,t},ufstore:Jf},tp=O.exports,ep=Tt,rp=xf.exports,np=rt,ip=_t,sp=qr,op=Ve.exports,ap=$e,up=Y,cp=ne,lp=Z.f,fp=Tf(0),pp=nt,hp=O.exports,dp=Tf(0),vp=Rt,gp=xf.exports,_p=ni,yp=Yf,mp=Y,bp=Ff,Sp=Ff,Ap=!hp.ActiveXObject&&"ActiveXObject"in hp,wp="WeakMap",Tp=gp.getWeak,xp=Object.isExtensible,kp=yp.ufstore,Bp=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},Op={get:function(t){if(mp(t)){var e=Tp(t);return!0===e?kp(bp(this,wp)).get(t):e?e[this._i]:void 0}},set:function(t,e){return yp.def(bp(this,wp),t,e)}},jp=function(t,e,r,n,i,s){var o=tp[t],a=o,u=i?"set":"add",c=a&&a.prototype,l={};return pp&&"function"==typeof a&&(s||c.forEach&&!np((function(){(new a).entries().next()})))?(a=e((function(e,r){ap(e,a,t,"_c"),e._c=new o,null!=r&&op(r,i,e[u],e)})),fp("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in c)||s&&"clear"==t||ip(a.prototype,t,(function(r,n){if(ap(this,a,t),!e&&s&&!up(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i}))})),s||lp(a.prototype,"size",{get:function(){return this._c.size}})):(a=n.getConstructor(e,t,i,u),sp(a.prototype,r),rp.NEED=!0),cp(a,t),l[t]=a,ep(ep.G+ep.W+ep.F,l),s||n.setStrong(a,t,i),a}(wp,Bp,Op,yp,!0,!0);Sp&&Ap&&(_p((Zf=yp.getConstructor(Bp,wp)).prototype,Op),gp.NEED=!0,dp(["delete","has","get","set"],(function(t){var e=jp.prototype,r=e[t];vp(e,t,(function(e,n){if(mp(e)&&!xp(e)){this._f||(this._f=new Zf);var i=this._f[t](e,n);return"set"==t?this:i}return r.call(this,e,n)}))})));var Ep;Ep="WeakMap",Tt(Tt.S,Ep,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}});var Pp=Tt,Dp=J,Lp=X,Rp=Ve.exports;!function(t){Pp(Pp.S,t,{from:function(t){var e,r,n,i,s=arguments[1];return Dp(this),(e=void 0!==s)&&Dp(s),null==t?new this:(r=[],e?(n=0,i=Lp(s,arguments[2],2),Rp(t,!1,(function(t){r.push(i(t,n++))}))):Rp(t,!1,r.push,r),new this(r))}})}("WeakMap");var Np=k.exports.WeakMap;Tt(Tt.S,"Object",{create:qt});var Fp=k.exports.Object,Ip=function(t,e){return Fp.create(t,e)};var Cp,Mp,Up=Function.prototype,zp=Object.prototype,Hp=Up.toString,$p=zp.hasOwnProperty,Vp=Hp.call(Object),Kp=zp.toString,Wp=(Cp=Object.getPrototypeOf,Mp=Object,function(t){return Cp(Mp(t))});var Gp=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=Kp.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=Wp(t);if(null===e)return!0;var r=$p.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Hp.call(r)==Vp},qp=["spm"],Jp={sensors:window.sensors,init:function(t,e,r){var n=t.env,i=t.send_url,s=void 0===i?null:i,o=t.abtest_url,a=void 0===o?null:o,u=t.page_view,c=void 0===u||u,l=t.web_click,f=void 0!==l&&l,p=t.web_stay,h=void 0!==p&&p,d=t.web_page_leave,v=void 0===d||d,g=t.log,_=void 0===g||g,y=t.spa,m=void 0===y||y,b=Pt(t,hf);void 0===r&&(r={});var S="https://bigdata-scfx-push.kucoin.plus/sa?project=default";n===li&&(S="https://bigdata-scfx-push.kucoin.plus/sa?project=production"),"string"==typeof proxy_url&&(S=s);var A=n===li?"https://assets3.staticimg.com/sensors/1.2.0/sensorsdata.min.js":"https://assets-v2.kucoin.net/common-statics/sensors/1.2.0/sensorsdata.min.js";return Ql(e),Zl(r),function(t){var e=t.sdk_url,r=t.name,n=window,i=document,s="script",o=null,a=null;if(void 0!==n.sensorsDataAnalytic201505)return!1;n.sensorsDataAnalytic201505=r,n[r]=n[r]||function(t){return function(){(n[r]._q=n[r]._q||[]).push([t,arguments])}};for(var u=["use","track","quick","register","registerPage","registerOnce","trackSignup","trackAbtest","setProfile","setOnceProfile","appendProfile","incrementProfile","deleteProfile","unsetProfile","identify","login","logout","trackLink","clearAllRegister","getAppStatus","setItem","deleteItem"],c=0;c<u.length;c++)n[r][u[c]]=n[r].call(null,u[c]);n[r]._t||(o=i.createElement(s),a=i.getElementsByTagName(s)[0],o.async=1,o.src=e,o.setAttribute("charset","UTF-8"),n[r].para=t,a.parentNode.insertBefore(o,a))}(ai({sdk_url:A,name:"sensors",server_url:S,send_type:"beacon",show_log:_&&"development"===n,is_track_single_page:m,is_track_device_id:!0,heatmap:{clickmap:f?ui:ci,scroll_notice_map:h?ui:ci},app_js_bridge:Hl()},b)),a&&(df=window.sensors.use("SensorsABTest",{url:a,multilink:!1})),function(t){var e,r,n,i,s;return void 0===t&&(t={app_name:""}),t.app_name||console.warn("[kc sensors]: please set the public property app_name (package.json name)"),window.sensors.registerPage(si({},t,{is_login:function(){return!!Bl},is_vip:function(){var t=jl();return!!t&&"0"!==t},vip_level:function(){return jl()},pre_spm_id:rf(tf),site_id:rf(Xl),page_id:rf(Yl),JS_env:(e=window.navigator.userAgent,r=!!e.match(/AppleWebKit.*Mobile.*/),n=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),i=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,s=Hl(),r?s&&i?"androidApp":s&&n?"iOSApp":!s&&i?"androidBrowser":!s&&n?"iOSBrowser":"pcBrowser":"pcBrowser")})),c&&window.sensors.quick("autoTrack"),v&&(uf.on("$enter",ff),uf.on("$leave",pf)),window.sensors}},trackClick:function(t,e){Jl(t)&&window.sensors.track("page_click",si({spm_id:ef(t)},e))},observeExpose:function(t){var e=new Np,r=Ip({observe:Vl,unobserve:Vl});return IntersectionObserver&&(r=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var r=e.get(t.target);if("function"==typeof r){var n=r();if(Gp(n)&&Jl(n.spm)){var i=n.spm,s=Pt(n,qp);window.sensors.track("expose",si({spm_id:ef(i)},s))}}}}))}),t)),function(t,n){return function(t){try{return t instanceof HTMLElement}catch(e){return"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}}(t)&&"function"==typeof n&&(e.set(t,n),r.observe(t)),function(){try{e.delete(t),r.unobserve(t)}catch(t){}}}},getAnonymousID:function(){return window.sensors.quick("getAnonymousID")},login:function(t,e){void 0===t&&(t=""),void 0===e&&(e="0"),El(t),Ol=e.toString(),t&&window.sensors.login(t)},track:function(){var t;return(t=window.sensors).track.apply(t,arguments)},spm:nf,fastFetchABTest:function(t){return new Gn((function(e,r){df||r(new Error("abtest init error, make sure the init function is called and configure the abtest url")),df.fastFetchABTest(si({},t,{callback:function(t){e(t)}}))}))}};return Jp}));