PageSourceSearch

https://nimg1.hicustom.com/static/common/[email protected]/js-api.umd.js?v=26.09.18

js hicustom.com collected 2026-09-26 08:31:44 UTC 315,976 bytes, 3 lines download raw bytes

1var __defProp=Object.defineProperty,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,r),r);!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).libSdk={})}(this,(function(e){"use strict";var t="object"==typeof global&&global&&global.Object===Object&&global,r="object"==typeof self&&self&&self.Object===Object&&self,n=t||r||Function("return this")(),i=n.Symbol,a=Object.prototype,s=a.hasOwnProperty,c=a.toString,l=i?i.toStringTag:void 0;var u=Object.prototype.toString;var p=i?i.toStringTag:void 0;function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?function(e){var t=s.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(Wc){}var i=c.call(e);return n&&(t?e[l]=r:delete e[l]),i}(e):function(e){return u.call(e)}(e)}function f(e){return null!=e&&"object"==typeof e}var g=Array.isArray,h=/\s/;var _=/^\s+/;function v(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&h.test(e.charAt(t)););return t}(e)+1).replace(_,""):e}function y(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var b=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,S=/^0o[0-7]+$/i,k=parseInt;function E(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||f(e)&&"[object Symbol]"==d(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=v(e);var r=w.test(e);return r||S.test(e)?k(e.slice(2),r?2:8):b.test(e)?NaN:+e}function P(e){if(!y(e))return!1;var t=d(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var O,j=n["__core-js_shared__"],A=(O=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"";var I=Function.prototype.toString;function T(e){if(null!=e){try{return I.call(e)}catch(Wc){}try{return e+""}catch(Wc){}}return""}var C=/^\[object .+?Constructor\]$/,x=Function.prototype,N=Object.prototype,L=x.toString,D=N.hasOwnProperty,R=RegExp("^"+L.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U(e){return!(!y(e)||(t=e,A&&A in t))&&(P(e)?R:C).test(T(e));var t}function B(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return U(r)?r:void 0}var $=B(n,"WeakMap"),M=Object.create,F=function(){function e(){}return function(t){if(!y(t))return{};if(M)return M(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var H=function(){try{var e=B(Object,"defineProperty");return e({},"",{}),e}catch(Wc){}}();var q=/^(?:0|[1-9]\d*)$/;function V(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&q.test(e))&&e>-1&&e%1==0&&e<t}function z(e,t,r){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function J(e,t){return e===t||e!=e&&t!=t}var W=Object.prototype.hasOwnProperty;function K(e,t,r){var n=e[t];W.call(e,t)&&J(n,r)&&(void 0!==r||t in e)||z(e,t,r)}function G(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),i?z(r,s,c):K(r,s,c)}return r}function Q(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function X(e){return null!=e&&Q(e.length)&&!P(e)}var Y=Object.prototype;function Z(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ee(e){return f(e)&&"[object Arguments]"==d(e)}var te=Object.prototype,re=te.hasOwnProperty,ne=te.propertyIsEnumerable,ie=ee(function(){return arguments}())?ee:function(e){return f(e)&&re.call(e,"callee")&&!ne.call(e,"callee")},oe=ie;var ae="object"==typeof e&&e&&!e.nodeType&&e,se=ae&&"object"==typeof module&&module&&!module.nodeType&&module,ce=se&&se.exports===ae?n.Buffer:void 0,le=(ce?ce.isBuffer:void 0)||function(){return!1},ue={};function pe(e){return function(t){return e(t)}}
vendor: 6,423 bytes, line 1
1ue["[object Float32Array]"]=ue["[object Float64Array]"]=ue["[object Int8Array]"]=ue["[object Int16Array]"]=ue["[object Int32Array]"]=ue["[object Uint8Array]"]=ue["[object Uint8ClampedArray]"]=ue["[object Uint16Array]"]=ue["[object Uint32Array]"]=!0,ue["[object Arguments]"]=ue["[object Array]"]=ue["[object ArrayBuffer]"]=ue["[object Boolean]"]=ue["[object DataView]"]=ue["[object Date]"]=ue["[object Error]"]=ue["[object Function]"]=ue["[object Map]"]=ue["[object Number]"]=ue["[object Object]"]=ue["[object RegExp]"]=ue["[object Set]"]=ue["[object String]"]=ue["[object WeakMap]"]=!1;var de="object"==typeof e&&e&&!e.nodeType&&e,fe=de&&"object"==typeof module&&module&&!module.nodeType&&module,ge=fe&&fe.exports===de&&t.process,he=function(){try{var e=fe&&fe.require&&fe.require("util").types;return e||ge&&ge.binding&&ge.binding("util")}catch(Wc){}}(),_e=he&&he.isTypedArray,me=_e?pe(_e):function(e){return f(e)&&Q(e.length)&&!!ue[d(e)]},ve=me,ye=Object.prototype.hasOwnProperty;function be(e,t){var r=g(e),n=!r&&oe(e),i=!r&&!n&&le(e),o=!r&&!n&&!i&&ve(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var l in e)!t&&!ye.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||V(l,c))||s.push(l);return s}function we(e,t){return function(r){return e(t(r))}}var Se=we(Object.keys,Object),ke=Object.prototype.hasOwnProperty;function Ee(e){return X(e)?be(e):function(e){if(!Z(e))return Se(e);var t=[];for(var r in Object(e))ke.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var Pe=Object.prototype.hasOwnProperty;function Oe(e){if(!y(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Z(e),r=[];for(var n in e)("constructor"!=n||!t&&Pe.call(e,n))&&r.push(n);return r}function je(e){return X(e)?be(e,!0):Oe(e)}var Ae=B(Object,"create");var Ie=Object.prototype.hasOwnProperty;var Te=Object.prototype.hasOwnProperty;function Ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xe(e,t){for(var r=e.length;r--;)if(J(e[r][0],t))return r;return-1}Ce.prototype.clear=function(){this.__data__=Ae?Ae(null):{},this.size=0},Ce.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ce.prototype.get=function(e){var t=this.__data__;if(Ae){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Ie.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return Ae?void 0!==t[e]:Te.call(t,e)},Ce.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ae&&void 0===t?"__lodash_hash_undefined__":t,this};var Ne=Array.prototype.splice;function Le(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Le.prototype.clear=function(){this.__data__=[],this.size=0},Le.prototype.delete=function(e){var t=this.__data__,r=xe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ne.call(t,r,1),--this.size,!0)},Le.prototype.get=function(e){var t=this.__data__,r=xe(t,e);return r<0?void 0:t[r][1]},Le.prototype.has=function(e){return xe(this.__data__,e)>-1},Le.prototype.set=function(e,t){var r=this.__data__,n=xe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var De=B(n,"Map");function Re(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Ue(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Be(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}Ue.prototype.clear=function(){this.size=0,this.__data__={hash:new Ce,map:new(De||Le),string:new Ce}},Ue.prototype.delete=function(e){var t=Re(this,e).delete(e);return this.size-=t?1:0,t},Ue.prototype.get=function(e){return Re(this,e).get(e)},Ue.prototype.has=function(e){return Re(this,e).has(e)},Ue.prototype.set=function(e,t){var r=Re(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var $e=we(Object.getPrototypeOf,Object);function Me(e){var t=this.__data__=new Le(e);this.size=t.size}Me.prototype.clear=function(){this.__data__=new Le,this.size=0},Me.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Me.prototype.get=function(e){return this.__data__.get(e)},Me.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Le){var n=r.__data__;if(!De||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ue(n)}return r.set(e,t),this.size=r.size,this};var Fe="object"==typeof e&&e&&!e.nodeType&&e,He=Fe&&"object"==typeof module&&module&&!module.nodeType&&module,qe=He&&He.exports===Fe?n.Buffer:void 0,Ve=qe?qe.allocUnsafe:void 0;function ze(){return[]}var Je=Object.prototype.propertyIsEnumerable,We=Object.getOwnPropertySymbols,Ke=We?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}(We(e),(function(t){return Je.call(e,t)})))}:ze,Ge=Ke;var Qe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Be(t,Ge(e)),e=$e(e);return t}:ze;function Xe(e,t,r){var n=t(e);return g(e)?n:Be(n,r(e))}function Ye(e){return Xe(e,Ee,Ge)}function Ze(e){return Xe(e,je,Qe)}var et=B(n,"DataView"),tt=B(n,"Promise"),rt=B(n,"Set"),nt="[object Map]",it="[object Promise]",ot="[object Set]",at="[object WeakMap]",st="[object DataView]",ct=T(et),lt=T(De),ut=T(tt),pt=T(rt),dt=T($),ft=d;(et&&ft(new et(new ArrayBuffer(1)))!=st||De&&ft(new De)!=nt||tt&&ft(tt.resolve())!=it||rt&&ft(new rt)!=ot||$&&ft(new $)!=at)&&(ft=function(e){var t=d(e),r="[object Object]"==t?e.constructor:void 0,n=r?T(r):"";if(n)switch(n){case ct:return st;case lt:return nt;case ut:return it;case pt:return ot;case dt:return at}return t});var gt=ft,ht=Object.prototype.hasOwnProperty;var _t=n.Uint8Array;function mt(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}var vt=/\w*$/;var yt=i?i.prototype:void 0,bt=yt?yt.valueOf:void 0;function wt(e,t,r){var n,i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return mt(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?mt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?mt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(o=new(i=e).constructor(i.source,vt.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return n=e,bt?Object(bt.call(n)):{}}}var St=he&&he.isMap,kt=St?pe(St):function(e){return f(e)&&"[object Map]"==gt(e)},Et=kt;var Pt=he&&he.isSet,Ot=Pt?pe(Pt):function(e){return f(e)&&"[object Set]"==gt(e)},jt=Ot,At="[object Arguments]",It="[object Function]",Tt="[object Object]",Ct={};function xt(e,t,r,n,i,o){var a,s=1&t,c=2&t,l=4&t;if(r&&(a=i?r(e,n,i,o):r(e)),void 0!==a)return a;if(!y(e))return e;var u=g(e);if(u){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ht.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,a)}else{var p=gt(e),d=p==It||"[object GeneratorFunction]"==p;if(le(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}(e,s);if(p==Tt||p==At||d&&!i){if(a=c||d?{}:function(e){return"function"!=typeof e.constructor||Z(e)?{}:F($e(e))}(e),!s)return c?function(e,t){return G(e,Qe(e),t)}(e,function(e,t){return e&&G(t,je(t),e)}(a,e)):function(e,t){return G(e,Ge(e),t)}(e,function(e,t){return e&&G(t,Ee(t),e)}(a,e))}else{if(!Ct[p])return i?e:{};a=wt(e,p,s)}}o||(o=new Me);var f=o.get(e);if(f)return f;o.set(e,a),jt(e)?e.forEach((function(n){a.add(xt(n,t,r,n,e,o))})):Et(e)&&e.forEach((function(n,i){a.set(i,xt(n,t,r,i,e,o))}));var h=u?void 0:(l?c?Ze:Ye:c?je:Ee)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(h||e,(function(n,i){h&&(n=e[i=n]),K(a,i,xt(n,t,r,i,e,o))})),a}Ct[At]=Ct["[object Array]"]=Ct["[object ArrayBuffer]"]=Ct["[object DataView]"]=Ct["[object Boolean]"]=Ct["[object Date]"]=Ct["[object Float32Array]"]=Ct["[object Float64Array]"]=Ct["[object Int8Array]"]=Ct["[object Int16Array]"]=Ct["[object Int32Array]"]=Ct["[object Map]"]=Ct["[object Number]"]=Ct[Tt]=Ct["[object RegExp]"]=Ct["[object Set]"]=Ct["[object String]"]=Ct["[object Symbol]"]=Ct["[object Uint8Array]"]=Ct["[object Uint8ClampedArray]"]=Ct["[object Uint16Array]"]=Ct["[object Uint32Array]"]=!0,Ct["[object Error]"]=Ct[It]=Ct["[object WeakMap]"]=!1;function Nt(e){return xt(e,5)}var Lt=function(){return n.Date.now()},Dt=Math.max,Rt=Math.min;const Ut="/uc/v1/users/actions/refresh_token",Bt="UCSDK_PREFIX",$t="UCSDK_TOKEN",Mt="UCSDK_COOKIES",Ft="UCSDK_EXPIRES_TIME",Ht="UCSDK_ONLINE_HOUR",qt="UCSDK_LAST_OP
1ERATE_TIME",Vt="UCSDK_PLATFORM",zt="UCSDK_LOGIN_PLATFORM";const Jt="/uc-itg/v1/bind_mobile",Wt="/uc-itg/v1/bind_email";const Kt="/uc-itg/v1/users/actions/login_location";function Gt(e){return`/uc/v1/users/${e}`}function Qt(e){return`/uc/v1/users/${e}/extra`}
2/*! js-cookie v3.0.1 | MIT */
3function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Yt={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var Zt=function e(t,r){function n(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=Xt({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+o}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=t.read(a,s),e===s)break}catch(Wc){}}return e?n[e]:n}},remove:function(e,t){n(e,"",Xt({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Xt({},this.attributes,t))},withConverter:function(t){return e(Xt({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}(Yt,{path:"/"});function er(e,t,r){const n=nr();n?Zt.set(e,t,{...r,path:"/",domain:n}):Zt.set(e,t,{...r})}function tr(e){return Zt.get(e)}function rr(e,t){const r=nr();r?Zt.remove(e,{...t,path:"/",domain:r}):Zt.remove(e,{...t})}function nr(){const e=window.location.hostname.split("."),t=[];return t.unshift(e.pop()),t.unshift(e.pop()),`.${t.join(".")}`}function ir(){const e=localStorage.getItem($t);return e?"Bearer "+e:""}function or(e,t){localStorage.setItem($t,e),localStorage.setItem(Ht,t+"");let r=(new Date).getTime();r+=60*t*60*1e3,localStorage.setItem(Ft,r+""),er(Ht,t+"",365),er(Ft,r+"",365)}function ar(){localStorage.removeItem($t),localStorage.removeItem(Ft),localStorage.removeItem(Ht),localStorage.removeItem(qt),localStorage.removeItem(zt),localStorage.removeItem(Vt),rr(Ht),rr(Ft),rr("merchantToken"),rr(Mt,{expires:-1}),rr(qt),rr($t)}function sr(){const e=localStorage.getItem(Ht)||tr(Ht);let t=0;e&&(t=Number(e));let r=(new Date).getTime();r+=60*t*60*1e3,localStorage.setItem(Ft,r+"");const n=tr(Mt);n&&er(Mt,n,{expires:t/24}),er(Ft,r+"",365)}function cr(){const e=tr(Ft)||localStorage.getItem(Ft),t=tr(qt)||localStorage.getItem(qt),r=tr(Ht)||localStorage.getItem(Ht);if(e&&t&&r){const n=(new Date).getTime(),i=Number(e),o=Number(t),a=Number(r);return n<i&&i-n<=6e5&&o+60*a*60*1e3>=i}return!1}var lr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ur(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var pr,dr={exports:{}},fr=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},gr=fr,hr=Object.prototype.toString,_r=(pr=Object.create(null),function(e){var t=hr.call(e);return pr[t]||(pr[t]=t.slice(8,-1).toLowerCase())});function mr(e){return e=e.toLowerCase(),function(t){return _r(t)===e}}function vr(e){return Array.isArray(e)}function yr(e){return void 0===e}var br=mr("ArrayBuffer");function wr(e){return null!==e&&"object"==typeof e}function Sr(e){if("object"!==_r(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var kr=mr("Date"),Er=mr("File"),Pr=mr("Blob"),Or=mr("FileList");function jr(e){return"[object Function]"===hr.call(e)}var Ar=mr("URLSearchParams");function Ir(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),vr(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var Tr,Cr=(Tr="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return Tr&&e instanceof Tr}),xr={isArray:vr,isArrayBuffer:br,isBuffer:function(e){return null!==e&&!yr(e)&&null!==e.constructor&&!yr(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||hr.call(e)===t||jr(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&br(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:wr,isPlainObject:Sr,isUndefined:yr,isDate:kr,isFile:Er,isBlob:Pr,isFunction:jr,isStream:function(e){return wr(e)&&jr(e.pipe)},isURLSearchParams:Ar,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
vendor: 14,526 bytes, line 3
3,forEach:Ir,merge:function e(){var t={};function r(r,n){Sr(t[n])&&Sr(r)?t[n]=e(t[n],r):Sr(r)?t[n]=e({},r):vr(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)Ir(arguments[n],r);return t},extend:function(e,t,r){return Ir(t,(function(t,n){e[n]=r&&"function"==typeof t?gr(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,i,o,a={};t=t||{};do{for(i=(n=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:_r,kindOfTest:mr,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(yr(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:Cr,isFileList:Or},Nr=xr;function Lr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Dr=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Nr.isURLSearchParams(t))n=t.toString();else{var i=[];Nr.forEach(t,(function(e,t){null!=e&&(Nr.isArray(e)?t+="[]":e=[e],Nr.forEach(e,(function(e){Nr.isDate(e)?e=e.toISOString():Nr.isObject(e)&&(e=JSON.stringify(e)),i.push(Lr(t)+"="+Lr(e))})))})),n=i.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Rr=xr;function Ur(){this.handlers=[]}Ur.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},Ur.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Ur.prototype.forEach=function(e){Rr.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Br=Ur,$r=xr,Mr=xr;function Fr(e,t,r,n,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}Mr.inherits(Fr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Hr=Fr.prototype,qr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){qr[e]={value:e}})),Object.defineProperties(Fr,qr),Object.defineProperty(Hr,"isAxiosError",{value:!0}),Fr.from=function(e,t,r,n,i,o){var a=Object.create(Hr);return Mr.toFlatObject(e,a,(function(e){return e!==Error.prototype})),Fr.call(a,e.message,t,r,n,i),a.name=e.name,o&&Object.assign(a,o),a};var Vr=Fr,zr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jr=xr;var Wr=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":Jr.isDate(e)?e.toISOString():Jr.isArrayBuffer(e)||Jr.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,o){if(Jr.isPlainObject(i)||Jr.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+o);r.push(i),Jr.forEach(i,(function(r,i){if(!Jr.isUndefined(r)){var a,s=o?o+"."+i:i;if(r&&!o&&"object"==typeof r)if(Jr.endsWith(i,"{}"))r=JSON.stringify(r);else if(Jr.endsWith(i,"[]")&&(a=Jr.toArray(r)))return void a.forEach((function(e){!Jr.isUndefined(e)&&t.append(s,n(e))}));e(r,s)}})),r.pop()}else t.append(o,n(i))}(e),t},Kr=Vr,Gr=xr,Qr=Gr.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),Gr.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Gr.isString(n)&&a.push("path="+n),Gr.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Xr=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Yr=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Zr=function(e,t){return e&&!Xr(t)?Yr(e,t):t},en=xr,tn=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],rn=xr,nn=rn.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=rn.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},on=Vr;function an(e){on.call(this,null==e?"canceled":e,on.ERR_CANCELED),this.name="CanceledError"}xr.inherits(an,on,{__CANCEL__:!0});var sn=an,cn=xr,ln=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Kr("Request failed with status code "+r.status,[Kr.ERR_BAD_REQUEST,Kr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)},un=Qr,pn=Dr,dn=Zr,fn=function(e){var t,r,n,i={};return e?(en.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=en.trim(e.substr(0,n)).toLowerCase(),r=en.trim(e.substr(n+1)),t){if(i[t]&&tn.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},gn=nn,hn=zr,_n=Vr,mn=sn,vn=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},yn=function(e){return new Promise((function(t,r){var n,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}cn.isFormData(i)&&cn.isStandardBrowserEnv()&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u)}var p=dn(e.baseURL,e.url);function d(){if(c){var n="getAllResponseHeaders"in c?fn(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};ln((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),pn(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(new _n("Request aborted",_n.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new _n("Network Error",_n.ERR_NETWORK,e,c,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||hn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new _n(t,n.clarifyTimeoutError?_n.ETIMEDOUT:_n.ECONNABORTED,e,c)),c=null},cn.isStandardBrowserEnv()){var f=(e.withCredentials||gn(p))&&e.xsrfCookieName?un.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in c&&cn.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)})),cn.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new mn:e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),i||(i=null);var g=vn(p);g&&-1===["http","https","file"].indexOf(g)?r(new _n("Unsupported protocol "+g+":",_n.ERR_BAD_REQUEST,e)):c.send(i)}))},bn=xr,wn=function(e,t){$r.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Sn=Vr,kn=Wr,En={"Content-Type":"application/x-www-form-urlencoded"};function Pn(e,t){!bn.isUndefined(e)&&bn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var On,jn={transitional:zr,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(On=yn),On),transformRequest:[function(e,t){if(wn(t,"Accept"),wn(t,"Content-Type"),bn.isFormData(e)||bn.isArrayBuffer(e)||bn.isBuffer(e)||bn.isStream(e)||bn.isFile(e)||bn.isBlob(e))return e;if(bn.isArrayBufferView(e))return e.buffer;if(bn.isURLSearchParams(e))return Pn(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=bn.isObject(e),i=t&&t["Content-Type"];if((r=bn.isFileList(e))||n&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return kn(r?{"files[]":e}:e,o&&new o)}return n||"application/json"===i?(Pn(t,"application/json"),function(e,t,r){if(bn.isString(e))try{return(t||JSON.parse)(e),bn.trim(e)}catch(Wc){if("SyntaxError"!==Wc.name)throw Wc}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||jn.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&bn.isString(e)&&e.length)try{return JSON.parse(e)}catch(Wc){if(i){if("SyntaxError"===Wc.name)throw Sn.from(Wc,Sn.ERR_BAD_RESPONSE,this,null,this.response);throw Wc}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};bn.forEach(["delete","get","head"],(function(e){jn.headers[e]={}})),bn.forEach(["post","put","patch"],(function(e){jn.headers[e]=bn.merge(En)}));var An=jn,In=xr,Tn=An,Cn=function(e){return!(!e||!e.__CANCEL__)},xn=xr,Nn=function(e,t,r){var n=this||Tn;return In.forEach(r,(function(r){e=r.call(n,e,t)})),e},Ln=Cn,Dn=An,Rn=sn;function Un(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rn}var Bn=xr,$n=function(e,t){t=t||{};var r={};function n(e,t){return Bn.isPlainObject(e)&&Bn.isPlainObject(t)?Bn.merge(e,t):Bn.isPlainObject(t)?Bn.merge({},t):Bn.isArray(t)?t.slice():t}function i(r){return Bn.isUndefined(t[r])?Bn.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!Bn.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Bn.isUndefined(t[r])?Bn.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function s(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return Bn.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Bn.isUndefined(n)&&t!==s||(r[e]=n)})),r},Mn="0.27.2",Fn=Mn,Hn=Vr,qn={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){qn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Vn={};qn.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Fn+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,o){if(!1===e)throw new Hn(n(i," has been removed"+(t?" in "+t:"")),Hn.ERR_DEPRECATED);return t&&!Vn[i]&&(Vn[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var zn={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Hn("options must be an object",Hn.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new Hn("option "+o+" must be "+c,Hn.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Hn("Unknown option "+o,Hn.ERR_BAD_OPTION)}},validators:qn},Jn=xr,Wn=Dr,Kn=Br,Gn=function(e){return Un(e),e.headers=e.headers||{},e.data=Nn.call(e,e.data,e.headers,e.transformRequest),e.headers=xn.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),xn.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Dn.adapter)(e).then((function(t){return Un(e),t.data=Nn.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Ln(t)||(Un(e),t&&t.response&&(t.response.data=Nn.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Qn=$n,Xn=Zr,Yn=zn,Zn=Yn.validators;function ei(e){this.defaults=e,this.interceptors={request:new Kn,response:new Kn}}ei.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Qn(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Yn.assertOptions(r,{silentJSONParsing:Zn.transitional(Zn.boolean),forcedJSONParsing:Zn.transitional(Zn.boolean),clarifyTimeoutError:Zn.transitional(Zn.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var s=[Gn,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(p){u(p);break}}try{o=Gn(c)}catch(p){return Promise.reject(p)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},ei.prototype.getUri=function(e){e=Qn(this.defaults,e);var t=Xn(e.baseURL,e.url);return Wn(t,e.params,e.paramsSerializer)}
3,Jn.forEach(["delete","get","head","options"],(function(e){ei.prototype[e]=function(t,r){return this.request(Qn(r||{},{method:e,url:t,data:(r||{}).data}))}})),Jn.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(Qn(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ei.prototype[e]=t(),ei.prototype[e+"Form"]=t(!0)}));var ti=ei,ri=sn;function ni(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new ri(e),t(r.reason))}))}ni.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ni.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},ni.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},ni.source=function(){var e;return{token:new ni((function(t){e=t})),cancel:e}};var ii=ni,oi=xr,ai=xr,si=fr,ci=ti,li=$n;var ui=function e(t){var r=new ci(t),n=si(ci.prototype.request,r);return ai.extend(n,ci.prototype,r),ai.extend(n,r),n.create=function(r){return e(li(t,r))},n}(An);ui.Axios=ci,ui.CanceledError=sn,ui.CancelToken=ii,ui.isCancel=Cn,ui.VERSION=Mn,ui.toFormData=Wr,ui.AxiosError=Vr,ui.Cancel=ui.CanceledError,ui.all=function(e){return Promise.all(e)},ui.spread=function(e){return function(t){return e.apply(null,t)}},ui.isAxiosError=function(e){return oi.isObject(e)&&!0===e.isAxiosError},dr.exports=ui,dr.exports.default=ui;var pi,di=dr.exports,fi="undefined"!=typeof Symbol&&Symbol,gi=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},hi="Function.prototype.bind called on incompatible ",_i=Array.prototype.slice,mi=Object.prototype.toString,vi="[object Function]",yi=function(e){var t=this;if("function"!=typeof t||mi.call(t)!==vi)throw new TypeError(hi+t);for(var r,n=_i.call(arguments,1),i=function(){if(this instanceof r){var i=t.apply(this,n.concat(_i.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(_i.call(arguments)))},o=Math.max(0,t.length-n.length),a=[],s=0;s<o;s++)a.push("$"+s);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r},bi=Function.prototype.bind||yi,wi=bi.call(Function.call,Object.prototype.hasOwnProperty),Si=SyntaxError,ki=Function,Ei=TypeError,Pi=function(e){try{return ki('"use strict"; return ('+e+").constructor;")()}catch(Wc){}},Oi=Object.getOwnPropertyDescriptor;if(Oi)try{Oi({},"")}catch(Wc){Oi=null}var ji=function(){throw new Ei},Ai=Oi?function(){try{return ji}catch(e){try{return Oi(arguments,"callee").get}catch(t){return ji}}}():ji,Ii="function"==typeof fi&&"function"==typeof Symbol&&"symbol"==typeof fi("foo")&&"symbol"==typeof Symbol("bar")&&gi(),Ti=Object.getPrototypeOf||function(e){return e.__proto__},Ci={},xi="undefined"==typeof Uint8Array?pi:Ti(Uint8Array),Ni={"%AggregateError%":"undefined"==typeof AggregateError?pi:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?pi:ArrayBuffer,"%ArrayIteratorPrototype%":Ii?Ti([][Symbol.iterator]()):pi,"%AsyncFromSyncIteratorPrototype%":pi,"%AsyncFunction%":Ci,"%AsyncGenerator%":Ci,"%AsyncGeneratorFunction%":Ci,"%AsyncIteratorPrototype%":Ci,"%Atomics%":"undefined"==typeof Atomics?pi:Atomics,"%BigInt%":"undefined"==typeof BigInt?pi:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?pi:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?pi:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?pi:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?pi:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?pi:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?pi:FinalizationRegistry,"%Function%":ki,"%GeneratorFunction%":Ci,"%Int8Array%":"undefined"==typeof Int8Array?pi:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?pi:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?pi:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
3IteratorPrototype%":Ii?Ti(Ti([][Symbol.iterator]())):pi,"%JSON%":"object"==typeof JSON?JSON:pi,"%Map%":"undefined"==typeof Map?pi:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ii?Ti((new Map)[Symbol.iterator]()):pi,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?pi:Promise,"%Proxy%":"undefined"==typeof Proxy?pi:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?pi:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?pi:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ii?Ti((new Set)[Symbol.iterator]()):pi,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?pi:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ii?Ti(""[Symbol.iterator]()):pi,"%Symbol%":Ii?Symbol:pi,"%SyntaxError%":Si,"%ThrowTypeError%":Ai,"%TypedArray%":xi,"%TypeError%":Ei,"%Uint8Array%":"undefined"==typeof Uint8Array?pi:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?pi:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?pi:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?pi:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?pi:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?pi:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?pi:WeakSet};try{null.error}catch(Wc){var Li=Ti(Ti(Wc));Ni["%Error.prototype%"]=Li}var Di=function e(t){var r;if("%AsyncFunction%"===t)r=Pi("async function () {}");else if("%GeneratorFunction%"===t)r=Pi("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Pi("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=Ti(i.prototype))}return Ni[t]=r,r},Ri={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ui=bi,Bi=wi,$i=Ui.call(Function.call,Array.prototype.concat),Mi=Ui.call(Function.apply,Array.prototype.splice),Fi=Ui.call(Function.call,String.prototype.replace),Hi=Ui.call(Function.call,String.prototype.slice),qi=Ui.call(Function.call,RegExp.prototype.exec),Vi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zi=/\\(\\)?/g,Ji=function(e){var t=Hi(e,0,1),r=Hi(e,-1);if("%"===t&&"%"!==r)throw new Si("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Si("invalid intrinsic syntax, expected opening `%`");var n=[];return Fi(e,Vi,(function(e,t,r,i){n[n.length]=r?Fi(i,zi,"$1"):t||e})),n},Wi=function(e,t){var r,n=e;if(Bi(Ri,n)&&(n="%"+(r=Ri[n])[0]+"%"),Bi(Ni,n)){var i=Ni[n];if(i===Ci&&(i=Di(n)),void 0===i&&!t)throw new Ei("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new Si("intrinsic "+e+" does not exist!")},Ki=function(e,t){if("string"!=typeof e||0===e.length)throw new Ei("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Ei('"allowMissing" argument must be a boolean');if(null===qi(/^%?[^%]*%?$/,e))throw new Si("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ji(e),n=r.length>0?r[0]:"",i=Wi("%"+n+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],Mi(r,$i([0,1],c)));for(var l=1,u=!0;l<r.length;l+=1){var p=r[l],d=Hi(p,0,1),f=Hi(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===f||"'"===f||"`"===f)&&d!==f)throw new Si("property names with quotes must have matching quotes");if("constructor"!==p&&u||(s=!0),Bi(Ni,o="%"+(n+="."+p)+"%"))a=Ni[o];
vendor: 5,502 bytes, line 3
3else if(null!=a){if(!(p in a)){if(!t)throw new Ei("base intrinsic for "+e+" exists, but the property is not available.");return}if(Oi&&l+1>=r.length){var g=Oi(a,p);a=(u=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else u=Bi(a,p),a=a[p];u&&!s&&(Ni[o]=a)}}return a},Gi={exports:{}};!function(e){var t=bi,r=Ki,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(i,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(Wc){s=null}e.exports=function(e){var r=o(t,i,arguments);if(a&&s){var n=a(r,"length");n.configurable&&s(r,"length",{value:1+c(0,e.length-(arguments.length-1))})}return r};var l=function(){return o(t,n,arguments)};s?s(e.exports,"apply",{value:l}):e.exports.apply=l}(Gi);var Qi=Ki,Xi=Gi.exports,Yi=Xi(Qi("String.prototype.indexOf")),Zi=ur(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eo="function"==typeof Map&&Map.prototype,to=Object.getOwnPropertyDescriptor&&eo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ro=eo&&to&&"function"==typeof to.get?to.get:null,no=eo&&Map.prototype.forEach,io="function"==typeof Set&&Set.prototype,oo=Object.getOwnPropertyDescriptor&&io?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ao=io&&oo&&"function"==typeof oo.get?oo.get:null,so=io&&Set.prototype.forEach,co="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,lo="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,uo="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,po=Boolean.prototype.valueOf,fo=Object.prototype.toString,go=Function.prototype.toString,ho=String.prototype.match,_o=String.prototype.slice,mo=String.prototype.replace,vo=String.prototype.toUpperCase,yo=String.prototype.toLowerCase,bo=RegExp.prototype.test,wo=Array.prototype.concat,So=Array.prototype.join,ko=Array.prototype.slice,Eo=Math.floor,Po="function"==typeof BigInt?BigInt.prototype.valueOf:null,Oo=Object.getOwnPropertySymbols,jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Ao="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Io="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ao||"symbol")?Symbol.toStringTag:null,To=Object.prototype.propertyIsEnumerable,Co=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function xo(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||bo.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-Eo(-e):Eo(e);if(n!==e){var i=String(n),o=_o.call(t,i.length+1);return mo.call(i,r,"$&_")+"."+mo.call(mo.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return mo.call(t,r,"$&_")}var No=Zi,Lo=No.custom,Do=Mo(Lo)?Lo:null;function Ro(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Uo(e){return mo.call(String(e),/"/g,"&quot;")}function Bo(e){return!("[object Array]"!==qo(e)||Io&&"object"==typeof e&&Io in e)}function $o(e){return!("[object RegExp]"!==qo(e)||Io&&"object"==typeof e&&Io in e)}function Mo(e){if(Ao)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!jo)return!1;try{return jo.call(e),!0}catch(Wc){}return!1}var Fo=Object.prototype.hasOwnProperty||function(e){return e in this};function Ho(e,t){return Fo.call(e,t)}function qo(e){return fo.call(e)}function Vo(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function zo(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return zo(_o.call(e,0,t.maxStringLength),t)+n}return Ro(mo.call(mo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Jo),"single",t)}function Jo(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+vo.call(t.toString(16))}function Wo(e){return"Object("+e+")"}function Ko(e){return e+" { ? }"}function Go(e,t,r,n){return e+" ("+t+") {"+(n?Qo(r,n):So.call(r,", "))+"}"}function Qo(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+So.call(e,","+r)+"\n"+t.prev}function Xo(e,t){var r=Bo(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Ho(e,i)?t(e[i],e):""}var o,a="function"==typeof Oo?Oo(e):[];if(Ao){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in e)Ho(e,c)&&(r&&String(Number(c))===c&&c<e.length||Ao&&o["$"+c]instanceof Symbol||(bo.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof Oo)for(var l=0;l<a.length;l++)To.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var Yo=Ki,Zo=function(e,t){var r=Qi(e,!!t);return"function"==typeof r&&Yi(e,".prototype.")>-1?Xi(r):r},ea=function e(t,r,n,i){var o=r||{};if(Ho(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ho(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Ho(o,"customInspect")||o.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
vendor: 10,207 bytes, line 3
3if(Ho(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ho(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return zo(t,o);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?xo(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return s?xo(t,l):l}var u=void 0===o.depth?5:o.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return Bo(t)?"[Array]":"[Object]";var p=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=So.call(Array(e.indent+1)," ")}return{base:r,prev:So.call(Array(t+1),r)}}(o,n);if(void 0===i)i=[];else if(Vo(i,t)>=0)return"[Circular]";function d(t,r,a){if(r&&(i=ko.call(i)).push(r),a){var s={depth:o.depth};return Ho(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(t,s,n+1,i)}return e(t,o,n+1,i)}if("function"==typeof t&&!$o(t)){var f=function(e){if(e.name)return e.name;var t=ho.call(go.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),g=Xo(t,d);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(g.length>0?" { "+So.call(g,", ")+" }":"")}if(Mo(t)){var h=Ao?mo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):jo.call(t);return"object"!=typeof t||Ao?h:Wo(h)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var _="<"+yo.call(String(t.nodeName)),m=t.attributes||[],v=0;v<m.length;v++)_+=" "+m[v].name+"="+Ro(Uo(m[v].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+yo.call(String(t.nodeName))+">"}if(Bo(t)){if(0===t.length)return"[]";var y=Xo(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Vo(e[t],"\n")>=0)return!1;return!0}(y)?"["+Qo(y,p)+"]":"[ "+So.call(y,", ")+" ]"}if(function(e){return!("[object Error]"!==qo(e)||Io&&"object"==typeof e&&Io in e)}(t)){var b=Xo(t,d);return"cause"in Error.prototype||!("cause"in t)||To.call(t,"cause")?0===b.length?"["+String(t)+"]":"{ ["+String(t)+"] "+So.call(b,", ")+" }":"{ ["+String(t)+"] "+So.call(wo.call("[cause]: "+d(t.cause),b),", ")+" }"}if("object"==typeof t&&a){if(Do&&"function"==typeof t[Do]&&No)return No(t,{depth:u-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!ro||!e||"object"!=typeof e)return!1;try{ro.call(e);try{ao.call(e)}catch(_){return!0}return e instanceof Map}catch(Wc){}return!1}(t)){var w=[];return no&&no.call(t,(function(e,r){w.push(d(r,t,!0)+" => "+d(e,t))})),Go("Map",ro.call(t),w,p)}if(function(e){if(!ao||!e||"object"!=typeof e)return!1;try{ao.call(e);try{ro.call(e)}catch(t){return!0}return e instanceof Set}catch(Wc){}return!1}(t)){var S=[];return so&&so.call(t,(function(e){S.push(d(e,t))})),Go("Set",ao.call(t),S,p)}if(function(e){if(!co||!e||"object"!=typeof e)return!1;try{co.call(e,co);try{lo.call(e,lo)}catch(_){return!0}return e instanceof WeakMap}catch(Wc){}return!1}(t))return Ko("WeakMap");if(function(e){if(!lo||!e||"object"!=typeof e)return!1;try{lo.call(e,lo);try{co.call(e,co)}catch(_){return!0}return e instanceof WeakSet}catch(Wc){}return!1}(t))return Ko("WeakSet");if(function(e){if(!uo||!e||"object"!=typeof e)return!1;try{return uo.call(e),!0}catch(Wc){}return!1}(t))return Ko("WeakRef");if(function(e){return!("[object Number]"!==qo(e)||Io&&"object"==typeof e&&Io in e)}(t))return Wo(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Po)return!1;try{return Po.call(e),!0}catch(Wc){}return!1}(t))return Wo(d(Po.call(t)));if(function(e){return!("[object Boolean]"!==qo(e)||Io&&"object"==typeof e&&Io in e)}(t))return Wo(po.call(t));if(function(e){return!("[object String]"!==qo(e)||Io&&"object"==typeof e&&Io in e)}(t))return Wo(d(String(t)));if(!function(e){return!("[object Date]"!==qo(e)||Io&&"object"==typeof e&&Io in e)}(t)&&!$o(t)){var k=Xo(t,d),E=Co?Co(t)===Object.prototype:t instanceof Object||t.constructor===Object,P=t instanceof Object?"":"null prototype",O=!E&&Io&&Object(t)===t&&Io in t?_o.call(qo(t),8,-1):P?"Object":"",j=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(O||P?"["+So.call(wo.call([],O||[],P||[]),": ")+"] ":"");return 0===k.length?j+"{}":p?j+"{"+Qo(k,p)+"}":j+"{ "+So.call(k,", ")+" }"}return String(t)},ta=Yo("%TypeError%"),ra=Yo("%WeakMap%",!0),na=Yo("%Map%",!0),ia=Zo("WeakMap.prototype.get",!0),oa=Zo("WeakMap.prototype.set",!0),aa=Zo("WeakMap.prototype.has",!0),sa=Zo("Map.prototype.get",!0),ca=Zo("Map.prototype.set",!0),la=Zo("Map.prototype.has",!0),ua=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},pa=String.prototype.replace,da=/%20/g,fa="RFC3986",ga={default:fa,formatters:{RFC1738:function(e){return pa.call(e,da,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:fa},ha=ga,_a=Object.prototype.hasOwnProperty,ma=Array.isArray,va=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ya=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},ba={arrayToObject:ya,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var c=a[s],l=o[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:o,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(ma(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(Wc){return n}},encode:function(e,t,r,n,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<o.length;++s){var c=o.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===ha.RFC1738&&(40===c||41===c)?a+=o.charAt(s):c<128?a+=va[c]:c<2048?a+=va[192|c>>6]+va[128|63&c]:c<55296||c>=57344?a+=va[224|c>>12]+va[128|c>>6&63]+va[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=va[240|c>>18]+va[128|c>>12&63]+va[128|c>>6&63]+va[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(ma(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(ma(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!_a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var i=t;return ma(t)&&!ma(r)&&(i=ya(t,n)),ma(t)&&ma(r)?(r.forEach((function(r,i){if(_a.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return _a.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),i)}},wa=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new ta("Side channel does not contain "+ea(e))},get:function(n){if(ra&&n&&("object"==typeof n||"function"==typeof n)){if(e)return ia(e,n)}else if(na){if(t)return sa(t,n)}else if(r)return function(e,t){var r=ua(e,t);return r&&r.value}(r,n)},has:function(n){if(ra&&n&&("object"==typeof n||"function"==typeof n)){if(e)return aa(e,n)}else if(na){if(t)return la(t,n)}else if(r)return function(e,t){return!!ua(e,t)}(r,n);return!1},set:function(n,i){ra&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new ra),oa(e,n,i)):na?(t||(t=new na),ca(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=ua(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n},Sa=ba,ka=ga,Ea=Object.prototype.hasOwnProperty,Pa={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Oa=Array.isArray,ja=Array.prototype.push,Aa=function(e,t){ja.apply(e,Oa(t)?t:[t])},Ia=Date.prototype.toISOString,Ta=ka.default,Ca={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Sa.encode,encodeValuesOnly:!1,format:Ta,formatter:ka.formatters[Ta],indices:!1,serializeDate:function(e){return Ia.call(e)},skipNulls:!1,strictNullHandling:!1},xa={},Na=function e(t,r,n,i,o,a,s,c,l,u,p,d,f,g,h,_){for(var m,v=t,y=_,b=0,w=!1;void 0!==(y=y.get(xa))&&!w;){var S=y.get(t);if(b+=1,void 0!==S){if(S===b)throw new RangeError("Cyclic object value");w=!0}void 0===y.get(xa)&&(b=0)}if("function"==typeof c?v=c(r,v):v instanceof Date?v=p(v):"comma"===n&&Oa(v)&&(v=Sa.maybeMap(v,(function(e){return e instanceof Date?p(e):e}))),null===v){if(o)return s&&!g?s(r,Ca.encoder,h,"key",d):r;v=""}if("string"==typeof(m=v)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||Sa.isBuffer(v))return s?[f(g?r:s(r,Ca.encoder,h,"key",d))+"="+f(s(v,Ca.encoder,h,"value",d))]:[f(r)+"="+f(String(v))];var k,E=[];if(void 0===v)return E;if("comma"===n&&Oa(v))g&&s&&(v=Sa.maybeMap(v,s)),k=[{value:v.length>0?v.join(",")||null:void 0}];else if(Oa(c))k=c;else{var P=Object.keys(v);k=l?P.sort(l):P}for(var O=i&&Oa(v)&&1===v.length?r+"[]":r,j=0;j<k.length;++j){var A=k[j],I="object"==typeof A&&void 0!==A.value?A.value:v[A];if(!a||null!==I){var T=Oa(v)?"function"==typeof n?n(O,A):O:O+(u?"."+A:"["+A+"]");_.set(t,b);var C=wa();C.set(xa,_),Aa(E,e(I,T,n,i,o,a,"comma"===n&&g&&Oa(v)?null:s,c,l,u,p,d,f,g,h,C
3))}}return E},La=ba,Da=Object.prototype.hasOwnProperty,Ra=Array.isArray,Ua={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:La.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ba=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},$a=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ma=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,c=[];if(s){if(!r.plainObjects&&Da.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var l=0;r.depth>0&&null!==(a=o.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&Da.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var i=n?t:$a(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(c,t,r,n)}},Fa={formats:ga,parse:function(e,t){var r=function(e){if(!e)return Ua;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ua.charset:e.charset;return{allowDots:void 0===e.allowDots?Ua.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ua.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Ua.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ua.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ua.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ua.comma,decoder:"function"==typeof e.decoder?e.decoder:Ua.decoder,delimiter:"string"==typeof e.delimiter||La.isRegExp(e.delimiter)?e.delimiter:Ua.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ua.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ua.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ua.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ua.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ua.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=i.split(t.delimiter,o),s=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var l,u,p=a[r],d=p.indexOf("]="),f=-1===d?p.indexOf("="):d+1;-1===f?(l=t.decoder(p,Ua.decoder,c,"key"),u=t.strictNullHandling?null:""):(l=t.decoder(p.slice(0,f),Ua.decoder,c,"key"),u=La.maybeMap($a(p.slice(f+1),t),(function(e){return t.decoder(e,Ua.decoder,c,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===c&&(u=Ba(u)),p.indexOf("[]=")>-1&&(u=Ra(u)?[u]:u),Da.call(n,l)?n[l]=La.combine(n[l],u):n[l]=u}return n}(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],c=Ma(s,n[s],r,"string"==typeof e);i=La.merge(i,c,r)}return!0===r.allowSparse?i:La.compact(i)},stringify:function(e,t){var r,n=e,i=function(e){if(!e)return Ca;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Ca.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ka.default;if(void 0!==e.format){if(!Ea.call(ka.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=ka.formatters[r],i=Ca.filter;return("function"==typeof e.filter||Oa(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Ca.addQueryPrefix,allowDots:void 0===e.allowDots?Ca.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ca.charsetSentinel,delimiter:void 0===e.delimiter?Ca.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Ca.encode,encoder:"function"==typeof e.encoder?e.encoder:Ca.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Ca.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Ca.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Ca.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ca.strictNullHandling}}(t);"function"==typeof i.filter?n=(0,i.filter)("",n):Oa(i.filter)&&(r=i.filter);var o,a=[];if("object"!=typeof n||null===n)return"";o=t&&t.arrayFormat in Pa?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Pa[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c="comma"===s&&t&&t.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var l=wa(),u=0;u<r.length;++u){var p=r[u];i.skipNulls&&null===n[p]||Aa(a,Na(n[p],p,s,c,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,l))}var d=a.join(i.delimiter),f=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),d.length>0?f+d:""}};const Ha=Object.prototype.toString;function qa(e,t){return Ha.call(e)===`[object ${t}]`}function Va(e){return null!==e&&qa(e,"Object")}function za(e){return qa(e,"String")}function Ja(e){return"function"==typeof e}let Wa=new Map;const Ka=e=>[e.method,e.url].join("&");class Ga{addPending(e){this.removePending(e);const t=Ka(e);e.cancelToken=e.cancelToken||new di.CancelToken((e=>{Wa.has(t)||Wa.set(t,e)}))}removeAllPending(){Wa.forEach((e=>{e&&Ja(e)&&e()})),Wa.clear()}removePending(e){const t=Ka(e);if(Wa.has(t)){const e=Wa.get(t);e&&e(t),Wa.delete(t)}}reset(){Wa=new Map}}var Qa=(e=>(e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e))(Qa||{}),Xa=(e=>(e.JSON="application/json;charset=UTF-8",e.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",e.FORM_DATA="multipart/form-data;charset=UTF-8",e))(Xa||{});class Ya{constructor(e){__publicField(this,"axiosInstance"),__publicField(this,"options"),this.options=e,this.axiosInstance=di.create(e),this.setupInterceptors()}createAxios(e){this.axiosInstance=di.create(e)}getTransform(){const{transform:e}=this.options;return e}getAxios(){return this.axiosInstance}configAxios(e){this.axiosInstance&&this.createAxios(e)}setHeader(e){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,e)}setupInterceptors(){const e=this.getTransform();if(!e)return;const{requestInterceptors:t,requestInterceptorsCatch:r,responseInterceptors:n,responseInterceptorsCatch:i,requestAsyncInterceptors:o}=e,a=new Ga;this.axiosInstance.interceptors.request.use((async e=>{var r;const{ignoreCancelToken:n}=e.requestOptions;return!(void 0!==n?n:null==(r=this.options.requestOptions)?void 0:r.ignoreCancelToken)&&a.addPending(e),t&&Ja(t)&&(e=t(e,this.options)),o&&Ja(o)&&(e=await o(e,this.options)),e}),void 0),r&&Ja(r)&&this.axiosInstance.interceptors.request.use(void 0,r),this.axiosInstance.interceptors.response.use((e=>(e&&a.removePending(e.config),n&&Ja(n)&&(e=n(e)),e)),void 0),i&&Ja(i)&&this.axiosInstance.interceptors.response.use(void 0,i)}uploadFile(e,t){const r=new window.FormData,n=t.name||"file";return t.filename?r.append(n,t.file,t.filename):r.append(n,t.file),t.data&&Object.keys(t.data).forEac
3h((e=>{const n=t.data[e];Array.isArray(n)?n.forEach((t=>{r.append(`${e}[]`,t)})):r.append(e,t.data[e])})),this.axiosInstance.request({...e,method:"POST",data:r,headers:{"Content-type":Xa.FORM_DATA,ignoreCancelToken:!0}})}supportFormData(e){var t;const r=e.headers||this.options.headers;return((null==r?void 0:r["Content-Type"])||(null==r?void 0:r["content-type"]))===Xa.FORM_URLENCODED&&Reflect.has(e,"data")&&(null==(t=e.method)?void 0:t.toUpperCase())!==Qa.GET?{...e,data:Fa.stringify(e.data,{arrayFormat:"brackets"})}:e}get(e,t){return this.request({...e,method:"GET"},t)}post(e,t){return this.request({...e,method:"POST"},t)}put(e,t){return this.request({...e,method:"PUT"},t)}delete(e,t){return this.request({...e,method:"DELETE"},t)}patch(e,t){return this.request({...e,method:"PATCH"},t)}request(e,t){let r=Nt(e);const n=this.getTransform(),{requestOptions:i}=this.options,o=Object.assign({},i,t),{beforeRequestHook:a,requestCatchHook:s,transformRequestHook:c}=n||{};return a&&Ja(a)&&(r=a(r,o)),r.requestOptions=o,r=this.supportFormData(r),new Promise(((e,t)=>{this.axiosInstance.request(r).then((r=>{if(c&&Ja(c))try{const t=c(r,o);e(t)}catch(n){t(n||new Error("request error!"))}else e(r)})).catch((e=>{s&&Ja(s)?t(s(e,o)):(di.isAxiosError(e),t(e))}))}))}}const Za={}.VITE_GLOB_APP_TITLE;function es(e){console.warn(`[${Za} warn]:${e}`)}function ts(e={},t={}){let r;for(r in t)e[r]=Va(e[r])?ts(e[r],t[r]):e[r]=t[r];return e}function rs(e,t){const{target:r="__blank",noopener:n=!0,noreferrer:i=!0}=t||{},o=[];n&&o.push("noopener=yes"),i&&o.push("noreferrer=yes"),window.open(e,r,o.join(","))}const ns=e=>{const t=null==e?void 0:e.substr(1).split("&");return null==t?void 0:t.reduce((function(e,t){const r=t.split("=");return e[r[0]]=r[1],e}),{})};var is,os={exports:{}};os.exports=(is=is||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==lr&&lr.crypto&&(r=lr.crypto),!r)try{r=require("crypto")}catch(h){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(h){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(h){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),l=o.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},p=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(Wc){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var p=0;p<l;p+=a)this._doProcessBlock(i,p);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}});var g=o.algo={};return o}(Math),is);var as={exports:{}};!function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 4,195 bytes, line 3
3+/="}}(),e.enc.Base64}(os.exports)}(as);var ss={exports:{}};!function(e,t){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],f=e[t+2],g=e[t+3],h=e[t+4],_=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],w=e[t+10],S=e[t+11],k=e[t+12],E=e[t+13],P=e[t+14],O=e[t+15],j=o[0],A=o[1],I=o[2],T=o[3];j=l(j,A,I,T,a,7,s[0]),T=l(T,j,A,I,c,12,s[1]),I=l(I,T,j,A,f,17,s[2]),A=l(A,I,T,j,g,22,s[3]),j=l(j,A,I,T,h,7,s[4]),T=l(T,j,A,I,_,12,s[5]),I=l(I,T,j,A,m,17,s[6]),A=l(A,I,T,j,v,22,s[7]),j=l(j,A,I,T,y,7,s[8]),T=l(T,j,A,I,b,12,s[9]),I=l(I,T,j,A,w,17,s[10]),A=l(A,I,T,j,S,22,s[11]),j=l(j,A,I,T,k,7,s[12]),T=l(T,j,A,I,E,12,s[13]),I=l(I,T,j,A,P,17,s[14]),j=u(j,A=l(A,I,T,j,O,22,s[15]),I,T,c,5,s[16]),T=u(T,j,A,I,m,9,s[17]),I=u(I,T,j,A,S,14,s[18]),A=u(A,I,T,j,a,20,s[19]),j=u(j,A,I,T,_,5,s[20]),T=u(T,j,A,I,w,9,s[21]),I=u(I,T,j,A,O,14,s[22]),A=u(A,I,T,j,h,20,s[23]),j=u(j,A,I,T,b,5,s[24]),T=u(T,j,A,I,P,9,s[25]),I=u(I,T,j,A,g,14,s[26]),A=u(A,I,T,j,y,20,s[27]),j=u(j,A,I,T,E,5,s[28]),T=u(T,j,A,I,f,9,s[29]),I=u(I,T,j,A,v,14,s[30]),j=p(j,A=u(A,I,T,j,k,20,s[31]),I,T,_,4,s[32]),T=p(T,j,A,I,y,11,s[33]),I=p(I,T,j,A,S,16,s[34]),A=p(A,I,T,j,P,23,s[35]),j=p(j,A,I,T,c,4,s[36]),T=p(T,j,A,I,h,11,s[37]),I=p(I,T,j,A,v,16,s[38]),A=p(A,I,T,j,w,23,s[39]),j=p(j,A,I,T,E,4,s[40]),T=p(T,j,A,I,a,11,s[41]),I=p(I,T,j,A,g,16,s[42]),A=p(A,I,T,j,m,23,s[43]),j=p(j,A,I,T,b,4,s[44]),T=p(T,j,A,I,k,11,s[45]),I=p(I,T,j,A,O,16,s[46]),j=d(j,A=p(A,I,T,j,f,23,s[47]),I,T,a,6,s[48]),T=d(T,j,A,I,v,10,s[49]),I=d(I,T,j,A,P,15,s[50]),A=d(A,I,T,j,_,21,s[51]),j=d(j,A,I,T,k,6,s[52]),T=d(T,j,A,I,g,10,s[53]),I=d(I,T,j,A,w,15,s[54]),A=d(A,I,T,j,c,21,s[55]),j=d(j,A,I,T,y,6,s[56]),T=d(T,j,A,I,O,10,s[57]),I=d(I,T,j,A,m,15,s[58]),A=d(A,I,T,j,E,21,s[59]),j=d(j,A,I,T,h,6,s[60]),T=d(T,j,A,I,S,10,s[61]),I=d(I,T,j,A,f,15,s[62]),A=d(A,I,T,j,b,21,s[63]),o[0]=o[0]+j|0,o[1]=o[1]+A|0,o[2]=o[2]+I|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function p(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5}(os.exports)}(ss);var cs={exports:{}},ls={exports:{}};!function(e,t){e.exports=function(e){return r=(t=e).lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],c=r[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var p=(n<<5|n>>>27)+c+a[l];p+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,c=s,s=o,o=i<<30|i>>>2,i=n,n=p}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),e.SHA1;var t,r,n,i,o,a,s}
vendor: 5,372 bytes, line 3
3(os.exports)}(ls);var us=ls.exports,ps={exports:{}};!function(e,t){e.exports=function(e){var t,r,n;r=(t=e).lib.Base,n=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}(os.exports)}(ps),function(e,t){e.exports=function(e){return r=(t=e).lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,c=n.keySize,l=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<l;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF;var t,r,n,i,o,a,s}(os.exports)}(cs);var ds={exports:{}};!function(e,t){e.exports=function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var c=s.Base64,l=r.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:m}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var p=r.mode={},d=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=p.CBC=function(){var e=d.extend();function r(e,r,n){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<n;a++)e[r+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),e}(),g=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var c=o.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:g}),reset:function(){var e;u.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),_=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=i.extend({cfg:i.extend({format:_}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return h.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(r.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=l.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,h.create({key:i,iv:a,salt:n})}},y=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:v}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,m.decrypt.call(this,e,t,i.key,n)}})}()}
vendor: 2,226 bytes, line 3
3(os.exports)}(ds),function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],p=[],d=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var g=n^n<<1^n<<2^n<<3^n<<4;g=g>>>8^255&g^99,i[r]=g,o[g]=r;var h=e[r],_=e[h],m=e[_],v=257*e[g]^16843008*g;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,c[r]=v<<8|v>>>24,l[r]=v,v=16843009*m^65537*_^257*h^16843008*r,u[g]=v<<24|v>>>8,p[g]=v<<16|v>>>16,d[g]=v<<8|v>>>24,f[g]=v,r?(r=h^e[e[e[m^h]]],n^=e[e[n]]):r=n=1}}();var g=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=g[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^p[i[l>>>16&255]]^d[i[l>>>8&255]]^f[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,p,d,f,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],p=e[t+2]^r[2],d=e[t+3]^r[3],f=4,g=1;g<c;g++){var h=n[l>>>24]^i[u>>>16&255]^o[p>>>8&255]^a[255&d]^r[f++],_=n[u>>>24]^i[p>>>16&255]^o[d>>>8&255]^a[255&l]^r[f++],m=n[p>>>24]^i[d>>>16&255]^o[l>>>8&255]^a[255&u]^r[f++],v=n[d>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&p]^r[f++];l=h,u=_,p=m,d=v}h=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[p>>>8&255]<<8|s[255&d])^r[f++],_=(s[u>>>24]<<24|s[p>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^r[f++],m=(s[p>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[f++],v=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&p])^r[f++],e[t]=h,e[t+1]=_,e[t+2]=m,e[t+3]=v},keySize:8});t.AES=r._createHelper(h)}(),e.AES}(os.exports)}({exports:{}});!function(e,t){e.exports=function(e){return e.enc.Utf8}
3(os.exports)}({exports:{}});!function(e,t){e.exports=function(e){return e.pad.Pkcs7}(os.exports)}({exports:{}});!function(e,t){e.exports=function(e){return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB;var t}(os.exports)}({exports:{}});function fs(e,t=!1){if(!e)return t?"":{};const r=(new Date).getTime();return t?`?_t=${r}`:{_t:r}}function gs(e){var t,r;if("[object Object]"===Object.prototype.toString.call(e))for(const i in e){const o=null!=(r=null==(t=e[i])?void 0:t.format)?r:null;if(o&&"function"==typeof o&&(e[i]=e[i].format("YYYY-MM-DD HH:mm:ss")),za(i)){const t=e[i];if(t)try{e[i]=za(t)?t.trim():t}catch(n){throw new Error(n)}}Va(e[i])&&gs(e[i])}}function hs(){const e=(new Date).getTime(),t=Math.floor(999999*Math.random()),r="oj878:;;?@#-=UFfHFUwTs!SNJHUFp!{[d}"+e+t,n=function(e){return us(e).toString()}(r);return{stamp:e,nonce:t,sercetKey:r,sign:n}}function _s(e){return js.post({url:"/uc-itg/uct/v1/login",data:e})}function ms(){return js.put({url:"/uc/v1/users/actions/logout"})}class vs{}__publicField(vs,"setError"),__publicField(vs,"onError"),vs.setError=e=>{vs.onError=e};const ys=class{constructor(e){__publicField(this,"_prefix"),__publicField(this,"_onError"),__publicField(this,"_platform");const{prefix:t,onError:r,platform:n}=e;if(this._platform=n,n&&localStorage.setItem(Vt,n.toString()),null==t)throw new Error("路径不能为空,请先设置登录路径");this._onError=r||(()=>{}),this._prefix=t,this._prefix&&localStorage.setItem(Bt,this._prefix)}static createInstance(e){return this.instance=new ys(e),this.instance}get platform(){return this._platform}setPlatform(e){this._platform=e,e&&localStorage.setItem(Vt,null==e?void 0:e.toString())}resetInitPassword(e){return new Promise(((t,r)=>{this.verifyCode(e).then((n=>{"200"===n.result_code?this.updateChildAccountPassword(e).then((e=>{t(e)})).catch((e=>{r(e)})):r(n)})).catch((e=>{r(e)}))}))}get onError(){return this._onError}setCanDeleteBillingData(e){return wc?wc(e):Promise.reject(new Error("当前api未实现"))}resetInteriorPassword(e){return Oc?Oc(e):Promise.reject(new Error("当前api未实现"))}setPrefix(e){this._prefix=e,this._prefix&&localStorage.setItem(Bt,this._prefix)}destory(){}get prefix(){return this._prefix}sendForgetPasswordCode(e){return _c?_c(e):Promise.reject(new Error("当前api未实现"))}getAccountList(e){return fc?fc(e):Promise.reject(new Error("当前api未实现"))}getSafetyRulesList(e){return Zs?Zs(e):Promise.reject(new Error("当前api未实现"))}getSafetyRulesListByPage(e){return Ys?Ys(e):Promise.reject(new Error("当前api未实现"))}batchEnableChildAccount(e){return dc?dc(e):Promise.reject(new Error("当前api未实现"))}unlockChildAccout(e){return pc?pc(e):Promise.reject(new Error("当前api未实现"))}updateUserSafetyConfig(e){return Gs?Gs(e):Promise.reject(new Error("当前api未实现"))}getSafetyRuleDetail(e){return ec?ec(e):Promise.reject(new Error("当前api未实现"))}updateUserStatusAndName(e){return lc?lc(e):Promise.reject(new Error("当前api未实现"))}deleteChildAccount(e){return sc?sc(e):Promise.reject(new Error("当前api未实现"))}deleteUser(e){return cc?new Promise(((t,r)=>{cc(e).then((e=>{ar(),t(e)})).catch((e=>{r(e)}))})):Promise.reject(new Error("当前api未实现"))}deleteLoginLocation(e){return oc?oc(e):Promise.reject(new Error("当前api未实现"))}deleteChildAccountLoginLocation(e){return ac?ac(e):Promise.reject(new Error("当前api未实现"))}addChildAccount(e){return Ns?Ns(e):Promise.reject(new Error("当前api未实现"))}getChildAccountInfo(e){return Cs?Cs(e):Promise.reject(new Error("当前api未实现"))}queryChildAccountsBypage(e){return ic?ic(e):Promise.reject(new Error("当前api未实现"))}verifyCode(e){return Js?Js(e):Promise.reject(new Error("当前api未实现"))}getAccountInfo(){return Ts?Ts():Promise.reject(new Error("当前api未实现"))}getUserSafetyConfigsDetail(e){return Ks?Ks(e):Promise.reject(new Error("当前api未实现"))}queryUsersByPage(e){return nc?nc(e):Promise.reject(new Error("当前api未实现"))}
3emailResetPassword(e){return gc?gc(e):Promise.reject(new Error("当前api未实现"))}mobileResetPassword(e){return hc?hc(e):Promise.reject(new Error("当前api未实现"))}sendBindEmailCode(e){return Hs?Hs(e):Promise.reject(new Error("当前api未实现"))}sendBindSmsCode(e){return qs?qs(e):Promise.reject(new Error("当前api未实现"))}bindThirdAccount(e){return Ds?Ds(e):Promise.reject(new Error("当前api未实现"))}updateAccountInfo(e){return xs?xs(e):Promise.reject(new Error("当前api未实现"))}updateChildAccountPassword(e){return Us?Us(e):Promise.reject(new Error("当前api未实现"))}updatePassword(e){return Bs?Bs(e):Promise.reject(new Error("当前api未实现"))}bindCellPhone(e){return Ms?Ms(e):Promise.reject(new Error("当前api未实现"))}updateCellPhone(e){return Vs?Vs(e):Promise.reject(new Error("当前api未实现"))}bindEmail(e){return Fs?Fs(e):Promise.reject(new Error("当前api未实现"))}updateEmail(e){return zs?zs(e):Promise.reject(new Error("当前api未实现"))}updateChildAccount(e){return Ls?Ls(e):Promise.reject(new Error("当前api未实现"))}unbindAccount(e){return Rs?Rs(e):Promise.reject(new Error("当前api未实现"))}editSkuRule(e){return Sc?Sc(e):Promise.reject(new Error("当前api未实现"))}deleteSafetyRule(e){return tc?tc(e):Promise.reject(new Error("当前api未实现"))}updateSafetyRule(e){return Xs?Xs(e):Promise.reject(new Error("当前api未实现"))}batchUpdateChildAccountSafetyRule(e){return rc?rc(e):Promise.reject(new Error("当前api未实现"))}addSafetyRule(e){return Qs?Qs(e):Promise.reject(new Error("当前api未实现"))}saveQuestionnaire(e){return mc?mc(e):Promise.reject(new Error("当前api未实现"))}addMerchantRemoteLogin(e){return vc?e:Promise.reject(new Error("当前api未实现"))}saveLangSetting(e){return bc?bc(e):Promise.reject(new Error("当前api未实现"))}changeAccountStatus(e){return $s?$s(e):Promise.reject(new Error("当前api未实现"))}setLoginKeepTime(e){return Ws?new Promise(((t,r)=>{Ws(e).then((r=>{localStorage.setItem(Ht,e.hours+""),sr(),t(r)})).catch((e=>{r(e)}))})):Promise.reject(new Error("当前api未实现"))}saveEnterpriseGroupRel(e){return yc?yc(e):Promise.reject(new Error("当前api未实现"))}getBindThirdAccountUrl(e){return kc?kc(e):Promise.reject(new Error("当前api未实现"))}getLoginHistory(e){return uc?uc(e):Promise.reject(new Error("当前api未实现"))}refreshToken(){return Ec?Ec():Promise.reject(new Error("当前api未实现"))}resetPassword(e){return Pc?Pc(e):Promise.reject(new Error("当前api未实现"))}unBindMobile(e){return jc?jc(e):Promise.reject(new Error("当前api未实现"))}removeAllToken(){return ar()}};let bs=ys;__publicField(bs,"instance");const ws=(()=>{const{VITE_GLOB_APP_TITLE:e,VITE_GLOB_API_URL:t,VITE_GLOB_APP_SHORT_NAME:r,VITE_GLOB_API_URL_PREFIX:n,VITE_GLOB_UPLOAD_URL:i}=function(){const{VITE_GLOB_APP_TITLE:e,VITE_GLOB_API_URL:t,VITE_GLOB_APP_SHORT_NAME:r,VITE_GLOB_API_URL_PREFIX:n,VITE_GLOB_UPLOAD_URL:i}={VITE_USER_NODE_ENV:"production",VITE_APP_BASE_URL:"api",VITE_PUBLIC_PATH:"/",VITE_PROXY:'[["/merchant-gw/mock","http://192.168.3.31:3000/mock"],["/merchant-gw","http://test.zwdc.com"],["/upload","http://test.zwdc.com"]]',VITE_GLOB_API_URL:"",VITE_GLOB_UPLOAD_URL:"/upload",VITE_GLOB_API_URL_PREFIX:"",VITE_SPECIAL_SHOP_CODE:"220182341",VITE_PORT:"9999",VITE_USE_MOCK:"false",VITE_DROP_CONSOLE:"true",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0};return/^[a-zA-Z\_]*$/.test(r)||es("VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running."),{VITE_GLOB_APP_TITLE:e,VITE_GLOB_API_URL:t,VITE_GLOB_APP_SHORT_NAME:r,VITE_GLOB_API_URL_PREFIX:n,VITE_GLOB_UPLOAD_URL:i}}();/[a-zA-Z\_]*/.test(r)||es("VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.");return{title:e,apiUrl:t,shortName:r,urlPrefix:n,uploadUrl:i}})(),Ss=ws.urlPrefix;let ks=!1,Es=[];function Ps(){return new Promise(((e,t)=>{ks||(ks=!0,js.put({url:Ut}).then((e=>{"200"==e.result_code&&(sr(),Es.forEach((e=>{e()})),ks=!1,Es=[])})).catch((e=>{ks=!1,t(e)}))),Es.push(e)}))}const Os={transformRequestHook:(e,t)=>{const{isTransformResponse:r,isReturnNativeResponse:n}=t;if(n)return e;if(!r)return e.data;const{data:i}=e;if(!i)throw new Error("接口错误");return i},beforeRequestHook:(e,t)=>{var r;const{apiUrl:n,joinPrefix:i,joinParamsToUrl:o,formatDate:a,joinT
3ime:s=!0,urlPrefix:c}=t;i&&(e.url=`${c}${e.url}`),n&&za(n)&&(e.url=`${n}${e.url}`);const l=e.params||{},u=e.data||!1;a&&u&&!za(u)&&gs(u),(null==(r=e.method)?void 0:r.toUpperCase())===Qa.GET?za(l)?(e.url=e.url+l+`${fs(s,!0)}`,e.params=void 0):e.params=Object.assign(l||{},fs(s,!1)):za(l)?(e.url=e.url+l,e.params=void 0):(a&&gs(l),Reflect.has(e,"data")&&e.data&&Object.keys(e.data).length>0?(e.data=u,e.params=l):(e.data=l,e.params=void 0),o&&(e.url=function(e,t){let r="";for(const n in t)r+=n+"="+encodeURIComponent(t[n])+"&";return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}(e.url,Object.assign({},e.params,e.data))));let p=localStorage.getItem(Bt);return p&&(p.startsWith("http")?e.url=`${p}${e.url}`:(p=null==p?void 0:p.replace(/\//g,""),e.url=`/${p}${e.url}`)),e},requestAsyncInterceptors:async(e,t)=>{var r,n;const i=localStorage.getItem($t);i&&(e.headers.Authorization=`Bearer ${i}`);const o=localStorage.getItem(Vt);o&&(e.headers["rbac-tenant"]=o);const{stamp:a,nonce:s,sign:c}=hs();if(e.headers.sign=c,e.headers.stamp=a,e.headers.nonce=s,ir()&&cr()&&!(null==(r=e.url)?void 0:r.includes("refresh_token")))try{await Ps()}catch(l){}else if(!(null==(n=e.url)?void 0:n.includes("refresh_token"))){const e=(new Date).getTime();localStorage.setItem(qt,e+""),er(qt,e+"",365)}return e},responseInterceptors:e=>{var t;const r=e.data;return"200"!==r.result_code&&(vs.onError?null==vs||vs.onError(r):null==(t=bs.instance)||t.onError(r)),e},responseInterceptorsCatch:e=>{var t,r,n,i,o,a;const{_response:s,code:c,message:l,_config:u}=e||{},p=null!=(r=null==(t=null==e?void 0:e.toString)?void 0:t.call(e))?r:"";let d="";try{if("ECONNABORTED"===c&&-1!==l.indexOf("timeout")&&(d="网络超时"),(null==p?void 0:p.includes("Network Error"))&&(d="网络错误"),d)return vs.onError?null==vs||vs.onError({result_code:c,msg:d}):null==(n=bs.instance)||n.onError({result_code:c,msg:d}),Promise.reject(e)}catch(f){throw vs.onError?null==vs||vs.onError(f):null==(i=bs.instance)||i.onError(f),new Error(f)}return vs.onError?null==vs||vs.onError(null==e?void 0:e.response.data):null==(o=bs.instance)||o.onError(null==e?void 0:e.response.data),"401"==(null==(a=null==e?void 0:e.response.data)?void 0:a.result_code)&&ar(),Promise.reject((null==e?void 0:e.response.data)||e)}};const js=new Ya(ts({authenticationScheme:"Bearer",timeout:1e4,headers:{"Content-Type":Xa.JSON},transform:(Is=Os,xt(Is,4)),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,isTransformResponse:!0,joinParamsToUrl:!1,formatDate:!0,errorMessageMode:"message",apiUrl:ws.apiUrl,urlPrefix:Ss,joinTime:!1,ignoreCancelToken:!0,withToken:!0,needLoading:!1}},As||{}));var As,Is;function Ts(){return js.get({url:"/uc-itg/v1/users"})}function Cs(e){return js.get({url:(t=e.id,`/uc-itg/v1/users/info/${t}`)});var t}function xs(e){return js.patch({url:(t=e.id,`/uc/v1/users/${t}`),data:e});var t}function Ns(e){return js.post({url:"/uc-itg/v1/users/info",data:e})}function Ls(e){return js.patch({url:(t=e.id,`/uc-itg/v1/users/info/${t}`),data:e});var t}function Ds(e){return js.post({url:"/uc-itg/v1/bind_third_account",data:e})}function Rs(e){return js.put({url:"/uc/v1/user_authorizations/actions/unbind",data:e})}function Us(e){return js.put({url:(t=e.id,`/uc/v1/users/${t}/password`),data:e});var t}function Bs(e){return js.put({url:"/uc-itg/v1/users/actions/password",data:e})}function $s(e){return js.put({url:(t=e.enabled,r=e.id,`/uc/v1/users/${r}/enabled/${t}`)});var t,r}function Ms(e){return js.post({url:Jt,data:{...e,module:1}})}function Fs(e){return js.post({url:Wt,data:{...e,module:1}})}function Hs(e){return js.post({url:"/uc-itg/v1/send_email_code",data:e})}function qs(e){return js.post({url:"/uc-itg/v1/send_sms_code",data:e})}function Vs(e){return js.post({url:Jt,data:{...e,module:2}})}function zs(e){return js.post({url:Wt,data:{...e,module:2}})}function Js(e){return js.post({url:"/uc-itg/uct/v1/verify_code",data:e})}function Ws(e){return js.put({url:(t=e.id,`/uc/v1/users/${t}/online_time_limit`),data:e});var t}function Ks(e){return js.get({url:"/uc-itg/v1/user_safety_configs/detail",params:e})}function Gs(e){return js.patch({url:"/uc/v1/user_safety_configs",data:e})}function Qs(e){return js.post({url:"/uc/v1/safety_rules",data:e})}function Xs(e){return js.patch({url:(t=e.id,`/uc/v1/safety_rules/${t}`),data:e});var t}function Ys(e){return js.post({url:"/uc/v1/safety_rules/page",data:e})}function Zs(e){return js.post({url:"/uc/v1/safety_rules/list",data:e})}function ec(e){return js.get({url:(t=e,`/uc/v1/safety_rules/${t}`),data:e});var t}function tc(e){return js.delete({url:(t=e.id,`/uc/v1/safety_rules/${t}`)});var t}function rc(e){return js.put({url:"/uc/v1/user_safety_configs/actions/batch_modification",data:e})}function nc(e){return js.post({url:"/uc-itg/v1/users/page",data:e})}function ic(e){return js.post({url:"/uc-itg/v1/users/info/page",data:e})}function oc(e){return js.put({url:Kt,data:{login_location:e}})}function ac(e){return js.put({url:Kt,data:e})}function sc(e){return js.delete({url:Gt(e)})}function cc(e){return js.delete({url:Gt(e)})}function lc(e){return js.put({url:(t=e.id,`/uc-itg/v1/users/${t}/modification`),data:e});var t}function uc(e){return js.post({url:"/uc/v1/user_login_logs/page",data:e})}function pc(e){return js.put({url:"/uc/v1/user_safety_configs/actions/unlock",params:e},{joinParamsToUrl:!0})}function dc(e){return js.put({url:"/uc/v1/users/actions/batch_enable",data:e})}function fc(e){return js.post({url:"/uc/v1/users/list",data:e})}function gc(e){return js.post({url:"/uc-itg/uct/v1/email/reset_password",data:e})}function hc(e){return js.post({url:"/uc-itg/uct/v1/mobile/reset_password",data:e})}function _c(e){return js.post({url:"/uc-itg/uct/v1/send_message",data:e})}function mc(e){return js.patch({url:(t=e.id,`/uc/v1/groups/${t}/extra`),data:e});var t}function vc(e){return e}function yc(e){return js.patch({url:(t=e.id,`/uc/v1/group_auth_rels/${t}`),data:e});var t}function bc(e){return js.patch({url:Qt(e.id),data:e})}function wc(e){return js.patch({url:Qt(e.id),data:{is_can_delete:e.is_can_delete}})}function Sc(e){return js.patch({url:Qt(e.id),data:e})}function kc(e){return js.post({url:"/uc-itg/v1/bind_third_account/url",data:e})}function Ec(){return js.put({url:Ut})}function Pc(e){return js.post({url:"/uc-itg/uct/v1/reset_password",data:e})}function Oc(e){return js.put({url:"/uc-itg/uct/v1/users/password",data:e})}function jc(e){return js.put({url:(t=e.id,`/uc/v1/users/${t}/actions/un_bind_mobile`),data:e});var t}const Ac="hs",Ic="sc",Tc="https://acq.hicustom.com/daq/v1/bis/acquisition/action",Cc="http://fatacq.zwdc.com/daq/v1/bis/acquisition/action",xc="https://lptacp.zhiwendiy.com/daq/v1/bis/acquisition/action";function Nc(e){return"[object Object]"===Object.prototype.toString.call(e)}
3function Lc(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function Dc(){const e=decodeURI(location.search),t={};if(-1!==e.indexOf("?")){const r=e.substring(1).split("&");for(let e=0;e<r.length;e++){const n=r[e].split("=");t[n[0]]=n[1]}}return t}function Rc(e){return Object.keys(e).filter((t=>!Lc(e[t]))).reduce(((t,r)=>({...t,[r]:e[r]})),{})}let Uc=!1,Bc=!1;class $c{constructor(e){__publicField(this,"platform",Ac),__publicField(this,"options"),this.options=e}setupEvent(){Uc||(Uc=!0,function(e,t){if(e.TeaAnalyticsObject=t,!e[t]){let r=function(...e){r.q.push(e)};r.q=r.q||[],e[t]=r}e[t].l=+new Date}(window,"collectEvent"))}setupScript(){Bc||(Bc=!0,function(e,t=!1,r){const n=document.createElement("script");n.type="text/javascript",n.async=t,r&&(n.onload=r),n.src=e;const i=document.getElementsByTagName("head")[0],o=i.getElementsByTagName("script")[0];i.insertBefore(n,o)}("https://lf3-data.volccdn.com/obj/data-static/log-sdk/collect/collect-autotrack-rangers.js"))}setup(){this.setupEvent(),this.setupScript()}run(e,t,r){const{autoPV:n=!0,init:i}=function(e){const{app_id:t,log:r=!1,cross:n=!0,cross_domain:i,auto_stay:o=!0,auto_pv:a=!0,sdk_escape:s}=e,c=Nc(s)?s:{},l=Rc({channel:"cn",autotrack:!1,app_id:t,log:r,enable_stay_duration:o,cross_subdomain:n,cookie_domain:i});return Object.assign(l,c),{init:l,autoPV:a}}(e),o={disable_auto_pv:!n,...t};if(!i||!i.app_id)return console.error("火山平台初始化失败,app_id 不能为空");window.collectEvent("init",i),this.setConfig(o),this.setCode(r),window.collectEvent("start")}reportByPlatform(e,t){window.collectEvent(e,t)}reportByZW(e,t={},r){const{url:n,additional:i}=r,o=n;if(!o)return console.error("未设置url,无法通过指纹接口上报");const a=new FormData,s=this.getToken;a.append("event",e),a.append("params",JSON.stringify(t)),a.append("web_id",s.web_id),a.append("ssid",s.ssid),a.append("local_time_ms",(new Date).getTime().toString());
3try{Nc(i)&&Object.keys(i).forEach((e=>{a.append(e,i[e])}))}catch(c){console.error(c)}navigator.sendBeacon(o,a)}report(e,t={},r){const{method:n=this.options.method,url:i=this.options.url||"",additional:o}=r||{};if(2===n)this.reportByPlatform(e,t);else{if(1!==n)return console.error(`未知的上报方式,method:${n}`);this.reportByZW(e,t,{url:i,additional:o})}}reportPV(e){window.collectEvent("predefinePageView",e)}setCode(e=""){try{window.collectEvent("config",{user_unique_id:e})}catch(t){console.error(t)}}setConfig(e={}){try{const{user_unique_id:t,...r}=e;window.collectEvent("config",r)}catch(t){console.error(t)}}get getToken(){const e={web_id:"",ssid:""};try{window.collectEvent("getToken",(t=>{e.web_id=t.web_id||"",e.ssid=t.ssid||""}))}catch(Wc){console.error(Wc)}return e}setProfile(e={}){window.collectEvent("profileSet",e)}}var Mc,Fc={};function Hc(e){if(!e)return!1;var t=Object.prototype.toString.call(e);return"[object Function]"==t||"[object AsyncFunction]"==t}function qc(){return Date.now&&Hc(Date.now)?Date.now():(new Date).getTime()}(function(){var e={function:!0,object:!0},t=e[typeof window]&&window||this,r=t.JSON,n=t.JSON3,i=!1,o=function r(n,i){n||(n=t.Object()),i||(i=t.Object());var o=n.Number||t.Number,a=n.String||t.String,s=n.Object||t.Object,c=n.Date||t.Date,l=n.SyntaxError||t.SyntaxError,u=n.TypeError||t.TypeError,p=n.Math||t.Math,d=n.JSON||t.JSON;if("object"==typeof d&&d)return i.stringify=d.stringify,i.parse=d.parse,i.runInContext=r,i;var f,g=s.prototype,h=g.toString,_=g.hasOwnProperty;function m(e,t){try{e()}catch(r){t&&t()}}var v=new c(-0xc782b5b800cec);function y(e){if(null!=y[e])return y[e];var t;if("bug-string-char-index"==e)t="a"!="a"[0];else if("json"==e)t=y("json-stringify")&&y("date-serialization")&&y("json-parse");else if("date-serialization"==e){if(t=y("json-stringify")&&v){var r=i.stringify;m((function(){t='"-271821-04-20T00:00:00.000Z"'==r(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==r(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==r(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==r(new c(-1))}))}}else{var n,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var l="function"==typeof(r=i.stringify);l&&((n=function(){return 1}).toJSON=n,m((function(){l="0"===r(0)&&"0"===r(new o)&&'""'==r(new a)&&r(h)===f&&r(f)===f&&r()===f&&"1"===r(n)&&"[1]"==r([n])&&"[null]"==r([f])&&"null"==r(null)&&"[null,null,null]"==r([f,h,null])&&r({a:[n,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===r(null,n)&&"[\n 1,\n 2\n]"==r([1,2],null,1)}),(function(){l=!1}))),t=l}if("json-parse"==e){var u,p=i.parse;"function"==typeof p&&m((function(){0!==p("0")||p(!1)||(n=p(s),(u=5==n.a.length&&1===n.a[0])&&(m((function(){u=!p('"\t"')})),u&&m((function(){u=1!==p("01")})),u&&m((function(){u=1!==p("1.")}))))}),(function(){u=!1})),t=u}}return y[e]=!!t}if(m((function(){v=-109252==v.getUTCFullYear()&&0===v.getUTCMonth()&&1===v.getUTCDate()&&10==v.getUTCHours()&&37==v.getUTCMinutes()&&6==v.getUTCSeconds()&&708==v.getUTCMilliseconds()})),y["bug-string-char-index"]=y["date-serialization"]=y.json=y["json-stringify"]=y["json-parse"]=null,!y("json")){var b=y("bug-string-char-index"),w=function(t,r){var n,i,o,a=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,i=new n)_.call(i,o)&&a++;return n=i=null,a?w=function(e,t){var r,n,i="[object Function]"==h.call(e);for(r in e)i&&"prototype"==r||!_.call(e,r)||(n="constructor"===r)||t(r);(n||_.call(e,r="constructor"))&&t(r)}:(i=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],w=function(t,r){var n,o,a="[object Function]"==h.call(t),s=!a&&"function"!=typeof t.constructor&&e[typeof t.hasOwnProperty]&&t.hasOwnProperty||_;for(n in t)a&&"prototype"==n||!s.call(t,n)||r(n);for(o=i.length;n=i[--o];)s.call(t,n)&&r(n)}),w(t,r)};if(!y("json-stringify")&&!y("date-serialization")){var S={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},k=function(e,t){return("000000"+(t||0)).slice(-e)},E=function(e){var t,r,n,i,o,a,s,c,l;if(v)t=function(e){r=e.getUTCFullYear(),n=e.getUTCMonth(),i=e.getUTCDate(),a=e.getUTCHours(),s=e.getUTCMinutes(),c=e.getUTCSeconds(),l=e.getUTCMilliseconds()};else{var u=p.floor,d=[0,31,59,90,120,151,181,212,243,273,304,334],f=function(e,t){return d[t]+365*(e-1970)+u((e-1969+(t=+(t>1)))/4)-u((e-1901+t)/100)+u((e-1601+t)/400)};t=function(e){for(i=u(e/864e5),r=u(i/365.2425)+1970-1;f(r+1,0)<=i;r++);for(n=u((i-f(r,0))/30.42);f(r,n+1)<=i;n++);i=1+i-f(r,n),a=u((o=(e%864e5+864e5)%864e5)/36e5)%24,s=u(o/6e4)%60,c=u(o/1e3)%60,l=o%1e3}}return(E=function(e){return e>-1/0&&e<1/0?(t(e),e=(r<=0||r>=1e4?(r<0?"-":"+")+k(6,r<0?-r:r):k(4,r))+"-"+k(2,n+1)+"-"+k(2,i)+"T"+k(2,a)+":"+k(2,s)+":"+k(2,c)+"."+k(3,l)+"Z",r=n=i=a=s=c=l=null):e=null,e})(e)};if(y("json-stringify")&&!y("date-serialization")){let e=function(e){return E(this)};var P=i.stringify;i.stringify=function(t,r,n){var i=c.prototype.toJSON;c.prototype.toJSON=e;var o=P(t,r,n);return c.prototype.toJSON=i,o}}else{var O=function(e){var t=e.charCodeAt(0);
vendor: 9,294 bytes, line 3
3return S[t]||"\\u00"+k(2,t.toString(16))},j=/[\x00-\x1f\x22\x5c]/g,A=function(e){return j.lastIndex=0,'"'+(j.test(e)?e.replace(j,O):e)+'"'},I=function(e,t,r,n,i,o,a){var s,l,p,d,g,_,v,y,b;if(m((function(){s=t[e]})),"object"==typeof s&&s&&(s.getUTCFullYear&&"[object Date]"==h.call(s)&&s.toJSON===c.prototype.toJSON?s=E(s):"function"==typeof s.toJSON&&(s=s.toJSON(e))),r&&(s=r.call(t,e,s)),s==f)return s===f?s:"null";switch("object"==(l=typeof s)&&(p=h.call(s)),p||l){case"boolean":case"[object Boolean]":return""+s;case"number":case"[object Number]":return s>-1/0&&s<1/0?""+s:"null";case"string":case"[object String]":return A(""+s)}if("object"==typeof s){for(v=a.length;v--;)if(a[v]===s)throw u();if(a.push(s),d=[],y=o,o+=i,"[object Array]"==p){for(_=0,v=s.length;_<v;_++)g=I(_,s,r,n,i,o,a),d.push(g===f?"null":g);b=d.length?i?"[\n"+o+d.join(",\n"+o)+"\n"+y+"]":"["+d.join(",")+"]":"[]"}else w(n||s,(function(e){var t=I(e,s,r,n,i,o,a);t!==f&&d.push(A(e)+":"+(i?" ":"")+t)})),b=d.length?i?"{\n"+o+d.join(",\n"+o)+"\n"+y+"}":"{"+d.join(",")+"}":"{}";return a.pop(),b}};i.stringify=function(t,r,n){var i,o,a,s;if(e[typeof r]&&r)if("[object Function]"==(s=h.call(r)))o=r;else if("[object Array]"==s){a={};for(var c,l=0,u=r.length;l<u;)c=r[l++],"[object String]"!=(s=h.call(c))&&"[object Number]"!=s||(a[c]=1)}if(n)if("[object Number]"==(s=h.call(n))){if((n-=n%1)>0)for(n>10&&(n=10),i="";i.length<n;)i+=" "}else"[object String]"==s&&(i=n.length<=10?n:n.slice(0,10));return I("",((c={})[""]=t,c),o,a,i,"",[])}}}if(!y("json-parse")){var T,C,x=a.fromCharCode,N={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},L=function(){throw T=C=null,l()},D=function(){for(var e,t,r,n,i,o=C,a=o.length;T<a;)switch(i=o.charCodeAt(T)){case 9:case 10:case 13:case 32:T++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=b?o.charAt(T):o[T],T++,e;case 34:for(e="@",T++;T<a;)if((i=o.charCodeAt(T))<32)L();else if(92==i)switch(i=o.charCodeAt(++T)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=N[i],T++;break;case 117:for(t=++T,r=T+4;T<r;T++)(i=o.charCodeAt(T))>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70||L();e+=x("0x"+o.slice(t,T));break;default:L()}else{if(34==i)break;for(i=o.charCodeAt(T),t=T;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++T);e+=o.slice(t,T)}if(34==o.charCodeAt(T))return T++,e;L();default:if(t=T,45==i&&(n=!0,i=o.charCodeAt(++T)),i>=48&&i<=57){for(48==i&&(i=o.charCodeAt(T+1))>=48&&i<=57&&L(),n=!1;T<a&&(i=o.charCodeAt(T))>=48&&i<=57;T++);if(46==o.charCodeAt(T)){for(r=++T;r<a&&!((i=o.charCodeAt(r))<48||i>57);r++);r==T&&L(),T=r}if(101==(i=o.charCodeAt(T))||69==i){for(43!=(i=o.charCodeAt(++T))&&45!=i||T++,r=T;r<a&&!((i=o.charCodeAt(r))<48||i>57);r++);r==T&&L(),T=r}return+o.slice(t,T)}n&&L();var s=o.slice(T,T+4);if("true"==s)return T+=4,!0;if("fals"==s&&101==o.charCodeAt(T+4))return T+=5,!1;if("null"==s)return T+=4,null;L()}return"$"},R=function(e){var t,r;if("$"==e&&L(),"string"==typeof e){if("@"==(b?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=D());)r?","==e?"]"==(e=D())&&L():L():r=!0,","==e&&L(),t.push(R(e));return t}if("{"==e){for(t={};"}"!=(e=D());)r?","==e?"}"==(e=D())&&L():L():r=!0,","!=e&&"string"==typeof e&&"@"==(b?e.charAt(0):e[0])&&":"==D()||L(),t[e.slice(1)]=R(D());return t}L()}return e},U=function(e,t,r){var n=B(e,t,r);n===f?delete e[t]:e[t]=n},B=function(e,t,r){var n,i=e[t];if("object"==typeof i&&i)if("[object Array]"==h.call(i))for(n=i.length;n--;)U(h,w,i);else w(i,(function(e){U(i,e,r)}));return r.call(e,t,i)};i.parse=function(e,t){var r,n;return T=0,C=""+e,r=R(D()),"$"!=D()&&L(),T=C=null,t&&"[object Function]"==h.call(t)?B(((n={})[""]=r,n),"",t):r}}}return i.runInContext=r,i}(t,t.JSON3={noConflict:function(){return i||(i=!0,t.JSON=r,t.JSON3=n,r=n=null),o}});t.JSON?(t.JSON.parse=o.parse,t.JSON.stringify=o.stringify):t.JSON={parse:o.parse,stringify:o.stringify}}).call(window),function(e){if(e.atob)try{e.atob(" ")}catch(o){e.atob=(t=e.atob,(r=function(e){return t(String(e).replace(/[\t\n\f\r ]+/g,""))}).original=t,r)}else{var t,r,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;e.btoa=function(e){for(var t,r,i,o,a="",s=0,c=(e=String(e)).length%3;s<e.length;){if((r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)return"";a+=n.charAt((t=r<<16|i<<8|o)>>18&63)+n.charAt(t>>12&63)+n.charAt(t>>6&63)+n.charAt(63&t)}return c?a.slice(0,c-3)+"===".substring(c):a},e.atob=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!i.test(e))return"";e+="==".slice(2-(3&e.length));for(var t,r,o,a="",s=0;s<e.length;)t=n.indexOf(e.charAt(s++))<<18|n.indexOf(e.charAt(s++))<<12|(r=n.indexOf(e.charAt(s++)))<<6|(o=n.indexOf(e.charAt(s++))),a+=64===r?String.fromCharCode(t>>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}}}(window);var Vc={setup:function(e){Mc=e},log:function(){(Mc||console&&console.log||function(){}).apply(null,arguments)}},zc={get:function(e){return window.localStorage.getItem(e)},parse:function(e){var t;try{t=JSON.parse(zc.get(e))||null}catch(r){Vc.log("parse localStorage failed")}return t},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(r){Vc.log("localStorage is not support")}},remove:function(e){window.localStorage.removeItem(e)},isSupport:function(){var e=!0;try{var t="__local_store_support__",r="testIsSupportStorage";zc.set(t,r),zc.get(t)!==r&&(e=!1),zc.remove(t)}catch(n){e=!1}return e}};function Jc(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)}var Wc,Kc=(Wc=(new Date).getTime(),function(e){return Math.ceil((Wc=(9301*Wc+49297)%233280)/233280*e)});function Gc(){if("function"==typeof Uint32Array){var e="";if("undefined"!=typeof crypto?e=crypto:"undefined"!=typeof msCrypto&&(e=msCrypto),Jc(e)&&e.getRandomValues){var t=new Uint32Array(1);return e.getRandomValues(t)[0]/Math.pow(2,32)}}return Kc(1e19)/1e19}function Qc(e){var t=null;try{t=JSON.parse(e)}catch(r){}return t}function Xc(e,t){this.lockGetPrefix=e||"lock-get-prefix",this.lockSetPrefix=t||"lock-set-prefix"}function Yc(e){return"function"==typeof e||!(!e||"object"!=typeof e)&&Yc(e.listener)}function Zc(){this._events={}}function el(e){var t=e;try{t=decodeURIComponent(e)}catch(r){t=e}return t}function tl(e){for(var t={},r=(e=e||"").substring(1).split("&"),n=0;n<r.length;n++){var i=r[n].indexOf("=");if(-1!==i){var o=r[n].substring(0,i),a=r[n].substring(i+1);o=el(o),a=el(a),t[o]=a}}return t}function rl(e){return"[object String]"==Object.prototype.toString.call(e)}function nl(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function il(e){var t=function(e){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==e&&this._parse(e)};return t.prototype.setUrl=function(e){this._parse(e)},t.prototype._initValues=function(){for(var e in this._fields)this._values[e]=""},t.prototype.addQueryString=function(e){if("object"!=typeof e)return!1;var t=this._values.QueryString||"";for(var r in e)t=new RegExp(r+"[^&]+").test(t)?t.replace(new RegExp(r+"[^&]+"),r+"="+e[r]):"&"===t.slice(-1)?t+r+"="+e[r]:""===t?r+"="+e[r]:t+"&"+r+"="+e[r];this._values.QueryString=t},t.prototype.getUrl=function(){var e="";return e+=this._values.Origin,e+=this._values.Port?":"+this._values.Port:"",e+=this._values.Path,(e+=this._values.QueryString?"?"+this._values.QueryString:"")+(this._values.Fragment?"#"+this._values.Fragment:"")},t.prototype._parse=function(e){this._initValues();var t=this._regex.exec(e);t||Vc.log("URLParser::_parse -> Invalid URL");var r=e.split("#"),n=r[0],i=r.slice(1).join("#");for(var o in t=this._regex.exec(n),this._fields)void 0!==t[this._fields[o]]&&(this._values[o]=t[this._fields[o]]);this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname,this._values.Fragment=i},new t(e)}function ol(e){var t,r,n={};if("function"==typeof window.URL&&function(){try{return"https://www.sensorsdata.cn/"===new URL("https://www.sensorsdata.cn/").href}catch(r){return!1}}())(n=new URL(e)).searchParams||(n.searchParams=(t=tl(n.search),{get:function(e){return t[e]}}));else{if(rl(e)||(e=String(e)),e=nl(e),!1===/^https?:\/\/.+/.test(e))return void Vc.log("Invalid URL");var i=il(e);n.hash=i._values.Fragment,n.host=i._values.Host?i._values.Host+(i._values.Port?":"+i._values.Port:""):"",n.href=i._values.URL,n.password=i._values.Password,n.pathname=i._values.Path,n.port=i._values.Port,n.search=i._values.QueryString?"?"+i._values.QueryString:"",n.username=i._values.Username,n.hostname=i._values.Hostname,n.protocol=i._values.Protocol?i._values.Protocol+":":"",n.origin=i._values.Origin?i._values.Origin+(i._values.Port?":"+i._values.Port:""):"",n.searchParams=(r=tl("?"+i._values.QueryString),{get:function(e){return r[e]}})}return n}Xc.prototype.get=function(e,t,r,n){if(!e)throw new Error("key is must");t=t||1e4,r=r||1e3,n=n||function(){};var i=this.lockGetPrefix+e,o=zc.get(i),a=String(Gc());if(o&&(o=Qc(o)||{randomNum:0,expireTime:0}).expireTime>qc())return n(null);zc.set(i,JSON.stringify({randomNum:a,expireTime:qc()+t}
3)),setTimeout((function(){(o=Qc(zc.get(i))||{randomNum:0,expireTime:0})&&o.randomNum===a?(n(zc.get(e)),zc.remove(e),zc.remove(i)):n(null)}),r)},Xc.prototype.set=function(e,t,r,n,i){if(!e||!t)throw new Error("key and val is must");r=r||1e4,n=n||1e3,i=i||function(){};var o=this.lockSetPrefix+e,a=zc.get(o),s=String(Gc());if(a&&(a=Qc(a)||{randomNum:0,expireTime:0}).expireTime>qc())return i({status:"fail",reason:"This key is locked"});zc.set(o,JSON.stringify({randomNum:s,expireTime:qc()+r})),setTimeout((function(){(a=Qc(zc.get(o))||{randomNum:0,expireTime:0}).randomNum===s?zc.set(e,t)&&i({status:"success"}):i({status:"fail",reason:"This key is locked"})}),n)},Zc.prototype.on=function(e,t){if(!e||!t)return!1;if(!Yc(t))throw new Error("listener must be a function");this._events[e]=this._events[e]||[];var r="object"==typeof t;return this._events[e].push(r?t:{listener:t,once:!1}),this},Zc.prototype.prepend=function(e,t){if(!e||!t)return!1;if(!Yc(t))throw new Error("listener must be a function");this._events[e]=this._events[e]||[];var r="object"==typeof t;return this._events[e].unshift(r?t:{listener:t,once:!1}),this},Zc.prototype.prependOnce=function(e,t){return this.prepend(e,{listener:t,once:!0})},Zc.prototype.once=function(e,t){return this.on(e,{listener:t,once:!0})},Zc.prototype.off=function(e,t){var r=this._events[e];if(!r)return!1;if("number"==typeof t)r.splice(t,1);else if("function"==typeof t)for(var n=0,i=r.length;n<i;n++)r[n]&&r[n].listener===t&&r.splice(n,1);return this},Zc.prototype.emit=function(e,t){var r=this._events[e];if(!r)return!1;for(var n=0;n<r.length;n++){var i=r[n];i&&(i.listener.call(this,t||{}),i.once&&this.off(e,n))}return this},Zc.prototype.removeAllListeners=function(e){e&&this._events[e]?this._events[e]=[]:this._events={}},Zc.prototype.listeners=function(e){return e&&"string"==typeof e?this._events[e]:this._events};var al=function(){var e=function(){for(var e=1*new Date,t=0;e==1*new Date;)t++;return e.toString(16)+t.toString(16)};return function(){var t=String(screen.height*screen.width);return t=t&&/\d{5,}/.test(t)?t.toString(16):String(31242*Gc()).replace(".","").slice(0,8),e()+"-"+Gc().toString(16).replace(".","")+"-"+function(){var e,t,r=navigator.userAgent,n=[],i=0;function o(e,t){var r,i=0;for(r=0;r<t.length;r++)i|=n[r]<<8*r;return e^i}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(i=o(i,n),n=[]);return n.length>0&&(i=o(i,n)),i.toString(16)}()+"-"+t+"-"+e()||(String(Gc())+String(Gc())+String(Gc())).slice(2,15)}}();function sl(e){return!(!e||1!==e.nodeType)}function cl(e){return void 0===e}function ll(e){return Array.isArray&&Hc(ll)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function ul(e){return new pl(e)}var pl=function(e){this.ele=e},dl=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r};function fl(e,t,r,n){function i(e){return e&&(e.preventDefault=i.preventDefault,e.stopPropagation=i.stopPropagation,e._getPath=i._getPath),e}i._getPath=function(){return this.path||this.composedPath&&this.composedPath()||ul(this.target).getParents()},i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},function(e,t,r){if(void 0===n&&"click"===t&&(n=!0),e&&e.addEventListener)e.addEventListener(t,(function(e){e._getPath=i._getPath,r.call(this,e)}),n);else{var o="on"+t,a=e[o];e[o]=(s=e,c=r,l=a,u=t,function(e){if(e=e||i(window.event)){e.target=e.srcElement||e.target;var t,r,n=!0;return"function"==typeof l&&(t=l(e)),r=c.call(s,e),"beforeunload"!==u?(!1!==t&&!1!==r||(n=!1),n):void 0}})}var s,c,l,u}.apply(null,arguments)}function gl(e){var t="pushState"in window.history?"popstate":"hashchange";fl(window,t,e)}function hl(e){if(e)return void 0!==window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?new XMLHttpRequest:"undefined"!=typeof XDomainRequest?new XDomainRequest:null;if(void 0!==window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(r){Vc.log(r)}}}pl.prototype={addClass:function(e){return-1===(" "+this.ele.className+" ").indexOf(" "+e+" ")&&(this.ele.className=this.ele.className+(""===this.ele.className?"":" ")+e),this},removeClass:function(e){var t=" "+this.ele.className+" ";return-1!==t.indexOf(" "+e+" ")&&(this.ele.className=t.replace(" "+e+" "," ").slice(1,-1)),this},hasClass:function(e){return-1!==(" "+this.ele.className+" ").indexOf(" "+e+" ")},attr:function(e,t){return"string"==typeof e&&cl(t)?this.ele.getAttribute(e):("string"==typeof e&&(t=String(t),this.ele.setAttribute(e,t)),this)},offset:function(){try{var e=this.ele.getBoundingClientRect(),t=this.ele.ownerDocument.documentElement;return{top:e.top+window.pageYOffset-t.clientTop,left:e.left+window.pageXOffset-t.clientLeft}}catch(r){return{top:0,left:0}}},getSize:function(){if(!window.getComputedStyle)return{width:this.ele.offsetWidth,height:this.ele.offsetHeight};try{var e=this.ele.getBoundingClientRect();return{width:e.width,height:e.height}}catch(t){return{width:0,height:0}}},getStyle:function(e){return this.ele.currentStyle?this.ele.currentStyle[e]:this.ele.ownerDocument.defaultView.getComputedStyle(this.ele,null).getPropertyValue(e)},wrap:function(e){var t=document.createElement(e);return this.ele.parentNode.insertBefore(t,this.ele),t.appendChild(this.ele),ul(t)},getCssStyle:function(e){var t=this.ele.style.getPropertyValue(e);if(t)return t;var r=null;if("function"==typeof window.getMatchedCSSRules&&(r=window.getMatchedCSSRules(this.ele)),!r||!ll(r))return null;for(var n=r.length-1;n>=0;n--)if(t=r[n].style.getPropertyValue(e))return t},sibling:function(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e},next:function(){return this.sibling(this.ele,"nextSibling")},prev:function(){return this.sibling(this.ele,"previousSibling")},siblings:function(){return dl((this.ele.parentNode||{}).firstChild,this.ele)},children:function(){return dl(this.ele.firstChild)},parent:function(){var e=this.ele.parentNode;return ul(e=e&&11!==e.nodeType?e:null)},previousElementSibling:function(){var e=this.ele;if("previousElementSibling"in document.documentElement)return ul(e.previousElementSibling);for(;e=e.previousSibling;)if(1===e.nodeType)return ul(e);return ul(null)},getSameTypeSiblings:function(){for(var e=this.ele,t=e.parentNode,r=e.tagName.toLowerCase(),n=[],i=0;i<t.children.length;i++){var o=t.children[i];1===o.nodeType&&o.tagName.toLowerCase()===r&&n.push(t.children[i])}return n},getParents:function(){try{var e=this.ele;if(!sl(e))return[];var t=[e];if(null===e||null===e.parentElement)return[];for(;null!==e.parentElement;)e=e.parentElement,t.push(e);return t}catch(r){return[]}}};var _l=Array.prototype.forEach,ml=Object.prototype.hasOwnProperty;function vl(e,t,r){if(null==e)return!1;if(_l&&e.forEach===_l)e.forEach(t,r);else if(ll(e))for(var n=0,i=e.length;n<i;n++)n in e&&t.call(r,e[n],n,e);else for(var o in e)ml.call(e,o)&&t.call(r,e[o],o,e)}var yl=Object.prototype.hasOwnProperty;
3function bl(e){return vl(Array.prototype.slice.call(arguments,1),(function(t){for(var r in t)yl.call(t,r)&&void 0!==t[r]&&(e[r]=t[r])})),e}function wl(e){function t(e){if(!e)return"";try{return JSON.parse(e)}catch(t){return{}}}e.timeout=e.timeout||2e4,e.credentials=void 0===e.credentials||e.credentials;var r=hl(e.cors);if(!r)return!1;e.type||(e.type=e.data?"POST":"GET");var n,i=(e=bl({success:function(){},error:function(){}},e)).success,o=e.error;e.success=function(e){i(e),n&&(clearTimeout(n),n=null)},e.error=function(e){o(e),n&&(clearTimeout(n),n=null)},n=setTimeout((function(){!function(){try{r&&"object"==typeof r&&r.abort&&r.abort()}catch(t){Vc.log(t)}n&&(clearTimeout(n),n=null,e.error&&e.error(),r.onreadystatechange=null,r.onload=null,r.onerror=null)}()}),e.timeout),"undefined"!=typeof XDomainRequest&&r instanceof XDomainRequest&&(r.onload=function(){e.success&&e.success(t(r.responseText)),r.onreadystatechange=null,r.onload=null,r.onerror=null},r.onerror=function(){e.error&&e.error(t(r.responseText),r.status),r.onreadystatechange=null,r.onerror=null,r.onload=null}),r.onreadystatechange=function(){try{4==r.readyState&&(r.status>=200&&r.status<300||304==r.status?e.success(t(r.responseText)):e.error(t(r.responseText),r.status),r.onreadystatechange=null,r.onload=null)}catch(n){r.onreadystatechange=null,r.onload=null}},r.open(e.type,e.url,!0);try{e.credentials&&(r.withCredentials=!0),Jc(e.header)&&vl(e.header,(function(e,t){r.setRequestHeader&&r.setRequestHeader(t,e)})),e.data&&(e.cors||r.setRequestHeader&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),"application/json"===e.contentType?r.setRequestHeader&&r.setRequestHeader("Content-type","application/json; charset=UTF-8"):r.setRequestHeader&&r.setRequestHeader("Content-type","application/x-www-form-urlencoded"))}catch(a){Vc.log(a)}r.send(e.data||null)}function Sl(e,t){var r=[];return null==e?r:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(vl(e,(function(e,n,i){r.push(t(e,n,i))})),r)}function kl(e){var t=[];try{t=Sl(atob(e).split(""),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}))}catch(r){t=[]}try{return decodeURIComponent(t.join(""))}catch(r){return t.join("")}}function El(e){var t="";try{t=btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}catch(r){t=e}return t}var Pl={get:function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(t))return el(i.substring(t.length,i.length))}return null},set:function(e,t,r,n,i,o,a){var s=a,c="",l="",u="";if(0!==(r=null==r?73e3:r)){var p=new Date;"s"===String(r).slice(-1)?p.setTime(p.getTime()+1e3*Number(String(r).slice(0,-1))):p.setTime(p.getTime()+24*r*60*60*1e3),c="; expires="+p.toGMTString()}function d(e){return!!e&&e.replace(/\r\n/g,"")}rl(i)&&""!==i&&(u="; SameSite="+i),o&&(l="; secure");var f="",g="",h="";e&&(f=d(e)),t&&(g=d(t)),s&&(h=d(s)),f&&g&&(document.cookie=f+"="+encodeURIComponent(g)+c+"; path=/"+h+u+l)},remove:function(e,t){this.set(e,"1",-1,t)},isSupport:function(e,t){e=e||"cookie_support_test",t=t||"1";var r=this;return navigator.cookieEnabled&&(r.set(e,t),r.get(e)===t&&(r.remove(e),!0))}};function Ol(e){return vl(Array.prototype.slice.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&void 0===e[r]&&(e[r]=t[r])})),e}function jl(e){var t=e;try{t=decodeURI(e)}catch(r){t=e}return t}function Al(e){return"[object Date]"==Object.prototype.toString.call(e)}function Il(e){function t(e){return e<10?"0"+e:e}return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())+"."+t(e.getMilliseconds())}function Tl(e){return vl(Array.prototype.slice.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(Jc(t[r])&&Jc(e[r])?bl(e[r],t[r]):e[r]=t[r])})),e}function Cl(e,t,r){var n=Object.prototype.hasOwnProperty;if(e.filter)return e.filter(t);for(var i=[],o=0;o<e.length;o++)if(n.call(e,o)){var a=e[o];t.call(r,a,o,e)&&i.push(a)}return i}function xl(e,t){t=t||"domain_test";var r=function(e){return"string"==typeof e&&e.match(/^[a-zA-Z0-9\u4e00-\u9fa5\-\.]+$/)?e:""}(e=e||location.hostname),n=r.split(".");if(ll(n)&&n.length>=2&&!/^(\d+\.)+\d+$/.test(r))for(var i="."+n.splice(n.length-1,1);n.length>0;)if(i="."+n.splice(n.length-1,1)+i,document.cookie=t+"=true; path=/; domain="+i,-1!==document.cookie.indexOf(t+"=true")){var o=new Date;return o.setTime(o.getTime()-1e3),document.cookie=t+"=true; expires="+o.toGMTString()+"; path=/; SameSite=Lax; domain="+i,i}return""}function Nl(e){if(!rl(e))return null;var t,r=e.split(">");return(t=function e(t){var n,i=r.shift();if(!i)return t;try{n=function(e,t){var r;if("body"===(e=nl(e)))return document.getElementsByTagName("body")[0];if(0===e.indexOf("#"))e=e.slice(1),r=document.getElementById(e);else if(e.indexOf(":nth-of-type")>
vendor: 4,156 bytes, line 3
3-1){var n=e.split(":nth-of-type");if(!n[0]||!n[1])return null;var i=n[0],o=n[1].match(/\(([0-9]+)\)/);if(!o||!o[1])return null;var a=Number(o[1]);if(!(sl(t)&&t.children&&t.children.length>0))return null;for(var s=t.children,c=0;c<s.length;c++)if(sl(s[c])&&s[c].tagName.toLowerCase()===i&&0==--a){r=s[c];break}if(a>0)return null}return r||null}(i,t)}catch(o){Vc.log(o)}return n&&sl(n)?e(n):null}())&&sl(t)?t:null}function Ll(e,t){var r="",n="";return e.textContent?r=nl(e.textContent):e.innerText&&(r=nl(e.innerText)),r&&(r=r.replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)),n=r||"","input"!==t&&"INPUT"!==t||(n=e.value||""),n}function Dl(e,t){t&&"string"==typeof t||(t="hostname解析异常");var r=null;try{r=ol(e).hostname}catch(n){Vc.log("getHostname传入的url参数不合法!")}return r||t}function Rl(){try{var e=navigator.appVersion.match(/OS (\d+)[._](\d+)[._]?(\d+)?/);return e&&e[1]?Number.parseInt(e[1],10):""}catch(t){return""}}function Ul(e){var t={},r=e.split("?")[1]||"";return r&&(t=tl("?"+r)),t}function Bl(e,t){var r=ol(e),n=r.searchParams.get(t)||"";if(!n){var i=r.hash;i&&(n=Ul(i)[t]||"")}return n}function $l(){return void 0!==window.matchMedia||void 0!==window.msMatchMedia}function Ml(){var e,t={},r=navigator.userAgent.toLowerCase();return(e=r.match(/ qq\/([\d.]+)/))?t.qqBuildinBrowser=Number(e[1].split(".")[0]):(e=r.match(/mqqbrowser\/([\d.]+)/))?t.qqBrowser=Number(e[1].split(".")[0]):(e=r.match(/opera.([\d.]+)/))?t.opera=Number(e[1].split(".")[0]):(e=r.match(/msie ([\d.]+)/))?t.ie=Number(e[1].split(".")[0]):(e=r.match(/edge.([\d.]+)/))?t.edge=Number(e[1].split(".")[0]):(e=r.match(/firefox\/([\d.]+)/))?t.firefox=Number(e[1].split(".")[0]):(e=r.match(/chrome\/([\d.]+)/))?t.chrome=Number(e[1].split(".")[0]):(e=r.match(/version\/([\d.]+).*safari/))?t.safari=Number(e[1].match(/^\d*.\d*/)):(e=r.match(/trident\/([\d.]+)/))&&(t.ie=11),t}function Fl(e){return rl(e)?jl(e=nl(e)):jl(location.href)}function Hl(e){return rl(e)?jl(e=nl(e)):jl(location.pathname)}function ql(e,t){return e.hasAttribute?e.hasAttribute(t):e.attributes?!(!e.attributes[t]||!e.attributes[t].specified):void 0}function Vl(e,t){if("string"==typeof t)return ql(e,t);if(ll(t)){for(var r=!1,n=0;n<t.length;n++)if(ql(e,t[n])){r=!0;break}return r}}function zl(e){if("string"!=typeof e)return 0;var t=0;if(0==e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}function Jl(e){var t=9007199254740992,r=-9007199254740992,n=0;if(e.length>0)for(var i=e.split(""),o=0;o<i.length;o++){var a=i[o].charCodeAt(),s=31*n+a;if(s>t)for(n=r+n;(s=31*n+a)<r;)n=n/2+a;if(s<r)for(n=t+n;(s=31*n+a)>t;)n=n/2+a;n=31*n+a}return n}function Wl(e,t){var r=e.indexOf;if(r)return r.call(e,t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1}var Kl=Object.prototype.hasOwnProperty;function Gl(e){return!(!e||!Kl.call(e,"callee"))}function Ql(e){return"[object Boolean]"==Object.prototype.toString.call(e)}function Xl(e){if(Jc(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}function Yl(e){return"string"==typeof e&&(!1!==/^https?:\/\/.+/.test(e)||(Vc.log("Invalid URL"),!1))}function Zl(){return!!navigator.userAgent.match(/iPhone|iPad|iPod/i)}function eu(e){try{JSON.parse(e)}catch(t){return!1}return!0}function tu(e){return"[object Number]"==Object.prototype.toString.call(e)&&/[\d\.]+/.test(String(e))}function ru(e){if(!Jc(e)||!rl(e.callbackName))return Vc.log("JSONP 请求缺少 callbackName"),!1;e.success=Hc(e.success)?e.success:function(){},e.error=Hc(e.error)?e.error:function(){},e.data=e.data||"";var t=document.createElement("script"),r=document.getElementsByTagName("head")[0],n=null,i=!1;if(t.defer="defer",r.appendChild(t),tu(e.timeout)&&(n=setTimeout((function(){if(i)return!1;e.error("timeout"),window[e.callbackName]=function(){Vc.log("call jsonp error")},n=null,r.removeChild(t),i=!0}),e.timeout)),window[e.callbackName]=function(){clearTimeout(n),n=null,e.success.apply(null,arguments),window[e.callbackName]=function(){Vc.log("call jsonp error")},r.removeChild(t)},e.url.indexOf("?")>-1?e.url+="&callbackName="+e.callbackName:e.url+="?callbackName="+e.callbackName,J
3c(e.data)){var o=[];vl(e.data,(function(e,t){o.push(t+"="+e)})),e.data=o.join("&"),e.url+="&"+e.data}t.onerror=function(o){if(i)return!1;window[e.callbackName]=function(){Vc.log("call jsonp error")},clearTimeout(n),n=null,r.removeChild(t),e.error(o),i=!0},t.src=e.url}function nu(e){({visibleHandler:Hc(e.visible)?e.visible:function(){},hiddenHandler:Hc(e.hidden)?e.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 e=this;fl(document,this.visibilityChange,(function(){document[e.hidden]?e.hiddenHandler():e.visibleHandler()}),1)}else fl(window,"focus",this.visibleHandler),fl(window,"blur",this.hiddenHandler)}}).init()}function iu(e){e=bl({success:function(){},error:function(){},appendCall:function(e){document.getElementsByTagName("head")[0].appendChild(e)}},e);var t=null;"css"===e.type&&((t=document.createElement("link")).rel="stylesheet",t.href=e.url),"js"===e.type&&((t=document.createElement("script")).async="async",t.setAttribute("charset","UTF-8"),t.src=e.url,t.type="text/javascript"),t.onload=t.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(e.success(),t.onload=t.onreadystatechange=null)},t.onerror=function(){e.error(),t.onerror=null},e.appendCall(t)}function ou(e){if("string"!=typeof e)return"";for(var t=/^\s*javascript/i;t.test(e);)e=e.replace(t,"");return e}function au(e,t){t="number"==typeof t?t:13;for(var r=(e=String(e)).split(""),n=0,i=r.length;n<i;n++)r[n].charCodeAt(0)<126&&(r[n]=String.fromCharCode((r[n].charCodeAt(0)+t)%126));return r.join("")}function su(e){return au(e=String(e),113)}function cu(e){(Jc(e)||ll(e))&&vl(e,(function(t,r){Jc(t)||ll(t)?cu(e[r]):Al(t)&&(e[r]=Il(t))}))}var lu={isSupport:function(){var e=!0,t="testIsSupportStorage";try{sessionStorage&&sessionStorage.setItem?(sessionStorage.setItem("__session_storage_support__",t),sessionStorage.removeItem("__session_storage_support__",t),e=!0):e=!1}catch(r){e=!1}return e}};function uu(e){var t=document.createElement("style");t.type="text/css";try{t.appendChild(document.createTextNode(e))}catch(i){t.styleSheet.cssText=e}var r=document.getElementsByTagName("head")[0],n=document.getElementsByTagName("script")[0];r?r.children.length?r.insertBefore(t,r.children[0]):r.appendChild(t):n.parentNode.insertBefore(t,n)}function pu(e){var t=[];return null==e||vl(e,(function(e){t[t.length]=e})),t}function du(e){for(var t,r=[],n={},i=0;i<e.length;i++)(t=e[i])in n||(n[t]=!0,r.push(t));return r}var fu={"+":"-","/":"_","=":"."},gu={"-":"+",_:"/",".":"="},hu={encode:function(e){return e.replace(/[+\/=]/g,(function(e){return fu[e]}))},decode:function(e){return e.replace(/[-_.]/g,(function(e){return gu[e]}))},trim:function(e){return e.replace(/[.=]{1,2}$/,"")},isBase64:function(e){return/^[A-Za-z0-9+\/]*[=]{0,2}$/.test(e)},isUrlSafeBase64:function(e){return/^[A-Za-z0-9_-]*[.]{0,2}$/.test(e)}},_u={__proto__:null,ConcurrentStorage:Xc,EventEmitter:Zc,URL:ol,UUID:al,addEvent:fl,addHashEvent:gl,ajax:wl,base64Decode:kl,base64Encode:El,bindReady:function(e,t){t=t||window;var r=!1,n=!0,i=t.document,o=i.documentElement,a=i.addEventListener,s=a?"addEventListener":"attachEvent",c=a?"removeEventListener":"detachEvent",l=a?"":"on",u=function(n){"readystatechange"==n.type&&"complete"!=i.readyState||(("load"==n.type?t:i)[c](l+n.type,u,!1),!r&&(r=!0)&&e.call(t,n.type||n))},p=function(){try{o.doScroll("left")}catch(e){return void setTimeout(p,50)}u("poll")};if("complete"==i.readyState)e.call(t,"lazy");else{if(!a&&o.doScroll){try{n=!t.frameElement}catch(d){Vc.log(d)}n&&p()}i[s](l+"DOMContentLoaded",u,!1),i[s](l+"readystatechange",u,!1),t[s](l+"load",u,!1)}}
vendor: 7,090 bytes, line 3
3,cookie:Pl,coverExtend:Ol,decodeURI:jl,decodeURIComponent:el,dfmapping:function(e){var t="t6KJCZa5pDdQ9khoEM3Tj70fbP2eLSyc4BrsYugARqFIw1mzlGNVXOHiWvxUn8",r=t.length-1,n={},i=0;for(i=0;i<t.length;i++)n[t.charAt(i)]=t.charAt(r-i);var o="";for(i=0;i<e.length;i++)e.charAt(i)in n?o+=n[e.charAt(i)]:o+=e.charAt(i);return o},each:vl,encodeDates:function e(t){return vl(t,(function(r,n){Al(r)?t[n]=Il(r):Jc(r)&&(t[n]=e(r))})),t},extend:bl,extend2Lev:Tl,filter:Cl,formatDate:Il,formatJsonString:function(e){try{return JSON.stringify(e,null,"  ")}catch(t){return JSON.stringify(e)}},getCookieTopLevelDomain:xl,getDomBySelector:Nl,getElementContent:Ll,getHostname:Dl,getIOSVersion:Rl,getQueryParam:Bl,getQueryParamsFromUrl:Ul,getRandom:Gc,getRandomBasic:Kc,getScreenOrientation:function(){var e=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,t="未取到值";if(e)t=e.indexOf("landscape")>-1?"landscape":"portrait";else if($l()){var r=window.matchMedia||window.msMatchMedia;r("(orientation: landscape)").matches?t="landscape":r("(orientation: portrait)").matches&&(t="portrait")}return t},getUA:Ml,getURL:Fl,getURLPath:Hl,getURLSearchParams:tl,hasAttribute:ql,hasAttributes:Vl,hashCode:zl,hashCode53:Jl,indexOf:Wl,inherit:function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},isArguments:Gl,isArray:ll,isBoolean:Ql,isDate:Al,isElement:sl,isEmptyObject:Xl,isFunction:Hc,isHttpUrl:Yl,isIOS:Zl,isJSONString:eu,isNumber:tu,isObject:Jc,isString:rl,isSupportBeaconSend:function(){var e=!1;if("object"!=typeof navigator||"function"!=typeof navigator.sendBeacon)return e;var t=Ml(),r=navigator.userAgent.toLowerCase();if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)){var n=(r.match(/os [\d._]*/gi)+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,".").split(".");void 0===t.safari&&(t.safari=n[0]),n[0]&&(t.qqBuildinBrowser||t.qqBrowser)?e=!1:n[0]&&n[0]<13?(t.chrome>41||t.firefox>30||t.opera>25||t.safari>12)&&(e=!0):(t.chrome>41||t.firefox>30||t.opera>25||t.safari>11.3)&&(e=!0)}else(t.chrome>38||t.edge>13||t.firefox>30||t.opera>25||t.safari>11)&&(e=!0);return e},isSupportCors:function(){return void 0!==window.XMLHttpRequest&&("withCredentials"in new XMLHttpRequest||"undefined"!=typeof XDomainRequest)},isUndefined:cl,jsonp:ru,listenPageState:nu,loadScript:iu,localStorage:zc,logger:Vc,map:Sl,mediaQueriesSupported:$l,now:qc,removeScriptProtocol:ou,rot13defs:su,rot13obfs:au,ry:ul,safeJSONParse:Qc,searchObjDate:cu,sessionStorage:lu,setCssStyle:uu,strToUnicode:function(e){if("string"!=typeof e)return Vc.log("转换unicode错误",e),e;for(var t="",r=0;r<e.length;r++)t+="\\"+e.charCodeAt(r).toString(16);return t},throttle:function(e,t,r){var n,i,o,a=null,s=0;r||(r={});var c=function(){s=!1===r.leading?0:qc(),a=null,o=e.apply(n,i),a||(n=i=null)};return function(){var l=qc();s||!1!==r.leading||(s=l);var u=t-(l-s);return n=this,i=arguments,u<=0||u>t?(a&&(clearTimeout(a),a=null),s=l,o=e.apply(n,i),a||(n=i=null)):a||!1===r.trailing||(a=setTimeout(c,u)),o}},toArray:function(e){return e?e.toArray?e.toArray():ll(e)||Gl(e)?Array.prototype.slice.call(e):pu(e):[]},trim:nl,unique:du,urlParse:il,urlSafeBase64:hu,values:pu,xhr:hl},mu=[],vu={appendWriter:function(e){mu.push(e)},msg:function(){var e={module:"",level:"log",brand:"web-sdk",content:null};return e.content=Array.prototype.slice.call(arguments),{module:function(t){return rl(t)&&(e.module=t),this},level:function(t){return rl(t)&&(e.level=t),this},brand:function(t){return rl(t)&&(e.brand=t),this},log:function(){if(e.content&&e.content.length)for(var t=0;t<mu.length;t++)if("function"==typeof mu[t])try{mu[t].call(null,e)}catch(r){}return this}}}};function yu(){vu.msg.apply(vu,arguments).log()}function bu(){vu.msg.apply(vu,arguments).level("warn").log()}function wu(){vu.msg.apply(vu,arguments).level("error").log()}var Su={},ku={preset_properties:{search_keyword_baidu:!1,latest_utm:!0,latest_traffic_source_type:!0,latest_search_keyword:!0,latest_referrer:!0,latest_referrer_host:!1,latest_landing_page:!1,latest_wx_ad_click_id:void 0,url:!0,title:!0},encrypt_cookie:!1,enc_cookie:!1,img_use_crossorigin:!1,name:"sa",max_referrer_string_length:200,max_string_length:500,max_id_length:255,max_key_length:100,cross_subdomain:!0,show_log:!1,is_debug:!1,source_channel:[],sdk_id:"",vtrack_ignore:{},auto_init:!0,is_track_single_page:!1,is_single_page:!1,batch_send:!1,source_type:{},callback_timeout:200,datasend_timeout:8e3,is_track_device_id:!1,ignore_oom:!0,app_js_bridge:!1},Eu="utm_source utm_medium utm_campaign utm_content utm_term",Pu="1.25.9",Ou="sensorsdata_domain_test",ju="$identity_login_id";function Au(e){var t=Su.current_domain;switch(typeof t){case"function":var r=t();return""===r||""===nl(r)?"url解析失败":-1!==r.indexOf(".")?r:"url解析失败";case"string":return""===t||""===nl(t)?"url解析失败":-1!==t.indexOf(".")?t:"url解析失败";default:var n=xl(null,Ou);return""===e||""===n?"url解析失败":n}}var Iu={get:function(e){return Pl.get(e)},set:function(e,t,r,n){var i="";if(n=cl(n)?Su.cross_subdomain:n){var o=Au(location.href);"url解析失败"===o&&(o=""),i=o?"; domain="+o:""}return Pl.set(e,t,r,n,Su.set_cookie_samesite,Su.is_secure_cookie,i)},remove:function(e,t){return t=cl(t)?Su.cross_subdomain:t,Pl.remove(e,t)},isSupport:function(e,t){return e=e||"sajssdk_2015_cookie_access_test",t=t||"1",Pl.isSupport(e,t)}};function Tu(){var e=document.referrer;if(!e)return!1;try{var t=ol(e).hostname;return t&&"baidu.com"===t.substring(t.length-"baidu.com".length)}catch(r){return!1}}var Cu={data:{},id:function(){return this.data.id||(this.data.id=Nu()),this.data.id},type:function(){return this.data.type||(this.data.type=xu()),this.data.type}};function xu(){var e=Ul(document.referrer);if(Xl(e)||!e.eqid){var t=Ul(location.href);return e.ck||t.utm_source?"baidu_sem_keyword_id":"baidu_other_keyword_id"}return"baidu_seo_keyword_id"}function Nu(){var e=Ul(document.referrer);return Xl(e)||!e.eqid?al().replace(/-/g,""):e.eqid}function Lu(e,t){return rl(e=e||document.referrer)?(0!==(e=jl(e=nl(e))).indexOf("https://www.baidu.com/")||t||(e=e.split("?")[0]),rl(e=e.slice(0,Su.max_referrer_string_length))?e:""):"取值异常_referrer异常_"+String(e)}function Du(e){return""===(e=e||document.referrer)||xl(Dl(e),Ou)!==xl(null,Ou)}function Ru(e,t){e=e||document.referrer;var r=Su.source_type.keyword;if(document&&rl(e)){if(0===e.indexOf("http")){var n=Uu(e),i=Ul(e);if(Xl(i))return Su.preset_properties.search_keyword_baidu&&Tu()?void 0:"未取到值";var o=null;for(var a in r)if(n===a&&Jc(i))if(ll(o=r[a]))for(a=0;a<o.length;a++){var s=i[o[a]];if(s)return t?{active:s}:s}else if(i[o])return t?{active:i[o]}:i[o];return Su.preset_properties.search_keyword_baidu&&Tu()?void 0:"未取到值"}return""===e?"未取到值_直接打开":"未取到值_非http的url"}return"取值异常_referrer异常_"+String(e)}function Uu(e){var t=Dl(e);if(!t||"hostname解析异常"===t)return"";var r={baidu:[/^.*\.baidu\.com$/],bing:[/^.*\.bing\.com$/],google:[/^www\.google\.com$/,/^www\.google\.com\.[a-z]{2}$/,/^www\.google\.[a-z]{2}
3$/],sm:[/^m\.sm\.cn$/],so:[/^.+\.so\.com$/],sogou:[/^.*\.sogou\.com$/],yahoo:[/^.*\.yahoo\.com$/]};for(var n in r)for(var i=r[n],o=0,a=i.length;o<a;o++)if(i[o].test(t))return n;return"未知搜索引擎"}var Bu={distinct_id:function(){},jssdkDebug:function(){},_sendDebug:function(e){},apph5:function(e){var t="app_h5打通失败-",r={1:t+"use_app_track为false",2:t+"Android或者iOS,没有暴露相应方法",3.1:t+"Android校验server_url失败",3.2:t+"iOS校验server_url失败",4.1:t+"H5 校验 iOS server_url 失败",4.2:t+"H5 校验 Android server_url 失败"},n=e.output,i=e.step,o=e.data||"";"all"!==n&&"console"!==n||yu(r[i]),("all"===n||"code"===n)&&Jc(Su.is_debug)&&Su.is_debug.apph5&&(o.type&&"profile"===o.type.slice(0,7)||(o.properties._jssdk_debug_info="apph5-"+String(i)))},defineMode:function(e){var t={1:{title:"当前页面无法进行可视化全埋点",message:"App SDK 与 Web JS SDK 没有进行打通,请联系贵方技术人员修正 App SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_link-1573913.html"},2:{title:"当前页面无法进行可视化全埋点",message:"App SDK 与 Web JS SDK 没有进行打通,请联系贵方技术人员修正 Web JS SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_link-1573913.html"},3:{title:"当前页面无法进行可视化全埋点",message:"Web JS SDK 没有开启全埋点配置,请联系贵方工作人员修正 SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_web_all-1573964.html"},4:{title:"当前页面无法进行可视化全埋点",message:"Web JS SDK 配置的数据校验地址与 App SDK 配置的数据校验地址不一致,请联系贵方工作人员修正 SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_link-1573913.html"}};return!(!e||!t[e])&&t[e]},protocol:{protocolIsSame:function(e,t){try{if(ol(e).protocol!==ol(t).protocol)return!1}catch(r){return bu("不支持 _.URL 方法"),!1}return!0},serverUrl:function(){rl(Su.server_url)&&""!==Su.server_url&&!this.protocolIsSame(Su.server_url,location.href)&&bu("SDK 检测到您的数据发送地址和当前页面地址的协议不一致,建议您修改成一致的协议。\n因为:1、https 下面发送 http 的图片请求会失败。2、http 页面使用 https + ajax 方式发数据,在 ie9 及以下会丢失数据。")},ajax:function(e){if(e===Su.server_url)return!1;rl(e)&&""!==e&&!this.protocolIsSame(e,location.href)&&bu("SDK 检测到您的数据发送地址和当前页面地址的协议不一致,建议您修改成一致的协议。因为 http 页面使用 https + ajax 方式发数据,在 ie9 及以下会丢失数据。")}}},$u={initPage:function(){var e=Lu(),t=Fl(),r=Au(t);r||Bu.jssdkDebug("url_domain异常_"+t+"_"+r),this.pageProp={referrer:e,referrer_host:e?Dl(e):"",url:t,url_host:Dl(t,"url_host取值异常"),url_domain:r}},pageProp:{},campaignParams:function(){return Fc.kit.getUtmData()},campaignParamsStandard:function(e,t){e=e||"",t=t||"";var r=$u.campaignParams(),n={},i={};return vl(r,(function(r,o,a){-1!==(" "+Eu+" ").indexOf(" "+o+" ")?n[e+o]=a[o]:i[t+o]=a[o]})),{$utms:n,otherUtms:i}},properties:function(){var e=window.innerHeight||document.documentElement.clientHeight||document.body&&document.body.clientHeight||0,t=window.innerWidth||document.documentElement.clientWidth||document.body&&document.body.clientWidth||0;return{$timezone_offset:(new Date).getTimezoneOffset(),$screen_height:Number(screen.height)||0,$screen_width:Number(screen.width)||0,$viewport_height:e,$viewport_width:t,$lib:"js",$lib_version:Pu}},currentProps:{},register:function(e){bl($u.currentProps,e)}};function Mu(e,t){var r="";if(t=t||location.href,!1===Su.cross_subdomain){try{r=ol(t).hostname}catch(n){wu(n)}r="string"==typeof r&&""!==r?"sajssdk_2015_"+Su.sdk_id+e+"_"+r.replace(/\./g,"_"):"sajssdk_2015_root_"+Su.sdk_id+e}else r="sajssdk_2015_cross_"+Su.sdk_id+e;return r}function Fu(){return Iu.isSupport()?null!==Iu.get("sensorsdata_is_new_user")||null!==Iu.get(Mu("new_user")):null!==Hu.get(Hu.getNewUserFlagMemoryKey("new_user"))}Iu.getNewUser=Fu;var Hu={data:{},get:function(e){var t=this.data[e];return void 0===t?null:void 0!==t._expirationTimestamp_?(new Date).getTime()>t._expirationTimestamp_?null:t.value:t},set:function(e,t,r){if(r){var n=new Date;t={value:t,_expirationTimestamp_:"s"===String(r).slice(-1)?n.getTime()+1e3*Number(String(r).slice(0,-1)):n.getTime()+24*r*60*60*1e3}}this.data[e]=t},getNewUserFlagMemoryKey:function(e){return"sajssdk_2015_"+Su.sdk_id+e}},qu={checkIsAddSign:function(e){"track"===e.type&&(Fu()?e.properties.$is_first_day=!0:e.properties.$is_first_day=!1)},is_first_visit_time:!1,is_page_first_visited:!1,checkIsFirstTime:function(e){"track"===e.type&&"$pageview"===e.event&&(this.is_first_visit_time?(e.properties.$is_first_time=!0,this.is_first_visit_time=!1):e.properties.$is_first_time=!1)},setDeviceId:function(e,t){var r=null,n=Iu.get("sensorsdata2015jssdkcross"+Fc.para.sdk_id),i={};null!=(n=Fc.kit.userDecryptIfNeeded(n))&&eu(n)&&(i=JSON.parse(n)).$device_id&&(r=i.$device_id),r=r||e,!0===Fc.para.cross_subdomain?t.set("$device_id",r):(i.$device_id=r,i=JSON.stringify(i),Fc.para.encrypt_c
3ookie&&(i=Fc.kit.userEncrypt(i)),Iu.set("sensorsdata2015jssdkcross"+Fc.para.sdk_id,i,null,!0)),Fc.para.is_track_device_id&&($u.currentProps.$device_id=r)},storeInitCheck:function(){if(Fc.is_first_visitor){var e=new Date,t={h:23-e.getHours(),m:59-e.getMinutes(),s:59-e.getSeconds()};Iu.isSupport()?Iu.set(Mu("new_user"),"1",3600*t.h+60*t.m+t.s+"s"):Hu.set(Hu.getNewUserFlagMemoryKey("new_user"),"1",3600*t.h+60*t.m+t.s+"s"),this.is_first_visit_time=!0,this.is_page_first_visited=!0}else Fu()||(this.checkIsAddSign=function(e){"track"===e.type&&(e.properties.$is_first_day=!1)}),this.checkIsFirstTime=function(e){"track"===e.type&&"$pageview"===e.event&&(e.properties.$is_first_time=!1)}}};function Vu(e,t,r){var n=!(!Jc(Su.heatmap)||!Su.heatmap.useCapture);return Jc(Su.heatmap)&&cl(Su.heatmap.useCapture)&&"click"===t&&(n=!0),fl(e,t,r,n)}var zu=function(){this._events=[],this.pendingEvents=[]};function Ju(){function e(e,t){for(var r=0;r<e.length;r++)if(-1!==t.split("?")[0].indexOf(e[r]))return!0}var t="("+Su.source_type.utm.join("|")+")\\=[^&]+",r=Su.source_type.search,n=Su.source_type.social,i=document.referrer||"",o=$u.pageProp.url;if(o){var a=o.match(new RegExp(t));return a&&a[0]?"付费广告流量":e(r,i)?"自然搜索流量":e(n,i)?"社交网站流量":""===i?"直接流量":"引荐流量"}return"获取url异常"}function Wu(e){var t=Bl(e,"gdt_vid"),r=Bl(e,"hash_key"),n=Bl(e,"callbacks"),i={click_id:"",hash_key:"",callbacks:""};return rl(t)&&t.length&&(i.click_id=16==t.length||18==t.length?t:"参数解析不合法",rl(r)&&r.length&&(i.hash_key=r),rl(n)&&n.length&&(i.callbacks=n)),i}function Ku(e){var t=e.properties,r=JSON.parse(JSON.stringify(e));Jc(t)&&vl(t,(function(e,n){if(Hc(e))try{t[n]=e(r),Hc(t[n])&&(bu("您的属性- "+n+" 格式不满足要求,我们已经将其删除"),delete t[n])}catch(i){delete t[n],bu("您的属性- "+n+" 抛出了异常,我们已经将其删除")}}))}function Gu(e){if(Jc(e)&&e.$option){var t=e.$option;return delete e.$option,t}return{}}function Qu(e){var t={};return vl(e,(function(e,r){null!=e&&(t[r]=e)})),t}function Xu(e){if(!sl(e.target))return!1;var t=e.target,r=t.tagName.toLowerCase(),n={};return n.$element_type=r,n.$element_name=t.getAttribute("name"),n.$element_id=t.getAttribute("id"),n.$element_class_name=rl(t.className)?t.className:null,n.$element_target_url=t.getAttribute("href"),n.$element_content=Yu(t,r),(n=Qu(n)).$url=Fl(),n.$url_path=Hl(),n.$title=document.title,n}function Yu(e,t){return rl(t)&&"input"===t.toLowerCase()?function(e){var t=Su.heatmap&&Hc(Su.heatmap.collect_input)&&Su.heatmap.collect_input(e);return("button"===e.type||"submit"===e.type||t)&&e.value||""}(e):Ll(e,t)}function Zu(e){return Bu.protocol.ajax(e.url),wl(e)}function ep(e){if("string"==typeof e&&(e=nl(e))&&("://"===e.slice(0,3)?e=location.protocol.slice(0,-1)+e:"//"===e.slice(0,2)?e=location.protocol+e:"http"!==e.slice(0,4)&&(e="")),ll(e)&&e.length)for(var t=0;t<e.length;t++)/sa\.gif[^\/]*$/.test(e[t])||(e[t]=e[t].replace(/\/sa$/,"/sa.gif").replace(/(\/sa)(\?[^\/]+)$/,"/sa.gif$2"));else/sa\.gif[^\/]*$/.test(e)||"string"!=typeof e||(e=e.replace(/\/sa$/,"/sa.gif").replace(/(\/sa)(\?[^\/]+)$/,"/sa.gif$2"));return e}function tp(e){rl(e)||(e=JSON.stringify(e));var t=El(e),r="crc="+zl(t);return"data="+encodeURIComponent(t)+"&ext="+encodeURIComponent(r)}zu.prototype={emit:function(e){var t=[].slice.call(arguments,1);vl(this._events,(function(r){r.type===e&&r.callback.apply(r.context,t)})),this.pendingEvents.push({type:e,data:t}),this.pendingEvents.length>20&&this.pendingEvents.shift()},on:function(e,t,r,n){Hc(t)&&(this._events.push({type:e,callback:t,context:r||this}),n=!1!==n,this.pendingEvents.length>0&&n&&vl(this.pendingEvents,(function(n){n.type===e&&t.apply(r,n.data)})))},tempAdd:function(e,t){if(t&&e)return this.emit(e,t)},isReady:function(){}};var rp=function(e){this.callback=e.callback,this.server_url=e.server_url,this.data=e.data};rp.prototype.start=function(){var e=this;Zu({url:this.server_url,type:"POST",data:this.data,credentials:!1,timeout:Su.datasend_timeout,cors:!0,success:function(){e.end()},error:function(){e.end()}})},rp.prototype.end=function(){if(this.callback){if(yu("warning: sdk callback is deprecated."),!Hc(this.callback))return void yu("error: sdk callback must be function.");this.callback()}};var np="sawebjssdk-",ip="tab-sawebjssdk-";function op(){this.sendTimeStamp=0,this.timer=null,this.serverUrl="",this.hasTabStorage=!1}op.prototype={batchInterval:function(){""===this.serverUrl&&this.get
3ServerUrl(),this.hasTabStorage||(this.generateTabStorage(),this.hasTabStorage=!0);var e=this;e.timer=setTimeout((function(){e.updateExpireTime(),e.recycle(),e.send(),clearTimeout(e.timer),e.batchInterval()}),Su.batch_send.send_interval)},getServerUrl:function(){if(!(rl(Su.server_url)&&""!==Su.server_url||ll(Su.server_url)&&Su.server_url.length))return wu("当前 server_url 为空或不正确,只在控制台打印日志,network 中不会发数据,请配置正确的 server_url!");this.serverUrl=ll(Su.server_url)?Su.server_url[0]:Su.server_url},send:function(){if(!(this.sendTimeStamp&&qc()-this.sendTimeStamp<Su.batch_send.datasend_timeout)){var e=zc.get(this.tabKey);if(e){this.sendTimeStamp=qc();var t=du((e=Qc(e)||this.generateTabStorageVal()).data);if(t.length){for(var r=[],n=0;n<t.length;n++){var i=Fc.store.readObjectVal(t[n]);i&&(i._flush_time=(new Date).getTime(),r.push(i))}r.length&&this.request(r,e.data)}}}},updateExpireTime:function(){var e=zc.get(this.tabKey);e&&((e=Qc(e)||this.generateTabStorageVal()).expireTime=qc()+2*Su.batch_send.send_interval,e.serverUrl=this.serverUrl,zc.set(this.tabKey,JSON.stringify(e)))},request:function(e,t){var r=this;Zu({url:this.serverUrl,type:"POST",data:"data_list="+encodeURIComponent(El(JSON.stringify(e))),credentials:!1,timeout:Su.batch_send.datasend_timeout,cors:!0,success:function(){r.remove(t),r.sendTimeStamp=0},error:function(){r.sendTimeStamp=0}})},remove:function(e){var t=zc.get(this.tabKey);if(t){for(var r=(Qc(t)||this.generateTabStorageVal()).data,n=0;n<e.length;n++){var i=Wl(r,e[n]);i>-1&&r.splice(i,1),zc.remove(e[n])}r=du(r),zc.set(this.tabKey,JSON.stringify(this.generateTabStorageVal(r)))}},add:function(e){var t=np+String(Gc()),r=zc.get(this.tabKey);null===r?(this.tabKey=ip+String(Gc()),r=this.generateTabStorageVal()):r=Qc(r)||this.generateTabStorageVal(),r.data.push(t),r.expireTime=qc()+2*Su.batch_send.send_interval,zc.set(this.tabKey,JSON.stringify(r)),Fc.store.saveObjectVal(t,e),"track_signup"!==e.type&&"$pageview"!==e.event||this.sendImmediately()},generateTabStorage:function(){this.tabKey=ip+String(Gc()),zc.set(this.tabKey,JSON.stringify(this.generateTabStorageVal()))},generateTabStorageVal:function(e){return{data:e=e||[],expireTime:qc()+2*Su.batch_send.send_interval,serverUrl:this.serverUrl}},sendImmediately:function(){this.send()},recycle:function(){for(var e={},t=0;t<localStorage.length;t++){var r=localStorage.key(t),n=this;if(0===r.indexOf(ip)){for(var i=Qc(zc.get(r))||this.generateTabStorageVal(),o=0;o<i.data.length;o++)e[i.data[o]]=!0;r!==n.tabKey&&qc()>i.expireTime&&this.serverUrl===i.serverUrl&&new Xc("sajssdk-lock-get-").get(r,1e4,1e3,(function(e){if(e){null===zc.get(n.tabKey)&&n.generateTabStorage();var t=Qc(e)||n.generateTabStorageVal(),r=Qc(zc.get(n.tabKey))||n.generateTabStorageVal();r.data=du(r.data.concat(t.data)),zc.set(n.tabKey,JSON.stringify(r))}}))}else if(0===r.indexOf("sajssdk-lock-get-")){var a=Qc(zc.get(r))||{expireTime:0};qc()-a.expireTime>1e4&&zc.remove(r)}}for(var s=0;s<localStorage.length;s++){var c=localStorage.key(s);0!==c.indexOf(np)||e[c]||zc.remove(c)}}};var ap=function(e){this.callback=e.callback,this.server_url=e.server_url,this.data=e.data};ap.prototype.start=function(){var e=this;"object"==typeof navigator&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(this.server_url,this.data),setTimeout((function(){e.end()}),40)},ap.prototype.end=function(){if(this.callback){if(yu("warning: sdk callback is deprecated."),!Hc(this.callback))return void yu("error: sdk callback must be function.");this.callback()}};var sp=function(e){this.callback=e.callback,this.img=document.createElement("img"),this.img.width=1,this.img.height=1,Su.img_use_crossorigin&&(this.img.crossOrigin="anonymous"),this.server_url=e.data};sp.prototype.start=function(){var e=this;Su.ignore_oom&&(this.img.onload=function(){this.onload=null,this.onerror=null,this.onabort=null,e.end()},this.img.onerror=function(){this.onload=null,this.onerror=null,this.onabort=null,e.end()},this.img.onabort=function(){this.onload=null,this.onerror=null,this.onabort=null,e.end()}),this.img.src=this.server_url},sp.prototype.lastClear=function(){void 0!==Ml().ie?this.img.src="about:blank":this.img.src=""},sp.prototype.end=function(){if(this.callback){if(yu("warning: sdk callback is deprecated."),!Hc(this.callback))return void yu("error: sdk callback must be function.");this.callback()}var e=this;setTimeout((function(){e.lastClear&&e.lastClear()}),Su.datasend_timeout-Su.callback_timeout)};var cp={__proto__:null,addEvent:Vu,EventEmitterSa:zu,cookie:Iu,info:$u,getReferrer:Lu,getCurrentDomain:Au,isBaiduTraffic:Tu,getReferrerEqid:Nu,getReferrerEqidType:xu,getBaiduKeyword:Cu,isReferralTraffic:Du,getKeywordFromReferrer:Ru,getReferSearchEngine:Uu,getSourceFromReferrer:Ju,getWxAdIdFromUrl:Wu,parseSuperProperties:Ku,searchConfigData:Gu,strip_empty_properties:Qu,getEleInfo:Xu,getElementContent:Yu,ajax:Zu,optimizeServerUrl:ep,encodeTrackData:tp,AjaxSend:rp,BatchSend:op,BeaconSend:ap,ImageSend:sp},lp=new zu,up={requests:[],_sessionState:{},_state:{distinct_id:"",first_id:"",props:{},identities:{}},getProps:function(){return this._state.props||{}},getSessionProps:function(){return this._sessionState},getOriginDistinctId:function(){return this._state._distinct_id||this._state.distinct_id},getOriginUnionId:function(e){var t={},r=(e=e||this._state)._first_id||e.first_id,n=e._distinct_id||e.distinct_id;return r&&n?(t.login_id=n,t.anonymous_id=r):t.anonymous_id=n,t},getDistinctId:function(){var e=this.getUnionId();return e.login_id||e.anonymous_id},getUnionId:function(e){var t=this.getOriginUnionId(e);
3return t.login_id&&this._state.history_login_id&&this._state.history_login_id.name&&this._state.history_login_id.name!==ju&&(t.login_id=this._state.history_login_id.name+"+"+t.login_id),t},getFirstId:function(){return this._state._first_id||this._state.first_id},initSessionState:function(){var e=Iu.get("sensorsdata2015session"),t=null;null!==(e=Fc.kit.userDecryptIfNeeded(e))&&"object"==typeof(t=Qc(e))&&(this._sessionState=t||{})},setOnce:function(e,t){e in this._state||this.set(e,t)},set:function(e,t){this._state=this._state||{};var r=this._state.distinct_id;this._state[e]=t,"first_id"===e?delete this._state._first_id:"distinct_id"===e&&delete this._state._distinct_id,this.save(),"distinct_id"===e&&r&&lp.tempAdd("changeDistinctId",t)},change:function(e,t){this._state["_"+e]=t},setSessionProps:function(e){Fc.log("initSessionState 方法已经弃用,请不要使用该功能,如有需求联系技术顾问");var t=this._sessionState;bl(t,e),this.sessionSave(t)},setSessionPropsOnce:function(e){Fc.log("initSessionState 方法已经弃用,请不要使用该功能,如有需求联系技术顾问");var t=this._sessionState;Ol(t,e),this.sessionSave(t)},setProps:function(e,t){var r={};for(var n in r=t?e:bl(this._state.props||{},e))"string"==typeof r[n]&&(r[n]=r[n].slice(0,Fc.para.max_referrer_string_length));this.set("props",r)},setPropsOnce:function(e){var t=this._state.props||{};Ol(t,e),this.set("props",t)},clearAllProps:function(e){var t;if(this._sessionState={},ll(e)&&e.length>0)for(t=0;t<e.length;t++)rl(e[t])&&-1===e[t].indexOf("latest_")&&Jc(this._state.props)&&e[t]in this._state.props&&delete this._state.props[e[t]];else if(Jc(this._state.props))for(t in this._state.props)1!==t.indexOf("latest_")&&delete this._state.props[t];this.sessionSave({}),this.save()},sessionSave:function(e){Fc.log("initSessionState 方法已经弃用,请不要使用该功能,如有需求联系技术顾问"),this._sessionState=e;var t=JSON.stringify(this._sessionState);
3Fc.para.encrypt_cookie&&(t=Fc.kit.userEncrypt(t)),Iu.set("sensorsdata2015session",t,0)},save:function(){var e=JSON.parse(JSON.stringify(this._state));delete e._first_id,delete e._distinct_id,e.identities&&(e.identities=El(JSON.stringify(e.identities)));var t=JSON.stringify(e);Fc.para.encrypt_cookie&&(t=Fc.kit.userEncrypt(t)),Iu.set(this.getCookieName(),t,73e3,Fc.para.cross_subdomain)},getCookieName:function(){var e="";if(!1===Fc.para.cross_subdomain){try{e=ol(location.href).hostname}catch(t){bu(t)}e="string"==typeof e&&""!==e?"sa_jssdk_2015_"+Fc.para.sdk_id+e.replace(/\./g,"_"):"sa_jssdk_2015_root"+Fc.para.sdk_id}else e="sensorsdata2015jssdkcross"+Fc.para.sdk_id;return e},init:function(){this.initSessionState();var e,t,r,n=al();Iu.isSupport()&&(e=Iu.get(this.getCookieName()),t=Qc(e=Fc.kit.userDecryptIfNeeded(e))),Iu.isSupport()&&null!==e&&eu(e)&&Jc(t)&&(!Jc(t)||t.distinct_id)?(up._state=bl(function(e){var t;e.identities&&(0===e.identities.indexOf("\n/")?e.identities=Qc(su(e.identities)):e.identities=Qc(kl(e.identities)));var r=up.getOriginUnionId(e);e.identities&&Jc(e.identities)&&!Xl(e.identities)||(e.identities={},e.identities.$identity_cookie_id=al()),e.history_login_id=e.history_login_id||{};var n=e.history_login_id.name;if(r.login_id)if(n&&e.identities.hasOwnProperty(n)){if(e.identities[n]!==r.login_id){for(t in e.identities[n]=r.login_id,e.identities)e.identities.hasOwnProperty(t)&&"$identity_cookie_id"!==t&&t!==n&&delete e.identities[t];e.history_login_id.value=r.login_id}}else{var i=n||ju;for(t in e.identities[i]=r.login_id,e.identities)e.identities.hasOwnProperty(t)&&"$identity_cookie_id"!==t&&t!==i&&delete e.identities[t];e.history_login_id={name:i,value:r.login_id}}else{if(e.identities.hasOwnProperty("$identity_login_id")||e.identities.hasOwnProperty(n))for(t in e.identities)e.identities.hasOwnProperty(t)&&"$identity_cookie_id"!==t&&"$identity_anonymous_id"!==t&&delete e.identities[t];e.history_login_id={name:"",value:""}}return e}(t)),up.save()):(Fc.is_first_visitor=!0,r=n,up.set("distinct_id",r),up.set("identities",{$identity_cookie_id:r}),up.set("history_login_id",{name:"",value:""})),qu.setDeviceId(n,this),qu.storeInitCheck()},saveObjectVal:function(e,t){rl(t)||(t=JSON.stringify(t)),1==Fc.para.encrypt_c
vendor: 9,376 bytes, line 3
3ookie&&(t=Fc.kit.userEncrypt(t)),zc.set(e,t)},readObjectVal:function(e){var t=zc.get(e);return t?Qc(t=Fc.kit.userDecryptIfNeeded(t)):null}},pp={string:function(e){bu(e+" must be string")},emptyString:function(e){bu(e+"'s is empty")},regexTest:function(e){bu(e+" is invalid")},idLength:function(e){bu(e+" length is longer than "+Su.max_id_length)},keyLength:function(e){bu(e+" length is longer than "+Su.max_key_length)},stringLength:function(e){bu(e+" length is longer than "+Su.max_string_length)},voidZero:function(e){bu(e+"'s is undefined")},reservedLoginId:function(e){bu(e+" is invalid")},reservedBind:function(e){bu(e+" is invalid")},reservedUnbind:function(e){bu(e+" is invalid")}},dp={regName:/^((?!^distinct_id$|^original_id$|^time$|^properties$|^id$|^first_id$|^second_id$|^users$|^events$|^event$|^user_id$|^date$|^datetime$|^user_tag.*|^user_group.*)[a-zA-Z_$][a-zA-Z\d_$]*)$/i,loginIDReservedNames:["$identity_anonymous_id","$identity_cookie_id"],bindReservedNames:["$identity_login_id","$identity_anonymous_id","$identity_cookie_id"],unbindReservedNames:["$identity_anonymous_id",ju],string:function(e){return!!rl(e)},emptyString:function(e){return!(!rl(e)||0===nl(e).length)},regexTest:function(e){return!(!rl(e)||!this.regName.test(e))},idLength:function(e){return!(!rl(e)||e.length>Su.max_id_length)},keyLength:function(e){return!(!rl(e)||e.length>Su.max_key_length)},stringLength:function(e){return!(!rl(e)||e.length>Su.max_string_length)},voidZero:function(e){return void 0!==e},reservedLoginId:function(e){return!(Wl(this.loginIDReservedNames,e)>-1)},reservedUnbind:function(e){return!(Wl(this.unbindReservedNames,e)>-1)},reservedBind:function(e){var t=up._state.history_login_id;return!(t&&t.name&&t.name===e||Wl(this.bindReservedNames,e)>-1)}},fp={distinct_id:{rules:["string","emptyString","idLength"],onComplete:function(e,t,r){return!e&&("emptyString"===r&&(t="Id"),Hc(pp[r])&&pp[r](t),"idLength"===r)||e}},event:{rules:["string","emptyString","keyLength","regexTest"],onComplete:function(e,t,r){return e||("emptyString"===r&&(t="eventName"),Hc(pp[r])&&pp[r](t)),!0}},propertyKey:{rules:["string","emptyString","keyLength","regexTest"],onComplete:function(e,t,r){return e||("emptyString"===r&&(t="Property key"),Hc(pp[r])&&pp[r](t)),!0}},propertyValue:{rules:["voidZero"],onComplete:function(e,t,r){return e||Hc(pp[r])&&pp[r]("Property Value"),!0}},properties:function(e){return Jc(e)?vl(e,(function(e,t){gp({propertyKey:t}),gp({propertyValue:e},(function(e,r,n){return e||(r=t+"'s Value",Hc(pp[n])&&pp[n](r)),!0}))})):dp.voidZero(e)&&bu("properties可以没有,但有的话必须是对象"),!0},propertiesMust:function(e){return void 0!==e&&Jc(e)&&!Xl(e)?this.properties.call(this,e):bu("properties必须是对象"),!0},item_type:{rules:["string","emptyString","keyLength","regexTest"],onComplete:function(e,t,r){return e||("emptyString"===r&&(t="item_type"),Hc(pp[r])&&pp[r](t)),!0}},item_id:{rules:["string","emptyString","stringLength"],onComplete:function(e,t,r){return e||("emptyString"===r&&(t="item_id"),Hc(pp[r])&&pp[r](t)),!0}},loginIdKey:{rules:["string","emptyString","keyLength","regexTest","reservedLoginId"],onComplete:function(e,t,r){return!e&&("emptyString"===r&&(t="login_id_key"),Hc(pp[r])&&pp[r](t),"keyLength"===r)||e}},bindKey:{rules:["string","emptyString","keyLength","regexTest","reservedBind"],onComplete:function(e,t,r){return!e&&("emptyString"===r&&(t="Key"),Hc(pp[r])&&pp[r](t),"keyLength"===r)||e}},unbindKey:{rules:["string","emptyString","keyLength","regexTest","reservedUnbind"],onComplete:function(e,t,r){return!e&&("emptyString"===r&&(t="Key"),Hc(pp[r])&&pp[r](t),"keyLength"===r)||e}},bindValue:{rules:["string","emptyString","idLength"],onComplete:function(e,t,r){return!e&&("emptyString"===r&&(t="Value"),Hc(pp[r])&&pp[r](t),"idLength"===r)||e}},check:function(e,t,r){var n=this[e];if(Hc(n))return n.call(this,t);if(!n)return!1;for(var i=0;i<n.rules.length;i++){var o=n.rules[i],a=dp[o](t),s=Hc(r)?r(a,t,o):n.onComplete(a,t,o);if(!a)return s}return!0}};function gp(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!fp.check(r,e[r],t))return!1;return!0}function hp(e){var t=["$element_selector","$element_path"],r=["sensorsdata_app_visual_properties"];Jc(e)&&vl(e,(function(n,i){if(Jc(n))hp(e[i]);else if(rl(n)){if(Wl(r,i)>-1)return;e[i]=function(e,t){return tu(t)&&e.length>t?(bu("字符串长度超过限制,已经做截取--"+e),e.slice(0,t)):e}(n,Wl(t,i)>-1?1024:Su.max_string_length)}}))}var _p={initUrl:function(){var e,t,r={server_url:{project:"",host:""},page_url:{host:"",pathname:""}};if(!Yl(Fc.para.server_url))return wu("----vcollect---server_url必须为有效 URL 字符串"),!1;try{e=ol(Fc.para.server_url),r.server_url.project=e.searchParams.get("project")||"default",r.server_url.host=e.host}catch(n){return wu("----vcollect---server_url解析异常",n),!1}try{t=ol(location.href),r.page_url.host=t.hostname,r.page_url.pathname=t.pathname}catch(n){return wu("----vcollect---页面地址解析异常",n),!1}return r},isDiv:function(e){return!e.element_path||"div"===nl(e.element_path.split(">").pop()).slice(0,3)},configIsMatchNew:function(e,t){if(rl(e.$element_selector)&&rl(t.element_selector)){if("element_selector"===t.element_field&&"equal"===t.function)return e.$element_selector===t.element_selector;if("element_selector"===t.element_field&&"contain"===t.function)return e.$element_selector.indexOf(t.element_selector)>-1}if(rl(e.$element_path)&&rl(t.element_path)){if("element_path"===t.element_field&&"equal"===t.function)return e.$element_path===t.element_path;if("element_path"===t.element_field&&"contain"===t.function)return e.$element_path.indexOf(t.element_path)>-1}return!1},configIsMatch:function(e,t){return(!t.limit_element_content||t.element_content===e.$element_content)&&(!t.limit_element_position||t.element_position===String(e.$element_position))&&(t.element_field&&t.function?_p.configIsMatchNew(e,t):_p.configIsMatchOldVersion(e,t))},configIsMatchOldVersion:function(e,t){if(!t.element_path)return!1;if(void 0!==e.$element_position){if(t.element_path!==e.$element_path)return!1}else if(_p.isDiv({element_path:t.element_path})){if(e.$element_path.indexOf(t.element_path)<0)return!1}else if(t.element_path!==e.$element_path)return!1;return!0},filterConfig:function(e,t,r){var n=[];if(!r){var i=_p.initUrl();if(!i)return[];r=i.page_url}return"$WebClick"===e.event&&vl(t,(function(t){Jc(t)&&("webclick"===t.event_type||"appclick"===t.event_type)&&Jc(t.event)&&t.event.url_host===r.host&&t.event.url_path===r.pathname&&_p.configIsMatch(e.properties,t.event)&&n.push(t)})),n},getPropElInLi:function(e,t){if(!(e&&sl(e)&&rl(t)))return null;if("li"!==e.tagName.toLowerCase())return null;var r=Fc.heatmap.getDomSelector(e);return r?Nl(r+t)||null:(bu("----custom---获取同级属性元素失败,selector信息异常",r,t),null)},getProp:function(e,t){if(!Jc(e))return!1;if(!(rl(e.name)&&e.name.length>0))return bu("----vcustom----属性名不合法,属性抛弃",e.name),!1;var r,n,i={};if("content"===e.method){var o;if(rl(e.element_selector)&&e.element_selector.length>0)o=Nl(e.element_selector);else{if(!t||!rl(e.list_selector))return bu("----vcustom----属性配置异常,属性抛弃",e.name),!1;var a=Nl(t.properties.$element_selector);if(!a)return bu("----vcustom----点击元素获取异常,属性抛弃",e.name),!1;var s=Fc.heatmap.getClosestLi(a);o=_p.getPropElInLi(s,e.list_selector)}if(!o||!sl(o))return bu("----vcustom----属性元素获取失败,属性抛弃",e.name),!1;if("input"===o.tagName.toLowerCase())r=o.value||"";else if("select"===o.tagName.toLowerCase()){var c=o.selectedIndex;tu(c)&&sl(o[c])&&(r=Yu(o[c],"select"))}else r=Yu(o,o.tagName.toLowerCase());if(e.regular){try{n=new RegExp(e.regular).exec(r)}catch(l){return bu("----vcustom----正则处理失败,属性抛弃",e.name),!1}if(null===n)return bu("----vcustom----属性规则处理,未匹配到结果,属性抛弃",e.name),!1;if(!ll(n)||!rl(n[0]))return bu("----vcustom----正则处理异常,属性抛弃",e.name,n),!1;r=n[0]}if("STRING"===e.type)i[e.name]=r;else if("NUMBER"===e.type){if(r.length<1)return bu("----vcustom----未获取到数字内容,属性抛弃",e.name,r),!1;if(isNaN(Number(r)))return bu("----vcustom----数字类型属性转换失败,属性抛弃",e.name,r),!1;i[e.name]=Number(r)}return i}return wu("----vcustom----属性不支持此获取方式",e.name,e.method),!1},getAssignConfigs:function(e,t){var r=_p.initUrl();if(!r||!r.page_url)return[];if(!Jc(t))return[];var n=[];return t.events=t.events||t.eventList,ll(t.events)&&t.events.length>0?(vl(t.events,(function(t){Jc(t)&&Jc(t.event)&&t.event.url_host===r.page_url.host&&t.event.url_path===r.page_url.pathname&&e(t)&&n.push(t)})),n):[]}},mp={events:[],getAssignConfigs:_p.getAssignConfigs,filterConfig:_p.filterConfig,getProp:_p.getProp,initUrl:_p.initUrl,updateEvents:function(e){ll(e)&&(this.events=e)},init:function(){this.initAppGetPropsBridge()},geth5Props:function(e){var t={},r=[],n=this;if(!this.events.length)return{};if("$WebClick"===e.event){var i=this.filterConfig(e,this.events);if(!i.length)return{};vl(i,(function(i){Jc(i)&&(ll(i.properties)&&i.properties.length>0&&vl(i.properties,(function(r){if(Jc(r))if(!1===r.h5)ll(t.sensorsdata_app_visual_properties)||(t.sensorsdata_app_visual_properties=[]),t.sensorsdata_app_visual_properties.push(r);else{var i=n.getProp(r,e);
3Jc(i)&&(t=bl(t,i))}})),rl(i.event_name)&&r.push(i.event_name))})),Fc.bridge.hasVisualModeBridge()&&(t.sensorsdata_web_visual_eventName=r)}return t.sensorsdata_app_visual_properties&&(t.sensorsdata_app_visual_properties=El(JSON.stringify(t.sensorsdata_app_visual_properties))),t},initAppGetPropsBridge:function(){var e=this,t=new Fc.SDKJSBridge("getJSVisualProperties");return t.onAppNotify((function(r){var n={};try{r=JSON.parse(kl(r))}catch(a){wu("getJSVisualProperties data parse error!")}if(Jc(r)){var i=r.sensorsdata_js_visual_properties,o=e.initUrl();o&&(o=o.page_url,ll(i)&&i.length>0&&vl(i,(function(t){if(Jc(t)&&t.url_host===o.host&&t.url_path===o.pathname&&t.h5){var r=e.getProp(t);Jc(r)&&(n=bl(n,r))}})))}return"android"===Fc.bridge.bridge_info.platform&&t.notifyApp({data:n},r.message_id),n})),t}},vp={events:[],customProp:mp,getAssignConfigs:_p.getAssignConfigs,initUrl:_p.initUrl,init:function(){if(this.initUrl()){var e=this.getConfigFromApp();e&&this.updateConfigs(e),this.customProp.init(),this.initAppUpdateConfigBridge()}},initAppUpdateConfigBridge:function(){var e=this;return new Fc.SDKJSBridge("updateH5VisualConfig").onAppNotify((function(t){if(t){try{t=JSON.parse(kl(t))}catch(r){return void wu("updateH5VisualConfig result parse error!")}e.updateConfigs(t)}}))},getConfigFromApp:function(){var e=new Fc.SDKJSBridge("sensorsdata_get_app_visual_config").notifyApp();if(e)try{e=JSON.parse(kl(e))}catch(t){e=null,wu("getAppVisualConfig result parse error!")}return e},updateConfigs:function(e){this.events=this.filterConfigs(e),this.customProp.updateEvents(this.events)},filterConfigs:function(e){return this.getAssignConfigs((function(e){return!(!Jc(e)||!1===e.h5)}),e)}},yp={events:[],init:function(e){this.filterWebClickEvents(e)},filterWebClickEvents:function(e){this.events=wp.getAssignConfigs((function(e){return!(!Jc(e)||!0!==e.event.unlimited_div||"webclick"!==e.event_type)}),e)},isTargetEle:function(e){var t=Fc.heatmap.getEleDetail(e);if(!Jc(t)||!rl(t.$element_path))return!1;for(var r=0;r<this.events.length;r++)if(Jc(this.events[r])&&Jc(this.events[r].event)&&wp.configIsMatch(t,this.events[r].event))return!0;return!1}},bp={events:[],configSwitch:!1,collectAble:function(){return this.configSwitch&&Jc(Fc.para.heatmap)&&Fc.para.heatmap.get_vtrack_config},updateEvents:function(e){this.events=wp.getAssignConfigs((function(e){return!!(Jc(e)&&ll(e.properties)&&e.properties.length>0)}),e),this.events.length?this.configSwitch=!0:this.configSwitch=!1},getVtrackProps:function(e){var t={};return this.collectAble()?("$WebClick"===e.event&&(t=this.clickCustomPropMaker(e,this.events)),t):{}},clickCustomPropMaker:function(e,t,r){var n=this;r=r||this.filterConfig(e,t,wp.url_info.page_url);var i={};return r.length?(vl(r,(function(t){ll(t.properties)&&t.properties.length>0&&vl(t.properties,(function(t){var r=n.getProp(t,e);Jc(r)&&bl(i,r)}))})),i):{}},getProp:_p.getProp,getPropElInLi:_p.getPropElInLi,filterConfig:_p.filterConfig},wp={unlimitedDiv:yp,config:{},storageEnable:!0,storage_name:"webjssdkvtrackcollect",para:{session_time:18e5,timeout:5e3,update_interval:18e5},url_info:{},timer:null,update_time:null,customProp:bp,initUrl:function(){var e=_p.initUrl();if(e){var t;try{(t=new il(Fc.para.server_url))._values.Path="/config/visualized/Web.conf",e.api_url=t.getUrl()}catch(r){return wu("----vtrackcollect---API地址解析异常",r),!1}this.url_info=e}return e},init:function(){if(!Jc(Fc.para.heatmap)||!Fc.para.heatmap.get_vtrack_config)return!1;if(zc.isSupport()||(this.storageEnable=!1),!this.initUrl())return wu("----vtrackcustom----初始化失败,url信息解析失败"),!1;if(this.storageEnable){var e=up.readObjectVal(this.storage_name);if(Jc(e)&&Jc(e.data))if(this.serverUrlIsSame(e.serverUrl)){this.config=e.data,this.update_time=e.updateTime,this.updateConfig(e.data);var t=(new Date).getTime()-this.update_time;if(tu(t)&&t>0&&t<this.para.session_time){var r=this.para.update_interval-t;this.setNextFetch(r)}else this.getConfigFromServer()}else this.getConfigFromServer();else this.getConfigFromServer()}else this.getConfigFromServer();this.pageStateListenner()},serverUrlIsSame:function(e){return!!Jc(e)&&e.host===this.url_info.server_url.host&&e.project===this.url_info.server_url.project},getConfigFromServer:function(){var e=this;this.sendRequest((function(t,r){e.update_time=(new Date).getTime();var n={};200===t?r&&Jc(r)&&"Web"===r.os&&(n=r,e.updateConfig(n)):205===t?e.updateConfig(n):304===t?n=e.config:(wu("----vtrackcustom----数据异常",t),e.updateConfig(n)),e.updateStorage(n),e.setNextFetch()}),(function(t){e.update_time=(new Date).getTime(),wu("----vtrackcustom----配置拉取失败",t),e.setNextFetch()}))},setNextFetch:function(e){var t=this;this.timer&&(clearTimeout(this.timer),this.timer=null),e=e||this.para.update_interval,this.timer=setTimeout((function(){t.getConfigFromServer()}),e)},pageStateListenner:function(){var e=this;nu({visible:function(){var t=(new Date).getTime()-e.update_time;if(tu(t)&&t>0&&t<e.para.update_interval){var r=e.para.update_interval-t;e.setNextFetch(r)}else e.getConfigFromServer()},hidden:function(){e.timer&&(clearTimeout(e.timer),e.timer=null)}})},updateConfig:function(e){if(!Jc(e))return!1;this.config=e,this.customProp.updateEvents(e),this.unlimitedDiv.init(e)},updateStorage:function(e){if(!this.storageEnable)return!1;if(!Jc(e))return!1;var t;if(this.url_info.server_url)t=this.url_info.server_url;else{var r=wp.initUrl();if(!r)return!1;t=r.server_url}var n={updateTime:(new Date).getTime(),data:e,serverUrl:t};up.saveObjectVal(this.storage_name,n)},sendRequest:function(e,t){var r={app_id:this.url_info.page_url.host};this.config.version&&(r.v=this.config.version),ru({url:this.url_info.api_url,callbackName:"saJSSDKVtrackCollectConfig",data:r,timeout:this.para.timeout,success:function(t,r){e(t,r)},error:function(e){t(e)}})},getAssignConfigs:_p.getAssignConfigs,configIsMatch:_p.configIsMatch};var Sp={basicProps:{priority:0,entry:function(e,t){var r=t.sensors,n={};Jc(e)&&Jc(e.identities)&&!Xl(e.identities)?bl(n,e.identities):bl(n,up._state.identities);var i={identities:n,distinct_id:up.getDistinctId(),lib:{$lib:"js",$lib_method:"code",$lib_version:String(r.lib_version)},properties:{}};return Jc(e)&&Jc(e.properties)&&!Xl(e.properties)&&(e.properties.$lib_detail&&(i.lib.$lib_detail=e.properties.$lib_detail,delete e.properties.$lib_detail),e.properties.$lib_method&&(i.lib.$lib_method=e.properties.$lib_method,delete e.properties.$lib_method)),Tl(i,up.getUnionId(),e),Jc(e.properties)&&!Xl(e.properties)&&bl(i.properties,e.properties),e.type&&"profile"===e.type.slice(0,7)||(i.properties=bl({}
3,$u.properties(),up.getProps(),up.getSessionProps(),$u.currentProps,i.properties),r.para.preset_properties.latest_referrer&&!rl(i.properties.$latest_referrer)&&(i.properties.$latest_referrer="取值异常"),r.para.preset_properties.latest_search_keyword&&!rl(i.properties.$latest_search_keyword)&&(r.para.preset_properties.search_keyword_baidu&&rl(i.properties.$search_keyword_id)&&tu(i.properties.$search_keyword_id_hash)&&rl(i.properties.$search_keyword_id_type)||(i.properties.$latest_search_keyword="取值异常")),r.para.preset_properties.latest_traffic_source_type&&!rl(i.properties.$latest_traffic_source_type)&&(i.properties.$latest_traffic_source_type="取值异常"),r.para.preset_properties.latest_landing_page&&!rl(i.properties.$latest_landing_page)&&(i.properties.$latest_landing_page="取值异常"),"not_collect"===r.para.preset_properties.latest_wx_ad_click_id?(delete i.properties._latest_wx_ad_click_id,delete i.properties._latest_wx_ad_hash_key,delete i.properties._latest_wx_ad_callbacks):r.para.preset_properties.latest_wx_ad_click_id&&!rl(i.properties._latest_wx_ad_click_id)&&(i.properties._latest_wx_ad_click_id="取值异常",i.properties._latest_wx_ad_hash_key="取值异常",i.properties._latest_wx_ad_callbacks="取值异常"),rl(i.properties._latest_wx_ad_click_id)&&(i.properties.$url=Fl())),i.properties.$time&&Al(i.properties.$time)?(i.time=1*i.properties.$time,delete i.properties.$time):i.time=1*new Date,function(e){if(r.bridge&&"success"===r.bridge.bridge_info.verify_success){var t=vp.customProp.geth5Props(JSON.parse(JSON.stringify(e)));Jc(t)&&!Xl(t)&&(e.properties=bl(e.properties,t))}var n=wp.customProp.getVtrackProps(JSON.parse(JSON.stringify(e)));Jc(n)&&!Xl(n)&&(e.properties=bl(e.properties,n))}(i),Ku(i),qu.checkIsAddSign(i),qu.checkIsFirstTime(i),function(e){var t=!e.type||"profile"!==e.type.slice(0,7);Jc(e.properties)&&t&&("$referrer"in e.properties&&(e.properties.$referrer_host=""===e.properties.$referrer?"":Dl(e.properties.$referrer,"取值异常")),Su.preset_properties.latest_referrer&&Su.preset_properties.latest_referrer_host&&(e.properties.$latest_referrer_host=""===e.properties.$latest_referrer?"":Dl(e.properties.$latest_referrer,"取值异常")))}(i),function(e){var t=!e.type||"profile"!==e.type.slice(0,7),r=Su.preset_properties&&t;r&&Su.preset_properties.url&&cl(e.properties.$url)&&(e.properties.$url=Fl()),r&&Su.preset_properties.title&&cl(e.properties.$title)&&(e.properties.$title=document.title)}(i),i}},formatData:{priority:0,entry:function(e){var t=e.properties;cu(e),Jc(t)?(function(e,t){Jc(e)&&vl(e,(function(r,n){if(ll(r)){var i=[];vl(r,(function(e){if(rl(e))i.push(e);else if(cl(e))i.push("null");else try{i.push(JSON.stringify(e))}catch(t){bu("您的数据-",n,r,"数组里值有错误,已将其删除")}})),e[n]=i}var o=Wl(t||[],n)>-1;if(Jc(r)&&"$option"!==n&&!o)try{e[n]=JSON.stringify(r)}catch(a){delete e[n],bu("您的数据-",n,r,"数据值有错误,已将其删除")}else rl(r)||tu(r)||Al(r)||Ql(r)||ll(r)||Hc(r)||"$option"===n||o||(bu("您的数据-",n,r,"-格式不满足要求,我们已经将其删除"),delete e[n])}))}(t),function(e,t){Jc(e)&&vl(["distinct_id","user_id","id","date","datetime","event","events","first_id","original_id","device_id","properties","second_id","time","users"],(function(r,n){r in e&&(Wl(t||[],r)>-1||(n<3?(delete e[r],bu("您的属性- "+r+"是保留字段,我们已经将其删除")):bu("您的属性- "+r+"是保留字段,请避免其作为属性名")))}))}(t),function(e){void 0!==e.properties.$project&&(e.project=e.properties.$project,delete e.properties.$project),void 0!==e.properties.$token&&(e.token=e.properties.$token,delete e.properties.$token)}(e),function(e,t){vl(e,(function(r,n){-1===Wl(t||[],n)&&gp({propertyKey:n},(function(t,r,i){return t||"keyLength"===i||delete e[n],!0}))}))}(t),hp(t)):"properties"in e&&(e.properties={}),function(e){"item_type"in e&&gp({item_type:e.item_type},(function(t){return t||delete e.item_type,!0})),"item_id"in e&&gp({item_id:e.item_id},(function(t,r,n){return t||"string"!==n||delete e.item_id,!0}))}(e)}},finalAdjustData:{priority:0,entry:function(e,t){var r=t.sensors;return e._track_id=Number(String(Gc()).slice(2,5)+String(Gc()).slice(2,4)+String((new Date).getTime()).slice(-4)),e._flush_time=(new Date).getTime(),r.events.tempAdd("send",e),e}}},kp={stage:null,init:function(e){this.stage=e},interceptor:Sp};var Ep={};function Pp(e,t,r,n){var i=null;if((e=e||{}).ele&&(i=e.ele),e.event&&(i=e.target?e.target:e.event.target),r=r||{},!i||"object"!=typeof i)return!1;if(!i.href||/^javascript/.test(i.href)||i.target||i.download||i.onclick)return n(t,r),!1;function o(e){e.stopPropagation(),e.preventDefault();var o=!1;function a(){o||(o=!0,location.href=i.href)}setTimeout(a,1e3),n(t,r,a)}e.event&&o(e.event),e.ele&&Vu(e.ele,"click",(function(e){o(e)}))}function Op(){var e=location.protocol;return"http:"===e||"https:"===e?e:"http:"}Ep.check=gp,Ep.sendItem=function(e){var t={lib:{$lib:"js",$lib_method:"code",$lib_version:String(Fc.lib_version)},time:1*new Date};bl(t,e),function(e){kp.stage.process("formatData",e)}(t),Fc.kit.sendData(t)},Ep.send=function(e,t){var r=Fc.kit.buildData(e);Fc.kit.sendData(r,t)};var jp={stage:null,init:function(e){this.stage=e}};var Ap={label:!1,li:!1,a:!0,button:!0},Ip={otherTags:[],initUnlimitedTags:function(){vl(Ip.otherTags,(function(e){e in Ap&&(Ap[e]=!0)}))},isUnlimitedTag:function(e){if(!e||1!==e.nodeType)return!1;var t=e.nodeName.toLowerCase();return Ap[t]||Vl(e,Fc.para.heatmap.track_attr)},getTargetElement:function(e,t){var r=this,n=e;if("object"!=typeof n)return null;if("string"!=typeof n.tagName)return null;var i=n.tagName.toLowerCase();if("body"===i.toLowerCase()||"html"===i.toLowerCase())return null;if(!n||!n.parentNode||!n.parentNode.children)return null;var o=n.parentNode,a=r.otherTags;if("a"===i||"button"===i||"input"===i||"textarea"===i)return n;if(Wl(a,i)>-1)return n;if("area"===i&&"map"===o.tagName.toLowerCase()&&ul(o).prev().tagName&&"img"===ul(o).prev().tagName.toLowerCase())return ul(o).prev();if("div"===i&&Fc.para.heatmap.collect_tags.div&&r.isDivLevelValid(n)&&((Fc.para.heatmap&&Fc.para.heatmap.collect_tags&&Fc.para.heatmap.collect_tags.div&&Fc.para.heatmap.collect_tags.div.max_level||1)>1||r.isCollectableDiv(n)))return n;if(r.isStyleTag(i)&&Fc.para.heatmap.collect_tags.div){var s=r.getCollectableParent(n);if(s&&r.isDivLevelValid(s))return s}return r.hasElement({event:t&&t.originalEvent||t,element:e},(function(e){return r.isUnlimitedTag(e)}))||null},getDivLevels:function(e,t){var r=Ip.getElementPath(e,!0,t).split(" > "),n=0;return vl(r,(function(e){"div"===e&&n++})),n},isDivLevelValid:function(e){for(var t=Fc.para.heatmap&&Fc.para.heatmap.collect_tags&&Fc.para.heatmap.collect_tags.div&&Fc.para.heatmap.collect_tags.div.max_level||1,r=e.getElementsByTagName("div"),n=r.length-1;n>=0;n--)if(Ip.getDivLevels(r[n],e)>t)return!1;return!0},getElementPath:function(e,t,r){for(var n=[];e.parentNode&&sl(e);){if(e.id&&!t&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(e.id)){n.unshift(e.tagName.toLowerCase()+"#"+e.id);break}if(r&&e===r){n.unshift(e.tagName.toLowerCase());break}if(e===document.body){n.unshift("body");break}n.unshift(e.tagName.toLowerCase()),e=e.parentNode}return n.join(" > ")},getClosestLi:function(e){return function(e,t){for(;e&&e!==document&&1===e.nodeType;e=e.parentNode)if(e.tagName&&Hc(e.tagName.toLowerCase)&&"li"===e.tagName.toLowerCase())return e;return null}(e)},getElementPosition:function(e,t,r){var n=Fc.heatmap.getClosestLi(e);if(!n||!sl(e))return null;var i=e.tagName.toLowerCase(),o=n.getElementsByTagName(i),a=o.length,s=[];if(a>1){for(var c=0;c<a;c++)Fc.heatmap.getElementPath(o[c],r)===t&&s.push(o[c]);if(s.length>1)return Wl(s,e)}return function(e){if(!e.parentNode)return"";if(1===ul(e).getSameTypeSiblings().length)return 0;for(var t=0,r=e;ul(r).previousElementSibling().ele;r=ul(r).previousElementSibling().ele,t++);return t}(n)},setNotice:function(e){Fc.is_heatmap_render_mode=!0,Fc.para.heatmap||(Fc.errorMsg="您SDK没有配置开启点击图ï¼
3Œå¯èƒ½æ²¡æœ‰æ•°æ®ï¼"),e&&"http:"===e.slice(0,5)&&"https:"===location.protocol&&(Fc.errorMsg="您的当前页面是https的地址,神策分析环境也必须是https!"),Fc.para.heatmap_url||(Fc.para.heatmap_url=Op()+"//static.sensorsdata.cn/sdk/"+Fc.lib_version+"/heatmap.min.js")},getDomIndex:function(e){if(!e.parentNode)return-1;for(var t=0,r=e.tagName,n=e.parentNode.children,i=0;i<n.length;i++)if(n[i].tagName===r){if(e===n[i])return t;t++}return-1},selector:function(e,t){var r=e.parentNode&&9==e.parentNode.nodeType?-1:this.getDomIndex(e);return e.getAttribute&&e.getAttribute("id")&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(e.getAttribute("id"))&&(!Fc.para.heatmap||Fc.para.heatmap&&"not_use_id"!==Fc.para.heatmap.element_selector)&&!t?"#"+e.getAttribute("id"):e.tagName.toLowerCase()+(~r?":nth-of-type("+(r+1)+")":"")},getDomSelector:function(e,t,r){if(!e||!e.parentNode||!e.parentNode.children)return!1;t=t&&t.join?t:[];var n=e.nodeName.toLowerCase();return e&&"body"!==n&&1==e.nodeType?(t.unshift(this.selector(e,r)),e.getAttribute&&e.getAttribute("id")&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(e.getAttribute("id"))&&Fc.para.heatmap&&"not_use_id"!==Fc.para.heatmap.element_selector&&!r?t.join(" > "):this.getDomSelector(e.parentNode,t,r)):(t.unshift("body"),t.join(" > "))},na:function(){var e=document.documentElement.scrollLeft||window.pageXOffset;return parseInt(isNaN(e)?0:e,10)},i:function(){var e=0;try{e=o.documentElement&&o.documentElement.scrollTop||m.pageYOffset,e=isNaN(e)?0:e}catch(t){e=0}return parseInt(e,10)},getBrowserWidth:function(){var e=window.innerWidth||document.body.clientWidth;return isNaN(e)?0:parseInt(e,10)},getBrowserHeight:function(){var e=window.innerHeight||document.body.clientHeight;return isNaN(e)?0:parseInt(e,10)},getScrollWidth:function(){var e=parseInt(document.body.scrollWidth,10);return isNaN(e)?0:e},getEleDetail:function(e){var t=this.getDomSelector(e),r=Xu({target:e});r.$element_selector=t||"",r.$element_path=Fc.heatmap.getElementPath(e,Fc.para.heatmap&&"not_use_id"===Fc.para.heatmap.element_selector);var n=Fc.heatmap.getElementPosition(e,r.$element_path,Fc.para.heatmap&&"not_use_id"===Fc.para.heatmap.element_selector);return tu(n)&&(r.$element_position=n),r},getPointerEventProp:function(e,t){if(!e)return{};function r(){return{scrollLeft:document.body.scrollLeft||document.documentElement.scrollLeft||0,scrollTop:document.body.scrollTop||document.documentElement.scrollTop||0}}function n(e){if(document.documentElement.getBoundingClientRect){var t=e.getBoundingClientRect();return{targetEleX:t.left+r().scrollLeft||0,targetEleY:t.top+r().scrollTop||0}}}function i(e){return Number(Number(e).toFixed(3))}return a=(o=e).pageX||o.clientX+r().scrollLeft||o.offsetX+n(t).targetEleX||0,s=o.pageY||o.clientY+r().scrollTop||o.offsetY+n(t).targetEleY||0,{$page_x:i(a),$page_y:i(s)};var o,a,s},start:function(e,t,r,n,i){if(Jc(Fc.para.heatmap)&&Hc(Fc.para.heatmap.collect_element)&&!Fc.para.heatmap.collect_element(t))return!1;!function(e){jp.stage.process("webClickEvent",e)}(Ip.getBasicEleInfo(e,t,r,n,i))},getBasicEleInfo:function(e,t,r,n,i){var o=Jc(n)?n:{},a=Hc(i)?i:Hc(n)?n:void 0,s=this.getEleDetail(t);if(Fc.para.heatmap&&Fc.para.heatmap.custom_property){var c=Fc.para.heatmap.custom_property(t);Jc(c)&&(s=bl(s,c))}return{event:e,target:t,props:s=bl(s,this.getPointerEventProp(e,t),o),tagName:r,callback:a}},hasElement:function(e,t){var r;if(e.event){var n=e.event;r=n.path||n._getPath&&n._getPath()}else e.element&&(r=ul(e.element).getParents());if(r&&ll(r)&&r.length>0)for(var i=0;i<r.length;i++)if("object"==typeof r[i]&&1===r[i].nodeType&&t(r[i]))return r[i]},isStyleTag:function(e,t){return!(Wl(["a","div","input","button","textarea"],e)>-1)&&(!t||Fc.para.heatmap&&Fc.para.heatmap.collect_tags&&Fc.para.heatmap.collect_tags.div?!!(Jc(Fc.para.heatmap)&&Jc(Fc.para.heatmap.collect_tags)&&Jc(Fc.para.heatmap.collect_tags.div)&&ll(Fc.para.heatmap.collect_tags.div.ignore_tags)&&Wl(Fc.para.heatmap.collect_tags.div.ignore_tags,e)>-1):Wl(["mark","/mark","strong","b","em","i","u","abbr","ins","del","s","sup"],e)>-1)},isCollectableDiv:function(e,t){try{if(0===e.children.length)return!0;for(var r=0;r<e.children.length;r++)if(1===e.children[r].nodeType){var n=e.children[r].tagName.toLowerCase(),i=Fc.para&&Fc.para.heatmap&&Fc.para.heatmap.collect_tags&&Fc.para.heatmap.collect_tags.div&&Fc.para.heatmap.collect_tags.div.max_level;if(!("div"===n&&i>1||this.isStyleTag(n,t)))return!1;if(!this.isCollectableDiv(e.children[r],t))return!1}return!0}catch(o){wu("isCollectableDiv:"+o)}return!1},getCollectableParent:function(e,t){try{var r=e.parentNode,n=r?r.tagName.toLowerCase():"";if("body"===n)return!1;var i=Fc.para&&Fc.para.heatmap&&Fc.para.heatmap.collect_tags&&Fc.para.heatmap.collect_tags.div&&Fc.para.heatmap.collect_tags.div.max_level;if(n&&"div"===n&&(i>1||this.isCollectableDiv(r,t)))return r;if(r&&this.isStyleTag(n,t))return this.getCollectableParent(r,t)}catch(o){wu("getCollectableParent:"+o)}return!1},listenUrlChange:function(e){e(),Fc.ee.spa.on("switch",(function(){e()}))},initScrollmap:function(){if(!Jc(Fc.para.heatmap)||"default"!==Fc.para.heatmap.scroll_notice_map)return!1;var e=!0;Fc.para.scrollmap&&Hc(Fc.para.scrollmap.collect_url)&&this.listenUrlChange((function(){e=!!Fc.para.scrollmap.collect_url()}));var t,r,n=(t={timeout:1e3,func:function(e,t){var r=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop||0,n=new Date,i=n-this.current_time;(i>Fc.para.heatmap.scroll_delay_time&&r-e.$viewport_position!=0||t)&&(e.$url=Fl(),e.$title=document.title,e.$url_path=Hl(),e.event_duration=Math.min(Fc.para.heatmap.scroll_event_duration,parseInt(i)/1e3),e.event_duration=e.event_duration<0?0:e.event_duration,function(e){jp.stage.process("webStayEvent",e)}(e)),this.current_time=n}},(r={}).timeout=t.timeout||1e3,r.func=t.func,r.hasInit=!1,r.inter=null,r.main=function(e,t){this.func(e,t),this.inter=null},r.go=function(e){var t={};this.inter||(t.$viewport_position=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop||0,t.$viewport_position=Math.round(t.$viewport_position)||0,e?r.main(t,!0):this.inter=setTimeout((function(){r.main(t)}),this.timeout))},r);n.current_time=new Date,Vu(window,"scroll",(function(){if(!e)return!1;n.go()})),Vu(window,"unload",(function(){if(!e)return!1;n.go("notime")}))},initHeatmap:function(){var e=this,t=!0;if(!Jc(Fc.para.heatmap)||"default"!==Fc.para.heatmap.clickmap)return!1;Hc(Fc.para.heatmap.collect_url)&&this.listenUrlChange((function(){t=!!Fc.para.heatmap.collect_url()})),"all"===Fc.para.heatmap.collect_elements?Fc.para.heatmap.collect_elements="all":Fc.para.heatmap.collect_elements="interact","all"===Fc.para.heatmap.collect_elements?Vu(document,"click",(function(r){if(!t)return!1;var n=r||window.event;if(!n)return!1;var i=n.target||n.srcElement;if("object"!=typeof i)return!1;if("string"!=typeof i.tagName)return!1;var o=i.tagName.toLowerCase();if("body"===o||"html"===o)return!1;if(!i||!i.parentNode||!i.parentNode.children)return!1;var a=i.parentNode.tagName.toLowerCase();"a"===a||"button"===a?e.start(n,i.parentNode,a):e.start(n,i,o)})):Vu(document,"click",(function(r){if(!t)return!1;var n=r||window.event;if(!n)return!1;var i=n.target||n.srcElement,o=Fc.heatmap.getTargetElement(i,r);o?e.start(n,o,o.tagName.toLowerCase()):sl(i)&&"div"===i.tagName.toLowerCase()&&Jc(Fc.para.heatmap)&&Fc.para.heatmap.get_vtrack_config&&yp.events.length>0&&yp.isTargetEle(i)&&e.start(n,i,i.tagName.toLowerCase(),{$lib_method:"vtrack"})}))}};function Tp(){var e=$u.campaignParams(),t={};return vl(e,(function(e,r,n){-1!==(" "+Fc.source_channel_standard+" ").indexOf(" "+r+" ")?t["$"+r]=n[r]:t[r]=n[r]})),t}function Cp(e,t,r){if(Fc.is_first_visitor&&r){var n={};Fc.para.preset_properties.search_keyword_baidu&&Du(document.referrer)&&Tu()&&(n.$search_keyword_id=Cu.id(),n.$search_keyword_id_type=Cu.type(),n.$search_keyword_id_hash=Jl(n.$search_keyword_id));var i=Lu(null,t);
3e(bl({$first_visit_time:new Date,$first_referrer:i,$first_referrer_host:i?Dl(i,"取值异常"):"",$first_browser_language:rl(navigator.language)?navigator.language.toLowerCase():"取值异常",$first_browser_charset:rl(document.charset)?document.charset.toUpperCase():"取值异常",$first_traffic_source_type:Ju(),$first_search_keyword:Ru()},Tp(),n)),Fc.is_first_visitor=!1}}var xp={autoTrackIsUsed:!1,isReady:function(e){Hc(e)?e():Fc.log("error: isReady callback must be function")},getUtm:function(){return $u.campaignParams()},getStayTime:function(){return(new Date-Fc._t)/1e3},setProfileLocal:function(e){if(!zc.isSupport())return Fc.setProfile(e),!1;if(!Jc(e)||Xl(e))return!1;var t=up.readObjectVal("sensorsdata_2015_jssdk_profile"),r=!1;if(Jc(t)&&!Xl(t)){for(var n in e)(!(n in t)||t[n]===e[n])&&n in t||(t[n]=e[n],r=!0);r&&(up.saveObjectVal("sensorsdata_2015_jssdk_profile",t),Fc.setProfile(e))}else up.saveObjectVal("sensorsdata_2015_jssdk_profile",e),Fc.setProfile(e)},setInitReferrer:function(){var e=Lu();Fc.setOnceProfile({_init_referrer:e,_init_referrer_host:$u.pageProp.referrer_host})},setSessionReferrer:function(){var e=Lu();up.setSessionPropsOnce({_session_referrer:e,_session_referrer_host:$u.pageProp.referrer_host})},setDefaultAttr:function(){$u.register({_current_url:location.href,_referrer:Lu(),_referring_host:$u.pageProp.referrer_host})},trackHeatMap:function(e,t,r){if("object"==typeof e&&e.tagName&&sl(e.parentNode)){var n=e.tagName.toLowerCase(),i=e.parentNode.tagName.toLowerCase(),o=Fc.para.heatmap&&Fc.para.heatmap.track_attr?Fc.para.heatmap.track_attr:["data-sensors-click"];"button"===n||"a"===n||"a"===i||"button"===i||"input"===n||"textarea"===n||Vl(e,o)||Ip.start(null,e,n,t,r)}},trackAllHeatMap:function(e,t,r){if("object"==typeof e&&e.tagName){var n=e.tagName.toLowerCase();Ip.start(null,e,n,t,r)}},autoTrackSinglePage:function(e,t){var r;r=this.autoTrackIsUsed?$u.pageProp.url:$u.pageProp.referrer;var n=!(e=Jc(e)?e:{}).not_set_profile;function i(e,t){Fc.track("$pageview",bl({$referrer:r,$url:Fl(),$url_path:Hl(),$title:document.title},e,Tp()),t),r=Fl()}e.not_set_profile&&delete e.not_set_profile,i(e,t),this.autoTrackSinglePage=i,Cp(Fc.setOnceProfile,!1,n)},autoTrackWithoutProfile:function(e,t){e=Jc(e)?e:{},this.autoTrack(bl(e,{not_set_profile:!0}),t)},autoTrack:function(e,t){e=Jc(e)?e:{};var r=Tp(),n=!e.not_set_profile;e.not_set_profile&&delete e.not_set_profile;var i=location.href;Fc.para.is_single_page&&gl((function(){var n=Lu(i,!0);Fc.track("$pageview",bl({$referrer:n,$url:Fl(),$url_path:Hl(),$title:document.title},r,e),t),i=Fl()})),Fc.track("$pageview",bl({$referrer:Lu(null,!0),$url:Fl(),$url_path:Hl(),$title:document.title},r,e),t),Cp(Fc.setOnceProfile,!0,n),this.autoTrackIsUsed=!0},getAnonymousID:function(){return Xl(up._state)?"SDK is not initialized.":up._state._first_id||up._state.first_id||up._state._distinct_id||up._state.distinct_id},setPlugin:function(e){if(!Jc(e))return!1;vl(e,(function(e,t){Hc(e)&&(Jc(window.SensorsDataWebJSSDKPlugin)&&window.SensorsDataWebJSSDKPlugin[t]||Jc(Fc.modules)&&Fc.modules[t]?e(window.SensorsDataWebJSSDKPlugin[t]):bu(t+"is not found,please check sensorsdata documents."))}))},useModulePlugin:function(){Fc.use.apply(Fc,arguments)},useAppPlugin:function(){this.setPlugin.apply(this,arguments)}};var Np=new Zc,Lp=new Zc,Dp={};function Rp(e,t){var r=[];"string"==typeof e&&e in Dp.EVENT_LIST&&(r=Dp.EVENT_LIST[e],Dp[r[0]].on(r[1],t))}function Up(e,t){var r=e.id,n=e.callback,i=e.name,o=up.getFirstId(),a=up.getOriginDistinctId();if(!gp({distinct_id:r}))return wu("login id is invalid"),!1;if(r===up.getOriginDistinctId()&&!o)return wu("login id is equal to distinct_id"),!1;if(Jc(up._state.identities)&&up._state.identities.hasOwnProperty(i)&&r===up._state.first_id)return!1;if(up._state.history_login_id.name!==i||r!==up._state.history_login_id.value){up._state.identities[i]=r,up.set("history_login_id",{name:i,value:r}),o||up.set("first_id",a),t(r,"$SignUp",{},n);var s={$identity_cookie_id:up._state.identities.$identity_cookie_id};return s[i]=r,Bp(s),!0}return!1}function Bp(e){var t={};for(var r in e)t[r]=e[r];up._state.identities=t,up.save()}Dp.spa=Np,Dp.sdk=Lp,Dp.initSystemEvent=function(){!function(e){var t,r=location.href,n=window.history.pushState,i=window.history.replaceState;Hc(window.history.pushState)&&(window.history.pushState=function(){n.apply(window.history,arguments),e(r),r=location.href}),Hc(window.history.replaceState)&&(window.history.replaceState=function(){i.apply(window.history,arguments),e(r),r=location.href}),t=window.document.documentMode?"hashchange":n?"popstate":"hashchange",fl(window,t,(function(){e(r),r=location.href}))}((function(e){Np.emit("switch",e)}))},Dp.EVENT_LIST={spaSwitch:["spa","switch"],sdkBeforeInit:["sdk","beforeInit"],sdkInitPara:["sdk","initPara"],sdkAfterInitPara:["sdk","afterInitPara"],sdkInitAPI:["sdk","initAPI"],sdkAfterInitAPI:["sdk","afterInitAPI"],sdkAfterInit:["sdk","afterInit"],sdkReady:["sdk","ready"]};var $p={state:0,historyState:[],stateType:{1:"1-init未开始",2:"2-init开始",3:"3-store完成"},getState:function(){return this.historyState.join("\n")}
vendor: 5,919 bytes, line 3
3,setState:function(e){String(e)in this.stateType&&(this.state=e),this.historyState.push(this.stateType[e])}};var Mp=1;function Fp(e,t){if(rl(e)||Jc(e)){var r;if(Jc(e)){var n=Fc.modules&&Fc.modules[e.plugin_name];n&&n!==e&&bu(e.name+" is conflict with builtin plugin, and sdk uses builtin plugin."),r=n||e}return rl(e)&&(Jc(Fc.modules)&&Jc(Fc.modules[e])?r=Fc.modules[e]:Jc(window.SensorsDataWebJSSDKPlugin)&&Jc(window.SensorsDataWebJSSDKPlugin[e])?r=window.SensorsDataWebJSSDKPlugin[e]:window.sensorsDataAnalytic201505&&window.sensorsDataAnalytic201505.modules[e]&&(r=window.sensorsDataAnalytic201505.modules[e])),r&&Hc(r.init)?(r.plugin_is_init||(r.plugin_name||bu("warning: invalid plugin, plugin_name required."),r.plugin_version?r.plugin_version!==Fc.lib_version&&bu("warning: plugin version not match SDK version. plugin may not work correctly. "):bu("warning: invalid plugin, plugin version required."),!r.plugin_is_init&&r.init(Fc,t),r.plugin_is_init=!0,Fc.modules=Fc.modules||{},Fc.modules[r.plugin_name||"unnamed_"+Mp++]=r),r):(bu((e.plugin_name||e)+" is not found or it's not a standard plugin. Please check sensorsdata official documents."),r)}wu("use's first arguments must be string or object.")}function Hp(e,t,r,n){var i=up.getFirstId()||up.getDistinctId();up.set("distinct_id",e),Ep.send({original_id:i,distinct_id:up.getDistinctId(),type:"track_signup",event:t,properties:r},n)}function qp(e){gp({properties:e})?up.setProps(e):wu("register输入的参数有误")}function Vp(e,t){"number"==typeof e&&(e=String(e)),!Up({id:e,callback:t,name:ju},Hp)&&Hc(t)&&t()}var zp={__proto__:null,setInitVar:function(){Fc._t=Fc._t||1*new Date,Fc.is_first_visitor=!1,Fc.source_channel_standard=Eu},initPara:function(e){bl(Su,e||Fc.para||{}),Fc.para=Su;var t,r={};if(Jc(Fc.para.is_track_latest))for(var n in Fc.para.is_track_latest)r["latest_"+n]=Fc.para.is_track_latest[n];for(t in Fc.para.preset_properties=bl({},ku.preset_properties,r,Fc.para.preset_properties||{}),ku)void 0===Fc.para[t]&&(Fc.para[t]=ku[t]);"string"!=typeof Fc.para.web_url||"://"!==Fc.para.web_url.slice(0,3)&&"//"!==Fc.para.web_url.slice(0,2)||("://"===Fc.para.web_url.slice(0,3)?Fc.para.web_url=location.protocol.slice(0,-1)+Fc.para.web_url:Fc.para.web_url=location.protocol+Fc.para.web_url),Bu.protocol.serverUrl(),Fc.bridge&&Fc.bridge.initPara();var i=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],o=["www.baidu.","m.baidu.","m.sm.cn","so.com","sogou.com","youdao.com","google.","yahoo.com/","bing.com/","ask.com/"],a=["weibo.com","renren.com","kaixin001.com","douban.com","qzone.qq.com","zhihu.com","tieba.baidu.com","weixin.qq.com"],s={baidu:["wd","word","kw","keyword"],google:"q",bing:"q",yahoo:"p",sogou:["query","keyword"],so:"q",sm:"q"};"object"==typeof Fc.para.source_type&&(Fc.para.source_type.utm=ll(Fc.para.source_type.utm)?Fc.para.source_type.utm.concat(i):i,Fc.para.source_type.search=ll(Fc.para.source_type.search)?Fc.para.source_type.search.concat(o):o,Fc.para.source_type.social=ll(Fc.para.source_type.social)?Fc.para.source_type.social.concat(a):a,Fc.para.source_type.keyword=Jc(Fc.para.source_type.keyword)?bl(s,Fc.para.source_type.keyword):s);var c=["mark","/mark","strong","b","em","i","u","abbr","ins","del","s","sup"];if(Fc.para.heatmap&&!Jc(Fc.para.heatmap)&&(Fc.para.heatmap={}),Jc(Fc.para.heatmap)){Fc.para.heatmap.clickmap=Fc.para.heatmap.clickmap||"default",Fc.para.heatmap.scroll_notice_map=Fc.para.heatmap.scroll_notice_map||"default",Fc.para.heatmap.scroll_delay_time=Fc.para.heatmap.scroll_delay_time||4e3,Fc.para.heatmap.scroll_event_duration=Fc.para.heatmap.scroll_event_duration||18e3,Fc.para.heatmap.renderRefreshTime=Fc.para.heatmap.renderRefreshTime||1e3,Fc.para.heatmap.loadTimeout=Fc.para.heatmap.loadTimeout||1e3,!0!==Fc.para.heatmap.get_vtrack_config&&(Fc.para.heatmap.get_vtrack_config=!1);var l=ll(Fc.para.heatmap.track_attr)?Cl(Fc.para.heatmap.track_attr,(function(e){return e&&"string"==typeof e})):[];l.push("data-sensors-click"),Fc.para.heatmap.track_attr=l,Jc(Fc.para.heatmap.collect_tags)?!0===Fc.para.heatmap.collect_tags.div?Fc.para.heatmap.collect_tags.div={ignore_tags:c,max_level:1}:Jc(Fc.para.heatmap.collect_tags.div)?(Fc.para.heatmap.collect_tags.div.ignore_tags?ll(Fc.para.heatmap.collect_tags.div.ignore_tags)||(bu("ignore_tags 参数必须是数组格式"),Fc.para.heatmap.collect_tags.div.ignore_tags=c):Fc.para.heatmap.collect_tags.div.ignore_tags=c,Fc.para.heatmap.collect_tags.div.max_level&&-1===Wl([1,2,3],Fc.para.heatmap.collect_tags.div.max_level)&&(Fc.para.heatmap.collect_tags.div.max_level=1)):Fc.para.heatmap.collect_tags.div=!1:Fc.para.heatmap.collect_tags={div:!1}}Fc.para.server_url=ep(Fc.para.server_url),!0===Fc.para.noCache?Fc.para.noCache="?"+(new Date).getTime():Fc.para.noCache="",Fc.para.callback_timeout>Fc.para.datasend_timeout&&(Fc.para.datasend_timeout=Fc.para.callback_timeout),Fc.para.heatmap&&Fc.para.heatmap.collect_tags&&Jc(Fc.para.heatmap.collect_tags)&&vl(Fc.para.heatmap.collect_tags,(function(e,t){"div"!==t&&e&&Fc.heatmap.otherTags.push(t)})),Fc.para.heatmap&&"default"===Fc.para.heatmap.clickmap&&Fc.heatmap.initUnlimitedTags()},quick:function(){var e=Array.prototype.slice.call(arguments),t=e[0],r=e.slice(1);if("string"==typeof t&&xp[t])return xp[t].apply(xp,r);"function"==typeof t?t.apply(Fc,r):bu("quick方法中没有这个功能"+e[0])},use:Fp,track:function(e,t,r){gp({event:e,properties:t})&&Ep.send({type:"track",event:e,properties:t},r)},bind:function(e,t){if(!gp({bindKey:e,bindValue:t}))return!1;up._state.identities[e]=t,up.save(),Ep.send({type:"track_id_bind",event:"$BindID",properties:{}})},unbind:function(e,t){var r=function(e,t){if(!gp({unbindKey:e,bindValue:t}))return!1;if(Jc(up._state.identities)&&up._state.identities.hasOwnProperty(e)&&up._state.identities[e]===t){var r=up.getUnionId().login_id;r&&e+"+"+t===r&&(up._state.distinct_id=up._state.first_id,up._state.first_id="",up.set("history_login_
3id",{name:"",value:""})),"$identity_cookie_id"!==e&&(delete up._state.identities[e],up.save())}var n={};return n[e]=t,n}(e,t);r&&Ep.send({identities:r,type:"track_id_unbind",event:"$UnbindID",properties:{}})},trackLink:function(e,t,r){"object"==typeof e&&e.tagName?Pp({ele:e},t,r,Fc.track):"object"==typeof e&&e.target&&e.event&&Pp(e,t,r,Fc.track)},trackLinks:function(e,t,r){return r=r||{},!(!e||"object"!=typeof e)&&!(!e.href||/^javascript/.test(e.href)||e.target)&&void Vu(e,"click",(function(n){n.preventDefault();var i=!1;function o(){i||(i=!0,location.href=e.href)}setTimeout(o,1e3),Fc.track(t,r,o)}))},setItem:function(e,t,r){gp({item_type:e,item_id:t,properties:r})&&Ep.sendItem({type:"item_set",item_type:e,item_id:t,properties:r||{}})},deleteItem:function(e,t){gp({item_type:e,item_id:t})&&Ep.sendItem({type:"item_delete",item_type:e,item_id:t})},setProfile:function(e,t){gp({propertiesMust:e})&&Ep.send({type:"profile_set",properties:e},t)},setOnceProfile:function(e,t){gp({propertiesMust:e})&&Ep.send({type:"profile_set_once",properties:e},t)},appendProfile:function(e,t){gp({propertiesMust:e})&&(vl(e,(function(t,r){rl(t)?e[r]=[t]:ll(t)?e[r]=t:(delete e[r],bu("appendProfile属性的值必须是字符串或者数组"))})),Xl(e)||Ep.send({type:"profile_append",properties:e},t))},incrementProfile:function(e,t){var r=e;rl(e)&&((e={})[r]=1),gp({propertiesMust:e})&&(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&!/-*\d+/.test(String(e[t])))return!1;return!0}(e)?Ep.send({type:"profile_increment",properties:e},t):wu("profile_increment的值只能是数字"))},deleteProfile:function(e){Ep.send({type:"profile_delete"},e),up.set("distinct_id",al()),up.set("first_id","")},unsetProfile:function(e,t){var r=e,n={};rl(e)&&(e=[]).push(r),ll(e)?(vl(e,(function(e){rl(e)?n[e]=!0:bu("profile_unset给的数组里面的值必须时string,已经过滤掉",e)})),Ep.send({type:"profile_unset",properties:n},t)):wu("profile_unset的参数必须是数组")},identify:function(e,t){"number"==typeof e&&(e=String(e));var r=up.getFirstId();if(void 0===e){var n=al();r?up.set("first_id",n):up.set("distinct_id",n)}else gp({distinct_id:e})&&(!0===t?r?up.set("first_id",e):up.set("distinct_id",e):r?up.change("first_id",e):up.change("distinct_id",e))},trackSignup:function(e,t,r,n){"number"==typeof e&&(e=String(e)),gp({distinct_id:e,event:t,properties:r})&&Hp(e,t,r,n)},registerPage:function(e){gp({properties:e})?bl($u.currentProps,e):wu("register输入的参数有误")},clearAllRegister:function(e){up.clearAllProps(e)},clearPageRegister:function(e){var t;if(ll(e)&&e.length>0)for(t=0;t<e.length;t++)rl(e[t])&&e[t]in $u.currentProps&&delete $u.currentProps[e[t]];else if(!0===e)for(t in $u.currentProps)delete $u.currentProps[t]},register:qp,registerOnce:function(e){gp({properties:e})?up.setPropsOnce(e):wu("registerOnce输入的参数有误")},registerSession:function(e){Fc.log("registerSession 方法已经弃用,有问题联系技术顾问"),gp({properties:e})?up.setSessionProps(e):wu("registerSession输入的参数有误")},registerSessionOnce:function(e){Fc.log("registerSessionOnce 方法已经弃用,有问题联系技术顾问"),gp({properties:e})?up.setSessionPropsOnce(e):wu("registerSessionOnce输入的参数有误")},login:Vp,loginWithKey:function(e,t){return"number"==typeof t&&(t=String(t)),"number"==typeof e&&(e=String(e)),!!gp({loginIdKey:e})&&(ju===e?(Vp(t),!1):void Up({id:t,callback:null,name:e},Hp))},logout:function(e){var t=up.getFirstId();if(t)if(up.set("first_id",""),!0===e){var r=al();up.set("distinct_id",r)}else up.set("distinct_id",t);Bp({$identity_cookie_id:up._state.identities.$identity_cookie_id}),up.set("history_login_id",{name:"",value:""})},getPresetProperties:function(){var e,t,r={$is_first_day:Fu(),$is_first_time:qu.is_page_first_visited,$referrer:$u.pageProp.referrer||"",$referrer_host:$u.pageProp.referrer?Dl($u.pageProp.referrer):"",$url:Fl(),$url_path:Hl(),$title:document.title||"",_distinct_id:up.getDistinctId(),identities:JSON.parse(JSON.stringify(up._state.identities))},n=bl({},$u.properties(),up.getProps(),(e=$u.campaignParams(),t={},vl(e,(function(e,r,n){-1!==(" "+Fc.source_channel_standard+" ").indexOf(" "+r+" ")?t["$"+r]=n[r]:t[r]=n[r]})),t),r);return Fc.para.preset_properties.latest_referrer&&Fc.para.preset_properties.latest_referrer_host&&(n.$latest_referrer_host=""===n.$latest_referrer?"":Dl(n.$latest_referrer)),n},readyState:$p,debug:Bu,on:Rp,log:yu};Vc.setup(yu);var Jp=bl({},_u,cp);var Wp={bridge_info:{touch_app_bridge:!1,verify_success:!1,platform:"",support_two_way_call:!1},is_verify_success:!1,initPara:function(){var e={is_send:!1!==Fc.para.use_app_track_is_send&&"only"!==Fc.para.use_app_track,white_list:[],is_mui:"mui"===Fc.para.use_app_track};"object"==typeof Fc.para.app_js_bridge?Fc.para.app_js_bridge=bl({},e,Fc.para.app_js_bridge):!0!==Fc.para.use_app_track&&!0!==Fc.para.app_js_bridge&&"only"!==Fc.para.use_app_track&&"mui"!==Fc.para.use_app_track||(Fc.para.app_js_bridge=bl({},e)),!1===Fc.para.app_js_bridge.is_send&&bu("设置了 is_send:false,如果打通失败,数据将被丢弃!")},app_js_bridge_v1:function(){var e=null,t=null;window.sensorsdata_app_js_bridge_call_js=function(r){eu(e=r)&&(e=JSON.parse(e)),t&&(t(e),t=null,e=null)},Fc.getAppStatus=function(r){if(function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var e=document.createElement("iframe");e.setAttribute("src","sensorsanalytics://getAppInfo"),document.documentElement.appendChild(e),e.parentNode.removeChild(e),e=null}}(),"object"==typeof window.SensorsData_APP_JS_Bridge&&window.SensorsData_APP_JS_Bridge.sensorsdata_call_app&&eu(e=window.SensorsData_APP_JS_Bridge.sensorsdata_call_app())&&(e=JSON.parse(e)),!r)return e;null===e?t=r:(r(e),e=null)}},hasVisualModeBridge:function(){var e=window.SensorsData_App_Visual_Bridge,t="sensorsdata_visualized_mode";return Jc(e)&&e[t]&&(!0===e[t]||e[t]())},validateAppUrl:function(e){function t(e){var t={hostname:"",project:""};try{e=ol(e),t.hostname=e.hostname,t.project=e.searchParams.get("project")||"default"}catch(r){wu("validateAppUrl:"+r)}return t}var r=t(e),n=t(Fc.para.server_url);if(r.hostname===n.hostname&&r.project===n.project)return!0;
vendor: 3,272 bytes, line 3
3if(ll(Fc.para.app_js_bridge.white_list))for(var i=0;i<Fc.para.app_js_bridge.white_list.length;i++){var o=t(Fc.para.app_js_bridge.white_list[i]);if(o.hostname===r.hostname&&o.project===r.project)return!0}return!1}};function Kp(e){var t=this;this.type=e,this.resultCbs={},this.timeoutCbs={},this.timerId=null,this.appCallJsCallback=null,window.sensorsdata_app_call_js||(window.sensorsdata_app_call_js=function(e,t){if(e in window.sensorsdata_app_call_js.modules)return window.sensorsdata_app_call_js.modules[e](t)}),window.sensorsdata_app_call_js.modules=window.sensorsdata_app_call_js.modules||{},window.sensorsdata_app_call_js.modules[this.type]=function(e){try{var r=kl(e)||e;try{r=JSON.parse(r)}catch(o){}var n=r&&r.message_id;if(n&&t.resultCbs[n]){if(e=r,t.timeoutCbs[n]&&t.timeoutCbs[n].isTimeout)return void(t.resultCbs[n].callbacks.length=0);if(t.resultCbs[n])for(var i in t.resultCbs[n].result=e,clearTimeout(t.timerId),t.timeoutCbs[n].callbacks.length=0,t.resultCbs[n].callbacks)t.resultCbs[n].callbacks[i].call(null,e),t.resultCbs[n].callbacks.splice(i,1);return}return t.appCallJsCallback&&t.appCallJsCallback.call(null,e)}catch(a){wu("app 回调 js 异常",e)}}}function Gp(e){try{if(Fc.bridge.activeBridge&&Hc(Fc.bridge.activeBridge.handleCommand))return Fc.bridge.activeBridge.handleCommand(e)}catch(t){wu("Error: handle command exception:"+t)}return wu("数据发往App失败,App没有暴露bridge,type:"+e.callType),!1}function Qp(e){this.bridge=new Kp(e.type)}function Xp(e){var t=null;try{var r=JSON.parse(window.name);t=r[e]?el(r[e]):null}catch(n){t=null}return null===t&&(t=Bl(location.href,e)||null),t}Kp.prototype.call=function(e,t){var r=this,n=(new Date).getTime().toString(16)+String(Gc()).replace(".","").slice(1,8);this.resultCbs[n]=r.resultCbs[n]||{result:null,callbacks:[]},this.timeoutCbs[n]=r.timeoutCbs[n]||{isTimeout:!1,callbacks:[]},(e=e.data?e:{data:e}).data.message_id=n;var i=bl({callType:this.type},e);return t&&(this.timerId=setTimeout((function(){for(var e in r.timeoutCbs[n].isTimeout=!0,r.timeoutCbs[n].callbacks)r.timeoutCbs[n].callbacks[e].call(null),r.timeoutCbs[n].callbacks.splice(e,1)}),t)),Gp(i),{onResult:function(e){return r.resultCbs[n].result?(e(r.resultCbs[n].result),this):(!r.timeoutCbs[n].isTimeout&&r.resultCbs[n].callbacks.push(e),this)},onTimeout:function(e){return r.timeoutCbs[n].isTimeout?(e(),this):(!r.resultCbs[n].result&&r.timeoutCbs[n].callbacks.push(e),this)}}},Kp.prototype.onAppNotify=function(e){this.appCallJsCallback=e},Kp.prototype.notifyApp=function(e,t){var r=bl({callType:this.type},e);return t&&(r.message_id=t),Gp(r)},Qp.prototype={double:function(){},getAppData:function(){},hasAppBridge:function(){return Fc.bridge.bridge_info.support_two_way_call},init:function(){},jsCallApp:function(){},requestToApp:function(e){this.bridge.call(e,e.timeout.time).onResult((function(t){Hc(e.callback)&&e.callback(t)})).onTimeout((function(){Hc(e.timeout.callback)&&e.timeout.callback()}))}};var Yp={isSeachHasKeyword:function(){return""!==Bl(location.href,"sa-request-id")&&("string"==typeof sessionStorage.getItem("sensors-visual-mode")&&sessionStorage.removeItem("sensors-visual-mode"),!0)},hasKeywordHandle:function(){var e=location.href,t=Bl(e,"sa-request-id")||null,r=Bl(e,"sa-request-type")||null,
3n=Bl(e,"sa-request-url")||null;if(Ip.setNotice(n),lu.isSupport())if(null!==n&&sessionStorage.setItem("sensors_heatmap_url",n),sessionStorage.setItem("sensors_heatmap_id",t),null!==r)"1"===r||"2"===r||"3"===r?sessionStorage.setItem("sensors_heatmap_type",r):r=null;else{var i=sessionStorage.getItem("sensors_heatmap_type");r=null!==i?i:null}this.isReady(t,r)},isReady:function(e,t,r){Fc.para.heatmap_url?iu({success:function(){setTimeout((function(){"undefined"!=typeof sa_jssdk_heatmap_render&&(sa_jssdk_heatmap_render(Fc,e,t,r),"object"==typeof console&&"function"==typeof console.log&&(Fc.heatmap_version&&Fc.heatmap_version===Fc.lib_version||bu("heatmap.js与sensorsdata.js版本号不一致,可能存在风险!")))}),0)},error:function(){},type:"js",url:Fc.para.heatmap_url}):wu("没有指定heatmap_url的路径")},isStorageHasKeyword:function(){return lu.isSupport()&&"string"==typeof sessionStorage.getItem("sensors_heatmap_id")},storageHasKeywordHandle:function(){Ip.setNotice(),Yp.isReady(sessionStorage.getItem("sensors_heatmap_id"),sessionStorage.getItem("sensors_heatmap_type"),location.href)},isWindowNameHasKeyword:function(){try{var e=JSON.parse(window.name),t=rl(e["sa-request-page-url"])?el(e["sa-request-page-url"]):null;return e["sa-request-id"]&&rl(e["sa-request-id"])&&t===location.href}catch(r){return!1}},windowNameHasKeywordHandle:function(){var e=JSON.parse(window.name);function t(t){var r=e[t];return rl(r)?el(r):null}var r=t("sa-request-id"),n=t("sa-request-type"),i=t("sa-request-url");Ip.setNotice(i),lu.isSupport()&&(null!==i&&sessionStorage.setItem("sensors_heatmap_url",i),sessionStorage.setItem("sensors_heatmap_id",r),null!==n?"1"===n||"2"===n||"3"===n?sessionStorage.setItem("sensors_heatmap_type",n):n=null:n=null!==sessionStorage.getItem("sensors_heatmap_type")?sessionStorage.getItem("sensors_heatmap_type"):null),Yp.isReady(r,n)}},Zp={isStorageHasKeyword:function(){return lu.isSupport()&&"string"==typeof sessionStorage.getItem("sensors-visual-mode")},isSearchHasKeyword:function(){return(!0===Xp("sa-visual-mode")||"true"===Xp("sa-visual-mode"))&&("string"==typeof sessionStorage.getItem("sensors_heatmap_id")&&sessionStorage.removeItem("sensors_heatmap_id"),!0)},loadVtrack:function(){iu({success:function(){},error:function(){},type:"js",url:Fc.para.vtrack_url?Fc.para.vtrack_url:Op()+"//static.sensorsdata.cn/sdk/"+Fc.lib_version+"/vtrack.min.js"})},messageListener:function(e){if(!e||!e.data||"sa-fe"!==e.data.source)return!1;if("v-track-mode"===e.data.type){if(e.data.data&&e.data.data.isVtrack)if(lu.isSupport()&&sessionStorage.setItem("sensors-visual-mode","true"),e.data.data.userURL&&location.href.match(/sa-visual-mode=true/)){var t=Yl(r=e.data.data.userURL)?ou(r):(wu("可视化模式检测 URL 失败"),!1);t&&(window.location.href=t)}else Zp.loadVtrack();window.removeEventListener("message",Zp.messageListener,!1)}var r},removeMessageHandle:function(){window.removeEventListener&&window.removeEventListener("message",Zp.messageListener,!1)},verifyVtrackMode:function(){window.addEventListener&&window.addEventListener("message",Zp.messageListener,!1),Zp.postMessage()},postMessage:function(){try{window.parent&&window.parent.postMessage&&window.parent.postMessage({source:"sa-web-sdk",type:"v-is-vtrack",data:{sdkversion:Pu}},"*")}catch(Wc){wu("浏览器版本过低,不支持 postMessage API")}},notifyUser:function(){var e=function(t){if(!t||!t.data||"sa-fe"!==t.data.source)return!1;"v-track-mode"===t.data.type&&(t.data.data&&t.data.data.isVtrack&&alert("当前版本不支持,请升级部署神策数据治理"),window.removeEventListener("message",e,!1))};window.addEventListener&&window.addEventListener("message",e,!1),Zp.postMessage()}};function ed(e){var t=Fc.bridge.bridge_info;function r(){var e=[];t.touch_app_bridge||e.push(Bu.defineMode("1")),Jc(Fc.para.app_js_bridge)||(e.push(Bu.defineMode("2")),t.verify_success=!1),Jc(Fc.para.heatmap)&&"default"==Fc.para.heatmap.clickmap||e.push(Bu.defineMode("3")),"fail"===t.verify_success&&e.push(Bu.defineMode("4")),new Fc.SDKJSBridge("app_alert").notifyApp({data:e})}if(Fc.bridge.hasVisualModeBridge())if(Jc(Fc.para.heatmap)&&"default"==Fc.para.heatmap.clickmap)if(Jc(Fc.para.app_js_bridge)&&"success"===t.verify_success)if(e)window.sa_jssdk_app_define_mode(Fc,e);else{var n=location.protocol;iu({success:function(){setTimeout((function(){"undefined"!=typeof sa_jssdk_app_define_mode&&window.sa_jssdk_app_define_mode(Fc,e)}),0)},error:function(){},type:"js",url:(n=Wl(["http:","https:"],n)>-1?n:"https:")+"//static.sensorsdata.cn/sdk/"+Fc.lib_version+"/vapph5define.min.js"})}else r();else r()}function td(){Fc.readyState.setState(3),new Fc.SDKJSBridge("visualized").onAppNotify((function(){"undefined"!=typeof sa_jssdk_app_define_mode?ed(!0):ed(!1)})),ed(!1),Fc.bridge.app_js_bridge_v1(),$u.initPage(),function(e){Fc.para.is_track_single_page&&Np.on("switch",(function(t){var r=function(r){if(r=r||{},t!==location.href){$u.pageProp.referrer=Fl(t);var n=bl({$url:Fl(),$referrer:Fl(t)},r);Hc(e)?e(n):Fc.quick&&Fc.quick("autoTrack",n)}};if("boolean"==typeof Fc.para.is_track_single_page)r();else if("function"==typeof Fc.para.is_track_single_page){var n=Fc.para.is_track_single_page(
vendor: 4,509 bytes, line 3
3);Jc(n)?r(n):!0===n&&r()}}))}(),up.init(),function(){var e=$u.pageProp.url_domain,t={};""===e&&(e="url解析失败");var r=Ru(document.referrer,!0);if(Su.preset_properties.search_keyword_baidu?Du(document.referrer)&&(!Tu()||Jc(r)&&r.active?up._state&&up._state.props&&(up._state.props.$search_keyword_id&&delete up._state.props.$search_keyword_id,up._state.props.$search_keyword_id_type&&delete up._state.props.$search_keyword_id_type,up._state.props.$search_keyword_id_hash&&delete up._state.props.$search_keyword_id_hash):(t.$search_keyword_id=Cu.id(),t.$search_keyword_id_type=Cu.type(),t.$search_keyword_id_hash=Jl(t.$search_keyword_id))):up._state&&up._state.props&&(up._state.props.$search_keyword_id&&delete up._state.props.$search_keyword_id,up._state.props.$search_keyword_id_type&&delete up._state.props.$search_keyword_id_type,up._state.props.$search_keyword_id_hash&&delete up._state.props.$search_keyword_id_hash),up.save(),vl(Su.preset_properties,(function(r,n){if(-1===n.indexOf("latest_"))return!1;if(n=n.slice(7),r){if("wx_ad_click_id"===n&&"not_collect"===r)return!1;if("utm"!==n&&"url解析失败"===e)"wx_ad_click_id"===n?(t._latest_wx_ad_click_id="url的domain解析失败",t._latest_wx_ad_hash_key="url的domain解析失败",t._latest_wx_ad_callbacks="url的domain解析失败"):t["$latest_"+n]="url的domain解析失败";else if(Du(document.referrer))switch(n){case"traffic_source_type":t.$latest_traffic_source_type=Ju();break;case"referrer":t.$latest_referrer=$u.pageProp.referrer;break;case"search_keyword":Ru()?t.$latest_search_keyword=Ru():Jc(up._state)&&Jc(up._state.props)&&up._state.props.$latest_search_keyword&&delete up._state.props.$latest_search_keyword;break;case"landing_page":t.$latest_landing_page=Fl();break;case"wx_ad_click_id":var i=Wu(location.href);t._latest_wx_ad_click_id=i.click_id,t._latest_wx_ad_hash_key=i.hash_key,t._latest_wx_ad_callbacks=i.callbacks}}else if("utm"===n&&up._state&&up._state.props)for(var o in up._state.props)(0===o.indexOf("$latest_utm")||0===o.indexOf("_latest_")&&o.indexOf("_latest_wx_ad_")<0)&&delete up._state.props[o];else up._state&&up._state.props&&"$latest_"+n in up._state.props?delete up._state.props["$latest_"+n]:"wx_ad_click_id"==n&&up._state&&up._state.props&&!1===r&&vl(["_latest_wx_ad_click_id","_latest_wx_ad_hash_key","_latest_wx_ad_callbacks"],(function(e){e in up._state.props&&delete up._state.props[e]}))})),Su.preset_properties.latest_utm){var n=$u.campaignParamsStandard("$latest_","_latest_"),i=n.$utms,o=n.otherUtms;Xl(i)||bl(t,i),Xl(o)||bl(t,o)}qp(t)}(),wp.init(),"success"===Fc.bridge.bridge_info.verify_success&&vp.init(),Fc.readyState.setState(4),Fc._q&&ll(Fc._q)&&Fc._q.length>0&&vl(Fc._q,(function(e){Fc[e[0]].apply(Fc,Array.prototype.slice.call(e[1]))})),Jc(Fc.para.heatmap)&&(Ip.initHeatmap(),Ip.initScrollmap())}function rd(){Yp.isSeachHasKeyword()?Yp.hasKeywordHandle():window.parent!==self&&Zp.isSearchHasKeyword()?Zp.verifyVtrackMode():Yp.isWindowNameHasKeyword()?Yp.windowNameHasKeywordHandle():Yp.isStorageHasKeyword()?Yp.storageHasKeywordHandle():window.parent!==self&&Zp.isStorageHasKeyword()?Zp.verifyVtrackMode():(td(),Zp.notifyUser())}var nd=["setItem","deleteItem","getAppStatus","track","quick","register","registerPage","registerOnce","trackSignup","setProfile","setOnceProfile","appendProfile","incrementProfile","deleteProfile","unsetProfile","identify","login","logout","trackLink","clearAllRegister","clearPageRegister","bind","unbind","loginWithKey"];function id(){vl(nd,(function(e){var t=Fc[e];Fc[e]=function(){if(Fc.readyState.state<3)return ll(Fc._q)||(Fc._q=[]),bu("calling sdk api before init is deprecated."),Fc._q.push([e,arguments]),!1;if(!Hc(Fc.getDisabled)||!Fc.getDisabled()){if(Fc.readyState.getState())return t.apply(Fc,arguments);wu("请先初始化神策JS SDK")}}}))}var od={track:function(e,t,r){},quick:function(e,t,r,n){},register:function(e){},registerPage:function(e){},registerOnce:function(e){},clearAllRegister:function(e){},trackSignup:function(e,t,r,n){},setProfile:function(e,t){},setOnceProfile:function(e,t){},appendProfile:function(e,t){},incrementProfile:function(e,t){},deleteProfile:function(e){},unsetProfile:function(e,t){},identify:function(e,t){},login:function(e,t){},logout:function(e){},trackLink:function(e,t,r){},deleteItem:function(e,t){},setItem:function(e,t,r){},getAppStatus:function(e){},clearPageRegister:function(e){}};function ad(e,t){this.cancel=function(){e=!0},this.getCanceled=function(){return e||!1},this.stop=function(){t=!0}
vendor: 4,268 bytes, line 3
3,this.getStopped=function(){return t||!1}}function sd(e,t,r){var n=null;try{n=JSON.parse(JSON.stringify(e||null))}catch(i){}this.getOriginalData=function(){return n},this.getPosition=function(){return t},this.cancellationToken=new ad,this.sensors=r}function cd(e){if(!Jc(e))throw"error: Stage constructor requires arguments.";this.processDef=e,this.registeredInterceptors={}}cd.prototype.process=function(e,t){if(e&&e in this.processDef){var r=this.registeredInterceptors[e];if(r&&ll(r)&&r.length>0)for(var n={current:0,total:r.length},i=new sd(t,n,Fc),o=0;o<r.length;o++)try{if(n.current=o+1,t=r[o].call(null,t,i)||t,i.cancellationToken.getCanceled())break;if(i.cancellationToken.getStopped())return}catch(a){wu("interceptor error:"+a)}return this.processDef[e]&&this.processDef[e]in this.processDef&&(t=this.process(this.processDef[e],t)),t}wu("process ["+e+"] is not supported")},cd.prototype.registerStageImplementation=function(e){e&&e.init&&Hc(e.init)&&(e.init(this),e.interceptor&&this.registerInterceptor(e.interceptor))},cd.prototype.registerInterceptor=function(e){if(e)for(var t in e){var r=e[t];if(r&&Jc(r)&&Hc(r.entry)){tu(r.priority)||(r.priority=Number.MAX_VALUE),this.registeredInterceptors[t]||(this.registeredInterceptors[t]=[]);var n=this.registeredInterceptors[t];r.entry.priority=r.priority,n.push(r.entry),n.sort((function(e,t){return e.priority-t.priority}))}}};var ld=new cd({basicProps:"extendProps",extendProps:"formatData",formatData:"finalAdjustData",finalAdjustData:null}),ud=new cd({send:null}),pd=new cd({getUtmData:null,callSchema:null}),dd=new cd({webClickEvent:null,webStayEvent:null});function fd(e){e&&e.buildDataStage&&ld.registerStageImplementation(e.buildDataStage),e&&e.businessStage&&pd.registerStageImplementation(e.businessStage),e&&e.sendDataStage&&ud.registerStageImplementation(e.sendDataStage),e&&e.viewStage&&dd.registerStageImplementation(e.viewStage)}var gd={buildDataStage:function(e){e&&ld.registerInterceptor(e)},businessStage:function(e){e&&pd.registerInterceptor(e)},sendDataStage:function(e){e&&ud.registerInterceptor(e)},viewStage:function(e){e&&dd.registerInterceptor(e)}};function hd(e,t){gd[e]&&gd[e](t)}var _d={stage:null,init:function(e){this.stage=e}};var md={stage:null,init:function(e){this.stage=e},interceptor:{send:{entry:function(e){return e}}}};var vd={};function yd(e){e.kit=vd,e.saEvent=Ep,this.buildDataStage=kp,this.sendDataStage=md,this.businessStage=_d}function bd(e){e.heatmap=Ip,this.viewStage=jp}vd.buildData=function(e){return function(e){return kp.stage.process("basicProps",e)}(e)},vd.sendData=function(e,t){var r=Gu(e.properties);(function(e){md.stage.process("send",e)})({server_url:Fc.para.server_url,data:e,config:r||{},callback:t}),Fc.log(e)},vd.encodeTrackData=function(e){return tp(e)},vd.getUtmData=function(){return _d.stage&&_d.stage.process("getUtmData")};var wd={webClickEvent:{entry:function(e,t){var r=t.sensors;"a"===e.tagName&&r.para.heatmap&&!0===r.para.heatmap.isTrackLink?r.trackLink({event:e.event,target:e.target},"$WebClick",e.props):r.track("$WebClick",e.props,e.callback)}},webStayEvent:{entry:function(e,t){t.sensors.track("$WebStay",e)}}};function Sd(e){Hc(e.properties)?!e.isMatchedWithFilter||Hc(e.isMatchedWithFilter)?hd("buildDataStage",{finalAdjustData:{priority:100,entry:function(t){try{if(Hc(e.isMatchedWithFilter))return e.isMatchedWithFilter(t)&&e.properties(t);e.properties(t)}catch(r){wu("execute registerPropertyPlugin callback error:"+r)}}}}):wu("registerPropertyPlugin arguments error, isMatchedWithFilter must be function"):wu("registerPropertyPlugin arguments error, properties must be function")}var kd=window.sensors_data_pre_config,Ed=!!Jp.isObject(kd)&&kd.is_compliance_enabled;function Pd(e){e&&(Fc.events=lp,Fc.bridge=Wp,Fc.SDKJSBridge=Kp,Fc.JSBridge=Qp,Fc.store=up,Fc.unlimitedDiv=yp,Fc.customProp=bp,Fc.vtrackcollect=wp,Fc.vapph5collect=vp,Fc.detectMode=rd,Fc.registerFeature=fd,Fc.registerInterceptor=hd,Fc.commonWays=xp,fd(new yd(Fc)),fd(new bd(Fc)),hd("viewStage",wd));var t=e?zp:od;for(var r in t)Fc[r]=t[r];Fc.logger=vu,Fc.log=yu,Fc._=Jp,Fc.on=Rp,Fc.ee=Dp,Fc.use=Fp,Fc.lib_version=Pu,Fc.registerPropertyPlugin=Sd}Fc.init=function(e){if(Dp.sdk.emit("beforeInit"),Fc.readyState&&Fc.readyState.state&&Fc.readyState.state>=2)return!1;
3Ed&&(Pd(!0),id()),Dp.initSystemEvent(),Fc.setInitVar(),Fc.readyState.setState(2),Fc.initPara(e),Dp.sdk.emit("initPara"),Dp.sdk.emit("afterInitPara"),Dp.sdk.emit("initAPI"),Dp.sdk.emit("afterInitAPI"),Fc.detectMode(),function(){var e="",t=" { cursor: pointer; -webkit-tap-highlight-color: rgba(0,0,0,0); }";Fc.heatmap&&ll(Fc.heatmap.otherTags)&&vl(Fc.heatmap.otherTags,(function(r){e+=r+t})),Zl()&&Rl()&&Rl()<13&&(Fc.para.heatmap&&Fc.para.heatmap.collect_tags&&Fc.para.heatmap.collect_tags.div&&uu("div, [data-sensors-click]"+t),Fc.para.heatmap&&Fc.para.heatmap.track_attr&&uu("["+Fc.para.heatmap.track_attr.join("], [")+"]"+t),""!==e&&uu(e))}(),Dp.sdk.emit("afterInit"),Dp.sdk.emit("ready")},Ed?Pd(!1):(Pd(!0),id());var Od=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}({init:function(e){var t=e._.isString,r=e._.rot13defs,n=e._.dfmapping,i="data:enc;";e.ee.sdk.on("afterInitPara",(function(){e.kit.userEncrypt=function(e){return"dfm-enc-"+n(e)},e.kit.userDecrypt=function(e){return 0===e.indexOf(i)?(e=e.substring(i.length),e=r(e)):0===e.indexOf("dfm-enc-")&&(e=e.substring("dfm-enc-".length),e=n(e)),e},e.kit.userDecryptIfNeeded=function(r){return!t(r)||0!==r.indexOf(i)&&0!==r.indexOf("dfm-enc-")||(r=e.kit.userDecrypt(r)),r}}))},plugin_name:"UserEncryptDefault"});var jd=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}({sd:null,init:function(e){if(this.sd)return!1;if(this.sd=e,!this.sd||!this.sd._)return!1;var t=this.sd._.cookie.get("sensors_amp_id"),r=this.sd.store._state.distinct_id;if(t&&t.length>0){var n="amp-"===t.slice(0,4);if(t!==r){if(!n)return!1;this.sd.store._state.first_id?(this.sd.identify(t,!0),this.sd.saEvent.send({original_id:t,distinct_id:r,type:"track_signup",event:"$SignUp",properties:{}},null),this.setAmpId(r)):this.sd.identify(t,!0)}}else this.setAmpId(r);this.addListener()},addListener:function(){var e=this;this.sd.events.on("changeDistinctId",(function(t){e.setAmpId(t)})),this.sd.events.isReady()},setAmpId:function(e){this.sd._.cookie.set("sensors_amp_id",e)}},"Amp","sdkReady"),Ad=window.SensorsData_App_Visual_Bridge,Id=Ad&&Ad.sensorsdata_visualized_mode,Td=Ad&&Ad.sensorsdata_visualized_alert_info,Cd=Ad&&Ad.sensorsdata_hover_web_nodes;function xd(e){return Id.call(Ad)&&Cd&&Cd.call(Ad,JSON.stringify(e))}var Nd,Ld,Dd,Rd,Ud,Bd,$d={isVerify:function(){return Id&&(!0===Id||Id.call(Ad))},commands:{app_alert:function(e){return Td&&Td.call(Ad,JSON.stringify(e))},visualized_track:xd,page_info:xd,sensorsdata_get_app_visual_config:function(e,t){return t&&"function"==typeof t[e.callType]&&t[e.callType]()}}};var Md={init:function(e){Ud=(Rd=e)&&Rd._,Bd=Rd&&Rd.log||console&&console.log||function(){},Nd=window.SensorsData_APP_New_H5_Bridge,Ld=Nd&&Nd.sensorsdata_track,Dd=Ld&&Nd.sensorsdata_get_server_url&&Nd.sensorsdata_get_server_url(),Rd&&!Rd.bridge.activeBridge&&Dd&&(Rd.bridge.activeBridge=Md,Rd.para.app_js_bridge&&!Rd.para.app_js_bridge.is_mui&&(Rd.bridge.is_verify_success=Dd&&Rd.bridge.validateAppUrl(Dd)),Rd.bridge.bridge_info={touch_app_bridge:!0,platform:"android",verify_success:Rd.bridge.is_verify_success?"success":"fail",support_two_way_call:!!Nd.sensorsdata_js_call_app},Rd.para.app_js_bridge?(Rd.registerInterceptor("sendDataStage",{send:{priority:60,entry:Fd}}),Bd("Android bridge inits succeed.")):Bd("app_js_bridge is not configured, data will not be sent by android bridge."))},handleCommand:function(e){var t=e.callType;if(t in $d.commands)return $d.commands[t](e,Nd);Nd&&Ud.isFunction(Nd.sensorsdata_js_call_app)&&Nd.sensorsdata_js_call_app(JSON.stringify(e))}};
3function Fd(e,t){if(Rd.para.app_js_bridge.is_mui||"item_set"===e.data.type||"item_delete"===e.data.type)return e;var r=e.callback;return Rd.bridge.is_verify_success?(Ld&&Ld.call(Nd,JSON.stringify(Ud.extend({server_url:Rd.para.server_url},e.data))),Ud.isFunction(r)&&r(),t.cancellationToken.cancel(),e):Rd.para.app_js_bridge.is_send?(Rd.debug.apph5({data:e.data,step:"4.2",output:"all"}),e):(Ud.isFunction(r)&&r(),t.cancellationToken.cancel(),e)}var Hd=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Md,"AndroidBridge","sdkAfterInitPara"),qd=window.SensorsData_App_Visual_Bridge,Vd=qd&&qd.sensorsdata_visualized_mode,zd=qd&&qd.sensorsdata_visualized_alert_info,Jd=qd&&qd.sensorsdata_hover_web_nodes;function Wd(e){return Vd.call(qd)&&Jd&&Jd.call(qd,JSON.stringify(e))}var Kd,Gd,Qd,Xd,Yd,Zd,ef,tf={isVerify:function(){return Vd&&(!0===Vd||Vd.call(qd))},commands:{app_alert:function(e){return zd&&zd.call(qd,JSON.stringify(e))},visualized_track:Wd,page_info:Wd,sensorsdata_get_app_visual_config:function(e,t){return t&&"function"==typeof t[e.callType]&&t[e.callType]()}}};var rf={init:function(e){Zd=(Yd=e)&&Yd._,ef=Yd&&Yd.log||console&&console.log||function(){},function(){if(Kd=window.SensorsData_APP_JS_Bridge,Gd=Kd&&Kd.sensorsdata_track,Qd=Kd&&Kd.sensorsdata_verify,Xd=Kd&&Kd.sensorsdata_visual_verify,Yd&&!Yd.bridge.activeBridge&&(Qd||Gd||Xd)){Yd.bridge.activeBridge=rf;var e=Qd||Gd;Xd&&(e=!!Xd.call(Kd,JSON.stringify({server_url:Yd.para.server_url}))),Yd.bridge.bridge_info={touch_app_bridge:!0,platform:"android",verify_success:e?"success":"fail"},Yd.para.app_js_bridge?(Yd.registerInterceptor("sendDataStage",{send:{priority:80,entry:nf}}),ef("Android obsolete bridge inits succeed.")):ef("app_js_bridge is not configured, data will not be sent by android obsolete bridge.")}}()},handleCommand:function(e){var t=e.callType;return t in tf.commands?tf.commands[t](e,Kd):Kd&&Zd.isFunction(Kd.sensorsdata_js_call_app)?Kd.sensorsdata_js_call_app(JSON.stringify(e)):void 0}};function nf(e,t){if(Yd.para.app_js_bridge.is_mui||"item_set"===e.data.type||"item_delete"===e.data.type)return e;var r=e.callback;return Qd?Qd&&Qd.call(Kd,JSON.stringify(Zd.extend({server_url:Yd.para.server_url},e.data)))?(Zd.isFunction(r)&&r(),t.cancellationToken.cancel(),e):Yd.para.app_js_bridge.is_send?(Yd.debug.apph5({data:e.data,step:"3.1",output:"all"}),e):(Zd.isFunction(r)&&r(),t.cancellationToken.cancel(),e):(Gd&&Gd.call(Kd,JSON.stringify(Zd.extend({server_url:Yd.para.server_url},e.data))),Zd.isFunction(r)&&r(),t.cancellationToken.cancel(),e)}var of,af,sf,cf,lf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(rf,"AndroidObsoleteBridge","sdkAfterInitPara");var uf,pf={event_list:[],latest_event_initial_time:null,max_save_time:2592e6,init:function(e,t){if(af||!e)return!1;cf=(t=t||{}).cookie_name||"sensorsdata2015jssdkchannel",af=e;var r=this;!function(){if(of=af._,sf=af.store,!of.localStorage.isSupport())return!1;af.para.max_string_length=1024,r.eventList.init(),r.addLatestChannelUrl(),r.addIsChannelCallbackEvent()}()},addIsChannelCallbackEvent:function(){af.registerPage({$is_channel_callback_event:function(e){if(of.isObject(e)&&e.event&&"$WebClick"!==e.event&&"$pageview"!==e.event&&"$WebStay"!==e.event&&"$SignUp"
3!==e.event)return!pf.eventList.hasEvent(e.event)&&(pf.eventList.add(e.event),!0)}})},addLatestChannelUrl:function(){var e=this.getUrlDomain(),t=this.cookie.getChannel();if("url解析失败"===e)this.registerAndSave({_sa_channel_landing_url:"",_sa_channel_landing_url_error:"url的domain解析失败"});else if(of.isReferralTraffic(document.referrer)){var r=of.getQueryParam(location.href,"sat_cf");of.isString(r)&&r.length>0?(this.registerAndSave({_sa_channel_landing_url:location.href}),pf.channelLinkHandler()):this.registerAndSave({_sa_channel_landing_url:""})}else t?af.registerPage(t):af.registerPage({_sa_channel_landing_url:"",_sa_channel_landing_url_error:"取值异常"})},registerAndSave:function(e){af.registerPage(e),this.cookie.saveChannel(e)},cookie:{getChannel:function(){var e=af.kit.userDecryptIfNeeded(of.cookie.get(cf));return e=of.safeJSONParse(e),!(!of.isObject(e)||!e.prop)&&e.prop},saveChannel:function(e){var t={prop:e},r=JSON.stringify(t);af.para.encrypt_cookie&&(r=af.kit.userEncrypt(r)),of.cookie.set(cf,r)}},channelLinkHandler:function(){this.eventList.reset(),af.track("$ChannelLinkReaching")},getUrlDomain:function(){var e=of.info.pageProp.url_domain;return""===e&&(e="url解析失败"),e},eventList:{init:function(){var e=this.get(),t=(new Date).getTime();if(e&&of.isNumber(e.latest_event_initial_time)&&of.isArray(e.eventList)){var r=t-e.latest_event_initial_time;r>0&&r<pf.max_save_time?(pf.event_list=e.eventList,pf.latest_event_initial_time=e.latest_event_initial_time):this.reset()}else this.reset()},get:function(){var e={};try{e=sf.readObjectVal("sawebjssdkchannel")}catch(t){af.log(t)}return e},add:function(e){pf.event_list.push(e),this.save()},save:function(){var e={latest_event_initial_time:pf.latest_event_initial_time,eventList:pf.event_list};sf.saveObjectVal("sawebjssdkchannel",e)},reset:function(){pf.event_list=[],pf.latest_event_initial_time=(new Date).getTime(),this.save()},hasEvent:function(e){var t=!1;return of.each(pf.event_list,(function(r){r===e&&(t=!0)})),t}}},df=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(pf,"SensorsChannel","sdkAfterInitAPI");/micromessenger\/([\d.]+)/i.test(navigator.userAgent||"");var ff=function(){var e={};return void 0!==document.hidden?(e.hidden="hidden",e.visibilityChange="visibilitychange"):void 0!==document.msHidden?(e.hidden="msHidden",e.visibilityChange="msvisibilitychange"):void 0!==document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e};function gf(){return void 0!==uf&&document[uf]}uf=ff().hidden;var hf,_f,mf,vf,yf,bf={android:/Android/i,iOS:/iPhone|iPad|iPod/i},wf=function(){for(var e in bf)if(navigator.userAgent.match(bf[e]))return e;return""}(),Sf=function(){return bf.hasOwnProperty(wf)},kf=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},Ef=function(e){return e.match(/\/sd\/(\w+)\/(\w+)$/)},Pf=function(e){var t=e._.URL(e.para.server_url);return{origin:t.origin,project:t.searchParams.get("project")||"default"}},Of={key:null,timer:null,sd:null,data:null,timeout:2500,apiURL:"{origin}/sdk/deeplink/param?key={key}&system_type=JS&project={project}",init:function(e){if(this.sd)return this.log("deeplink已经初始化"),!1;if(this.sd=e,this.log("deeplink init called"),null===this.sd)return this.log("神策JS SDK未成功引入"),!1;var t={};if(arguments.length>0&&(1===arguments.length&&kf(arguments[0])?t=arguments[0]:arguments.length>=2&&kf(arguments[1])&&(t=arguments[1])),!Sf())return this.log("不支持当前系统,目前只支持Android和iOS"),!1;if(kf(t)&&this.sd._.isNumber(t.timeout)&&t.timeout>=2500&&(this.timeout=t.timeout),!this.sd.para.server_url)return this.log("神策JS SDK配置项server_url未正确配置"),!1;var r=Pf(this.sd);this.apiURL=this.apiURL.replace("{origin}",r.origin).replace("{project}",r.project);var n=this.sd._.getQueryParam(window.location.href,"deeplink");if(!n)return this.log("当前页面缺少deeplink参数"),!1;n=window.decodeURIComponent(n);var i=Ef(n);if(!i)return this.log("当前页面的deeplink参数无效"),!1;this.key=i[2],this.apiURL=this.apiURL.replace("{key}",window.encodeURIComponent(i[2])),this.sd._.ajax({url:this.apiURL,type:"GET",cors:!0,credentials:!1,success:function(e){if(e.errorMsg)return Of.log("API报错:"+e.errorMsg),!1;Of.data=e,Of.log("API查询成功,数据:"+JSON.stringify(e,null,"  ")),this.data.app_key&&(this.data.android_info&&this.data.android_info.url_schemes&&(this.data.android_info.url_schemes+="://sensorsdata/sd/"+this.data.app_key+"/"+this.key),this.data.ios_info&&this.data.ios_info.url_schemes&&(this.data.ios_info.url_schemes+="://sensorsdata/sd/"+this.data.app_key+"/"+this.key))}.bind(this),error:function(){Of.log("API查询出错")}}),this.addListeners()},openDeepLink:function(){if(this.log("openDeeplink()"),!this.data)return this.log("没有Deep link数据!"),!1;if("iOS"===wf){this.log("当前系统是iOS");var e=this.sd&&this.sd._&&this.sd._.getIOSVersion()>=9&&this.data.ios_info.ios_wake_url?this.data.ios_info.ios_wake_url:this.data.ios_info.url_schemes;this.log("唤起APP的地址:"+e),function(e,t,r){e.log("尝试唤起 iOS app:"+t),window.location.href=t,e.timer=setTimeout((function(){if(gf())return e.log("The page is hidden, stop n
3avigating to download page"),!1;e.log("App可能未安装,跳转到下载地址"),window.location.href=r}),e.timeout),e.log("new timer:"+e.timer)}(this,e,this.data.ios_info.download_url)}else this.log("当前系统是 android"),function(e,t,r){e.log("尝试唤起 android app");var n=t;e.log("唤起APP的地址:"+n),window.location=n,e.timer=setTimeout((function(){var t=gf();if(e.log("hide:"+uf+":"+document[uf]),t)return e.log("The page is hidden, stop navigating to download page"),!1;e.log("App可能未安装,跳转到下载地址"),window.location=r}),e.timeout)}(this,this.data.android_info.url_schemes,this.data.android_info.download_url)},log:function(e){this.sd&&this.sd.log(e)},addListeners:function(){var e=ff().visibilityChange;e&&document.addEventListener(e,function(){clearTimeout(this.timer),this.log("visibilitychange, clear timeout:"+this.timer)}.bind(this),!1),window.addEventListener("pagehide",function(){this.log("page hide, clear timeout:"+this.timer),clearTimeout(this.timer)}.bind(this),!1)}},jf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Of,"Deeplink","sdkReady");var Af={init:function(e){vf=(mf=e)&&mf._,yf=mf&&mf.log||console&&console.log||function(){},hf=window.SensorsData_iOS_JS_Bridge&&window.SensorsData_iOS_JS_Bridge.sensorsdata_app_server_url,_f=function(){return window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.sensorsdataNativeTracker},mf&&!mf.bridge.activeBridge&&_f()&&_f().postMessage&&(mf.bridge.activeBridge=Af,mf.para.app_js_bridge&&!mf.para.app_js_bridge.is_mui&&(mf.bridge.is_verify_success=hf&&mf.bridge.validateAppUrl(hf)),mf.bridge.bridge_info={touch_app_bridge:!0,platform:"ios",verify_success:mf.bridge.is_verify_success?"success":"fail",support_two_way_call:!0},mf.para.app_js_bridge?(mf.registerInterceptor("sendDataStage",{send:{priority:70,entry:If}}),yf("IOS bridge inits succeed.")):yf("app_js_bridge is not configured, data will not be sent by iOS bridge."))},handleCommand:function(e){var t=e.callType;return"page_info"!==t&&"visualized_track"!==t||mf.bridge.hasVisualModeBridge()?"sensorsdata_get_app_visual_config"===t?vf.isObject(window.SensorsData_APP_New_H5_Bridge)&&window.SensorsData_APP_New_H5_Bridge[t]:_f()&&_f().postMessage(JSON.stringify(e)):null}};function If(e,t){if(mf.para.app_js_bridge.is_mui||"item_set"===e.data.type||"item_delete"===e.data.type)return e;var r=e.callback;return mf.bridge.is_verify_success?(_f()&&_f().postMessage(JSON.stringify({callType:"app_h5_track",data:vf.extend({server_url:mf.para.server_url},e.data)})),vf.isFunction(r)&&r(),t.cancellationToken.cancel(),e):mf.para.app_js_bridge.is_send?(mf.debug.apph5({data:e.data,step:"4.1",output:"all"}),e):(vf.isFunction(r)&&r(),t.cancellationToken.cancel(),e)}var Tf,Cf,xf,Nf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Af,"IOSBridge","sdkAfterInitPara");var Lf={init:function(e){Cf=(Tf=e)&&Tf._,xf=Tf&&Tf.log||console&&console.log||function(){},Tf&&!Tf.bridge.activeBridge&&(/sensors-verify/.test(navigator.userAgent)||/sa-sdk-ios/.test(navigator.userAgent))&&!window.MSStream&&(Tf.bridge.activeBridge=Lf,Tf.bridge.bridge_info={touch_app_bridge:!0,platform:"ios",verify_success:Df()?"success":"fail"},Tf.para.app_js_bridge?(Tf.registerInterceptor("sendDataStage",{send:{priority:90,entry:Rf}}),xf("IOS obsolete bridge inits succeed.")):xf("app_js_bridge is not configured, data will not be sent by iOS obsolete bridge."))}};function Df(){if(/sensors-verify/.test(navigator.userAgent)){var e=navigator.userAgent.match(/sensors-verify\/([^\s]+)/);if(e&&e[0]&&"string"==typeof e[1]&&2===e[1].split("?").length){e=e[1].split("?");var t=null,r=null;try{t=Cf.URL(Tf.para.server_url).hostname,r=Cf.URL(Tf.para.server_url).searchParams.get("project")||"default"}catch(n){Tf.log(n)}return!(!t||t!==e[0]||!r||r!==e[1])}return!1}return!!/sa-sdk-ios/.test(navigator.userAgent)}
3function Rf(e,t){if(Tf.para.app_js_bridge.is_mui||"item_set"===e.data.type||"item_delete"===e.data.type)return e;var r,n,i=e.callback;if(Tf.bridge.bridge_info.verify_success){var o=document.createElement("iframe"),a=(r=e.data,n=(n=JSON.stringify(Cf.extend({server_url:Tf.para.server_url},r))).replace(/\r\n/g,""),"sensorsanalytics://trackEvent?event="+(n=encodeURIComponent(n)));return o.setAttribute("src",a),document.documentElement.appendChild(o),o.parentNode.removeChild(o),o=null,Cf.isFunction(i)&&i(),t.cancellationToken.cancel(),!0}return Tf.para.app_js_bridge.is_send?(Tf.debug.apph5({data:e.data,step:"3.2",output:"all"}),e):(Cf.isFunction(i)&&i(),t.cancellationToken.cancel(),e)}var Uf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Lf,"IOSObsoleteBridge","sdkAfterInitPara");function Bf(){this.sd=null,this.start_time=+new Date,this.page_show_status=!0,this.page_hidden_status=!1,this._={},this.timer=null,this.current_page_url=document.referrer,this.url=location.href,this.title=document.title||"",this.option={},this.heartbeat_interval_time=5e3,this.heartbeat_interval_timer=null,this.page_id=null,this.storage_name="sawebjssdkpageleave",this.max_duration=432e3}Bf.prototype.init=function(e,t){if(e){if(this.sd=e,this._=this.sd._,t){this.option=t;var r=t.heartbeat_interval_time;r&&(this._.isNumber(r)||this._.isNumber(1*r))&&1*r>0&&(this.heartbeat_interval_time=1e3*r);var n=t.max_duration;n&&(this._.isNumber(n)||this._.isNumber(1*n))&&1*n>0&&(this.max_duration=n)}this.page_id=Number(String(this._.getRandom()).slice(2,5)+String(this._.getRandom()).slice(2,4)+String((new Date).getTime()).slice(-4)),this.addEventListener(),!0===document.hidden?this.page_show_status=!1:this.addHeartBeatInterval(),this.log("PageLeave初始化完毕")}else this.log("神策JS SDK未成功引入")},Bf.prototype.log=function(e){this.sd&&this.sd.log(e)},Bf.prototype.refreshPageEndTimer=function(){var e=this;this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((function(){e.page_hidden_status=!1}),5e3)},Bf.prototype.hiddenStatusHandler=function(){clearTimeout(this.timer),this.timer=null,this.page_hidden_status=!1},Bf.prototype.pageStartHandler=function(){this.start_time=+new Date,1==!document.hidden?this.page_show_status=!0:this.page_show_status=!1,this.url=location.href,this.title=document.title},Bf.prototype.pageEndHandler=function(){if(!0!==this.page_hidden_status){var e=this.getPageLeaveProperties();!1===this.page_show_status&&delete e.event_duration,this.page_show_status=!1,this.page_hidden_status=!0,this.isCollectUrl(this.url)&&this.sd.track("$WebPageLeave",e),this.refreshPageEndTimer(),this.delHeartBeatData()}},Bf.prototype.addEventListener=function(){this.addPageStartListener(),this.addPageSwitchListener(),this.addSinglePageListener(),this.addPageEndListener()},Bf.prototype.addPageStartListener=function(){var e=this;"onpageshow"in window&&this._.addEvent(window,"pageshow",(function(){e.pageStartHandler(),e.hiddenStatusHandler()}))},Bf.prototype.isCollectUrl=function(e){return"function"!=typeof this.option.isCollectUrl||"string"!=typeof e||""===e||this.option.isCollectUrl(e)},Bf.prototype.addSinglePageListener=function(){var e=this;this.sd.ee&&this.sd.ee.spa.prepend("switch",(function(t){t!==location.href&&(e.url=t,e.pageEndHandler(),e.stopHeartBeatInterval(),e.current_page_url=e.url,e.pageStartHandler(),e.hiddenStatusHandler(),e.addHeartBeatInterval())}))},Bf.prototype.addPageEndListener=function(){var e=this;this._.each(["pagehide","beforeunload","unload"],(function(t){"on"+t in window&&e._.addEvent(window,t,(function(){e.pageEndHandler(),e.stopHeartBeatInterval()}))}))},Bf.prototype.addPageSwitchListener=function(){var e=this;this._.listenPageState({visible:function(){e.pageStartHandler(),e.hiddenStatusHandler(),e.addHeartBeatInterval()},hidden:function(){e.url=location.href,e.title=document.title,e.pageEndHandler(),e.stopHeartBeatInterval()}})},Bf.prototype.addHeartBeatInterval=function(){this._.localStorage.isSupport()&&this.startHeartBeatInterval()},Bf.prototype.startHeartBeatInterval=function(){var e=this;this.heartbeat_interval_timer&&this.stopHeartBeatInterval();var t=!0;this.isCollectUrl(this.url)||(t=!1),this.heartbeat_interval_timer=setInterval((function(){t&&e.saveHeartBeatData()}),this.heartbeat_interval_time),t&&this.saveHeartBeatData("is_first_heartbeat"),this.reissueHeartBeatData()},Bf.prototype.stopHeartBeatInterval=function(){clearInterval(this.heartbeat_interval_timer),this.heartbeat_interval_timer=null},Bf.prototype.saveHeartBeatData=function(e){var t=this.getPageLeaveProperties(),r=new Date;t.$time=r,"is_first_heartbeat"===e&&(t.event_duration=3.14);var n=this.sd.kit.buildData({type:"track",event:"$WebPageLeave",properties:t});try{"success"===this.sd.bridge.bridge_info.verify_success&&(n.properties.$time=1*r)}catch(i){this.log(i.message)}n.heartbeat_interval_time=this.heartbeat_interval_time,this.sd.store.saveObjectVal(this.storage_name+"-"+this.page_id,n)},Bf.prototype.delHeartBeatData=function(e){this._.localStorage.isSupport()&&this._.localStorage.remove(e||this.storage_name+"-"+this.page_id)},Bf.prototype.reissueHeartBeatData=function(){for(var e=window.localStorage.length-1;e>=0;e--){var t=window.localStorage.key(e);if(t&&t!==this.storage_name+"-"+this.page_id&&0===t.indexOf(this.storage_name+"-")){var r=this.sd.store.readObjectVal(t);this._.isObject(r)&&1*new Date-r.time>r.heartbeat_interval_time+5e3&&(delete r.heartbeat_interval_time,r._flush_time=(new Date).getTime(),this.sd.kit.sendData(r),this.delHeartBeatData(t))}}},Bf.prototype.getPageLeaveProperties=function(){var e=(+new Date-this.start_time)/1e3;(isNaN(e)||e<0||e>this.max_duration)&&(e=0),e=Number(e.toFixed(3));
3var t=this._.getReferrer(this.current_page_url),r=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body&&document.body.scrollTop||0;r=Math.round(r)||0;var n={$title:this.title,$url:this._.getURL(this.url),$url_path:this._.getURLPath(this._.URL(this.url).pathname),$referrer_host:t?this._.getHostname(t):"",$referrer:t,$viewport_position:r};return 0!==e&&(n.event_duration=e),this._.extend(n,this.option.custom_props)};var $f=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(new Bf,"PageLeave","sdkReady");var Mf=!1,Ff={init:function(e,t){function r(){var n,i,o=0,a=window.performance||window.webkitPerformance||window.msPerformance||window.mozPerformance,s={$url:e._.getURL(),$title:document.title,$url_path:e._.getURLPath(),$referrer:e._.getReferrer(null,!0)};if(a?(n=a,i=0,e._.isFunction(n.getEntriesByType)&&(i=((n.getEntriesByType("navigation")||[{}])[0]||{}).domContentLoadedEventEnd||0),o=i||function(t){var r=0;if(t.timing){var n=t.timing;0!==n.fetchStart&&e._.isNumber(n.fetchStart)&&0!==n.domContentLoadedEventEnd&&e._.isNumber(n.domContentLoadedEventEnd)?r=n.domContentLoadedEventEnd-n.fetchStart:e.log("performance 数据获取异常")}return r}(a),function(t,r){if(t.getEntries&&"function"==typeof t.getEntries){for(var n=t.getEntries(),i=null,o=0;o<n.length;o++)"transferSize"in n[o]&&(i+=n[o].transferSize);e._.isNumber(i)&&i>=0&&i<10737418240&&(r.$page_resource_size=Number((i/1024).toFixed(3)))}}(a,s)):e.log("浏览器未支持 performance API."),o>0){var c=e._.isObject(t)&&t.max_duration||1800;o=Number((o/1e3).toFixed(3)),(!e._.isNumber(c)||c<=0||o<=c)&&(s.event_duration=o)}Mf||(e.track("$WebPageLoad",s),Mf=!0),window.removeEventListener?window.removeEventListener("load",r):window.detachEvent&&window.detachEvent("onload",r)}"complete"==document.readyState?r():window.addEventListener?window.addEventListener("load",r):window.attachEvent&&window.attachEvent("onload",r)}},Hf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Ff,"PageLoad","sdkReady");function qf(){this.sd=null,this.log=window.console&&window.console.log||function(){},this.customRegister=[]}qf.prototype.init=function(e){if(e){this.sd=e,this._=e._,this.log=e.log;var t=this;e.registerInterceptor("buildDataStage",{extendProps:{priority:0,entry:function(e){return function(e,t){if("track"!==e.type)return e;var r=t.sd,n=r._,i=r.saEvent.check,o=n.extend2Lev({properties:{}},e),a=t.customRegister,s=o.properties,c=o.event,l={};return n.each(a,(function(e){if(n.isObject(e))n.indexOf(e.events,c)>-1&&i({properties:e.properties})&&(l=n.extend(l,e.properties));else if(n.isFunction(e)){var t=e({event:c,properties:s,data:o});n.isObject(t)&&!n.isEmptyObject(t)&&i({properties:t})&&(l=n.extend(l,t))}})),e.properties=n.extend(s,l),e}(e,t)}}})}else this.log("神策JS SDK未成功引入")},qf.prototype.register=function(e){this.sd?this._.isObject(e)&&this._.isArray(e.events)&&e.events.length>0&&this._.isObject(e.properties)&&!this._.isEmptyObject(e.properties)?this.customRegister.push(e):this.log("RegisterProperties: register 参数错误"):this.log("神策JS SDK未成功引入")},qf.prototype.hookRegister=function(e){this.sd?this._.isFunction(e)?this.customRegister.push(e):this.log("RegisterProperties: hookRegister 参数错误"):this.log("神策JS SDK未成功引入")};qf.prototype.plugin_name="RegisterProperties";var Vf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();
vendor: 4,824 bytes, line 3
3function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(new qf);var zf,Jf,Wf=window.console&&window.console.log||function(){};function Kf(e){try{if("$pageview"!==e.event&&(!e.type||"profile"!==e.type.slice(0,7))){var t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0,r=document.documentElement.scrollHeight||0,n={$page_height:Math.max(t,r)||0};e.properties=zf._.extend(e.properties||{},n)}}catch(i){Wf("页面高度获取异常。")}return Jf.call(zf.kit,e)}var Gf={init:function(e){Wf=(zf=e)&&zf.log||Wf,e&&e.kit&&e.kit.buildData?(Jf=zf.kit.buildData,zf.kit.buildData=Kf,Wf("RegisterPropertyPageHeight 插件初始化完成")):Wf("RegisterPropertyPageHeight 插件初始化失败,当前主sdk不支持 RegisterPropertyPageHeight 插件,请升级主sdk")}},Qf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Gf,"RegisterPropertyPageHeight","sdkReady");var Xf,Yf={getPart:function(e){var t=this.option.length;if(t)for(var r=0;r<t;r++)if(e.indexOf(this.option[r].part_url)>-1)return!0;return!1},getPartHash:function(e){var t=this.option.length;if(t)for(var r=0;r<t;r++)if(e.indexOf(this.option[r].part_url)>-1)return this.option[r].after_hash;return!1},getCurrenId:function(){var e=this.store.getDistinctId()||"",t=this.store.getFirstId()||"";return this._.urlSafeBase64&&this._.urlSafeBase64.encode?e=e?this._.urlSafeBase64.trim(this._.urlSafeBase64.encode(this._.base64Encode(e))):"":this._.rot13obfs&&(e=e?this._.rot13obfs(e):""),encodeURIComponent(t?"f"+e:"d"+e)},rewriteUrl:function(e,t){var r=this,n=/([^?#]+)(\?[^#]*)?(#.*)?/.exec(e),i="";if(n){var o,a=n[1]||"",s=n[2]||"",c=n[3]||"",l="_sasdk="+this.getCurrenId(),u=function(e){var t=e.split("&"),n=[];return r._.each(t,(function(e){e.indexOf("_sasdk=")>-1?n.push(l):n.push(e)})),n.join("&")};return this.getPartHash(e)?(o=c.indexOf("_sasdk"),i=c.indexOf("?")>-1?o>-1?a+s+"#"+c.substring(1,o)+u(c.substring(o,c.length)):a+s+c+"&"+l:a+s+"#"+c.substring(1)+"?"+l):(o=s.indexOf("_sasdk"),i=/^\?(\w)+/.test(s)?o>-1?a+"?"+u(s.substring(1))+c:a+s+"&"+l+c:a+"?"+l+c),t&&(t.href=i),i}},getUrlId:function(){var e=location.href.match(/_sasdk=([aufd][^\?\#\&\=]+)/);if(this._.isArray(e)&&e[1]){var t=decodeURIComponent(e[1]);return!t||"f"!==t.substring(0,1)&&"d"!==t.substring(0,1)||(this._.urlSafeBase64&&this._.urlSafeBase64.isUrlSafeBase64&&this._.urlSafeBase64.isUrlSafeBase64(t)?t=t.substring(0,1)+this._.base64Decode(this._.urlSafeBase64.decode(t.substring(1))):this._.rot13defs&&(t=t.substring(0,1)+this._.rot13defs(t.substring(1)))),t}return""},setRefferId:function(e){var t=this.store.getDistinctId(),r=this.getUrlId();if(r&&""!==r){var n="a"===r.substring(0,1)||"d"===r.substring(0,1);(r=r.substring(1))!==t&&(n?(this.sd.identify(r,!0),this.store.getFirstId()&&this.sd.saEvent.send({original_id:r,distinct_id:t,type:"track_signup",event:"$SignUp",properties:{}},null)):this.store.getFirstId()&&!e.re_login||this.sd.login(r))}},addListen:function(){var e=this,t=function(t){var r,n,i=t.target,o=i.tagName.toLowerCase(),a=i.parentNode;if("a"===o&&i.href||a&&a.tagName&&"a"===a.tagName.toLowerCase()&&a.href){"a"===o&&i.href?(r=i.href,n=i):(r=a.href,n=a);var s=e._.URL(r).protocol;"http:"!==s&&"https:"!==s||e.getPart(r)&&e.rewriteUrl(r,n)}};e._.addEvent(document,"mousedown",t),window.PointerEvent&&"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>=0&&e._.addEvent(document,"pointerdown",t)},init:function(e,t){this.sd=e,this._=e._,this.store=e.store,this.para=e.para,this._.isObject(t)&&this._.isArray(t.linker)&&t.linker.length>0?(this.setRefferId(t),this.addListen(),this.option=t.linker,this.option=function(t){for(var r=t.length,n=[],i=0;i<r;i++)/[A-Za-z0-9]+\./.test(t[i].part_url)&&"[object Boolean]"==Object.prototype.toString.call(t[i].after_hash)?n.push(t[i]):e.log("linker 配置的第 "+(i+1)+" 项格式不正确,请检查参数格式!");return n}(this.option)):e.log("请配置打通域名参数!")}},Zf=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();
3function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Yf,"SiteLinker","sdkReady");var eg={init:function(e){e&&!Xf&&(Xf=e).registerInterceptor("businessStage",{getUtmData:{priority:0,entry:function(){return e="utm_source utm_medium utm_campaign utm_content utm_term".split(" "),t="",r={},Xf._.isArray(Xf.para.source_channel)&&Xf.para.source_channel.length>0&&(e=e.concat(Xf.para.source_channel),e=Xf._.unique(e)),Xf._.each(e,(function(e){(t=Xf._.getQueryParam(location.href,e)).length&&(r[e]=t)})),r;var e,t,r}}})}},tg=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(eg,"Utm","sdkAfterInitPara");var rg=!1,ng=null,ig={init:function(e){(ng=e).disableSDK=og,ng.enableSDK=ag,ng.getDisabled=sg}};function og(){rg=!0}function ag(){rg=!1}function sg(){return rg}var cg,lg,ug=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(ig,"DisableSDK","sdkInitAPI");function pg(e,t){if(!0===cg.para.debug_mode){var r=e.data;e.callback,function(e){var t,r=e;t=-1!==cg.para.debug_mode_url.indexOf("?")?cg.para.debug_mode_url+"&"+cg.kit.encodeTrackData(e):cg.para.debug_mode_url+"?"+cg.kit.encodeTrackData(e),lg.ajax({url:t,type:"GET",cors:!0,header:{"Dry-Run":String(cg.para.debug_mode_upload)},success:function(e){!0===lg.isEmptyObject(e)?alert("debug数据发送成功"+r):alert("debug失败 错误原因"+JSON.stringify(e))}})}(JSON.stringify(r)),t.cancellationToken.stop()}return e}function dg(){cg.on("sdkInitPara",(function(){!0===cg.para.debug_mode&&(cg.para.debug_mode_upload=cg.para.debug_mode_upload||!1,lg.isString(cg.para.debug_mode_url)||(lg.isString(cg.para.server_url)?cg.para.debug_mode_url=cg.para.server_url.replace("sa.gif","debug"):lg.isArray(cg.para.server_url)&&lg.isString(cg.para.server_url[0])?cg.para.debug_mode_url=cg.para.server_url[0].replace("sa.gif","debug"):cg.para.debug_mode=!1))})),cg.on("sdkAfterInitPara",(function(){cg.registerInterceptor("sendDataStage",{send:{priority:30,entry:pg}})}))}var fg,gg,hg={plugin_name:"DebugSender",init:function(e){lg=(cg=e)._,dg()}},_g=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(hg);function mg(e,t){if(gg.isObject(fg.para.jsapp)&&!fg.para.jsapp.isOnline&&"function"==typeof fg.para.jsapp.setData){var r=e;delete r.callback,r=JSON.stringify(r),fg.para.jsapp.setData(r),t.cancellationToken.stop()}return e}function vg(e){if(!0===e&&gg.isObject(fg.para.jsapp)&&"function"==typeof fg.para.jsapp.getData){fg.para.jsapp.isOnline=!0;var t=fg.para.jsapp.getData();gg.isArray(t)&&t.length>0&&gg.each(t,(function(e){gg.isJSONString(e)&&fg.kit.sendData(JSON.parse(e))}))}else fg.para.jsapp.isOnline=!1}var yg,bg,wg={plugin_name:"JsappSender",init:function(e){gg=(fg=e)._,fg.on("sdkAfterInitAPI",(function(){gg.isObject(fg.commonWays)&&(fg.commonWays.setOnlineState=vg),fg.registerInterceptor("sendDataStage",{send:{priority:40,entry:mg}})}
3))}},Sg=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(wg);var kg=null;function Eg(e,t){return!yg.para.app_js_bridge&&yg.para.batch_send&&bg.localStorage.isSupport()&&localStorage.length<yg.para.batch_send.storage_length&&(kg.add(e.data),t.cancellationToken.stop()),e}function Pg(){yg.on("sdkInitPara",(function(){!function(){var e={datasend_timeout:6e3,send_interval:6e3,storage_length:200};bg.localStorage.isSupport()&&bg.isSupportCors()&&"object"==typeof localStorage?!0===yg.para.batch_send?yg.para.batch_send=bg.extend({},e):"object"==typeof yg.para.batch_send&&(yg.para.batch_send=bg.extend({},e,yg.para.batch_send)):yg.para.batch_send=!1}()})),yg.on("sdkAfterInitPara",(function(){!yg.para.app_js_bridge&&yg.para.batch_send&&bg.localStorage.isSupport()&&(kg||(kg=new bg.BatchSend),kg.batchInterval(),yg.registerInterceptor("sendDataStage",{send:{priority:100,entry:Eg}}))}))}var Og,jg,Ag={plugin_name:"BatchSender",init:function(e){bg=(yg=e)._,Pg()}},Ig=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Ag);function Tg(e){new jg.BeaconSend(e).start()}function Cg(e,t){if("beacon"===Og.para.send_type){var r=e.server_url;e.data=Og.kit.encodeTrackData(e.data),jg.isArray(r)&&r.length?jg.each(r,(function(t){e.callback=null,e.server_url=t,Tg(e)})):"string"==typeof Og.para.server_url&&""!==Og.para.server_url?Tg(e):Og.log("当前 server_url 为空或不正确,只在控制台打印日志,network 中不会发数据,请配置正确的 server_url!"),t.cancellationToken.stop()}return e}function xg(){Og.on("sdkInitPara",(function(){"beacon"!==Og.para.send_type||jg.isSupportBeaconSend()||(Og.para.send_type="image")})),Og.on("sdkAfterInitPara",(function(){Og.registerInterceptor("sendDataStage",{send:{priority:110,entry:Cg}})}))}var Ng,Lg,Dg={plugin_name:"BeaconSender",init:function(e){jg=(Og=e)._,xg()}},Rg=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Dg);function Ug(e){new Lg.AjaxSend(e).start()}function Bg(e,t){if("ajax"===Ng.para.send_type){var r=e.server_url;e.data=Ng.kit.encodeTrackData(e.data),Lg.isArray(r)&&r.length?Lg.each(r,(function(t){e.callback=null,e.server_url=t,Ug(e)})):"string"==typeof Ng.para.server_url&&""!==Ng.para.server_url?Ug(e):Ng.log("当前 server_url 为空或不正确,只在控制台打印日志,network 中不会发数据,请配置正确的 server_url!"),t.cancellationToken.stop()}return e}function $g(){Ng.on("sdkInitPara",(function(){"ajax"!==Ng.para.send_type||Lg.isSupportCors()||(Ng.para.send_type="image")})),Ng.on("sdkAfterInitPara",(function(){Ng.registerInterceptor("sendDataStage",{send:{priority:120,entry:Bg}})}))}var Mg,Fg,Hg={plugin_name:"AjaxSender",init:function(e){Lg=(Ng=e)._,$g()}},qg=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();
3function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Hg);function Vg(e,t){var r=Mg.kit.encodeTrackData(t);return-1!==e.indexOf("?")?e+"&"+r:e+"?"+r}function zg(e){new Fg.ImageSend(e).start()}function Jg(e,t){var r=e.server_url,n=e.data;Fg.isArray(r)&&r.length?Fg.each(r,(function(t){t&&(e.data=Vg(t,n),e.callback=null,e.server_url=t,zg(e))})):"string"==typeof r&&""!==r?(e.data=Vg(r,n),zg(e)):Mg.logger&&Mg.logger.msg("当前 server_url 为空或不正确,只在控制台打印日志,network 中不会发数据,请配置正确的 server_url!").level("warn").log(),t.cancellationToken.stop()}function Wg(){Mg.on("sdkInitPara",(function(){"image"!==Mg.para.send_type&&"ajax"!==Mg.para.send_type&&"beacon"!==Mg.para.send_type&&(Mg.para.send_type="image")})),Mg.on("sdkAfterInitPara",(function(){Mg.registerInterceptor("sendDataStage",{send:{priority:130,entry:Jg}})}))}var Kg={plugin_name:"ImageSender",init:function(e){Fg=(Mg=e)._,Wg()}},Gg=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version="1.25.9",e}(Kg);var Qg=null,Xg=null,Yg=[],Zg={init:function(e){e&&(Xg=(Qg=e)._,Qg.logger&&Qg.logger.appendWriter(th),Qg.on&&Qg.on("sdkAfterInitPara",(function(){for(var e=0;e<Yg.length;e++)rh(Yg[e]);Yg=null})),Qg.on&&Qg.on("sdkInitAPI",(function(){Qg.enableLocalLog=ah,Qg.disableLocalLog=sh})))}},eh=function(e,t,r){return function(e,t,r){if(t&&(e.plugin_name=t),r&&e.init){var n=e.init;e.init=function(i,o){if(function(e,t,r){function n(t,n){e.logger?e.logger.msg.apply(e.logger,n).module(r+""||"").level(t).log():e.log&&e.log.apply(e,n)}t.log=function(){n("log",arguments)},t.warn=function(){n("warn",arguments)},t.error=function(){n("error",arguments)}}(i,e,t),i.readyState&&i.readyState.state>=3||!i.on)return a();function a(){n.call(e,i,o)}i.on(r,a)}}}(e,t,r),e.plugin_version=Pu,e}(Zg,"ConsoleLogger");function th(e){null!==Yg?Yg.push(e):rh(e)}function rh(e){try{if("log"===e.level&&nh())return void ih(e);if("warn"===e.level&&(ch()||nh()||Xg.isObject(Qg.para.show_log)&&"warn"===Qg.para.show_log.level))return void ih(e);if("error"===e.level&&(ch()||!Xg.isObject(Qg.para.show_log)||"none"!==Qg.para.show_log.level))return void ih(e)}catch(t){}}function nh(){return!!ch()||!0===Qg.para.show_log||Xg.isObject(Qg.para.show_log)&&"log"===Qg.para.show_log.level}function ih(e){var t=e.content,r=Xg.isObject(t[0])?Xg.formatJsonString(t[0]):t[0],n=function(e){var t="",r="",n=Qg.para.show_log;return Xg.isObject(n)&&!1===n.show_brand||(t+=e.brand),Xg.isObject(n)&&!1===n.show_level||(t+=(t.length>0?"-":"")+e.level),t.length>0&&(t="["+t+"]"),Xg.isObject(n)&&!1===n.show_module||(r=e.module),t+r}(e);t[0]=n+(n.length>0?": ":"")+r;try{console&&(Xg.isFunction(console[e.level])?console[e.level].apply(console,t):Xg.isObject(console[e.level])&&console[e.level](t[0]))}catch(i){}}var oh="sensorsdata_jssdk_debug";function ah(){Xg.sessionStorage.isSupport()&&sessionStorage.setItem(oh,"true")}function sh(){Xg.sessionStorage.isSupport()&&sessionStorage.removeItem(oh)}function ch(){return Xg.sessionStorage.isSupport()&&"true"===sessionStorage.getItem(oh)}Fc.modules=Fc.modules||{};for(var lh=[eh,jd,Hd,lf,df,jf,Nf,Uf,$f,Hf,Vf,Qf,Zf,tg,ug,_g,Sg,Ig,Rg,qg,Gg],uh=[eh,Od,tg,ug,Sg,_g,Hd,Nf,lf,Uf,Ig,Rg,qg,Gg],ph=0;ph<lh.length;ph++){var dh=lh[ph];Fc._.isString(dh.plugin_name)?Fc.modules[dh.plugin_name]=dh:Fc._.isArray(dh.plugin_name)&&Fc._.each(dh.plugin_name,(function(e){Fc.modules[e]=dh}))}for(ph=0;ph<uh.length;ph++)Fc.use(uh[ph]);var fh=Fc;try{"string"==typeof window.sensorsDataAnalytic201505?(Fc.para=window[sensorsDataAnalytic201505].para,Fc._q=window[sensorsDataAnalytic201505]._q,window[sensorsDataAnalytic201505]=Fc,window.sensorsDataAnalytic201505=Fc,Fc.init()):void 0===window.sensorsDataAnalytic201505?window.sensorsDataAnalytic201505=Fc:fh=window.sensorsDataAnalytic201505}catch(c_){wu(c_)}var gh=fh;class hh{constructor(){__publicField(this,"platform",Ic)}run(e,t,r){const{init:n,autoPV:i}=function(e){const{app_url:t,log:r=!1,cross:n=!0,auto_stay:i=!0,auto_pv:o=!0,batch_send:a=!0,batch_send_duration:s=1e3,sdk_escape:c,max_string_length:l}=e;let u="";u=/hicustom.com/.test(location.host)?Tc:/zhiwendiy.com/.test(location.host)?xc:Cc;
3const p={server_url:t||u,send_type:"ajax",show_log:r,cross_subdomain:n,batch_send:!!a&&{datasend_timeout:6e3,send_interval:s},heatmap:{clickmap:"default",scroll_notice_map:i?"default":"not_collect",collect_tags:{div:{max_level:1},span:!0}},max_string_length:l||500,preset_properties:{latest_referrer_host:!0,latest_landing_page:!0}},d=Nc(c)?c:{};return Object.assign(p,d),{init:p,autoPV:o}}(e);gh.init(n),this.setConfig(t),this.setCode(r),i&&gh.quick("autoTrack"),gh.use("PageLeave"),gh.use("PageLoad")}report(e,t={}){gh.track(e,t)}reportPV(e){gh.quick("autoTrackSinglePage",e)}setCode(e=""){try{gh.login(e)}catch(t){console.error(t)}}setConfig(e={}){try{gh.registerPage(e)}catch(t){console.error(t)}}get getToken(){const e={anonymous_id:""};try{e.anonymous_id=gh.quick("getAnonymousID")}catch(Wc){console.error(Wc)}return e}setProfile(e={}){gh.setProfile(e)}}const _h={PROD_URL:Tc,TEST_URL:Cc,SANDBOX_URL:xc,platformInstanceList:[],scInstance:null,hsInstance:null,initByPlatformType(e){var t;if(!Nc(e))return console.error("请检查配置类型,object || object[]");const{type:r,options:n,init:i,config:o}=e;if(!r)return console.error("type不能为空");const a=navigator.userAgent.match(/(iPhone|iPod|Android|ios|iOS|iPad|Backerry|WebOS|Symbian|Windows Phone|Phone)/i)?"Mobile":"PC",{platform_type:s=a,code:c,method:l,url:u}=n||{},p=Rc({method:l,url:u}),d={method:1},f=Object.assign(d,p),g=Dc(),h={log:!1,auto_pv:!0,auto_stay:!0,cross:!0,batch_send:!0,batch_send_duration:1e3},_=Object.assign(h,i);g&&g.showlog&&(_.log=!0);const m=mh(),v=Object.assign({_platform_type:s,_page_referrer_url:document.referrer,...m}),y=Object.assign(v,o);if(r===Ac&&!this.hsInstance)try{this.hsInstance=new $c(f),this.platformInstanceList.push(this.hsInstance),this.hsInstance.setup(),this.hsInstance.run(_,y,c)}catch(b){console.error(`火山:${b}`)}if(r===Ic&&!this.scInstance)try{this.scInstance=new hh,this.platformInstanceList.push(this.scInstance),y.$user_agent=null==(t=null==window?void 0:window.navigator)?void 0:t.userAgent,this.scInstance.run(_,y,c)}catch(b){console.error(`神策:${b}`)}},init(e){try{Nc(e)?this.initByPlatformType(e):(t=e,"[object Array]"===Object.prototype.toString.call(t)&&e.length>0?e.forEach((e=>{this.initByPlatformType(e)})):console.error("请检查初始化参数"))}catch(r){console.error(`init:${r}`)}var t},report(e,t={},r={}){try{if(n=e,"[object String]"!==Object.prototype.toString.call(n))throw new Error("eventName 类型错误,期望为string");if(!Nc(t)&&!Lc(t))throw new Error("params 类型错误,期望为object或undefined");const{platform:i,...o}=r;this.platformInstanceList.forEach((r=>{i&&r.platform!==i||r.report&&r.report(e,t,o)}))}catch(i){console.error(`report:${i}`)}var n},reportPV(e,t){try{this.platformInstanceList.forEach((r=>{t&&r.platform!==t||r.reportPV&&r.reportPV(e)}))}catch(r){console.error(`reportPV:${r}`)}},get token(){const e=[];try{this.platformInstanceList.forEach((t=>{const r={...t.getToken,type:t.platform};e.push(r)}))}catch(t){console.error(`token:${t}`)}return e},getToken(e){try{return e===Ac&&this.hsInstance?this.hsInstance.getToken:e===Ic&&this.scInstance?this.scInstance.getToken:void 0}catch(t){console.error(`getToken:${t}`)}},setCode({code:e},t){try{this.platformInstanceList.forEach((r=>{t&&r.platform!==t||r.setCode&&r.setCode(e)}))}catch(r){console.error(`setCode:${r}`)}},setCommonConfig(e,t){try{const e=mh();this.platformInstanceList.forEach((r=>{t&&r.platform!==t||r.setConfig&&r.setConfig(Object.assign({},e))}))}catch(r){console.error(`setCommonConfig:${r}`)}},setConfig(e={},t){try{this.platformInstanceList.forEach((r=>{t&&r.platform!==t||r.setConfig&&r.setConfig(e)}))}catch(r){console.error(`setConfig:${r}`)}}};function mh(){return{_ad_code:Dc().ad_code||""}}var vh=(e=>(e.APPKEY="FFFF0N000000000074F9",e.SCENE="nc_login",e[e.PLATFORM=9]="PLATFORM",e.SALT="1aDlxSdiuLqnUZe9kA",e))(vh||{}),yh=(e=>(e[e.ACCOUNT=1]="ACCOUNT",e[e.CELLPHONE=2]="CELLPHONE",e[e.WEIBO=3]="WEIBO",e[e.WECHAT=4]="WECHAT",e[e.QQ=5]="QQ",e))(yh||{}),bh=(e=>(e[e.BUSINESS_CLIENT=1]="BUSINESS_CLIENT",e[e.FACTORY_CLIENT=2]="FACTORY_CLIENT",e[e.LOGISTICS_CLIENT=3]="LOGISTICS_CLIENT",e[e.AGENT_CLIENT=5]="AGENT_CLIENT",e[e.BUSINESS_INVITATION_OPERATION_CLIENT=6]="BUSINESS_INVITATION_OPERATION_CLIENT",e[e.BUSINESS_OPERATION_CLIENT=7]="BUSINESS_OPERATION_CLIENT",e[e.DATABANK_CLIENT=8]="DATABANK_CLIENT",e[e.ZDH_CLIENT=9]="ZDH_CLIENT",e[e.CHAN_POOL=10]="CHAN_POOL",e[e.ABROAD_FACTORY=12]="ABROAD_FACTORY",e[e.GROUP_OTHER=99]="GROUP_OTHER",e))(bh||{}),wh=(e=>(e[e.PC=1]="PC",e[e.MOBILE=2]="MOBILE",e))(wh||{}),Sh=(e=>(e[e.LOGIN=7]="LOGIN",e[e.REG=8]="REG",e))(Sh||{}),kh=(e=>(e[e.BIND=1]="BIND",e[e.UPDATEBIND=2]="UPDATEBIND",e))(kh||{}),Eh=(e=>(e[e.CELLPHONE=1]="CELLPHONE",e[e.EMAIL=2]="EMAIL",e))(Eh||{}),Ph=(e=>(e[e.BIND_CELLPHONE=1]="BIND_CELLPHONE",e[e.FIND_PASSWORD=2]="FIND_PASSWORD",e[e.CANCEL_CELLPHONE=3]="CANCEL_CELLPHONE",e[e.VERIFY_CELLPHOE=4]="VERIFY_CELLPHOE",e[e.CELLPHONE_BIND_EMAIL=5]="CELLPHONE_BIND_EMAIL",e[e.CELLPHONE_UPDATE_EMAIL=6]="CELLPHONE_UPDATE_EMAIL",e[e.SMS_FAST_LOGIN=7]="SMS_FAST_LOGIN",e[e.CELLPHONE_REGIST
3ER=8]="CELLPHONE_REGISTER",e))(Ph||{}),Oh=(e=>(e[e.BIND_EMAIL=1]="BIND_EMAIL",e[e.EMAIL_UPDATE_CELLPHONE=2]="EMAIL_UPDATE_CELLPHONE",e[e.FORGET_PASSWORD=3]="FORGET_PASSWORD",e))(Oh||{}),jh=(e=>(e[e.NORMAL=1]="NORMAL",e[e.DISABLED=-1]="DISABLED",e))(jh||{}),Ah=(e=>(e[e.SUCCESS=1]="SUCCESS",e[e.ACCOUNT_OR_PASSWORD_ERROR=2]="ACCOUNT_OR_PASSWORD_ERROR",e[e.IP_LIMIT=3]="IP_LIMIT",e[e.ACCOUNT_LOCKED=4]="ACCOUNT_LOCKED",e[e.PLATFORM_LIMIT=5]="PLATFORM_LIMIT",e))(Ah||{}),Ih=(e=>(e[e.MANY=1]="MANY",e[e.ONE=2]="ONE",e))(Ih||{}),Th=(e=>(e[e.NO_LIMIT=1]="NO_LIMIT",e[e.ONLY_WHITELIST=2]="ONLY_WHITELIST",e))(Th||{}),Ch=(e=>(e[e.LOCK=1]="LOCK",e[e.UNLOCK=0]="UNLOCK",e))(Ch||{}),xh=(e=>(e[e.INIT=0]="INIT",e[e.VIP=1]="VIP",e[e.SVIP=9]="SVIP",e))(xh||{}),Nh=(e=>(e[e.CELLPHONE_FIND_PASSWORD=2]="CELLPHONE_FIND_PASSWORD",e[e.EMAIL_RESET_PASSWORD=3]="EMAIL_RESET_PASSWORD",e))(Nh||{}),Lh=(e=>(e[e.AD=1]="AD",e[e.AGENT=2]="AGENT",e[e.LEASING_MANAGER=3]="LEASING_MANAGER",e[e.NEW_AD=4]="NEW_AD",e))(Lh||{});var Dh=Object.freeze(Object.defineProperty({__proto__:null,default:class{constructor(e,t){__publicField(this,"_platform"),this._platform=t}accountBind(e){return this.login(e)}login(e){if(!e.username)throw new Error("用户名/邮箱/手机参数异常");if(!e.password)throw new Error("密码参数异常");if(!e.acs||!e.acs.captcha_verify_param)throw new Error("滑块校验参数异常");const t=Nt(e);return t.platform||(t.platform=this._platform),new Promise(((e,r)=>{_s(t).then((t=>{var r;(null==(r=t.data)?void 0:r.token)&&(or(t.data.token,t.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,t.data.token,{expires:t.data.keep_alive/24})),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}loginOut(){return new Promise(((e,t)=>{ms().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}getRemoteLoginSmsCode(e){return t=e,js.post({url:"/uc-itg/uct/v1/remote_login_sms_code",data:t});var t}remoteLogin(e){return new Promise(((t,r)=>{var n;(n=e,js.post({url:"/uc-itg/uct/v1/remote_login",data:n})).then((e=>{var r;(null==(r=e.data)?void 0:r.token)&&(or(e.data.token,e.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,e.data.token,{expires:e.data.keep_alive/24})),t({data:e.data,result_code:e.result_code,msg:e.msg,message:e.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}addloginLocationAddition(){return js.put({url:"/uc/v1/users/actions/login_location_addition"})}destory(){}}},Symbol.toStringTag,{value:"Module"}));function Rh(e){return js.post({url:"/uc-itg/uct/v1/login_sms_code",data:e})}function Uh(e){return js.post({url:"/uc-itg/uct/v1/mobile_login",data:e})}function Bh(){return js.put({url:"/uc/v1/users/actions/logout"})}var $h=Object.freeze(Object.defineProperty({__proto__:null,default:class{constructor(e,t){__publicField(this,"_platform"),this._platform=t}cellphoneBind(e){return this.login(e)}sendSmsCode(e){if(!e.mobile)throw new Error("手机号不能为空");return new Promise(((t,r)=>{Rh(e).then((e=>{t(e)})).catch((e=>{r(e)}))}))}login(e){if(!e.mobile)throw new Error("手机号不能为空");if(!e.sms_code)throw new Error("验证码不能为空");if(!e.platform)throw new Error("平台不能为空");return e.platform||(e.platform=this._platform),new Promise(((t,r)=>{Uh(e).then((e=>{var r;(null==(r=e.data)?void 0:r.token)&&(or(e.data.token,e.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,e.data.token,{expires:e.data.keep_alive/24})),t({data:e.data,result_code:e.result_code,msg:e.msg,message:e.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}loginOut(){return new Promise(((e,t)=>{Bh().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}destory(){}}},Symbol.toStringTag,{value:"Module"}));function Mh(e){return js.post({url:"/uc-itg/uct/v1/third_account_login/url",data:e})}function Fh(e){return js.post({url:"/uc-itg/uct/v1/third_account_login",data:e})}function Hh(){return ms()}var qh=Object.freeze(Object.defineProperty({__proto__:null,default:class{constructor(e,t){__publicField(this,"_messageEvent"),__publicField(this,"_login_code"),__publicField(this,"_platform"),__publicField(this,"_code"),this._messageEvent=e,this._platform=t,this._login_code="",this._code=""}getLoginUrl(e){return new Promise(((t,r)=>{const n=window.location.search,i=ns(n);(null==i?void 0:i.code)&&(null==i?void 0:i.state)?(this._login_code=null==i?void 0:i.state,this._code=null==i?void 0:i.code,Fh({login_type:yh.QQ,login_code:this._login_code,code:this._code,platform:this._platform,redirect_url:e}).then((r=>{var n,i,o,a,s,c,l,u;(null==(i=null==(n=r.data)?void 0:n.login_user_info)?void 0:i.token)&&(or(null==(o=r.data.login_user_info)?void 0:o.token,null==(a=r.data.login_user_info)?void 0:a.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,null==(s=r.data.login_user_info)?void 0:s.token,{expires:(null==(c=r.data.login_user_info)?void 0:c.keep_alive)/24})),this._messageEvent.onMessage&&this._messageEvent.onMessage({login_status:null==(l=r.data)?void 0:l.login_status,login_user_info:null==(u=r.data)?void 0:u.login_user_info,login_extra_info:{login_code:this._login_code,url:e,result_co
3de:r.result_code,msg:r.msg}}),t({login_code:this._login_code,url:""})})).catch((e=>{this._messageEvent.onError&&this._messageEvent.onError(e),r({result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))):Mh({login_type:yh.QQ,redirect_url:e}).then((e=>{"200"==e.result_code&&(this._login_code=e.data.login_code),rs(e.data.url,{target:"_self"}),t(e.data)})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}cellphoneBind(e){return e.platform||(e.platform=this._platform),new Promise(((t,r)=>{Uh(e).then((e=>{var r;(null==(r=e.data)?void 0:r.token)&&(or(e.data.token,e.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,e.data.token,{expires:e.data.keep_alive/24})),t({data:e.data,result_code:e.result_code,msg:e.msg,message:e.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}sendSmsCode(e){if(!e.mobile)throw new Error("手机号不能为空");return new Promise(((t,r)=>{Rh(e).then((e=>{t(e)})).catch((e=>{r(e)}))}))}accountBind(e){if(!e.username)throw new Error("用户名/邮箱/手机参数异常");if(!e.password)throw new Error("密码参数异常");const t=Nt(e);return t.platform||(t.platform=this._platform),new Promise(((e,r)=>{_s(t).then((t=>{var r;(null==(r=t.data)?void 0:r.token)&&(or(t.data.token,t.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,t.data.token,{expires:t.data.keep_alive/24})),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}login(e){return Promise.reject(new Error("qq登录异常"))}loginOut(){return new Promise(((e,t)=>{Hh().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}destory(){}}},Symbol.toStringTag,{value:"Module"}));function Vh(e){return Fh(e)}function zh(e){return Mh(e)}function Jh(){return Hh()}var Wh=Object.freeze(Object.defineProperty({__proto__:null,default:class{constructor(e,t){__publicField(this,"_messageEvent"),__publicField(this,"_loop"),__publicField(this,"_login_code"),__publicField(this,"_platform"),this._messageEvent=e,this._loop=!1,this._platform=t,this._login_code=""}getLoginUrl(e){return new Promise(((t,r)=>{zh({login_type:yh.WECHAT,redirect_url:e}).then((e=>{"200"==e.result_code&&(this._login_code=e.data.login_code,this._loop=!0,Promise.resolve().then((async()=>{await this.weixinLoginM(yh.WECHAT)}))),this._messageEvent.onMessage&&this._messageEvent.onMessage({login_status:1,login_user_info:void 0,login_extra_info:e.data}),t(e.data)})).catch((e=>{this._loop=!1,r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}async weixinLoginM(e){Vh({login_type:e,login_code:this._login_code,platform:this._platform}).then((async t=>{var r,n,i,o,a,s,c,l;this._messageEvent.onMessage&&this._messageEvent.onMessage({login_status:null==(r=t.data)?void 0:r.login_status,login_user_info:null==(n=t.data)?void 0:n.login_user_info,login_extra_info:{login_code:this._login_code,url:"",result_code:t.result_code,msg:t.msg}}),(null==(o=null==(i=t.data)?void 0:i.login_user_info)?void 0:o.token)&&(or(null==(a=t.data.login_user_info)?void 0:a.token,null==(s=t.data.login_user_info)?void 0:s.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,null==(c=t.data.login_user_info)?void 0:c.token,{expires:(null==(l=t.data.login_user_info)?void 0:l.keep_alive)/24})),1===t.data.login_status?this._loop&&(await((e=0)=>new Promise((t=>setTimeout(t,e))))(1e3),await this.weixinLoginM(e)):this._loop=!1})).catch((async e=>{this._loop=!1}))}cellphoneBind(e){return e.platform||(e.platform=this._platform),new Promise(((t,r)=>{Uh(e).then((e=>{var r;(null==(r=null==e?void 0:e.data)?void 0:r.token)&&(or(e.data.token,e.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,e.data.token,{expires:e.data.keep_alive/24})),t({data:e.data,result_code:e.result_code,msg:e.msg,message:e.msg})})).catch((e=>
3{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}sendSmsCode(e){if(!e.mobile)throw new Error("手机号不能为空");return new Promise(((t,r)=>{Rh(e).then((e=>{t(e)})).catch((e=>{r(e)}))}))}accountBind(e){if(!e.username)throw new Error("用户名/邮箱/手机参数异常");if(!e.password)throw new Error("密码参数异常");const t=Nt(e);return t.platform||(t.platform=this._platform),new Promise(((e,r)=>{_s(t).then((t=>{var r;(null==(r=null==t?void 0:t.data)?void 0:r.token)&&(or(t.data.token,t.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,t.data.token,{expires:t.data.keep_alive/24})),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}login(e){return Promise.reject(new Error("微信登录异不支持此api"))}loginOut(){return this._loop=!1,new Promise(((e,t)=>{Jh().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}destory(){this._loop=!1}}},Symbol.toStringTag,{value:"Module"}));var Kh=Object.freeze(Object.defineProperty({__proto__:null,default:class{async login(e){if(!e.username)throw new Error("用户名/邮箱/手机参数异常");if(!e.password)throw new Error("密码参数异常");if(!e.acs||!e.acs.captcha_verify_param)throw new Error("滑块校验参数异常");const t=Nt(e);return new Promise(((e,r)=>{_s(t).then((r=>{var n;(null==(n=null==r?void 0:r.data)?void 0:n.token)&&(or(r.data.token,r.data.keep_alive),t.platform==bh.BUSINESS_CLIENT&&er(Mt,r.data.token,{expires:r.data.keep_alive/24})),e({data:r.data,result_code:r.result_code,msg:r.msg,message:r.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}loginOut(){return new Promise(((e,t)=>{ms().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}destory(){}}},Symbol.toStringTag,{value:"Module"}));var Gh=Object.freeze(Object.defineProperty({__proto__:null,default:class{constructor(){__publicField(this,"_smsModule"),this._smsModule=Sh.LOGIN}sendSmsCode(e){if(!e.mobile)throw new Error("手机号不能为空");return new Promise(((t,r)=>{Rh(e).then((e=>{t(e.data),"200"==e.result_code&&(this._smsModule=e.data.sms_module),t(e.data)})).catch((e=>{r(e)}))}))}login(e){if(!e.mobile)throw new Error("手机号不能为空");if(!e.sms_code)throw new Error("验证码不能为空");if(!e.platform)throw new Error("平台不能为空");return new Promise(((t,r)=>{Uh(e).then((r=>{var n;(null==(n=null==r?void 0:r.data)?void 0:n.token)&&(or(r.data.token,r.data.keep_alive),e.platform==bh.BUSINESS_CLIENT&&er(Mt,r.data.token,{expires:r.data.keep_alive/24})),t({data:r.data,result_code:r.result_code,msg:r.msg,message:r.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}loginOut(){return new Promise(((e,t)=>{Bh().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}destory(){}}},Symbol.toStringTag,{value:"Module"}));var Qh=Object.freeze(Object.defineProperty({__proto__:null,default:class{constructor(e,t){__publicField(this,"_messageEvent"),__publicField(this,"_login_code"),__publicField(this,"_platform"),__publicField(this,"_code"),this._messageEvent=e,this._platform=t,this._login_code="",this._code=""}getLoginUrl(e){return new Promise(((t,r)=>{const n=window.location.search,i=ns(n);(null==i?void 0:i.code)&&(null==i?void 0:i.state)?(this._login_code=null==i?void 0:i.state,this._code=null==i?void 0:i.code,Fh({login_type:yh.QQ,login_code:this._login_code,code:this._code,platform:this._platform,redirect_url:e}).then((r=>{var n,i,o,a,s,c,l,u;(null==(i=null==(n=r.data)?void 0:n.login_user_info)?void 0:i.token)&&(or(null==(o=r.data.login_user_info)?void 0:o.token,null==(a=r.data.login_user_info)?void 0:a.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,null==(s=r.data.login_user_info)?void 0:s.token,{expires:(null==(c=r.data.login_user_info)?void 0:c.keep_alive)/24})),this._messageEvent.onMessage&&this._messageEvent.onMessage({login_status:null==(l=r.data)?void 0:l.login_status,login_user_info:null==(u=r.data)?void 0:u.login_user_info,login_extra_info:{login_code:this._login_code,url:e,result_co
3de:r.result_code,msg:r.msg}}),t({login_code:this._login_code,url:""})})).catch((e=>{this._messageEvent.onError&&this._messageEvent.onError(e),r({result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))):Mh({login_type:yh.QQ,redirect_url:e}).then((e=>{this._login_code=e.data.login_code,rs(e.data.url,{target:"_self"}),t(e.data)})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}cellphoneBind(e){return e.platform||(e.platform=this._platform),new Promise(((t,r)=>{Uh(e).then((e=>{var r;(null==(r=e.data)?void 0:r.token)&&(or(e.data.token,e.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,e.data.token,{expires:e.data.keep_alive/24})),t({data:e.data,result_code:e.result_code,msg:e.msg,message:e.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}sendSmsCode(e){if(!e.mobile)throw new Error("手机号不能为空");return new Promise(((t,r)=>{Rh(e).then((e=>{t(e)})).catch((e=>{r(e)}))}))}accountBind(e){if(!e.username)throw new Error("用户名/邮箱/手机参数异常");if(!e.password)throw new Error("密码参数异常");const t=Nt(e);return t.platform||(t.platform=this._platform),new Promise(((e,r)=>{_s(t).then((t=>{var r;(null==(r=t.data)?void 0:r.token)&&(or(t.data.token,t.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,t.data.token,{expires:t.data.keep_alive/24})),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}login(e){return Promise.reject(new Error("qq登录异常"))}loginOut(){return new Promise(((e,t)=>{Hh().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}destory(){}}},Symbol.toStringTag,{value:"Module"}));var Xh=Object.freeze(Object.defineProperty({__proto__:null,default:class{constructor(e,t){__publicField(this,"_messageEvent"),__publicField(this,"_loop"),__publicField(this,"_login_code"),__publicField(this,"_platform"),this._messageEvent=e,this._loop=!1,this._platform=t,this._login_code=""}getLoginUrl(e,t){return t?Promise.reject():new Promise(((t,r)=>{const n=window.location.search,i=ns(n);(null==i?void 0:i.code)&&(null==i?void 0:i.state)?(this._login_code=null==i?void 0:i.state,Vh({login_type:yh.WECHAT,login_code:this._login_code,code:null==i?void 0:i.code,platform:this._platform,is_authorize:!0}).then((async e=>{var t,r,n,i,o,a,s,c;(null==(r=null==(t=e.data)?void 0:t.login_user_info)?void 0:r.token)&&(or(null==(n=e.data.login_user_info)?void 0:n.token,null==(i=e.data.login_user_info)?void 0:i.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,null==(o=e.data.login_user_info)?void 0:o.token,{expires:(null==(a=e.data.login_user_info)?void 0:a.keep_alive)/24})),this._messageEvent.onMessage&&this._messageEvent.onMessage({login_status:null==(s=e.data)?void 0:s.login_status,login_user_info:null==(c=e.data)?void 0:c.login_user_info,login_extra_info:{login_code:this._login_code,url:"",result_code:e.result_code,msg:e.msg}})})).catch((async e=>{}))):zh({login_type:yh.WECHAT,redirect_url:e,is_authorize:!0}).then((e=>{rs(e.data.url,{target:"_self"}),this._messageEvent.onMessage&&this._messageEvent.onMessage({login_status:1,login_user_info:void 0,login_extra_info:e.data}),t(e.data)})).catch((e=>{this._loop=!1,r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}cellphoneBind(e){return e.platform||(e.platform=this._platform),new Promise(((t,r)=>{Uh(e).then((e=>{var r;(null==(r=null==e?void 0:e.data)?void 0:r.token)&&(or(e.data.token,e.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,e.data.token,{expires:e.data.keep_alive/24})),t({data:e.data,result_code:e.result_code,msg:e.msg,message:e.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}sendSmsCode(e){if(!e.mobile)throw new Error("手机号不能为空");return new Promise(((t,r)=>{Rh(e).then((e=>{t(e)})).catch((e=>{r(e)}))}))}accountBind(e){if(!e.username)throw new Error("用户名/邮箱/手机参数异常");if(!e.password)throw new Error("密码参数异常");const t=Nt(e);return t.platform||(t.platform=this._platform),new Promise(((e,r)=>{_s(t).then((t=>{var r;(null==(r=null==t?void 0:t.data)?void 0:r.token)&&(or(t.data.token,t.data.keep_alive),this._platform==bh.BUSINESS_CLIENT&&er(Mt,t.data.token,{expires:t.data.keep_alive/24}
3)),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{r({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}login(e){return Promise.reject(new Error("微信登录异不支持此api"))}loginOut(){return this._loop=!1,new Promise(((e,t)=>{Jh().then((t=>{ar(),e({data:t.data,result_code:t.result_code,msg:t.msg,message:t.msg})})).catch((e=>{t({data:e.data,result_code:e.result_code,msg:e.msg||e.message,message:e.msg||e.message})}))}))}destory(){this._loop=!1}}},Symbol.toStringTag,{value:"Module"}));const Yh=class{constructor(e){__publicField(this,"_loginArrayMethods"),__publicField(this,"_redirectUrl"),__publicField(this,"_loginPlatform"),__publicField(this,"_currLoginMethod"),__publicField(this,"_loginEquipment"),__publicField(this,"_currLoginInstance"),__publicField(this,"_prefix"),__publicField(this,"onOpen"),__publicField(this,"onClose"),__publicField(this,"onMessage"),__publicField(this,"onError");const{loginPlatform:t,loginArrayMethods:r,loginType:n,loginEquipment:i,redirectUrl:o,prefix:a}=e;if(null==a)throw new Error("路径不能为空,请先设置登录路径");this._prefix=a,this._prefix&&localStorage.setItem(Bt,this._prefix),this._redirectUrl=o,this._loginArrayMethods=r||[yh.ACCOUNT,yh.CELLPHONE,yh.QQ,yh.WECHAT],this._currLoginInstance=null,this._loginPlatform=t,t&&localStorage.setItem(zt,t.toString()),this._currLoginMethod=n||yh.CELLPHONE,this._loginEquipment=i||wh.PC,this.onOpen=e.onOpen,this.onClose=e.onClose,this.onMessage=e.onMessage,this.onError=e.onError,this._setCurrLoginInstance(),this._currLoginMethod!==yh.QQ&&this._currLoginMethod!==yh.WECHAT||this.getLoginUrl(this._redirectUrl,!0)}static createInstance(e){return this.instance=new Yh(e),this.instance}setPrefix(e){this._prefix=e,this._prefix&&localStorage.setItem(Bt,this._prefix)}get prefix(){return this._prefix}setRedirectUrl(e){this._redirectUrl=e}get redirectUrl(){return this._redirectUrl}get currLoginMethod(){return this._currLoginMethod}get loginPlatform(){return this._loginPlatform}get loginMethods(){return this._loginArrayMethods}get loginEquipment(){return this._loginEquipment}setLoginEquipment(e){this._loginEquipment=e}setLoginMethods(e){this._loginArrayMethods=e}setCurrentLoginMethod(e){this._currLoginMethod=e,this._setCurrLoginInstance(),this._currLoginMethod!==yh.QQ&&this._currLoginMethod!==yh.WECHAT||this.getLoginUrl(this._redirectUrl,!0)}setLoginPlatform(e){this._loginPlatform=e,e&&localStorage.setItem(zt,e.toString()),this._setCurrLoginInstance()}_setCurrLoginInstance(){this._currLoginInstance&&(this._currLoginInstance.destory(),this._currLoginInstance=null),this._currLoginInstance=function(e){const{equip:t,method:r,platform:n,messageEvent:i}=e;let o={};const a={};let s=yh[r];if(!s)throw new Error("未查询到登录方式");s=s.toLowerCase();const c=`${s}Login`;if(o=t==wh.MOBILE?{"../loginTypes/mobile/accountLogin/index.ts":Kh,"../loginTypes/mobile/cellphoneLogin/index.ts":Gh,"../loginTypes/mobile/qqLogin/index.ts":Qh,"../loginTypes/mobile/wechatLogin/index.ts":Xh}:{"../loginTypes/pc/accountLogin/index.ts":Dh,"../loginTypes/pc/cellphoneLogin/index.ts":$h,"../loginTypes/pc/qqLogin/index.ts":qh,"../loginTypes/pc/wechatLogin/index.ts":Wh},Object.keys(o).forEach((e=>{const t=e.lastIndexOf("/"),r=e.substring(0,t),n=r.lastIndexOf("/"),i=r.substring(n+1,r.length);a[i]=o[e].default})),!a[c])throw new Error("未查询到此登录方式的实现方式,请联系管理员添加");return new a[c](i,n)}({equip:this._loginEquipment,method:this._currLoginMethod,platform:this._loginPlatform,messageEvent:{onOpen:this.onOpen,onClose:this.onClose,onError:this.onError,onMessage:this.onMessage}})}getLoginUrl(e,t){return this._currLoginInstance?this._currLoginInstance.getLoginUrl?this._currLoginInstance.getLoginUrl(e,t):Promise.reject(new Error("当前登录方式不支持此api")):Promise.reject(new Error("出现异常"))}sendSmsCode(e){return this._currLoginInstance?this._currLoginInstance.sendSmsCode?this._currLoginInstance.sendSmsCode(e):Promise.reject(new Error("当前登录方式不支持获取手机验证码")):Promise.reject(new Error("出现异常"))}login(e){return this._currLoginInstance?new Promise(((t,r)=>{var n;null==(n=this._currLoginInstance)||n.login({...e,platform:this._loginPlatform}).then((e=>{t({...e,redirectUrl:this._redirectUrl})})).catch((e=>r(e)))})):Promise.reject(new Error("出现异常"))}loginOut(){return this._currLoginInstance?this._currLoginInstance.loginOut():Promise.reject(new Error("出现异常"))}cellphoneBind(e){return this._currLoginInstance?this._currLoginInstance.cellphoneBind?this._currLoginInstance.cellphoneBind(e):Promise.reject(new Error("当前登录方式不支持此api")):Promise.reject(new Error("出现异常"))}accountBind(e){return this._currLoginInstance?this._currLoginInstance.accountBind?this._currLoginInstance.accountBind(e):Promise.reject(new Error("当前登录方式不支持此api")):Promise.reject(new Error("出现异常"))}refreshToken(){return ir()?js.put({url:Ut}):Promise.reject(new Error("未获取到token信息"))}resetToken(e){return e.token?e.expires_in?e.token&&e.expires_in?(or(e.token,e.expires_in),this._loginPlatform==bh.BUSINESS_CLIENT&&er(Mt,e.token,{expires:e.expires_in/24}),Promise.resolve({msg:"重设成功"})):Promise.reject(new Error("未获取到token信息")):Promise.reject(new Error("未获取到在线时é•
3¿ä¿¡æ¯")):Promise.reject(new Error("未获取到token信息"))}getRemoteLoginSmsCode(e){return this._currLoginInstance?this._currLoginInstance.getRemoteLoginSmsCode(e):Promise.reject(new Error("出现异常"))}remoteLogin(e){return this._currLoginInstance?this._currLoginInstance.remoteLogin(e):Promise.reject(new Error("出现异常"))}addloginLocationAddition(){return this._currLoginInstance?this._currLoginInstance.addloginLocationAddition():Promise.reject(new Error("出现异常"))}destory(){var e;this._currLoginInstance&&(null==(e=this._currLoginInstance)||e.destory(),this._currLoginInstance=null)}};let Zh=Yh;__publicField(Zh,"instance");function e_(e){return js.patch({url:"/wallet/v1/wallet_settings",data:e})}const t_=class{constructor(e){__publicField(this,"_prefix");const{prefix:t}=e;if(null==t)throw new Error("路径不能为空,请先设置登录路径");this._prefix=t,this._prefix&&localStorage.setItem(Bt,this._prefix)}static createInstance(e){return this.instance=new t_(e),this.instance}updateWalletSettings(e){return e_?e_(e):Promise.reject(new Error("当前api未实现"))}};let r_=t_;__publicField(r_,"instance");const n_={1:"merchant",2:"factory",3:"logistics",5:"agent",6:"business",7:"operate",8:"bank",9:"zdh",10:"scm",11:"rwManage",30:"pod"},i_={development:"http://aggregation-frame.zwdc.com",test:"http://aggregation-frame.zwdc.com",sandbox:"https://aggregation-frame.zhiwendiy.com",preproduction:"http://aggregation-frame24.hicustom.com",production:"https://aggregation-frame.hicustom.com"},o_={platform:0,mode:"",domain:"",prefix:"",fullDomain:"",fromFrame:!1,getParam(e){const t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=window.location.search.substr(1).match(t);return null!=r?unescape(r[2]):""},hrefFun(){document.querySelectorAll('a[href]:not([target="_blank"])').forEach((e=>{let t=e.getAttribute("href")||"";if(-1!=t.indexOf("fromFrame"))return;const r=t.indexOf("?");t=-1==r?`${t}?fromFrame=1`:this.splice(t,r+1,"fromFrame=1&"),e.setAttribute("href",t)}))},splice:(e,t,r)=>e.slice(0,t)+r+e.slice(t),locationHref(e){if(this.fromFrame){if(-1!=e.indexOf("fromFrame"))return e;const t=e.indexOf("?");e=-1==t?`${e}?fromFrame=1`:this.splice(e,t+1,"fromFrame=1&")}return e},blankFun(){document.querySelectorAll('a[href][target="_blank"]').forEach((e=>{let t=e.getAttribute("href")||"";-1==t.indexOf("http")&&(t=`${this.fullDomain}${t}`,e.setAttribute("href",t))}))},init(e,t,r){this.platform=e,this.mode=t,"1"==this.getParam("fromFrame")&&(this.domain=null!=r?r:i_[this.mode],this.prefix=n_[this.platform],this.fullDomain=`${this.domain}/${this.prefix}`,this.fromFrame=!0,this.rightClickHand(),this.hrefFun(),this.blankFun(),this.setToken())},initAggDomain(e,t,r){this.platform=e,this.mode=t,this.domain=null!=r?r:i_[this.mode],this.prefix=n_[this.platform],this.fullDomain=`${this.domain}/${this.prefix}`,this.setToken()},batchHandleHref(){this.fromFrame&&(this.hrefFun(),this.blankFun())},rightClickHand(){top===window&&(location.href=`${this.fullDomain}${location.pathname}${location.search}`)},setToken(){const e=this.getParam("aggToken");e&&localStorage.setItem("UCSDK_TOKEN",e)},setRbacUser(){const e=this.getParam("aggPlatform"),t=this.getParam("aggId"),r=this.getParam("aggGroupId");e&&t&&r&&localStorage.setItem("RBAC_USER",JSON.stringify({id:t,group_id:r,tenant_id:e}))},formatQuery(e){if("[object String]"!==Object.prototype.toString.call(e))return;const t=e.replace(/^\?/,""),r=Fa.parse(t),n=!!(null==r?void 0:r.fromFrame),i=null==r?void 0:r.aggToken;return null==r||delete r.fromFrame,null==r||delete r.aggToken,{query:r,aggQuery:{fromFrame:n,aggToken:i}}}},a_={actionEum:{development:"http://content-api.zwdc.com",test:"http://content-api.zwdc.com",sandbox:"https://content-api.zhiwendiy.com",production:"https://content-api.hicustom.com"},getAction(e){return this.actionEum[e]+"/file-upload/multipart-file-upload"},async getCtToken({http:e,url:t,bizType:r=""}){if(!Zt.get("ctToken"))try{const{ctToken:n,expiredTimeMills:i}=await e.post({url:t,params:{bizType:r}}),o=new Date(i-6e5);Zt.set("ctToken",n,{expires:o})}catch(n){console.log(n)}return Zt.get("ctToken")}},s_=function(e,t,r){var n,i,o,a,s,c,l=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=n,o=i;return n=i=void 0,l=t,a=e.apply(o,r)}function g(e){return l=e,s=setTimeout(_,t),u?f(e):a}function h(e){var r=e-c;return void 0===c||r>=t||r<0||p&&e-l>=o}function _(){var e=Lt();if(h(e))return m(e);s=setTimeout(_,function(e){var r=t-(e-c);return p?Rt(r,o-(e-l)):r}(e))}function m(e){return s=void 0,d&&n?f(e):(n=i=void 0,a)}function v(){var e=Lt(),r=h(e);if(n=arguments,i=this,c=e,r){if(void 0===s)return g(c);if(p)return clearTimeout(s),s=setTimeout(_,t),f(c)}return void 0===s&&(s=setTimeout(_,t)),a}return t=E(t)||0,y(r)&&(u=!!r.leading,o=(p="maxWait"in r)?Dt(E(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d),v.cancel=function(){void 0!==s&&clearTimeout(s),l=0,n=c=i=s=void 0},v.flush=function(){return void 0===s?a:m(Lt())},v}((()=>{const e=(new Date).getTime();localStorage.setItem(qt,e+""),er(qt,e+"",365)}),2e3);window.currentUcsdkRefreshTime||(window.currentUcsdkRefreshTime=setInterval((()=>{cr()&&Ec().then((e=>
3{"200"==e.result_code&&sr()}))}),5e3)),window.addEventListener("click",s_),window.addEventListener("drag",s_),window.addEventListener("mouseover",s_),window.addEventListener("dblclick",s_),window.addEventListener("scroll",s_),e.AccountLevel=xh,e.AccountStatus=jh,e.BindModule=kh,e.CellphoneVerifyModule=Ph,e.ChannelType=Lh,e.EmailVerifyModule=Oh,e.ForgetPasswordModule=Nh,e.LockStatus=Ch,e.LoginEnum=vh,e.LoginEquipment=wh,e.LoginPlatformType=bh,e.LoginResultStatus=Ah,e.LoginSdk=Zh,e.LoginType=yh,e.MemberSdk=bs,e.SafetyRuleEquipmentType=Ih,e.SafetyRuleIpType=Th,e.SmsModule=Sh,e.UcSdkError=vs,e.VerifyType=Eh,e.WalletSdk=r_,e.aggregation=o_,e.getCookie=tr,e.getMainDomain=nr,e.removeCookie=rr,e.setCookie=er,e.tracker=_h,e.uploadFiles=a_,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.