"use strict";var smsFlag=!1,smsShowFun=null,hasScroll=!1,isWeixin=function(){return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)};function accessLimit(){var e,t,n,a,i;isFrontEnv()&&location.hostname==tenant.domain&&(e=tenant.XSKey,t=localStorage.getItem("kt"+tenant.tenantId),n=+new Date,!isNaN(Number(t))&&36e5=t.showTime[0]&&t.nowTime<=t.showTime[1]||!t.showTime||0==t.showTime.length,t.isOpen&&e&&$require(["/npublic/commonjs/restival.js"],function(e){e.init(t)})))})})}function smartServiceInit(){isFrontEnv()&&$(window).on("mousemove scroll touchmove tap click keydown",function(){hasScroll||(hasScroll=!0,$require(["cmsAjax","pl_util"],function(e){var t=$.getSearch(),a=__ce.smartServiceUrl||"https://web-visitor.yun300.cn",n="".concat(a,"/visitormanager/intelligent/front/checkAndRegister?tenantId=").concat(tenant.tenantId,"&instance=").concat(tenant.bossProductInstance),i={account:localStorage.getItem("account_".concat(tenant.tenantId))};t.previewFlow&&(i.account=t.previewFlow),e.cmsAjax.postJson(n,i).then(function(n){200==n.status&&n.data&&!function(e){var t=!1,n=JSON.parse(e.colorLayout).linkObj,a=window.pageObj?pageObj.pageId:"";a&&n&&(e=n.P,!isMo()||1!=tenant.mobileStatus&&6!=tenant.mobileStatus&&11!=tenant.mobileStatus||(e=n.M),-1