Commit c9b26bb1 by changjin

完成联调车辆记录

parent e5cd9b61
......@@ -5,7 +5,9 @@
<title>智慧社区后台管理系统</title>
<!-- <link rel="shortcut icon" href="../static/img/logo.ico"/> -->
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
</head>
<!-- <script src="/static/js/tingyun-rum.js"></script> -->
<script src="/static/js/tingyun-rum-test.js"></script>
</head>
<body>
<div id="app"></div>
</body>
......
......@@ -121,6 +121,8 @@ export default {
this.$axios.get('/baseInfo/initPersonalMenu?projectId=' + projectId).then((res) =>{
if(res.data.code === '0') {
this.data = res.data.data
window.TINGYUN.setUid(this.data.userName)
localStorage.setItem('TY_USER_ID',this.data.userName)
window.sessionStorage.setItem('projectId',projectId)
this.reload()
}
......@@ -129,6 +131,8 @@ export default {
this.$axios.get('/baseInfo/initPersonalMenu').then((res) =>{
if(res.data.code === '0') {
this.data = res.data.data
window.TINGYUN.setUid(this.data.userName)
localStorage.setItem('TY_USER_ID',this.data.userName)
window.sessionStorage.setItem('projectId',res.data.data.projectId)
}
})
......@@ -177,9 +181,8 @@ export default {
this.showAlert('请输入新密码~')
return false
}
var reg = /^1[0-9]+[a-zA-Z]+[0-9a-zA-Z]*|[a-zA-Z]+[0-9]+[0-9a-zA-Z]*/
if (this.formData.newPassword && (this.formData.newPassword.length < 10 || !reg.test(this.formData.newPassword))) {
this.showAlert('新密码不能少于10位数的字母、数字组合,且不能输入中文~')
if (this.formData.newPassword && (this.formData.newPassword.length < 10 || /[\u4E00-\u9FA5]/g.test(this.formData.newPassword))) {
this.showAlert('新密码不能少于10位数的字母、数字或特殊字符组合,且不能输入中文~')
return false
}
if (!this.formData.confirmPassword) {
......
......@@ -31,7 +31,7 @@
<el-form-item label="上传封面" required>
<el-upload
class="avatar-uploader"
:action="this.baseURL + 'baseInfo/uploadPhoto'"
:action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false"
:headers="headers"
:on-success="handleAvatarSuccess"
......
......@@ -24,10 +24,10 @@
<el-table-column prop="cityName" label="城市名称"></el-table-column>
<el-table-column prop="cityId" label="城市ID"></el-table-column>
<el-table-column prop="projectName" label="项目名称"></el-table-column>
<el-table-column prop="projectId" label="项目ID"></el-table-column>
<!-- <el-table-column prop="projectId" label="项目ID"></el-table-column> -->
<el-table-column prop="mainProjectCode" label="主数据项目编码" ></el-table-column>
<el-table-column prop="massif" label="地块名称" ></el-table-column>
<el-table-column prop="massifId" label="地块ID" ></el-table-column>
<!-- <el-table-column prop="massifId" label="地块ID" ></el-table-column> -->
<el-table-column prop="massifCode" label="地块编码" ></el-table-column>
<el-table-column label="操作" width="160" v-if="isEditBtn || isDelBtn">
<template slot-scope="scope">
......
......@@ -22,18 +22,19 @@
<el-table :data="data.list">
<el-table-column type="index" label="序号"></el-table-column>
<el-table-column prop="ownerName" label="业主姓名"></el-table-column>
<el-table-column prop="ownerPhone" label="业主联系方式"></el-table-column>
<el-table-column prop="ownerAddress" label="业主住所"></el-table-column>
<el-table-column prop="examinedPerson" label="被审核人"></el-table-column>
<el-table-column prop="ownerPhone" width="120" label="业主联系方式"></el-table-column>
<el-table-column width="200" prop="ownerAddress" label="业主住所"></el-table-column>
<el-table-column prop="visitorName" label="被审核人"></el-table-column>
<el-table-column width="120" prop="visitorPhone" label="被审核人手机号"></el-table-column>
<el-table-column prop="identity" label="人员类型">
<template slot-scope="scope">
<!-- <template slot-scope="scope">
<span v-if="scope.row.identity == 1">产权⼈</span>
<span v-if="scope.row.identity == 2">家⼈</span>
<span v-if="scope.row.identity == 3">租客</span>
<span v-if="scope.row.identity == 4">朋友</span>
<span v-if="scope.row.identity == 5">保姆/司机</span>
<span v-if="scope.row.identity == 6">其他</span>
</template>
</template> -->
</el-table-column>
<el-table-column prop="facePhotoUrl" label="人脸照片">
<template slot-scope="scope">
......@@ -135,14 +136,28 @@ export default {
},
// 修改状态
changeStatus (item) {
this.$axios.post('/deviceVehicle/handleFaceEmamine',{
status: item.examineStatus ? '1' : '0',
id: item.id
}).then((res) =>{
if(res.data.code === '0') {
this.getData()
}
})
let cont
if (item.examineStatus) {
cont = '开启该人脸照片将在20分钟后生效,是否开启?'
} else {
cont = '禁用该人脸照片将在35分钟后生效,是否禁用?'
}
this.$confirm(cont, '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$axios.post('/deviceVehicle/handleFaceEmamine',{
status: item.examineStatus ? '1' : '0',
id: item.id
}).then((res) =>{
if(res.data.code === '0') {
this.getData()
}
})
}).catch(() => {
this.getData()
})
},
handleSizeChange (val) {
this.size = val
......
......@@ -12,8 +12,8 @@
<el-table-column prop="guestPhone" label="访客手机号" ></el-table-column>
<el-table-column prop="guestCarNumber" label="访客车牌号" ></el-table-column>
<el-table-column prop="expectedAtTime" label="预计到访时间" ></el-table-column>
<el-table-column label="操作" width="160">
<template slot-scope="scope" v-if="isRefuseBtn || isAgreeBtn">
<el-table-column label="操作" width="160" >
<template slot-scope="scope">
<span class="line pointer" v-if="isAgreeBtn" @click="auditBtn(1,scope.row.id)">同意</span>
<span class="line ml10 pointer" v-if="isRefuseBtn" @click="auditBtn(0,scope.row.id)">拒绝</span>
</template>
......
......@@ -7,7 +7,7 @@
<el-col :span="10">
<el-form-item label="时间">
<el-date-picker
v-model="value1"
v-model="searchForm.date"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
......@@ -17,17 +17,16 @@
</el-col>
<el-col :span="6">
<el-form-item label="方式">
<el-select v-model="searchForm.blockId" placeholder="请选择">
<el-option label="不限" value=""></el-option>
<el-option label="男" value="MAN"></el-option>
<el-option label="女" value="WOMAN"></el-option>
<el-option label="未知" value="SECRECY"></el-option>
<el-select v-model="searchForm.inOrOut" placeholder="请选择">
<el-option label="全部" value=""></el-option>
<el-option label="进场" value="0"></el-option>
<el-option label="出场" value="1"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="设备名称">
<el-input v-model="searchForm.customerName" placeholder="请输入设备名称"></el-input>
<el-form-item label="车牌号">
<el-input v-model="searchForm.carCode" placeholder="请输入车牌号"></el-input>
</el-form-item>
</el-col>
<el-col :span="2" :offset="1">
......@@ -42,9 +41,9 @@
<div class="title">车辆记录</div>
<el-table :data="data.list">
<el-table-column type="index" label="序号"></el-table-column>
<el-table-column prop="name" label="车牌号"></el-table-column>
<el-table-column prop="name" label="方式"></el-table-column>
<el-table-column prop="actualTime" label="时间" ></el-table-column>
<el-table-column prop="carCode" label="车牌号"></el-table-column>
<el-table-column prop="inOrOut" label="方式"></el-table-column>
<el-table-column prop="inTime" label="时间" ></el-table-column>
</el-table>
<div class="block text-right mt20" v-if="data.page">
<el-pagination
......@@ -60,28 +59,39 @@
</template>
<script>
import moment from 'moment'
export default {
data: () => ({
loading: true,
searchForm:{
},
searchForm:{},
data:{
page: '1',
list:[
{
name: '监控摄像001',
id: 'MZ902',
type: '监控设备'
}
]
list:[]
},
size: '10',
value1: ''
size: '10'
}),
created () {
this.projectId = window.sessionStorage.getItem('projectId')
this.height = (document.documentElement.clientHeight - 210 ) + 'px'
this.getData()
},
methods: {
getData(){
this.$axios.post('/deviceVehicle/findCarAccessRecords',{
p: this.data.page,
c: this.size,
carCode: this.searchForm.carCode,
inOrOut: this.searchForm.inOrOut,
projectId: this.projectId,
endTime: this.searchForm.date ? moment(new Date(this.searchForm.date[1]).getTime()).format('YYYY-MM-DD') : null,
startTime: this.searchForm.date ? moment(new Date(this.searchForm.date[0]).getTime()).format('YYYY-MM-DD') : null,
}).then((res) =>{
if(res.data.code === '0') {
this.data = res.data.data
this.loading = false
}
})
},
handleSizeChange (val) {
this.size = val
this.getData()
......
......@@ -18,7 +18,6 @@ Vue.prototype.fileUrl = 'https://iotservice-test.jinmaodigital.com/' // 测试
Vue.prototype.baseURL = 'https://iotservice-test.jinmaodigital.com/service' // 测试
// Vue.prototype.baseURL = 'https://iotservice.jinmaodigital.com/service' // 正式
axios.defaults.fileURL = Vue.prototype.fileURL
axios.defaults.baseURL = Vue.prototype.baseURL
axios.defaults.fileUrl = Vue.prototype.fileUrl
axios.defaults.withCredentials = true
......@@ -81,6 +80,13 @@ router.beforeEach((to, from, next) => {
store.dispatch('clearCancel');
next();
});
// 监控代码开始
if (window.TINGYUN && window.TINGYUN.wrapVueRouter) {
window.TINGYUN.wrapVueRouter(router, {
endDelay: 500 //切换路由后延迟结束时间
});
}
// 监控代码结束
/* eslint-disable no-new */
new Vue({
el: '#app',
......
/*AGENT_VERSION=3.1.11-jinmao.2*/"use strict";function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}window.TINGYUN=function(t,e){if(/(MSIE [0-8].\d+)/.test(navigator.userAgent)){return ;}function n(t){var e=!!t&&"length"in t&&t.length,n=_typeof(t);return"function"===n?!1:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,r){var a,i=0;if(t)if(n(t))for(a=t.length;a>i&&e.call(t[i],t[i],i)!==!1;i++);else for(i in t)if((r||Object.prototype.hasOwnProperty.call(t,i))&&e.call(t[i],t[i],i)===!1)break;return t}function a(t){var e=!1;try{/\{\s+\[native code\]/.test(Function.prototype.toString.call(t))&&(e=!0)}catch(n){}return e}function i(t){return JSON.parse(t)}function o(t){return JSON.stringify(t)}function s(t){return function(e){return"Array"===t&&Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object "+t+"]"}}function u(t){return new Function("return "+t)()}function c(t){switch(_typeof(t)){case"object":if(!t)return null;if(t instanceof Array){var e=Pr.call(t);return r(e,function(t,n){e[n]=c(t)}),"["+e.join(",")+"]"}if(t instanceof Date)return t.getTime().toString();var n="";return r(t,function(t,e){Tr(t)||(n+=c(e)+":"+c(t)+",")}),n&&(n=n.substr(0,n.length-1)),"{"+n+"}";case"string":return Dr+t.replace(Nr,"\\$1").replace(kr,"\\n")+Dr;case"number":return isNaN(t)?null:t;case"boolean":return t;case"function":return c(t.toString());case"undefined":default:return'"undefined"'}}function f(){var t=Or&&Or.stringify;if(!Tr(t)||!a(t))return!1;var e=!0;try{var n=[Boolean,Number,String,Object,Array];r(n,function(t){return t.prototype.toJSON?(e=!1,!1):void 0})}catch(i){}return e}function l(){var t=Or&&Or.stringify;return Tr(t)&&a(t)}function d(){_r=l()?i:u,Er=f()?o:c}function p(t){return t&&Sr(t)?_r(t):t}function h(t,e,n,r){return t.addEventListener(e,n,r)}function m(t,e,n){return t.removeEventListener(e,n)}function v(t,e,n){return t.attachEvent("on"+e,n)}function g(t,e,n){return t.detachEvent("on"+e,n)}function y(t,e,n,r){var a=function i(){return jr(t,e,i),n.apply(this,arguments)};return Ir(t,e,a,r)}function x(t,e){return Function.prototype.apply.apply(t,e)}function b(t,e){return function(){return t.apply(e,arguments)}}function _(t){return qr?qr(t):t}function E(t){var e=arguments.length;if(2>e||!t)return t;var n=Pr.call(arguments,1);return r(n,function(e){r(e,function(e,n){t[n]=e})}),t}function S(t,e){return t?e?t.replace(/\{(\w+.?\w+)\}/g,function(t,n){return e[n]||""}).replace(/\{(\d+)\}/g,function(t,n){return e[n]||""}):t:""}function C(t,e,n){var r;if(null==t)return-1;var a=Object(t),i=a.length>>>0;if(0===i)return-1;var o=+n||0;if(Math.abs(o)===1/0&&(o=0),o>=i)return-1;for(r=Math.max(o>=0?o:i-Math.abs(o),0);i>r;){if(r in a&&a[r]===e)return r;r++}return-1}function T(t,e){var n=null==t?0:t.length;if(!n)return-1;for(var r=n;r--;)if(t[r]===e)return r;return r}function w(t){return setTimeout(t,0,{__ty_ignore:!0})}function A(){}function R(){var t=window&&window.performance;return t&&t.timing&&t.timing.navigationStart&&t.now?Math.round(t.timing.navigationStart+t.now()):+new Date}function P(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function D(e){return e?Sr(e)?e.length:t.ArrayBuffer&&e instanceof ArrayBuffer?e.byteLength:t.Blob&&e instanceof Blob?e.size:e.length?e.length:0:0}function N(){this.events={}}function k(t,e){return setTimeout(t,e||0,{__ty_ignore:!0})}function O(t,e){no[t]=e}function I(){return 0===ro.cpRemain.ajax&&0===ro.cpRemain.iframe}function j(t){H(t,ao)}function q(t){H(t,io)}function H(t,e){var n="ok";return t?void e.push(t):n=e.length?e.join("\n"):n}function M(t){function e(t,e,r){var a=r||"log",i=n[t]||(n[t]={});i[a]=i[a]||"",i[a]+=e}var n={},a=j();if(e("Status",a,"ok"!==a),e("Debug",q()),r(oo,function(t,n){e("Timeline",n+": "+t.toString())}),!t&&so)console.log("[TingYun Agent Diagnosis]\n"),r(n,function(t,e){var n=console[e];r(n,function(t,e){console[e](t)})});else{if(t!==Vr)return Er(n);Bi.href=Bi.href+"#"+Er(n)}}function L(t,e){this.flags=0,Tr(t.create)&&(this.create=t.create,this.flags|=uo),Tr(t.before)&&(this.before=t.before,this.flags|=co),Tr(t.after)&&(this.after=t.after,this.flags|=fo),Tr(t.error)&&(this.error=t.error,this.flags|=lo),this.data=e}function z(t,e){if(!ho){if(!wr(t)||!t)throw new TypeError("callbacks arguments must be an object");return ho=new L(t,e)}}function F(t){var e=ho.data;if(0!==(ho.flags&uo)){var n=ho.create(ho.data);void 0!==n&&(e=n)}return function r(){0!==(ho.flags&co)&&ho.before(this,e);var n=r;n._&&(n._=1);try{var a=t.apply(this,arguments)}catch(i){throw 0!==(ho.flags&lo)&&ho.error(e,i),i}return 0!==(ho.flags&fo)&&ho.after(this,e),a}}function B(t){return function(){var e;try{e=t.apply(this,arguments)}finally{ro.context=null}return e}}function U(t){return!ho||ho.flags<=0?t:F(t)}function Y(t){return B(U(t))}function G(t,e,n){if(t&&n&&Tr(n)){var r=t[e];if(!r||!r._wrapped){var a=n(r,e);return a&&(a._wrapped=!0),t[e]=a,a}}}function J(t){function e(){}return e.prototype=t,new e}function K(){this.id=null,this.active=null,this._set=[]}function W(){var t=new K;return t.id=z({create:function(){return t.active},before:function(e,n){n&&t.enter(n)},after:function(e,n){n&&t.exit(n)},error:function(e,n){if(e){try{var r="moduleId";n[r]=e[r]}catch(a){}t.exit(e)}}}),t}function V(){return yo||(mo=W(),yo=!0),mo}function X(t){return Sr(t)||(t=Er(t)),t}function $(t,e){e=e||A;var n=new Image;Ir(n,Yr,function(){("loaded"==n.readyState||4==n.readyState)&&e(null)},!1),Ir(n,zr,function(){e(null)},!1),Ir(n,Lr,function(){e(Lr)},!1),n.src=t}function Z(t,e){var n=t.url,r=t.data,a=(t.header,t.callback),i=new XDomainRequest;i.open(bo,n),i.onload=function(){a(null,i.responseText),e()},i.onerror=function(t){a(t),e()},i.send(X(r))}function Q(t,e){var n=t.url,r=t.data,a=t.header,i=t.callback,o=P(i),s=new Fi;s[Xr]=!0,s.overrideMimeType&&s.overrideMimeType("text/html"),s.onreadystatechange=function(){4==s.readyState&&200==s.status&&(o(null,s.responseText),e())},s.onerror=function(){o(),e()};try{s.open(bo,n,!0);for(var u in a)s.setRequestHeader(u,a[u]);s.send(X(r))}catch(c){e()}}function tt(t,e){var n=t.url,r=t.data,a=(t.header,t.callback),i=Ui.sendBeacon(n,X(r));i&&(a&&a(),e())}function et(t){this.size=t||100,this.queue=[],this.running=!1}function nt(){_o=vo=Q,Eo=!1}function rt(t){go=new et(t)}function at(t){go.add(t)}function it(t){try{return p(t)}catch(e){j(e&&e.message)}return null}function ot(t){var e=t||new Date,n=e.getFullYear()+"-",r=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",a=e.getDate()+" ";return n+r+a}function st(t,e,n){if(null==t[e]||Cr(t[e]))Cr(t[e])?t[e].push(n):t[e]=n;else{var r=t[e];t[e]=[r],t[e].push(n)}}function ut(t){return t.send_protocol?t.send_protocol:Do!==No&&/^https/i.test(t&&t.protocol||Do)?"https:":No}function ct(t){var e={};if(t=t||Bi.href,!Sr(t))return e;var n=t.indexOf("?");return n>=0&&(t=t.substring(n+1)),t?e=dt(t):e}function ft(t){return t&&t.indexOf("?")&&t.lastIndexOf("=")&&t.lastIndexOf("=")>t.indexOf("?")?ct(t):{}}function lt(t){var e={};return t=t||"",Sr(t)&&t?e=dt(t):e}function dt(t){var e={};return t&&r(t.split("&"),function(t){var n=t.split("="),r=pt(n[0]),a=pt(n[1]);if(Sr(a)){var i=it(a);null!=i&&(a=i)}r&&null!=a&&st(e,r,a)}),e}function pt(t){try{return decodeURIComponent(t)}catch(e){}return null}function ht(t,e,n){var a=null;return t&&e&&(a=Po+"//"+t+e,n&&(a+="?",r(n,function(t,e){var n=[_(e),"=",_(t),"&"];a+=n.join("")}))),a}function mt(t){Po=ut(t)}function vt(){var t=Co(Ci);return t?t:To(Ci,Mr())}function gt(){return Co(Ei)}function yt(t){if(null!=t){var e=gt();null!=e&&t!==e&&_t(),To(Ei,t)}}function xt(){var t=Co(Si);return t?t.split(wi):null}function bt(t){t&&3===t.length&&To(Si,t.join(wi))}function _t(){var t=Et();Pt(t)}function Et(){var t=R(),e=[Mr(),t,t];return bt(e),e}function St(){var t=R(),e=xt();Ct(e)?_t():(e[2]=t,bt(e))}function Ct(t){return!t||3!==t.length||R()-+t[2]>Ti}function Tt(t,e){return ht(Vi.beacon,t,wt(e))}function wt(t){var e=Dt();return E({},Xi,e,t||{},Wi.baseInfo,Ao||{})}function At(t){return t in Vi?Vi[t]:!0}function Rt(t){var e={};return r(t,function(t){t&&C(e[t.type]||[],t.key)<0&&(e[t.type]=e[t.type]||[]).push(t.key)}),e}function Pt(t){t[0]&&(Xi.sid=t[0]),t[1]&&(Xi.__s=+t[1])}function Dt(){var t={did:vt()},e=gt();return e&&(t.uid=e),t}function Nt(e){var n={};if(Tr(e)){var a={};e(a),n=a.server}else n=e;t[va]||(t[va]={hook:{}}),E(Ki.server,Ji,n||{},t[va].config||{}),E(Ki.appConf,{bizIdsRules:Rt(Vi.bizId_rule),customParamsRules:Rt(Vi.opt_param_rule),requestParamKeys:Rt(Vi.request_param_keys),corsDomains:Vi.cors_domains||[],optCustomParamRules:Rt(Vi.opt_custom_param_rule),ignoreNoFilePropError:At("ignore_err"),debuggable:At("debug"),sessionTimeout:Vi.session_timeout||Ti}),r(ko,function(e){Vi[e]&&(Wi.baseInfo[e]=Vi[e],t[Wr][e]=Vi[e])}),E(Xi,Dt());var i=xt();Ct(i)&&(i=Et()),Pt(i),Ki.server.event_timeout||(Ki.server.event_timeout=xa),Vi.appKey&&nt(),Vi.apm_arms&&(Vi.apm_headers||(Vi.apm_headers=[]),Vi.apm_headers.indexOf(qi)<0&&Vi.apm_headers.push(qi)),mt(Vi),rt(Vi.req_capacity)}function kt(e){try{var n;if(!e||!e.data||0!==e.data.indexOf("_TINGYUN"))return;if(n=e.data.replace("_TINGYUN",""),it(n)){var r=it(n);if("gather"===r.type&&"APM"===r.fromJS&&!t[ji]){Gi.isGather=!0;var a=e.origin,i=zi.getElementsByTagName("head")[0],o=zi.createElement("script");o.type="text/javascript",o.src=a+"/assets/lib/gather/path-gather.min.js?version="+ot(new Date),i.appendChild(o)}}}catch(s){}}function Ot(){var t=this;t.xhrs={},t.errs=[],N.call(t)}function It(t){so&&console.warn(t||"Event key required!")}function jt(t){t=t||{},this.key=t.key,this.type=t.type||Ni;var e=t.timeout||Pi;this.timeout=e,this.status=1,this.remain=0,this.xhrs=[],this.s=R(),this.e=null,this.called=this.sent=this.stored=!1}function qt(t){t=t||{};var e=t.key;if(!e)return new It;if(Ho[e])return new It("event "+e+" is executing");Ho[e]=!0;var n=mo.createContext();mo.enter(n);var r=new jt(t);return r._end=function(){var t=this;t.sent||t.stored||0!==t.remain||!t.called?t.stored&&this.refreshEventAndStore(n):t.finish().send(n)},r.end=function(t,e){var r=this;return r.called?void(so&&console.warn("Event "+this.key+"has ended or failed!")):(r.called=!0,mo.exit(n),r.status=null!=t?t:1,void(e||r._end()))},r.finish=function(t){var e=this;return e.e=R(),e.i&&clearTimeout(e.i),delete Ho[e.key],e},r.fail=function(){this.end(0)},r.store=function(){this.end(null,!0),this.refreshEventAndStore(n),this.stored=!0},r.i=r.timeout?k(b(r.fail,r),r.timeout):null,mo.set("event",r),r}function Ht(e){if(t.TINGYUN&&t.TINGYUN.inited){var n=Co(Ai),r=it(n);if(r&&r.start&&(e=e||{},!e.key||r.key===e.key)){var a=e.timeout;if(a||(a=Ri),r.duration=R()-r.start,r.duration>a)return void wo(Ai);var i=t.performance.timing;if(i.navigationStart&&(i.loadEventEnd||i.loadEventStart)&&i.navigationStart-r.start>=0){var o={req:"get "+document.URL,status:200,type:"PF",start:i.navigationStart-r.start,du:(i.loadEventEnd||i.loadEventStart)-i.navigationStart};r.xhrs||(r.xhrs=[]),r.xhrs.push(o)}var s=1;e.status&&(s=e.status===Oi?1:0),r.status=s,wo(Ai),Io.emit("send","/spe",null,r,A)}}}function Mt(e){if(!t.TINGYUN||!t.TINGYUN.inited)return new It("Agent is not inited!");e=E(e||{},{type:Di});var n=qt(e);return e.autoEnd&&k(function(){e.status&&e.status===Ii?n.fail():n.end()},e.endDelay||ki),n}function Lt(e,n){t.TINGYUN&&t.TINGYUN.inited&&(wr(n)||(n={}),e&&e.beforeEach&&e.afterEach&&(e.beforeEach(function(t,e,r){var a=t.path;if(!Mo[a]||Mo[a].e){var i={key:a};n&&n.timeout&&(i.timeout=n.timeout),Mo[a]=Mt(i)}r()}),e.afterEach(function(t,e){var r=t.path;k(function(){var t=Mo[r];!t||t.called||t.e||(n&&n.status===Ii?t.fail():t.end())},n.endDelay||ki)})))}function zt(t,e){var n;if(wr(t))n=t;else{if(!Sr(t)||void 0===e)throw new Li(Qi);n={},n[t]=e}return r(n,function(t,e){e in Lo?to[Lo[e]]=t:to[e]=t}),this}function Ft(t){if(t){var e=to.firstScreenResources=to.firstScreenResources||[];Cr(t)||(t=[t]),r(t,function(t){if(Sr(t))e.push(t);else if($i(t)){var n=t.src||t.href;n&&e.push(n)}})}}function Bt(t){Cr(t)||(t=[t]),r(t,function(t){if(t){if(!(t instanceof RegExp))throw new Li("parameter's type requires RegExp");(Wi.domains||(Wi.domains=[])).push(t)}})}function Ut(t,e){if(t){var n=t.split("_"),r=n[0],a=n[1];"ty"===r&&a&&O(a,{timestamp:R(),data:e})}}function Yt(t){Fo&&t()}function Gt(t){return function(){Fo&&t.apply(this,arguments)}}function Jt(){Fo=!1}function Kt(){if(Object.defineProperty){var e=t[Kr];e&&Object.defineProperty(t,Kr,{get:function(){return Uo++>0&&t.console&&console.warn("window.%s is deprecated, use window.%s instead.",Kr,Wr),e}})}}function Wt(e){Yo.on(zr,P(function(){n();var t=R();Yt(function(){Bo.load=t}),e.loadEventEnd=t})),r([zr,Fr,Br,Ur],function(e){Ir(t,e,function(t){Yt(function(){(Bo.e[e]||(Bo.e[e]=[])).push(R())}),Yo.emit(e,t)})});var n=P(function(){var t=R();Yt(function(){Bo.end=t}),e.domContentLoadedEventStart=t,zi.querySelectorAll&&(eo.resources=eo.resources||[],r(zi.querySelectorAll("head>link,head>script"),function(t){var e;"LINK"==t.tagName?e=t.href:"SCRIPT"!=t.tagName||t.defer||t.async||(e=t.src),e&&eo.resources.push(e)}))});Ir(zi,"DOMContentLoaded",n),Ir(zi,Yr,function(t){zi.readyState===Gr&&n()});var a=P(function(){e.touch=R()});r(["scroll","click","keypress"],function(t){y(zi,t,a)});var i=t.requestAnimationFrame;!i||i.toString().indexOf("[native code]")<0||G(t,"requestAnimationFrame",function(n){return function(){if(!e.firstPaint){var r=R();Yt(function(){Bo.an.count++,Bo.an.t=r}),e.firstPaint=r,t.requestAnimationFrame=n}return n.apply(this,arguments)}})}function Vt(t,e,n){n||(n=e&&window[e]||zi.cookie||"");var r=n.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?r[3]:null}function Xt(t,e,n,r,a){var i=t+"="+e;if(n){var o=new Date;o.setTime(o.getTime()+1e3*n),i+=";expires="+o.toGMTString()}r&&(i+=";path="+r),(a||zi).cookie=i}function $t(t,e){var n;return t&&(n=!0,r(t,function(){return n=!1},e)),!!n}function Zt(t){var e={},n={},r={},a={},i=ct(t);return i&&(e=Qt(i,Wi.bizIdsRules[Zr],Wi.bizIdsRules[ea]),n=Qt(i,Wi.customParamsRules[Zr],Wi.customParamsRules[ea]),r=Qt(i,Wi.requestParamKeys[na],Wi.requestParamKeys[ra]),a[aa]=re(i,Wi.optCustomParamRules[aa],!0)),{bizIdParams:e,params:n,requestParams:r,optCustomParams:ne(a)}}function Qt(t,e,n){var a={};return t&&e&&e.length&&e.length>0&&r(e,function(e){var n=t[e];null!=n&&st(a,e,n)}),t&&n&&n.length&&n.length>0&&r(n,function(e){var n=te(fa,e),r=n(t);null!=r&&st(a,e,r)}),a}function te(t,e){var n=t+"."+e;if(Go[n])return Go[n];var a=(e||"").split("."),i="";e&&0!==e.indexOf("[")&&(i=".");var o=t;r(a,function(t,e){0===e&&(o+=i),o+=t.indexOf("-")>-1&&0!==t.indexOf("[")&&t.indexOf("]")!==t.length-1?"['"+t+"']":(e>0?".":"")+t});var s;try{s=new Function(t,"try{return "+o+";}catch(e){}return null;")}catch(u){s=A}return Go[n]=s,s}function ee(t){return t+="",t&&t.substr(0,128)||""}function ne(t){var e={};return r(t,function(t,n){$t(t)||(e[n]=t)}),e}function re(t,e,n){var a={};return t&&e&&e.length&&e.length>0&&r(e,function(e){var r=t[e];if(null!=r)st(a,e,r);else if(n){var i=te(fa,e),r=i(t);null!=r&&st(a,e,r)}}),a}function ae(t){var e,n;if(t)if(0===t.indexOf(ma)){var r=t.substring(ma.length);try{n=Ko.decode(r),e=it(n)}catch(a){}}else{try{n=decodeURIComponent(t),e=it(n)}catch(a){}if(!e)try{n=decodeURIComponent(n),e=it(n)}catch(a){j(a&&a.message)}}return e}function ie(t){var e={};return t&&wr(t)&&(e.s_id=t.id,e.s_tname=t.tname,e.s_tid=t.tid,e.s_rid=t.rid,e.s_duration=t.duration,"user"in t&&(e.s_user=t.user),"bid"in t&&(e.s_bid=ee(t.bid)),"ber"in t&&(e.s_ber=t.ber),"isError"in t&&(e.s_isError=t.isError)),e}function oe(t){return t[za]||t._end}function se(t){return t.loadEventEnd||t._end}function ue(t){var e=0,n=t.timing;return n?t.getEntriesByName&&(e=n.domLoading,r(eo.resources,function(r){var a=t.getEntriesByName(r);if(1==a.length){var i=a[0].responseEnd+n.navigationStart;i>e&&(e=i)}}),e-=n.navigationStart):q("fp=0"),Yt(function(){Bo._fp=e}),Math.round(e)}function ce(e,n,a,i){var o=a||0,s=to.firstScreenResources;if(s&&s.length&&e.getEntriesByName)return r(s,function(t){var n=e.getEntriesByName(t);if(n.length){var r=n[0],a=r.responseEnd;a>o&&(o=a)}}),i.fs_s=1,Math.round(o);var u=zi.createElement("img");if(!u.getBoundingClientRect)return Yt(function(){Bo.fs=o}),o;if(e.getEntriesByName){var c=t.innerHeight,f=t.innerWidth,l=[];r(zi.querySelectorAll("img"),function(t){t.src&&fe(le(t),c,f)&&!de(t)&&l.push(t.src)});var d=(n.loadEventEnd||Io.loadEventEnd)-n.navigationStart;r(l,function(t){var n=e.getEntriesByName(t);if(n.length){var r=n[0],a=r.responseEnd;r.fetchStart<=d&&a>o&&(o=a)}})}return Math.round(o)}function fe(e,n,r){if(e){var a=t.pageYOffset,i=e.top+(0===a?0:a||zi.scrollTop||0)-(zi.clientTop||0);if(i>=n)return!1;var o=e.left;return o>=0&&r>o}return!1}function le(t){return Tr(t.getBoundingClientRect)?t.getBoundingClientRect():void 0}function de(t){return Vo.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:pe(t)}function pe(t){for(;t&&1===t.nodeType;){if("none"===he(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function he(t){return t.style&&t.style.display}function me(t){var n=e,r=0;return t&&(n=t.navigationStart||n,r=t[za]||t.domInteractive||t.domLoading||r),r=r||Io._end,r-n}function ve(n,a){function i(t){return n[t]>0?n[t]-s:0}var o={},s=a?a.globalStart:e,u=a?a.window:t,c=(a?a.agent:Io)||{};if(n){Yt(function(){var t=Bo.t={};r(n,function(e,n){Tr(e)||(t[n]=e)},!0)}),s=n.navigationStart,o={ns:s,f:i(qa),qs:i(Ha),rs:i(Ma),re:i(La),os:i(za),oe:i(Fa),oi:i(Ba),oc:i(Ua),ls:i(Ya),le:i(Ga),tus:i(Ja),tue:i(Ka)};var f=i(Wa),l=i(Va),d=i(Xa),p=i($a),h=i(Za),m=i(Qa);if(o.cs=h,o.ce=m,o.ds=f,o.de=l,(p-d>0||p>0)&&(o.es=d,o.ee=p),0==o.le){var v=se(c);o.ue=v-s}c&&(c._le=o.ue||o.le);var g,y;if(n.msFirstPaint)g=n.msFirstPaint,a||Yt(function(){Bo.fp="m_"+g});else if((y=u.chrome)&&u.chrome.loadTimes){var x=u.chrome.loadTimes();x&&x.firstPaintTime&&(g=1e3*x.firstPaintTime),a||Yt(function(){Bo.fp="c_"+x.firstPaintTime})}else c&&c.firstPaint&&(g=c.firstPaint,a||Yt(function(){Bo.fp=g}));g&&(o.fp=Math.round(g-s),c.fp=o.fp),n[ti]?o.sl=i(ti):o.sl=0}else o={t:s,os:oe(c)-s,ls:se(c)-s};return o.je=c&&c.errs&&c.errs.length||0,c&&c.ct&&(o.ct=c.ct-s),c&&c.touch&&(o.fi=c.touch-s),o}function ge(t,e){var n=ve(t,e);n.fp?t&&n.fp>n._le&&(n.fp=ue(performance),n.__fp=2):t?(n.fp=ue(performance),n.__fp=1):n.fp=n.__fp=0,n.dr=me(t),t?n.fs=ce(performance,t,n.fp,Io):n.__fs=0;var r={};return n&&(r={f:n.f,fp:n.fp,fs:n.fs,dr:n.dr,le:n.le,je:n.je}),r}function ye(){return{optCustomParam:ro.opt_custom_param}}function xe(t){return t||(t=ye()),"".concat(Na).concat(Er(t))}function be(t,e,n,r){if(t){var a=_e(t);if(a)try{var i=a+Er(t),o=[i];o.unshift(e?e:xe());var s=o.join("\n");Io.emit("send","/action",{ps:r||a===Da?1:0},s,function(){t.type===Ca&&(Io.xhrs=Io.errs=null)},n)}catch(u){}}}function _e(t){var e="";return t.type===ba?e=wa:t.type===_a?e=Aa:t.type===Sa?e=Pa:t.type===Ea?e=Ra:t.type===Ca&&(e=Da),e}function Ee(t){be(t)}function Se(t){var e=ro.cpParent;if(e){if(t&&(ro.recordingCpActions=!1),!I())return void(ro.tryEndCpActionsFailed=!0);var n=e.action,a=e.data,i=e.commonActionInfo,o=e.url;if(n&&a&&0!==a.length){var s=R(),u=[];r(ro.cpActions,function(t){t.data&&(t.data.crossPage=!0),u.push(t.data)}),a[a.length-1].items=u;for(var c=a.length-1;c>=0;c--){var f=a[c];f.type===ba||f.end||(f.end=s),a[c-1]&&(a[c-1].items=[f]);var l=void 0;l=f.start&&f.end&&f.end-f.start>Vi.event_timeout?ja:f.type===ba?a[c+1]&&a[c+1].state||Ia:Ia,f.state=l}n.data=a[0],n.end=s;var d=xe(E(i||{},{cpOptCustomParam:ro.opt_custom_param,pageParam:wt()}));be(n,d,o,!0)}}}function Ce(){var t={};return r(Xo,function(e){t[e]={current:0,children:0}}),t}function Te(t,e,n){r(t,function(t){t.cid===e.id&&(t.items=e.items||[])})}function we(t,e){r(t,function(t){r(e,function(e){t.cid===e.id&&(t.state||(t.state=e.state),t.items=e.items||[])})}),r(e,function(t){we(t.items,t.children)})}function Ae(t,e,n,r,a,i){i=i||{},this.id=++ro.uniqueId,this.parent=t||null,this.children=[],this.name=e||"",this.type=n||ba,this.subType=this.type===ba?r||"click":r,this.items=[],this.remain=Ce(),this.s=i.s||R(),this.e=null,this.data=a,this.state=Oa,this.crossPage=i.crossPage||!1;var o=this;null==this.parent&&(this.i=k(function(){o.timeout()},Vi.event_timeout)),this.closed=!1,this.isTimeout=!1,this.cleared=!1,this.stateChanged=!1,this.actionCount={ajax:n===_a?1:0,iframe:n===Sa?1:0},null!=this.parent&&this.parent.children.push(this)}function Re(t,e){if(Pe()){var n={rm:{},em:[],cpm:{}};e&&(n.rm.res=e.res||[]),t&&(n.cpm=t,n.cpm.ul=zi.URL),nbsJsBridge.logJsResult(Er(n))}}function Pe(){return"undefined"!=typeof nbsJsBridge&&nbsJsBridge.logJsResult}function De(){var t=0;try{t=window.performance.timing.loadEventEnd}catch(e){}return t>0}function Ne(t,n){var a={tr:!1,tt:_(zi.title),charset:zi.characterSet};to.resources&&E(a,to.resources),Yt(function(){a.debug=Bo}),Jt();var i=Io.errs;r(i,function(t,r){var a=t.toObject();a.o=a.o-n&&n.navigationStart||e,i[r]=a}),a.err=i;var o,s="getEntriesByType";return t[s]?o=t[s]("resource"):q(S(Zi,[s])),o&&(a.tr=!0,a.res=[],r(o,function(t){function e(e){var n=t[e];return n>0?n:0}var n=t.initiatorType,i=t.name,o={o:e("startTime"),rt:n,n:i,f:e(qa),ds:e(Wa),de:e(Va),cs:e(Za),ce:e(Qa),sl:e(ti),qs:e(Ha),rs:e(Ma),re:e(La),ts:t.transferSize||0,es:t.encodedBodySize||0};if("xmlhttprequest"===n){var s=ke(i);r(s,function(t,e){0==e.indexOf("s_")&&(o[e]=t)})}a.res.push(o)})),a}function ke(t){var e;return r(Io.xhrs,function(n,r){return r&&t.indexOf(r)>-1?(e=n,!1):void 0}),e}function Oe(e){if(!e.agent){var n=t._ty_rum;if(n&&n.agent)e.agent=n.agent;else{var r=Vt(da,la);r&&(e.agent=ae(r),Xt(da,"",-1e3,"/"))}}return e.agent}function Ie(t){if(t){var e=t.fetchStart;if(e)return e-t.navigationStart}}function je(){var e={},n=0,a=t.performance;a&&a.getEntriesByType&&r(a.getEntriesByType("mark")||[],function(t){if(t&&t.name&&t.startTime&&0===t.name.indexOf(ga)){var r=t.name.substring(ga.length);r&&(e[r]=Math.round(t.startTime),n+=1)}});var i=t[va]&&t[va].data,o=E({},i||{},no||{});return o&&a.timing&&r(o,function(t,r){wr(t)&&t.timestamp&&(e[r]=t.timestamp-a.timing.navigationStart,n+=1)}),n>0?e:null}function qe(t,e){var n=E({},t||{},{type:Ca});return e&&(n.body=e),n}function He(t,e){var n=Er(t),r=n?n.length:0;if(r>ya&&t.res&&t.res.length>0){t.res=t.res.slice(0,e);var a=Er(t),i=a?a.length:0;return i>ya?He(t,e-10>0?e-10:0):t}return t}function Me(){var n=P(function(){function n(t){return t?"1":"0"}if(!ro.pfSent){var a=t.performance,i=!!a;i||q(S(Zi,["pf"]));var o=Oe(Ki);o&&o.ulabel&&(to.ulabel=o.ulabel);var s=ie(o),u=a&&a.timing,c=E(ve(u),s,to),f=E({},Ao);f.ressize=!!u,Io.fp?(f.fp=Io.fp,i&&Io.fp>Io._le&&(q("fp>le"),f.fp=ue(a),f.__fp=2)):i?(f.fp=ue(a),f.__fp=1):f.fp=f.__fp=0,f.dr=me(u),i?f.fs=ce(a,u,f.fp,f):f.__fs=0;var l="",d=je(),p=E(c,f)||{};d&&r(d,function(t,e){Ar(t)&&t>=0&&(p[e]=t)});var h;if(i){var m="trace",v=Math.max(p.ls,0);v||(v=se(Io)-u.navigationStart||e),p[m]=v;var g=Ie(u);r(["fp","fs","dr",m],function(t){l+=n((g?p[t]-g:p[t])>=Vi[t+"_threshold"])}),delete p[m],l.indexOf("1")>-1&&(h=Ne(a,u)),d&&(h||(h={}),h.mark=d)}p.trflag=l||"0000",eo.pfStart=R(),delete p.firstScreenResources,delete p.resources;var y=Zt(zi.URL);if(h||(h={tr:!1,tt:_(zi.title),charset:zi.characterSet}),h.bizId_param=y.bizIdParams,h.opt_param=y.params,h.request_param=y.requestParams,ro.opt_custom_param=y.optCustomParams,h)try{h=He(h,150)}catch(x){}var b=qe(p,h),C=Ae.buildImmediateAction(Ca,"",b,ro.recordingCpActions);ro.recordingCpActions&&(C.crossPage=!0,ro.cpActions.push(C),k(function(){Se(!0)},$o));try{Re(p,h)}catch(x){}ro.pfSent=!0}});return De()&&!ro.pfSent&&n(),Yo.on(zr,function(){var t=0;if(Vi.pfDelay&&wr(Vi.pfDelay)){var e=je();r(Vi.pfDelay,function(n,r){(!e||null==e[r])&&Ar(n)&&n>t&&(t=n)})}if(ro.recordingCpActions){var a=Vi.cross_page_delay?Vi.cross_page_delay:si,i=a-t;0>i&&(i=0),$o=i}k(n,t)}).on([Fr,Br,Ur],n)}function Le(t){var e=t;return Zo&&(Qo.setAttribute("href",e),e=Qo.href),Qo.setAttribute("href",e),{href:Qo.href,protocol:Qo.protocol?Qo.protocol.replace(/:$/,""):"",host:Qo.host,search:Qo.search?Qo.search.replace(/^\?/,""):"",hash:Qo.hash?Qo.hash.replace(/^#/,""):"",hostname:Qo.hostname,port:Qo.port,pathname:"/"===Qo.pathname.charAt(0)?Qo.pathname:"/"+Qo.pathname}}function ze(t){var e=!1;return Wi.corsDomains&&r(Wi.corsDomains,function(n){return t.indexOf(n)>-1?(e=!0,!1):void 0}),e}function Fe(t){var e=Le(t);return e.protocol===ts.protocol&&e.host===ts.host||ze(e.host)}function Be(e,n){return function(r){if(t[va].hook&&t[va].hook.eventCb&&$e(r)){var a={originalCallback:e,eventHandlerType:n};return t[va].hook.eventCb.call(this,arguments,a)}return e.apply(this,arguments)}}function Ue(t,e,n){return n===ns?Be(t,e):(t.handleEvent=Be(t.handleEvent,e),t)}function Ye(t){return Tr(t)}function Ge(t){return wr(t)&&Tr(t.handleEvent)}function Je(t){var e;return Ye(t)?e=ns:Ge(t)&&(e=rs),{isValid:t&&e,listenerType:e}}function Ke(t){return function(){var e=arguments[0],n=arguments[1],r=arguments[2],a=!0;r&&wr(r)&&r[ci]&&(a=!1);var i=Je(n),o=i.isValid,s=i.listenerType;if(a&&es.indexOf(e)>-1&&o){var u;if(n[Hi]&&n[Hi][this])u=n[Hi][this];else{var c=Ue(n,di,s);s===ns&&(n[Hi]||(n[Hi]={},n[Hi][Mi]=0),n[Hi][this]={listener:c,options:arguments[2]},n[Hi][Mi]++,u=n[Hi][this])}u&&(u.listener&&(arguments[1]=u.listener),u.options&&(arguments[2]=u.options))}return t&&t.apply(this,arguments)}}function We(t){return function(e,n){var r;try{r=t&&t.apply(this,arguments)}finally{try{if(n&&es.indexOf(e)>-1){var a=n[Hi];a&&a[this]&&a[this].listener&&(null!=a[this].options?this.removeEventListener(e,a[this].listener,a[this].options):this.removeEventListener(e,a[this].listener),a[this]=null,a[Mi]--,a[Mi]<=0&&(n[Hi]=null,delete n[Hi]))}}catch(i){}}return r}}function Ve(){t.EventTarget&&(G(t.EventTarget.prototype,"addEventListener",function(t){return Ke(t)}),G(t.EventTarget.prototype,"removeEventListener",function(t){return We(t)}))}function Xe(){Object.getOwnPropertyDescriptor&&Object.defineProperty&&es.forEach(function(e){var n="on"+e,r=Object.getOwnPropertyDescriptor(t.HTMLElement.prototype,n),a=r.get,i=r.set;Object.defineProperty(t.HTMLElement.prototype,n,{get:function(){return a.apply(this,arguments)},set:function(){var t=arguments[0];return t&&(arguments[0]=Ue(t,pi,ns)),i&&i.apply(this,arguments)},configurable:!0,enumerable:!0})})}function $e(e){return e&&e.target instanceof t.HTMLElement&&e.currentTarget instanceof t.HTMLElement}function Ze(t){return!!t.match(Ze.regex)}function Qe(t){return t&&t.substr(0,256)||""}function tn(t){try{if(!t)return"";for(var e=[],n=t.parentNode,r=function(){var r=t.tagName,a=void 0;a=n.children;var i=void 0;i=a?1===[].filter.call(a,function(t){return t.tagName===r}).length?r:"".concat(r,":nth-child(").concat(1+[].indexOf.call(a,t),")"):r;var o=t.id?"#".concat(t.id):"",s=t.className&&Sr(t.className)?t.className.split(" ").map(function(t){return".".concat(t)}).join(""):"";e.unshift("".concat(i).concat(o).concat(s)),t=n,n=t.parentNode};n;)r();return"".concat(e.join(" > ")).toLowerCase()}catch(a){}}function en(t,e,n){var r=t.target,a=r.nodeName,i=r.id,o=r.className,s=r.title,u=r.value,c=r.innerText,f=a+i,l={type:ba,id:i,nodeName:a,className:o,title:s,value:u,text:a===gi?"":Qe(c),path:tn(t.target)};if(mi===a){var d=t.target.getAttribute("src");d&&!Ze(d)&&(l.src=d)}if(vi===a){var p=t.target.getAttribute("href");p&&(l.href=p)}return l.eventHandlerType=e,Ae.createEvent(null,f,ba,t.type||fi,l,n)}function nn(t,e){ro.context=en(t,e)}function rn(){var t=ro.context;t&&t.canEnd()&&t.end(),ro.context=null}function an(t,e){var n=e.originalCallback,r=e.eventHandlerType,a=t[0],i=!a||!a.target||a[ui]||!(as.indexOf(a.type)>-1);if(!i)try{nn.call(this,a,r)}catch(o){}var s;try{s=n.apply(this,t)}finally{if(!i)try{ro.context&&!ro.context.canEnd()&&(a[ui]=!0),rn.apply(this)}catch(o){}}return s}function on(){r(as,function(t){document.addEventListener(t,function(t){os.length>=ni&&os.shift(),os.push(t)},_defineProperty({capture:!0},ci,!0))})}function sn(t){return t.timeStamp?Math.round(t.timeStamp+performance.timing.navigationStart):R()}function un(t){var e=os.filter(function(t){return!t[ui]}),n=e[e.length-1];if(n){var r=sn(n);if(Math.abs(r-t)<is)return en(n,hi,{s:r})}}function cn(t){var e=[];try{e=os.filter(function(e){return!e[ui]&&e.timeStamp===t.timeStamp&&t.target.nodeName===e.target.nodeName})}catch(n){}if(e.length>0){var r=e[0];return en(r,hi,{s:sn(r)})}}function fn(){Vi.inline_event_associate_threshold&&(is=Vi.inline_event_associate_threshold),t[va].hook&&(t[va].hook.eventCb=an),!t[va].listenerHooked&&t.HTMLElement&&(Ve(),Xe()),Vi.disableInlineEvent||on()}function ln(t,e,n){var a=Mr().replace(/-/g,""),i={};return r(e,function(e){!e||n&&n[e]||(t.setRequestHeader(e,a),i[e]=a)}),i}function dn(t){t.pcid=t.parentContext.id,t.parentContext.updateRemain(1,_a),t.parentContext.items.push(t.contextData)}function pn(t){return function e(n,r){var a=this,i=e;if(i._&&(i._=1),!a[Xr]){var o=a[Kr]={};o.method=n,o.url=r,o.id=us++,o.jserror=!1;var s=mo.get("event");s&&(o.key=s.key,s.remain++),yn(o,ro.context),o.parentContext=o.context.parent,o.contextData={type:_a,id:o.id,cid:o.context.id,method:o.method,url:o.url,state:o.state,ignore:!1,jserror:o.jserror},o.context&&o.context.setData(o.contextData),o.parentContext&&dn(o)}try{return t.apply(a,arguments)}catch(u){}}}function hn(t){return function e(n,r){var a=this,i=e;if(i._&&(i._=1),!a[Xr]){var o=a[Kr],s=Dn(n,Wi.optCustomParamRules);Gi.isGather&&(o.wReqHeaderParam||(o.wReqHeaderParam={}),o.wReqHeaderParam[n]=r),o&&s&&(o.reqHeaderParam||(o.reqHeaderParam={}),o.reqHeaderParam[n]=r),o.headerRecord||(o.headerRecord={}),o.headerRecord[n]=r}try{return t.apply(a,arguments)}catch(u){}}}function mn(t){return function e(n){var r=this,a=e;if(a._&&(a._=1),!r[Xr]){var i=r[Kr];if(i&&(i.start=R(),i.reqSize=D(n),i.requestData=n,i.contextData&&(i.contextData.start=i.start)),i.context&&null==i.context.parent){var o=un(i.start);o&&(i.context.parent=o,i.parentContext=i.context.parent,dn(i))}!i.parentContext&&ro.recordingCpActions&&(i.context.crossPage=!0,ro.cpRemain.ajax++,ro.cpActions.push(i.context)),En(r);var s=Fe(i.url);if(Vi.x_server_switch&&r.setRequestHeader&&Vi.key&&i&&s){var u=jn(),c="c=B|"+Vi.key;if(u&&(c+=";x="+u),r.setRequestHeader(pa,c),i.xTingyunSent=!0,Vi.apm_headers){var f=ln(r,Vi.apm_headers,i.headerRecord);i.apms=f}}}try{return t.apply(r,arguments)}catch(l){}}}function vn(t){r(cs,function(e,n){Ir(t,n,function(){gn(t,e,n)})})}function gn(t,e,n){t&&t[Kr]&&(t[Kr].errorCode=e,t[Kr].errorEvent=n)}function yn(t,e){if(!t.context){var n="".concat(t.url,"-").concat(t.id);t.context=Ae.createEvent(e,n,_a)}}function xn(t,e){ro.context=t.context,ro.globalAsyncStore=t,ro.globalAjaxContext=e}function bn(t){var e=t.context&&t.context.canEnd();e&&t.context.end(),t.contextData&&t.context.state===ja&&Vi.upload_timeout_ajax&&(t.contextData.brsOnly=!0,Ae.buildImmediateAction(_a,"",t.contextData,!1,{state:ja})),ro.globalAsyncStore=null,ro.globalAjaxContext=null}function _n(t,e){var n=t[ss];n&&!t[bi]&&(G(t,ss,e),t[bi]=!0);var r=t[fs];r&&!t[bi]&&(G(t,fs,e),t[bi]=!0)}function En(t){function e(e){return Y(function n(){var r=n;r._&&(r._=1),Sn(t);var a;if(Tr(e)){var i=t[Kr];if(i&&4==t.readyState){var o=R();xn(i,t)}try{a=e.apply(this,arguments)}catch(s){throw i&&(i.jserror=!0),s}i&&4==t.readyState&&(i.cbTime=R()-o)}return a})}_n(t,e);try{vn(t)}catch(n){}if(!t[bi])try{Ir(t,Yr,Y(function r(){var e=r;e._&&(e._=1),Sn(t)}))}catch(n){return}w(function(){_n(t,e)})}function Sn(t){var e=t[Kr];if(e&&(e.end=R(),e.readyState=t.readyState,4==t.readyState)){xn(e),e.status=t.status,e.text=Cn(t),e.resSize=D(e.text);var n=An(e,t),r=mo.get("event");w(function(){e.callbackEnd||(e.callbackEnd=!0,wn(e,n),r&&r.key==e.key&&(r.xhrs.push(n),0===--r.remain&&r._end()),Io.xhrs&&(Io.xhrs[e.url]=n),bn(e))})}}function Cn(t){var e="";if(""==t.responseType||"text"==t.responseType)e=t.responseText;else if(t.response)e=t.response;else try{
e=t.responseText}catch(n){}return e||""}function Tn(t){return t.data&&"event"===t.data.type?{text:t.data.text,path:t.data.path,nodeName:t.data.nodeName,items:t.items}:t.parent&&t.parent.data&&"event"===t.parent.data.type?{text:t.parent.data.text,path:t.parent.data.path,nodeName:t.parent.data.nodeName,items:t.parent.items}:t.parent&&t.parent.parent?Tn(t.parent):{text:"",path:"",nodeName:"",items:[]}}function wn(t,e){t&&e&&t.jserror&&(e.jserror=t.jserror),t.errorCode&&!e.err&&(e.err=t.errorCode)}function An(e,n){if(e&&!e.composed){var r=e.status;if(Gi.isGather){var a=Tn(e.context);e.wCustom={fromJS:"agent",key:Vi.key,ajaxUrl:e.url,items:e.context.items,itemsTemp:a&&a.items,id:e.id,url:document.URL,text:a&&a.text,xpath:a&&a.path,nodeName:a&&a.nodeName,method:e.method,urlParams:ft(document.URL),ajaxUrlParams:ft(e.url),start:e.start,requestHeader:e.wReqHeaderParam,requestParams:e.requestData,responseHeader:n.getAllResponseHeaders()&&n.getAllResponseHeaders().split("\n"),responseBody:n.response,children:[]},t.top&&t.top.postMessage&&t.top.postMessage(Er(e.wCustom),"*"),delete e.wCustom,delete e.wReqHeaderParam}E(e.contextData,{end:e.end,du:r>0?e.end-e.start:0,cb:e.cbTime||0,status:r,err:e.errorCode?e.errorCode:0,rec:e.resSize,send:e.reqSize});var i=e.contextData,o={};o[ia]=e.reqHeaderParam||{};var s=Zt(e.url),u=s.bizIdParams,c=s.params,f=s.requestParams,l=s.optCustomParams,d=On(e.requestData,Wi.bizIdsRules[Zr],Wi.bizIdsRules[ea]),p=On(e.requestData,Wi.customParamsRules[Zr],Wi.customParamsRules[ea]),h=On(e.requestData,Wi.requestParamKeys[na],Wi.requestParamKeys[ra]);o[oa]=re(In(e.requestData),Wi.optCustomParamRules[oa],!0);var m=Nn(n,Wi.bizIdsRules),v=Nn(n,Wi.customParamsRules);o[sa]=Nn(n,Wi.optCustomParamRules,sa);var g={},y={},x=it(e.text);x&&(g=kn(x,Wi.bizIdsRules),y=kn(x,Wi.customParamsRules),o[ua]=re(x,Wi.optCustomParamRules[ua],!0)),i.bizId_param=E({},u,d,m,g),i.opt_param=E({},c,p,v,y),i.request_param=E({},f,h),i.opt_custom_param=ne(Rn(o,l));var b=e.xTingyunSent?it(Pn(n,ha)):null;if(b){if(i.hasServerHeader=!0,i.s_id=b.id,i.s_tname=b.tname,i.s_tid=b.tid,i.s_rid=b.rid,i.s_duration=b.duration,"user"in b){var _=b.user,S=_;if(null!=_&&0===_.indexOf(ma)){var C=_.substring(ma.length);try{S=Ko.decode(C)}catch(T){}}i.s_user=S}"bid"in b&&(i.s_bid=ee(b.bid)),"ber"in b&&(i.s_ber=b.ber),"isError"in Io&&(i.s_isError=b.isError)}else i.hasServerHeader=!1;return e.apms&&(i.apms=e.apms),e.composed=!0,i}}function Rn(t,e){return r(e,function(e,n){t[n]=E({},t[n]||{},e||{})}),t}function Pn(t,e){if(t&&t.getResponseHeader)try{return t.getResponseHeader(e)}catch(n){}}function Dn(t,e){var n;return r(e[ia],function(e){return t===e?(n=!0,!1):void 0}),n}function Nn(t,e,n){var a={};return r(e[n||Qr],function(e){var n=Pn(t,e);null!=n&&st(a,e,n)}),a}function kn(t,e,n){var a={};return r(e[n||ta],function(e){var n=te(ca,e),r=n(t);null!=r&&st(a,e,r)}),a}function On(t,e,n){return Qt(In(t),e,n)}function In(t){var e=it(t);return e||(e=lt(t)),e}function jn(){try{return Mr().replace(/-/g,"").substring(0,16)}catch(t){}}function qn(){var e=Fi&&Fi.prototype;e?(G(e,"open",pn),G(e,"setRequestHeader",hn),G(e,"send",mn)):Fi&&(t.XMLHttpRequest=function(){var t=new Fi;return G(t,"open",pn),G(t,"setRequestHeader",hn),G(t,"send",mn),t})}function Hn(t){this.limit=t,this.reset()}function Mn(t,e,n,r,a){return String(t)+String(e)+String(n)+String(r)+String(a)}function Ln(t,e,n,r){return String(t)+String(e)+String(n)+String(r)}function zn(t,e,n,r,a,i,o){var s=this;s.id=t,s.time=R(),s.msg=e,s.lineno=r,s.colno=a,s.filename=n,s.count=1,s.stack=i&&i.stack||"",s.module=o,s.fix();var u=Ln(e,r,a,o),c=hs[u];s.ep=c?0:1,hs[u]=!0,s.fep=0,this.recordFileName()}function Fn(t){var n=function(t){var e=[];return r(t,function(t){e.push(t.toObject())}),e}(ps.c);if(!n||!n.length)return null;var a={fu:ds?ds:ds++,os:parseInt((R()-(eo.pfStart||e))/1e3)};to.ulabel&&(a.ulabel=to.ulabel),Io.emit("send","/err1",a,{datas:n}),ps.reset()}function Bn(t,e,n,a,i){if(e||!Wi.ignoreNoFilePropError){var o=!1;if(r(Wi.domains,function(t){return o=t.test(e),o?!1:void 0}),!o){var s=i&&i.moduleId,u=Mn(e,t,n,a,s),c=ps.get(u);c?c.increase():(c=new zn(u,t,e,n,a,i,s),ps.add(u,c),Io.errs&&Io.errs.push(c))}}}function Un(){var e=t.onerror;t.onerror=function(t,n,r,a,i){return Bn(t,n,r,a,i),Tr(e)?e.apply(this,arguments):void 0},t.onerror._ty=!0}function Yn(){var e=t.onerror;e&&e._ty||Un()}function Gn(){var e=Hr();return e?Un():Ir(t,Lr,function(e){var n,r,a,i,o;(e instanceof t.Event||t.ErrorEvent&&e instanceof t.ErrorEvent)&&(n=e.message||e.error&&(e.error.message||e.error.constructor.name)||"",r=e.lineno||0,a=e.colno||0,i=e.filename||e.error&&e.error.filename||e.target&&e.target.baseURI||"",i==zi.URL&&(i="#"),o=e.error),Bn(n,i,r,a,o)}),Yo.on([zr,Fr,Br,Ur],function(t){Fn()}).on(zr,function(){e&&w(Yn)}),setInterval(Fn,ls,!0)}function Jn(t){t&&!t.composed&&(E(t.contextData,{end:t.end||R()}),t.composed=!0)}function Kn(){Vi.setTimeoutMaxDepth&&Vi.setTimeoutMaxDepth>0&&(gs=Vi.setTimeoutMaxDepth),G(window,"setTimeout",tr),G(window,"clearTimeout",er)}function Wn(t){t.context||(t.context=Ae.createEvent(ro.context,"".concat(t.name,"-").concat(t.id),Ea,t.name))}function Vn(t){ro.context=t.context,ro.globalAsyncStore=t}function Xn(t){var e=t.context&&t.context.canEnd();e&&t.context.end(),ro.globalAsyncStore=null}function $n(t){for(var e=0;null!=t&&5>e;)e+=t.type===Ea?1:0,t=t.parent;return 5>e}function Zn(t){return function(){return U(t).apply(this,arguments)}}function Qn(t,e,n,r){var a=null,i=null;return wr(r)&&r[xi]||null==ro.context?i=Zn(t):$n(ro.context)?(a={id:vs++,name:e,start:R(),delay:n,parentContext:ro.context},Wn(a),a.contextData={type:Ea,id:a.id,cid:a.context.id,name:a.name,start:a.start,delay:a.delay},a.context&&a.context.setData(a.contextData),a.parentContext&&(a.pcid=a.parentContext.id,a.parentContext.updateRemain(1,Ea),a.parentContext.items.push(a.contextData)),i=Y(function(){var e;try{Vn(a)}catch(n){}try{t&&(e=t.apply(this,arguments))}finally{try{a.end=R(),Jn(a),Xn(a)}catch(n){}}return e})):i=Zn(t),{store:a,cb:i}}function tr(t,e){return function(n){var r=Pr.call(arguments,0),a=null;if(!arguments[2]&&Tr(n)){var i=Qn(n,e,r[1],r[2]);i.cb&&(r[0]=i.cb),a=i.store}var o=t.apply(this,r);return a&&(ys[o]=a),o}}function er(t){return function(e){try{var n=ys[e];n&&n.context&&(n.context.removeFromParent(),ys[e]=null)}catch(r){}return t.apply(this,arguments)}}function nr(t){E(t.contextData,{pvid:t.pvid,end:t.end,url:t.url},t.serverData||{},t.pfData||{})}function rr(t){t.context||(t.context=Ae.createEvent(t.parentContext,"".concat(t.src,"-").concat(t.id),Sa))}function ar(t,e,n){function r(){if(a.end=R(),a.sameOrigin){a.sameOrigin=!0,a.url=this.contentDocument.URL;var e=Vt(da,la,this.contentWindow[la]||this.contentDocument.cookie||"");if(e){var n=ae(e);Xt(da,"",-1e3,"/",this.contentDocument),a.serverData=ie(n)}var i=this.contentWindow[Wr],o=this.contentWindow.performance&&this.contentWindow.performance.timing,s={window:this.contentWindow,globalStart:i?i.globalStart:o.navigationStart,agent:E({},i&&i.currentAgent?i.currentAgent:{})};i&&(a.pvid=i.pvid||"");var u;try{u=ge(o,s)}catch(c){u={}}a.pfData=u,a.pfData.le&&(a.end=o.navigationStart+a.pfData.le)}else a.sameOrigin=!1;nr(a),ir(a),t.removeEventListener("load",r)}if(t){n||(n=t.src?_s:bs);var a={id:xs++,src:e,loadType:n,start:R(),parentContext:ro.context};a.sameOrigin=Fe(a.src),rr(a),a.contextData={type:Sa,loadType:a.loadType,id:a.id,cid:a.context.id,src:a.src,start:a.start,sameOrigin:a.sameOrigin},a.context&&a.context.setData(a.contextData),a.parentContext&&(a.pcid=a.parentContext.id,a.parentContext.updateRemain(1,Sa),a.parentContext.items.push(a.contextData)),!a.parentContext&&ro.recordingCpActions&&(a.context.crossPage=!0,ro.cpRemain.iframe++,ro.cpActions.push(a.context)),t.addEventListener("load",r)}}function ir(t){var e=t.context&&t.context.canEnd();e&&t.context.end(),ro.context=null}function or(){function t(t){return function(e){return"IFRAME"===e.nodeName&&e.src&&ar(e,e.src,bs),t.apply(this,arguments)}}G(Node.prototype,"appendChild",t),G(Node.prototype,"insertBefore",t)}function sr(){function t(){var t=arguments[0],e=this;return ar(e,t),r.apply(this,arguments)}if(Object.getOwnPropertyDescriptor&&Object.defineProperty){var e=Object.getOwnPropertyDescriptor(HTMLIFrameElement.prototype,"src"),n=e.get,r=e.set;Object.defineProperty(HTMLIFrameElement.prototype,"src",{get:function(){return n.apply(this,arguments)},set:t,enumerable:!0,configurable:!0})}}function ur(){or(),sr()}function cr(t){To(ri,Er(t))}function fr(){wo(ri)}function lr(t){var e=Es++,n=t.url||"",r=R(),a=Ae.createEvent(ro.context,"".concat(n,"-").concat(e),Ta,t.subType||ai),i={type:Ta,subType:a.subType,id:e,cid:a.id,url:n,start:r};a&&a.setData(i);var o;return a.parent&&(a.parent.type===_a?An(ro.globalAsyncStore,ro.globalAjaxContext):a.parent.type===Ea&&Jn(ro.globalAsyncStore),o=a.collectCrossPageData(),t.delayStorage||cr(o),a.clear(),a=null),{storageData:o,context:a}}function dr(t){return function(){var e=arguments[0],n=lr({url:e,delayStorage:!0}),r=n.storageData,a=n.context;try{var i=t.apply(this,arguments);if(i){if(!r&&a){var o=un(a.data.start);o&&(a.parent=o,r=a.collectCrossPageData(),a.clear(),a=null)}cr(r)}return i}catch(s){}return x(t,[this,arguments])}}function pr(){G(t,"open",dr)}function hr(){function t(t){return{valid:vi===t.target.nodeName&&!t.defaultPrevented&&t.target.href,url:t.target.href,subType:ii}}function e(t){return{valid:gi===t.target.nodeName&&!t.defaultPrevented&&t.target.action,url:t.target.action,subType:oi}}r([fi,li],function(n){document.addEventListener(n,function(r){if(r){var a=n===fi?t(r):e(r);if(a.valid){var i=r.timeStamp?cn(r):un(sn(r));i&&(ro.context=i,lr({subType:a.subType,url:a.url}),ro.context=null)}}},_defineProperty({},ci,!0))})}function mr(){Ir(t,Br,function(t){fr()})}function vr(){pr(),hr(),mr()}function gr(){Vi.disableHookEvent||fn(),Vi.disableHookTimer||Kn(),Vi.disableHookIframe||ur(),Vi.disableHookCrossPage||vr()}function yr(){try{Ir(t,"message",kt)}catch(e){}Wt(Io),gr(),Me(),qn(),Gn(),Io._end=R(),Yt(function(){Bo._end=Io._end}),Kt();var n=Co(ri);n&&(ro.recordingCpActions=!0,ro.cpParent=it(n),wo(ri))}function xr(e){t[Wr]&&t[Wr].inited||e&&(Tr(e)||wr(e))&&(Nt(e),(Vi.key||Vi.appKey)&&(yr(),t[Wr].inited=!0))}function br(){return Hr()?void 0:window[Wr]&&3===window[Wr].mainVersion?window[Wr]:(zo.init=xr,zo)}var _r,Er,Sr=s("String"),Cr=s("Array"),Tr=s("Function"),wr=s("Object"),Ar=s("Number"),Rr=s("Undefined"),Pr=[].slice,Dr='"',Nr=/([\"\\])/g,kr=/\n/g,Or=t.JSON;d();var Ir,jr;t.addEventListener?(Ir=h,jr=m):(Ir=v,jr=g);var qr=t.encodeURIComponent,Hr=function(){return!document.addEventListener},Mr=(t.location.protocol,function(){function t(t){return 0>t?NaN:30>=t?0|Math.random()*(1<<t):53>=t?(0|Math.random()*(1<<30))+(0|Math.random()*(1<<t-30))*(1<<30):NaN}function e(t,e){for(var n=t.toString(16),r=e-n.length,a="0";r>0;r>>>=1,a+=a)1&r&&(n=a+n);return n}return function(n){return n||(n=""),e(t(32),8)+n+e(t(16),4)+n+e(16384|t(12),4)+n+e(32768|t(14),4)+n+e(t(48),12)}}());N.prototype={on:function(t,e){var n=this;return Sr(t)?(n.events[t]||(n.events[t]=[])).push(e):Cr(t)&&r(t,function(t){n.on(t,e)}),n},off:function(t,e){var n=arguments.length,r=this;if(0===n)return r.events={},r;var a=r.events[t];if(!a)return r;if(1===n)return r.events[t]=null,r;for(var i,o=a.length;o--;)if(i=a[o],i===e){a.splice(o,1);break}return r},emit:function(t){var e=[].slice.call(arguments,1),n=this.events[t];return n&&r(n,function(t){return t.apply(this,e)}),this},unshift:function(t,e){var n=this;return(n.events[t]||(n.events[t]=[])).unshift(e),n}};var Lr="error",zr="load",Fr="unload",Br="beforeunload",Ur="pagehide",Yr="readystatechange",Gr="complete",Jr="on",Kr="_ty_rum",Wr="TINGYUN",Vr=2,Xr="__ign",$r="__ty_asyncWrap__",Zr="2",Qr="3",ta="4",ea="5",na="1",ra="2",aa="1",ia="2",oa="3",sa="4",ua="5",ca="body",fa="reqBody",la="TINGYUN_COOKIE_VALUE",da="TINGYUN_DATA",pa="X-Tingyun",ha="X-Tingyun-Data",ma="TY_BASE64",va="__TINGYUN",ga="ty_",ya=64512,xa=6e4,ba="event",_a="ajax",Ea="timer",Sa="iframe",Ca="pf",Ta="crossPage",wa="e",Aa="a",Ra="t",Pa="i",Da="p",Na="c",ka="finish",Oa="pending",Ia="finish",ja="timeout",qa="fetchStart",Ha="requestStart",Ma="responseStart",La="responseEnd",za="domContentLoadedEventStart",Fa="domContentLoadedEventEnd",Ba="domInteractive",Ua="domComplete",Ya="loadEventStart",Ga="loadEventEnd",Ja="unloadEventStart",Ka="unloadEventEnd",Wa="domainLookupStart",Va="domainLookupEnd",Xa="redirectStart",$a="redirectEnd",Za="connectStart",Qa="connectEnd",ti="secureConnectionStart",ei=5,ni=5,ri="__ty_crs_page_events",ai="window_open",ii="a_link",oi="form_submit",si=3e3,ui="__ty_event_patch_tag",ci="__ty_event_patch_disable",fi="click",li="submit",di="addEventListener",pi="onProperty",hi="inline",mi="IMG",vi="A",gi="FORM",yi=3,xi="__ty_ignore",bi="__ty_xhr_hooked",_i=200,Ei="TY_USER_ID",Si="TY_SESSION_N_ID",Ci="TY_DEVICE_N_ID",Ti=18e5,wi="|",Ai="__TY_SPE_STORE",Ri=6e4,Pi=6e5,Di="auto",Ni="defined",ki=200,Oi="success",Ii="fail",ji="TY_path_gather",qi="EagleEye-TraceID",Hi="__TY_ELEMENT_CB",Mi="__TY_CB_COUNTER",Li=t.Error,zi=t.document,Fi=t.XMLHttpRequest,Bi=t.location,Ui=t.navigator,Yi=t.HTMLElement,Gi={isGather:!1},Ji={fp_threshold:2e3,fs_threshold:4e3,dr_threshold:4e3},Ki={server:{},appConf:{pvid:Mr(),baseInfo:{}}},Wi=Ki.appConf,Vi=Ki.server,Xi={pvid:Wi.pvid,ref:zi.URL,referrer:zi.referrer,v:"3.1.11-jinmao.2",av:"3.1.11-jinmao.2"},$i=Yi?function(t){return t instanceof Yi}:function(t){t&&"object"===_typeof(t)&&1===t.nodeType&&Sr(t.nodeName)},Zi="{0} not support",Qi="illegal argument",to={},eo={},no={},ro={context:null,uniqueId:0,actions:[],opt_custom_param:{},unAssignedEvents:[],cpActions:[],recordingCpActions:!1,cpParent:null,cpRemain:{ajax:0,iframe:0},tryEndCpActionsFailed:!1,globalAsyncStore:null,globalAjaxContext:null,pfSent:!1},ao=[],io=[],oo={},so="undefined"!=typeof t.console,uo=1,co=2,fo=4,lo=8,po=L.prototype;po.create=po.before=po.after=po.error=null;var ho;K.prototype={createContext:function(){return Object.create?Object.create(this.active):J(this.active)},get:function(t){return this.active?this.active[t]:void 0},set:function(t,e){return this.active?this.active[t]=e:void 0},enter:function(t){if(!t)throw new Li("context required!");this._set.push(this.active),this.active=t},exit:function(t){if(!t)throw new Li("context required!");if(t===this.active)return void(this.active=this._set.pop());var e=this._set.lastIndexOf?this._set.lastIndexOf(t):T(this._set,t);if(0>e)throw new Li("context not currently entered!");this._set.splice(e,1)},bind:function(t,e){e||(e=this.active?this.active:this.createContext());var n=this;return function(){n.enter(e);try{return t.apply(this,arguments)}catch(r){try{var a="moduleId";r[a]=e[a]}catch(i){}throw r}finally{n.exit(e)}}}};var mo,vo,go,yo=!1,mo=V(),xo=function(){var e=t.navigator.standalone,n=t.navigator.userAgent.toLowerCase(),r=/safari/.test(n),a=/iphone|ipod|ipad/.test(n);return a&&!e&&!r},bo="POST",_o=$,Eo=!1;et.prototype.add=function(t){this.queue.length>=this.size||(this.queue.push(t),this.running||(this.running=!0,this.run()))},et.prototype.run=function(){var t=this,e=function(){t.queue.length>0?t.run():t.running=!1};this.handler(this.queue.shift(),e)},et.prototype.handler=function(t,e){vo(t,P(function(){e()}))},vo=t.XDomainRequest?Z:Q,Ui.sendBeacon&&(Eo=!0);var So=xo();So&&(_o=vo=Q,Eo=!1),vo||(vo=function(t,e){e()},Eo=!1),Ir(t,Br,function(t){Eo&&(vo=tt)});var Co,To,wo;Co=function(e){try{return t.localStorage.getItem(e)}catch(n){}},To=function(e,n){try{t.localStorage.setItem(e,n)}catch(r){}return n},wo=function(e){try{t.localStorage.removeItem(e)}catch(n){}};var Ao={},Ro=t.screen;Ro&&(Ao.sh=Ro.height,Ao.sw=Ro.width);var Po,Do=t.location.protocol,No="http:",ko=["id","key","appKey","token"],Oo=Ot.prototype;Oo.start=function(){if(!Vi.key)return j("missing config, agent disabled!"),!1;var e=t[Wr];return e?(j("already loaded!"),!1):this},E(Oo,N.prototype);var Io=new Ot;Io.on("send",function(t,e,n,r,a){St(),a||(a=Tt(t,e)),a+="__r="+R(),r=r||A,at({url:a,data:n,callback:r})});var jo=It.prototype;jo.fail=jo.end=jo.store=A;var qo=jt.prototype;qo.end=qo.finish=qo.fail=null,qo.send=function(t){this.sent=!0;var e=this.getEventData(t),n=this.timeout||Pi;e.duration<n&&Io.emit("send","/spe",null,e,A)},qo.getEventData=function(t){var e=this,n=t.event&&t.event.xhrs||[];return r(n,function(t){t.startSpeOffset=t.start-e.s}),{key:e.key,start:e.s,duration:e.e-e.s,status:e.status,type:e.type,xhrs:n}},qo.refreshEventAndStore=function(t){this.finish();var e=this.getEventData(t);To(Ai,Er(e))};var Ho={},Mo={},Lo={host:"cshst",url:"csurl"},zo={mainVersion:yi,version:"3.1.11-jinmao.2",key:Vi.key,pvid:Wi.pvid,config:zt,DIAGNOSE_HREF:Vr,diagnose:M,createEvent:Mt,logFirstScreen:Ft,addExcludedDomain:Bt,globalStart:e,currentAgent:Io,mark:Ut,wrapVueRouter:Lt,endSession:_t,setUid:yt,createAutoEvent:Mt,endStoreEvent:Ht},Fo=Wi.debuggable,Bo={start:e,e:{},an:{count:0},visible:[]},Uo=0;!function(){if(Wi.debuggable){var t,e,n="visibilitychange";Rr(zi.hidden)?Rr(zi.msHidden)?Rr(zi.webkitHidden)||(t="webkitHidden",e="webkit"+n):(t="msHidden",e="ms"+n):(t="hidden",e=n),Rr(zi.addEventListener)||Rr(zi[t])||Ir(zi,e,Gt(function(){Bo.visible.push([zi[t],R()])}))}}();var Yo=new N,Go={},Jo=t,Ko=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=function(t){for(var e={},n=0,r=t.length;r>n;n++)e[t.charAt(n)]=n;return e}(t),n=String.fromCharCode,r=function(t){if(t.length<2){var e=t.charCodeAt(0);return 128>e?t:2048>e?n(192|e>>>6)+n(128|63&e):n(224|e>>>12&15)+n(128|e>>>6&63)+n(128|63&e)}var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return n(240|e>>>18&7)+n(128|e>>>12&63)+n(128|e>>>6&63)+n(128|63&e)},a=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,i=function(t){return t.replace(a,r)},o=function(e){var n=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),a=[t.charAt(r>>>18),t.charAt(r>>>12&63),n>=2?"=":t.charAt(r>>>6&63),n>=1?"=":t.charAt(63&r)];return a.join("")},s=Jo.btoa?function(t){return Jo.btoa(t)}:function(t){return t.replace(/[\s\S]{1,3}/g,o)},u=function(t){var e="[object Uint8Array]"===Object.prototype.toString.call(t);return e?t.toString("base64"):s(i(String(t)))},c=function(t,e){return e?u(String(t)).replace(/[+\/]/g,function(t){return"+"==t?"-":"_"}).replace(/=/g,""):u(t)},f=function(t){return c(t,!0)},l=new RegExp(["[\xc0-\xdf][\x80-\xbf]","[\xe0-\xef][\x80-\xbf]{2}","[\xf0-\xf7][\x80-\xbf]{3}"].join("|"),"g"),d=function(t){switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return n((r>>>10)+55296)+n((1023&r)+56320);case 3:return n((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return n((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},p=function(t){return t.replace(l,d)},h=function(t){var r=t.length,a=r%4,i=(r>0?e[t.charAt(0)]<<18:0)|(r>1?e[t.charAt(1)]<<12:0)|(r>2?e[t.charAt(2)]<<6:0)|(r>3?e[t.charAt(3)]:0),o=[n(i>>>16),n(i>>>8&255),n(255&i)];return o.length-=[0,0,2,1][a],o.join("")},m=Jo.atob?function(t){return Jo.atob(t)}:function(t){return t.replace(/\S{1,4}/g,h)},v=function(t){return m(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},g=function(t){return p(m(t))},y=function(t){return g(String(t).replace(/[-_]/g,function(t){return"-"==t?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};return{atob:v,btoa:s,utob:i,encode:c,encodeURI:f,btou:p,decode:y}}(),Wo=function(){try{var e=Mr();return t.localStorage.setItem(e,e),t.localStorage.removeItem(e),!0}catch(n){return!1}}(),Vo={};Vo.localStorage=Wo,function(){function e(){var e,f,l=zi.documentElement;l.appendChild(u),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=a=s=!1,r=o=!0,t.getComputedStyle&&(f=t.getComputedStyle(c),n="1%"!==(f||{}).top,s="2px"===(f||{}).marginLeft,a="4px"===(f||{width:"4px"}).width,c.style.marginRight="50%",r="4px"===(f||{marginRight:"4px"}).marginRight,e=c.appendChild(zi.createElement("div")),e.style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",o=!parseFloat((t.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",i=0===c.getClientRects().length,i&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",e=c.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",i=0===e[0].offsetHeight,i&&(e[0].style.display="",e[1].style.display="none",i=0===e[0].offsetHeight)),l.removeChild(u)}var n,r,a,i,o,s,u=(zi.documentElement,zi.createElement("div")),c=zi.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",Vo.opacity="0.5"===c.style.opacity,Vo.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",Vo.clearCloneStyle="content-box"===c.style.backgroundClip,u=zi.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",u.appendChild(c),Vo.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,Vo.reliableHiddenOffsets=function(){return null==n&&e(),i})}();var Xo=[_a,Ea,Sa];Ae.prototype.end=function(t){if(this.closed)return void(this.cleared||console.warn("Current context is already closed"));if(t&&(this.actionCount.ajax+=t.actionCount.ajax,this.actionCount.iframe+=t.actionCount.iframe,Te(this.items,t),this.updateRemain(-1,t.type)),this.isNoRemain()||this.isTimeout)if(this.e=R(),this.closed=!0,this.i&&clearTimeout(this.i),this.e-this.s>Vi.event_timeout&&(this.isTimeout=!0),this.setState(this.isTimeout?ja:Ia),this.data&&(this.data.state=this.state),this.parent)this.parent.end(this);else{var e;this.isTimeout&&(this.isRemainMeaningfulAction()||this.isMeaningfulAction())?e=this.composeTimeoutActionData():this.isMeaningfulAction()&&(e=this.composeActionData()),e&&(!this.crossPage||e.type!==_a&&e.type!==Sa?Ee(e):(ro.cpRemain[e.type]--,I()&&ro.tryEndCpActionsFailed&&Se())),ro.context=null}},Ae.prototype.isNoRemain=function(t){var e=!0;return r(this.remain,function(n){var r=n.current<=0&&(t?!0:n.children<=0);return r?void 0:(e=!1,!1)}),e},Ae.prototype.clear=function(){this.closed=!0,this.cleared=!0,this.i&&clearTimeout(this.i)},Ae.prototype.isMeaningfulAction=function(){return this.actionCount.ajax>0||this.actionCount.iframe>0},Ae.prototype.isRemainMeaningfulAction=function(){return this.remain.ajax.current>0||this.remain.ajax.children>0||this.remain.iframe.current>0||this.remain.iframe.children>0},Ae.prototype.timeout=function(){this.isTimeout=!0,this.setState(ja),this.end(null,!0)},Ae.prototype.setData=function(t){this.data=t},Ae.prototype.composeActionData=function(){return{type:this.type,subType:this.subType,start:this.s,end:this.e,duration:this.e-this.s>0?this.e-this.s:0,data:E({},this.data||{},{items:(this.items||[]).slice()})}},Ae.prototype.composeTimeoutActionData=function(){return this.collectActionDataFromTop(),this.composeActionData()},Ae.prototype.collectActionDataFromTop=function(t){null==t&&(t=this),we(t.items,t.children)},Ae.prototype.collectCrossPageData=function(t){if(t||(t=[]),this.crossPage=!0,this.data&&(this.data.crossPage=!0),t.unshift(this.data),this.parent)return this.parent.collectCrossPageData(t);var e={type:this.type,subType:this.subType,start:this.s};return(this.isNoRemain()||1===this.children.length)&&this.clear(),{action:e,data:t,url:Tt("/action"),commonActionInfo:ye()}},Ae.prototype.canEnd=function(){return!this.closed&&this.isNoRemain(!0)},Ae.prototype.updateRemain=function(t,e){if(this.remain[e]){e||(e=_a);var n=t||0;this.remain[e].current=this.remain[e].current+n;for(var r=this.parent;r;)r.remain[e].children=r.remain[e].children+n,r=r.parent}},Ae.prototype.setState=function(t){return this.stateChanged?!1:(this.state=t,this.stateChanged=!0,!0)},Ae.prototype.current=function(){return ro.context},Ae.prototype.removeFromParent=function(){if(this.parent){var t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1);var e=this.parent.items.indexOf(this.data);e>-1&&this.parent.items.splice(e,1),this.parent.updateRemain(-1,this.type),this.parent.end()}},Ae.createEvent=function(t,e,n,r,a,i){return new Ae(t,e,n||"event",r||null,a,i)},Ae.buildImmediateAction=function(t,e,n,r,a){var i=E({type:t,subType:e,state:ka,data:n},a||{});return i.data&&(i.data.state=i.state),r||Ee(i),i};var $o=0,Zo=/(msie|trident)/i.test(Ui.userAgent),Qo=zi.createElement("a"),ts=Le(Bi.href),es=[fi,li],ns=1,rs=2,as=[fi,li],is=_i,os=[];Ze.regex=/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i;var ss="onload",us=0,cs={error:990,abort:905,timeout:903},fs=Jr+Yr,ls=1e4,ds=0;Hn.prototype={add:function(t,e){this.len>this.limit||this.get(t)||(this.c[t]=e,this.len++)},get:function(t){return this.c[t]},reset:function(){this.c={},this.len=0}};var ps=new Hn(100),hs={},ms={};zn.prototype={increase:function(){this.recordFileName(),this.count++},recordFileName:function(){var t=this.filename||"_";this.fep+=ms[t]?0:1,ms[t]=!0},fix:function(){var t=this,e=t.stack;if(e&&Sr(e)){e=e.split(/\n/);var n=[];r(e,function(t,e){-1==t.indexOf($r)&&n.push(t)}),t.stack=n.join("\n")}},toObject:function(){var t=this;return{o:t.time,e:t.msg,l:t.lineno,c:t.colno,r:t.filename,ec:t.count,s:t.stack,m:t.module,ep:t.ep,fep:t.fep}}};var vs=0,gs=ei,ys={},xs=0,bs="load",_s="reload",Es=0,Ss=br();return Ss}(window,+new Date);window.TINGYUN && window.TINGYUN.init && window.TINGYUN.init(function(ty_rum){ty_rum.server = {id:'4gA5HRiCw8g',bizId_rule : [],opt_param_rule : [],x_server_switch : true,request_param_keys: [],ignore_err : false,filter_robot : true,beacon:'apm.chinajinmao.cn:8589',beacon_err:'apm.chinajinmao.cn:8589',key:'Ojgg79j_w6Y',token:'5768e5a6b11a42118905ad892a3ecc79',trace_threshold:7000,fp_threshold:2000,fs_threshold:4000,dr_threshold:4000};});/*TY_AGENT_END*/
\ No newline at end of file
/*AGENT_VERSION=3.1.11-jinmao.1*/"use strict";function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}window.TINGYUN=function(t,e){if(/(MSIE [0-8].\d+)/.test(navigator.userAgent)){return ;}function n(t){return JSON.parse(t)}function r(t){return JSON.stringify(t)}function a(t){var e=!!t&&"length"in t&&t.length,n=_typeof(t);return"function"===n?!1:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function i(t,e,n){var r,i=0;if(t)if(a(t))for(r=t.length;r>i&&e.call(t[i],t[i],i)!==!1;i++);else for(i in t)if((n||Object.prototype.hasOwnProperty.call(t,i))&&e.call(t[i],t[i],i)===!1)break;return t}function o(t){return function(e){return"Array"===t&&Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object "+t+"]"}}function s(t){return new Function("return "+t)()}function u(t){switch(_typeof(t)){case"object":if(!t)return null;if(t instanceof Array){var e=Tr.call(t);return i(e,function(t,n){e[n]=u(t)}),"["+e.join(",")+"]"}if(t instanceof Date)return t.getTime().toString();var n="";return i(t,function(t,e){_r(t)||(n+=u(e)+":"+u(t)+",")}),n&&(n=n.substr(0,n.length-1)),"{"+n+"}";case"string":return wr+t.replace(Ar,"\\$1").replace(Rr,"\\n")+wr;case"number":return isNaN(t)?null:t;case"boolean":return t;case"function":return u(t.toString());case"undefined":default:return'"undefined"'}}function c(t){return t&&xr(t)?gr(t):t}function f(t,e,n,r){return t.addEventListener(e,n,r)}function l(t,e,n){return t.removeEventListener(e,n)}function d(t,e,n){return t.attachEvent("on"+e,n)}function p(t,e,n){return t.detachEvent("on"+e,n)}function h(t,e,n,r){var a=function i(){return Nr(t,e,i),n.apply(this,arguments)};return Dr(t,e,a,r)}function m(t,e){return Function.prototype.apply.apply(t,e)}function v(t,e){return function(){t.apply(e,arguments)}}function g(t){return kr?kr(t):t}function y(t){var e=arguments.length;if(2>e||!t)return t;var n=Tr.call(arguments,1);return i(n,function(e){i(e,function(e,n){t[n]=e})}),t}function x(t,e){return t?e?t.replace(/\{(\w+.?\w+)\}/g,function(t,n){return e[n]||""}).replace(/\{(\d+)\}/g,function(t,n){return e[n]||""}):t:""}function b(t,e,n){var r;if(null==t)return-1;var a=Object(t),i=a.length>>>0;if(0===i)return-1;var o=+n||0;if(Math.abs(o)===1/0&&(o=0),o>=i)return-1;for(r=Math.max(o>=0?o:i-Math.abs(o),0);i>r;){if(r in a&&a[r]===e)return r;r++}return-1}function _(t,e){var n=null==t?0:t.length;if(!n)return-1;for(var r=n;r--;)if(t[r]===e)return r;return r}function E(t){return setTimeout(t,0,{__ty_ignore:!0})}function S(){}function C(){var t=window&&window.performance;return t&&t.timing&&t.timing.navigationStart&&t.now?Math.round(t.timing.navigationStart+t.now()):+new Date}function T(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function w(e){return e?xr(e)?e.length:t.ArrayBuffer&&e instanceof ArrayBuffer?e.byteLength:t.Blob&&e instanceof Blob?e.size:e.length?e.length:0:0}function A(){this.events={}}function R(t,e){return setTimeout(t,e||0,{__ty_ignore:!0})}function P(t,e){Zi[t]=e}function D(){return 0===Qi.cpRemain.ajax&&0===Qi.cpRemain.iframe}function N(t){O(t,to)}function k(t){O(t,eo)}function O(t,e){var n="ok";return t?void e.push(t):n=e.length?e.join("\n"):n}function I(t){function e(t,e,r){var a=r||"log",i=n[t]||(n[t]={});i[a]=i[a]||"",i[a]+=e}var n={},r=N();if(e("Status",r,"ok"!==r),e("Debug",k()),i(no,function(t,n){e("Timeline",n+": "+t.toString())}),!t&&ro)console.log("[TingYun Agent Diagnosis]\n"),i(n,function(t,e){var n=console[e];i(n,function(t,e){console[e](t)})});else{if(t!==Gr)return yr(n);Mi.href=Mi.href+"#"+yr(n)}}function j(t,e){this.flags=0,_r(t.create)&&(this.create=t.create,this.flags|=ao),_r(t.before)&&(this.before=t.before,this.flags|=io),_r(t.after)&&(this.after=t.after,this.flags|=oo),_r(t.error)&&(this.error=t.error,this.flags|=so),this.data=e}function q(t,e){if(!co){if(!Er(t)||!t)throw new TypeError("callbacks arguments must be an object");return co=new j(t,e)}}function H(t){var e=co.data;if(0!==(co.flags&ao)){var n=co.create(co.data);void 0!==n&&(e=n)}return function r(){0!==(co.flags&io)&&co.before(this,e);var n=r;n._&&(n._=1);try{var a=t.apply(this,arguments)}catch(i){throw 0!==(co.flags&so)&&co.error(e,i),i}return 0!==(co.flags&oo)&&co.after(this,e),a}}function M(t){return function(){var e;try{e=t.apply(this,arguments)}finally{Qi.context=null}return e}}function L(t){return!co||co.flags<=0?t:H(t)}function z(t){return M(L(t))}function F(t,e,n){if(t&&n&&_r(n)){var r=t[e];if(!r||!r._wrapped){var a=n(r,e);return a&&(a._wrapped=!0),t[e]=a,a}}}function U(t){function e(){}return e.prototype=t,new e}function B(){this.id=null,this.active=null,this._set=[]}function Y(){var t=new B;return t.id=q({create:function(){return t.active},before:function(e,n){n&&t.enter(n)},after:function(e,n){n&&t.exit(n)},error:function(e,n){if(e){try{var r="moduleId";n[r]=e[r]}catch(a){}t.exit(e)}}}),t}function G(){return ho||(fo=Y(),ho=!0),fo}function J(t){return xr(t)||(t=yr(t)),t}function K(t,e){e=e||S;var n=new Image;Dr(n,zr,function(){("loaded"==n.readyState||4==n.readyState)&&e(null)},!1),Dr(n,qr,function(){e(null)},!1),Dr(n,jr,function(){e(jr)},!1),n.src=t}function W(t,e){var n=t.url,r=t.data,a=(t.header,t.callback),i=new XDomainRequest;i.open(vo,n),i.onload=function(){a(null,i.responseText),e()},i.onerror=function(t){a(t),e()},i.send(J(r))}function V(t,e){var n=t.url,r=t.data,a=t.header,i=t.callback,o=T(i),s=new Hi;s[Jr]=!0,s.overrideMimeType&&s.overrideMimeType("text/html"),s.onreadystatechange=function(){4==s.readyState&&200==s.status&&(o(null,s.responseText),e())},s.onerror=function(){o(),e()};try{s.open(vo,n,!0);for(var u in a)s.setRequestHeader(u,a[u]);s.send(J(r))}catch(c){e()}}function X(t,e){var n=t.url,r=t.data,a=(t.header,t.callback),i=Li.sendBeacon(n,J(r));i&&(a&&a(),e())}function $(t){this.size=t||100,this.queue=[],this.running=!1}function Z(){go=lo=V,yo=!1}function Q(t){po=new $(t)}function tt(t){po.add(t)}function et(t){try{return c(t)}catch(e){N(e&&e.message)}return null}function nt(t){var e=t||new Date,n=e.getFullYear()+"-",r=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",a=e.getDate()+" ";return n+r+a}function rt(t,e,n){if(null==t[e]||br(t[e]))br(t[e])?t[e].push(n):t[e]=n;else{var r=t[e];t[e]=[r],t[e].push(n)}}function at(t){return t.send_protocol?t.send_protocol:wo!==Ao&&/^https/i.test(t&&t.protocol||wo)?"https:":Ao}function it(t){var e={};if(t=t||Mi.href,!xr(t))return e;var n=t.indexOf("?");return n>=0&&(t=t.substring(n+1)),t?e=ut(t):e}function ot(t){return t&&t.indexOf("?")&&t.lastIndexOf("=")&&t.lastIndexOf("=")>t.indexOf("?")?it(t):{}}function st(t){var e={};return t=t||"",xr(t)&&t?e=ut(t):e}function ut(t){var e={};return t&&i(t.split("&"),function(t){var n=t.split("="),r=ct(n[0]),a=ct(n[1]);if(xr(a)){var i=et(a);null!=i&&(a=i)}r&&null!=a&&rt(e,r,a)}),e}function ct(t){try{return decodeURIComponent(t)}catch(e){}return null}function ft(t,e,n){var r=null;return t&&e&&(r=To+"//"+t+e,n&&(r+="?",i(n,function(t,e){var n=[g(e),"=",g(t),"&"];r+=n.join("")}))),r}function lt(t){To=at(t)}function dt(){var t=bo(bi);return t?t:_o(bi,Ir())}function pt(){return bo(yi)}function ht(t){if(null!=t){var e=pt();null!=e&&t!==e&&gt(),_o(yi,t)}}function mt(){var t=bo(xi);return t?t.split(Ei):null}function vt(t){t&&3===t.length&&_o(xi,t.join(Ei))}function gt(){var t=yt();Tt(t)}function yt(){var t=C(),e=[Ir(),t,t];return vt(e),e}function xt(){var t=C(),e=mt();bt(e)?gt():(e[2]=t,vt(e))}function bt(t){return!t||3!==t.length||C()-+t[2]>_i}function _t(t,e){return ft(Gi.beacon,t,Et(e))}function Et(t){var e=wt();return y({},Ji,e,t||{},Yi.baseInfo,So||{})}function St(t){return t in Gi?Gi[t]:!0}function Ct(t){var e={};return i(t,function(t){t&&b(e[t.type]||[],t.key)<0&&(e[t.type]=e[t.type]||[]).push(t.key)}),e}function Tt(t){t[0]&&(Ji.sid=t[0]),t[1]&&(Ji.__s=+t[1])}function wt(){var t={did:dt()},e=pt();return e&&(t.uid=e),t}function At(e){var n={};if(_r(e)){var r={};e(r),n=r.server}else n=e;t[da]||(t[da]={hook:{}}),y(Bi.server,Ui,n||{},t[da].config||{}),y(Bi.appConf,{bizIdsRules:Ct(Gi.bizId_rule),customParamsRules:Ct(Gi.opt_param_rule),requestParamKeys:Ct(Gi.request_param_keys),corsDomains:Gi.cors_domains||[],optCustomParamRules:Ct(Gi.opt_custom_param_rule),ignoreNoFilePropError:St("ignore_err"),debuggable:St("debug"),sessionTimeout:Gi.session_timeout||_i}),i(Ro,function(e){Gi[e]&&(Yi.baseInfo[e]=Gi[e],t[Yr][e]=Gi[e])}),y(Ji,wt());var a=mt();bt(a)&&(a=yt()),Tt(a),Bi.server.event_timeout||(Bi.server.event_timeout=ma),Gi.appKey&&Z(),Gi.apm_arms&&(Gi.apm_headers||(Gi.apm_headers=[]),Gi.apm_headers.indexOf(ki)<0&&Gi.apm_headers.push(ki)),lt(Gi),Q(Gi.req_capacity)}function Rt(e){try{var n;if(!e||!e.data||0!==e.data.indexOf("_TINGYUN"))return;if(n=e.data.replace("_TINGYUN",""),et(n)){var r=et(n);if("gather"===r.type&&"APM"===r.fromJS&&!t[Ni]){Fi.isGather=!0;var a=e.origin,i=qi.getElementsByTagName("head")[0],o=qi.createElement("script");o.type="text/javascript",o.src=a+"/assets/lib/gather/path-gather.min.js?version="+nt(new Date),i.appendChild(o)}}}catch(s){}}function Pt(){var t=this;t.xhrs={},t.errs=[],A.call(t)}function Dt(t){ro&&console.warn(t||"Event key required!")}function Nt(t){t=t||{},this.key=t.key,this.type=t.type||Ai;var e=t.timeout||Ti;this.timeout=e,this.status=1,this.remain=0,this.xhrs=[],this.s=C(),this.e=null,this.called=this.sent=this.stored=!1}function kt(t){t=t||{};var e=t.key;if(!e)return new Dt;if(Oo[e])return new Dt("event "+e+" is executing");Oo[e]=!0;var n=fo.createContext();fo.enter(n);var r=new Nt(t);return r._end=function(){var t=this;t.sent||t.stored||0!==t.remain||!t.called?t.stored&&this.refreshEventAndStore(n):t.finish().send(n)},r.end=function(t,e){var r=this;return r.called?void(ro&&console.warn("Event "+this.key+"has ended or failed!")):(r.called=!0,fo.exit(n),r.status=null!=t?t:1,void(e||r._end()))},r.finish=function(t){var e=this;return e.e=C(),e.i&&clearTimeout(e.i),delete Oo[e.key],e},r.fail=function(){this.end(0)},r.store=function(){this.end(null,!0),this.refreshEventAndStore(n),this.stored=!0},r.i=r.timeout?R(v(r.fail,r),r.timeout):null,fo.set("event",r),r}function Ot(e){if(t.TINGYUN&&t.TINGYUN.inited){var n=bo(Si),r=et(n);if(r&&r.start&&(e=e||{},!e.key||r.key===e.key)){var a=e.timeout;if(a||(a=Ci),r.duration=C()-r.start,r.duration>a)return void Eo(Si);var i=t.performance.timing;if(i.navigationStart&&(i.loadEventEnd||i.loadEventStart)&&i.navigationStart-r.start>=0){var o={req:"get "+document.URL,status:200,type:"PF",start:i.navigationStart-r.start,du:(i.loadEventEnd||i.loadEventStart)-i.navigationStart};r.xhrs||(r.xhrs=[]),r.xhrs.push(o)}var s=1;e.status&&(s=e.status===Pi?1:0),r.status=s,Eo(Si),Do.emit("send","/spe",null,r,S)}}}function It(e){if(!t.TINGYUN||!t.TINGYUN.inited)return new Dt("Agent is not inited!");e=y(e||{},{type:wi});var n=kt(e);return e.autoEnd&&R(function(){e.status&&e.status===Di?n.fail():n.end()},e.endDelay||Ri),n}function jt(e,n){t.TINGYUN&&t.TINGYUN.inited&&(Er(n)||(n={}),e&&e.beforeEach&&e.afterEach&&(e.beforeEach(function(t,e,r){var a=t.path;if(!Io[a]||Io[a].e){var i={key:a};n&&n.timeout&&(i.timeout=n.timeout),Io[a]=It(i)}r()}),e.afterEach(function(t,e){var r=t.path;R(function(){var t=Io[r];!t||t.called||t.e||(n&&n.status===Di?t.fail():t.end())},n.endDelay||Ri)})))}function qt(t,e){var n;if(Er(t))n=t;else{if(!xr(t)||void 0===e)throw new ji(Vi);n={},n[t]=e}return i(n,function(t,e){e in jo?Xi[jo[e]]=t:Xi[e]=t}),this}function Ht(t){if(t){var e=Xi.firstScreenResources=Xi.firstScreenResources||[];br(t)||(t=[t]),i(t,function(t){if(xr(t))e.push(t);else if(Ki(t)){var n=t.src||t.href;n&&e.push(n)}})}}function Mt(t){br(t)||(t=[t]),i(t,function(t){if(t){if(!(t instanceof RegExp))throw new ji("parameter's type requires RegExp");(Yi.domains||(Yi.domains=[])).push(t)}})}function Lt(t,e){if(t){var n=t.split("_"),r=n[0],a=n[1];"ty"===r&&a&&P(a,{timestamp:C(),data:e})}}function zt(t){Ho&&t()}function Ft(t){return function(){Ho&&t.apply(this,arguments)}}function Ut(){Ho=!1}function Bt(){if(Object.defineProperty){var e=t[Br];e&&Object.defineProperty(t,Br,{get:function(){return Lo++>0&&t.console&&console.warn("window.%s is deprecated, use window.%s instead.",Br,Yr),e}})}}function Yt(e){zo.on(qr,T(function(){n();var t=C();zt(function(){Mo.load=t}),e.loadEventEnd=t})),i([qr,Hr,Mr,Lr],function(e){Dr(t,e,function(t){zt(function(){(Mo.e[e]||(Mo.e[e]=[])).push(C())}),zo.emit(e,t)})});var n=T(function(){var t=C();zt(function(){Mo.end=t}),e.domContentLoadedEventStart=t,qi.querySelectorAll&&($i.resources=$i.resources||[],i(qi.querySelectorAll("head>link,head>script"),function(t){var e;"LINK"==t.tagName?e=t.href:"SCRIPT"!=t.tagName||t.defer||t.async||(e=t.src),e&&$i.resources.push(e)}))});Dr(qi,"DOMContentLoaded",n),Dr(qi,zr,function(t){qi.readyState===Fr&&n()});var r=T(function(){e.touch=C()});i(["scroll","click","keypress"],function(t){h(qi,t,r)});var a=t.requestAnimationFrame;!a||a.toString().indexOf("[native code]")<0||F(t,"requestAnimationFrame",function(n){return function(){if(!e.firstPaint){var r=C();zt(function(){Mo.an.count++,Mo.an.t=r}),e.firstPaint=r,t.requestAnimationFrame=n}return n.apply(this,arguments)}})}function Gt(t,e,n){n||(n=e&&window[e]||qi.cookie||"");var r=n.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?r[3]:null}function Jt(t,e,n,r,a){var i=t+"="+e;if(n){var o=new Date;o.setTime(o.getTime()+1e3*n),i+=";expires="+o.toGMTString()}r&&(i+=";path="+r),(a||qi).cookie=i}function Kt(t,e){var n;return t&&(n=!0,i(t,function(){return n=!1},e)),!!n}function Wt(t){var e={},n={},r={},a={},i=it(t);return i&&(e=Vt(i,Yi.bizIdsRules[Wr],Yi.bizIdsRules[$r]),n=Vt(i,Yi.customParamsRules[Wr],Yi.customParamsRules[$r]),r=Vt(i,Yi.requestParamKeys[Zr],Yi.requestParamKeys[Qr]),a[ta]=Qt(i,Yi.optCustomParamRules[ta],!0)),{bizIdParams:e,params:n,requestParams:r,optCustomParams:Zt(a)}}function Vt(t,e,n){var r={};return t&&e&&e.length&&e.length>0&&i(e,function(e){var n=t[e];null!=n&&rt(r,e,n)}),t&&n&&n.length&&n.length>0&&i(n,function(e){var n=Xt(oa,e),a=n(t);null!=a&&rt(r,e,a)}),r}function Xt(t,e){var n=t+"."+e;if(Fo[n])return Fo[n];var r=(e||"").split("."),a="";e&&0!==e.indexOf("[")&&(a=".");var o=t;i(r,function(t,e){0===e&&(o+=a),o+=t.indexOf("-")>-1&&0!==t.indexOf("[")&&t.indexOf("]")!==t.length-1?"['"+t+"']":(e>0?".":"")+t});var s;try{s=new Function(t,"try{return "+o+";}catch(e){}return null;")}catch(u){s=S}return Fo[n]=s,s}function $t(t){return t+="",t&&t.substr(0,128)||""}function Zt(t){var e={};return i(t,function(t,n){Kt(t)||(e[n]=t)}),e}function Qt(t,e,n){var r={};return t&&e&&e.length&&e.length>0&&i(e,function(e){var a=t[e];if(null!=a)rt(r,e,a);else if(n){var i=Xt(oa,e),a=i(t);null!=a&&rt(r,e,a)}}),r}function te(t){var e,n;if(t)if(0===t.indexOf(la)){var r=t.substring(la.length);try{n=Bo.decode(r),e=et(n)}catch(a){}}else{try{n=decodeURIComponent(t),e=et(n)}catch(a){}if(!e)try{n=decodeURIComponent(n),e=et(n)}catch(a){N(a&&a.message)}}return e}function ee(t){var e={};return t&&Er(t)&&(e.s_id=t.id,e.s_tname=t.tname,e.s_tid=t.tid,e.s_rid=t.rid,e.s_duration=t.duration,"user"in t&&(e.s_user=t.user),"bid"in t&&(e.s_bid=$t(t.bid)),"ber"in t&&(e.s_ber=t.ber),"isError"in t&&(e.s_isError=t.isError)),e}function ne(t){return t[qa]||t._end}function re(t){return t.loadEventEnd||t._end}function ae(t){var e=0,n=t.timing;return n?t.getEntriesByName&&(e=n.domLoading,i($i.resources,function(r){var a=t.getEntriesByName(r);if(1==a.length){var i=a[0].responseEnd+n.navigationStart;i>e&&(e=i)}}),e-=n.navigationStart):k("fp=0"),zt(function(){Mo._fp=e}),Math.round(e)}function ie(e,n,r,a){var o=r||0,s=Xi.firstScreenResources;if(s&&s.length&&e.getEntriesByName)return i(s,function(t){var n=e.getEntriesByName(t);if(n.length){var r=n[0],a=r.responseEnd;a>o&&(o=a)}}),a.fs_s=1,Math.round(o);var u=qi.createElement("img");if(!u.getBoundingClientRect)return zt(function(){Mo.fs=o}),o;if(e.getEntriesByName){var c=t.innerHeight,f=t.innerWidth,l=[];i(qi.querySelectorAll("img"),function(t){t.src&&oe(se(t),c,f)&&!ue(t)&&l.push(t.src)});var d=(n.loadEventEnd||Do.loadEventEnd)-n.navigationStart;i(l,function(t){var n=e.getEntriesByName(t);if(n.length){var r=n[0],a=r.responseEnd;r.fetchStart<=d&&a>o&&(o=a)}})}return Math.round(o)}function oe(e,n,r){if(e){var a=t.pageYOffset,i=e.top+(0===a?0:a||qi.scrollTop||0)-(qi.clientTop||0);if(i>=n)return!1;var o=e.left;return o>=0&&r>o}return!1}function se(t){return _r(t.getBoundingClientRect)?t.getBoundingClientRect():void 0}function ue(t){return Go.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:ce(t)}function ce(t){for(;t&&1===t.nodeType;){if("none"===fe(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function fe(t){return t.style&&t.style.display}function le(t){var n=e,r=0;return t&&(n=t.navigationStart||n,r=t[qa]||t.domInteractive||t.domLoading||r),r=r||Do._end,r-n}function de(n,r){function a(t){return n[t]>0?n[t]-s:0}var o={},s=r?r.globalStart:e,u=r?r.window:t,c=(r?r.agent:Do)||{};if(n){zt(function(){var t=Mo.t={};i(n,function(e,n){_r(e)||(t[n]=e)},!0)}),s=n.navigationStart,o={ns:s,f:a(ka),qs:a(Oa),rs:a(Ia),re:a(ja),os:a(qa),oe:a(Ha),oi:a(Ma),oc:a(La),ls:a(za),le:a(Fa),tus:a(Ua),tue:a(Ba)};var f=a(Ya),l=a(Ga),d=a(Ja),p=a(Ka),h=a(Wa),m=a(Va);if(o.cs=h,o.ce=m,o.ds=f,o.de=l,(p-d>0||p>0)&&(o.es=d,o.ee=p),0==o.le){var v=re(c);o.ue=v-s}c&&(c._le=o.ue||o.le);var g,y;if(n.msFirstPaint)g=n.msFirstPaint,r||zt(function(){Mo.fp="m_"+g});else if((y=u.chrome)&&u.chrome.loadTimes){var x=u.chrome.loadTimes();x&&x.firstPaintTime&&(g=1e3*x.firstPaintTime),r||zt(function(){Mo.fp="c_"+x.firstPaintTime})}else c&&c.firstPaint&&(g=c.firstPaint,r||zt(function(){Mo.fp=g}));g&&(o.fp=Math.round(g-s),c.fp=o.fp),n[Xa]?o.sl=a(Xa):o.sl=0}else o={t:s,os:ne(c)-s,ls:re(c)-s};return o.je=c&&c.errs&&c.errs.length||0,c&&c.ct&&(o.ct=c.ct-s),c&&c.touch&&(o.fi=c.touch-s),o}function pe(t,e){var n=de(t,e);n.fp?t&&n.fp>n._le&&(n.fp=ae(performance),n.__fp=2):t?(n.fp=ae(performance),n.__fp=1):n.fp=n.__fp=0,n.dr=le(t),t?n.fs=ie(performance,t,n.fp,Do):n.__fs=0;var r={};return n&&(r={f:n.f,fp:n.fp,fs:n.fs,dr:n.dr,le:n.le,je:n.je}),r}function he(){return{optCustomParam:Qi.opt_custom_param}}function me(t){return t||(t=he()),"".concat(Aa).concat(yr(t))}function ve(t,e,n,r){if(t){var a=ge(t);if(a)try{var i=a+yr(t),o=[i];o.unshift(e?e:me());var s=o.join("\n");Do.emit("send","/action",{ps:r||a===wa?1:0},s,function(){t.type===ba&&(Do.xhrs=Do.errs=null)},n)}catch(u){}}}function ge(t){var e="";return t.type===va?e=Ea:t.type===ga?e=Sa:t.type===xa?e=Ta:t.type===ya?e=Ca:t.type===ba&&(e=wa),e}function ye(t){ve(t)}function xe(t){var e=Qi.cpParent;if(e){if(t&&(Qi.recordingCpActions=!1),!D())return void(Qi.tryEndCpActionsFailed=!0);var n=e.action,r=e.data,a=e.commonActionInfo,o=e.url;if(n&&r&&0!==r.length){var s=C(),u=[];i(Qi.cpActions,function(t){t.data&&(t.data.crossPage=!0),u.push(t.data)}),r[r.length-1].items=u;for(var c=r.length-1;c>=0;c--){var f=r[c];f.type===va||f.end||(f.end=s),r[c-1]&&(r[c-1].items=[f]);var l=void 0;l=f.start&&f.end&&f.end-f.start>Gi.event_timeout?Na:f.type===va?r[c+1]&&r[c+1].state||Da:Da,f.state=l}n.data=r[0],n.end=s;var d=me(y(a||{},{cpOptCustomParam:Qi.opt_custom_param,pageParam:Et()}));ve(n,d,o,!0)}}}function be(){var t={};return i(Jo,function(e){t[e]={current:0,children:0}}),t}function _e(t,e,n){i(t,function(t){t.cid===e.id&&(t.items=e.items||[])})}function Ee(t,e){i(t,function(t){i(e,function(e){t.cid===e.id&&(t.state||(t.state=e.state),t.items=e.items||[])})}),i(e,function(t){Ee(t.items,t.children)})}function Se(t,e,n,r,a,i){i=i||{},this.id=++Qi.uniqueId,this.parent=t||null,this.children=[],this.name=e||"",this.type=n||va,this.subType=this.type===va?r||"click":r,this.items=[],this.remain=be(),this.s=i.s||C(),this.e=null,this.data=a,this.state=Pa,this.crossPage=i.crossPage||!1;var o=this;null==this.parent&&(this.i=R(function(){o.timeout()},Gi.event_timeout)),this.closed=!1,this.isTimeout=!1,this.cleared=!1,this.stateChanged=!1,this.actionCount={ajax:n===ga?1:0,iframe:n===xa?1:0},null!=this.parent&&this.parent.children.push(this)}function Ce(t,e){if(Te()){var n={rm:{},em:[],cpm:{}};e&&(n.rm.res=e.res||[]),t&&(n.cpm=t,n.cpm.ul=qi.URL),nbsJsBridge.logJsResult(yr(n))}}function Te(){return"undefined"!=typeof nbsJsBridge&&nbsJsBridge.logJsResult}function we(){var t=0;try{t=window.performance.timing.loadEventEnd}catch(e){}return t>0}function Ae(t,n){var r={tr:!1,tt:g(qi.title),charset:qi.characterSet};Xi.resources&&y(r,Xi.resources),zt(function(){r.debug=Mo}),Ut();var a=Do.errs;i(a,function(t,r){var i=t.toObject();i.o=i.o-n&&n.navigationStart||e,a[r]=i}),r.err=a;var o,s="getEntriesByType";return t[s]?o=t[s]("resource"):k(x(Wi,[s])),o&&(r.tr=!0,r.res=[],i(o,function(t){function e(e){var n=t[e];return n>0?n:0}var n=t.initiatorType,a=t.name,o={o:e("startTime"),rt:n,n:a,f:e(ka),ds:e(Ya),de:e(Ga),cs:e(Wa),ce:e(Va),sl:e(Xa),qs:e(Oa),rs:e(Ia),re:e(ja),ts:t.transferSize||0,es:t.encodedBodySize||0};if("xmlhttprequest"===n){var s=Re(a);i(s,function(t,e){0==e.indexOf("s_")&&(o[e]=t)})}r.res.push(o)})),r}function Re(t){var e;return i(Do.xhrs,function(n,r){return r&&t.indexOf(r)>-1?(e=n,!1):void 0}),e}function Pe(e){if(!e.agent){var n=t._ty_rum;if(n&&n.agent)e.agent=n.agent;else{var r=Gt(ua,sa);r&&(e.agent=te(r),Jt(ua,"",-1e3,"/"))}}return e.agent}function De(t){if(t){var e=t.fetchStart;if(e)return e-t.navigationStart}}function Ne(){var e={},n=0,r=t.performance;r&&r.getEntriesByType&&i(r.getEntriesByType("mark")||[],function(t){if(t&&t.name&&t.startTime&&0===t.name.indexOf(pa)){var r=t.name.substring(pa.length);r&&(e[r]=Math.round(t.startTime),n+=1)}});var a=t[da]&&t[da].data,o=y({},a||{},Zi||{});return o&&r.timing&&i(o,function(t,a){Er(t)&&t.timestamp&&(e[a]=t.timestamp-r.timing.navigationStart,n+=1)}),n>0?e:null}function ke(t,e){var n=y({},t||{},{type:ba});return e&&(n.body=e),n}function Oe(t,e){var n=yr(t),r=n?n.length:0;if(r>ha&&t.res&&t.res.length>0){t.res=t.res.slice(0,e);var a=yr(t),i=a?a.length:0;return i>ha?Oe(t,e-10>0?e-10:0):t}return t}function Ie(){var n=T(function(){function n(t){return t?"1":"0"}if(!Qi.pfSent){var r=t.performance,a=!!r;a||k(x(Wi,["pf"]));var o=Pe(Bi);o&&o.ulabel&&(Xi.ulabel=o.ulabel);var s=ee(o),u=r&&r.timing,c=y(de(u),s,Xi),f=y({},So);f.ressize=!!u,Do.fp?(f.fp=Do.fp,a&&Do.fp>Do._le&&(k("fp>le"),f.fp=ae(r),f.__fp=2)):a?(f.fp=ae(r),f.__fp=1):f.fp=f.__fp=0,f.dr=le(u),a?f.fs=ie(r,u,f.fp,f):f.__fs=0;var l="",d=Ne(),p=y(c,f)||{};d&&i(d,function(t,e){Sr(t)&&t>=0&&(p[e]=t)});var h;if(a){var m="trace",v=Math.max(p.ls,0);v||(v=re()-u.navigationStart||e),p[m]=v;var b=De(u);i(["fp","fs","dr",m],function(t){l+=n((b?p[t]-b:p[t])>=Gi[t+"_threshold"])}),delete p[m],l.indexOf("1")>-1&&(h=Ae(r,u)),d&&(h||(h={}),h.mark=d)}p.trflag=l||"0000",$i.pfStart=C(),delete p.firstScreenResources,delete p.resources;var _=Wt(qi.URL);if(h||(h={tr:!1,tt:g(qi.title),charset:qi.characterSet}),h.bizId_param=_.bizIdParams,h.opt_param=_.params,h.request_param=_.requestParams,Qi.opt_custom_param=_.optCustomParams,h)try{h=Oe(h,150)}catch(E){}var S=ke(p,h),T=Se.buildImmediateAction(ba,"",S,Qi.recordingCpActions);Qi.recordingCpActions&&(T.crossPage=!0,Qi.cpActions.push(T),R(function(){xe(!0)},Ko));try{Ce(p,h)}catch(E){}Qi.pfSent=!0}});return we()&&!Qi.pfSent&&n(),zo.on(qr,function(){var t=0;if(Gi.pfDelay&&Er(Gi.pfDelay)){var e=Ne();i(Gi.pfDelay,function(n,r){(!e||null==e[r])&&Sr(n)&&n>t&&(t=n)})}if(Qi.recordingCpActions){var r=Gi.cross_page_delay?Gi.cross_page_delay:ri,a=r-t;0>a&&(a=0),Ko=a}R(n,t)}).on([Hr,Mr,Lr],n)}function je(t){var e=t;return Wo&&(Vo.setAttribute("href",e),e=Vo.href),Vo.setAttribute("href",e),{href:Vo.href,protocol:Vo.protocol?Vo.protocol.replace(/:$/,""):"",host:Vo.host,search:Vo.search?Vo.search.replace(/^\?/,""):"",hash:Vo.hash?Vo.hash.replace(/^#/,""):"",hostname:Vo.hostname,port:Vo.port,pathname:"/"===Vo.pathname.charAt(0)?Vo.pathname:"/"+Vo.pathname}}function qe(t){var e=!1;return Yi.corsDomains&&i(Yi.corsDomains,function(n){return t.indexOf(n)>-1?(e=!0,!1):void 0}),e}function He(t){var e=je(t);return e.protocol===Xo.protocol&&e.host===Xo.host||qe(e.host)}function Me(e,n){return function(r){if(t[da].hook&&t[da].hook.eventCb&&Ke(r)){var a={originalCallback:e,eventHandlerType:n};return t[da].hook.eventCb.call(this,arguments,a)}return e.apply(this,arguments)}}function Le(t,e,n){return n===Zo?Me(t,e):(t.handleEvent=Me(t.handleEvent,e),t)}function ze(t){return _r(t)}function Fe(t){return Er(t)&&_r(t.handleEvent)}function Ue(t){var e;return ze(t)?e=Zo:Fe(t)&&(e=Qo),{isValid:t&&e,listenerType:e}}function Be(t){return function(){var e=arguments[0],n=arguments[1],r=arguments[2],a=!0;r&&Er(r)&&r[ii]&&(a=!1);var i=Ue(n),o=i.isValid,s=i.listenerType;if(a&&$o.indexOf(e)>-1&&o){var u;if(n[Oi]&&n[Oi][this])u=n[Oi][this];else{var c=Le(n,ui,s);s===Zo&&(n[Oi]||(n[Oi]={},n[Oi][Ii]=0),n[Oi][this]={listener:c,options:arguments[2]},n[Oi][Ii]++,u=n[Oi][this])}u&&(u.listener&&(arguments[1]=u.listener),u.options&&(arguments[2]=u.options))}return t&&t.apply(this,arguments)}}function Ye(t){return function(e,n){var r;try{r=t&&t.apply(this,arguments)}finally{try{if(n&&$o.indexOf(e)>-1){var a=n[Oi];a&&a[this]&&a[this].listener&&(null!=a[this].options?this.removeEventListener(e,a[this].listener,a[this].options):this.removeEventListener(e,a[this].listener),a[this]=null,a[Ii]--,a[Ii]<=0&&(n[Oi]=null,delete n[Oi]))}}catch(i){}}return r}}function Ge(){t.EventTarget&&(F(t.EventTarget.prototype,"addEventListener",function(t){return Be(t)}),F(t.EventTarget.prototype,"removeEventListener",function(t){return Ye(t)}))}function Je(){Object.getOwnPropertyDescriptor&&Object.defineProperty&&$o.forEach(function(e){var n="on"+e,r=Object.getOwnPropertyDescriptor(t.HTMLElement.prototype,n),a=r.get,i=r.set;Object.defineProperty(t.HTMLElement.prototype,n,{get:function(){return a.apply(this,arguments)},set:function(){var t=arguments[0];return t&&(arguments[0]=Le(t,ci,Zo)),i&&i.apply(this,arguments)},configurable:!0,enumerable:!0})})}function Ke(e){return e&&e.target instanceof t.HTMLElement&&e.currentTarget instanceof t.HTMLElement}function We(t){return!!t.match(We.regex)}function Ve(t){return t&&t.substr(0,256)||""}function Xe(t){try{if(!t)return"";for(var e=[],n=t.parentNode,r=function(){var r=t.tagName,a=void 0;a=n.children;var i=void 0;i=a?1===[].filter.call(a,function(t){return t.tagName===r}).length?r:"".concat(r,":nth-child(").concat(1+[].indexOf.call(a,t),")"):r;var o=t.id?"#".concat(t.id):"",s=t.className&&xr(t.className)?t.className.split(" ").map(function(t){return".".concat(t)}).join(""):"";e.unshift("".concat(i).concat(o).concat(s)),t=n,n=t.parentNode};n;)r();return"".concat(e.join(" > ")).toLowerCase()}catch(a){}}function $e(t,e,n){var r=t.target,a=r.nodeName,i=r.id,o=r.className,s=r.title,u=r.value,c=r.innerText,f=a+i,l={type:va,id:i,nodeName:a,className:o,title:s,value:u,text:a===pi?"":Ve(c),path:Xe(t.target)};if(li===a){var d=t.target.getAttribute("src");d&&!We(d)&&(l.src=d)}if(di===a){var p=t.target.getAttribute("href");p&&(l.href=p)}return l.eventHandlerType=e,Se.createEvent(null,f,va,t.type||oi,l,n)}function Ze(t,e){Qi.context=$e(t,e)}function Qe(){var t=Qi.context;t&&t.canEnd()&&t.end(),Qi.context=null}function tn(t,e){var n=e.originalCallback,r=e.eventHandlerType,a=t[0],i=!a||!a.target||a[ai]||!(ts.indexOf(a.type)>-1);if(!i)try{Ze.call(this,a,r)}catch(o){}var s;try{s=n.apply(this,t)}finally{if(!i)try{Qi.context&&!Qi.context.canEnd()&&(a[ai]=!0),Qe.apply(this)}catch(o){}}return s}function en(){i(ts,function(t){document.addEventListener(t,function(t){ns.length>=Za&&ns.shift(),ns.push(t)},_defineProperty({capture:!0},ii,!0))})}function nn(t){return t.timeStamp?Math.round(t.timeStamp+performance.timing.navigationStart):C()}function rn(t){var e=ns.filter(function(t){return!t[ai]}),n=e[e.length-1];if(n){var r=nn(n);if(Math.abs(r-t)<es)return $e(n,fi,{s:r})}}function an(t){var e=[];try{e=ns.filter(function(e){return!e[ai]&&e.timeStamp===t.timeStamp&&t.target.nodeName===e.target.nodeName})}catch(n){}if(e.length>0){var r=e[0];return $e(r,fi,{s:nn(r)})}}function on(){Gi.inline_event_associate_threshold&&(es=Gi.inline_event_associate_threshold),t[da].hook&&(t[da].hook.eventCb=tn),!t[da].listenerHooked&&t.HTMLElement&&(Ge(),Je()),Gi.disableInlineEvent||en()}function sn(t,e,n){var r=Ir().replace(/-/g,""),a={};return i(e,function(e){!e||n&&n[e]||(t.setRequestHeader(e,r),a[e]=r)}),a}function un(t){t.pcid=t.parentContext.id,t.parentContext.updateRemain(1,ga),t.parentContext.items.push(t.contextData)}function cn(t){return function e(n,r){var a=this,i=e;if(i._&&(i._=1),!a[Jr]){var o=a[Br]={};o.method=n,o.url=r,o.id=as++,o.jserror=!1;var s=fo.get("event");s&&(o.key=s.key,s.remain++),hn(o,Qi.context),o.parentContext=o.context.parent,o.contextData={type:ga,id:o.id,cid:o.context.id,method:o.method,url:o.url,state:o.state,ignore:!1,jserror:o.jserror},o.context&&o.context.setData(o.contextData),o.parentContext&&un(o)}try{return t.apply(a,arguments)}catch(u){}}}function fn(t){return function e(n,r){var a=this,i=e;if(i._&&(i._=1),!a[Jr]){var o=a[Br],s=wn(n,Yi.optCustomParamRules);Fi.isGather&&(o.wReqHeaderParam||(o.wReqHeaderParam={}),o.wReqHeaderParam[n]=r),o&&s&&(o.reqHeaderParam||(o.reqHeaderParam={}),o.reqHeaderParam[n]=r),o.headerRecord||(o.headerRecord={}),o.headerRecord[n]=r}try{return t.apply(a,arguments)}catch(u){}}}function ln(t){return function e(n){var r=this,a=e;if(a._&&(a._=1),!r[Jr]){var i=r[Br];if(i&&(i.start=C(),i.reqSize=w(n),i.requestData=n,i.contextData&&(i.contextData.start=i.start)),i.context&&null==i.context.parent){var o=rn(i.start);o&&(i.context.parent=o,i.parentContext=i.context.parent,un(i))}!i.parentContext&&Qi.recordingCpActions&&(i.context.crossPage=!0,Qi.cpRemain.ajax++,Qi.cpActions.push(i.context)),yn(r);var s=He(i.url);if(Gi.x_server_switch&&r.setRequestHeader&&Gi.key&&i&&s){var u=Nn(),c="c=B|"+Gi.key;if(u&&(c+=";x="+u),r.setRequestHeader(ca,c),i.xTingyunSent=!0,Gi.apm_headers){var f=sn(r,Gi.apm_headers,i.headerRecord);i.apms=f}}}try{return t.apply(r,arguments)}catch(l){}}}function dn(t){i(is,function(e,n){Dr(t,n,function(){pn(t,e,n)})})}function pn(t,e,n){t&&t[Br]&&(t[Br].errorCode=e,t[Br].errorEvent=n)}function hn(t,e){if(!t.context){var n="".concat(t.url,"-").concat(t.id);t.context=Se.createEvent(e,n,ga)}}function mn(t,e){Qi.context=t.context,Qi.globalAsyncStore=t,Qi.globalAjaxContext=e}function vn(t){var e=t.context&&t.context.canEnd();e&&t.context.end(),t.contextData&&t.context.state===Na&&Gi.upload_timeout_ajax&&(t.contextData.brsOnly=!0,Se.buildImmediateAction(ga,"",t.contextData,!1,{state:Na})),Qi.globalAsyncStore=null,Qi.globalAjaxContext=null}function gn(t,e){var n=t[rs];n&&!t[vi]&&(F(t,rs,e),t[vi]=!0);var r=t[os];r&&!t[vi]&&(F(t,os,e),t[vi]=!0)}function yn(t){function e(e){return z(function n(){var r=n;r._&&(r._=1),xn(t);var a;if(_r(e)){var i=t[Br];if(i&&4==t.readyState){var o=C();mn(i,t)}try{a=e.apply(this,arguments)}catch(s){throw i&&(i.jserror=!0),s}i&&4==t.readyState&&(i.cbTime=C()-o)}return a})}gn(t,e);try{dn(t)}catch(n){}if(!t[vi])try{Dr(t,zr,z(function r(){var e=r;e._&&(e._=1),xn(t)}))}catch(n){return}E(function(){gn(t,e)})}function xn(t){var e=t[Br];if(e&&(e.end=C(),e.readyState=t.readyState,4==t.readyState)){mn(e),e.status=t.status,e.text=bn(t),e.resSize=w(e.text);var n=Sn(e,t),r=fo.get("event");E(function(){e.callbackEnd||(e.callbackEnd=!0,En(e,n),r&&r.key==e.key&&(r.xhrs.push(n),0===--r.remain&&r._end()),Do.xhrs&&(Do.xhrs[e.url]=n),vn(e))})}}function bn(t){var e="";if(""==t.responseType||"text"==t.responseType)e=t.responseText;else if(t.response)e=t.response;else try{e=t.responseText}catch(n){}return e||""}function _n(t){return t.data&&"event"===t.data.type?{text:t.data.text,path:t.data.path,nodeName:t.data.nodeName,items:t.items}:t.parent&&t.parent.data&&"event"===t.parent.data.type?{text:t.parent.data.text,path:t.parent.data.path,nodeName:t.parent.data.nodeName,items:t.parent.items}:t.parent&&t.parent.parent?_n(t.parent):{text:"",path:"",nodeName:"",items:[]
}}function En(t,e){t&&e&&t.jserror&&(e.jserror=t.jserror),t.errorCode&&!e.err&&(e.err=t.errorCode)}function Sn(e,n){if(e&&!e.composed){var r=e.status;if(Fi.isGather){var a=_n(e.context);e.wCustom={fromJS:"agent",key:Gi.key,ajaxUrl:e.url,items:e.context.items,itemsTemp:a&&a.items,id:e.id,url:document.URL,text:a&&a.text,xpath:a&&a.path,nodeName:a&&a.nodeName,method:e.method,urlParams:ot(document.URL),ajaxUrlParams:ot(e.url),start:e.start,requestHeader:e.wReqHeaderParam,requestParams:e.requestData,responseHeader:n.getAllResponseHeaders()&&n.getAllResponseHeaders().split("\n"),responseBody:n.response,children:[]},t.top&&t.top.postMessage&&t.top.postMessage(yr(e.wCustom),"*"),delete e.wCustom,delete e.wReqHeaderParam}y(e.contextData,{end:e.end,du:r>0?e.end-e.start:0,cb:e.cbTime||0,status:r,err:e.errorCode?e.errorCode:0,rec:e.resSize,send:e.reqSize});var i=e.contextData,o={};o[ea]=e.reqHeaderParam||{};var s=Wt(e.url),u=s.bizIdParams,c=s.params,f=s.requestParams,l=s.optCustomParams,d=Pn(e.requestData,Yi.bizIdsRules[Wr],Yi.bizIdsRules[$r]),p=Pn(e.requestData,Yi.customParamsRules[Wr],Yi.customParamsRules[$r]),h=Pn(e.requestData,Yi.requestParamKeys[Zr],Yi.requestParamKeys[Qr]);o[na]=Qt(Dn(e.requestData),Yi.optCustomParamRules[na],!0);var m=An(n,Yi.bizIdsRules),v=An(n,Yi.customParamsRules);o[ra]=An(n,Yi.optCustomParamRules,ra);var g={},x={},b=et(e.text);b&&(g=Rn(b,Yi.bizIdsRules),x=Rn(b,Yi.customParamsRules),o[aa]=Qt(b,Yi.optCustomParamRules[aa],!0)),i.bizId_param=y({},u,d,m,g),i.opt_param=y({},c,p,v,x),i.request_param=y({},f,h),i.opt_custom_param=Zt(Cn(o,l));var _=e.xTingyunSent?et(Tn(n,fa)):null;if(_){if(i.hasServerHeader=!0,i.s_id=_.id,i.s_tname=_.tname,i.s_tid=_.tid,i.s_rid=_.rid,i.s_duration=_.duration,"user"in _){var E=_.user,S=E;if(null!=E&&0===E.indexOf(la)){var C=E.substring(la.length);try{S=Bo.decode(C)}catch(T){}}i.s_user=S}"bid"in _&&(i.s_bid=$t(_.bid)),"ber"in _&&(i.s_ber=_.ber),"isError"in Do&&(i.s_isError=_.isError)}else i.hasServerHeader=!1;return e.apms&&(i.apms=e.apms),e.composed=!0,i}}function Cn(t,e){return i(e,function(e,n){t[n]=y({},t[n]||{},e||{})}),t}function Tn(t,e){if(t&&t.getResponseHeader)try{return t.getResponseHeader(e)}catch(n){}}function wn(t,e){var n;return i(e[ea],function(e){return t===e?(n=!0,!1):void 0}),n}function An(t,e,n){var r={};return i(e[n||Vr],function(e){var n=Tn(t,e);null!=n&&rt(r,e,n)}),r}function Rn(t,e,n){var r={};return i(e[n||Xr],function(e){var n=Xt(ia,e),a=n(t);null!=a&&rt(r,e,a)}),r}function Pn(t,e,n){return Vt(Dn(t),e,n)}function Dn(t){var e=et(t);return e||(e=st(t)),e}function Nn(){try{return Ir().replace(/-/g,"").substring(0,16)}catch(t){}}function kn(){var e=Hi&&Hi.prototype;e?(F(e,"open",cn),F(e,"setRequestHeader",fn),F(e,"send",ln)):Hi&&(t.XMLHttpRequest=function(){var t=new Hi;return F(t,"open",cn),F(t,"setRequestHeader",fn),F(t,"send",ln),t})}function On(t){this.limit=t,this.reset()}function In(t,e,n,r,a){return String(t)+String(e)+String(n)+String(r)+String(a)}function jn(t,e,n,r){return String(t)+String(e)+String(n)+String(r)}function qn(t,e,n,r,a,i,o){var s=this;s.id=t,s.time=C(),s.msg=e,s.lineno=r,s.colno=a,s.filename=n,s.count=1,s.stack=i&&i.stack||"",s.module=o,s.fix();var u=jn(e,r,a,o),c=fs[u];s.ep=c?0:1,fs[u]=!0,s.fep=0,this.recordFileName()}function Hn(t){var n=function(t){var e=[];return i(t,function(t){e.push(t.toObject())}),e}(cs.c);if(!n||!n.length)return null;var r={fu:us?us:us++,os:parseInt((C()-($i.pfStart||e))/1e3)};Xi.ulabel&&(r.ulabel=Xi.ulabel),Do.emit("send","/err1",r,{datas:n}),cs.reset()}function Mn(t,e,n,r,a){if(e||!Yi.ignoreNoFilePropError){var o=!1;if(i(Yi.domains,function(t){return o=t.test(e),o?!1:void 0}),!o){var s=a&&a.moduleId,u=In(e,t,n,r,s),c=cs.get(u);c?c.increase():(c=new qn(u,t,e,n,r,a,s),cs.add(u,c),Do.errs&&Do.errs.push(c))}}}function Ln(){var e=t.onerror;t.onerror=function(t,n,r,a,i){return Mn(t,n,r,a,i),_r(e)?e.apply(this,arguments):void 0},t.onerror._ty=!0}function zn(){var e=t.onerror;e&&e._ty||Ln()}function Fn(){var e=Or();return e?Ln():Dr(t,jr,function(e){var n,r,a,i,o;(e instanceof t.Event||t.ErrorEvent&&e instanceof t.ErrorEvent)&&(n=e.message||e.error&&(e.error.message||e.error.constructor.name)||"",r=e.lineno||0,a=e.colno||0,i=e.filename||e.error&&e.error.filename||e.target&&e.target.baseURI||"",i==qi.URL&&(i="#"),o=e.error),Mn(n,i,r,a,o)}),zo.on([qr,Hr,Mr,Lr],function(t){Hn()}).on(qr,function(){e&&E(zn)}),setInterval(Hn,ss,!0)}function Un(t){t&&!t.composed&&(y(t.contextData,{end:t.end||C()}),t.composed=!0)}function Bn(){Gi.setTimeoutMaxDepth&&Gi.setTimeoutMaxDepth>0&&(ps=Gi.setTimeoutMaxDepth),F(window,"setTimeout",Xn),F(window,"clearTimeout",$n)}function Yn(t){t.context||(t.context=Se.createEvent(Qi.context,"".concat(t.name,"-").concat(t.id),ya,t.name))}function Gn(t){Qi.context=t.context,Qi.globalAsyncStore=t}function Jn(t){var e=t.context&&t.context.canEnd();e&&t.context.end(),Qi.globalAsyncStore=null}function Kn(t){for(var e=0;null!=t&&5>e;)e+=t.type===ya?1:0,t=t.parent;return 5>e}function Wn(t){return function(){return L(t).apply(this,arguments)}}function Vn(t,e,n,r){var a=null,i=null;return Er(r)&&r[mi]||null==Qi.context?i=Wn(t):Kn(Qi.context)?(a={id:ds++,name:e,start:C(),delay:n,parentContext:Qi.context},Yn(a),a.contextData={type:ya,id:a.id,cid:a.context.id,name:a.name,start:a.start,delay:a.delay},a.context&&a.context.setData(a.contextData),a.parentContext&&(a.pcid=a.parentContext.id,a.parentContext.updateRemain(1,ya),a.parentContext.items.push(a.contextData)),i=z(function(){var e;try{Gn(a)}catch(n){}try{t&&(e=t.apply(this,arguments))}finally{try{a.end=C(),Un(a),Jn(a)}catch(n){}}return e})):i=Wn(t),{store:a,cb:i}}function Xn(t,e){return function(n){var r=Tr.call(arguments,0),a=null;if(!arguments[2]&&_r(n)){var i=Vn(n,e,r[1],r[2]);i.cb&&(r[0]=i.cb),a=i.store}var o=t.apply(this,r);return a&&(hs[o]=a),o}}function $n(t){return function(e){try{var n=hs[e];n&&n.context&&(n.context.removeFromParent(),hs[e]=null)}catch(r){}return t.apply(this,arguments)}}function Zn(t){y(t.contextData,{pvid:t.pvid,end:t.end,url:t.url},t.serverData||{},t.pfData||{})}function Qn(t){t.context||(t.context=Se.createEvent(t.parentContext,"".concat(t.src,"-").concat(t.id),xa))}function tr(t,e,n){function r(){if(a.end=C(),a.sameOrigin){a.sameOrigin=!0,a.url=this.contentDocument.URL;var e=Gt(ua,sa,this.contentWindow[sa]||this.contentDocument.cookie||"");if(e){var n=te(e);Jt(ua,"",-1e3,"/",this.contentDocument),a.serverData=ee(n)}var i=this.contentWindow[Yr],o=this.contentWindow.performance&&this.contentWindow.performance.timing,s={window:this.contentWindow,globalStart:i?i.globalStart:o.navigationStart,agent:y({},i&&i.currentAgent?i.currentAgent:{})};i&&(a.pvid=i.pvid||"");var u;try{u=pe(o,s)}catch(c){u={}}a.pfData=u,a.pfData.le&&(a.end=o.navigationStart+a.pfData.le)}else a.sameOrigin=!1;Zn(a),er(a),t.removeEventListener("load",r)}if(t){n||(n=t.src?gs:vs);var a={id:ms++,src:e,loadType:n,start:C(),parentContext:Qi.context};a.sameOrigin=He(a.src),Qn(a),a.contextData={type:xa,loadType:a.loadType,id:a.id,cid:a.context.id,src:a.src,start:a.start,sameOrigin:a.sameOrigin},a.context&&a.context.setData(a.contextData),a.parentContext&&(a.pcid=a.parentContext.id,a.parentContext.updateRemain(1,xa),a.parentContext.items.push(a.contextData)),!a.parentContext&&Qi.recordingCpActions&&(a.context.crossPage=!0,Qi.cpRemain.iframe++,Qi.cpActions.push(a.context)),t.addEventListener("load",r)}}function er(t){var e=t.context&&t.context.canEnd();e&&t.context.end(),Qi.context=null}function nr(){function t(t){return function(e){return"IFRAME"===e.nodeName&&e.src&&tr(e,e.src,vs),t.apply(this,arguments)}}F(Node.prototype,"appendChild",t),F(Node.prototype,"insertBefore",t)}function rr(){function t(){var t=arguments[0],e=this;return tr(e,t),r.apply(this,arguments)}if(Object.getOwnPropertyDescriptor&&Object.defineProperty){var e=Object.getOwnPropertyDescriptor(HTMLIFrameElement.prototype,"src"),n=e.get,r=e.set;Object.defineProperty(HTMLIFrameElement.prototype,"src",{get:function(){return n.apply(this,arguments)},set:t,enumerable:!0,configurable:!0})}}function ar(){nr(),rr()}function ir(t){_o(Qa,yr(t))}function or(){Eo(Qa)}function sr(t){var e=ys++,n=t.url||"",r=C(),a=Se.createEvent(Qi.context,"".concat(n,"-").concat(e),_a,t.subType||ti),i={type:_a,subType:a.subType,id:e,cid:a.id,url:n,start:r};a&&a.setData(i);var o;return a.parent&&(a.parent.type===ga?Sn(Qi.globalAsyncStore,Qi.globalAjaxContext):a.parent.type===ya&&Un(Qi.globalAsyncStore),o=a.collectCrossPageData(),t.delayStorage||ir(o),a.clear(),a=null),{storageData:o,context:a}}function ur(t){return function(){var e=arguments[0],n=sr({url:e,delayStorage:!0}),r=n.storageData,a=n.context;try{var i=t.apply(this,arguments);if(i){if(!r&&a){var o=rn(a.data.start);o&&(a.parent=o,r=a.collectCrossPageData(),a.clear(),a=null)}ir(r)}return i}catch(s){}return m(t,[this,arguments])}}function cr(){F(t,"open",ur)}function fr(){function t(t){return{valid:di===t.target.nodeName&&!t.defaultPrevented&&t.target.href,url:t.target.href,subType:ei}}function e(t){return{valid:pi===t.target.nodeName&&!t.defaultPrevented&&t.target.action,url:t.target.action,subType:ni}}i([oi,si],function(n){document.addEventListener(n,function(r){if(r){var a=n===oi?t(r):e(r);if(a.valid){var i=r.timeStamp?an(r):rn(nn(r));i&&(Qi.context=i,sr({subType:a.subType,url:a.url}),Qi.context=null)}}},_defineProperty({},ii,!0))})}function lr(){Dr(t,Mr,function(t){or()})}function dr(){cr(),fr(),lr()}function pr(){Gi.disableHookEvent||on(),Gi.disableHookTimer||Bn(),Gi.disableHookIframe||ar(),Gi.disableHookCrossPage||dr()}function hr(){try{Dr(t,"message",Rt)}catch(e){}Yt(Do),pr(),Ie(),kn(),Fn(),Do._end=C(),zt(function(){Mo._end=Do._end}),Bt();var n=bo(Qa);n&&(Qi.recordingCpActions=!0,Qi.cpParent=et(n),Eo(Qa))}function mr(e){t[Yr]&&t[Yr].inited||e&&(_r(e)||Er(e))&&(At(e),(Gi.key||Gi.appKey)&&(hr(),t[Yr].inited=!0))}function vr(){return Or()?void 0:window[Yr]&&3===window[Yr].mainVersion?window[Yr]:(qo.init=mr,qo)}var gr,yr,xr=o("String"),br=o("Array"),_r=o("Function"),Er=o("Object"),Sr=o("Number"),Cr=o("Undefined"),Tr=[].slice,wr='"',Ar=/([\"\\])/g,Rr=/\n/g,Pr=t.JSON;Pr&&Pr.parse&&Pr.stringify?(gr=n,yr=r):(gr=s,yr=u);var Dr,Nr;t.addEventListener?(Dr=f,Nr=l):(Dr=d,Nr=p);var kr=t.encodeURIComponent,Or=function(){return!document.addEventListener},Ir=(t.location.protocol,function(){function t(t){return 0>t?NaN:30>=t?0|Math.random()*(1<<t):53>=t?(0|Math.random()*(1<<30))+(0|Math.random()*(1<<t-30))*(1<<30):NaN}function e(t,e){for(var n=t.toString(16),r=e-n.length,a="0";r>0;r>>>=1,a+=a)1&r&&(n=a+n);return n}return function(){return e(t(32),8)+"-"+e(t(16),4)+"-"+e(16384|t(12),4)+"-"+e(32768|t(14),4)+"-"+e(t(48),12)}}());A.prototype={on:function(t,e){var n=this;return xr(t)?(n.events[t]||(n.events[t]=[])).push(e):br(t)&&i(t,function(t){n.on(t,e)}),n},off:function(t,e){var n=arguments.length,r=this;if(0===n)return r.events={},r;var a=r.events[t];if(!a)return r;if(1===n)return r.events[t]=null,r;for(var i,o=a.length;o--;)if(i=a[o],i===e){a.splice(o,1);break}return r},emit:function(t){var e=[].slice.call(arguments,1),n=this.events[t];return n&&i(n,function(t){return t.apply(this,e)}),this},unshift:function(t,e){var n=this;return(n.events[t]||(n.events[t]=[])).unshift(e),n}};var jr="error",qr="load",Hr="unload",Mr="beforeunload",Lr="pagehide",zr="readystatechange",Fr="complete",Ur="on",Br="_ty_rum",Yr="TINGYUN",Gr=2,Jr="__ign",Kr="__ty_asyncWrap__",Wr="2",Vr="3",Xr="4",$r="5",Zr="1",Qr="2",ta="1",ea="2",na="3",ra="4",aa="5",ia="body",oa="reqBody",sa="TINGYUN_COOKIE_VALUE",ua="TINGYUN_DATA",ca="X-Tingyun",fa="X-Tingyun-Data",la="TY_BASE64",da="__TINGYUN",pa="ty_",ha=64512,ma=6e4,va="event",ga="ajax",ya="timer",xa="iframe",ba="pf",_a="crossPage",Ea="e",Sa="a",Ca="t",Ta="i",wa="p",Aa="c",Ra="finish",Pa="pending",Da="finish",Na="timeout",ka="fetchStart",Oa="requestStart",Ia="responseStart",ja="responseEnd",qa="domContentLoadedEventStart",Ha="domContentLoadedEventEnd",Ma="domInteractive",La="domComplete",za="loadEventStart",Fa="loadEventEnd",Ua="unloadEventStart",Ba="unloadEventEnd",Ya="domainLookupStart",Ga="domainLookupEnd",Ja="redirectStart",Ka="redirectEnd",Wa="connectStart",Va="connectEnd",Xa="secureConnectionStart",$a=5,Za=5,Qa="__ty_crs_page_events",ti="window_open",ei="a_link",ni="form_submit",ri=3e3,ai="__ty_event_patch_tag",ii="__ty_event_patch_disable",oi="click",si="submit",ui="addEventListener",ci="onProperty",fi="inline",li="IMG",di="A",pi="FORM",hi=3,mi="__ty_ignore",vi="__ty_xhr_hooked",gi=200,yi="TY_USER_ID",xi="TY_SESSION_N_ID",bi="TY_DEVICE_N_ID",_i=18e5,Ei="|",Si="__TY_SPE_STORE",Ci=6e4,Ti=6e5,wi="auto",Ai="defined",Ri=200,Pi="success",Di="fail",Ni="TY_path_gather",ki="EagleEye-TraceID",Oi="__TY_ELEMENT_CB",Ii="__TY_CB_COUNTER",ji=t.Error,qi=t.document,Hi=t.XMLHttpRequest,Mi=t.location,Li=t.navigator,zi=t.HTMLElement,Fi={isGather:!1},Ui={fp_threshold:2e3,fs_threshold:4e3,dr_threshold:4e3},Bi={server:{},appConf:{pvid:Ir(),baseInfo:{}}},Yi=Bi.appConf,Gi=Bi.server,Ji={pvid:Yi.pvid,ref:qi.URL,referrer:qi.referrer,v:"3.1.11-jinmao.1",av:"3.1.11-jinmao.1"},Ki=zi?function(t){return t instanceof zi}:function(t){t&&"object"===_typeof(t)&&1===t.nodeType&&xr(t.nodeName)},Wi="{0} not support",Vi="illegal argument",Xi={},$i={},Zi={},Qi={context:null,uniqueId:0,actions:[],opt_custom_param:{},unAssignedEvents:[],cpActions:[],recordingCpActions:!1,cpParent:null,cpRemain:{ajax:0,iframe:0},tryEndCpActionsFailed:!1,globalAsyncStore:null,globalAjaxContext:null,pfSent:!1},to=[],eo=[],no={},ro="undefined"!=typeof t.console,ao=1,io=2,oo=4,so=8,uo=j.prototype;uo.create=uo.before=uo.after=uo.error=null;var co;B.prototype={createContext:function(){return Object.create?Object.create(this.active):U(this.active)},get:function(t){return this.active?this.active[t]:void 0},set:function(t,e){return this.active?this.active[t]=e:void 0},enter:function(t){if(!t)throw new ji("context required!");this._set.push(this.active),this.active=t},exit:function(t){if(!t)throw new ji("context required!");if(t===this.active)return void(this.active=this._set.pop());var e=this._set.lastIndexOf?this._set.lastIndexOf(t):_(this._set,t);if(0>e)throw new ji("context not currently entered!");this._set.splice(e,1)},bind:function(t,e){e||(e=this.active?this.active:this.createContext());var n=this;return function(){n.enter(e);try{return t.apply(this,arguments)}catch(r){try{var a="moduleId";r[a]=e[a]}catch(i){}throw r}finally{n.exit(e)}}}};var fo,lo,po,ho=!1,fo=G(),mo=function(){var e=t.navigator.standalone,n=t.navigator.userAgent.toLowerCase(),r=/safari/.test(n),a=/iphone|ipod|ipad/.test(n);return a&&!e&&!r},vo="POST",go=K,yo=!1;$.prototype.add=function(t){this.queue.length>=this.size||(this.queue.push(t),this.running||(this.running=!0,this.run()))},$.prototype.run=function(){var t=this,e=function(){t.queue.length>0?t.run():t.running=!1};this.handler(this.queue.shift(),e)},$.prototype.handler=function(t,e){lo(t,T(function(){e()}))},lo=t.XDomainRequest?W:V,Li.sendBeacon&&(yo=!0);var xo=mo();xo&&(go=lo=V,yo=!1),lo||(lo=function(t,e){e()},yo=!1),Dr(t,Mr,function(t){yo&&(lo=X)});var bo,_o,Eo;bo=function(e){try{return t.localStorage.getItem(e)}catch(n){}},_o=function(e,n){try{t.localStorage.setItem(e,n)}catch(r){}return n},Eo=function(e){try{t.localStorage.removeItem(e)}catch(n){}};var So={},Co=t.screen;Co&&(So.sh=Co.height,So.sw=Co.width);var To,wo=t.location.protocol,Ao="http:",Ro=["id","key","appKey","token"],Po=Pt.prototype;Po.start=function(){if(!Gi.key)return N("missing config, agent disabled!"),!1;var e=t[Yr];return e?(N("already loaded!"),!1):this},y(Po,A.prototype);var Do=new Pt;Do.on("send",function(t,e,n,r,a){xt(),a||(a=_t(t,e)),a+="__r="+C(),r=r||S,tt({url:a,data:n,callback:r})});var No=Dt.prototype;No.fail=No.end=No.store=S;var ko=Nt.prototype;ko.end=ko.finish=ko.fail=null,ko.send=function(t){this.sent=!0;var e=this.getEventData(t),n=this.timeout||Ti;e.duration<n&&Do.emit("send","/spe",null,e,S)},ko.getEventData=function(t){var e=this,n=t.event&&t.event.xhrs||[];return i(n,function(t){t.startSpeOffset=t.start-e.s}),{key:e.key,start:e.s,duration:e.e-e.s,status:e.status,type:e.type,xhrs:n}},ko.refreshEventAndStore=function(t){this.finish();var e=this.getEventData(t);_o(Si,yr(e))};var Oo={},Io={},jo={host:"cshst",url:"csurl"},qo={mainVersion:hi,version:"3.1.11-jinmao.1",key:Gi.key,pvid:Yi.pvid,config:qt,DIAGNOSE_HREF:Gr,diagnose:I,createEvent:It,logFirstScreen:Ht,addExcludedDomain:Mt,globalStart:e,currentAgent:Do,mark:Lt,wrapVueRouter:jt,endSession:gt,setUid:ht,createAutoEvent:It,endStoreEvent:Ot},Ho=Yi.debuggable,Mo={start:e,e:{},an:{count:0},visible:[]},Lo=0;!function(){if(Yi.debuggable){var t,e,n="visibilitychange";Cr(qi.hidden)?Cr(qi.msHidden)?Cr(qi.webkitHidden)||(t="webkitHidden",e="webkit"+n):(t="msHidden",e="ms"+n):(t="hidden",e=n),Cr(qi.addEventListener)||Cr(qi[t])||Dr(qi,e,Ft(function(){Mo.visible.push([qi[t],C()])}))}}();var zo=new A,Fo={},Uo=t,Bo=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=function(t){for(var e={},n=0,r=t.length;r>n;n++)e[t.charAt(n)]=n;return e}(t),n=String.fromCharCode,r=function(t){if(t.length<2){var e=t.charCodeAt(0);return 128>e?t:2048>e?n(192|e>>>6)+n(128|63&e):n(224|e>>>12&15)+n(128|e>>>6&63)+n(128|63&e)}var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return n(240|e>>>18&7)+n(128|e>>>12&63)+n(128|e>>>6&63)+n(128|63&e)},a=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,i=function(t){return t.replace(a,r)},o=function(e){var n=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),a=[t.charAt(r>>>18),t.charAt(r>>>12&63),n>=2?"=":t.charAt(r>>>6&63),n>=1?"=":t.charAt(63&r)];return a.join("")},s=Uo.btoa?function(t){return Uo.btoa(t)}:function(t){return t.replace(/[\s\S]{1,3}/g,o)},u=function(t){var e="[object Uint8Array]"===Object.prototype.toString.call(t);return e?t.toString("base64"):s(i(String(t)))},c=function(t,e){return e?u(String(t)).replace(/[+\/]/g,function(t){return"+"==t?"-":"_"}).replace(/=/g,""):u(t)},f=function(t){return c(t,!0)},l=new RegExp(["[\xc0-\xdf][\x80-\xbf]","[\xe0-\xef][\x80-\xbf]{2}","[\xf0-\xf7][\x80-\xbf]{3}"].join("|"),"g"),d=function(t){switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return n((r>>>10)+55296)+n((1023&r)+56320);case 3:return n((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return n((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},p=function(t){return t.replace(l,d)},h=function(t){var r=t.length,a=r%4,i=(r>0?e[t.charAt(0)]<<18:0)|(r>1?e[t.charAt(1)]<<12:0)|(r>2?e[t.charAt(2)]<<6:0)|(r>3?e[t.charAt(3)]:0),o=[n(i>>>16),n(i>>>8&255),n(255&i)];return o.length-=[0,0,2,1][a],o.join("")},m=Uo.atob?function(t){return Uo.atob(t)}:function(t){return t.replace(/\S{1,4}/g,h)},v=function(t){return m(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},g=function(t){return p(m(t))},y=function(t){return g(String(t).replace(/[-_]/g,function(t){return"-"==t?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};return{atob:v,btoa:s,utob:i,encode:c,encodeURI:f,btou:p,decode:y}}(),Yo=function(){try{var e=Ir();return t.localStorage.setItem(e,e),t.localStorage.removeItem(e),!0}catch(n){return!1}}(),Go={};Go.localStorage=Yo,function(){function e(){var e,f,l=qi.documentElement;l.appendChild(u),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=a=s=!1,r=o=!0,t.getComputedStyle&&(f=t.getComputedStyle(c),n="1%"!==(f||{}).top,s="2px"===(f||{}).marginLeft,a="4px"===(f||{width:"4px"}).width,c.style.marginRight="50%",r="4px"===(f||{marginRight:"4px"}).marginRight,e=c.appendChild(qi.createElement("div")),e.style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",o=!parseFloat((t.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",i=0===c.getClientRects().length,i&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",e=c.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",i=0===e[0].offsetHeight,i&&(e[0].style.display="",e[1].style.display="none",i=0===e[0].offsetHeight)),l.removeChild(u)}var n,r,a,i,o,s,u=(qi.documentElement,qi.createElement("div")),c=qi.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",Go.opacity="0.5"===c.style.opacity,Go.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",Go.clearCloneStyle="content-box"===c.style.backgroundClip,u=qi.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",u.appendChild(c),Go.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,Go.reliableHiddenOffsets=function(){return null==n&&e(),i})}();var Jo=[ga,ya,xa];Se.prototype.end=function(t){if(this.closed)return void(this.cleared||console.warn("Current context is already closed"));if(t&&(this.actionCount.ajax+=t.actionCount.ajax,this.actionCount.iframe+=t.actionCount.iframe,_e(this.items,t),this.updateRemain(-1,t.type)),this.isNoRemain()||this.isTimeout)if(this.e=C(),this.closed=!0,this.i&&clearTimeout(this.i),this.e-this.s>Gi.event_timeout&&(this.isTimeout=!0),this.setState(this.isTimeout?Na:Da),this.data&&(this.data.state=this.state),this.parent)this.parent.end(this);else{var e;this.isTimeout&&(this.isRemainMeaningfulAction()||this.isMeaningfulAction())?e=this.composeTimeoutActionData():this.isMeaningfulAction()&&(e=this.composeActionData()),e&&(!this.crossPage||e.type!==ga&&e.type!==xa?ye(e):(Qi.cpRemain[e.type]--,D()&&Qi.tryEndCpActionsFailed&&xe())),Qi.context=null}},Se.prototype.isNoRemain=function(t){var e=!0;return i(this.remain,function(n){var r=n.current<=0&&(t?!0:n.children<=0);return r?void 0:(e=!1,!1)}),e},Se.prototype.clear=function(){this.closed=!0,this.cleared=!0,this.i&&clearTimeout(this.i)},Se.prototype.isMeaningfulAction=function(){return this.actionCount.ajax>0||this.actionCount.iframe>0},Se.prototype.isRemainMeaningfulAction=function(){return this.remain.ajax.current>0||this.remain.ajax.children>0||this.remain.iframe.current>0||this.remain.iframe.children>0},Se.prototype.timeout=function(){this.isTimeout=!0,this.setState(Na),this.end(null,!0)},Se.prototype.setData=function(t){this.data=t},Se.prototype.composeActionData=function(){return{type:this.type,subType:this.subType,start:this.s,end:this.e,duration:this.e-this.s>0?this.e-this.s:0,data:y({},this.data||{},{items:(this.items||[]).slice()})}},Se.prototype.composeTimeoutActionData=function(){return this.collectActionDataFromTop(),this.composeActionData()},Se.prototype.collectActionDataFromTop=function(t){null==t&&(t=this),Ee(t.items,t.children)},Se.prototype.collectCrossPageData=function(t){if(t||(t=[]),this.crossPage=!0,this.data&&(this.data.crossPage=!0),t.unshift(this.data),this.parent)return this.parent.collectCrossPageData(t);var e={type:this.type,subType:this.subType,start:this.s};return(this.isNoRemain()||1===this.children.length)&&this.clear(),{action:e,data:t,url:_t("/action"),commonActionInfo:he()}},Se.prototype.canEnd=function(){return!this.closed&&this.isNoRemain(!0)},Se.prototype.updateRemain=function(t,e){if(this.remain[e]){e||(e=ga);var n=t||0;this.remain[e].current=this.remain[e].current+n;for(var r=this.parent;r;)r.remain[e].children=r.remain[e].children+n,r=r.parent}},Se.prototype.setState=function(t){return this.stateChanged?!1:(this.state=t,this.stateChanged=!0,!0)},Se.prototype.current=function(){return Qi.context},Se.prototype.removeFromParent=function(){if(this.parent){var t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1);var e=this.parent.items.indexOf(this.data);e>-1&&this.parent.items.splice(e,1),this.parent.updateRemain(-1,this.type),this.parent.end()}},Se.createEvent=function(t,e,n,r,a,i){return new Se(t,e,n||"event",r||null,a,i)},Se.buildImmediateAction=function(t,e,n,r,a){var i=y({type:t,subType:e,state:Ra,data:n},a||{});return i.data&&(i.data.state=i.state),r||ye(i),i};var Ko=0,Wo=/(msie|trident)/i.test(Li.userAgent),Vo=qi.createElement("a"),Xo=je(Mi.href),$o=[oi,si],Zo=1,Qo=2,ts=[oi,si],es=gi,ns=[];We.regex=/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i;var rs="onload",as=0,is={error:990,abort:905,timeout:903},os=Ur+zr,ss=1e4,us=0;On.prototype={add:function(t,e){this.len>this.limit||this.get(t)||(this.c[t]=e,this.len++)},get:function(t){return this.c[t]},reset:function(){this.c={},this.len=0}};var cs=new On(100),fs={},ls={};qn.prototype={increase:function(){this.recordFileName(),this.count++},recordFileName:function(){var t=this.filename||"_";this.fep+=ls[t]?0:1,ls[t]=!0},fix:function(){var t=this,e=t.stack;if(e&&xr(e)){e=e.split(/\n/);var n=[];i(e,function(t,e){-1==t.indexOf(Kr)&&n.push(t)}),t.stack=n.join("\n")}},toObject:function(){var t=this;return{o:t.time,e:t.msg,l:t.lineno,c:t.colno,r:t.filename,ec:t.count,s:t.stack,m:t.module,ep:t.ep,fep:t.fep}}};var ds=0,ps=$a,hs={},ms=0,vs="load",gs="reload",ys=0,xs=vr();return xs}(window,+new Date);window.TINGYUN && window.TINGYUN.init && window.TINGYUN.init(function(ty_rum){ty_rum.server = {id:'4gA5HRiCw8g',bizId_rule : [],opt_param_rule : [],x_server_switch : true,request_param_keys: [],ignore_err : false,filter_robot : true,beacon:'apm.chinajinmao.cn:8589',beacon_err:'apm.chinajinmao.cn:8589',key:'1miV8nhR6HY',token:'92b144a9cdf144d7bdfa3f94c7c6a537',trace_threshold:7000,fp_threshold:2000,fs_threshold:4000,dr_threshold:4000};});/*TY_AGENT_END*/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment