var COOKIE_EXPIRE=12096e5,REQUEST_TIMEOUT=6e5,gcid_attempts_3LEPUi=0,yclid_attempts_3LEPUi=0,referral_code_3LEPUi="3LEPUi",operator_3LEPUi="11",user_data_3LEPUi={referral_log_id:null,experie_time:null,adv_tel_number:null,actualized:0,utm_source:null,full_url:null,google_client_id:null,region:null,referral_code:referral_code_3LEPUi,yandex_client_id:null,operator:operator_3LEPUi};function checkGAClientID_3LEPUi(){var e=getGAClientID_3LEPUi();return gcid_attempts_3LEPUi++,!e&&gcid_attempts_3LEPUi<60?(setTimeout(checkGAClientID_3LEPUi,200),!1):!!e&&void(user_data_3LEPUi.referral_log_id&&getAdvNum_3LEPUi())}function yidTimer_3LEPUi(){var e=getYclid_3LEPUi();if(yclid_attempts_3LEPUi++,!e&&yclid_attempts_3LEPUi<60)return setTimeout(yidTimer_3LEPUi,200),!1;e&&getAdvNum_3LEPUi()}function advNumReady_3LEPUi(e){"REFERRAL_LOG_ID"in e&&"ADVERTISEMENT_TEL_NUMBER"in e&&(user_data_3LEPUi.referral_log_id=e.REFERRAL_LOG_ID,user_data_3LEPUi.adv_tel_number=e.ADVERTISEMENT_TEL_NUMBER,user_data_3LEPUi.actualized=(new Date).getTime(),saveData_3LEPUi(user_data_3LEPUi)),!user_data_3LEPUi.google_client_id&&user_data_3LEPUi.referral_log_id&&checkGAClientID_3LEPUi(),user_data_3LEPUi.yandex_client_id||yidTimer_3LEPUi()}function getAdvNum_3LEPUi(){user_data_3LEPUi.google_client_id||(user_data_3LEPUi.google_client_id=getGAClientID_3LEPUi()),user_data_3LEPUi.yandex_client_id||(user_data_3LEPUi.yandex_client_id=getYclid_3LEPUi());var e="https://api.sunsim.ru/call-tracking/get-adv-num2";e+="?referral_log_id="+encodeURIComponent(user_data_3LEPUi.referral_log_id)+"&utm="+encodeURIComponent(user_data_3LEPUi.utm)+"&full_url="+encodeURIComponent(user_data_3LEPUi.full_url)+"&google_client_id="+encodeURIComponent(user_data_3LEPUi.google_client_id)+"&referral_code="+encodeURIComponent(user_data_3LEPUi.referral_code)+"&yandex_client_id="+encodeURIComponent(user_data_3LEPUi.yandex_client_id),user_data_3LEPUi.region&&(e+="®ion="+encodeURIComponent(user_data_3LEPUi.region)),operator_3LEPUi&&(e+="&operator="+encodeURIComponent(operator_3LEPUi));var t=document.createElement("script");t.setAttribute("src",e),t.onload=t.onerror=setAdvNum_3LEPUi,document.getElementsByTagName("head")[0].appendChild(t)}function setAdvNum_3LEPUi(){var e=document.getElementsByClassName("js-adv-ctcode-"+referral_code_3LEPUi);if(e.length||(e=document.getElementsByClassName("js-adv-num")),user_data_3LEPUi.adv_tel_number&&user_data_3LEPUi.adv_tel_number.length)for(var t=0;t=0;d--)/\d/.test(r[d])&&n=REQUEST_TIMEOUT?getAdvNum_3LEPUi():setAdvNum_3LEPUi()}));