!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=n(3).isUrl,c="//an.yandex.ru/resource/context_static_r<%= CODE_VER %>.js";!function(e,t,i){function s(t){var n=e[t];return e[t]=i,n}function d(e,t){return s("yandex_"+(t?t+"_":"")+e)}function u(e,t,n){for(var r=0;r<t.length;r++)e[t[r]]=d(t[r],n)}var _=e.Ya=e.Ya||{};if(!_.exp){try{a(t.location.href)&&(o=n(5))}catch(l){o=n(2),(new Image).src="//an.yandex.ru/jserr/1?errmsg="+encodeURIComponent("context.isUrl::"+l.message)}_.exp=new r(o.code),_.loaderVer=o.loader,_.codeVer=_.exp.getId(),_.matchVer=_.exp.getExtra().versions.match,_.confirmVer=_.exp.getExtra().versions.confirm,_.confirmUrl=_.exp.getExtra().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}]),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 x=["yandex_context_callbacks","yandexContextAsyncCallbacks"],f=0;f<x.length;f++){var p=s(x[f]);if(p){_.Context._asyncModeOn||(_.Context._asyncModeOn=!0);for(var h=0;h<p.length;h++)_.Context._callbacks.push(p[h])}}if(e.yandexContextSyncCallbacks)for(var p=s("yandexContextSyncCallbacks"),f=0;f<p.length;f++)_.Context._callbacks.push(p[f]);var y=["ad_format","site_bg_color","font_size","font_family","stat_id","no_sitelinks","search_text","search_page_number","lang"],m=["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={};u(v,y),u(v,m,v.ad_format);var g=v.place;g&&t.getElementById(g)||(g="Ya_sync_"+_.Context._asyncIdCounter++,t.write('<div id="'+g+'"></div>'));var C=d("partner_id");_.Context._callbacks.push(function(){_.Context.AdvManager.renderDirect(C,g,v)})}var b,k,b=c.replace("<%= CODE_VER %>",_.codeVer),k="https:"+b;if(t.getElementById(b)&&_.Context._init)return void _.Context._init();if(_.Context._asyncModeOn){var E=t.createElement("script"),I=t.getElementsByTagName("script")[0];E.id=b,E.src=k,I.parentNode.insertBefore(E,I)}else t.write('<script type="text/javascript" src="'+k+'" id="'+b+'"></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,c=0;c<e.length;c++)t=o(r.toFraction(e[c].percent)+a),a=t,n.push({id:e[c].id,extra:e[c].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:1300,code:[{id:1325,percent:100,extra:{versions:{confirm:1230,match:1261},adb:"//an.yandex.ru/resource/context_static_adb_r1325.js",confirm:"//st.yandexadexchange.net/confirm_r1230.html"}}]}},function(e,t,n){function r(e){return a(c,function(t){return t.test(e)}).length>0}function o(e){return a(i,function(t){return t===String(e)}).length>0}var a=n(4),c=[/news\.yandex\.(ru|by|com|kz|ua)\//,/yandex\.(ru|by|com|kz|ua)\/pogoda\//,/mail\.yandex\.(ru|by|com|kz|ua)\//,/yandex-team\.ru\//,/avia\.smacker\.rasp\.dev\.yandex\.(ru|ua)\//,/avia\.yandex\.(ru|kz|ua)\//,/ticket\.yandex\.(by|com|kz|ua)\//,/tv\.yandex\.(ru|by|com|lz|ua)\//,/tv\.yandex\//],i=["93511","49688","92550","127716","93830"];e.exports={isUrl:r,isPageId:o}},function(e,t){e.exports=function(e,t,n){for(var r=[],o=0,a=e.length;o<a;o++){var c=e[o];t.call(n,c,o,e)&&r.push(c)}return r}},function(e,t){e.exports={loader:1295,code:[{id:1325,percent:100,extra:{versions:{confirm:1230,match:1261},adb:"//an.yandex.ru/resource/context_static_adb_r1325.js",confirm:"//st.yandexadexchange.net/confirm_r1230.html"}}]}}]);