{"version":3,"file":"shared-lib.Db1Avg1S.mjs","names":[],"sources":["https:/framerusercontent.com/modules/nFwQnxg0LvRuOTWLzDo9/u13pdrWBQdARTRO9ymOy/Cookie.js","https:/framerusercontent.com/modules/3vFK0KGx46GUa8mstZUs/cQM0mgZVt9eyjNHI1egb/YandexMetrika.js","https:/framerusercontent.com/modules/qEkU6STFLpTRkHVFN9TI/Ly8gDcQpYKXOgTLOvwGf/siteMetadata.js"],"sourcesContent":["// Get Cookie\nexport function GetCookie(name){if(typeof document===\"undefined\")return null;const match=document.cookie.match(new RegExp(\"(^|;\\\\s*)(\"+name+\")=([^;]*)\"));const value=match?decodeURIComponent(match[3]):null;return value&&value.trim()!==\"\"?value:null;}// Set Cookie\nexport function SetCookie(name,value,days=1,global=false){if(typeof document===\"undefined\")return;const expires=new Date;expires.setTime(expires.getTime()+days*24*60*60*1e3);const path=global?\"/\":window.location.pathname;const cookie=name+\"=\"+encodeURIComponent(value)+\"; path=\"+path+\"; expires=\"+expires.toUTCString()+\";\";document.cookie=cookie;}\nexport const __FramerMetadata__ = {\"exports\":{\"SetCookie\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GetCookie\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cookie.map","// Logic\nfunction YandexMetrika(goal){if(typeof window!==\"undefined\"&&typeof window[\"ym\"]===\"function\"){window.ym(61818337,\"reachGoal\",goal);}}// Templates\nexport function YandexMetrikaSingle(goal){return()=>{YandexMetrika(goal);};}export function YandexMetrikaDual(goal){return()=>{YandexMetrika(goal);YandexMetrika(\"click\");};}\nexport const __FramerMetadata__ = {\"exports\":{\"YandexMetrikaDual\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"YandexMetrikaSingle\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YandexMetrika.map","// Generated by Framer (ba156f5)\nexport default function metadata(params,activeLocale){return{customHTMLBodyStart:\"<!-- Imports -->\\n<script src=\\\"https://cdn.jsdelivr.net/npm/ua-parser-js@1.0.2/dist/ua-parser.min.js\\\"></script>\\n\\n<!-- Parameters -->\\n<script>\\n  (function () {\\n    const parametersToTrack = [\\n      'utm_source',\\n      'utm_medium',\\n      'utm_campaign',\\n      'utm_content',\\n      'utm_term',\\n      'from'\\n    ];\\n\\n    const searchParameters = new URLSearchParams(window.location.search);\\n    const expires = new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toUTCString();\\n\\n    parametersToTrack.forEach((parameter) => {\\n      const value = searchParameters.get(parameter);\\n      if (value !== null && value.trim() !== '') {\\n        document.cookie = `${parameter}=${encodeURIComponent(value)}; path=/; expires=${expires}`;\\n      }\\n    });\\n  })();\\n</script>\\n\\n<!-- Path -->\\n<script>\\n  (function () {\\n    const path = `${location.protocol}//${location.host}${location.pathname}`;\\n    const expires = new Date(Date.now() + 24 * 60 * 60 * 1000).toUTCString();\\n    document.cookie = `path=${path}; path=/; expires=${expires}`;\\n  })();\\n</script>\\n\\n<!-- Identifier -->\\n<script>\\n  (function () {\\n    function generateUID() {\\n      return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\\n        const r = Math.random() * 16 | 0;\\n        const v = c === 'x' ? r : (r & 0x3 | 0x8);\\n        return v.toString(16);\\n      });\\n    }\\n\\n    if (!document.cookie.includes('identifier=')) {\\n      const identifier = generateUID();\\n      const expires = new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toUTCString();\\n      document.cookie = `identifier=${identifier}; path=/; expires=${expires}`;\\n    }\\n  })();\\n</script>\\n\\n<!-- IP Address -->\\n<script>\\n  (function () {\\n    if (!document.cookie.includes('ip_address=')) {\\n      fetch('https://api.ipify.org?format=json')\\n        .then(response => response.json())\\n        .then(data => {\\n          if (data && data.ip) {\\n            const expires = new Date(Date.now() + 24 * 60 * 60 * 1000).toUTCString(); //\\n            document.cookie = `ip_address=${data.ip}; path=/; expires=${expires}`;\\n          }\\n        })\\n        .catch((error) => {\\n          console.warn('IP fetch failed:', error);\\n        });\\n    }\\n  })();\\n</script>\\n\\n<!-- User Agent -->\\n<script>\\n  (function () {\\n    if (!document.cookie.includes('info=')) {\\n      const parser = new UAParser();\\n      const result = parser.getResult();\\n\\n      const browserName = result.browser.name || 'unknown';\\n      const browserVersion = result.browser.version || 'unknown';\\n      const os = result.os.name || 'unknown';\\n      const device = result.device.type || 'desktop';\\n\\n      const user_agent = `${device} | ${os} | ${browserName} ${browserVersion}`;\\n      const expires = new Date(Date.now() + 24 * 60 * 60 * 1000).toUTCString();\\n      document.cookie = `user_agent=${encodeURIComponent(user_agent)}; path=/; expires=${expires}`;\\n    }\\n  })();\\n</script>\",customHTMLHeadEnd:'<!-- Yandex.Metrika counter -->\\n<script type=\"text/javascript\">\\n   (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};\\n   m[i].l=1*new Date();\\n   for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}\\n   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})\\n   (window, document, \"script\", \"https://mc.yandex.ru/metrika/tag.js\", \"ym\");\\n\\n   ym(61818337, \"init\", {\\n        clickmap:true,\\n        trackLinks:true,\\n        accurateTrackBounce:true\\n   });\\n\\n   ym(90852711, \"init\", {\\n        clickmap:true,\\n        trackLinks:true,\\n        accurateTrackBounce:true,\\n        webvisor:true\\n   });\\n</script>\\n\\n<noscript>\\n   </noscript>',description:\"Маркетплейс онлайн-курсов №1\",favicon:\"https://framerusercontent.com/assets/VNLindCeRDGA7F9oCWZQxx7ql1w.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/mIhojUwEEZEIWHqVW3O3Q28GU.png\",title:\"tutortop\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qIACA,SAAgB,EAAU,EAAK,CAAC,UAAU,SAAW,IAAY,OAAO,KAAK,IAAM,EAAM,SAAS,OAAO,MAAM,AAAI,OAAO,aAAa,EAAK,YAAA,CAAa,CAAO,EAAM,EAAM,mBAAmB,EAAM,GAAG,CAAC,KAAK,OAAO,GAAO,EAAM,MAAM,GAAG,GAAG,EAAM,IAAM,CAC1P,SAAgB,EAAU,EAAK,EAAM,EAAK,EAAE,GAAO,EAAM,CAAC,UAAU,SAAW,IAAY,OAAO,IAAM,EAAQ,IAAI,KAAK,EAAQ,QAAQ,EAAQ,SAAS,CAAC,EAAK,GAAG,GAAG,GAAG,IAAI,CAAC,IAAM,EAAK,EAAO,IAAI,EAAO,SAAS,SAAe,EAAO,EAAK,IAAI,mBAAmB,EAAM,CAAC,UAAU,EAAK,aAAa,EAAQ,aAAa,CAAC,IAAI,SAAS,OAAO,CAAQ,oBCD3V,SAAS,EAAc,EAAK,CAAC,AAAU,mBAA6B,EAAO,IAAQ,YAAY,EAAO,GAAG,SAAS,YAAY,EAAK,AAAG,CACtI,SAAgB,EAAoB,EAAK,CAAC,MAAM,IAAI,CAAC,EAAc,EAAK,AAAE,CAAE,UAAgB,EAAkB,EAAK,CAAC,MAAM,IAAI,CAAqB,AAApB,EAAc,EAAK,CAAC,EAAc,QAAQ,AAAE,CAAE,oBCD7K,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAA24F,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;gBAAywB,YAAY,+BAA+B,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,qEAAqE,MAAM,UAAW,CAAE"}