var BdVirtualNum=function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=6)}([function(e,n,t){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/-/g,"").replace(/\+/g,"").replace(/\s/,"")}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return 11===(e=a(e)).length&&0===e.indexOf("1")}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return 0===(e=a(e)).indexOf("400")&&10===e.length}function a(e){return 0===e.indexOf("86")?e.substring(2):0===e.indexOf("+86")?e.substring(3):e}Object.defineProperty(n,"__esModule",{value:!0}),n.isSamePhoneNum=function(e,n){if(e=a(r(e)),n=a(r(n)),e===n)return!0;var t=e.indexOf(n),i=n.indexOf(e);if((3===t||4===t)&&0===e.indexOf("0"))return!0;if((3===i||4===i)&&0===n.indexOf("0"))return!0;return!1},n.removeSymbol=r,n.isMobileNum=i,n.is400=o,n.getNumReplaceText=function(e){if(o(e=a(e=r(e)))){var n=[e.substring(0,3),e.substring(3,6),e.substring(6,10)],t=[e.substring(0,4),e.substring(4,7),e.substring(7,10)];return[e,n.join(" "),n.join("-"),t.join(" "),t.join("-")]}if(i(e))return["+86"+e,"86"+e,e];var u=["+86"+e,"86"+e,e];if(0===e.indexOf("0")){var c=[],d=e.length;10===d?c.push(3):12===d?c.push(4):11===d&&(c=[3,4]),c.forEach((function(n){var t=[e.substring(0,n),e.substring(n)];u=[].concat(function(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];if(!n)return;var t=o(n);if(t){t.phone=Array.isArray(e)?e:[e];for(var r=0;r1e3*(t-(r?o:i)))return!0;return!1};var r=t(0),i={};function o(e){return i[e]}function a(e,n){var t=i[e]||{},o=t.phone||[],a={};if(Array.isArray(o)||(o=[o]),a.needMatch||"ad"!==t.from&&"0"!==t.channel&&0!==t.channel)for(var u=0;u0?e.timeoutHandle=setTimeout((function(){d.forEach((function(e){e()}))}),l):d.forEach((function(e){e()}))}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&u[e]&&(t.logtype=e,f(n,t))}function s(e,n){n.timestamp=+new Date;var t=e.from||"lp";n.tag=o[t];var r=(e.phone||[]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.dynamicPhone,t=void 0===n?"":n,r=e.virtualPhone,i=void 0===r?"":r,o=e.realPhone,a=void 0===o?"":o;return t+"_"+i+"_"+a}));n.phones=r.join("|"),e.bdVid&&(n.bdVid=e.bdVid),e.pvt&&(n.duration=+new Date-e.pvt),"native-smart-app"===e.client&&(n.appName=e.appName,n.appKey=e.appKey)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i){var t={};["uid","siteid","baiduid","pageid","kDomain","fid","spid","xst","ch","status","channel","dpopen","url","referrer","lpType","sdkType","sdkVersion","query","client","expired"].forEach((function(n){t[n]=e[n]})),r(t,n),s(e,t),function(e){var n=e.logtype,t=u[n]||[];"string"==typeof t&&(t=[t]),t.forEach((function(t){c[n]&&(e.logtype=c[n]),i(a[t],e)}))}(t)}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createId=function(){return"p"+(new Date).getTime().toString(16)+parseInt(1e6*Math.random(),10).toString(16)},n.ch2channel=function(e){var n={3:"3",4:"1"};if(void 0!==n[e])return n[e];return null},n.sdkHost=function(e,n){if(n&&/^https?:\/\/[^\/]+\.baidu\.com:\d+$/.test(n))return e.replace("https://ada.baidu.com",n);return e}},function(e,n,t){"use strict";function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"search",t=new RegExp("(^|&|\\?)"+e+"=([^&]*)(&|$)"),r=window.location[n].substr(1).match(t);return null!=r?unescape(r[2]):null}Object.defineProperty(n,"__esModule",{value:!0}),n.getQuery=r,n.getReferrerQuery=function(e){var n=document.referrer,t=new RegExp("(\\?|&)"+e+"=[^&]*");if(t.test(n))return n.match(t)[0].split("=")[1]},n.getParam=function(e){return r(e,"search")||r(e,"hash")},n.getCookie=function(e){var n=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),t=document.cookie.match(n);if(t)return unescape(t[2]);return null}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.version=void 0;var r=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.pageInitFunc?e.pageInitFunc(e):{},t=e.adInitFunc?e.adInitFunc(r({},e,n)):{},c=(0,i.createId)(),s=r({},e,n,t,{pageid:c});if(s.key=(0,a.generateKeyForStore)(s),s.sdkVersion=d,(0,o.init)(s),(0,u.init)(s),!s.fromAd)return;if(!s.key)return;var f=(0,a.getData)(s.key);if(f&&f.status)return;(0,a.init)(s),(0,u.pv)(s),function(e){var n=e.key,t=(0,a.getData)(n),i={onResult:function(r){if((0,a.setPhone)(r,n),e.replaceFunc)e.replaceFunc(e);else{var i=!1;Array.isArray(r)&&r[0]&&(r[0].virtualPhone||r[0].dynamicPhone)?i=!0:(r.virtualPhone||r.dynamicPhone)&&(i=!0),i&&(l(n),(0,u.show)(t))}},onError:function(e){}};(0,o.loadPhoneNumber)(r({},t,i))}(s)},n.getCallNumber=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n||(n=(0,a.getLastUser)());var t=(0,a.getData)(n)||{},r=t.status,i=t.from,o=(0,a.getPhone)(n,e)||{},d={};if(1===r)d={status:4,virtualPhone:e,realPhone:null,key:n};else if(n&&0!==t.status&&(o.dynamicPhone||o.virtualPhone))if("ad"===i||(0,c.isSamePhoneNum)(e,o.realPhone))if(o.dynamicPhone){new Date;(0,a.checkExpired)(o)?((0,a.setValue)(n,"expired",1),d={status:0,virtualPhone:(0,c.remove86)(o.virtualPhone),realPhone:e,key:n}):d={status:1,virtualPhone:(0,c.remove86)(o.dynamicPhone),realPhone:e,time:o.time,expiredTime:o.expiredTime,backPhone:(0,c.remove86)(o.virtualPhone),key:n}}else o.virtualPhone&&(d={status:0,virtualPhone:(0,c.remove86)(o.virtualPhone),realPhone:e,key:n});else(0,u.nomatch)(t,e),d={status:3,virtualPhone:e,realPhone:null,key:n};else d={status:2,virtualPhone:e,realPhone:null,key:n};d.pageid=t.pageid,t.pvt&&(d.duration=+new Date-t.pvt);0!==d.status&&1!==d.status||(d.success=!0);return d},n.delayTime=function(e,n,t){var i=(0,a.getData)(e),u=(0,a.getPhone)(e,t);if(u.dynamicPhone&&(0,c.isSamePhoneNum)(n,u.dynamicPhone)){var d={onResult:function(n){(0,a.setExpiredTime)(e,t,n.expiredTime,n.hasHeart),u.hasHeart=n.hasHeart,l(e,u)},onError:function(e){}};(0,o.delayPhoneTime)(r({},i,d,{phone:u}),t)}},n.checkHeart=l;var i=t(3),o=t(9),a=t(1),u=t(2),c=t(0),d=n.version="3.0.7";function l(e,n){var t=(0,a.getData)(e);(n?[n]:t.phone||[]).forEach((function(n){var i=n.dynamicPhone,u=n.hasHeart,c=n.heartHandle,d=n.time,s=n.expiredTime,f=n.heartLeftTime,h=void 0===f?10:f,p=n.heartClickLeftTime,v=void 0===p?5:p,m=n.needHeart;if(i&&u&&!1!==m){c&&(clearTimeout(c),n.heartHandle=null);var g=+new Date-d;if(1e3*(s-v)>g){var y=1e3*(s-h)-g;n.heartHandle=setTimeout((function(){n.heartHandle=null;var i={onResult:function(t){(0,a.setExpiredTime)(e,n.realPhone,t.expiredTime,t.hasHeart),l(e,n)},onError:function(e){}};document&&document.visibilityState&&"visible"!==document.visibilityState||(0,o.startHeart)(r({},t,{phone:n},i))}),y>0?y:0)}}else c&&(clearTimeout(c),t.heartHandle=null)}))}},function(e,n,t){"use strict";var r,i=t(7),o=t(8),a=t(5),u=t(10),c=t(11),d=(r=c)&&r.__esModule?r:{default:r},l=t(2),s=t(0),f=t(1);window.bdDataLayer=window.bdDataLayer||{},window.bdDataLayer.inserted||function(){var e=(0,u.getADoms)();if(e&&e.length){for(var n=0;n0&&((0,l.show)(n),(0,a.checkHeart)(n.key))},requestUtil:d.default,logUtil:c.log,sdkType:"aTag",client:"h5",pageInitFunc:i.init,adInitFunc:o.initAdParams,realPhones:[].join("|")};(0,a.init)(h)}}(),window.bdDataLayer.inserted=1},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.init=n.LPTYPE=void 0;var r=t(4),i=n.LPTYPE={SMARTLP:1,AIPAGE:2,NA:3,JIMUYU:4,THIRD:5,PREVIEW:6,OTHER:0};function o(e){return-1!==e.indexOf("slp.baidu.com")||-1!==e.indexOf("sp0.baidu.com/5bgWsjip0QIZ8tyhnq")}function a(e){return-1!==e.indexOf("aipage.cn")}function u(e){return-1!==e.indexOf("fix=1")&&navigator&&navigator.userAgent&&navigator.userAgent.match(/baiduboxapp\/([\d+.]+)/)}function c(e){for(var n=["isite.baidu.com","sjh.baidu.com","wejianzhan.com","sitei.baidu.com","shj.baidu.com","wjz.baidu.com","wzj.baidu.com","jzw.baidu.com"],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=i.OTHER;void 0!==e.type&&(n=e.type);var t=location.href;o(t)?n=i.SMARTLP:a(t)?n=i.AIPAGE:u(t)?n=i.NA:c(t)?n=i.JIMUYU:l(t)?n=i.THIRD:d(t)&&(n=i.PREVIEW);var s={lpType:n,url:location.href,referrer:document.referrer};(0,r.getQuery)("sdkhost","search")&&(s.sdkhost=(0,r.getQuery)("sdkhost","search"));try{if(d(t)||c(t)){var f=window.location.pathname.split("/").pop(),h=(0,r.getCookie)(f);s.expInfo=h}}catch(e){console.log(e)}return n===i.PREVIEW&&(s.previewChannel=(0,r.getQuery)("channel","search")),s}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFromAd=o,n.isChargeUrl=a,n.initAdParams=function(e){var n={uid:e.uid||window.bdDataLayer.uid||(0,r.getReferrerQuery)("cegduid")||(0,r.getReferrerQuery)("cegduid","search")||(0,r.getReferrerQuery)("cegduid","hash")||(0,r.getReferrerQuery)("BD_FC_UID"),sid:window.bdDataLayer.sid,baiduid:(0,r.getCookie)("BAIDUID"),dpopen:e.dpopen||window.bdDataLayer.dpopen||(0,r.getReferrerQuery)("dpopen")||1,bdRank:e.bdRank||(0,r.getReferrerQuery)("bdrank"),kDomain:e.kDomain||u(),channel:e.channel,query:e.query};if("lp"===e.from){n.siteid=n.sid;for(var t=["fid","ch","spid","xst"],o=0;o0&&void 0!==arguments[0]&&arguments[0];return a(document.referrer)}function a(){return-1!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").indexOf("baidu.php")}function u(){if(!o())return"";var e=document.referrer,n=/url=([^\.]+\.)([^\.]+\.)([^&]+)/,t=/sc\.([^\.]+\.)([^\.]+\.)([^&]+)/;return n.test(e)?n.exec(e)[3]:t.test(e)?t.exec(e)[3]:void 0}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{};(0,i.setStatus)("end",e.key);var t=n.channel,r=n.baiduid;void 0!==t&&(0,i.setValue)(e.key,"channel",t),r&&(0,i.setValue)(e.key,"baiduid",r),o(n)},onError:function(n){(0,i.setStatus)("end",e.key),u(n)}};if(!c)return;t.expInfo=e.expInfo;var f=e.realPhones||"",h=f.split("|").map((function(e){return(0,a.removeSymbol)((0,a.remove86)(e))}));f=h.join("|"),c(d+"getNumber",r({},t,{realPhones:f}),s.onResult,s),(0,i.setLastUser)(e.key),(0,i.setStatus)("loading",e.key)},n.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.requestUtil&&(c=e.requestUtil);d=(0,o.sdkHost)(d,e.sdkhost)},n.delayPhoneTime=function(e,n){var t=l(e)||{},i=t.params,o=t.onResult,a=t.onError;i.dynamicPhone=e.phone.dynamicPhone,i.reqMd5=e.phone.reqMd5,i.clicklog=1,i.ch=e.ch,i.status=e.status,i.referrer=e.referrer,i.lpType=e.lpType,i.sdkType=e.sdkType,i.expired=e.expired,(0,u.addComputeParams)(r({},e,{phone:[e.phone]}),i),i.rand=i.timestamp,"ad"===e.from&&(i.phoneNum=i.dynamicPhone);"lp"===e.from&&(i.virtualPhone=i.dynamicPhone,i.realPhone=n);c(d+"delayPhoneTime",i,o,{onResult:o,onError:a})},n.startHeart=function(e){var n=l(e)||{},t=n.params,r=n.onResult,i=n.onError;t.dynamicPhone=e.phone.dynamicPhone,t.reqMd5=e.phone.reqMd5,c(d+"startHeart",t,r,{onResult:r,onError:i})};var i=t(1),o=t(3),a=t(0),u=t(2),c=null,d="https://ada.baidu.com/phone-tracker/";function l(e){var n=e.uid,t=e.sid,r=e.baiduid,i=e.channel,o=e.dpopen,a=e.kDomain,u=e.fid,c=e.spid,d=e.query,l=(e.from,e.lpType,e.xst),s=e.sdkVersion,f=e.client;return{params:{useridInBase64:n,siteid:t,baiduid:r,channel:i,dpopen:o,query:d,kDomain:a,fid:u,spid:c,xst:l,sdkVersion:s,url:e.url,client:f,pageid:e.pageid},onResult:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.errors,r=n.status,i=n.data;200===r?e.onResult(i):e.onError&&e.onError(t)},onError:function(n){e.onError&&e.onError(n)}}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getADoms=function(){for(var e=[],n=document.getElementsByTagName("A"),t=n.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],t=c(e);if(t===n)return!0;e.phoneNum&&t!==e.virtualNum&&(e.phoneNum=null,e.virtualNum=null);var u=e.phoneNum||t;return e.setAttribute("href","tel:"+n),e.phoneNum=u,e.virtualNum=n,function(e,n,t){if(!/^\+?[0-9,-, ]+$/.test(e))return;for(var r=(0,i.getNumReplaceText)(e),o=r.length,a=0;a0){var d=t.innerHTML.charAt(u-1);/^\d$/.test(d)||(c=!0)}if(c){l(t,r[a],n);break}}}(t,n,e),function(e){var n=function(n){var t=c(e);if(e.bdPhoneTrackerKey&&e.phoneNum){var u=(0,o.getPhone)(e.bdPhoneTrackerKey,e.phoneNum);(0,i.isSamePhoneNum)(t,u.dynamicPhone)?((0,r.delayTime)(e.bdPhoneTrackerKey,e.virtualNum,e.phoneNum),(0,a.clickDynamic)((0,o.getData)(e.bdPhoneTrackerKey),e.virtualNum,e.phoneNum)):(0,a.clickStatic)((0,o.getData)(e.bdPhoneTrackerKey),e.virtualNum,e.phoneNum)}};e.eventFn&&e.removeEventListener("click",e.eventFn);e.addEventListener("click",n,!1),e.eventFn=n}(e),!0}function l(e,n,t){if(3===e.nodeType)e.data.length>0&&(e.data=e.data.replace(n,t));else if(1===e.nodeType&&e.childNodes.length>0)for(var r=e.childNodes.length,i=0;i3&&void 0!==arguments[3]?arguments[3]:{};try{var i=function(e){document.getElementsByTagName("head")[0].removeChild(f),delete window[o],r.onEnd&&r.onEnd(n)};if(!e||!n)return;t=t||function(){};var o="bcpDynamic",a=1e7;o+=(new Date).getTime()%a,o+=(Math.random()*a).toFixed(0),window[o]=t,n.callback=o;var u=[],c=Object.prototype.toString;for(var d in n){var l="",s=void 0;if("number"==typeof n[d]&&(l=0),"[object Object]"===c.call(n[d])){try{s=JSON.stringify(n[d])}catch(e){s="{}"}u.push(d+"="+encodeURIComponent(s))}else u.push(d+"="+encodeURIComponent(n[d]||l))}delete n.callback,u=u.join("&"),-1!==e.indexOf("?")?e+="&"+u:e+="?"+u;var f=document.createElement("script");f.setAttribute("async","true"),f.addEventListener("load",i,!1),f.addEventListener("error",(function(e){document.getElementsByTagName("head")[0].removeChild(f),delete window[o],r.onError&&r.onError(n)}),!1),document.getElementsByTagName("head")[0].appendChild(f),f.src=e}catch(e){console.error(e)}},n.log=function(e,n){var t=[];for(var r in n)n.hasOwnProperty(r)&&t.push(r+"="+encodeURIComponent(void 0===n[r]?"":n[r]));t.push("rand="+(new Date).getTime()),e+="?"+t.join("&");var i=new Image,o=0;i.onload=i.onerror=i.onabort=function(n){if("error"===n.type&&o<2)return o++,void(i.src=e+"&retryCount="+o);i.onload=i.onerror=i.onabort=null,i=null},i.src=e}}]).default;