1function t937_init(e,t){var r=document.getElementById("rec"+e);if(r){var i=window.innerWidth,l=r.getAttribute("data-screen-min"),n=r.getAttribute("data-screen-max");if(l&&i<parseInt(l,10))return!1;if(n&&i>parseInt(n,10))return!1;var o=r.querySelector(".t937__playlist-wrap"),a=r.querySelector(".t937__col_video"),s=t937_parseData(e),d,c=t937_getUrlParametrs(e).activeVideoId;t937_setSizes(e,t),t937_renderVideoCount(s,e,t),t937_renderPlaylist(s,c,e,t),t937_renderVideoFrame(s,c,e,t),a&&(a.style.height=""),o&&(o.style.visibility="visible"),t937_addEvents(e,t)}}function t937_getUrlParametrs(e){var t,r,i=window.location.hash;if(i&&-1===i.indexOf("#tlection="))t=e,r=1;else{var l=i.replace("#tlection=","").split("_");r=+e==+(t=l[0])?l[1]:1}return{activeRecId:t,activeVideoId:r}}function t937_parseData(e){var t=document.getElementById("rec"+e);if(t){var r=t?t.querySelector(".t937__data"):null,i=r?r.innerHTML:"",l=[];if(i)for(var n=(i=i.replace(/&/gi,"&")).split("\n"),o=0;o<n.length;o++){var a,s,d=t937_getVideoData(n[o].split(";"));(d.url||d.section)&&l.push(d)}return l}}function t937_getVideoData(e){var t=e[0].trim();if(0===t.indexOf("[")&&t.indexOf("]")===t.length-1)return{section:t.slice(1,-1)};var r=e[0]&&e[0].length?e[0].trim():null,i,l,n,o=null;return{url:r,title:e[1]?e[1].trim():null,time:e[2]?e[2].trim():null,description:e[3]?e[3].trim():null,type:o=/youtube.com|youtu.be/gi.test(r)?"youtube":/vimeo.com/gi.test(r)?"vimeo":/rutube.ru/gi.test(r)?"rutube":/kinescope.io/gi.test(r)?"kinescope":/vk.com|vk.ru|vkvideo.ru/gi.test(r)?"vkvideo":/boomstream.com/gi.test(r)&&!/.mp4/gi.test(r)?"boomstream":/.mp4/gi.test(r)?"mp4":/.webm/gi.test(r)?"webm":"iframe"}}function t937_renderPlaylist(e,t,r,i){var l,n=document.getElementById("rec"+r).querySelector(".t937__playlist");n&&(n.dataVideoContent=e),n&&(n.dataPlaylistStyles=i);var o=1;t937_setSizes(r,i),n&&(n.innerHTML="");var a=i.mainColor.length?"color: "+i.mainColor+";":"",s=i.secondaryColor.length?"color: "+i.secondaryColor+";":" …Длинные строки сокращены. Полная версия доступна по ссылке «Полный текст».