var HERO_ATTRS={id:"data-hero-id",bg:"data-hero-bg",bgLqip:"data-hero-bg-lqip",parallax:"data-hero-parallax",mobileImg:"data-hero-mobile-image",videoMp4:"data-hero-video-mp4",videoWebm:"data-hero-video-webm",videoYoutube:"data-hero-video-youtube",videoVimeo:"data-hero-video-vimeo",videoVimeoHash:"data-hero-video-vimeo-hash",videoRutube:"data-hero-video-rutube",videoRutubeHash:"data-hero-video-rutube-hash",videoKinescope:"data-hero-video-kinescope",videoVkvideo:"data-hero-video-vkvideo",videoVkvideoHash:"data-hero-video-vkvideo-hash",videoNoloop:"data-hero-video-noloop",videoNomute:"data-hero-video-nomute",videoNoadcut:"data-hero-video-noadcut",videoRatio:"data-content-video-ratio",scrollHintStyle:"data-hero-scroll-control-style",scrollHintColor:"data-hero-scroll-control-color",bgPosition:"data-hero-bg-position"};function parseParallax(e){return"fixed"===e||"dynamic"===e?e:"none"}function parseBoolean(e,t){return null===e?t:"no"!==e&&"false"!==e&&"0"!==e&&"off"!==e}var IFRAME_SOURCES=["vimeo","rutube","kinescope","vkvideo"],YOUTUBE_SOURCE="youtube",HTML5_SOURCES=["mp4","webm"];function resolveVideoKind(e){return e[YOUTUBE_SOURCE]?"youtube":IFRAME_SOURCES.some((function(t){return!!e[t]}))?"iframe":HTML5_SOURCES.some((function(t){return!!e[t]}))?"html5":null}function parseHeroConfig(e){var t,r,n,o,i=null!=(t=null!=(r=e.getAttribute(HERO_ATTRS.id))?r:e.id)?t:"",a=null!=(n=e.getAttribute(HERO_ATTRS.bg))?n:"",s=null!=(o=e.getAttribute(HERO_ATTRS.bgLqip))?o:null,c=parseParallax(e.getAttribute(HERO_ATTRS.parallax)),l=e.getAttribute(HERO_ATTRS.mobileImg),u=!!l&&parseBoolean(l,!1),f={},d=e.getAttribute(HERO_ATTRS.videoMp4);d&&(f.mp4={id:d});var p=e.getAttribute(HERO_ATTRS.videoWebm);p&&(f.webm={id:p});var y=e.getAttribute(HERO_ATTRS.videoYoutube);y&&(f.youtube={id:y});var v=e.getAttribute(HERO_ATTRS.videoVimeo);if(v){var h=e.getAttribute(HERO_ATTRS.videoVimeoHash);f.vimeo={id:v,hash:null!=h?h:void 0}}var m=e.getAttribute(HERO_ATTRS.videoRutube);if(m){var g=e.getAttribute(HERO_ATTRS.videoRutubeHash);f.rutube={id:m,hash:null!=g?g:void 0}}var b=e.getAttribute(HERO_ATTRS.videoKinescope);b&&(f.kinescope={id:b});var _=e.getAttribute(HERO_ATTRS.videoVkvideo);if(_){var w=e.getAttribute(HERO_ATTRS.videoVkvideoHash);f.vkvideo={id:_,hash:null!=w?w:void 0}}var E=!e.hasAttribute(HERO_ATTRS.videoNoloop),S=!e.hasAttribute(HERO_ATTRS.videoNomute),A=e.hasAttribute(HERO_ATTRS.videoNoadcut),O=resolveVideoKind(f),P=e.getAttribute(HERO_ATTRS.videoRatio),T=null!==P?parseFloat(P):NaN,R,D;return{recid:i,bgUrl:a,bgLqip:s,parallax:c,video:{kind:O,sources:f,loop:E,muted:S,noadcut:A,useImageOnMobile:u,ratio:!isNaN(T)&&T>0?T:null}}}function findHeroElements(e){var t=e.querySelector(".t-hero__media");return t?{root:e,media:t,overlay:e.querySelector(".t-hero__overlay"),inner:e.querySelector(".t-hero__inner"),content:e.querySelector(".t-hero__content"),scrollHint:e.querySelector(".t-hero__scroll-control"),gallery:e.querySelector("[data-hero-gallery]")}:null}function findAllHeroRoots(){return Array.from(document.querySelectorAll(".t-hero"))}function setCssVar(e,t,r){e.style.setProperty(t,r)}function setMediaLoading(e,t){t.classList.remove("t-hero_media-ready"),t.classList.add("t-hero_media-loading")}function setMediaReady(e,t){t.classList.remove("t-hero_media-loading"),t.classList.add("t-hero_media-ready")}function setMediaBackground(e,t){e.style.setProperty("--t-hero-bg-image",'url("'+t.replace(/"/g,"%22")+'")')}function clearMediaBackground(e){e.style.removeProperty("--t-hero-bg-image")}var FN_HTML5="t_videoprocessor__processHTML5Video",FN_YOUTUBE="processYoutubeVideo",FN_IFRAME="t_videoprocessor__processIframeVideo";function whenReady(e,t){t_onFuncLoad(e,t)}function resolveDeps(){return{processHTML5Video:function e(t,r){whenReady(FN_HTML5,(function(){window[FN_HTML5](t,r)}))},processYoutubeVideo:function e(t,r){whenReady(FN_YOUTUBE,(function(){window[FN_YOUTUBE](t,r)}))},processIframeVideo:function e(t,r){whenReady(FN_IFRAME,(function(){window[FN_IFRAME](t,r)}))}}}function _OverloadYield(e,t){this.v=e,this.k=t}function _applyDecoratedDescriptor(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(e,t,i),null):i}function _applyDecs2311(e,t,r,n,o,i){var a,s,c,l,u,f,d,p=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,v=Object.create,h=[v(null),v(null)],m=t.length;function g(t,r,n){return function(o,i){r&&(i=o,o=e);for(var a=0;a=0;k-=r?2:1){var I=b(v[k],"A decorator","be",!0),j=r?v[k-1]:void 0,M={},F={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,M)};if(_)s=I.call(j,D,F),M.v=1,b(s,"class decorators","return")&&(D=s);else if(F.static=l,F.private=u,s=F.access={has:u?d.bind():function(e){return n in e}},S||(s.get=u?A?function(e){return p(e),P.value}:O("get",0,p):function(e){return e[n]}),A||E||(s.set=u?O("set",0,p):function(e,t){e[n]=t}),D=I.call(j,w?{get:P.get,set:P.set}:P[R],F),M.v=1,w){if("object"==typeof D&&D)(s=b(D.get,"accessor.get"))&&(P.get=s),(s=b(D.set,"accessor.set"))&&(P.set=s),(s=b(D.init,"accessor.init"))&&T.unshift(s);else if(void 0!==D)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(D,(f?"field":"method")+" decorators","return")&&(f?T.unshift(D):P[R]=D)}return o<2&&c.push(g(T,l,1),g(i,l,0)),f||_||(u?w?c.splice(-1,0,O("get",l),O("set",l)):c.push(A?P[R]:b.call.bind(P[R])):y(e,n,P)),D}function w(e){return y(e,p,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[p]),a=v(null==a?null:a),u=[],f=function(e){e&&u.push(g(e))},d=function(t,n){for(var i=0;ie.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _decorate(e,t,r,n){var o=_getDecoratorsApi();if(n)for(var i=0;i=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,o[i])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[n])(o)||o);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;a1){for(var a=Array(i),s=0;s3?(o=y===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&pn||n>y)&&(i[4]=r,i[5]=n,d.n=y,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,u,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,y),s=u,c=y;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,c)):d.n=c:d.v=c);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(_regeneratorDefine(t={},n,(function(){return this})),t),f=l.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,_regeneratorDefine(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,_regeneratorDefine(f,"constructor",l),_regeneratorDefine(l,"constructor",c),c.displayName="GeneratorFunction",_regeneratorDefine(l,o,"GeneratorFunction"),_regeneratorDefine(f),_regeneratorDefine(f,o,"Generator"),_regeneratorDefine(f,n,(function(){return this})),_regeneratorDefine(f,"toString",(function(){return"[object Generator]"})),(_regenerator=function(){return{w:i,m:d}})()}function _regeneratorAsync(e,t,r,n,o){var i=_regeneratorAsyncGen(e,t,r,n,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function _regeneratorAsyncGen(e,t,r,n,o){return new _regeneratorAsyncIterator(_regenerator().w(e,t,r,n),o||Promise)}function _regeneratorAsyncIterator(e,t){function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof _OverloadYield?t.resolve(c.v).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,a)}))}catch(e){a(e)}}var n;this.next||(_regeneratorDefine(_regeneratorAsyncIterator.prototype),_regeneratorDefine(_regeneratorAsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),_regeneratorDefine(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,n){r(e,i,t,n)}))}return n=n?n.then(a,a):a()}),!0)}function _regeneratorDefine(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine=function(e,t,r,n){function i(t,r){_regeneratorDefine(e,t,(function(e){return this._invoke(t,r,e)}))}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},_regeneratorDefine(e,t,r,n)}function _regeneratorKeys(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function set(e,t,r,n){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,r,n){var o,i=_superPropBase(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(n,r),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(n,t)){if(!o.writable)return!1;o.value=r,Object.defineProperty(n,t,o)}else _defineProperty(n,t,r);return!0},set(e,t,r,n)}function _set(e,t,r,n,o){if(!set(e,t,r,n||e)&&o)throw new TypeError("failed to set property");return r}function _setFunctionName(e,t,r){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _skipFirstGeneratorNext(e){return function(){var t=e.apply(this,arguments);return t.next(),t}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _superPropGet(e,t,r,n){var o=_get(_getPrototypeOf(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function _superPropSet(e,t,r,n,o,i){return _set(_getPrototypeOf(i?e.prototype:e),t,r,n,o)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}function _tdz(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}function _temporalRef(e,t){return e===_temporalUndefined?_tdz(t):e}function _temporalUndefined(){}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toSetter(e,t,r){t||(t=[]);var n=t.length++;return Object.defineProperty({},"_",{set:function(o){t[n]=o,e.apply(r,t)}})}function _tsRewriteRelativeImportExtensions(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,(function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e})):e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _usingCtx(){var e="function"==typeof SuppressedError?SuppressedError:function(e,t){var r=Error();return r.name="SuppressedError",r.error=e,r.suppressed=t,r},t={},r=[];function n(e,t){if(null!=t){if(Object(t)!==t)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var n=t[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===n&&(n=t[Symbol.dispose||Symbol.for("Symbol.dispose")],e))var o=n;if("function"!=typeof n)throw new TypeError("Object is not disposable.");o&&(n=function(){try{o.call(t)}catch(e){return Promise.reject(e)}}),r.push({v:t,d:n,a:e})}else e&&r.push({d:t,a:e});return t}return{e:t,u:n.bind(null,!1),a:n.bind(null,!0),d:function(){var n,o=this.e,i=0;function a(){for(;n=r.pop();)try{if(!n.a&&1===i)return i=0,r.push(n),Promise.resolve().then(a);if(n.d){var e=n.d.call(n.v);if(n.a)return i|=2,Promise.resolve(e).then(a,s)}else i|=1}catch(e){return s(e)}if(1===i)return o!==t?Promise.reject(o):Promise.resolve();if(o!==t)throw o}function s(r){return o=o!==t?new e(r,o):r,a()}return a()}}}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var t,r;function n(t,r){try{var i=e[t](r),a=i.value,s=a instanceof _OverloadYield;Promise.resolve(s?a.v:a).then((function(r){if(s){var c="return"===t&&a.k?t:"next";if(!a.k||r.done)return n(c,r);r=e[c](r).value}o(!!i.done,r)}),(function(e){n("throw",e)}))}catch(e){o(2,e)}}function o(e,o){2===e?t.reject(o):t.resolve({value:o,done:e}),(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};r?r=r.next=s:(t=r=s,n(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,e)},_wrapNativeSuper(e)}function _wrapRegExp(){_wrapRegExp=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var i=RegExp(e,n);return t.set(i,o||t.get(e)),_setPrototypeOf(i,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){var o=n[r];if("number"==typeof o)t[r]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)(>|$)/g,(function(e,t,r){if(""===r)return e;var n=i[t];return Array.isArray(n)?"$"+n.join("$"):"number"==typeof n?"$"+n:""})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,r,o)},_wrapRegExp.apply(this,arguments)}function _writeOnlyError(e){throw new TypeError('"'+e+'" is write-only')}function _AwaitValue(e){this.wrapped=e}function old_createMetadataMethodsForProperty(e,t,r,n){return{getMetadata:function(o){old_assertNotFinished(n,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var a=i.public;if(void 0!==a)return a[r]}else if(2===t){var s=i.private;if(void 0!==s)return s.get(r)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(n,"setMetadata"),old_assertMetadataKey(o);var a=e[o];if(void 0===a&&(a=e[o]={}),1===t){var s=a.public;void 0===s&&(s=a.public={}),s[r]=i}else if(2===t){var c=a.priv;void 0===c&&(c=a.private=new Map),c.set(r,i)}else a.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var r=e[Symbol.metadata||Symbol.for("Symbol.metadata")],n=Object.getOwnPropertySymbols(t);if(0!==n.length){for(var o=0;o=0;m--){var g;void 0!==(p=old_memberDec(h[m],n,l,s,c,o,i,a,d))&&(old_assertValidReturnValue(o,p),0===o?g=p:1===o?(g=old_getInit(p),y=p.get||d.get,v=p.set||d.set,d={get:y,set:v}):d=p,void 0!==g&&(void 0===u?u=g:"function"==typeof u?u=[u,g]:u.push(g)))}if(0===o||1===o){if(void 0===u)u=function(e,t){return t};else if("function"!=typeof u){var b=u;u=function(e,t){for(var r=t,n=0;n3,m=y>=5;if(m?(f=t,d=n,0!=(y-=5)&&(p=a=a||[])):(f=t.prototype,d=r,0!==y&&(p=i=i||[])),0!==y&&!h){var g=m?c:s,b=g.get(v)||0;if(!0===b||3===b&&4!==y||4===b&&3!==y)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!b&&y>2?g.set(v,y):g.set(v,!0)}old_applyMemberDec(e,f,u,v,y,m,h,d,p)}}old_pushInitializers(e,i),old_pushInitializers(e,a)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var o=[],i=t,a=t.name,s=n.length-1;s>=0;s--){var c={v:!1};try{var l=Object.assign({kind:"class",name:a,addInitializer:old_createAddInitializerMethod(o,c)},old_createMetadataMethodsForProperty(r,0,a,c)),u=n[s](i,l)}finally{c.v=!0}void 0!==u&&(old_assertValidReturnValue(10,u),i=u)}e.push(i,(function(){for(var e=0;e=0;m--){var g;void 0!==(p=t(h[m],i,u,l,a,s,c,d))&&(n(a,p),0===a?g=p:1===a?(g=p.init,y=p.get||d.get,v=p.set||d.set,d={get:y,set:v}):d=p,void 0!==g&&(void 0===f?f=g:"function"==typeof f?f=[f,g]:f.push(g)))}if(0===a||1===a){if(void 0===f)f=function(e,t){return t};else if("function"!=typeof f){var b=f;f=function(e,t){for(var r=t,n=0;n3,h=p>=5;if(h?(f=t,0!=(p-=5)&&(d=a=a||[])):(f=t.prototype,0!==p&&(d=n=n||[])),0!==p&&!v){var m=h?c:s,g=m.get(y)||0;if(!0===g||3===g&&4!==p||4===g&&3!==p)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&p>2?m.set(y,p):m.set(y,!0)}o(e,f,u,y,p,h,v,d)}}i(e,n),i(e,a)}(s,t,r),function(t,r,o){if(o.length>0){for(var i=[],a=r,s=r.name,c=o.length-1;c>=0;c--){var l={v:!1};try{var u=o[c](a,{kind:"class",name:s,addInitializer:e(i,l)})}finally{l.v=!0}void 0!==u&&(n(10,u),a=u)}t.push(a,(function(){for(var e=0;e=0;g--){var b;void 0!==(y=t(m[g],i,u,l,a,s,c,p))&&(n(a,y),0===a?b=y:1===a?(b=y.init,v=y.get||p.get,h=y.set||p.set,p={get:v,set:h}):p=y,void 0!==b&&(void 0===f?f=b:"function"==typeof f?f=[f,b]:f.push(b)))}if(0===a||1===a){if(void 0===f)f=function(e,t){return t};else if("function"!=typeof f){var _=f;f=function(e,t){for(var r=t,n=0;n<_.length;n++)r=_[n].call(e,r);return r}}else{var w=f;f=function(e,t){return w.call(e,t)}}e.push(f)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.set=p),c?1===a?(e.push((function(e,t){return p.get.call(e,t)})),e.push((function(e,t){return p.set.call(e,t)}))):2===a?e.push(p):e.push((function(e,t){return p.call(e,t)})):Object.defineProperty(r,i,u))}function i(e,t){for(var r,n,i=[],s=new Map,c=new Map,l=0;l3,h=p>=5;if(h?(f=e,0!=(p-=5)&&(d=n=n||[])):(f=e.prototype,0!==p&&(d=r=r||[])),0!==p&&!v){var m=h?c:s,g=m.get(y)||0;if(!0===g||3===g&&4!==p||4===g&&3!==p)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&p>2?m.set(y,p):m.set(y,!0)}o(i,f,u,y,p,h,v,d)}}return a(i,r),a(i,n),i}function a(e,t){t&&e.push((function(e){for(var r=0;r0){for(var o=[],i=t,a=t.name,s=r.length-1;s>=0;s--){var c={v:!1};try{var l=r[s](i,{kind:"class",name:a,addInitializer:e(o,c)})}finally{c.v=!0}void 0!==l&&(n(10,l),i=l)}return[i,function(){for(var e=0;e=0;w--){var E;void 0!==(m=r(_[w],a,d,u,s,c,l,v,f))&&(o(s,m),0===s?E=m:1===s?(E=m.init,g=m.get||v.get,b=m.set||v.set,v={get:g,set:b}):v=m,void 0!==E&&(void 0===p?p=E:"function"==typeof p?p=[p,E]:p.push(E)))}if(0===s||1===s){if(void 0===p)p=function(e,t){return t};else if("function"!=typeof p){var S=p;p=function(e,t){for(var r=t,n=0;n3,g=v>=5,b=r;if(g?(p=e,0!=(v-=5)&&(y=o=o||[]),m&&!i&&(i=function(t){return _checkInRHS(t)===e}),b=i):(p=e.prototype,0!==v&&(y=n=n||[])),0!==v&&!m){var _=g?u:l,w=_.get(h)||0;if(!0===w||3===w&&4!==v||4===w&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!w&&v>2?_.set(h,v):_.set(h,!0)}a(s,p,d,h,v,g,m,y,b)}}return c(s,n),c(s,o),s}function c(e,t){t&&e.push((function(e){for(var r=0;r0){for(var n=[],i=t,a=t.name,s=r.length-1;s>=0;s--){var c={v:!1};try{var l=r[s](i,{kind:"class",name:a,addInitializer:e(n,c)})}finally{c.v=!0}void 0!==l&&(o(10,l),i=l)}return[i,function(){for(var e=0;e=0;A-=r?2:1){var O=m[A],P=r?m[A-1]:void 0,T={},R={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:i,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");c(t,"An initializer","be",!0),s.push(t)}.bind(null,T)};try{if(b)(h=c(O.call(P,S,R),"class decorators","return"))&&(S=h);else{var D,k;R.static=u,R.private=f,f?2===o?D=function(e){return v(e),_.value}:(o<4&&(D=a(_,"get",v)),3!==o&&(k=a(_,"set",v))):(D=function(e){return e[n]},(o<2||4===o)&&(k=function(e,t){e[n]=t}));var I=R.access={has:f?y.bind():function(e){return n in e}};if(D&&(I.get=D),k&&(I.set=k),S=O.call(P,p?{get:_.get,set:_.set}:_[E],R),p){if("object"==typeof S&&S)(h=c(S.get,"accessor.get"))&&(_.get=h),(h=c(S.set,"accessor.set"))&&(_.set=h),(h=c(S.init,"accessor.init"))&&w.push(h);else if(void 0!==S)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else c(S,(d?"field":"method")+" decorators","return")&&(d?w.push(S):_[E]=S)}}finally{T.v=!0}}return(d||p)&&l.push((function(e,t){for(var r=w.length-1;r>=0;r--)t=w[r].call(e,t);return t})),d||b||(f?p?l.push(a(_,"get"),a(_,"set")):l.push(2===o?_[E]:a.call.bind(_[E])):Object.defineProperty(e,n,_)),S}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var f=i[Symbol.metadata||Symbol.for("Symbol.metadata")];var d=Object.create(null==f?null:f),p=function(e,t,r,n){var o,i,a=[],c=function(t){return _checkInRHS(t)===e},u=new Map;function f(e){e&&a.push(s.bind(null,e))}for(var d=0;d3,m=16&y,g=!!(8&y),b=0==(y&=7),_=v+"/"+g;if(!b&&!h){var w=u.get(_);if(!0===w||3===w&&4!==y||4===w&&3!==y)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);u.set(_,!(y>2)||y)}l(g?e:e.prototype,p,m,h?"#"+v:_toPropertyKey(v),y,n,g?i=i||[]:o=o||[],a,g,h,b,1===y,g&&h?c:r)}}return f(o),f(i),a}(e,t,o,d);return r.length||u(e,d),{e:p,get c(){var t=[];return r.length&&[u(l(e,[r],n,e.name,5,d,t),d),s.bind(null,t,e)]}}}function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}function _classApplyDescriptorSet(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function _classCheckPrivateStaticAccess(e,t,r){return _assertClassBrand(t,e,r)}function _classCheckPrivateStaticFieldDescriptor(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}function _classExtractFieldDescriptor(e,t){return _classPrivateFieldGet2(t,e)}function _classPrivateFieldDestructureSet(e,t){var r;return _classApplyDescriptorDestructureSet(e,_classPrivateFieldGet2(t,e))}function _classPrivateFieldGet(e,t){var r;return _classApplyDescriptorGet(e,_classPrivateFieldGet2(t,e))}function _classPrivateFieldSet(e,t,r){var n;return _classApplyDescriptorSet(e,_classPrivateFieldGet2(t,e),r),r}function _classPrivateMethodGet(e,t,r){return _assertClassBrand(t,e),r}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}function _classStaticPrivateFieldDestructureSet(e,t,r){return _assertClassBrand(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorDestructureSet(e,r)}function _classStaticPrivateFieldSpecGet(e,t,r){return _assertClassBrand(t,e),_classCheckPrivateStaticFieldDescriptor(r,"get"),_classApplyDescriptorGet(e,r)}function _classStaticPrivateFieldSpecSet(e,t,r,n){return _assertClassBrand(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorSet(e,r,n),n}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _defineEnumerableProperties(e,t){for(var r in t){var n=t[r];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r,n)}if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(t),i=0;i0;)try{var i=e.pop(),a=i.d.call(i.v);if(i.a)return Promise.resolve(a).then(n,o)}catch(e){return o(e)}if(r)throw t}function o(e){return t=r?new dispose_SuppressedError(t,e):e,r=!0,n()}return n()}function _objectSpread(e){for(var t=1;t0?1e3*t:INTERVAL_MS_DEFAULT}var VALID_STYLES=["fade","zoom","effect"],GALLERY_STYLE_CLASS_PREFIX="t-hero__gallery_style-";function parseGalleryStyle(e){return e&&VALID_STYLES.includes(e)?e:"zoom"}function preloadSlides(e,t){var r=!1,n=0,o=e.length;function i(){n++,!r&&n>=o&&t()}return e.forEach((function(e){var t=e.getAttribute("data-original");if(t){var r=new Image;r.onload=i,r.onerror=i,r.src=t}else i()})),function(){r=!0}}function activateSlide(e){e.classList.remove(SLIDE_ACTIVE),e.offsetWidth,e.classList.add(SLIDE_ACTIVE)}var GalleryFeature=function(){function e(){this.name="gallery"}var t=e.prototype;return t.isApplicable=function e(t){return!(!t.elements.gallery||null!==t.config.video.kind)&&t.elements.gallery.querySelectorAll("."+SLIDE_CLASS).length>0;var r},t.init=function e(t){var r=t.elements,n=r.root,o=r.gallery,i=r.media,a=o,s=parseGalleryStyle(a.getAttribute("data-hero-gallery-style"));a.classList.add(GALLERY_STYLE_CLASS_PREFIX+s);var c=parseInterval(a.getAttribute("data-hero-gallery-interval")),l=Math.min(FADE_MS_DEFAULT,c/2),u=c-l;a.style.setProperty("--t-hero-gallery-duration",c+"ms"),a.style.setProperty("--t-hero-gallery-fade-duration",l+"ms");var f=Array.from(a.querySelectorAll("."+SLIDE_CLASS));f.forEach((function(e){e.classList.remove(SLIDE_ACTIVE)})),2!==f.length&&3!==f.length||f.forEach((function(e){a.appendChild(e.cloneNode(!0))}));var d=Array.from(a.querySelectorAll("."+SLIDE_CLASS)),p=null,y=null;function v(){if(setMediaReady(n,i),t.mediaStatus="ready",emit(n,"tilda-hero:media-ready",{recid:t.config.recid,kind:"image"}),d[0]&&activateSlide(d[0]),!(d.length<2)){var e=0;p=setInterval((function(){var t=e;e=(e+1)%d.length,d[e]&&(d[e].style.zIndex="0",d[e].classList.add(SLIDE_ACTIVE)),d[t]&&(d[t].style.zIndex="1",d[t].classList.add(SLIDE_FADING)),y=setTimeout((function(){d[t]&&(d[t].classList.remove(SLIDE_ACTIVE),d[t].classList.remove(SLIDE_FADING),d[t].style.zIndex="")}),l)}),u)}}if(f.length<2)return setMediaReady(n,i),t.mediaStatus="ready",emit(n,"tilda-hero:media-ready",{recid:t.config.recid,kind:"image"}),d[0]&&(d[0].classList.add(SLIDE_STATIC),activateSlide(d[0])),function(){d[0]&&d[0].classList.remove(SLIDE_STATIC)};var h=preloadSlides(f,v);return function(){h(),null!==p&&clearInterval(p),null!==y&&clearTimeout(y)}},e}();function getHeroElements(e){var t=document.getElementById("rec"+e);if(!t)return null;var r=t.querySelector(".t-hero__media");return r?{root:t,media:r,overlay:t.querySelector(".t-hero__overlay"),inner:t.querySelector(".t-hero__inner"),content:t.querySelector(".t-hero__content"),scrollHint:t.querySelector(".t-hero__scroll-control"),gallery:t.querySelector("[data-hero-gallery]")}:null}function readHeroConfig(e){var t=function t(r){var n;return null!=(n=e.getAttribute(r))?n:""},r=e.hasAttribute(HERO_ATTRS.videoNoloop),n=e.hasAttribute(HERO_ATTRS.videoNomute),o=e.hasAttribute(HERO_ATTRS.videoNoadcut),i=t(HERO_ATTRS.videoMp4),a=t(HERO_ATTRS.videoWebm),s=t(HERO_ATTRS.videoYoutube),c=t(HERO_ATTRS.videoVimeo),l=t(HERO_ATTRS.videoRutube),u=t(HERO_ATTRS.videoKinescope),f=t(HERO_ATTRS.videoVkvideo),d=null;(i||a)&&(d="html5"),s&&(d="youtube"),(c||l||u||f)&&(d="iframe");var p={};i&&(p.mp4={id:i}),a&&(p.webm={id:a}),s&&(p.youtube={id:s}),c&&(p.vimeo={id:c,hash:t(HERO_ATTRS.videoVimeoHash)||void 0}),l&&(p.rutube={id:l,hash:t(HERO_ATTRS.videoRutubeHash)||void 0}),u&&(p.kinescope={id:u}),f&&(p.vkvideo={id:f,hash:t(HERO_ATTRS.videoVkvideoHash)||void 0});var y=e.getAttribute(HERO_ATTRS.videoRatio),v=null!==y?parseFloat(y):NaN,h=!isNaN(v)&&v>0?v:null,m={kind:d,sources:p,loop:!r,muted:!n,noadcut:o,useImageOnMobile:!!t(HERO_ATTRS.mobileImg)&&"off"!==t(HERO_ATTRS.mobileImg),ratio:h};return{recid:t(HERO_ATTRS.id),bgUrl:t(HERO_ATTRS.bg),bgLqip:t(HERO_ATTRS.bgLqip)||null,parallax:t(HERO_ATTRS.parallax)||"none",video:m}}function getHeightFromAttr(e){if(!e)return 0;var t=e.match(/-?[\d.]+/),r=t?parseFloat(t[0]):NaN;return isNaN(r)?0:e.includes("vh")?r*document.documentElement.clientHeight/100:r}function getPureHeight(e){if(!e)return 0;var t=window.getComputedStyle(e),r=parseFloat(t.paddingTop)||0,n=parseFloat(t.paddingBottom)||0,o=e.getBoundingClientRect().height||e.clientHeight;return Math.max(0,o-r-n)}function getFullHeight(e){if(!e)return 0;var t=window.getComputedStyle(e),r=parseFloat(t.marginTop)||0,n=parseFloat(t.marginBottom)||0;return e.offsetHeight+r+n}function isScaled(e){var t=null==e?void 0:e.closest(".t-record_scaled");if(!t)return!1;var r=t.querySelector("[data-content-cover-height]"),n=null==r?void 0:r.getAttribute("data-content-cover-height");return!(null==n||!n.includes("vh"))}var isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),PARALLAX_PADDING_RATIO=.2,SPEED_FACTOR=.2,SPEED_FACTOR_FIXED=1;function initDynamicParallax(e,t,r){var n="number"==typeof r?r:SPEED_FACTOR;applyMediaSize(e,t,n);var o=null,i=function r(){null===o&&(o=window.requestAnimationFrame((function(){o=null,parallaxUpdate(e,t,n)})))},a=function r(){n=SPEED_FACTOR_FIXED)return e.style.top="0px",e.style.bottom="auto",void(e.style.height=isScaled(t)?"calc("+window.innerHeight+"px / var(--t-zoom, 1))":window.innerHeight+"px");var n=t.offsetHeight,o=Math.round(n*PARALLAX_PADDING_RATIO);e.style.top="-"+o+"px",e.style.bottom="-"+o+"px",e.style.height=n+2*o+"px"}function parallaxUpdate(e,t,r){var n=window.pageYOffset,o=t.getBoundingClientRect(),i=o.top+n,a=i+t.offsetHeight,s=n+window.innerHeight;if(!(as)){var c=-1*o.top*r;e.style.transform=isScaled(t)?"translate3d(0, calc("+c+"px / var(--t-zoom, 1)), 0)":"translate3d(0, "+c+"px, 0)"}}function applyDynamicParallaxHeight(e){if(e.style.minHeight="",!(window.innerWidth<=640)){var t=getConfiguredHeight(e),r=Math.max(getPureHeight(e),t);if(!(r<=0)){var n=isScaled(e);e.style.minHeight=n?"calc("+r+"px / var(--t-zoom, 1))":r+"px"}}}function getConfiguredHeight(e){var t;return getHeightFromAttr(e.style.getPropertyValue("--height").trim())}function watchFixedVideoScroll(e){var t=function t(){var r=e.parentElement;if(r){var n=window.pageYOffset,o,i=n+window.innerHeight,a=getPureHeight(r),s=r.getBoundingClientRect().top+n,c;i>=s+a?(e.style.position="absolute",e.style.bottom="0px",e.style.top="auto"):n>=s?(e.style.position="fixed",e.style.top="0px"):(e.style.position="relative",e.style.top="auto")}};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}function isTouchDevice(){return"ontouchend"in document}var isHoverlessDevice=function e(){return"function"==typeof window.matchMedia&&window.matchMedia("(hover: none)").matches},FIXED_SPEED=1,hasActiveGallery=function e(t){var r=t.elements.gallery;return!(!r||null!==t.config.video.kind)&&r.querySelectorAll(".t-hero__gallery-slide").length>0},ParallaxFeature=function(){function e(){this.name="parallax"}var t=e.prototype;return t.isApplicable=function e(t){return"none"!==t.config.parallax},t.init=function e(t){var r=t.config.parallax,n=t.elements,o=n.root,i=n.media;if("fixed"===r){if(o.classList.add("t-hero_parallax-fixed"),hasActiveGallery(t)&&!isHoverlessDevice())return o.classList.add("t-hero_parallax-fixed-js"),initDynamicParallax(i,o,FIXED_SPEED)}else if("dynamic"===r&&(o.classList.add("t-hero_parallax-dynamic"),!isTouchDevice()))return applyDynamicParallaxHeight(o),initDynamicParallax(i,o)},e}();function applyRatio(e,t,r,n){var o=e.offsetHeight||window.innerHeight,i=window.innerWidth,a=i*n,s=a0?-Math.floor(u/2)+"px":"0",r.style.marginLeft=f>0?-Math.floor(f/2)+"px":"0"}function initHtml5Video(e){var t=e.config,r=e.elements,n=r.root,o=r.media,i=t.video,a=i.sources,s=i.loop,c=i.muted,l=i.ratio;return observeOnce(o,"500px",(function(){var r,i,u=document.createElement("video");u.className="t-hero__video",u.autoplay=!0,u.loop=s,u.muted=c,u.setAttribute("playsinline","");var f=null==(r=a.webm)?void 0:r.id,d=null==(i=a.mp4)?void 0:i.id;if(f){var p=document.createElement("source");p.src=f,p.type="video/webm",u.appendChild(p)}if(d){var y=document.createElement("source");y.src=d,y.type="video/mp4",u.appendChild(y)}var v=null;if(null!==l){var h=document.createElement("div");h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.overflow="hidden",u.style.position="relative",u.style.top="0",u.style.left="0",u.style.minWidth="100%",u.style.minHeight="100%",u.style.width="",u.style.height="",u.style.objectFit="unset",h.appendChild(u),o.appendChild(h),v=function e(){applyRatio(o,h,u,l)},applyRatio(o,h,u,l),window.addEventListener("resize",v)}else o.appendChild(u);return e.mediaStatus="ready",setMediaReady(n,o),emit(n,"tilda-hero:media-ready",{recid:t.recid,kind:"html5"}),function(){v&&window.removeEventListener("resize",v)}}))}function initIframeVideo(e,t){var r=e.config,n=e.elements,o=n.root,i=n.media,a=r.video.sources,s={},c;return Object.keys(a).forEach((function(e){var t=a[e];t&&(s["video-url-"+e]=t.id,t.hash&&(s["video-hash-"+e]=t.hash))})),null!==r.video.ratio&&(s["video-ratio"]=String(r.video.ratio)),observeOnce(i,"500px",(function(){var n;Object.keys(a).forEach((function(e){var t=a[e];t&&(i.setAttribute("data-content-video-url-"+e,t.id),t.hash&&i.setAttribute("data-content-video-hash-"+e,t.hash))})),r.video.loop||i.setAttribute("data-content-video-noloop","yes"),r.video.muted||i.setAttribute("data-content-video-nomute","yes"),t.processIframeVideo(i,s),setMediaReady(o,i),e.mediaStatus="ready",emit(o,"tilda-hero:media-ready",{recid:r.recid,kind:"iframe"})}))}function isEditMode$1(){var e=document.getElementById("allrecords");return!(!e||"edit"!==e.getAttribute("data-tilda-mode"))}function initYoutubeVideo(e,t){var r=e.config,n=e.elements,o=n.root,i=n.media;return observeOnce(i,"500px",(function(){var n,a,s=null!=(n=null==(a=r.video.sources.youtube)?void 0:a.id)?n:"",c;if(isEditMode$1())return setMediaBackground(i,"https://img.youtube.com/vi/"+s+"/maxresdefault.jpg"),setMediaReady(o,i),e.mediaStatus="ready",void emit(o,"tilda-hero:media-ready",{recid:r.recid,kind:"youtube"});i.setAttribute("data-content-video-url-youtube",s),r.video.muted||i.setAttribute("data-content-video-nomute","yes"),r.video.loop||i.setAttribute("data-content-video-noloop","yes"),r.video.noadcut&&i.setAttribute("data-content-video-noadcut-youtube","yes"),null!==r.video.ratio&&i.setAttribute("data-content-video-ratio",String(r.video.ratio)),t.processYoutubeVideo(i,""),setMediaReady(o,i),e.mediaStatus="ready",emit(o,"tilda-hero:media-ready",{recid:r.recid,kind:"youtube"})}))}var VideoFeature=function(){function e(){this.name="video"}var t=e.prototype;return t.isApplicable=function e(t){return null!==t.config.video.kind},t.init=function e(t,r){var n=t.config.video,o=n.kind,i=n.useImageOnMobile,a=t.elements.root,s=null;if(i){var c=window.matchMedia("(max-width: 640px)"),l=function e(){s||("html5"===o?s=initHtml5Video(t):"youtube"===o?s=initYoutubeVideo(t,r):"iframe"===o&&(s=initIframeVideo(t,r)))},u=function e(t){a.classList.toggle("t-hero_video-hidden",t.matches),t.matches||l()};return u(c),c.addEventListener("change",u),function(){c.removeEventListener("change",u),a.classList.remove("t-hero_video-hidden"),s&&s()}}return"html5"===o?s=initHtml5Video(t):"youtube"===o?s=initYoutubeVideo(t,r):"iframe"===o&&(s=initIframeVideo(t,r)),null!=s?s:void 0},e}(),FEATURES=[new ScrollHintFeature,new BackgroundFeature,new GalleryFeature,new ParallaxFeature,new VideoFeature];function initHero(e){var t=findHeroElements(e);if(!t)return null;var r=parseHeroConfig(e),n=new HeroStateImpl(r,t),o=resolveDeps(),i=[];return FEATURES.forEach((function(e){if(e.isApplicable(n)){var t=e.init(n,o);t&&i.push(t)}})),function(){i.forEach((function(e){e()}))}}var disposerMap=new Map;function initAllHeroes(){var e;findAllHeroRoots().forEach((function(e){var t=initHero(e);t&&disposerMap.set(e,t)}))}function isEditMode(){var e=document.getElementById("allrecords");return!(!e||"edit"!==e.getAttribute("data-tilda-mode"))}function watchForHeroesInEditMode(){var e=document.getElementById("allrecords"),t;e&&"MutationObserver"in window&&new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){var t;e instanceof HTMLElement&&(e.classList.contains("t-hero")?[e]:Array.from(e.querySelectorAll(".t-hero"))).forEach((function(e){if(!disposerMap.has(e)){var t=initHero(e);t&&disposerMap.set(e,t)}}))})),e.removedNodes.forEach((function(e){var t;e instanceof HTMLElement&&(e.classList.contains("t-hero")?[e]:Array.from(e.querySelectorAll(".t-hero"))).forEach((function(e){var t=disposerMap.get(e);t&&(t(),disposerMap.delete(e))}))}))}))})).observe(e,{childList:!0,subtree:!0})}t_onReady((function(){initAllHeroes(),isEditMode()&&watchForHeroesInEditMode()}));