(function(){var n=this,t=function(n,t){var i=n.reduce(function(n,i){var r=t.map(function(n){return i[n]}).join("_");return n[r]=n[r]||[],n[r].push(i),n},{});return Object.keys(i).map(function(n){return{key:n,values:i[n]}})},i=function(n){if(!n)throw"phone is not defined";if(!/^\d{11}$/.test(n))throw"phone format exception: "+n;var t=n.match(/^(\d{1})(\d{3})(\d{3})(\d{4})$/);if(t.length!==5)throw"phone format exception: "+n;return"+"+t[1]+" ("+t[2]+") "+t[3]+"-"+t[4]},r=function(n){if(!n)throw"phone is not defined";if(!/^\d{11}$/.test(n))throw"phone format exception: "+n;return"tel:+"+n},u=function(n,t){if(!n)throw"forms is not defined";if(t==undefined)throw"num is not defined";return t===0?n[2]:t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]},f=function(n){var t={};return n.forEach(function(n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}),t},e=function(n){if(!n)throw"price is not defined";return n.toString().replace(/\B(?=(\d{3})+\b)/g," ")},o=function(n,t,i){var r,u;if(!n)throw"name is not defined";if(i==undefined)throw"exdays is not defined";r=new Date;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+";"+u+";path=/"};n.utils={groupBy:function(n,i){try{return t(n,i)}catch(r){console.error("Ошибка в методе groupBy",r)}},toPriceFormat:function(n){return e(n)},setCookie:function(n,t,i){try{return o(n,t,i)}catch(r){console.error("Ошибка в методе setCookie",r)}},toFormattedPhoneNumber:function(n){try{return i(n)}catch(t){console.error("Ошибка в методе toFormattedPhoneNumber",t)}},toFormattedPhoneHref:function(n){try{return r(n)}catch(t){console.error("Ошибка в методе toFormattedPhoneHref",t)}},getPluralForm:function(n,t){try{return u(n,t)}catch(i){console.error("Ошибка в методе getPluralForm",i)}},mergeObjects:function(n){try{if(!n)throw"objects is not defined";return f(n)}catch(t){console.error("Ошибка в методе mergeObjects",t)}}}})(),function(){var n=this;n.StyleDescriptions={tabletMaxWidth:990,media870MaxWidth:870,sTabletMaxWidth:768,media500MaxWidth:500,lMobileMaxWidth:425,mMobileMaxWidth:375,sMobileMaxWidth:320}}(),function(){var n,t;window.JL&&(n=window.JL);t=function(t){return{log:function(){t.log.apply(t,arguments);n&&n().debug.apply(n(),arguments)},debug:t.debug,info:function(){t.info.apply(t,arguments);n&&n().info.apply(n(),arguments)},warn:function(){t.warn.apply(t,arguments);n&&n().warn.apply(n(),arguments)},error:function(){t.error.apply(t,arguments);n&&n().fatalException.apply(n(),arguments)}}}(window.console);window.console=t;window.onerror=function(t,i,r,u,f){return!t||t.indexOf("Script error.")>-1?!1:(n("ClientRoot").fatalException({msg:"ClientException",errorMsg:t+"_referer_"+document.referer+"_userAgent_"+navigator.userAgent,url:i,"line number":r,column:u},f),!1)}}(),function(){var n=this;if(n.resources)throw"resources already defined";n.resources={lockSeatError:"Не удалось\n добавить место",unlockSeatError:"Не удалось\n удалить место"}}()