/*! For license information please see index.js.LICENSE.txt */ (()=>{var e={60:e=>{(()=>{"use strict";var t={535:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function h(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||y}function b(){}function w(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||y}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=h.prototype;var g=w.prototype=new b;g.constructor=w,m(g,h.prototype),g.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var o,i={},u=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(u=""+t.key),t)S.call(t,o)&&!j.hasOwnProperty(o)&&(i[o]=t[o]);var a=arguments.length-2;if(1===a)i.children=n;else if(1{e.exports=r(535)},844:(e,t,r)=>{function n(e){var t;return void 0===e&&(e=o()),Boolean(null===(t=null==e?void 0:e.tjlib)||void 0===t?void 0:t.core)}function o(){return"undefined"!=typeof window?window:null}Object.defineProperty(t,"__esModule",{value:!0}),t.getCore=t.setCore=t.isCoreInitialized=void 0,r(647),t.isCoreInitialized=n,t.setCore=function(e,t){if(void 0===t&&(t=o()),!t)throw new Error("unable to initialize shared core without holder");if(n(t))throw new Error("tjlib.core is already initialized");t.tjlib=t.tjlib||{},t.tjlib.core=e},t.getCore=function(e){var t;return void 0===e&&(e=o()),null===(t=null==e?void 0:e.tjlib)||void 0===t?void 0:t.core}},647:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),r(378)}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.getCore=void 0;var t=n(844);Object.defineProperty(e,"getCore",{enumerable:!0,get:function(){return t.getCore}})})(),e.exports=o})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(()=>{"use strict";function e(e){return new Promise(((t,r)=>{const n=document.createElement("script");n.setAttribute("src",e.source),e.id&&n.setAttribute("id",e.id),e.defer&&n.setAttribute("defer","true"),n.addEventListener("load",t),n.addEventListener("error",r),"body"===e.position?document.body.appendChild(n):document.head.appendChild(n)}))}function t(e,t,r){const n={operation:e,data:{["AddArticleToList"===e?"addProductToList":"viewProduct"]:{product:{ids:{webSite:r||window.location.pathname}}}}};return t&&(n.data.customer=t),n}function n(){return window}function o(){return n().mindbox}function i(){return n().TJ_ARTICLE_META}function u(e,r){const n=o();n&&n("async",t("ViewArticle",e,r))}function c(e,r){const n=o();n&&n("async",t("AddArticleToList",e,r))}function a(e,r){const n=o();n&&n("async",t("ViewLessonPage",e,r))}function s(e){const r=o();r&&r("async",t("ViewGeneralCoursePage",e))}function l(e,r){const n=o();n&&n("async",t("ViewCoursePage",e,r))}const f="visitedArticles",d="visitedLessons",p="visitedCourses",y="proMainPageVisits";function m(e){!function(e){const t=localStorage.getItem(f);if(!t)return;const r=t.split(",");for(const t of r)u(e,t),c(e,t);localStorage.removeItem(f)}(e),function(e){const t=localStorage.getItem(y);if(t){for(let r=0;re.src?.includes("static.popmechanic.ru/service/forms.js")||e.src?.includes("static.popmechanic.ru/service/loader.js")))}()||e({source:"https://static.popmechanic.ru/service/loader.js?c=5263",id:"popmechanic-script",defer:!0,position:"body"}).catch((e=>console.error(e)))}function w(){const e=document.querySelector('meta[property="og:image:secure_url"]');return e?e.content:""}function g(e){return e.split("/")[2]}function _(e){const t=e.split("/");return`/${"pro"===t[1]?t[3]:t[1]}/`}function S(){const e=_(window.location.pathname),t=localStorage.getItem(d);localStorage.setItem(d,t?`${t},${e}`:e)}function C(e){a(h(e),_(window.location.pathname))}const j={lesson:{send:C,save:S},quiz:{send:C,save:S},course:{send:function(e){l(h(e),g(window.location.pathname))},save:function(){const e=g(window.location.pathname),t=localStorage.getItem(p);localStorage.setItem(p,t?`${t},${e}`:e)}},main:{send:function(e){s(h(e))},save:function(){const e=parseInt(localStorage.getItem(y)||"0",10);localStorage.setItem(y,`${e+1}`)}}};function E(e){if(i())return function(e){if(!i())return;const t=h(e);u(t),c(t)}(e),void(e||function(){if(!i())return;const e=localStorage.getItem(f),t=window.location.pathname;localStorage.setItem(f,e?`${e},${t}`:t)}());const t=n().TJ_URANIA_META;t&&(j[t.pageType]?.send(e),e||j[t.pageType]?.save())}let I=!1,$=!1;!async function(){var t;"undefined"!=typeof window&&(e({source:"https://api.mindbox.ru/scripts/v1/tracker.js",defer:!0}).catch((e=>console.error(e))),function(){if(n().mindbox)return;const e=function(){for(var t=arguments.length,r=new Array(t),n=0;n{if(!e)return $||(E(),$=!0),void(I=!0);I||E(e),m(h(e))},(0,v.getCore)()?.profile.subscribe(t),"complete"===document.readyState?b():window.addEventListener("load",b))}()})()})(); //# sourceMappingURL=index.js.map