!function(){"use strict";var e=function(){var e="phone",t=["phone","tel"],n=["PHONE","TEL","phone","tel","telephone","mobile","телефон","номер","user_phone"],r=["Телефон","+7 (___) ___-____","Ваш телефон","+7 (XXX)-XXX-XX-XX","Номер телефона"],o=["name","fio","NAME","FIO"],i=["name","fio","NAME","FIO"],a=["name","fio","имя","фио","Ваше имя"],u=["email"],c=["email","mail","почта","e-mail"],m=["email","mail","почта","Ваша почта","Ваш e-mail","Ваш email","e-mail","E-mail","Email"],l=function(e,t,n){return t.some((function(t){return e.getAttribute(n)===t}))},f=function(e,t,n){return!!e.getAttribute(n)&&-1!==e.getAttribute(n).toLowerCase().search(t.toLowerCase())},s=function(e){return e&&"SELECT"===e.tagName?p(e.options[e.options.selectedIndex]):p(e)},p=function(e){return e?e.getAttribute("data-callkeeper")||e.getAttribute("data-callkeeper_name")||e.getAttribute("data-callkeeper_param")||e.getAttribute("data-callkeeper_office")||e.getAttribute("data-callkeeper_tel")||e.value||e.innerText.trim():null};return Object.freeze({isSubmitElement:function e(t,n){return t&&("submit"===t.getAttribute("type")||t&&"button"===t.getAttribute("type")||Array.from(t.classList).some((function(e){return-1!==e.indexOf("submit")||"CKFormTrigger"===e}))||n&&n.some((function(e){return Array.from(document.querySelectorAll(e.form+" "+e.formTrigger)).some((function(e){return e===t}))}))||"SPAN"===t.tagName&&t.parentElement&&e(t.parentElement,n))},getValueOrCkAttr:s,getPhone:function(o){return s(o.filter((function(o){return function(o){return l(o,t,"type")||l(o,n,"name")||l(o,r,"placeholder")||f(o,e,"name")||f(o,e,"id")}(o)}))[0])},findParentForm:function e(t,n){return t&&function(e,t){return Array.from(document.forms).some((function(t){return t===e}))||t&&t.some((function(t){return Array.from(document.querySelectorAll(t.form)).some((function(t){return t===e}))}))}(t,n)?t:t&&e(t.parentElement,n)},getPerson:function(e){return s(e.filter((function(e){return function(e){return l(e,o,"type")||l(e,i,"name")||l(e,a,"placeholder")}(e)}))[0])},getEmail:function(e){return s(e.filter((function(e){return function(e){return l(e,u,"type")||l(e,c,"name")||l(e,m,"placeholder")}(e)}))[0])}})};!function(t){var n=1e4,r=e();function o(e){var t,r=window.location.origin+window.location.pathname,o=new Date,i=(t=Array.from(document.querySelectorAll("script")).find((function(e){return-1!==e.src.indexOf("vip.callkeeper.ru")})))?t.src:"script_tag_not_found",a="\n\r path: ".concat(r,", \n\r time: ").concat(o,", \n\r name: ").concat(i);switch(e){case"submit":return"Формэкшен не обработал событие submit, ".concat(a);case"loaded":return"Формэкшен не загрузился за ".concat(n/1e3," секунд, ").concat(a)}}function i(e,t){var n=new XMLHttpRequest,r="filename=filename&message=message&stack="+e+"&hostname="+window.location.hostname+window.location.pathname+"&widget="+window.callkeeper_code+"&user-agent="+window.navigator.userAgent;n.open("POST",t,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(r)}function a(e){setTimeout((function(){if(window.ckFormaction&&(m=e.target,!Array.from(document.querySelectorAll(".callkeeperWidget_popup_small-wrapper form, .callkeeperMain form, .ck_popup_holder form")).some((function(e){return e===m})))&&!function(e,t){return!!t&&Array.from(document.querySelectorAll(t)).some((function(t){return t===e}))}(e.target,window.ckFormaction.userData.lockedForms)&&!("number"==typeof(c=window.ckFormaction.ckFormLastRequest)&&(new Date).getTime()-c<500)){var n=r.getPhone(Array.from(e.target.querySelectorAll("input")));(u=n)&&"string"==typeof u&&/^(8|7)[\d]{10}$/.test(u.replace(/\D/g,""))&&(i(o("submit"),t),document.removeEventListener("submit",a))}var u,c,m}),0)}document.addEventListener("submit",a),setTimeout((function(){window.ckFormaction||(i(o("loaded"),t),document.removeEventListener("submit",a))}),n)}("//callkeeper.ru/components/fedorov/errors_logged/entry_points/error_server.php")}(); !function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=function(){var e,t=function(){return Array.from(document.querySelectorAll("input"))},n=function(){return t().length},r=function(e){return e.target.wasFocus=!0},o=function(e){return function(e){return e.forEach((function(e){return e.removeEventListener("focus",r),e.addEventListener("focus",r)}))}(e)};return setInterval((function(){e!==n()&&(e=n(),o(t()))}),1e3),Object.freeze({getFocused:function(e){return e&&Array.from(e.querySelectorAll("input")).filter((function(e){return e instanceof HTMLInputElement&&e.wasFocus}))},getAll:function(e){return e&&Array.from(e.querySelectorAll("input")).filter((function(e){return e instanceof HTMLInputElement}))}})},n=function(){var e="phone",t=["phone","tel"],n=["PHONE","TEL","phone","tel","telephone","mobile","телефон","номер","user_phone"],r=["Телефон","+7 (___) ___-____","Ваш телефон","+7 (XXX)-XXX-XX-XX","Номер телефона"],o=["name","fio","NAME","FIO"],a=["name","fio","NAME","FIO"],l=["name","fio","имя","фио","Ваше имя"],c=["email"],i=["email","mail","почта","e-mail"],u=["email","mail","почта","Ваша почта","Ваш e-mail","Ваш email","e-mail","E-mail","Email"],m=function(e,t,n){return t.some((function(t){return e.getAttribute(n)===t}))},f=function(e,t,n){return!!e.getAttribute(n)&&-1!==e.getAttribute(n).toLowerCase().search(t.toLowerCase())},s=function(e){return e&&"SELECT"===e.tagName?d(e.options[e.options.selectedIndex]):d(e)},d=function(e){return e?e.getAttribute("data-callkeeper")||e.getAttribute("data-callkeeper_name")||e.getAttribute("data-callkeeper_param")||e.getAttribute("data-callkeeper_office")||e.getAttribute("data-callkeeper_tel")||e.value||e.innerText.trim():null};return Object.freeze({isSubmitElement:function e(t,n){return t&&("submit"===t.getAttribute("type")||t&&"button"===t.getAttribute("type")||Array.from(t.classList).some((function(e){return-1!==e.indexOf("submit")||"CKFormTrigger"===e}))||n&&n.some((function(e){return Array.from(document.querySelectorAll(e.form+" "+e.formTrigger)).some((function(e){return e===t}))}))||"SPAN"===t.tagName&&t.parentElement&&e(t.parentElement,n))},getValueOrCkAttr:s,getPhone:function(o){return s(o.filter((function(o){return function(o){return m(o,t,"type")||m(o,n,"name")||m(o,r,"placeholder")||f(o,e,"name")||f(o,e,"id")}(o)}))[0])},findParentForm:function e(t,n){return t&&function(e,t){return Array.from(document.forms).some((function(t){return t===e}))||t&&t.some((function(t){return Array.from(document.querySelectorAll(t.form)).some((function(t){return t===e}))}))}(t,n)?t:t&&e(t.parentElement,n)},getPerson:function(e){return s(e.filter((function(e){return function(e){return m(e,o,"type")||m(e,a,"name")||m(e,l,"placeholder")}(e)}))[0])},getEmail:function(e){return s(e.filter((function(e){return function(e){return m(e,c,"type")||m(e,i,"name")||m(e,u,"placeholder")}(e)}))[0])}})},r=function(){var e=o("calltouch_phone");return e.length&&window[e[0]]},o=function(e){return Object.keys(window).filter((function(t){return t.includes(e)}))},a=function(){return"undefined"==typeof Comagic?"":"function"==typeof Comagic.getDTPhones&&Comagic.getDTPhones()&&Comagic.getDTPhones()[0].raw||"function"==typeof Comagic.getPhones&&Comagic.getPhones()&&Comagic.getPhones()[0].raw},l=function(e){return"string"==typeof e&&document.querySelector(e)?c(document.querySelector(e)):0},c=function(e){return e.value?e.value.replace(/\D/g,""):e.innerText.replace(/\D/g,"")||e.textContent.replace(/\D/g,"")},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,c=n(),i=t(),u=e.length&&e[0].replaceSelectors||[],m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object.freeze({getReplaceNumber:function(t){return l(e[t])},getIntegrationNumber:function(){return r()||a()}})}(u),f=function(t){return function(e){if(e&&e.getAttribute("data-phonemask-code")&&e.getAttribute("data-phonemask-current")){var t=e.getAttribute("data-phonemask-code"),n=e.getAttribute("data-phonemask-current");e.setAttribute("data-callkeeper_tel",t+n)}}(t),window.ckcl2&&(console.log("createFinder.findParentForm - element ",t),console.log("createFinder.findParentForm - form",c.findParentForm(t,e))),c.findParentForm(t,e)},s=function(e,t,n){return 0===e.length?[]:e.filter((function(e){return Array.from(document.querySelectorAll(e.form)).some((function(e){return e===n}))}))},d=function(e,t,n){var r,a=0===t.length?{}:t[0];if(t[0]&&Array.from(document.querySelectorAll(t[0].form)).some((function(t){return t===e})))r=e;else if(0===n.length&&e)r=e;else{if(!o.exclusiveLogicOff||!e)return!1;r=e}var l=a&&a.replaceNumber||null,f=Number(l&&c.getValueOrCkAttr(r.querySelector(l)));(!f||f<0||f>1e3)&&(f=0);var s=0;o.replacementActive&&u.length&&(s=m.getReplaceNumber(f)),o.integrationActive&&(s=m.getIntegrationNumber());var d=a.inputPhone?c.getValueOrCkAttr(r.querySelector(a.inputPhone)):c.getPhone(o.checkFocus?i.getFocused(r):i.getAll(r)),g=a.email?c.getValueOrCkAttr(r.querySelector(a.email)):c.getEmail(o.checkFocus?i.getFocused(r):i.getAll(r)),p=a.checkboxSelector&&r.querySelector(a.checkboxSelector)?r.querySelector(a.checkboxSelector).checked:"CHECKBOX_NOT_FOUND",y=null;return a.formName&&"bmw-id"===a.formName&&(y=r.id),{phone:d,person:a.inputName?c.getValueOrCkAttr(r.querySelector(a.inputName)):c.getPerson(o.checkFocus?i.getFocused(r):i.getAll(r)),niceTime:a.inputTime?c.getValueOrCkAttr(r.querySelector(a.inputTime)):null,formName:a.formName&&!y?c.getValueOrCkAttr(document.querySelector(a.formName)):y,email:g,additionalInfo:a.additionalInnerTextInfo?c.getValueOrCkAttr(r.querySelector(a.additionalInnerTextInfo)):null,manager:s,checkbox:p,office:f,timeToCall:a.timeToCall?c.getValueOrCkAttr(r.querySelector(a.timeToCall)):null}};return{isSubmitElement:function(t){return window.ckcl2&&console.log("createFinder.isSubmitElement",c.isSubmitElement(t,e)),c.isSubmitElement(t,e)},getCallDataForms:function(t){return"submit"===t.type?(n=t.target,d(n,s(e,n,n),e)):function(t){var n=f(t);return!!n&&d(f(t),s(e,t,n),e)}(t.target);var n},keydownLogic:function(t){var n=f(t);return d(n,s(e,t,n),e)},findParentForm:f,doesLockForm:function(t){var n=c.findParentForm(t,e);if(Array.from(document.querySelectorAll(".callkeeperWidget_popup_small-wrapper form, .callkeeperMain form, .ck_popup_holder form, .video-container form, #mainMobileBanner form")).some((function(e){return e===n})))return window.ckcl&&console.log("Prevent handle widget form"),!0;if(o&&o.lockedForms){var r=document.querySelectorAll(o.lockedForms);if(Array.from(r).some((function(e){return e===n})))return!0}return!1}}},u=function(){var e=function(e){return e||""},t=function(e,t){var n,r,o,a,l=encodeURIComponent(document.location.hostname),c=e.person?e.person:"Посетитель",i=e.formName?e.formName:"",u=e.email?e.email:"",m=e.additionalInfo?e.additionalInfo:"",f=e.timeToCall?e.timeToCall:(n=window.CallKeeper)&&n.f&&n.f.unitedWorkDayHours&&!1===n.f.unitedWorkDayHours().working&&n.f.nightStamp&&n.f.nightStamp()?n.f.nightStamp():"",s=e.newEventSource?e.newEventSource:28,d=e.utc?e.utc:(r=new Date,0<=(o=-r.getTimezoneOffset()/60)&&o<=9?"UTC+0".concat(o,":00"):-9<=o&&o<0?"UTC-0".concat(-o,":00"):o>=0?"UTC+".concat(o,":00"):"UTC".concat(o,":00")),g=e.textToManager?e.textToManager:window.ckFormaction.onlyName?"".concat(c):"".concat(c," заполнил форму ").concat(i," на сайте ").concat(l,". Подробности: ").concat(m);return"c_event_source=".concat(s)+"&unique=formaction&utc="+encodeURIComponent(d)+"&tool_name="+encodeURIComponent(i)+"&user_mail="+encodeURIComponent(u)+"&client="+encodeURIComponent(e.phone.replace(/\D+/g,""))+"&manager="+encodeURIComponent(e.manager)+"&office="+encodeURIComponent(e.office)+"&text_to_manager="+encodeURIComponent(g)+"&whash="+encodeURIComponent((a=t.widgetHash).length<=32?a:new Function(a)())+"&time_to_call="+encodeURIComponent(f)+window.ckGlobal.getRequestString()};return Object.freeze({makeRequest:function(n,r){var o=window.ckGlobal&&window.ckGlobal.getObj()&&window.ckGlobal.getObj().external_session.value?window.ckGlobal.getObj().external_session.value:0;n.exSession=o?o.replace(/ck_session_start=/g,"").replace(/;/g,""):"",n=function(t){return t.person=e(t.person),t.niceTime=e(t.niceTime),t.formName=e(t.formName),t.email=e(t.email),t.additionalInfo=e(t.additionalInfo),t.manager=e(t.manager),t}(n);var a,l,c=t(n,r);(window.ckcl&&console.log("createCaller.makeRequest",n,c),window.ckcl)||(a="//api.callkeeper.ru/orderFormAction?",l=c,(new Image).src=a+l.replace(/#/g,"/")+"&call_from_image=1")}})},m=function(e){var t,n=["UA-49208630-1","UA-51944696-1"],r=function(){var e=document.documentElement.innerHTML.match(/yaCounter(\d+)/gi)||[];try{return CallKeeper.p.yandexCounters?("yaCounter"+CallKeeper.p.yandexCounters.replace(/,/g,",yaCounter")).split(","):o().concat(e||[])}catch(t){return o().concat(e||[])}},o=function(){for(var e=document.documentElement.innerHTML,t=/(ym[\s\n\t\r]*\()[\s\n\t\r]*([0-9]*)[\s\n\t\r]*,/,n=e.match(t),r=[],o=0;null!==n&&"string"==typeof n[2]&&o++<100;)r.push("yaCounter"+n[2]),n=(e=e.substring(n.index+n[0].length)).match(t);return r};e.dataLayerPushed&&window.dataLayer&&window.dataLayer.push({event:"callkeeper-call_order-formaction",eventCategory:"callkeeper",eventAction:"call_order",eventLabel:"formaction"}),function(){if("undefined"!=typeof ga&&"function"==typeof ga.getAll){var e=ga.getAll();0!==e.length&&e.forEach((function(e){n.indexOf(-1===e.get("trackingId"))&&e.send({hitType:"event",eventCategory:"callkeeper",eventAction:"call_order",eventLabel:"formaction"})}))}}(),void 0===(t=r())&&(t=[]),t.forEach((function(e){try{window[e].reachGoal("callkeeper-call_order-formaction"),window[e].reachGoal("callkeeper-call_order")}catch(e){console.log("Yandex goal haven't been sent!")}}))},f=function(t,n){var r,o,a,l=i(t,n),c=function(e,t){var n=function(e){return!!e&&"string"==typeof e&&/^(8|7)[\d]{10}$/.test(e.replace(/\D/g,""))},r=function(e){return!t.replacementActive||parseInt(e)>=0||n(e)},o=function(e){return!t.checkboxValidationActive||e};return Object.freeze({isCallDataValid:function(e){return e&&n(e.phone)&&o(e.checkbox)&&r(e.manager)}})}(0,n),f=u(),s=(r=c,o={},a=new Map,setInterval((function(){return o={}}),1e4),{getCallData:function(){return o},setCallData:function(e){return!!r.isCallDataValid(e)&&(o=e)},isCalled:function(t){return"object"===e(t)&&!a.get(t)},setCalled:function(e){return a.set(e,"call")}});return{isSubmitElement:function(){return l.isSubmitElement},startCall:function(e){if(window.ckcl&&console.log("createCallAssembler.startCall store =",s.getCallData()),n.workingHours&&!function(e){var t=null;return e.split("-").forEach((function(e){var n=+e.split("^")[0],r=new Date;if(n===r.getDay()||7===n&&0===r.getDay()){var o=e.split("^")[1].split(":");t=r.getHours()>=o[0]&&r.getHours(){},o={utm_source:{value:"",description:"Источник трафика, из которого сделан переход",access:"manager",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},utm_medium:{value:"",description:"Тип трафика",access:"manager",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},utm_campaign:{value:"",description:"Название рекламной кампании",access:"manager",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},utm_term:{value:"",description:"Ключевая фраза в кампании",access:"manager",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},utm_content:{value:"",description:"Содержание кампании (дополнительная информация)",access:"manager",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},date:{value:"",description:"Дата и время входа посетителя на сайт",access:"all",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},referrer:{value:"",description:"Адрес страницы, откуда пришёл посетитель",access:"all",overwrite:"always",available:"immediately",isCollected:e,callbackFunction:t},entry_point_referrer:{value:"",description:"Первый адрес страницы, откуда пришёл посетитель",access:"all",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},entry_point_protocol:{value:"",description:"Точка входа посетителя. Часть URL, содержащая протокол",access:"developer",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},entry_point_host:{value:"",description:"Точка входа посетителя. Часть URL, содержащая доменное имя",access:"developer",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},entry_point_path:{value:"",description:"Точка входа посетителя. Часть URL, содержащая путь",access:"developer",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},entry_point_query_string:{value:"",description:'Точка входа посетителя. Часть URL, которая следует после "?" (включая "?")',access:"developer",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},user_agent:{value:"",description:"Строка, содержащая данные о браузере и операционной системе пользователя",access:"developer",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},history_length:{value:"",description:"Количество элементов в истории сессии",access:"developer",overwrite:"always",available:"immediately",isCollected:e,callbackFunction:t},visit_session_hash:{value:"",description:"Уникальный ID сессии аналитики CallKeeper",access:"developer",overwrite:"last_not_empty",available:"cookie: CallKeeper_visit_session_hash || ls: CallKeeper_visit_session_hash || sessionStorage.CallKeeper_visit_session_hash",isCollected:e,callbackFunction:t},unique_user_session_id:{value:"",description:"Уникальный ID пользователя (генерируется для сессии)",access:"developer",overwrite:"never",available:"immediately",isCollected:e,callbackFunction:t},client_session_user_id:{value:"",description:"Уникальный ID клиента аналитики CallKeeper",access:"developer",overwrite:"never",available:"cookie: CallKeeper_client_session_user_hash",isCollected:e,callbackFunction:t},ga_client_id:{value:"",description:"ID, который Google Analytics присваивает каждому уникальному посетителю сайта",access:"developer",overwrite:"last_not_empty",available:'ga.getAll().get("clientId") || cookie: _ga',isCollected:e,callbackFunction:t},ya_client_id:{value:"",description:"ID, который Яндекс.Метрика присваивает каждому уникальному посетителю сайта",access:"developer",overwrite:"last_not_empty",available:"yaCounter.getClientID()",isCollected:e,callbackFunction:t},gclid:{value:"",description:"ID клика Google Analytics, полученный в результате авторазметки ссылок",access:"developer",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},yclid:{value:"",description:"ID клика Яндекс.Метрики, полученный в результате авторазметки ссылок",access:"developer",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},ga_count_id:{value:"",description:"ID счетчиков Google Analytics",access:"developer",overwrite:"last_not_empty",available:'ga.getAll().get("trackingId") || cookie: _gac_',isCollected:e,callbackFunction:t},ym_count_id:{value:"",description:"ID счетчиков Яндекс.Метрики",access:"developer",overwrite:"last_not_empty",available:"yaCounter(ID)",isCollected:e,callbackFunction:t},roistat_id:{value:"",description:"ID сессии Roistat",access:"developer",overwrite:"last_not_empty",available:"roistat.visit",isCollected:e,callbackFunction:t},smartis_session:{value:"",description:"ID сессии Smartis",access:"developer",overwrite:"last_not_empty",available:"smAnalytics.getSessionId()",isCollected:e,callbackFunction:t},comagic_session_id:{value:"",description:"ID сессии Comagic",access:"developer",overwrite:"last_not_empty",available:"Comagic.getSessionId()",isCollected:e,callbackFunction:t},calltouch_session_id:{value:"",description:"ID сессии Calltouch",access:"developer",overwrite:"last_not_empty",available:"call_value",isCollected:e,callbackFunction:t},external_session:{value:"",description:"ID сессии, который генерируется при открытии виджета",access:"developer",overwrite:"last_not_empty",available:"cookie: ck_session_start",isCollected:e,callbackFunction:t},current_protocol:{value:"",description:"Текущая страница посетителя. Часть URL, содержащая протокол",access:"developer",overwrite:"always",available:"immediately",isCollected:e,callbackFunction:t},current_host:{value:"",description:"Текущая страница посетителя. Часть URL, содержащая доменное имя",access:"developer",overwrite:"always",available:"immediately",isCollected:e,callbackFunction:t},current_path:{value:"",description:"Текущая страница посетителя. Часть URL, содержащая путь",access:"developer",overwrite:"always",available:"immediately",isCollected:e,callbackFunction:t},current_query_string:{value:"",description:'Текущая страница посетителя. Часть URL, которая следует после "?" (включая "?")',access:"developer",overwrite:"always",available:"immediately",isCollected:e,callbackFunction:t},ip_client:{value:"",description:"IP адрес посетителя",access:"developer",overwrite:"always",available:"CallKeeper.u.geoLocation.ip",isCollected:e,callbackFunction:t},country:{value:"",description:"Страна посетителя",access:"developer",overwrite:"never",available:"CallKeeper.u.geoLocation.country",isCollected:e,callbackFunction:t},city:{value:"",description:"Город посетителя",access:"developer",overwrite:"never",available:"CallKeeper.u.geoLocation.city",isCollected:e,callbackFunction:t},region:{value:"",description:"Регион посетителя",access:"developer",overwrite:"never",available:"CallKeeper.u.geoLocation.region",isCollected:e,callbackFunction:t},visit_hash:{value:"",description:"Уникальный хеш посетителя. Генерируется при каждой перезагрузке страницы",access:"developer",overwrite:"always",available:"immediately",isCollected:e,callbackFunction:t},ct_server_hash:{value:"",description:"Хеш скрипта Calltracking",access:"developer",overwrite:"last_not_empty",available:"ckCalltrackingPubicApi.getServerHash()",isCollected:e,callbackFunction:t},ct_session_id:{value:"",description:"ID сессии Calltracking",access:"developer",overwrite:"last_not_empty",available:"ckCalltrackingPubicApi.getSessionId()",isCollected:e,callbackFunction:t},ck_manager_phone:{value:"",description:"Подменный номер телефона менеджера",access:"developer",overwrite:"last_not_empty",available:"ck_manager_phone || calltouch_phone",isCollected:e,callbackFunction:t},ck_manager_phone_type:{value:"",description:"Тип подменного номера телефона менеджера",access:"developer",overwrite:"last_not_empty",available:"ck_params40 || ck_params41 || ck_params38 || ck_params51",isCollected:e,callbackFunction:t},store_date:{value:"",description:"Дата и время сохранения полученных данных",access:"developer",overwrite:"always",available:"after 3 seconds",isCollected:e,callbackFunction:t},fbclid:{value:"",description:"Параметр, который Facebook добавляет к URL при клике по ссылке в социальной сети",access:"developer",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},rb_clickid:{value:"",description:"ID клика My Target",access:"developer",overwrite:"last_not_empty",available:"immediately",isCollected:e,callbackFunction:t},source_type:{value:"",description:"Тип источника трафика",access:"developer",overwrite:"last_not_empty",available:"cookie: ck_sbjs_current typ",isCollected:e,callbackFunction:t},whash:{value:"",description:"Хеш виджета",access:"developer",overwrite:"last_not_empty",available:"callkeeper_code",isCollected:e,callbackFunction:t},rt_referral_path:{value:"",description:"Путь к странице, на которой находится ссылка для перехода. Это значение задается только в том случае, если rt_medium=referral.",access:"developer",overwrite:"last_not_empty",available:"document.referrer",isCollected:e,callbackFunction:t},rt_campaign:{value:"",description:"Значение параметра utm_campaign. В остальных случаях имеет значение (not set).",access:"developer",overwrite:"last_not_empty",available:"utm_campaign",isCollected:e,callbackFunction:t},rt_source:{value:"",description:"Значение параметра utm_source. В остальных случаях содержит домен источника перехода на ваш ресурс. Если URL перехода не был задействован, имеет значение (direct).",access:"developer",overwrite:"last_not_empty",available:"utm_source || document.referrer",isCollected:e,callbackFunction:t},rt_medium:{value:"",description:"Значение параметра utm_medium. Если переход из поисковой системы, имеет значение organic. Если поисковая система не является источником перехода, имеет значение referral. Если пользователь перешел на ресурс напрямую - имеет значение (direct).",access:"developer",overwrite:"last_not_empty",available:"utm_medium || source_type",isCollected:e,callbackFunction:t},rt_traffic_type:{value:"",description:"Аналог параметра rt_medium для постоянных значений, таких как organic, referral, direct и т. д. Для источников перехода специального типа имеет другие значения. Например, если добавить к URL параметр utm_campaign со значением email, параметр rt_medium будет иметь значение email, а параметр rt_traffic_type – custom.",access:"developer",overwrite:"last_not_empty",available:"source_type",isCollected:e,callbackFunction:t},rt_keyword:{value:"",description:"Значение параметра utm_term. В остальных случаях имеет значение (not set).",access:"developer",overwrite:"last_not_empty",available:"utm_term",isCollected:e,callbackFunction:t}},a=(e,t)=>{e[t]&&(e.isCollected="collected_now")},n=(e,t)=>{e[t]&&(e.isCollected="collected_from_cookie")},l=(e,t)=>{"never"!==e.overwrite||e.value?"always"===e.overwrite||"last_not_empty"===e.overwrite?t():"never"===e.overwrite&&e.value&&n(e,"value"):t()},i=(e,t)=>setTimeout((function(){clearInterval(e)}),t),r=(e,t)=>{const o={};return Object.entries(e).forEach((function(e){o[e[0]]=e[1][t]})),o},c=e=>{let t=e;return t.length>300&&(t=t.split("?")[0],t.length>300&&(t=e.split("/").slice(0,3).join("/"))),window.ck_params44&&(console.log("ref",e),console.log("cutRef",t)),t},s=e=>{let t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t&&t[1]?decodeURIComponent(t[1]):void 0},u={utm_source:"src",utm_campaign:"cmp",utm_medium:"mdm",utm_content:"cnt",utm_term:"trm",referrer:"rf"};let _=!1;const d=(e,t)=>{let o=setInterval((function(){void 0!==e&&void 0!==e.ckGlobal&&e.ckGlobal.paramsReady&&(m("ck_params_cookie",t),p("unique_user_session_id",t.unique_user_session_id.value),clearInterval(o),_=!0)}),500)},p=(e,t)=>{const o=`${encodeURIComponent(e)}=${encodeURIComponent(t)};`,a=window.location.hostname.split(".").reverse(),n=`domain=${a[1]}.${a[0]};`;let l=new Date;l.setTime(l.getTime()+18e5);const i=`expires=${l.toUTCString()};`;document.cookie=o+i+n+"path=/;"},m=(e,t)=>{const o=encodeURIComponent(e)+"=",a=(e=>{const t=r(e,"value");t.current_protocol="",t.current_path="",t.current_query_string="",t.user_agent="",t.referrer=c(t.referrer),t.entry_point_referrer=c(t.entry_point_referrer),t.entry_point_query_string.length>300&&(t.entry_point_query_string=""),Object.keys(t).forEach((function(e){(0!==t[e]&&!t[e]||"undefined"===t[e])&&(t[e]="")}));const o=Array.from(Object.values(t)).join("\0");return encodeURIComponent(o)})(t)+";",n=window.location.hostname.split(".").reverse(),l=`domain=${n[1]}.${n[0]};`;let i=new Date;i.setTime(i.getTime()+18e5);const s=`expires=${i.toUTCString()};`;document.cookie=o+a+s+l+"path=/;"},v=(e,t)=>{const o=encodeURIComponent(e)+"=",a=(e=>{let t=[];return Object.keys(e).forEach((function(o){if(u[o]&&e[o].value&&"undefined"!==e[o].value&&"collected_now"===e[o].isCollected){let a=e[o].value;"referrer"===o&&(a=c(a)),t.push(u[o]+"="+a)}})),encodeURIComponent(t.join("\0"))})(t)+";",n=window.location.hostname.split(".").reverse(),l=`domain=${n[1]}.${n[0]};`;let i=new Date;i.setTime(i.getTime()+15552e6);const r=`expires=${i.toUTCString()};`;document.cookie=o+a+r+l+"path=/;"},g=()=>{let e=s("unique_user_session_id"),t=s("ck_params_cookie");p("unique_user_session_id",e),p("ck_params_cookie",t)};(()=>{let e=setInterval((function(){_&&(document.addEventListener("scroll",g),document.addEventListener("click",g),clearInterval(e))}),500)})();const f=(e,t,n)=>{void 0!==n&&n&&"undefined"!==n&&(e[t]=n,a(e,t),m("ck_params_cookie",o))},y=(e,t,o)=>{const a=e=>String(e).length<=10;let n=0,l=setInterval((function(){if(e){const i=s("_ct_session_id"),r=e.call_value,c=((e,t)=>{const o=e[Object.keys(e).find(e=>new RegExp("^"+t).test(e))];return"string"==typeof o||"number"===o?o:""})(e,"call_value");r&&a(r)?(clearInterval(l),f(t,o,r)):c?(clearInterval(l),f(t,o,c)):i&&a(i)?(clearInterval(l),f(t,o,i)):!n&&(r&&!a(r)||i&&!a(i))&&(n++,(e=>{let t=new XMLHttpRequest,o="filename=filename&message=message&stack="+e+"&hostname="+window.location.hostname+window.location.pathname+"&widget="+window.callkeeper_code+"&user-agent="+window.navigator.userAgent;t.open("POST","//callkeeper.ru/components/fedorov/errors_logged/entry_points/error_server.php",!0),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.send(o)})(`CALLTOUCH call_value: ${r}; _ct_session_id from cookie: ${i}`))}}),500);i(l,45e3)},k=(e,t,o)=>{let a=setInterval((function(){if(e.ck_manager_phone)clearInterval(a),f(t,o,e.ck_manager_phone);else if(e.calltouch_phone)clearInterval(a),f(t,o,e.calltouch_phone);else if(e.calltouch_phone_1){clearInterval(a);let n=[];Array.from(Object.keys(e)).forEach((function(e){-1!==e.indexOf("calltouch_phone_")&&n.push(this[e])}),e),f(t,o,n)}}),500);i(a,45e3)},C=e=>{let t=!1;const o=e?e.split("/")[2]:"",a=o?o.split(".").reverse():"",n=a?a[1]:"";return["bing","yahoo","rambler","tut","yandex","google"].forEach((function(e){n===e&&(t=!0)})),t},h=(e,t)=>{e.utm_source[t]="",e.utm_medium[t]="",e.utm_campaign[t]="",e.utm_content[t]="",e.utm_term[t]=""};let b=!1;const I=(e,t)=>{b=!0;const o=s(e);o&&((e,t)=>{e.split("\0").map(e=>e.split("=")).forEach((function(e){Object.keys(u).forEach((function(o){e[0]===u[o]&&e[1]&&"undefined"!==e[1]&&(t[o].value=e[1],n(t[o],"value"))}))}))})(o,t)};let w=!1;const R=(e,t)=>{let o="",a=!1,n=0;if(void 0!==e&&e&&e.location&&e.location.search){const a=e.location.search.substring(1).split("&");a&&a.forEach((function(e){let a=e.split("=");a[0]===t&&void 0!==a[1]&&a[1]&&("utm_source"===t&&(w=!0),o=a[1])}))}o=o.replace(/\+/g," ");do{try{return decodeURIComponent(o),a=!0,decodeURIComponent(o)}catch(e){n++,o=o.substring(0,o.length-n)}}while(!1===a)};let U=!1;const K=(e,t,n)=>{let l=new XMLHttpRequest;l.open("GET","//api.callkeeper.ru/getUserIp",!0),l.send(),l.onreadystatechange=function(){if(4===l.readyState&&200===l.status)try{const i=JSON.parse(l.responseText.replace(/ /g,"").split("=")[2].slice(0,-1));i&&n&&(i.city&&(n.city.value=i.city),i.iso_code&&(n.country.value=i.iso_code),i.ip&&(n.ip_client.value=i.ip),i.region&&(n.region.value=i.region),U=!0,a(e,t),m("ck_params_cookie",o))}catch(e){console.log(e)}}},F=()=>{let e=document.cookie.match("(?:^|;)\\s*_ga=([^;]*)"),t=e?decodeURIComponent(e[1]):null;t&&(e=t.match(/(\d+\.\d+)$/));let o=e?e[1]:null;if(o)return o},S=()=>{let e=[];if(document.cookie.split("; ").forEach((function(t){-1!==t.indexOf("_gac_")&&e.push(t.split("=")[0].split("gac_")[1])})),e.length)return e},A=({delimiter:e="_",base:t=36,from:o=2,length:a=8,index:n=1})=>{let l="";if(1===n)return e+Math.random().toString(t).substr(o,a);for(;n;)l+=A({delimiter:e,base:t,from:o,length:a}),n--;return l.replace("0","1")},L="CallKeeper_visit_session_hash",E=(e,t)=>{if(e&&e.localStorage&&e.localStorage.getItem(t))return e.localStorage.getItem(t)},q=(e,t)=>Array.from(Object.keys(t)).filter((function(t){return-1!==t.indexOf(e)})),j=(e,t)=>{if(e&&e.localStorage&&e.localStorage.getItem(t))return e.localStorage.getItem(t).replace(/\D+/g,"")},O=()=>"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0,$=O(),D=()=>y($,o.calltouch_session_id,"value"),x=()=>((e,t,o)=>{let a=setInterval((function(){e&&void 0!==e.ckCalltrackingPubicApi&&!0!==e.asd23kmr_callKeeper&&"function"==typeof e.ckCalltrackingPubicApi.getServerHash&&e.ckCalltrackingPubicApi.getServerHash()&&(clearInterval(a),f(t,o,e.ckCalltrackingPubicApi.getServerHash()))}),500);i(a,45e3)})($,o.ct_server_hash,"value"),T=()=>((e,t,o)=>{let a=setInterval((function(){e&&void 0!==e.ckCalltrackingPubicApi&&"function"==typeof e.ckCalltrackingPubicApi.getSessionId&&e.ckCalltrackingPubicApi.getSessionId()&&(clearInterval(a),f(t,o,e.ckCalltrackingPubicApi.getSessionId()))}),500);i(a,45e3)})($,o.ct_session_id,"value"),G=()=>k($,o.ck_manager_phone,"value"),P=()=>((e,t,o)=>{let a=setInterval((function(){void 0!==e.ck_params40&&1===e.ck_params40||"undefined"!=typeof CallKeeper&&void 0!==CallKeeper.a&&void 0!==CallKeeper.a.isMobile&&CallKeeper.a.isMobile&&void 0!==e.ck_params38&&1===e.ck_params38?(clearInterval(a),f(t,o,"Comagic")):(void 0!==e.ck_params41&&1===e.ck_params41||"undefined"!=typeof CallKeeper&&void 0!==CallKeeper.a&&void 0!==CallKeeper.a.isMobile&&CallKeeper.a.isMobile&&void 0!==e.ck_params51&&1===e.ck_params51||e.calltouch_phone||e.calltouch_phone_1)&&(clearInterval(a),f(t,o,"Calltouch"))}),500);i(a,45e3)})($,o.ck_manager_phone_type,"value"),M=()=>((e,t,o)=>{let a=setInterval((function(){s("CallKeeper_client_session_user_hash")&&(clearInterval(a),f(t,o,s("CallKeeper_client_session_user_hash")))}),500);i(a,45e3)})(0,o.client_session_user_id,"value"),H=()=>((e,t,o)=>{let a=setInterval((function(){"undefined"!=typeof Comagic&&"function"==typeof Comagic.getSessionId&&Comagic.getSessionId()&&(clearInterval(a),f(t,o,Comagic.getSessionId()))}),500);i(a,45e3)})(0,o.comagic_session_id,"value"),J=()=>((e,t,o)=>{e&&f(t,o,e.location.protocol)})($,o.current_protocol,"value"),N=()=>((e,t,o)=>{e&&f(t,o,e.location.hostname)})($,o.current_host,"value"),z=()=>((e,t,o)=>{e&&f(t,o,e.location.pathname)})($,o.current_path,"value"),X=()=>((e,t,o)=>{e&&e.location.search?f(t,o,e.location.search):f(t,o," ")})($,o.current_query_string,"value"),W=()=>((e,t,a)=>{if(e&&document.referrer){const n=document.referrer.split("/")[2],l=n?n.split(".").reverse():"",i=l?`${l[1]}.${l[0]}`:"",r=document.location.hostname.split(".").reverse(),c=`${r[1]}.${r[0]}`;(i!==c&&C(document.referrer)||i!==c&&b)&&(f(t,a,e.document.referrer),v("ck_params_long_time",o))}else t[a]||f(t,a," ")})($,o.referrer,"value"),B=()=>{return e=o.entry_point_referrer,t="value",void(document&&document.referrer?f(e,t,document.referrer):f(e,t," "));var e,t},Q=()=>((e,t,o)=>{e&&e.navigator&&e.navigator.userAgent&&f(t,o,e.navigator.userAgent)})($,o.user_agent,"value"),V=()=>((e,t,o)=>{e&&f(t,o,e.history.length)})($,o.history_length,"value"),Y=()=>((e,t,o)=>{const a=(new Date).toJSON().replace("T"," ").split(".")[0];f(t,o,a)})(0,o.date,"value"),Z=()=>{return e=o.entry_point_protocol,t="value",void(document&&document.location&&document.location.protocol&&f(e,t,document.location.protocol));var e,t},ee=()=>{return e=o.entry_point_host,t="value",void(document&&document.location&&document.location.hostname&&f(e,t,document.location.hostname));var e,t},te=()=>{return e=o.entry_point_path,t="value",void(document&&document.location&&document.location.pathname&&f(e,t,document.location.pathname));var e,t},oe=()=>{return e=o.entry_point_query_string,t="value",void(document&&document.location&&document.location.search?f(e,t,document.location.search):f(e,t," "));var e,t},ae=()=>((e,t,o)=>{let a=setInterval((function(){let e=s("ck_session_start");e&&(clearInterval(a),f(t,o,e))}),500);i(a,45e3)})(0,o.external_session,"value"),ne=()=>((e,t,o)=>{const a=R(e,"fbclid");a&&f(t,o,a)})($,o.fbclid,"value"),le=()=>((e,t,o)=>{let a=setInterval((function(){void 0!==e.CallKeeper&&void 0!==e.CallKeeper.u&&void 0!==e.CallKeeper.u.geoLocation&&e.CallKeeper.u.geoLocation.city&&(clearInterval(a),f(t,o,e.CallKeeper.u.geoLocation.city))}),500);i(a,45e3)})($,o.city,"value"),ie=()=>((e,t,o)=>{let a=setInterval((function(){void 0!==e.CallKeeper&&void 0!==e.CallKeeper.u&&void 0!==e.CallKeeper.u.geoLocation&&e.CallKeeper.u.geoLocation.iso_code&&(clearInterval(a),f(t,o,e.CallKeeper.u.geoLocation.iso_code))}),500);i(a,45e3)})($,o.country,"value"),re=()=>((e,t,a)=>{let n=setInterval((function(){void 0!==e.CallKeeper&&void 0!==e.CallKeeper.u&&void 0!==e.CallKeeper.u.geoLocation&&e.CallKeeper.u.geoLocation.ip&&(clearInterval(n),f(t,a,e.CallKeeper.u.geoLocation.ip),U=!0)}),500);i(n,2e3),setTimeout((function(){U||K(t,a,o)}),2e3),setTimeout((function(){U=!0}),5e3)})($,o.ip_client,"value"),ce=()=>((e,t,o)=>{let a=setInterval((function(){void 0!==e.CallKeeper&&void 0!==e.CallKeeper.u&&void 0!==e.CallKeeper.u.geoLocation&&e.CallKeeper.u.geoLocation.region&&(clearInterval(a),f(t,o,e.CallKeeper.u.geoLocation.region))}),500);i(a,45e3)})($,o.region,"value"),se=()=>((e,t,o)=>{let a=setInterval((function(){void 0!==e&&e.ga&&e.ga.getAll&&"function"==typeof e.ga.getAll&&ga.getAll()[0]&&ga.getAll()[0].get("clientId")?(clearInterval(a),f(t,o,ga.getAll()[0].get("clientId"))):F()&&(clearInterval(a),f(t,o,F()))}),500);i(a,45e3)})($,o.ga_client_id,"value"),ue=()=>((e,t,o)=>{let a=setInterval((function(){let n=[];e&&e.ga&&e.ga.getAll&&"function"==typeof e.ga.getAll?(clearInterval(a),Array.from(ga.getAll()).forEach((function(e){e.get("trackingId")&&n.push(e.get("trackingId"))})),f(t,o,n)):S()&&(clearInterval(a),f(t,o,S()))}),500);i(a,45e3)})($,o.ga_count_id,"value"),_e=()=>((e,t,o)=>{const a=R(e,"gclid");a&&f(t,o,a)})($,o.gclid,"value"),de=()=>((e,t,o)=>{const a=R(e,"rb_clickid");a&&f(t,o,a)})($,o.rb_clickid,"value"),pe=()=>((e,t,o)=>{let a=setInterval((function(){void 0!==e.roistat&&e.roistat.visit&&(clearInterval(a),f(t,o,e.roistat.visit))}),500);i(a,6e5)})($,o.roistat_id,"value"),me=()=>((e,t,o)=>{setTimeout((function(){let a=setInterval((function(){if(e&&e.ckGlobal&&U){clearInterval(a);const n=(new Date).toJSON().replace("T"," ").split(".")[0];f(t,o,n),e.ckGlobal.paramsReady=!0}}),500)}),5e3)})($,o.store_date,"value"),ve=()=>((e,t,o)=>{let a=setInterval((function(){e.smAnalytics&&"function"==typeof e.smAnalytics.getSessionId&&e.smAnalytics.getSessionId()&&0!==e.smAnalytics.getSessionId()&&(clearInterval(a),f(t,o,e.smAnalytics.getSessionId()))}),500);i(a,45e3)})($,o.smartis_session,"value"),ge=()=>{return(e=o.unique_user_session_id)[t="value"]=Math.floor(2147483648*Math.random()),a(e,t),void p("unique_user_session_id",o.unique_user_session_id.value);var e,t},fe=()=>((e,t,a)=>{const n=R(e,"utm_source");n&&(f(t,a,n),v("ck_params_long_time",o))})($,o.utm_source,"value"),ye=()=>((e,t,a)=>{if(w){const n=R(e,"utm_medium");n?(f(t,a,n),v("ck_params_long_time",o)):t[a]=""}})($,o.utm_medium,"value"),ke=()=>((e,t,a)=>{if(w){const n=R(e,"utm_campaign");n?(f(t,a,n),v("ck_params_long_time",o)):t[a]=""}})($,o.utm_campaign,"value"),Ce=()=>((e,t,a)=>{if(w){const n=R(e,"utm_content");n?(f(t,a,n),v("ck_params_long_time",o)):t[a]=""}})($,o.utm_content,"value"),he=()=>((e,t,a)=>{if(w){const n=R(e,"utm_term");n?(f(t,a,n),v("ck_params_long_time",o)):t[a]=""}})($,o.utm_term,"value"),be=()=>{return e=o.visit_hash,void f(e,"value",A({base:10,length:6,delimiter:"",index:3}));var e},Ie=()=>((e,t,o)=>{let a=setInterval((function(){const n=s(L),l=E(L),i=e.sessionStorage[L];n?(clearInterval(a),f(t,o,n)):l?(clearInterval(a),f(t,o,l)):i&&(clearInterval(a),f(t,o,i))}),500);i(a,45e3)})($,o.visit_session_hash,"value"),we=()=>((e,t,o)=>{const a=R(e,"yclid");a&&f(t,o,a)})($,o.yclid,"value"),Re=()=>((e,t,o)=>{let a=setInterval((function(){const n=s("_ym_uid"),l=j(e,"_ym_uid"),i=q("yaCounter",e);n?(clearInterval(a),f(t,o,n)):l?(clearInterval(a),f(t,o,l)):i.length&&i.forEach((function(n){e[n]&&"function"==typeof e[n].getClientID&&e[n].getClientID()&&(clearInterval(a),f(t,o,e[n].getClientID()))}))}),500);i(a,45e3)})($,o.ya_client_id,"value"),Ue=()=>((e,t,o)=>{let a=setInterval((function(){let n=q("yaCounter",e);if(n.length){clearInterval(a);let l=n.filter((function(t){return e[t]&&"function"==typeof e[t].getClientID})).map((function(e){return e.replace(/yaCounter/g,"")}));f(t,o,l)}}),500);i(a,45e3)})($,o.ym_count_id,"value"),Ke=()=>{return e=o,t=o.source_type,a="value",void setTimeout((function(){const o="utm",n="organic",l="referral",i="typein";e.utm_source[a]&&"collected_now"===e.utm_source.isCollected?f(t,a,o):e.referrer[a]&&" "!==e.referrer[a]&&"collected_now"===e.referrer.isCollected?(C(e.referrer[a])?f(t,a,n):f(t,a,l),h(e,a)):e.utm_source[a]?f(t,a,o):e.referrer[a]&&" "!==e.referrer[a]?C(e.referrer[a])?f(t,a,n):f(t,a,l):f(t,a,i)}),300);var e,t,a},Fe=()=>((e,t,o)=>{let a=setInterval((function(){e&&e.callkeeper_code&&e.callkeeper_code.length<=32&&(clearInterval(a),f(t,o,e.callkeeper_code))}),500);i(a,45e3)})($,o.whash,"value"),Se=()=>((e,t,a)=>{let n=setInterval((function(){if(o.source_type[a]&&"collected_now"===o.source_type.isCollected){clearInterval(n);const e=o.referrer[a].split("/")[2];let l="";switch(o.source_type[a]){case"organic":e&&(l=e.split(".").reverse()[1]);break;case"referral":e&&(l=e);break;case"typein":l="(direct)";break;default:o.utm_source[a]&&(l=o.utm_source[a])}f(t,a,l)}}),100);i(n,45e3)})(0,o.rt_source,"value"),Ae=()=>((e,t,a)=>{let n=setInterval((function(){if(o.source_type[a]&&"collected_now"===o.source_type.isCollected){clearInterval(n);let e="";switch(o.source_type[a]){case"organic":e="organic";break;case"referral":e="referral";break;case"typein":e="(direct)";break;default:o.utm_medium[a]&&(e=o.utm_medium[a])}f(t,a,e)}}),100);i(n,45e3)})(0,o.rt_medium,"value"),Le=()=>((e,t,a)=>{let n=setInterval((function(){if(o.source_type[a]&&"collected_now"===o.source_type.isCollected){clearInterval(n);let e=o.utm_campaign[a];e?f(t,a,e):t[a]="(not set)"}}),100);i(n,45e3)})(0,o.rt_campaign,"value"),Ee=()=>((e,t,a)=>{let n=setInterval((function(){if(o.source_type[a]&&"collected_now"===o.source_type.isCollected){clearInterval(n);let e=o.utm_term[a];e?f(t,a,e):t[a]="(not set)"}}),100);i(n,45e3)})(0,o.rt_keyword,"value"),qe=()=>((e,t,a)=>{let n=setInterval((function(){if(o.source_type[a]&&"collected_now"===o.source_type.isCollected){clearInterval(n);let e="";switch(o.source_type[a]){case"referral":e=o.referrer[a]}f(t,a,e)}}),100);i(n,45e3)})(0,o.rt_referral_path,"value"),je=()=>((e,t,a)=>{let n=setInterval((function(){if(o.source_type[a]&&"collected_now"===o.source_type.isCollected){clearInterval(n);let e="";switch(o.source_type[a]){case"organic":e="organic";break;case"referral":e="referral";break;case"typein":e="direct";break;default:e="cpc"===o.utm_medium[a]||"ppc"===o.utm_medium[a]?o.utm_medium[a]:"custom"}f(t,a,e)}}),100);i(n,45e3)})(0,o.rt_traffic_type,"value"),Oe=(e,t)=>{let o=s(e);if(o)return((e,t)=>{const o=e.split("\0"),a=Object.keys(t);let l={};a.forEach((function(e,t){"ga_count_id"===e||"ym_count_id"===e?o[t]?l[e]=o[t].split(","):l[e]="":l[e]="unique_user_session_id"===e?+o[t]:o[t]})),Object.keys(t).forEach((function(e){l[e]&&"undefined"!==l[e]&&(t[e].value=l[e],n(t[e],"value"))}))})(o,t),!0},$e=(e,t)=>{Object.keys(t).forEach((function(o){Object.keys(e).forEach((function(a){o===a&&void 0!==e[a]&&e[a]&&"undefined"!==e[a]&&(t[o].value=e[a])}))}))},De=(e,t)=>{Object.keys(t).forEach((function(o){o&&(e[o]=t[o])}))},xe=(e,t)=>{let o={};if(e){e.split("|||").map((function(e){const t=e.indexOf("=");return[e.slice(0,t),e.slice(t+1)]})).forEach((function(e){Object.keys(t).forEach((function(a){a===e[0]&&("(none)"===e[1]?o[t[a]]="":"ep"===a?(o[t[a]]=e[1],o.entry_point_protocol=Je(e[1]),o.entry_point_host=Ne(e[1]),o.entry_point_path=Xe(e[1]),o.entry_point_query_string=ze(e[1])):"cpg"===a?(o[t[a]]=e[1],o.entry_point_protocol=Je(e[1]),o.current_host=Ne(e[1]),o.current_path=Xe(e[1]),o.current_query_string=ze(e[1])):o[t[a]]=e[1])}))}))}return o},Te={typ:"source_type",src:"utm_source",mdm:"utm_medium",cmp:"utm_campaign",cnt:"utm_content",trm:"utm_term"},Ge={pgs:"pages_seen",cpg:"current_page"},Pe={vst:"visits",uip:"ip",uag:"user_agent"},Me={fd:"date",ep:"entrance_point",rf:"referrer"},He={code:"promo"},Je=e=>e.split("/")[0],Ne=e=>e.split("/")[2],ze=e=>e.split("?")[1]?"?"+e.split("?")[1]:"",Xe=e=>{let t="/";return e.split("?")[0].split("/").forEach((function(e,o,a){o>2&&o!==a.length-1?t+=e+"/":o===a.length-1&&(t+=e)})),t},We=e=>e||"",Be=(e,t,o)=>{if(e){o[t+"_protocol"]=e.split("/")[0],o[t+"_host"]=e.split("/")[2];let a=e.split("?")[0].split("/"),n="/";for(let e in a)e>2&&e{if(e){let t=e.match(/(\d+\.\d+)$/),o=t?t[1]:null;if(o)return o}return""},Ve=()=>{if("ckapp.ru"!==document.location.hostname)return Ze(),Ye("https://ckapp.ru/frame.html","ckapp_frame_element");window.letStartCkGlobal=!0},Ye=(e,t)=>{const o=document.createElement("iframe");return o.setAttribute("src",e),o.setAttribute("name",t),o.setAttribute("title",t),o.setAttribute("id",t),o.setAttribute("scrolling","no"),o.setAttribute("frameborder","0"),o.setAttribute("style","font-size: 1px !important; display: block !important; background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; outline: none !important; filter: none !important; transform: none !important; z-index: -1 !important; position: fixed !important; bottom: 0 !important; left: 0 !important; zoom: 1 !important; min-height: auto !important; min-width: auto !important; width: 1px !important; height: 1px !important;"),document.body.append(o),o},Ze=()=>{window.addEventListener("message",(function(e){"object"==typeof e.data&&-1!==Object.keys(e.data).indexOf("ck_params_cookie")&&et(e)}))},et=e=>{const t=window.CallKeeper;let o=!1;if(t&&t.p&&t.p.eventCallbacks&&t.p.eventCallbacks.length&&t.p.eventCallbacks.forEach((function(e){e[1]&&-1!==e[1].indexOf("ckCrossDomainCondition")&&(o=!0)})),o){let t=setInterval((function(){window.ckCrossDomainCondition?(clearInterval(t),e.data.ck_params_cookie&&p("ck_params_cookie",e.data.ck_params_cookie),e.data.ck_params_long_time&&p("ck_params_long_time",e.data.ck_params_long_time),e.data.unique_user_session_id&&p("unique_user_session_id",e.data.unique_user_session_id),window.letStartCkGlobal=!0):window.letStartCkGlobal&&clearInterval(t)}),100)}else window.letStartCkGlobal=!0},tt=e=>Object.keys(e).join();!function(){if(window.isCkGlobalAlreadyStarted)return;let e;window.isCkGlobalAlreadyStarted=!0,setTimeout((function(){window.letStartCkGlobal=!0}),5e3),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){e=Ve()})):e=Ve(),(e=>{if("ckapp.ru"!==document.location.hostname||s("ck_params_cookie"))return;let t={},a={};CallKeeper&&CallKeeper.CookiesEncoding&&CallKeeper.CookiesEncoding.keys?t=CallKeeper.CookiesEncoding.keys:window.CookiesEncoding&&window.CookiesEncoding.keys&&(t=window.CookiesEncoding.keys);for(const o in t)a[o]=R(e,t[o]);a.pull_utm&&t.separator&&a.pull_utm.split(t.separator).forEach(e=>{const o=e.split("=");for(const e in t)t[e]===o[0]&&(a[e]=o[1])});const n=r(o,"value");Object.keys(a).forEach(e=>{e in n&&(n[e]=a[e])});const l=Array.from(Object.values(n)).join("\0");p("ck_params_cookie",l)})(window);let t=setInterval((function(){if(window.letStartCkGlobal){clearInterval(t);let n=O();if(n.ckGlobal={},!Oe("ck_params_cookie",o)){const e=(()=>{let e={};const t=s("ck_sbjs_first"),o=s("ck_sbjs_first_add"),a=s("ck_sbjs_current"),n=s("ck_sbjs_current_add"),l=s("ck_sbjs_session"),i=s("ck_sbjs_udata"),r=s("ck_sbjs_promo"),c=xe(t,Te),u=xe(o,Me),_=xe(a,Te),d=xe(n,Me),p=xe(l,Ge),m=xe(i,Pe),v=xe(r,He);return De(e,c),De(e,u),De(e,_),De(e,d),De(e,p),De(e,m),De(e,v),"organic"!==e.utm_medium&&"referral"!==e.utm_medium&&"(direct)"!==e.utm_source||(e.utm_source="",e.utm_medium="",e.utm_campaign="",e.utm_content="",e.utm_term=""),e})(),t=(()=>{let e={};const t=s("_ga"),o=s("_ym_uid"),a=s("roistat_visit"),n=s("searchCKCookie"),l=s("utm_source"),i=s("utm_term"),r=s("utm_content"),c=s("utm_medium"),u=s("utm_campaign"),_=s("referrerCKCookie"),d=s("entryPointCKCookie"),p=s("currentLocationCKCookie");return We(n).split("||").forEach((function(t){let o=t.split("=")[0],a=t.split("=")[1];o&&a&&(e[o]=a)})),e.ga_client_id=Qe(t),e.ya_client_id=We(o),e.roistat_visit=We(a),e.utm_source=We(l),e.utm_medium=We(c),e.utm_campaign=We(u),e.utm_content=We(r),e.utm_term=We(i),e.referrer=We(_),Be(d,"entry_point",e),Be(p,"current",e),e})();$e(t,o),$e(e,o),I("ck_params_long_time",o)}l(o.calltouch_session_id,D),l(o.ct_server_hash,x),l(o.ct_session_id,T),l(o.ck_manager_phone,G),l(o.ck_manager_phone_type,P),l(o.client_session_user_id,M),l(o.comagic_session_id,H),l(o.current_protocol,J),l(o.current_host,N),l(o.current_path,z),l(o.current_query_string,X),l(o.referrer,W),l(o.entry_point_referrer,B),l(o.user_agent,Q),l(o.history_length,V),l(o.date,Y),l(o.entry_point_protocol,Z),l(o.entry_point_host,ee),l(o.entry_point_path,te),l(o.entry_point_query_string,oe),l(o.external_session,ae),l(o.fbclid,ne),l(o.city,le),l(o.country,ie),l(o.ip_client,re),l(o.region,ce),l(o.ga_client_id,se),l(o.ga_count_id,ue),l(o.gclid,_e),l(o.rb_clickid,de),l(o.roistat_id,pe),l(o.store_date,me),l(o.smartis_session,ve),l(o.unique_user_session_id,ge),l(o.utm_source,fe),l(o.utm_medium,ye),l(o.utm_campaign,ke),l(o.utm_content,Ce),l(o.utm_term,he),l(o.visit_hash,be),l(o.visit_session_hash,Ie),l(o.yclid,we),l(o.ya_client_id,Re),l(o.ym_count_id,Ue),l(o.source_type,Ke),l(o.whash,Fe),l(o.rt_source,Se),l(o.rt_medium,Ae),l(o.rt_campaign,Le),l(o.rt_keyword,Ee),l(o.rt_referral_path,qe),l(o.rt_traffic_type,je),n.ckGlobal.getObj=()=>o,n.ckGlobal.justCookies=()=>(e=>{let t=`current:::typ=${e.source_type.value}|||src=${e.rt_source.value}|||mdm=${e.rt_medium.value}|||cmp=${e.utm_campaign.value}|||cnt=${e.utm_content.value}|||trm=`+e.utm_term.value+"^#^#current_add:::"+`fd=${e.date.value}|||`+`ep=${e.entry_point_protocol.value+"//"+e.entry_point_host.value+e.entry_point_path.value}|||rf=`+e.referrer.value+"^#^#first:::typ=|||src=|||mdm=|||cmp=|||cnt=|||trm=^#^#first_add:::fd=|||ep=|||rf=^#^#session:::"+`pgs=${e.history_length.value}|||cpg=`+e.current_protocol.value+"//"+e.current_host.value+e.current_path.value+"^#^#udata:::vst=|||uip=|||uag="+e.user_agent.value;return encodeURIComponent(t)})(o),n.ckGlobal.getRequestString=()=>(e=>{const t=e.ga_count_id.value?JSON.stringify(e.ga_count_id.value):"",o=e.ym_count_id.value?JSON.stringify(e.ym_count_id.value):"",a=e.entry_point_protocol.value+"//"+e.entry_point_host.value+e.entry_point_path.value+e.entry_point_query_string.value,n=e.current_protocol.value+"//"+e.current_host.value+e.current_path.value+e.current_query_string.value;return"&calltouch_session_id="+encodeURIComponent(e.calltouch_session_id.value)+"&city="+encodeURIComponent(e.city.value)+"&client_session_user_id="+encodeURIComponent(e.client_session_user_id.value)+"&comagic_session_id="+encodeURIComponent(e.comagic_session_id.value)+"&country="+encodeURIComponent(e.country.value)+"&ct_server_hash="+encodeURIComponent(e.ct_server_hash.value)+"&ct_session_id="+encodeURIComponent(e.ct_session_id.value)+"¤t_page="+encodeURIComponent(n)+"&entry_point="+encodeURIComponent(a)+"&entry_point_referrer="+encodeURIComponent(e.entry_point_referrer.value)+"&external_session="+encodeURIComponent(e.external_session.value)+"&fbclid="+encodeURIComponent(e.fbclid.value)+"&ga_client_id="+encodeURIComponent(e.ga_client_id.value)+"&ga_count_id="+t+"&gclid="+encodeURIComponent(e.gclid.value)+"&history_length="+encodeURIComponent(e.history_length.value)+"&ip_client="+encodeURIComponent(e.ip_client.value)+"&rb_clickid="+encodeURIComponent(e.rb_clickid.value)+"&referrer="+encodeURIComponent(e.referrer.value)+"®ion="+encodeURIComponent(e.region.value)+"&roistat_id="+encodeURIComponent(e.roistat_id.value)+"&site="+encodeURIComponent(e.current_host.value)+"&smartis_session="+encodeURIComponent(e.smartis_session.value)+"&store_date="+encodeURIComponent(e.store_date.value)+"&unique_user_session_id="+encodeURIComponent(e.unique_user_session_id.value)+"&user_agent="+encodeURIComponent(e.user_agent.value)+"&utm_campaign="+encodeURIComponent(e.utm_campaign.value)+"&utm_content="+encodeURIComponent(e.utm_content.value)+"&utm_medium="+encodeURIComponent(e.rt_medium.value)+"&utm_source="+encodeURIComponent(e.rt_source.value)+"&utm_term="+encodeURIComponent(e.utm_term.value)+"&utm_type="+encodeURIComponent(e.source_type.value)+"&visit_hash="+encodeURIComponent(e.visit_hash.value)+"&visit_session_hash="+encodeURIComponent(e.visit_session_hash.value)+"&ya_client_id="+encodeURIComponent(e.ya_client_id.value)+"&yclid="+encodeURIComponent(e.yclid.value)+"&ym_count_id="+o})(o),n.ckGlobal.saveParamsInCookie=()=>d(n,o),n.ckGlobal.getParamsFromCookie=()=>Oe("ck_params_cookie",o),n.ckGlobal.paramsReady=!1,d(n,o),(()=>{const e=(new Date).toUTCString();document.cookie=`searchCKCookie=; expires=${e}; path=/;`,document.cookie=`referrerCKCookie=; expires=${e}; path=/;`,document.cookie=`entryPointCKCookie=; expires=${e}; path=/;`,document.cookie=`currentLocationCKCookie=; expires=${e}; path=/;`})(),(a=e)&&a.contentWindow.postMessage({ck_params_cookie:s("ck_params_cookie"),ck_params_long_time:s("ck_params_long_time"),unique_user_session_id:s("unique_user_session_id"),keys_names:tt(o)},"https://ckapp.ru/frame.html")}var a}),100)}()}(); !function(){"use strict";!function(){const e="static.callkeeper.net";let t="customForm",n=!1,a="";function o(){return window.CallKeeper&&window.CallKeeper.p&&window.CallKeeper.p.customInstrumentSettings&&("customForm"===window.CallKeeper.p.customInstrumentSettings.instrumentName||"customWheel"===window.CallKeeper.p.customInstrumentSettings.instrumentName)?window.CallKeeper.p.customValue?window.CallKeeper.p.customValue:"callkeeperWidget.css"!==window.CallKeeper.p.customCSS.split("/")[3]?window.CallKeeper.p.customCSS.split("/")[3]:"":""}function r(e,t,n){const a="widget";return"object"==typeof e&&t[n]&&e[t[n]]&&e[t[n]]?e[t[n]]:a}function i(){return window.ck_params44&&console.log("isCustomServiceCanStart",window.CallKeeper.p.customInstrumentSettings,o(),n),Boolean(Object.keys(window.CallKeeper.p.customInstrumentSettings).length&&o()&&n)}function s(n){document.body.append(function(t){const n=document.createElement("iframe"),r=t+".html";return a="//"+e+"/css-custom/custom/"+o()+"/html/"+r,n.setAttribute("src",a),n.setAttribute("name","ck_new_custom_service"),n.setAttribute("title","ck_new_custom_service"),n.setAttribute("id","ck_new_custom_service"),n.setAttribute("scrolling","no"),n.setAttribute("frameborder","0"),n.setAttribute("style","\n font-size: 4.28vw !important;\n display: block !important;\n background: none !important;\n box-shadow: none !important;\n border: none !important;\n border-radius: 0 !important;\n padding: 0 !important;\n margin: 0 !important;\n outline: none !important;\n filter: none !important;\n transform: none !important;\n z-index: 2147483647 !important;\n position: fixed !important;\n top: 0 !important;\n left: 0 !important;\n zoom: 1 !important;\n min-height: auto !important;\n min-width: auto !important;\n width: 100% !important;\n height: 100% !important;"),n}(n)),window.CallKeeper.a.activeInstruments[n]=1,R.remember("CallKeeperTechology",1),t=n,function(){const e=window.top,t=e.CallKeeper,n=document.querySelector("#ck_new_custom_service"),a=t.p.hash?t.p.hash:0,o=e.ck_params23&&e.ck_params22?e.ck_params23:0,r=e.ck_params24?e.ck_params24:0,i=e.ck_params20?e.ck_params20:0,s=e.ck_params21?e.ck_params21:0,c=t.p.allowedPrefixes?t.p.allowedPrefixes:0,l=t.f.unitedWorkDayHours()?t.f.unitedWorkDayHours():0,m=t.p.agreement.ru?t.p.agreement.ru:0,p=t.p.agreement_2.ru?t.p.agreement_2.ru:0,u=t.p.niceTime?t.p.niceTime:0,d=t.p.customInstrumentSettings||{},w=t.p.workingTimes?t.p.workingTimes:0,g=t.p.customName,f=e.ck_params43?e.ck_params43:0,k=e.ck_params46?e.ck_params46:0;let C;t&&t.u&&t.u.geoLocation&&t.u.geoLocation.city&&(C=t.u.geoLocation.city),n.onload=function(){n.contentWindow.postMessage({allowedPrefixes:c,checkboxPersonalData:m,checkboxAdvertising:p,customDayText:i,customNightText:s,niceTime:u,offices:o,officesName:r,time:l,widgetHash:a,customSettings:d,workingTimes:w,userLocation:C,customName:g,schedule:f,timeZoneWidget:k},"*")}}(),window.CallKeeper.f.analyticsEvent("callkeeper-open-widgetform")}window.addEventListener("message",(function(e){switch(window.ck_params44&&console.log(e.data),e.data.title&&"Custom Form"===e.data.title&&(n=!0),e.data.event_type){case"submit":!function(e){if(e.data.phone){let n=e.data.phone.replace(/\D+/g,"");if(n.length>=11&&n.length<=12){const a=window.ckGlobal,o=window.ckFormaction,r=o&&o.userData&&o.userData.integrationActive&&a&&a.getObj&&a.getObj().ck_manager_phone&&a.getObj().ck_manager_phone.value||"";let i=Number(e.data.office);(!i||i<0)&&(i=0);let s=e.data.textToManager?e.data.textToManager:"",c=0;switch(t){case"customForm":c=42;break;case"customWheel":c=8}o&&o.userData?(createCaller().makeRequest({newEventSource:c,phone:n,office:i,textToManager:s,person:e.data.person,manager:r,additionalInfo:e.data.additionalInfo,formName:e.data.formName,niceTime:e.data.niceTime,email:e.data.email,timeToCall:e.data.timeToCall,utc:e.data.utc},o.userData),window.CallKeeper.f.analyticsEvent("callkeeper-call_order-widgetform"),window.CallKeeper.f.analyticsEvent("callkeeper-call_order")):window.ck_params44&&console.log("Звонок не заказан. Подключите формекшен")}}}(e);break;case"click":!function(){const e=document.querySelector("#ck_new_custom_service");e&&(e.remove(),window.CallKeeper.a.activeInstruments[t]=0,t="customForm",R.remember("CallKeeperTechology",0),window.CallKeeper.f.analyticsEvent("callkeeper-close-widgetform"),window.CallKeeper.p.customName="")}();break;default:window.ck_params44&&console.log("check msg.data.event_type")}}));let c=setInterval((function(){window.CallKeeper&&window.CallKeeper.f&&Object.keys(window.CallKeeper.f).length>10&&(window.CallKeeper.f.startCustomService=s,window.CallKeeper.f.isCustomServiceCanStart=i,window.CallKeeper.f.getCurrentInst=r,window.CallKeeper.a.initCustomService=!0,clearInterval(c))}),100),l=setInterval((function(){if(o()&&window.CallKeeper&&window.CallKeeper.p&&window.CallKeeper.p.customInstrumentSettings&&Object.keys(window.CallKeeper.p.customInstrumentSettings).length){clearInterval(l);let n="";var t=["customWheel","customForm","rater"];for(let e in CallKeeper.p.customInstrumentSettings)-1!==t.indexOf(CallKeeper.p.customInstrumentSettings[e])&&(n=CallKeeper.p.customInstrumentSettings[e]);!function(t){const n=document.createElement("iframe"),r=t+".html";window.ck_params44&&console.log(r),a="//"+e+"/css-custom/custom/"+o()+"/html/"+r,n.setAttribute("src",a),n.setAttribute("id","ck_check_iframe"),n.style.display="none",document.body.append(n),n.addEventListener("load",(function(){setTimeout((function(){n.remove()}),3e3)}))}(n)}else window.CallKeeper&&window.CallKeeper.p&&window.CallKeeper.p.customInstrumentSettings&&!Object.keys(window.CallKeeper.p.customInstrumentSettings).length&&clearInterval(l)}),100);setTimeout((function(){clearInterval(c),clearInterval(l)}),3e4)}()}();