"use strict";var smsFlag=!1,smsShowFun=null,hasScroll=!1,isWeixin=function(){return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)};function gray(){$require(["cmsAjax"],function(t){var e=window.location.origin+"/ndesigner/api/gray";t.cmsAjax.postJson(e).then(function(t){200==t.code&&($("html")[0].style="filter:progid:DXImageTransform.Microsoft.Basiclmage(grayscale=1);-webkit-filter:grayscale(100%);")})})}function festival(){isFrontEnv()&&$require(["cmsAjax"],function(t){t.cmsAjax.get("/fwebapi/cms/lowcode/festivalPendant/getSettings").then(function(t){var e;t.data&&200==t.data.code&&t.data.settings&&(1==(e=t.data.settings).location&&window.pageObj&&1!=window.pageObj.isHomePage||(t=e.showTime&&2==e.showTime.length&&e.nowTime>=e.showTime[0]&&e.nowTime<=e.showTime[1]||!e.showTime||0==e.showTime.length,e.isOpen&&t&&$require(["/npublic/commonjs/restival.js"],function(t){t.init(e)})))})})}function smartServiceInit(){isFrontEnv()&&$(window).on("mousemove scroll touchmove tap click keydown",function(){var n;hasScroll||(hasScroll=!0,n=function(n){$require(["css!/npublic/commonjs/smartService/t.css"],function(t){var e,a={};try{a=JSON.parse(n.setting.colorLayout)}catch(t){}1==a.entranceLocation&&(e='\n \n '),$("body").append(e),$(".smartIcon").hover(function(){$(this).css({"background-color":a.windowColor,color:"#fff"})},function(){$(this).css({"background-color":"#fff",color:a.windowColor})})),function(t,e){var a={};try{a=JSON.parse(e.setting.colorLayout)}catch(t){}$(document).on("click","[smartService]",n),1==a.showFlag&&e&&n();function n(){smsShowFun?smsFlag?smsShowFun.showFun():smsShowFun():t&&e&&(e.account&&localStorage.setItem("account_".concat(tenant.tenantId),e.account),$require(["/npublic/commonjs/smartService.js"],function(t){smsFlag=!0,smsShowFun=new t(e)}))}}(!0,n)})},$require(["cmsAjax"],function(t){var e=__ce.smartServiceUrl||"https://web-visitor.yun300.cn",a="".concat(e,"/visitormanager/intelligent/front/checkAndRegister?tenantId=").concat(tenant.tenantId,"&instance=").concat(tenant.bossProductInstance),e={account:localStorage.getItem("account_".concat(tenant.tenantId))};t.cmsAjax.postJson(a,e).then(function(t){200==t.status&&t.data&&n(t.data)})}))})}function preventFish(){var t=location.hostname,e=getCookie("realhost")||"";e&&e!=t&&(e="/repository/cheat?req="+t+"&rel="+e,$.ajax({url:e}))}function wxShare(){$require(["cmsAjax","/npublic/commonjs/jweixin/jweixin.js","pl_util"],function(t){var e={pageUrl:location.href,appCode:pageObj.appId,tid:pageObj.contentType,pageType:pageObj.pageType,isHomePage:pageObj.isHomePage,pageId:pageObj.pageId,contentId:pageObj._detailId,pageName:pageObj.name};t.cmsAjax.postJson("/fwebapi/cms/api/tdk/getWxShareInfo",e).then(function(t){var e,a,n,o;t.data.wxJsConfig&&(e=t.data.wxJsConfig,o=t.data.wxShareContent,a={title:o.title,desc:o.desc,link:location.href,imgUrl:(n=$.handleDataImg(o.imgUrl),t=104,o=-1