!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var r=n(1),o=n(2),a="an.yandex.ru/resource/context_static_r<%= CODE_VER %>.js";!function(e,t,n){function i(t){var r=e[t];return e[t]=n,r}function c(e,t){return i("yandex_"+(t?t+"_":"")+e)}function s(e,t,n){for(var r=0;r<t.length;r++)e[t[r]]=c(t[r],n)}var d,_=e.Ya=e.Ya||{};_.loaderVer||(d=new r(o.code),_.codeVer=d.getId(),_.loaderVer=o.loader,_.matchVer=d.getExtra().versions.match,_.confirmVer=d.getExtra().versions.confirm),_.Context||(_.Context={_callbacks:[],_asyncIdCounter:0,_asyncModeOn:!1,initTime:Number(new Date),longExp:new r([{id:"CONTROL",percent:5},{id:"CONFIRM_BY_CLICK",percent:10},{id:"VIDEO_MANUAL",percent:5},{id:"VIDEO_AUTOPLAY",percent:5},{id:"APP_RATING",percent:5},{id:"APP_BUTTON",percent:5}]),LOG_DIRECT:r.isPercent(1)},_.Direct={insertInto:function(e,t,n,r){_.Context._asyncModeOn||(_.Context._asyncModeOn=!0),_.Context.AdvManager?_.Context.AdvManager.renderDirect(e,t,n,r):_.Context._callbacks.push(function(){_.Context.AdvManager.renderDirect(e,t,n,r)})}});for(var l=["yandex_context_callbacks","yandexContextAsyncCallbacks"],u=0;u<l.length;u++){var x=i(l[u]);if(x){_.Context._asyncModeOn||(_.Context._asyncModeOn=!0);for(var f=0;f<x.length;f++)_.Context._callbacks.push(x[f])}}if(e.yandexContextSyncCallbacks)for(var x=i("yandexContextSyncCallbacks"),u=0;u<x.length;u++)_.Context._callbacks.push(x[u]);var p=["ad_format","site_bg_color","font_size","font_family","stat_id","no_sitelinks","search_text","search_page_number","lang"],h=["type","border_type","bg_color","border_radius","border_color","header_bg_color","title_color","text_color","url_color","hover_color","sitelinks_color","links_underline","limit","place","favicon","title_font_size","grab","c11n","geo_lat","geo_long","width","height"];if(e.yandex_ad_format){var v={};s(v,p),s(v,h,v.ad_format);var g=v.place;g&&t.getElementById(g)||(g="Ya_sync_"+_.Context._asyncIdCounter++,t.write('<div id="'+g+'"></div>'));var C=c("partner_id");_.Context._callbacks.push(function(){_.Context.AdvManager.renderDirect(C,g,v)})}var m=a.replace("<%= CODE_VER %>",_.codeVer);if(t.getElementById(m)&&_.Context._init)return void _.Context._init();var y="https://"+m;if(_.Context._asyncModeOn){var b=t.createElement("script"),O=t.getElementsByTagName("script")[0];b.id=m,b.src=y,O.parentNode.insertBefore(b,O)}else t.write('<script type="text/javascript" src="'+y+'" id="'+m+'"></script>')}(window,window.document)},function(e,t,n){function r(e){this._coin=Math.random(),this._versions=this._prepare(e)}function o(e){return Number(e.toFixed(a))}var a=2;r.prototype={getId:function(){return this._get("id")},getExtra:function(){return this._get("extra")},_get:function(e){var t=this._choose();return t?t[e]:null},_prepare:function(e){for(var t,n=[],a=0,i=0;i<e.length;i++)t=o(r.toFraction(e[i].percent)+a),a=t,n.push({id:e[i].id,extra:e[i].extra,threshold:t});return n},_choose:function(){for(var e=0;e<this._versions.length;e++)if(this._coin<this._versions[e].threshold)return this._versions[e]}},r.toFraction=function(e){return o(e/100)},r.isPercent=function(e){return Math.random()<r.toFraction(e)},e.exports=r},function(e,t){e.exports={loader:1204,code:[{id:1202,percent:2,extra:{versions:{confirm:1202,match:1201}}},{id:1201,percent:5,extra:{versions:{confirm:1201,match:1201}}},{id:1197,percent:93,extra:{versions:{confirm:1071,match:1103}}}]}}]);