var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2840],{83616:function(t,e,r){r.d(e,{Bt:function(){return c},Jb:function(){return p},LP:function(){return u},OE:function(){return a},TO:function(){return o},Wh:function(){return y},YZ:function(){return f},bM:function(){return s},bc:function(){return v},k_:function(){return d}}),r(21249),r(57640),r(9924),r(41539),r(25387),r(2490),r(72608),r(9653),r(56977),r(92222),r(69600),r(57658);var n=r(62912),i=r(7833);function o(t){return Boolean(null==t?void 0:t.gridCellSettings)}function s(t){var e=t.rowStart,r=t.columnStart;return(e-1)*t.columnsCount+(r-1)}function a(t){var e=t.point,r=t.gridCells,n=t.columnsCount,i=r.map((function(t){return function(t,e){var r=e.left,n=e.right,i=e.top,o=e.bottom,s=Math.max(r-t.x,0,t.x-n),a=Math.max(i-t.y,0,t.y-o);return Math.sqrt(s*s+a*a)}(e,t)}));return function(t,e){return{row:Math.floor(t/e)+1,column:t%e+1}}(i.reduce((function(t,e,r,n){return e<n[t]?r:t}),0),n)}function c(t){return{leftTopPoint:{x:t.left,y:t.top},rightBottomPoint:{x:t.right,y:t.bottom}}}function u(t){var e=t.gridCells,r=t.position,n=t.columnsCount,i=r.columnStart,o=r.columnEnd,a=r.rowStart,c=r.rowEnd,u=s({rowStart:a,columnStart:i,columnsCount:n}),l=s({rowStart:c-1,columnStart:o-1,columnsCount:n});return{startCell:e[u],endCell:e[l]}}function l(t){return Number(t.toFixed(2))}function p(t,e,r){if(e===n.fb.ViewportHeight){var i=window.innerHeight||document.documentElement.clientHeight;return{unit:n.fb.ViewportHeight,value:String(l(t/i*100))}}if(e===n.fb.ViewportWidth){var o=window.innerWidth||document.documentElement.clientWidth;return{unit:n.fb.ViewportWidth,value:String(l(t/o*100))}}return e===n.fb.Percent?{unit:n.fb.Percent,value:String(l(t/r*100))}:{unit:n.fb.Pixel,value:String(Math.round(t))}}function f(t,e){return{width:e.right-t.left,height:e.bottom-t.top}}function d(t){var e=t.itemProps,r=t.gridCells,i=t.chosenArea,o=t.columnsCount,s=e.sizes,a=s.width,c=s.height,p=e.gridCellSettings.area,d=u({gridCells:r,position:{columnStart:p.gridColumnStart,columnEnd:p.gridColumnEnd,rowStart:p.gridRowStart,rowEnd:p.gridRowEnd},columnsCount:o}),y=f(d.startCell,d.endCell),v=y.width,h=y.height,b=i.width,m=i.height,g=a,O=c;return a.unit===n.fb.Percent&&a.value&&v!==b&&(g={unit:n.fb.Percent,value:String(l(v*Number(a.value)/b))}),c.unit===n.fb.Percent&&c.value&&h!==m&&(O={unit:n.fb.Percent,value:String(l(h*Number(c.value)/m))}),{width:g,height:O}}function y(t){var e=t.itemProps,r=t.itemRect,i=t.chosenArea,o=t.params,s=i.width,a=i.height,c=p(r.width,e.sizes.width.unit,s),u=p(r.height,e.sizes.height.unit,a);return o.isAutoHeight&&(u={unit:n.fb.Auto,value:""}),o.isAutoWidth&&(c={unit:n.fb.Auto,value:""}),{width:c,height:u}}function v(t,e){var r=function(t){var e=t.gap,r=t.gapsCount;return"".concat(Number(e.value)*r).concat(e.unit)}({gap:e,gapsCount:t.length-1}),o="100% - ".concat(r),s=function(t,e,r){return t.map((function(t){return t.unit===n.fb.Percent&&Number(t.value)&&Number(e.value)?{unit:n.fb.Calc,value:"(".concat(r,") * ").concat(Number(t.value)/100)}:t}))}(t,e,o),a=function(t,e){var r=function(t){return t.reduce((function(t,e){return e.unit===n.fb.Fraction&&Number(e.value)&&(t+=Number(e.value)),t}),0)}(t),o=function(t){return t.reduce((function(t,e){return e.unit===n.fb.Calc&&e.value?(t.push("(".concat(e.value,")")),t):e.unit!==n.fb.Fraction&&Number(e.value)?(t.push((0,i.I)(e)),t):t}),[]).join(" + ")}(t);return t.map((function(t){if(t.unit===n.fb.Fraction&&Number(t.value)){var i=o?"(".concat(e," - (").concat(o,"))"):"(".concat(e,")"),s=Number(t.value)/r;return{unit:n.fb.Calc,value:"".concat(i," * ").concat(s)}}return t.unit!==n.fb.Fraction||Number(t.value)?t:{unit:n.fb.Percent,value:"0"}}))}(s,o);return a.map((function(t){return t.unit===n.fb.Auto?{unit:n.fb.MinContent,value:""}:t})).map(i.I).join(" ")}},11890:function(t,e,r){r.d(e,{NQ:function(){return o},XJ:function(){return s},pm:function(){return a}}),r(19601);var n=r(87735),i=r(6896);function o(t){if(!t)return!1;var e=t.type,r=t.mp4Url,n=t.webmUrl,o=t.streamSrc,s=t.youtubeSrc,a=t.vimeoSrc,c=t.vhSrc,u=t.stub;return e===i.Z.Uploaded?Boolean(r||n):e===i.Z.Stream?Boolean(o):e===i.Z.Youtube?Boolean(s):e===i.Z.Vimeo?Boolean(a):e===i.Z.VH&&(Boolean(c)||Boolean(u))}function s(t){var e=parseFloat(String(t));return isNaN(e)?void 0:e+"px"}function a(t,e){var r=e?(0,n.parse)(e):{};return Object.assign(t,r)}},62840:function(t,e,r){r.r(e),r.d(e,{LcVideoBlock:function(){return bt},LcVideoBlockComponent:function(){return ht}}),r(41539),r(81299),r(12419),r(47941),r(82526),r(57327),r(88449),r(2490),r(59849),r(38880),r(57658),r(15581),r(34514),r(54747),r(49337);var n=r(15671),i=r(43144),o=r(60136),s=r(82963),a=r(61120),c=r(4942),u=(r(92222),r(74916),r(4723),r(77601),r(87735)),l=r(87363),p=r(14134),f=r(63487),d=r(5834),y=r(24695),v=r(8729),h=r(50439),b=r(47330),m=r(30633),g=r(46127),O=r(20703),P=r(83616),w=r(14544),j=r(45987),Z=r(97326),S=r(99724),k=r(25673),I=r(85893),R=["src","visibilityRootRef","isVisible","isIntersecting","children","unobserve"];function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){(0,c.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var B=function(t){(0,o.Z)(l,t);var e,r,u=(e=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,a.Z)(e);if(r){var i=(0,a.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function l(){var t;(0,n.Z)(this,l);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t=u.call.apply(u,[this].concat(r)),(0,c.Z)((0,Z.Z)(t),"state",{isMounted:!1}),t}return(0,i.Z)(l,[{key:"renderBordersWrapper",value:function(t){var e=this.props.bordersWrapper;return e?(0,I.jsx)(w.LcBorders,C(C({isComponentWrapper:!0},e),{},{children:t})):t}},{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"render",value:function(){var t=this.props,e=t.src,r=t.visibilityRootRef,n=t.isVisible,i=t.isIntersecting,o=(t.children,t.unobserve,(0,j.Z)(t,R)),s=this.state.isMounted&&(d.h||n||i);return this.renderBordersWrapper((0,I.jsx)("iframe",C(C({},o),{},{src:s?e:void 0,ref:r})))}}]),l}(l.PureComponent),V=(0,S.g)(k.nb)(B),U=["mp4Url","webmUrl","visibilityRootRef","isVisible","isIntersecting","children","unobserve"];function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach((function(e){(0,c.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var N=function(t){(0,o.Z)(u,t);var e,r,c=(e=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,a.Z)(e);if(r){var i=(0,a.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function u(){return(0,n.Z)(this,u),c.apply(this,arguments)}return(0,i.Z)(u,[{key:"renderBordersWrapper",value:function(t){var e=this.props.bordersWrapper;return e?(0,I.jsx)(w.LcBorders,A(A({isComponentWrapper:!0},e),{},{children:t})):t}},{key:"render",value:function(){var t=this.props,e=t.mp4Url,r=t.webmUrl,n=t.visibilityRootRef,i=t.isVisible,o=t.isIntersecting,s=(t.children,t.unobserve,(0,j.Z)(t,U)),a=d.h||i||o;return this.renderBordersWrapper((0,I.jsxs)("video",A(A({},s),{},{ref:n,children:[e&&a&&(0,I.jsx)("source",{src:e,type:"video/mp4"}),r&&a&&(0,I.jsx)("source",{src:r,type:"video/webm"})]})))}}]),u}(l.PureComponent),E=(0,S.g)(k.nb)(N),W=r(6896),H=r(11890),M=r(93433),F=(r(64211),r(41874),r(55877)),L=r(42881);var _=function(t){(0,o.Z)(l,t);var e,r,u=(e=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,a.Z)(e);if(r){var i=(0,a.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function l(){var t;(0,n.Z)(this,l);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t=u.call.apply(u,[this].concat(r)),(0,c.Z)((0,Z.Z)(t),"state",{isUserPlay:t.props.autoplay,wasPlayerControlled:!1,isPlay:t.props.autoplay}),(0,c.Z)((0,Z.Z)(t),"onPlay",(function(){t.setState((function(t){var e=t.isUserPlay;return t.wasPlayerControlled?{isUserPlay:e,wasPlayerControlled:!1,isPlay:!0}:{isUserPlay:!0,wasPlayerControlled:!1,isPlay:!0}}))})),(0,c.Z)((0,Z.Z)(t),"onPause",(function(){t.setState((function(t){var e=t.isUserPlay;return t.wasPlayerControlled?{isUserPlay:e,wasPlayerControlled:!1,isPlay:!1}:{isUserPlay:!1,wasPlayerControlled:!1,isPlay:!1}}))})),t}return(0,i.Z)(l,[{key:"isShown",get:function(){var t=this.props,e=t.isIntersecting,r=t.isVisible;return e||r}},{key:"componentDidUpdate",value:function(t,e){var r=this,n=this.props,i=n.playOnInvisible,o=n.player,s=n.eventsOnPause,a=n.eventsOnPlay,c=this.state,u=c.isPlay,l=c.isUserPlay,p=c.wasPlayerControlled;i||!o||t.player||(s.forEach((function(t){o.on(t,r.onPause)})),a.forEach((function(t){o.on(t,r.onPlay)}))),u===e.isPlay&&l===e.isUserPlay&&p||!i&&o&&l&&(this.isShown&&!u&&(this.setState({wasPlayerControlled:!0}),o.play()),!this.isShown&&u&&(this.setState({wasPlayerControlled:!0}),o.pause()))}},{key:"render",value:function(){return this.props.container}}]),l}(l.PureComponent),Y=["contentId","visibilityRootRef","isVisible","isIntersecting","unobserve","playOnInvisible","params"];function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){(0,c.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var J=["play"],K=["pause"],T=(0,p.Z)("lc-video-block"),$=function(t){(0,o.Z)(p,t);var e,r,l=(e=p,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,a.Z)(e);if(r){var i=(0,a.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function p(){var t;(0,n.Z)(this,p);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t=l.call.apply(l,[this].concat(r)),(0,c.Z)((0,Z.Z)(t),"containerId",(0,F.v4)()),(0,c.Z)((0,Z.Z)(t),"state",{vimeoUrl:"",wasScriptAttached:!1,player:null,isPlaying:!1}),(0,c.Z)((0,Z.Z)(t),"onClick",(function(){var e=t.props.params,r=e.controls,n=e.autoplay,i=t.state,o=i.player,s=i.isPlaying;r||!o||n||(s?(o.pause(),t.setState({isPlaying:!1})):(o.play(),t.setState({isPlaying:!0})))})),t}return(0,i.Z)(p,[{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.params,n=e.contentId,i=e.isIntersecting,o=e.isVisible,s=[].concat((0,M.Z)(Object.keys(r)),(0,M.Z)(Object.keys(t.params))).some((function(e){return t.params[e]!==r[e]}));n&&(o||i||d.h)&&!this.state.wasScriptAttached?(this.setState({vimeoUrl:"https://webcf.waybackmachine.org/web/20240518224125/https://player.vimeo.com/video/".concat(n,"?").concat((0,u.stringify)(z(z({},r),{},{autoplay:this.isAutoplay}))),wasScriptAttached:!0}),this.attachPlayerScript()):n&&d.h&&s&&this.setState({vimeoUrl:"https://webcf.waybackmachine.org/web/20240518224125/https://player.vimeo.com/video/".concat(n,"?").concat((0,u.stringify)(z(z({},r),{},{autoplay:this.isAutoplay})))})}},{key:"isAutoplay",get:function(){var t=this.props,e=t.params,r=t.playOnInvisible,n=t.isVisible,i=t.isIntersecting;return e.autoplay&&(r||n||i)}},{key:"attachPlayerScript",value:function(){var t=this;(0,L.$)("//webcf.waybackmachine.org/web/20240518224125/https://yastatic.net/s3/lpc-ext/static/_lib/vimeo/2.20.1/vimeo.js").then((function(){t.initPlayer()}))}},{key:"initPlayer",value:function(){var t,e,r,n,i=window.Vimeo,o=this.props,s=o.params,a=o.contentId;i&&a&&null!==(t=this.props.visibilityRootRef)&&void 0!==t&&null!==(e=t.current)&&void 0!==e&&e.id&&this.setState({player:new i.Player(null===(r=this.props.visibilityRootRef)||void 0===r||null===(n=r.current)||void 0===n?void 0:n.id,z({contentId:a},z(z({},s),{},{autoplay:this.isAutoplay})))}),i||console.error("Vimeo script was attached, but there is no Vimeo in window")}},{key:"renderOverlay",value:function(){var t=this.props.params,e=t.controls,r=t.autoplay;return e||d.h||r?null:(0,I.jsx)("div",{className:T("overlay",{vimeo:!0})(),onClick:this.onClick})}},{key:"container",get:function(){var t=this.props,e=(t.contentId,t.visibilityRootRef),r=(t.isVisible,t.isIntersecting,t.unobserve,t.playOnInvisible,t.params,(0,j.Z)(t,Y));return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("iframe",z({src:this.state.vimeoUrl,id:this.containerId,frameBorder:"no",scrolling:"no",allowFullScreen:!0,ref:e},r),this.containerId),this.renderOverlay()]})}},{key:"render",value:function(){var t=this.props,e=t.playOnInvisible,r=t.params.autoplay,n=t.isIntersecting,i=t.isVisible,o=Boolean(r);return(0,I.jsx)(_,{player:this.state.player,autoplay:o,eventsOnPlay:J,eventsOnPause:K,container:this.container,playOnInvisible:e,isIntersecting:n,isVisible:i})}}]),p}(l.PureComponent),q=(0,S.g)({enableRoot:!1})($),X=["contentId","visibilityRootRef","isVisible","isIntersecting","unobserve","playOnInvisible","params"];function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){(0,c.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var et=["started","resumed"],rt=["paused"],nt=(0,p.Z)("lc-video-block"),it=function(t){(0,o.Z)(l,t);var e,r,u=(e=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,a.Z)(e);if(r){var i=(0,a.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function l(){var t;(0,n.Z)(this,l);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t=u.call.apply(u,[this].concat(r)),(0,c.Z)((0,Z.Z)(t),"containerId",(0,F.v4)()),(0,c.Z)((0,Z.Z)(t),"state",{wasScriptAttached:!1,player:null,isPlaying:!1,isStarted:!1}),(0,c.Z)((0,Z.Z)(t),"handleClick",(function(){var e=t.props.params,r=e.hidden,n=e.autoplay,i=t.state,o=i.player,s=i.isPlaying;r&&o&&!n&&(s?o.pause():o.play(),t.setState((function(t){return{isPlaying:!t.isPlaying}})))})),t}return(0,i.Z)(l,[{key:"isAutoplay",get:function(){var t=this.props,e=t.params,r=t.playOnInvisible,n=t.isVisible,i=t.isIntersecting;return e.autoplay&&(r||n||i)}},{key:"attachPlayerScript",value:function(){var t=this;(0,L.$)("//webcf.waybackmachine.org/web/20240518224125/https://yastatic.net/vh-player/loader.js").then((function(){t.initPlayer()}))}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.contentId,n=e.isIntersecting,i=e.isVisible,o=e.params,s=[].concat((0,M.Z)(Object.keys(o)),(0,M.Z)(Object.keys(t.params))).some((function(e){return t.params[e]!==o[e]})),a=r!==t.contentId;if(r&&(n||i||d.h)&&!this.state.wasScriptAttached)this.setState({wasScriptAttached:!0}),this.attachPlayerScript();else if(r&&d.h&&(s||a)){var c;null===(c=this.state.player)||void 0===c||c.destroy(),this.setState({isStarted:!1}),this.initPlayer()}}},{key:"initPlayer",value:function(){var t,e,r,n,i,o,s=this,a=null===(t=window.Yandex)||void 0===t?void 0:t.VH,c=this.props,u=c.params,l=c.contentId;a&&l&&null!==(e=this.props.visibilityRootRef)&&void 0!==e&&null!==(r=e.current)&&void 0!==r&&r.id&&(this.setState({player:new a.Player(null===(n=this.props.visibilityRootRef)||void 0===n||null===(i=n.current)||void 0===i?void 0:i.id,{contentId:l,params:tt(tt({},u),{},{autoplay:this.isAutoplay?1:0})})}),null===(o=this.state.player)||void 0===o||o.on("started",(function(){return s.setState({isStarted:!0,isPlaying:!0})}))),a||console.error("VH script was attached, but there is no VH in window")}},{key:"componentWillUnmount",value:function(){var t;null===(t=this.state.player)||void 0===t||t.destroy()}},{key:"renderOverlay",value:function(){var t=this.props.params,e=t.hidden,r=t.autoplay,n=this.state.isStarted;return!e||d.h||r||!n?null:(0,I.jsx)("div",{className:nt("overlay",{vh:!0})(),onClick:this.handleClick})}},{key:"container",get:function(){var t=this.props,e=(t.contentId,t.visibilityRootRef),r=(t.isVisible,t.isIntersecting,t.unobserve,t.playOnInvisible,t.params,(0,j.Z)(t,X));return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",tt({id:this.containerId,ref:e},r),this.containerId),this.renderOverlay()]})}},{key:"render",value:function(){var t=this.props,e=t.playOnInvisible,r=t.params.autoplay,n=t.isIntersecting,i=t.isVisible,o=Boolean(r);return(0,I.jsx)(_,{player:this.state.player,autoplay:o,eventsOnPlay:et,eventsOnPause:rt,container:this.container,playOnInvisible:e,isIntersecting:n,isVisible:i})}}]),l}(l.PureComponent),ot=(0,S.g)({enableRoot:!1})(it),st=(r(69600),["contentId","visibilityRootRef","isVisible","isIntersecting","unobserve","params","className"]);function at(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?at(Object(r),!0).forEach((function(e){(0,c.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ut=(0,p.Z)("lc-video-block"),lt={width:"100%",height:"100%"},pt=function(t){(0,o.Z)(p,t);var e,r,l=(e=p,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,a.Z)(e);if(r){var i=(0,a.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function p(){var t;(0,n.Z)(this,p);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t=l.call.apply(l,[this].concat(r)),(0,c.Z)((0,Z.Z)(t),"containerId",(0,F.v4)()),(0,c.Z)((0,Z.Z)(t),"eventsId",parseInt(t.containerId.split("-").join(""),16)),(0,c.Z)((0,Z.Z)(t),"state",{isStart:!1,isShown:!1,isPlaying:!1}),(0,c.Z)((0,Z.Z)(t),"onIframePost",(function(e){if("https://webcf.waybackmachine.org/web/20240518224125/https://www.youtube.com"===e.origin&&e.data){var r=JSON.parse(e.data);if(r.id===t.eventsId&&r.info){var n=r.info.playerState;1===n&&t.setState({isStart:!0,isPlaying:!0}),0===n&&t.setState({isStart:!1,isPlaying:!1})}}})),(0,c.Z)((0,Z.Z)(t),"handleClick",(function(){var e,r,n,i,o,s=t.props,a=s.visibilityRootRef,c=s.params,u=c.autoplay,l=c.mute,p=t.state.isPlaying;null==a||null===(e=a.current)||void 0===e||!e.contentWindow||"1"===u&&"1"===l||(p?null==a||null===(r=a.current)||void 0===r||null===(n=r.contentWindow)||void 0===n||n.postMessage('{"event":"command","id":'.concat(t.eventsId,',"func":"pauseVideo","channel":"widget"}'),"*"):null==a||null===(i=a.current)||void 0===i||null===(o=i.contentWindow)||void 0===o||o.postMessage('{"event":"command","id":'.concat(t.eventsId,',"func":"playVideo","channel":"widget"}'),"*"),t.setState((function(t){return{isPlaying:!t.isPlaying}})))})),t}return(0,i.Z)(p,[{key:"componentDidUpdate",value:function(){var t,e=this,r=this.props,n=r.contentId,i=r.isIntersecting,o=r.isVisible,s=r.visibilityRootRef;n&&(o||i||d.h)&&!this.state.isShown&&(this.setState({isShown:!0}),null==s||null===(t=s.current)||void 0===t||t.addEventListener("load",(function(){var t,r;null==s||null===(t=s.current)||void 0===t||null===(r=t.contentWindow)||void 0===r||r.postMessage('{"event":"listening","id":'.concat(e.eventsId,',"channel":"widget"}'),"*"),window.addEventListener("message",e.onIframePost)})))}},{key:"renderOverlay",value:function(){var t=this.props.params,e=t.controls,r=t.autoplay,n=t.mute;return"0"===e&&("1"===r&&"1"===n||this.state.isStart)?(0,I.jsx)("div",{className:ut("overlay")(),onClick:this.handleClick}):null}},{key:"youtubeUrl",get:function(){return"https://www.youtube.com/embed/".concat(this.props.contentId,"?").concat((0,u.stringify)(this.props.params))}},{key:"render",value:function(){var t=this.state,e=t.isStart,r=t.isShown,n=this.props,i=(n.contentId,n.visibilityRootRef),o=(n.isVisible,n.isIntersecting,n.unobserve,n.params),s=n.className,a=(0,j.Z)(n,st),c="0"===o.controls&&e?{height:"calc(100% + 1000px)",margin:"-500px 0 0 0"}:{};return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{style:{overflow:"hidden"},className:s,children:[(0,I.jsx)("iframe",ct({src:r?this.youtubeUrl:void 0,ref:i,id:this.containerId,frameBorder:"no",scrolling:"no",allowFullScreen:!0,style:ct(ct({},lt),c)},a),this.containerId),this.renderOverlay()]})})}}]),p}(l.PureComponent),ft=(0,S.g)({enableRoot:!1})(pt);function dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(r),!0).forEach((function(e){(0,c.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var vt=(0,p.Z)("lc-video-block"),ht=function(t){(0,o.Z)(l,t);var e,r,c=(e=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,a.Z)(e);if(r){var i=(0,a.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function l(){return(0,n.Z)(this,l),c.apply(this,arguments)}return(0,i.Z)(l,[{key:"styles",get:function(){return{"--video-block-width":this.props.customWidth||"100%"}}},{key:"videoStyles",get:function(){var t=this.props.video,e=t.ratio,r=t.customRatioPx,n=void 0===r?k.VS:r;return e!==W.B.Custom?{}:{width:(0,H.XJ)(n.width),height:(0,H.XJ)(n.height)}}},{key:"isAutoplay",get:function(){return this.props.video.autoplay&&!d.h}},{key:"render",value:function(){var t=this,e=this.props,r=e.video,n=e.mix,i=void 0===n?"":n,o=e.resizerMix,s=void 0===o?"":o,a=e.width,c=e.customWidth,u=e.hasBreakpoints,l=void 0!==u&&u,p=r.ratio,f=void 0===p?"":p,y=r.mask;if(!(0,H.NQ)(r))return null;var v=yt(yt({"in-grid2":(0,P.TO)(this.props),"has-breakpoints":l},a&&{width:a}),{},{"custom-width":Boolean(c)});return(0,I.jsx)("div",{className:vt.mix(i)(v)(),style:this.styles,children:(0,I.jsx)(O.f,{value:y,children:function(e){return(0,I.jsx)("div",{className:vt.mix(s)("resizer",{ratio:f})(),style:t.videoStyles,children:(0,I.jsxs)("div",{className:vt("content")(),style:e,children:[t.renderVideo(),d.h&&(0,I.jsx)("div",{className:vt("disable-layer")()}),t.renderVideoStub()]})})}})})}},{key:"renderVideo",value:function(){var t=this.props,e=t.video,r=e.type,n=e.mp4Url,i=e.webmUrl,o=e.loop,s=e.muted,a=e.showControls,c=t.bordersWrapper,u=t.userQuery,l=u?"?".concat(u):"";return r===W.Z.Uploaded?(0,I.jsx)(E,{className:vt("video-object")(),autoPlay:this.isAutoplay,playsInline:this.isAutoplay,loop:o,muted:s,controls:a,preload:"auto",mp4Url:n&&"".concat(n).concat(l),webmUrl:i&&"".concat(i).concat(l),bordersWrapper:(0,P.TO)(this.props)?void 0:c}):r===W.Z.Vimeo?this.renderVimeoVideo():r===W.Z.VH?this.renderVHVideo():r===W.Z.Youtube?this.renderYoutubeVideo():(0,I.jsx)(V,{className:vt("video-object")(),src:this.getIframeUrl(),frameBorder:"no",scrolling:"no",bordersWrapper:c,allowFullScreen:!0})}},{key:"renderBordersWrapper",value:function(t){var e=this.props.bordersWrapper;return e?(0,I.jsx)(w.LcBorders,yt(yt({isComponentWrapper:!0},e),{},{children:t})):t}},{key:"renderYoutubeVideo",value:function(){var t=this.props,e=t.video,r=e.loop,n=e.muted,i=e.youtubeSrc,o=void 0===i?"":i,s=e.showControls,a=t.userQuery,c=-1===o.indexOf("youtube.com")&&-1===o.indexOf("youtu.be")?o:this.extractYoutubeIdFromUrl(o),l={loop:r?"1":"0",autoplay:this.isAutoplay?"1":"0",mute:n?"1":"0",controls:s?"1":"0",disablekb:s?"0":"1",rel:"0",enablejsapi:"1"};r&&(l.playlist=c);var p=a?(0,u.parse)(a):{};return this.renderBordersWrapper((0,I.jsx)(ft,{params:yt(yt({},l),p),contentId:c,className:vt("video-object")()}))}},{key:"renderVimeoVideo",value:function(){var t=this.props,e=t.video,r=e.loop,n=e.muted,i=e.playOnInvisible,o=e.showControls,s=t.userQuery,a=s?(0,u.parse)(s):{},c=yt({loop:r,autoplay:this.isAutoplay,muted:n,autopause:!1,controls:o,keyboard:o},a);return this.renderBordersWrapper((0,I.jsx)(q,{contentId:this.extractVimeoIdFromUrl(this.props.video.vimeoSrc||""),params:c,playOnInvisible:i,className:vt("video-object")()}))}},{key:"renderVHVideo",value:function(){var t=this.props,e=t.video,r=e.loop,n=e.muted,i=e.showControls,o=e.vhChannel,s=e.poster,a=e.playOnInvisible,c=t.isScreenshotMode,l=t.userQuery;if(c)return null;var p=this.extractVHIdFromUrl(this.props.video.vhSrc||""),f=l?(0,u.parse)(l):{},d={loop:r?1:0,autoplay:this.isAutoplay?1:0,mute:n?1:0,object_fit:"cover"};return o&&(d.from=o),i||(d.hidden=k.JZ),s&&(d.preview_src=s),this.renderBordersWrapper((0,I.jsx)(ot,{params:yt(yt({},d),f),contentId:p,playOnInvisible:a,className:vt("video-object")()}))}},{key:"renderVideoStub",value:function(){var t=this.props,e=t.video,r=e.type,n=e.stub,i=t.isScreenshotMode;if((d.h||i)&&r===W.Z.VH&&n){var o={backgroundImage:"url(".concat(n,")")};return(0,I.jsx)("div",{className:vt("vh-player-stub")(),style:o})}return null}},{key:"getIframeUrl",value:function(){var t=this.props.video,e=t.streamSrc,r=void 0===e?"":e,n=t.loop,i=t.muted,o=t.showControls,s=t.player,a=void 0===s?k.db:s;if(!this.isHSL(r))return console.warn("Ожидается ссылка формата .m3u8"),"";var c={loop:n,muted:i,autoplay:this.isAutoplay,hq_url:r};return o||(c.hidden="*"),"".concat(a.host,"/").concat(a.version,"/?").concat((0,u.stringify)((0,H.pm)(c,this.props.userQuery)))}},{key:"extractYoutubeIdFromUrl",value:function(t){var e=t.match(k.uo);return e?e[1]:""}},{key:"extractVimeoIdFromUrl",value:function(t){var e=t.match(k.a2);return e?e[2]:t}},{key:"extractVHIdFromUrl",value:function(t){var e=t.match(k.rY);return e?e[1]||e[2]:t}},{key:"isHSL",value:function(t){return/\.m3u8$/.test(t)}}]),l}(l.PureComponent);(0,c.Z)(ht,"defaultProps",{mix:""});var bt=(0,f.qC)((0,h.$)("LcVideoBlock"),(0,g.K)((function(t){return{isScreenshotMode:(0,y.Tz)(t)}})),v.H,m.W,b.V)(ht)},8729:function(t,e,r){r.d(e,{H:function(){return g}}),r(41539),r(81299),r(12419),r(47941),r(82526),r(57327),r(88449),r(2490),r(59849),r(38880),r(57658),r(15581),r(34514),r(54747),r(49337);var n=r(4942),i=r(45987),o=r(15671),s=r(43144),a=r(60136),c=r(82963),u=r(61120),l=r(87363),p=r(24695),f=r(14061),d=r(46127),y=r(85893),v=["bpProps","currentBreakpoint","hasBreakpoints","children"];function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m=function(t,e){var r;if(e.hasNoOwnBreakpoints)return{};var n=e.sectionId||(null===(r=e.attrs)||void 0===r?void 0:r["data-section-id"])||"",i=(0,p.y0)(t),o=i.currentBreakpoint,s=i.bpPropsMap,a=(void 0===s?{}:s)[n];return{bpProps:a,hasBreakpoints:Boolean(a),currentBreakpoint:o}};function g(t){return(0,d.K)(m)(function(e){(0,a.Z)(p,e);var r,n,l=(r=p,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,u.Z)(r);if(n){var i=(0,u.Z)(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return(0,c.Z)(this,t)});function p(){return(0,o.Z)(this,p),l.apply(this,arguments)}return(0,s.Z)(p,[{key:"render",value:function(){var e=this.props,r=e.bpProps,n=e.currentBreakpoint,o=e.hasBreakpoints,s=e.children,a=(0,i.Z)(e,v);if(!r||!n)return(0,y.jsx)(t,b({hasBreakpoints:o},this.props));var c=(0,f.Sp)({bpProps:r,currentBreakpoint:n,shouldDeleteReactKey:!0});return(0,y.jsx)(t,b(b(b({},a),c),{},{children:s,hasBreakpoints:o}))}}]),p}(l.Component))}}}]);

}
/*
     FILE ARCHIVED ON 22:41:25 May 18, 2024 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 07:38:29 Nov 17, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.465
  exclusion.robots: 0.023
  exclusion.robots.policy: 0.015
  esindex: 0.01
  cdx.remote: 7.599
  LoadShardBlock: 84.095 (3)
  PetaboxLoader3.datanode: 86.353 (4)
  load_resource: 131.502
  PetaboxLoader3.resolve: 121.238
*/