function _OverloadYield(t,e){this.v=t,this.k=e}function _applyDecoratedDescriptor(t,e,r,o,a){var n={};return Object.keys(o).forEach((function(t){n[t]=o[t]})),n.enumerable=!!n.enumerable,n.configurable=!!n.configurable,("value"in n||n.initializer)&&(n.writable=!0),n=r.slice().reverse().reduce((function(r,o){return o(t,e,r)||r}),n),a&&void 0!==n.initializer&&(n.value=n.initializer?n.initializer.call(a):void 0,n.initializer=void 0),void 0===n.initializer?(Object.defineProperty(t,e,n),null):n}function _applyDecs2311(t,e,r,o,a,n){var i,l,c,s,d,u,_,p=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,f=Object.create,v=[f(null),f(null)],m=e.length;function y(e,r,o){return function(a,n){r&&(n=a,a=t);for(var i=0;i=0;L-=r?2:1){var O=h(f[L],"A decorator","be",!0),j=r?f[L-1]:void 0,I={},R={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:i,addInitializer:function(t,e){if(t.v)throw new TypeError("attempted to call addInitializer after decoration was finished");h(e,"An initializer","be",!0),n.push(e)}.bind(null,I)};if(b)l=O.call(j,k,R),I.v=1,h(l,"class decorators","return")&&(k=l);else if(R.static=s,R.private=d,l=R.access={has:d?_.bind():function(t){return o in t}},E||(l.get=d?C?function(t){return p(t),x.value}:A("get",0,p):function(t){return t[o]}),C||S||(l.set=d?A("set",0,p):function(t,e){t[o]=e}),k=O.call(j,w?{get:x.get,set:x.set}:x[P],R),I.v=1,w){if("object"==typeof k&&k)(l=h(k.get,"accessor.get"))&&(x.get=l),(l=h(k.set,"accessor.set"))&&(x.set=l),(l=h(k.init,"accessor.init"))&&T.unshift(l);else if(void 0!==k)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else h(k,(u?"field":"method")+" decorators","return")&&(u?T.unshift(k):x[P]=k)}return a<2&&c.push(y(T,s,1),y(n,s,0)),u||b||(d?w?c.splice(-1,0,A("get",s),A("set",s)):c.push(C?x[P]:h.call.bind(x[P])):g(t,o,x)),k}function w(t){return g(t,p,{configurable:!0,enumerable:!0,value:i})}return void 0!==n&&(i=n[p]),i=f(null==i?null:i),d=[],u=function(t){t&&d.push(y(t))},_=function(e,o){for(var n=0;nt.length)&&(e=t.length);for(var r=0,o=Array(e);r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}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 n,i=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){l=!0,n=t},f:function(){try{i||null==r.return||r.return()}finally{if(l)throw n}}}}function _createForOfIteratorHelperLoose(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,o=_getPrototypeOf(t);if(e){var a=_getPrototypeOf(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _decorate(t,e,r,o){var a=_getDecoratorsApi();if(o)for(var n=0;n=0;n--){var i=e[t.placement];i.splice(i.indexOf(t.key),1);var l=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,a[n])(l)||l);t=c.element,this.addElementPlacement(t,e),c.finisher&&o.push(c.finisher);var s=c.extras;if(s){for(var d=0;d=0;o--){var a=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[o])(a)||a);if(void 0!==n.finisher&&r.push(n.finisher),void 0!==n.elements){t=n.elements;for(var i=0;i1){for(var i=Array(n),l=0;l3?(a=g===o)&&(c=n[(l=n[4])?5:(l=3,3)],n[4]=n[5]=t):n[0]<=p&&((a=r<2&&po||o>g)&&(n[4]=r,n[5]=o,_.n=g,l=0))}if(a||r>1)return i;throw u=!0,o}return function(a,d,g){if(s>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,g),l=d,c=g;(e=l<2?t:c)||!u;){n||(l?l<3?(l>1&&(_.n=-1),p(l,c)):_.n=c:_.v=c);try{if(s=2,n){if(l||(a="next"),e=n[a]){if(!(e=e.call(n,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,l<2&&(l=0)}else 1===l&&(e=n.return)&&e.call(n),l<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),l=1);n=t}else if((e=(u=_.n<0)?c:r.call(o,_))!==i)break}catch(e){n=t,l=1,c=e}finally{s=1}}return{value:e,done:u}}}(r,a,n),!0),s}var i={};function l(){}function c(){}function s(){}e=Object.getPrototypeOf;var d=[][o]?e(e([][o]())):(_regeneratorDefine(e={},o,(function(){return this})),e),u=s.prototype=l.prototype=Object.create(d);function _(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,_regeneratorDefine(t,a,"GeneratorFunction")),t.prototype=Object.create(u),t}return c.prototype=s,_regeneratorDefine(u,"constructor",s),_regeneratorDefine(s,"constructor",c),c.displayName="GeneratorFunction",_regeneratorDefine(s,a,"GeneratorFunction"),_regeneratorDefine(u),_regeneratorDefine(u,a,"Generator"),_regeneratorDefine(u,o,(function(){return this})),_regeneratorDefine(u,"toString",(function(){return"[object Generator]"})),(_regenerator=function(){return{w:n,m:_}})()}function _regeneratorAsync(t,e,r,o,a){var n=_regeneratorAsyncGen(t,e,r,o,a);return n.next().then((function(t){return t.done?t.value:n.next()}))}function _regeneratorAsyncGen(t,e,r,o,a){return new _regeneratorAsyncIterator(_regenerator().w(t,e,r,o),a||Promise)}function _regeneratorAsyncIterator(t,e){function r(o,a,n,i){try{var l=t[o](a),c=l.value;return c instanceof _OverloadYield?e.resolve(c.v).then((function(t){r("next",t,n,i)}),(function(t){r("throw",t,n,i)})):e.resolve(c).then((function(t){l.value=t,n(l)}),(function(t){return r("throw",t,n,i)}))}catch(t){i(t)}}var o;this.next||(_regeneratorDefine(_regeneratorAsyncIterator.prototype),_regeneratorDefine(_regeneratorAsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),_regeneratorDefine(this,"_invoke",(function(t,a,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function _regeneratorDefine(t,e,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}_regeneratorDefine=function(t,e,r,o){function n(e,r){_regeneratorDefine(t,e,(function(t){return this._invoke(e,r,t)}))}e?a?a(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(n("next",0),n("throw",1),n("return",2))},_regeneratorDefine(t,e,r,o)}function _regeneratorKeys(t){var e=Object(t),r=[];for(var o in e)r.unshift(o);return function t(){for(;r.length;)if((o=r.pop())in e)return t.value=o,t.done=!1,t;return t.done=!0,t}}function _regeneratorValues(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(typeof t+" is not iterable")}function set(t,e,r,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,o){var a,n=_superPropBase(t,e);if(n){if((a=Object.getOwnPropertyDescriptor(n,e)).set)return a.set.call(o,r),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(o,e)){if(!a.writable)return!1;a.value=r,Object.defineProperty(o,e,a)}else _defineProperty(o,e,r);return!0},set(t,e,r,o)}function _set(t,e,r,o,a){if(!set(t,e,r,o||t)&&a)throw new TypeError("failed to set property");return r}function _setFunctionName(t,e,r){"symbol"==typeof e&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _skipFirstGeneratorNext(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _superPropBase(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _superPropGet(t,e,r,o){var a=_get(_getPrototypeOf(1&o?t.prototype:t),e,r);return 2&o&&"function"==typeof a?function(t){return a.apply(r,t)}:a}function _superPropSet(t,e,r,o,a,n){return _set(_getPrototypeOf(n?t.prototype:t),e,r,o,a)}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(e=t.slice(0)),t.raw=e,t}function _tdz(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function _temporalRef(t,e){return t===_temporalUndefined?_tdz(e):t}function _temporalUndefined(){}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _toSetter(t,e,r){e||(e=[]);var o=e.length++;return Object.defineProperty({},"_",{set:function(a){e[o]=a,t.apply(r,e)}})}function _tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,(function(t,r,o,a,n){return r?e?".jsx":".js":!o||a&&n?o+a+"."+n.toLowerCase()+"js":t})):t}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _usingCtx(){var t="function"==typeof SuppressedError?SuppressedError:function(t,e){var r=Error();return r.name="SuppressedError",r.error=t,r.suppressed=e,r},e={},r=[];function o(t,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(t)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],t))var a=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");a&&(o=function(){try{a.call(e)}catch(t){return Promise.reject(t)}}),r.push({v:e,d:o,a:t})}else t&&r.push({d:e,a:t});return e}return{e:e,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var o,a=this.e,n=0;function i(){for(;o=r.pop();)try{if(!o.a&&1===n)return n=0,r.push(o),Promise.resolve().then(i);if(o.d){var t=o.d.call(o.v);if(o.a)return n|=2,Promise.resolve(t).then(i,l)}else n|=1}catch(t){return l(t)}if(1===n)return a!==e?Promise.reject(a):Promise.resolve();if(a!==e)throw a}function l(r){return a=a!==e?new t(r,a):r,i()}return i()}}}function _wrapAsyncGenerator(t){return function(){return new AsyncGenerator(t.apply(this,arguments))}}function AsyncGenerator(t){var e,r;function o(e,r){try{var n=t[e](r),i=n.value,l=i instanceof _OverloadYield;Promise.resolve(l?i.v:i).then((function(r){if(l){var c="return"===e&&i.k?e:"next";if(!i.k||r.done)return o(c,r);r=t[c](r).value}a(!!n.done,r)}),(function(t){o("throw",t)}))}catch(t){a(2,t)}}function a(t,a){2===t?e.reject(a):e.resolve({value:a,done:t}),(e=e.next)?o(e.key,e.arg):r=null}this._invoke=function(t,a){return new Promise((function(n,i){var l={key:t,arg:a,resolve:n,reject:i,next:null};r?r=r.next=l:(e=r=l,o(t,a))}))},"function"!=typeof t.return&&(this.return=void 0)}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,t)},_wrapNativeSuper(t)}function _wrapRegExp(){_wrapRegExp=function(t,e){return new r(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function r(t,o,a){var n=RegExp(t,o);return e.set(n,a||e.get(t)),_setPrototypeOf(n,r.prototype)}function o(t,r){var o=e.get(r);return Object.keys(o).reduce((function(e,r){var a=o[r];if("number"==typeof a)e[r]=t[a];else{for(var n=0;void 0===t[a[n]]&&n+1]+)(>|$)/g,(function(t,e,r){if(""===r)return t;var o=n[e];return Array.isArray(o)?"$"+o.join("$"):"number"==typeof o?"$"+o:""})))}if("function"==typeof a){var i=this;return t[Symbol.replace].call(this,r,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(o(t,i)),a.apply(this,t)}))}return t[Symbol.replace].call(this,r,a)},_wrapRegExp.apply(this,arguments)}function _writeOnlyError(t){throw new TypeError('"'+t+'" is write-only')}function _AwaitValue(t){this.wrapped=t}function old_createMetadataMethodsForProperty(t,e,r,o){return{getMetadata:function(a){old_assertNotFinished(o,"getMetadata"),old_assertMetadataKey(a);var n=t[a];if(void 0!==n)if(1===e){var i=n.public;if(void 0!==i)return i[r]}else if(2===e){var l=n.private;if(void 0!==l)return l.get(r)}else if(Object.hasOwnProperty.call(n,"constructor"))return n.constructor},setMetadata:function(a,n){old_assertNotFinished(o,"setMetadata"),old_assertMetadataKey(a);var i=t[a];if(void 0===i&&(i=t[a]={}),1===e){var l=i.public;void 0===l&&(l=i.public={}),l[r]=n}else if(2===e){var c=i.priv;void 0===c&&(c=i.private=new Map),c.set(r,n)}else i.constructor=n}}}function old_convertMetadataMapToFinal(t,e){var r=t[Symbol.metadata||Symbol.for("Symbol.metadata")],o=Object.getOwnPropertySymbols(e);if(0!==o.length){for(var a=0;a=0;m--){var y;void 0!==(p=old_memberDec(v[m],o,s,l,c,a,n,i,_))&&(old_assertValidReturnValue(a,p),0===a?y=p:1===a?(y=old_getInit(p),g=p.get||_.get,f=p.set||_.set,_={get:g,set:f}):_=p,void 0!==y&&(void 0===d?d=y:"function"==typeof d?d=[d,y]:d.push(y)))}if(0===a||1===a){if(void 0===d)d=function(t,e){return e};else if("function"!=typeof d){var h=d;d=function(t,e){for(var r=e,o=0;o3,m=g>=5;if(m?(u=e,_=o,0!=(g-=5)&&(p=i=i||[])):(u=e.prototype,_=r,0!==g&&(p=n=n||[])),0!==g&&!v){var y=m?c:l,h=y.get(f)||0;if(!0===h||3===h&&4!==g||4===h&&3!==g)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: "+f);!h&&g>2?y.set(f,g):y.set(f,!0)}old_applyMemberDec(t,u,d,f,g,m,v,_,p)}}old_pushInitializers(t,n),old_pushInitializers(t,i)}function old_pushInitializers(t,e){e&&t.push((function(t){for(var r=0;r0){for(var a=[],n=e,i=e.name,l=o.length-1;l>=0;l--){var c={v:!1};try{var s=Object.assign({kind:"class",name:i,addInitializer:old_createAddInitializerMethod(a,c)},old_createMetadataMethodsForProperty(r,0,i,c)),d=o[l](n,s)}finally{c.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),n=d)}t.push(n,(function(){for(var t=0;t=0;m--){var y;void 0!==(p=e(v[m],n,d,s,i,l,c,_))&&(o(i,p),0===i?y=p:1===i?(y=p.init,g=p.get||_.get,f=p.set||_.set,_={get:g,set:f}):_=p,void 0!==y&&(void 0===u?u=y:"function"==typeof u?u=[u,y]:u.push(y)))}if(0===i||1===i){if(void 0===u)u=function(t,e){return e};else if("function"!=typeof u){var h=u;u=function(t,e){for(var r=e,o=0;o3,v=p>=5;if(v?(u=e,0!=(p-=5)&&(_=i=i||[])):(u=e.prototype,0!==p&&(_=o=o||[])),0!==p&&!f){var m=v?c:l,y=m.get(g)||0;if(!0===y||3===y&&4!==p||4===y&&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: "+g);!y&&p>2?m.set(g,p):m.set(g,!0)}a(t,u,d,g,p,v,f,_)}}n(t,o),n(t,i)}(l,e,r),function(e,r,a){if(a.length>0){for(var n=[],i=r,l=r.name,c=a.length-1;c>=0;c--){var s={v:!1};try{var d=a[c](i,{kind:"class",name:l,addInitializer:t(n,s)})}finally{s.v=!0}void 0!==d&&(o(10,d),i=d)}e.push(i,(function(){for(var t=0;t=0;y--){var h;void 0!==(g=e(m[y],n,d,s,i,l,c,p))&&(o(i,g),0===i?h=g:1===i?(h=g.init,f=g.get||p.get,v=g.set||p.set,p={get:f,set:v}):p=g,void 0!==h&&(void 0===u?u=h:"function"==typeof u?u=[u,h]:u.push(h)))}if(0===i||1===i){if(void 0===u)u=function(t,e){return e};else if("function"!=typeof u){var b=u;u=function(t,e){for(var r=e,o=0;o3,v=p>=5;if(v?(u=t,0!=(p-=5)&&(_=o=o||[])):(u=t.prototype,0!==p&&(_=r=r||[])),0!==p&&!f){var m=v?c:l,y=m.get(g)||0;if(!0===y||3===y&&4!==p||4===y&&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: "+g);!y&&p>2?m.set(g,p):m.set(g,!0)}a(n,u,d,g,p,v,f,_)}}return i(n,r),i(n,o),n}function i(t,e){e&&t.push((function(t){for(var r=0;r0){for(var a=[],n=e,i=e.name,l=r.length-1;l>=0;l--){var c={v:!1};try{var s=r[l](n,{kind:"class",name:i,addInitializer:t(a,c)})}finally{c.v=!0}void 0!==s&&(o(10,s),n=s)}return[n,function(){for(var t=0;t=0;w--){var S;void 0!==(m=r(b[w],i,_,d,l,c,s,f,u))&&(a(l,m),0===l?S=m:1===l?(S=m.init,y=m.get||f.get,h=m.set||f.set,f={get:y,set:h}):f=m,void 0!==S&&(void 0===p?p=S:"function"==typeof p?p=[p,S]:p.push(S)))}if(0===l||1===l){if(void 0===p)p=function(t,e){return e};else if("function"!=typeof p){var E=p;p=function(t,e){for(var r=e,o=0;o3,y=f>=5,h=r;if(y?(p=t,0!=(f-=5)&&(g=a=a||[]),m&&!n&&(n=function(e){return _checkInRHS(e)===t}),h=n):(p=t.prototype,0!==f&&(g=o=o||[])),0!==f&&!m){var b=y?d:s,w=b.get(v)||0;if(!0===w||3===w&&4!==f||4===w&&3!==f)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);!w&&f>2?b.set(v,f):b.set(v,!0)}i(l,p,_,v,f,y,m,g,h)}}return c(l,o),c(l,a),l}function c(t,e){e&&t.push((function(t){for(var r=0;r0){for(var o=[],n=e,i=e.name,l=r.length-1;l>=0;l--){var c={v:!1};try{var s=r[l](n,{kind:"class",name:i,addInitializer:t(o,c)})}finally{c.v=!0}void 0!==s&&(a(10,s),n=s)}return[n,function(){for(var t=0;t=0;C-=r?2:1){var A=m[C],x=r?m[C-1]:void 0,T={},P={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:n,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");c(e,"An initializer","be",!0),l.push(e)}.bind(null,T)};try{if(h)(v=c(A.call(x,E,P),"class decorators","return"))&&(E=v);else{var k,L;P.static=d,P.private=u,u?2===a?k=function(t){return f(t),b.value}:(a<4&&(k=i(b,"get",f)),3!==a&&(L=i(b,"set",f))):(k=function(t){return t[o]},(a<2||4===a)&&(L=function(t,e){t[o]=e}));var O=P.access={has:u?g.bind():function(t){return o in t}};if(k&&(O.get=k),L&&(O.set=L),E=A.call(x,p?{get:b.get,set:b.set}:b[S],P),p){if("object"==typeof E&&E)(v=c(E.get,"accessor.get"))&&(b.get=v),(v=c(E.set,"accessor.set"))&&(b.set=v),(v=c(E.init,"accessor.init"))&&w.push(v);else if(void 0!==E)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else c(E,(_?"field":"method")+" decorators","return")&&(_?w.push(E):b[S]=E)}}finally{T.v=!0}}return(_||p)&&s.push((function(t,e){for(var r=w.length-1;r>=0;r--)e=w[r].call(t,e);return e})),_||h||(u?p?s.push(i(b,"get"),i(b,"set")):s.push(2===a?b[S]:i.call.bind(b[S])):Object.defineProperty(t,o,b)),E}function d(t,e){return Object.defineProperty(t,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:e})}if(arguments.length>=6)var u=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var _=Object.create(null==u?null:u),p=function(t,e,r,o){var a,n,i=[],c=function(e){return _checkInRHS(e)===t},d=new Map;function u(t){t&&i.push(l.bind(null,t))}for(var _=0;_3,m=16&g,y=!!(8&g),h=0==(g&=7),b=f+"/"+y;if(!h&&!v){var w=d.get(b);if(!0===w||3===w&&4!==g||4===w&&3!==g)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: "+f);d.set(b,!(g>2)||g)}s(y?t:t.prototype,p,m,v?"#"+f:_toPropertyKey(f),g,o,y?n=n||[]:a=a||[],i,y,v,h,1===g,y&&v?c:r)}}return u(a),u(n),i}(t,e,a,_);return r.length||d(t,_),{e:p,get c(){var e=[];return r.length&&[d(s(t,[r],o,t.name,5,_,e),_),l.bind(null,e,t)]}}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function _classCheckPrivateStaticAccess(t,e,r){return _assertClassBrand(e,t,r)}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _classExtractFieldDescriptor(t,e){return _classPrivateFieldGet2(e,t)}function _classPrivateFieldDestructureSet(t,e){var r;return _classApplyDescriptorDestructureSet(t,_classPrivateFieldGet2(e,t))}function _classPrivateFieldGet(t,e){var r;return _classApplyDescriptorGet(t,_classPrivateFieldGet2(e,t))}function _classPrivateFieldSet(t,e,r){var o;return _classApplyDescriptorSet(t,_classPrivateFieldGet2(e,t),r),r}function _classPrivateMethodGet(t,e,r){return _assertClassBrand(e,t),r}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}function _classStaticPrivateFieldDestructureSet(t,e,r){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorDestructureSet(t,r)}function _classStaticPrivateFieldSpecGet(t,e,r){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"get"),_classApplyDescriptorGet(t,r)}function _classStaticPrivateFieldSpecSet(t,e,r,o){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorSet(t,r,o),o}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _defineEnumerableProperties(t,e){for(var r in e){var o=e[r];o.configurable=o.enumerable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r,o)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),n=0;n0;)try{var n=t.pop(),i=n.d.call(n.v);if(n.a)return Promise.resolve(i).then(o,a)}catch(t){return a(t)}if(r)throw e}function a(t){return e=r?new dispose_SuppressedError(e,t):t,r=!0,o()}return o()}function _objectSpread(t){for(var e=1;e0}))}function t_catalog__getBlockDefaultSort(t){var e,r;return t&&(t_catalog__parseSortQuery(null==(e=t.filtersStyles)?void 0:e.filtersSorting)||t_catalog__parseSortQuery(null==(r=t.defaultSort)?void 0:r.default))||null}function t_catalog__resolveProductsSort(t){return t?t_catalog__hasSort(t.sort)?t.sort:t_catalog__getBlockDefaultSort(t):null}function t_catalog__sortQueryFromControl(t,e){var r="string"==typeof e?e.trim():"";return r||t_catalog__sortToQuery(t_catalog__getBlockDefaultSort(t))}function t_catalog__sortToQuery(t){if(!t_catalog__hasSort(t))return"";var e=Object.keys(t)[0];return e?e+":"+t[e]:""}var SINGLE_VALUE_KEYS=new Set(["query","sort","price:min","price:max","quantity","storepartnav"]);function t_catalog__getUrlParams(){return window.tCatalogUrlParams&&"object"==typeof window.tCatalogUrlParams||(window.tCatalogUrlParams={}),window.tCatalogUrlParams}function t_catalog__setUrlParams(t){return window.tCatalogUrlParams=t&&"object"==typeof t?t:{},window.tCatalogUrlParams}function t_catalog__getRecUrlParams(t){var e=t_catalog__getUrlParams();return e[t]&&"object"==typeof e[t]||(e[t]={}),e[t]}function t_catalog__getRecUrlParam(t,e){var r,o=t_catalog__getRecUrlParams(t)[e];return null==o?o:SINGLE_VALUE_KEYS.has(e)?Array.isArray(o)?o[0]:o:Array.isArray(o)?o:[o]}function t_catalog__setRecUrlParam(t,e,r){var o=t_catalog__getRecUrlParams(t);return null==r?(o[e]=r,o):SINGLE_VALUE_KEYS.has(e)?(o[e]=Array.isArray(r)?r[0]:r,o):(o[e]=Array.isArray(r)?r:[r],o)}function t_catalog__deleteRecUrlParam(t,e){var r=t_catalog__getRecUrlParams(t);return delete r[e],r}function t_catalog__clearRecUrlParams(t){var e=t_catalog__getUrlParams();return delete e[t],e}function t_catalog__hasRecUrlParams(t){var e=t_catalog__getUrlParams();return!(!e[t]||"object"!=typeof e[t])}function t_catalog__customURLParamsToString(t){var e,r="",o="",a=function t(e){var r,o=Array.isArray(e)?e.map((function(t){return stringifyUrlParamValue(t)})).join("[[PLUS]]"):stringifyUrlParamValue(e);return o=(o=(o=(o=(o=(o=o.replace(/%/g,"%25")).replace(/#/g,"%23")).replace(/\+/g,"%2B")).replace(/\[\[PLUS\]\]/g,":::")).replace(/%26amp/g,"&")).replace(/\s/gi,"+")};return Object.keys(t).forEach((function(e){if("otherParams"!==e){var o=t[e];Object.keys(o).forEach((function(t){try{var n=a(o[t]);r+=r.length?"&":"?",r+="tfc_"+t+"["+e+"]="+n}catch(i){console.error(i)}}))}})),r&&(r+="&tfc_div=:::"),null!=(e=t.otherParams)&&e.length&&(t.otherParams.forEach((function(t){t.length&&(o+="&"+t)})),r=r.length?r+o:"?"+o.slice(1)),r.length?r:window.location.origin+window.location.pathname}function t_catalog__updateUrlFromParams(t){var e=t_catalog__customURLParamsToString(t);window.location.hash&&(e+=window.location.hash);try{window.history.replaceState(null,"",encodeURI(e))}catch(r){console.error(r)}}function t_catalog__paramsToObj(t,e){var r=window.location.search;try{r=r.replace(/%25/g,"%"),r=decodeURIComponent(r)}catch(m){console.error(m)}var o={otherParams:[]};o[t]={};try{r=r.replace(/&/g,"%26amp")}catch(y){console.error(y)}var a=r.slice(1).split("&");a=a.map((function(t){return t.replace(/%26amp/g,"&")})),o.otherParams=a.filter((function(t){var e;return!(/^tfc_/i.test(t)||/^s_/i.test(t))&&t}));var n=-1!==window.location.href.indexOf("tfc_"),i=function t(e){return Array.isArray(e)?e:[]};n&&a.forEach((function(t){var e=t.split("=");try{var r;if(/^tfc_/i.test(t)&&"tfc_div"!==e[0]){var a=e[0],n;n=-1!==window.location.href.indexOf("tfc_div")?e[1].replace(/\+/g," ").replace(/%2B/g,"+").split(":::"):e[1].replace(/\+/g," ").split("%2B");var l=new RegExp(/\[\d.*\]$/,"gi"),c=a.match(l),s=c?Number(JSON.parse(c[0])):null,d;if(!s)return void console.error("Can't find recid in URL param");if(!document.querySelector("#rec"+s))return;var u=a.replace(l,"").replace("tfc_","");o[s]||(o[s]={});var _=i(o[s][u]);o[s][u]=_.concat(n)}}catch(y){console.error(y)}})),t_catalog__setUrlParams(o),t_catalog__updateUrlFromParams(o);var l=getDefaultSort(t,e.defaultSort);if(l&&"object"==typeof l)for(var c in l){var s,d,u,_,p=null==(s=l[c])?void 0:s.sort,g=null==(d=l[c])?void 0:d.quantity,f,v;if(p||g)null!=(u=o[c])&&u.sort&&e.previewmode||p&&(o[c]||(o[c]={}),o[c].sort=p),"y"===i(null==(_=o[c])?void 0:_.quantity)[0]&&e.previewmode||g&&(o[c]||(o[c]={}),o[t].quantity||(o[c].quantity=["y"]))}return o}function t_catalog__updateOptionsBasedOnUrl(t,e,r){try{var o=t,a=e[r]||{},n=function t(e){return-1!==e.indexOf("price:m")||-1!==e.indexOf("quantity")},i=function t(e){return Array.isArray(e)?e.map((function(t){return stringifyUrlParamValue(t)})).join():stringifyUrlParamValue(e)},l=o.filters={};return Object.keys(a).forEach((function(t){if("sort"!==t)"storepartnav"!==t?l[t]=n(t)?i(a[t]):a[t]:o.storepart=Array.isArray(a[t])?a[t][0]:a[t];else{o.sort={};var e=i(a[t]).split(":");o.sort[e[0]]=e[1]}})),o}catch(c){return console.error("something wrong in t_catalog_updateOptionsBasedOnUrl",c),null}}function t_catalog__applyRecUrlParam(t,e,r,o){var a=t_catalog__getRecUrlParams(t),n=normalizeUrlParamValue(o);switch(e){case"add":var i,l;if(a[r])t_catalog__setRecUrlParam(t,r,(Array.isArray(a[r])?a[r]:[a[r]]).concat(n));else t_catalog__setRecUrlParam(t,r,[n]);break;case"update":t_catalog__setRecUrlParam(t,r,[n]);break;case"delete":if(!a[r])break;var c;if("string"==typeof a[r]||SINGLE_VALUE_KEYS.has(r))t_catalog__deleteRecUrlParam(t,r);else{var s=Array.isArray(a[r])?a[r].filter((function(t){return t!==n})):[];s.length?t_catalog__setRecUrlParam(t,r,s):t_catalog__deleteRecUrlParam(t,r)}break;case"delete_all":t_catalog__clearRecUrlParams(t)}}function stringifyUrlParamValue(t){return null==t?"":"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"bigint"==typeof t?String(t):t instanceof Date?t.toISOString():JSON.stringify(t)}function getDefaultSort(t,e){var r=window.tCatalogDefaultSort?window.tCatalogDefaultSort:{};if(!e)return r;var o=t_catalog__sortToQuery(t_catalog__parseSortQuery(e.default));return o&&(r[t]=r[t]||{},r[t].sort=[o]),e.in_stock&&(r[t]=r[t]||{},r[t].quantity||(r[t].quantity=["y"])),window.tCatalogDefaultSort=r,r}function normalizeUrlParamValue(t){return(t||"").toString().replace(/&/g,"&")}var T_STORE_USE_EXTERNAL_FUNCTION_TIMEOUT=100;function t_store__useExternalFunction(t,e){return void 0===e&&(e=T_STORE_USE_EXTERNAL_FUNCTION_TIMEOUT),new Promise((function(r,o){window.t_onFuncLoad(t,(function(){var e,a=null==(e=Object.getOwnPropertyDescriptor(window,t))?void 0:e.value;"function"==typeof a?r(a):o(new Error('"'+t+'" is not defined'))}),e>=0?e:T_STORE_USE_EXTERNAL_FUNCTION_TIMEOUT)}))}var t_store__useExternalCSSFile=function t(e){try{return Promise.resolve(t_store__useExternalFunction("t_loadCSSFile")).then((function(t){return new Promise((function(r){t(e,r)}))}))}catch(r){return Promise.reject(r)}},t_store__useExternalJsFile=function t(e,r){try{return Promise.resolve(t_store__useExternalFunction("t_loadJsFile")).then((function(t){var o=new Promise((function(r){t(e,r)}));return r?o.then((function(){return isFuncReady(r)})):o}))}catch(o){return Promise.reject(o)}},isFuncReady=function t(e){return new Promise((function(t){return window.t_onFuncLoad(e,t)}))};function t_store__useExternalObject(t,e){return void 0===e&&(e=0),new Promise((function(r,o){var a,n=null==(a=Object.getOwnPropertyDescriptor(window,t))?void 0:a.value;if("object"==typeof n)return r(n);0===e&&o(new Error('"'+t+'" is not defined')),setTimeout((function(){r(t_store__useExternalObject(t,e-1))}),100)}))}var FILTERS_FILE_NAME="tilda-catalog-filters-1.1",TABS_FILE_NAME="tilda-catalog-tabs-1.1",PAGINATION_FILE_NAME="tilda-catalog-pagination-1.1",SLD_FILE_NAME="tilda-catalog-slds-1.1",HOVER_ZOOM_FILE_NAME="tilda-hover-zoom-1.0",TOOLTIPSTER_CSS_FILE_NAME="tooltipster.min.css",TOOLTIP_JS_FILE_NAME="tilda-tooltip-1.0.min.js",FILTERS_FUNC_NAME="t_catalog_filters_init",TABS_FUNC_NAME="t_catalog_tabs_init",PAGINATION_FUNC_NAME="t_catalog_pagination_draw",TOOLTIPSTER_FUNC_NAME="tooltipster",HOVER_ZOOM_FUNC_NAME="t_hoverZoom_init",CUSTOM_GALLERY_FUNC_NAME="t_catalog__initCustomGallery",t_catalog__getStaticHost=function t(){return"https://static.tildacdn."+t_cart__useRootZone().getRootZone()},t_catalog__loadTildaCatalogFilters=function t(){var e=t_catalog__getStaticHost();return Promise.all([t_store__useExternalCSSFile(e+"/css/"+FILTERS_FILE_NAME+".min.css"),t_store__useExternalJsFile(e+"/js/"+FILTERS_FILE_NAME+".min.js",FILTERS_FUNC_NAME)])},t_catalog__loadTildaCatalogTabs=function t(){var e=t_catalog__getStaticHost();return Promise.all([t_store__useExternalCSSFile(e+"/css/"+TABS_FILE_NAME+".min.css"),t_store__useExternalJsFile(e+"/js/"+TABS_FILE_NAME+".min.js",TABS_FUNC_NAME)])},t_catalog__loadTildaCatalogPagination=function t(){var e=t_catalog__getStaticHost();return Promise.all([t_store__useExternalCSSFile(e+"/css/"+PAGINATION_FILE_NAME+".min.css"),t_store__useExternalJsFile(e+"/js/"+PAGINATION_FILE_NAME+".min.js",PAGINATION_FUNC_NAME)])},t_catalog__loadTooltipster=function t(){var e=t_catalog__getStaticHost();return Promise.all([t_store__useExternalCSSFile(e+"/css/"+TOOLTIPSTER_CSS_FILE_NAME),t_store__useExternalJsFile(e+"/js/"+TOOLTIP_JS_FILE_NAME,TOOLTIPSTER_FUNC_NAME)])},t_catalog__loadHoverZoom=function t(){var e=t_catalog__getStaticHost();return t_store__useExternalJsFile(e+"/js/"+HOVER_ZOOM_FILE_NAME+".min.js",HOVER_ZOOM_FUNC_NAME)},t_catalog__loadCatalogSlds=function t(){var e=t_catalog__getStaticHost();return Promise.all([t_store__useExternalCSSFile(e+"/css/"+SLD_FILE_NAME+".min.css"),t_store__useExternalJsFile(e+"/js/"+SLD_FILE_NAME+".min.js",CUSTOM_GALLERY_FUNC_NAME)])};function t_catalog__cleanPrice(t){if(!t)return 0;var e=String(t).replace(",",".").replace(/[^0-9.]/g,""),r=Number.parseFloat(e);return Number.isNaN(r)?0:Math.max(0,Number(r.toFixed(2)))}function t_catalog__getFormattedPrice(t,e){if(null==e||""===e)return"";var r=t_catalog__cleanPrice(e).toString(),o=t_catalog__shouldShowDecimalPart(t),a=t_catalog__shouldUseDotSeparator(t),n;o&&(-1===r.indexOf(".")&&-1===r.indexOf(",")?r+=".00":1===r.substring(r.indexOf(".")+1).length&&(r+="0"));return r=(r=a?r.replace(",","."):r.replace(".",",")).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}function t_catalog__getFormattedMinPrice(t,e){return null===e.minPrice||void 0===e.minPrice?null:t_catalog__getFormattedPrice(t,e.minPrice)}function t_catalog__getFormattedPriceRange(t,e){var r,o;if(!Object.prototype.hasOwnProperty.call(t,"prodCard")||null!=(r=t.prodCard)&&r.showOpts||null==(o=t.price)||!o.priceRange||!Object.prototype.hasOwnProperty.call(e,"minPrice")||!Object.prototype.hasOwnProperty.call(e,"maxPrice"))return null;var a=e.minPrice,n=e.maxPrice;if(null!==a&&null!==n&&a!==n){var i;a=t_catalog__getFormattedPrice(t,a),n=t_catalog__getFormattedPrice(t,n);var l=null==(i=t.price)?void 0:i.priceRange,c;if("range"===l)return a+"—"+n;if("from"===l)return(((null==(c=window.tCatalogDict)?void 0:c.from)||"")+" "+a).trim()}return null}function t_catalog__getOptionsAdjustedPrice(t,e){var r=t_catalog__cleanPrice(null!=t?t:0),o=0;return e.forEach((function(t){var e=t.price;if(e){var a=t_catalog__cleanPrice(e);-1!==e.indexOf("+")?o+=a:0!==a&&(r=a)}})),r+o}function t_catalog__shouldShowDecimalPart(t){var e;return t.currencyDecimal?"00"===t.currencyDecimal:"00"===(null==(e=window.tcart)?void 0:e.currency_dec)}function t_catalog__shouldUseDotSeparator(t){var e;return t.currencySeparator?"."===t.currencySeparator:"."===(null==(e=window.tcart)?void 0:e.currency_sep)}var getGridWrapper=function t(e){return e.querySelector(".js-catalog-grid-cont")},t_catalog__hideProductsList=function t(e){var r=getGridWrapper(e);r&&(r.style.display="none")},t_catalog__showProductsList=function t(e){var r=getGridWrapper(e);r&&(r.style.display="block")},t_catalog__hidePreloader=function t(e){var r=document.getElementById("rec"+e);if(r){var o=r.getAttribute("data-preloader-timeout");o&&clearTimeout(Number(o));var a=r.querySelector(".js-catalog-grid-cont-preloader");a&&(a.style.display="none"),t_catalog__showProductsList(r)}},t_catalog__showPreloader=function t(e){var r=document.getElementById("rec"+e);if(r){var o=r.querySelector(".js-catalog-empty-part-msg");o&&o.remove();var a=r.getAttribute("data-preloader-timeout");a&&clearTimeout(Number(a));var n=setTimeout((function(){t_catalog__hideProductsList(r);var t=r.querySelector(".js-catalog-grid-cont-preloader");t&&(t.style.display="",t.style.opacity="0",t.style.transition="opacity 200ms",t.style.opacity="1")}),1e3);r.setAttribute("data-preloader-timeout",n)}},T_CATALOG_STICKY_SIDEBAR_STATES=["fixed-top","fixed-bottom","absolute-mid","absolute-bottom"],t_catalog__stickySidebar_isShort=function t(e){var r,o,a;return e.sidebarHeight+e.offset<=e.viewportHeight},t_catalog__stickySidebar_getShortState=function t(e){var r=e.wrapperTop,o=e.contentBottom,a=e.sidebarHeight,n=e.offset;return r>n?"":o-a<=n?"absolute-bottom":"fixed-top"},t_catalog__stickySidebar_getTallDecision=function t(e,r,o){var a=o.viewportHeight,n=o.offset,i=o.sidebarTop,l=o.sidebarBottom,c=o.sidebarHeight,s=o.wrapperTop,d=o.wrapperBottom,u=o.contentTop,_=o.contentBottom,p=o.contentHeight,g=r>0,f=r<0,v=Math.abs(r),m=a-n,y;if(s>n)return{state:""};if(_<=m&&"fixed-top"!==e)return{state:"absolute-bottom"};if("absolute-bottom"===e&&f)return _-c>=n-v?{state:"fixed-top"}:{};if("absolute-bottom"===e&&g)return{skipScrollY:!0};if("absolute-mid"===e)return f&&i>=n-v?{state:"fixed-top"}:g&&l<=m+v?{state:"fixed-bottom"}:{};if("fixed-bottom"===e&&f||"fixed-top"===e&&g){var h=p-c;return{state:"absolute-mid",top:Math.max(0,Math.min(i-u,h))}}if(g)return{state:d=b?"fixed-top":""}}return"fixed-bottom"===e&&d>=m?{state:""}:{}},t_catalog__stickySidebar_getStateAfterSidebarResize=function t(e,r,o){if(t_catalog__stickySidebar_isShort(o))return t_catalog__stickySidebar_getShortState(o);var a=o.offset,n=o.sidebarHeight,i=o.contentBottom;switch(e){case"absolute-bottom":return"absolute-bottom";case"absolute-mid":return r>n?"fixed-bottom":void 0;case"fixed-bottom":return"fixed-bottom";case"fixed-top":return a+n>i?"absolute-bottom":"fixed-top";default:return}},t_catalog__stickySidebar_getStateAfterContentResize=function t(e,r){if(t_catalog__stickySidebar_isShort(r))return t_catalog__stickySidebar_getShortState(r);var o=r.viewportHeight,a=r.offset,n=r.contentBottom;return"absolute-bottom"===e&&n>o-a?"fixed-bottom":void 0},t_catalog__stickySidebarDestroyers={},T_CATALOG_STICKY_SIDEBAR_DESKTOP_MEDIA="(min-width: 961px)",T_CATALOG_STICKY_SIDEBAR_CONTENT_CLASS="t-catalog__cont-wrapper_sticky-sidebar",t_catalog__stickySidebar_getContext=function t(e){var r=e.querySelector(".js-sidebar-wrapper"),o=null==r?void 0:r.querySelector(".t-catalog__sidebar_sticky"),a=e.querySelector(".t-catalog__cont-wrapper");if(!r||!o||!a)return null;var n=parseInt(getComputedStyle(o).getPropertyValue("--panel-fixed-offset"));return n?{rec:e,sidebar:o,sidebarWrapper:r,contentWrapper:a,offset:n}:null},t_catalog__stickySidebar_measure=function t(e){var r=e.sidebar,o=e.sidebarWrapper,a=e.contentWrapper,n=e.offset,i=r.getBoundingClientRect(),l=o.getBoundingClientRect(),c=a.getBoundingClientRect();return{viewportHeight:window.innerHeight,offset:n,sidebarTop:i.top,sidebarBottom:i.bottom,sidebarHeight:r.offsetHeight,wrapperTop:l.top,wrapperBottom:l.bottom,contentTop:c.top,contentBottom:c.bottom,contentHeight:a.offsetHeight}},t_catalog__stickySidebar_getState=function t(e){return T_CATALOG_STICKY_SIDEBAR_STATES.find((function(t){return e.classList.contains(t)}))||""},t_catalog__stickySidebar_setState=function t(e,r,o){T_CATALOG_STICKY_SIDEBAR_STATES.forEach((function(t){return e.classList.toggle(t,t===r)})),e.style.top="absolute-mid"===r&&void 0!==o?o+"px":""},t_catalog__stickySidebar_syncWrapperSize=function t(e){var r=e.sidebar,o=e.sidebarWrapper;o.style.height=r.offsetHeight+"px",o.style.width=r.offsetWidth+"px"},t_catalog__stickySidebar_reset=function t(e){var r=e.sidebar,o=e.sidebarWrapper;t_catalog__stickySidebar_setState(r,""),o.style.height="",o.style.width=""};function t_catalog_stickySidebarInit(t){t.id&&t_catalog__stickySidebarDestroyers[t.id]&&t_catalog__stickySidebarDestroyers[t.id]();var e=t_catalog__stickySidebar_getContext(t);if(e){var r=e.sidebar,o=e.sidebarWrapper,a=e.contentWrapper,n=window.matchMedia(T_CATALOG_STICKY_SIDEBAR_DESKTOP_MEDIA),i="ResizeObserver"in window,l=function t(e,o){void 0!==e&&t_catalog__stickySidebar_setState(r,e,o)},c=[],s=function r(){c.splice(0).forEach((function(t){return t()})),t_catalog__stickySidebar_reset(e),a.classList.remove(T_CATALOG_STICKY_SIDEBAR_CONTENT_CLASS),t.id&&t_catalog__stickySidebarDestroyers[t.id]===s&&delete t_catalog__stickySidebarDestroyers[t.id]},d=window.scrollY,u=function t(){if(r.isConnected){var a=window.scrollY;if(!n.matches)return t_catalog__stickySidebar_reset(e),void(d=a);i&&o.style.height||t_catalog__stickySidebar_syncWrapperSize(e);var c=t_catalog__stickySidebar_measure(e);if(t_catalog__stickySidebar_isShort(c))return l(t_catalog__stickySidebar_getShortState(c)),void(d=a);var u=t_catalog__stickySidebar_getTallDecision(t_catalog__stickySidebar_getState(r),a-d,c);l(u.state,u.top),u.skipScrollY||(d=a)}else s()},_=0,p=function t(){_||(_=requestAnimationFrame((function(){_=0,u()})))};if(t.id&&(t_catalog__stickySidebarDestroyers[t.id]=s),a.classList.add(T_CATALOG_STICKY_SIDEBAR_CONTENT_CLASS),t_catalog__stickySidebar_setState(r,""),n.matches&&t_catalog__stickySidebar_syncWrapperSize(e),window.addEventListener("scroll",u),window.addEventListener("resize",p),c.push((function(){window.removeEventListener("scroll",u),window.removeEventListener("resize",p),_&&cancelAnimationFrame(_),_=0})),i){var g=!1,f=new ResizeObserver((function(){!g&&n.matches&&l(t_catalog__stickySidebar_getStateAfterContentResize(t_catalog__stickySidebar_getState(r),t_catalog__stickySidebar_measure(e)))}));f.observe(a);var v=new ResizeObserver((function(){if(n.matches){g=!0;var t=o.offsetHeight;t_catalog__stickySidebar_syncWrapperSize(e),l(t_catalog__stickySidebar_getStateAfterSidebarResize(t_catalog__stickySidebar_getState(r),t,t_catalog__stickySidebar_measure(e))),setTimeout((function(){return g=!1}),100)}}));v.observe(r),c.push((function(){return f.disconnect()}),(function(){return v.disconnect()}))}}}var t_catalog__getBrowserLang=function(){var t=null;return function(){if(t)return t;var e=document.getElementById("allrecords"),r=null==e?void 0:e.getAttribute("data-tilda-project-lang");return r?t=r:(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2)}}();function t_catalog__getTranslation(t,e){var r=t[e],o=t_catalog__getBrowserLang();return o&&null!=r[o]?r[o]:r.EN}var t_catalog_filters__dict={filters:{EN:"Filters",RU:"Фильтры",FR:"Filtres",DE:"Filter",ES:"Filtros",PT:"Filtros",UK:"Фільтри",JA:"フィルター",ZH:"过滤器",PL:"Filtry",KK:"Сүзгілер",IT:"Filtri",LV:"Filtri"},close:{EN:"Close",RU:"Закрыть",FR:"Fermer",DE:"Schließen",ES:"Cerrar",PT:"Fechar",UK:"Закрити",JA:"閉じる",ZH:"关闭",PL:"Zamknij",KK:"Жабу",IT:"Chiudi",LV:"Aizvērt"},"filter-show-products":{EN:"Show products",RU:"Показать товары",FR:"Afficher les produits",DE:"Produkte anzeigen",ES:"Mostrar productos",PT:"Mostrar produtos",UK:"Показати товари",JA:"商品を表示",ZH:"显示商品",PL:"Pokaż produkty",KK:"Өнімдерді көрсету",IT:"Mostra prodotti",LV:"Rādīt produktus"},"filter-reset-all":{EN:"Reset all",RU:"Сбросить все",FR:"Tout réinitialiser",DE:"Alles zurücksetzen",ES:"Restablecer todo",PT:"Redefinir tudo",UK:"Скинути все",JA:"すべてリセット",ZH:"重置全部",PL:"Resetuj wszystko",KK:"Барлығын қалпына келтіру",IT:"Reimposta tutto",LV:"Atiestatīt visu"},"filter-show-more":{EN:"More..",RU:"Ещё..",FR:"Plus..",DE:"Mehr..",ES:"Más..",PT:"Mais..",UK:"Ще..",JA:"もっと..",ZH:"更多..",PL:"Więcej..",KK:"Көбірек..",IT:"Più..",LV:"Vairāk.."},"filter-close":{EN:"Close",RU:"Закрыть",DE:"Schließen",ES:"Cerrar",PT:"Fechar"}};function t_catalog_filters__getTranslation(t){return t_catalog__getTranslation(t_catalog_filters__dict,t)}var T_CATALOG_HIDDEN_SIDEBAR_DESKTOP_MEDIA="(min-width: 961px)",T_CATALOG_HIDDEN_SIDEBAR_SELECTOR=".t-catalog__sidebar_pos_hidden-left, .t-catalog__sidebar_pos_hidden-right",T_CATALOG_HIDDEN_SIDEBAR_OPEN_CLASS="t-catalog__sidebar_open",T_CATALOG_HIDDEN_SIDEBAR_OVERLAY_OPEN_CLASS="t-catalog__sidebar-overlay_open",T_CATALOG_HIDDEN_SIDEBAR_CLOSE_CLASS="js-catalog-sidebar-close",T_CATALOG_HIDDEN_SIDEBAR_FOCUSABLE_SELECTOR='a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]',T_CATALOG_HIDDEN_SIDEBAR_CLOSE_ICON='',t_catalog__hiddenSidebarDestroyers={},t_catalog__hiddenSidebar_ensureHeader=function t(e,r){var o=e.querySelector("."+T_CATALOG_HIDDEN_SIDEBAR_CLOSE_CLASS);if(o)return o;var a=document.createElement("div");a.className="t-catalog__sidebar-header";var n=document.createElement("div");n.className="t-catalog__sidebar-title t-name t-name_xs",n.textContent=r;var i=document.createElement("button");return i.type="button",i.className="t-catalog__sidebar-close "+T_CATALOG_HIDDEN_SIDEBAR_CLOSE_CLASS,i.setAttribute("aria-label",t_catalog_filters__getTranslation("close")),i.innerHTML=T_CATALOG_HIDDEN_SIDEBAR_CLOSE_ICON,a.append(n,i),e.insertBefore(a,e.firstChild),i},t_catalog__hiddenSidebar_setOpenerText=function t(e){var r,o,a=e.querySelector(".js-catalog-sidebar-opener-text");return a?(null!=(r=a.textContent)&&r.trim()||(a.textContent=t_catalog_filters__getTranslation("filters")),(null==(o=a.textContent)?void 0:o.trim())||""):""},t_catalog__hiddenSidebar_syncPaddingVars=function t(e){var r=window.getComputedStyle(e);e.style.setProperty("--t-catalog-sidebar-padding-top",r.paddingTop),e.style.setProperty("--t-catalog-sidebar-padding-right",r.paddingRight),e.style.setProperty("--t-catalog-sidebar-padding-left",r.paddingLeft)},t_catalog__hiddenSidebar_trapFocus=function t(e,r){var o=Array.from(e.querySelectorAll(T_CATALOG_HIDDEN_SIDEBAR_FOCUSABLE_SELECTOR)).filter((function(t){return t.tabIndex>=0&&t.getClientRects().length>0}));if(o.length){var a=o[0],n=o[o.length-1],i=document.activeElement,l=!!i&&e.contains(i);!r.shiftKey||i!==a&&l?r.shiftKey||i!==n&&l||(r.preventDefault(),a.focus()):(r.preventDefault(),n.focus())}},t_catalog__hiddenSidebar_onMediaChange=function t(e,r){return"function"==typeof e.addEventListener?(e.addEventListener("change",r),function(){return e.removeEventListener("change",r)}):(e.addListener(r),function(){return e.removeListener(r)})};function t_catalog_hiddenSidebarInit(t){t.id&&t_catalog__hiddenSidebarDestroyers[t.id]&&t_catalog__hiddenSidebarDestroyers[t.id]();var e=t.querySelector(T_CATALOG_HIDDEN_SIDEBAR_SELECTOR),r=t.querySelector(".js-catalog-sidebar-opener"),o=t.querySelector(".js-catalog-sidebar-overlay");if(e&&r&&o){var a=t_catalog__hiddenSidebar_setOpenerText(r),n=window.matchMedia(T_CATALOG_HIDDEN_SIDEBAR_DESKTOP_MEDIA),i=!1,l="",c=[],s=function t(a){var n,c=(void 0===a?{}:a).restoreFocus,s=void 0===c||c;i&&(i=!1,e.classList.remove(T_CATALOG_HIDDEN_SIDEBAR_OPEN_CLASS),o.classList.remove(T_CATALOG_HIDDEN_SIDEBAR_OVERLAY_OPEN_CLASS),r.setAttribute("aria-expanded","false"),e.removeAttribute("role"),e.removeAttribute("aria-modal"),e.removeAttribute("aria-label"),"hidden"===document.body.style.overflow&&(document.body.style.overflow=l),s&&r.isConnected&&r.focus())},d=function e(){s({restoreFocus:!1}),c.splice(0).forEach((function(t){return t()})),t.id&&t_catalog__hiddenSidebarDestroyers[t.id]===d&&delete t_catalog__hiddenSidebarDestroyers[t.id]},u=function t(){if(!i)if(e.isConnected){if(n.matches){i=!0;var c=t_catalog__hiddenSidebar_ensureHeader(e,a);t_catalog__hiddenSidebar_syncPaddingVars(e),e.classList.add(T_CATALOG_HIDDEN_SIDEBAR_OPEN_CLASS),o.classList.add(T_CATALOG_HIDDEN_SIDEBAR_OVERLAY_OPEN_CLASS),r.setAttribute("aria-expanded","true"),e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),a&&e.setAttribute("aria-label",a),l=document.body.style.overflow,document.body.style.overflow="hidden",c.focus({preventScroll:!0})}}else d()},_=function t(){return u()},p=function t(){return s()},g=function t(r){i&&("Escape"===r.key?s():"Tab"===r.key&&t_catalog__hiddenSidebar_trapFocus(e,r))},f=function t(e){var r=e.target;null!=r&&null!=r.closest&&r.closest("."+T_CATALOG_HIDDEN_SIDEBAR_CLOSE_CLASS)&&s()},v=function t(){n.matches||s({restoreFocus:!1})};t.id&&(t_catalog__hiddenSidebarDestroyers[t.id]=d),t_catalog__hiddenSidebar_ensureHeader(e,a),r.addEventListener("click",_),o.addEventListener("click",p),e.addEventListener("click",f),document.addEventListener("keydown",g),c.push((function(){return r.removeEventListener("click",_)}),(function(){return o.removeEventListener("click",p)}),(function(){return e.removeEventListener("click",f)}),(function(){return document.removeEventListener("keydown",g)}),t_catalog__hiddenSidebar_onMediaChange(n,v))}}function getTextFromHtml(t){if(!t)return"";var e=document.createElement("div");return e.innerHTML=t,(e.textContent||"").trim()}function parseProductBreadcrumbs(t){if(Array.isArray(t))return t.length>0?t:null;try{var e=JSON.parse(t);if(Array.isArray(e)&&e.length>0)return e}catch(r){console.error("Ошибка при парсинге хлебных крошек")}return null}function buildSnippetBreadcrumbsSettings(t){var e=t.breadcrumbs||{},r={},o=t.storebreadcrumbs_styles;if("string"==typeof o&&o)try{r=JSON.parse(o)}catch(n){console.error("Ошибка при парсинге настроек хлебных крошек")}var a="string"==typeof r.position?r.position:e.position;return{hasBreadcrumbs:!!a,hideBreadcrumbsProduct:"string"==typeof r.hideinproducts?"on"===r.hideinproducts:e.hideBreadcrumbsProduct,position:a,align:"left",color:"string"==typeof r.color?r.color:e.color,dividerColor:"string"==typeof r.devidercolor?r.devidercolor:e.dividerColor,activeColor:"string"==typeof r.coloractive?r.coloractive:e.activeColor,dividerStyle:void 0!==r.dividerstyle?r.dividerstyle:e.dividerStyle,iconHeight:"string"==typeof r.iconheight?r.iconheight:e.iconHeight,homeItem:"string"==typeof r.homeitem?r.homeitem:e.homeItem}}function addRootBreadcrumb(t){return t.some((function(t){return t.root}))?t:[{uid:0,title:"",breadcrumbtitle:"",alias:"",root:!0}].concat(t)}function initProductPopupBreadcrumbs(t,e,r,o){var a,n,i=e.querySelector(".js-catalog-prod-breadcrumbs");if(i){i.innerHTML="";var l=r.breadcrumbs;if(null!=(a=o.breadcrumbs)&&a.hasBreadcrumbs&&(null==(n=o.breadcrumbs)||!n.hideBreadcrumbsProduct)){var c=r.title||"",s=_extends({},o.breadcrumbs,{align:"left"}),d=document.getElementById("rec"+t),u,_=null;if(l&&(_=parseProductBreadcrumbs(l)),_&&_.length>0)d&&(_=_.map((function(t){if(!t.uid||t.root)return t;var e=d.querySelector('.js-catalog-parts-switcher[data-storepart-uid="'+t.uid+'"]');if(e){var r=e.getAttribute("data-storepart-path");if(r)return _extends({},t,{storepartPath:r})}return t}))),_=addRootBreadcrumb(_),u=_extends({},o,{breadcrumbs:s,serverBreadcrumbs:_,forceServerBreadcrumbs:!0});else{var p=addRootBreadcrumb([]);u=_extends({},o,{breadcrumbs:s,serverBreadcrumbs:p,forceServerBreadcrumbs:!0})}c&&(u.productTitle=c);var g=createBreadcrumbsHtml(t,u);if(g){i.innerHTML=g;var f=i.querySelector(".t-catalog__breadcrumbs");if(d&&f){var v=function t(){var r,o=null!=(r=e.closest(".t-popup"))?r:e.querySelector(".t-popup"),a=null==o?void 0:o.querySelector(".t-popup__close");null==a||a.click()},m,y,h,b;f.querySelectorAll('[data-breadcrumb-action="home"]').forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),window.location.href="/"}))})),f.querySelectorAll('[data-breadcrumb-action="all"]').forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),v();var e=d.querySelector(".js-catalog-parts-switcher.t-catalog__parts-switch-btn-all");e&&e.click()}))})),f.querySelectorAll("[data-breadcrumb-alias]").forEach((function(t){t.addEventListener("click",(function(e){e.preventDefault();var r=t.getAttribute("data-breadcrumb-alias");r&&(window.location.href=r)}))})),f.querySelectorAll("[data-breadcrumb-path]").forEach((function(t){t.addEventListener("click",(function(e){e.preventDefault();var r=t.getAttribute("data-breadcrumb-path");if(r){var o=d.querySelectorAll(".js-catalog-parts-switcher"),a=Array.from(o).find((function(t){return t.getAttribute("data-storepart-path")===r}));a&&(v(),a.click())}}))}));var w=function r(){var a=e.querySelector(".t-catalog__breadcrumbs");a&&handleOverflow(t,o,a)};setTimeout(w,0);var S="catalog:popupClosed",E=e._breadcrumbsResizeHandler;E&&window.removeEventListener("resize",E),window.addEventListener("resize",w),e._breadcrumbsResizeHandler=w;var C=function t(){window.removeEventListener("resize",w),delete e._breadcrumbsResizeHandler,e.removeEventListener(S,C)};e.addEventListener(S,C)}}}}}function initProductSnippetBreadcrumbs(t,e,r,o){var a,n,i,l=r.breadcrumbs;if(null==(a=o.breadcrumbs)||!a.hideBreadcrumbsProduct){var c=l?parseProductBreadcrumbs(l):null;c||(c=[]),c=addRootBreadcrumb(c);var s=r.title||"",d=_extends({},o,{breadcrumbs:buildSnippetBreadcrumbsSettings(o),serverBreadcrumbs:c,forceServerBreadcrumbs:!0});if(s&&(d.productTitle=s),null!=d&&null!=(n=d.breadcrumbs)&&n.hasBreadcrumbs&&(null==d||null==(i=d.breadcrumbs)||!i.hideBreadcrumbsProduct)){var u=createBreadcrumbsHtml(t,d);if(u){var _=e.querySelector(".js-catalog-prod-breadcrumbs");if(!_){(_=document.createElement("div")).className="t-catalog__prod-popup__breadcrumbs js-catalog-prod-breadcrumbs";var p=e.querySelector(".js-catalog-prod-slider");p?(p.classList.contains("t-col")&&_.classList.add("t-col"),p.insertAdjacentElement("beforebegin",_)):e.insertAdjacentElement("afterbegin",_)}_.innerHTML=u;var g=_.querySelector(".t-catalog__breadcrumbs");if(g){var f,v=e.closest(".t-catalog__prod-snippet__container")||document.getElementById("rec"+t)||document,m=v.querySelector(".t-catalog__prod-popup__close-txt-wr .js-catalog-close-text[href]"),y=v.querySelector(".t-popup__close[href]"),h=getCatalogBaseHref(m,y),b=g.querySelectorAll('[data-breadcrumb-role="category"]'),w=b.length?b[b.length-1]:null,S,E,C,A;if(w){var x=w.getAttribute("data-breadcrumb-alias"),T=w.getAttribute("data-breadcrumb-uid"),P=h.includes("?")?"&":"?",k=x||T&&""+h+P+"tfc_storepartnav%5B"+t+"%5D="+T+"&tfc_div=:::"||h;setNewUrl(m,k),setNewUrl(y,k)}g.querySelectorAll('[data-breadcrumb-action="home"]').forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),window.location.href=h}))})),g.querySelectorAll('[data-breadcrumb-action="all"]').forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),window.location.href=h}))})),g.querySelectorAll("[data-breadcrumb-alias]").forEach((function(t){t.addEventListener("click",(function(e){e.preventDefault();var r=t.getAttribute("data-breadcrumb-alias");r&&(window.location.href=r)}))})),g.querySelectorAll("[data-breadcrumb-uid]").forEach((function(e){e.addEventListener("click",(function(r){r.preventDefault();var o=e.getAttribute("data-breadcrumb-uid");if(o){var a=h.includes("?")?"&":"?";window.location.href=""+h+a+"tfc_storepartnav%5B"+t+"%5D="+o+"&tfc_div=:::"}}))}));var L=function e(){var r=_.querySelector(".t-catalog__breadcrumbs");r&&handleOverflow(t,o,r)};setTimeout(L,0),window.addEventListener("resize",L)}}}}}function setNewUrl(t,e){if(t){var r=new URL(e,t.href);t.href=r.href}}function getCatalogBaseHref(t,e){return null!=t&&t.href?t.href:null!=e&&e.href?e.href:window.location.href.replace(/\/tproduct\/[^/?#]*/,"")}function t_catalog_parts__addRecAnchorToPartLink(t,e){var r;if(!t||!e||t.includes("#"))return t;var o=null==(r=window.tCatalogParts)?void 0:r[e],a=findPart(o,(function(e){var r;return(null==(r=e.alias)?void 0:r.trim())===t})),n;return a?a.url&&!a.root||findPart(o,(function(t){return Boolean(t.url)&&String(t.recordid)===e&&(!t.root||Boolean(t.isCurrentPartAsRoot))}))?t:t+"#rec"+e:t}function findPart(t,e){if(t)for(var r=0;r\n\t\n'}function getDividerSvgCheck(){return'\n\n\n\n'}function getDividerSvgArrow(){return'\n\n\n\n'}function getDividerSvg(){return'\n\n\n\n'}var T_CATALOG_NAVIGATE_TO_PART_EVENT="t-catalog:navigate-to-part",dividerMap=((_dividerMap={})[DIVIDER_CHECK]=getDividerSvgCheck,_dividerMap[DIVIDER_ARROW]=getDividerSvgArrow,_dividerMap[""]=getDividerSvg,_dividerMap),STORE_PART_PATH_DELIMITER="/@/",switcherPathSelector=".js-catalog-parts-switcher[data-storepart-path]",categorySwitcherPathSelector=switcherPathSelector+":not(.t-catalog__filter-tree-node)";function isRootPath(){var t=window.location.pathname;return""===t||"/"===t||window.origin.toLowerCase().startsWith("https://tilda.")&&"y"===window.pageisindex}function navigateToStorePart(t,e,r){var o,a,n;!t.dispatchEvent(new CustomEvent(T_CATALOG_NAVIGATE_TO_PART_EVENT,{bubbles:!0,cancelable:!0,detail:{path:e,isAll:r}}))||(r?null==(a=t.querySelector(".js-catalog-parts-switcher.t-catalog__parts-switch-btn-all"))||a.click():null==(n=findSwitcherByPath(t,e))||n.click())}function findSwitcherByPath(t,e){var r=null,o,a;(t.querySelectorAll(".js-catalog-parts-switcher.t-catalog__parts-switch-btn, .js-catalog-parts-switcher.t-catalog__parts-tree-btn").forEach((function(t){r||t.getAttribute("data-storepart-path")===e&&(r=t)})),r)||t.querySelectorAll(".js-catalog-parts-switcher:not(.t-catalog__filter-tree-node)").forEach((function(t){r||t.getAttribute("data-storepart-path")===e&&(r=t)}));return r}function getHomeItem(t){var e=window.tCatalogDict,r,o=getHomeSvg();return o=t.iconHeight?o.replace("0&&(r+='"+e.divider+"");var a=t.role?' data-breadcrumb-role="'+t.role+'"':"",n=t.isHomeLink||t.isAllProductsLink?t.title:''+t.title+"";if(t.isActive)r+='"+n+"";else{var i=getBreadcrumbDataAttribute(t);r+=''+n+""}})),r}function renderBreadcrumbsContainer(t,e,r){return'
'+getBreadcrumbsHtml(e,r)+"
"}function createServerBreadcrumbsHtml(t,e,r,o){var a=getBreadcrumbsStyles(e,r),n;return renderBreadcrumbsContainer(t,getServerBreadcrumbs(e,r,o),a)}function getActiveCategory(t){var e=t.querySelector(".js-catalog-parts-switcher.t-active");if(!e||e.classList.contains("t-catalog__parts-switch-btn-all"))return null;var r=e.getAttribute("data-storepart-path");return r?{path:r,switcher:e}:null}function createSwitcherPathMap(t){var e=new Map;return t.querySelectorAll(categorySwitcherPathSelector).forEach((function(t){var r=t.getAttribute("data-storepart-path");r&&e.set(r,t)})),e}function findStorePartByPath(t,e){var r;if(!Array.isArray(t)||0===e.length)return null;var o=e[0],a=_arrayLikeToArray(e).slice(1),n=t.find((function(t){return(null==t?void 0:t.title)===o}));return n&&0!==a.length?null!=(r=n.subparts)&&r.length?findStorePartByPath(n.subparts,a):null:n||null}function getPathLeafTitle(t){var e=t.split(STORE_PART_PATH_DELIMITER);return e[e.length-1].trim()}function createBreadcrumbTitleResolver(t,e){return function(r){var o,a,n=r.split(STORE_PART_PATH_DELIMITER).map((function(t){return t.trim()})).filter(Boolean),i=t&&findStorePartByPath(t,n);if(null!=i&&null!=(o=i.breadcrumbtitle)&&o.trim()){var l=getTextFromHtml(i.breadcrumbtitle);if(l)return l}var c=e.get(r);if(!c)return getPathLeafTitle(r);var s=c.getAttribute("data-storepart-breadcrumb");if(null!=s&&s.trim()){var d=getTextFromHtml(s);if(d)return d}var u=c.querySelector(".t-catalog__parts-tree-btn-title, .t-catalog__parts-item-title");return(null==u||null==(a=u.textContent)?void 0:a.trim())||getPathLeafTitle(r)}}function getCategoryBreadcrumbs(t,e,r){var o;if(!t||!e)return[];var a=getActiveCategory(e);if(!a)return[];var n=createBreadcrumbTitleResolver(r.storePartsArr,createSwitcherPathMap(e));if(a.path.includes(STORE_PART_PATH_DELIMITER)){var i=a.path.split(STORE_PART_PATH_DELIMITER).filter(Boolean);return i.map((function(t,e){var r=i.slice(0,e+1).join(STORE_PART_PATH_DELIMITER);return{path:r,title:n(r)}}))}var l=a.switcher.getAttribute("data-storepart-breadcrumb"),c=l?l.trim():(null==(o=a.switcher.textContent)?void 0:o.trim())||"";return[{path:a.path,title:c}]}function getCatalogTitle(t,e){var r,o,a=null==(r=t.storePartsArr)?void 0:r.find((function(t){return!0===t.root}));if(null!=a&&a.title){var n=String(a.title);if("all"!==n.toLowerCase())return getTextFromHtml(n)}else{var i,l=(null==e||null==(i=e.querySelector(".t-catalog__parts-switch-btn-all"))||null==(i=i.textContent)?void 0:i.trim())||"";if(l&&!["Все","All"].includes(l))return l}return(null==(o=window.tCatalogDict)?void 0:o.catalog)||""}function createFrontBreadcrumbsHtml(t,e,r){var o=getBreadcrumbsStyles(e,r),a=getHomeItem(r),n=isRootPath(),i=document.getElementById("rec"+t),l=n?a:getCatalogTitle(e,i),c=getCategoryBreadcrumbs(t,i,e),s=[];return n||s.push({title:a,url:"/",isActive:!1,isHomeLink:!0,role:"home"}),c.length>0?(s.push({title:l,url:"#",isActive:!1,isAllProductsLink:!0,role:"catalog"}),c.forEach((function(t,e){var r=e===c.length-1,o=t.path;s.push({title:t.title,url:r?"":"#",isActive:r,categoryName:t.title,categoryPath:o,role:"category"})}))):n||s.push({title:l,url:"",isActive:!0,role:"catalog"}),renderBreadcrumbsContainer(t,s,o)}function createBreadcrumbsHtml(t,e){var r=e.breadcrumbs||{};if(!r.hasBreadcrumbs&&!e.forceServerBreadcrumbs)return"";var o=document.getElementById("allrecords"),a=document.querySelector(".t-catalog__product-snippet"),n;o!==a&&!!o&&!!a&&o.contains(a)&&(r=buildSnippetBreadcrumbsSettings(e));var i=e.serverBreadcrumbs,l;return Array.isArray(i)&&i.length>0&&(!!e.forceServerBreadcrumbs||i.some((function(t){return Boolean(t.alias)})))?createServerBreadcrumbsHtml(t,e,r,i):createFrontBreadcrumbsHtml(t,e,r)}function handleBreadcrumbClick(t,e,r){var o=t.target;if(!o)return!1;var a=o.closest("[data-breadcrumb-action], [data-breadcrumb-path], [data-breadcrumb-alias]");if(!a)return!1;if(!a.closest(".t-catalog__breadcrumbs"))return!1;var n=a.getAttribute("data-breadcrumb-action"),i=a.getAttribute("data-breadcrumb-alias"),l=a.getAttribute("data-breadcrumb-path");return"home"===n?(t.preventDefault(),window.location.href="/",!0):"all"===n?(t.preventDefault(),navigateToStorePart(e,"",!0),!0):i?(t.preventDefault(),window.location.href=t_catalog_parts__addRecAnchorToPartLink(i,r),!0):!!l&&(t.preventDefault(),navigateToStorePart(e,l,!1),!0)}function initEvents(t,e){var r=document.getElementById("rec"+t);if(r){var o=r;o._breadcrumbsClickHandler&&r.removeEventListener("click",o._breadcrumbsClickHandler);var a=function e(o){handleBreadcrumbClick(o,r,t)};o._breadcrumbsClickHandler=a,r.addEventListener("click",a),handleOverflow(t,e)}}function handleOverflow(t,e,r){var o=document.getElementById("rec"+t);if(o){var a,n;if(!r)r=(window.outerWidth>=960?o.querySelector(".t-catalog__breadcrumbs_desktop"):o.querySelector(".t-catalog__breadcrumbs_mobile"))||o.querySelector(".t-catalog__breadcrumbs")||void 0;if(r){var i=r.querySelector(".t-catalog__breadcrumbs-overflow");i&&i.remove();var l=r.querySelectorAll(".t-catalog__breadcrumbs-item"),c=r.querySelectorAll(".t-catalog__breadcrumbs-divider");l.forEach((function(t){t.style.display="",t.classList.remove("t-catalog__breadcrumbs-item_hidden")})),c.forEach((function(t){t.style.display="",t.classList.remove("t-catalog__breadcrumbs-divider_hidden")}));var s=Array.from(r.querySelectorAll(".t-catalog__breadcrumbs-item"));if(!(s.length<=2)){var d=s[s.length-1],u=s.slice(1,-1),_=r.clientWidth;if(!(r.scrollWidth<=_)){for(var p=r,g=function t(e){e.forEach((function(t){t.style.display="none",t.classList.add("t-catalog__breadcrumbs-item_hidden");var e=Array.from(p.children).indexOf(t),r=p.children[e+1];null!=r&&r.classList.contains("t-catalog__breadcrumbs-divider")&&(r.style.display="none",r.classList.add("t-catalog__breadcrumbs-divider_hidden"))}))},f=function t(e){e.forEach((function(t){t.style.display="",t.classList.remove("t-catalog__breadcrumbs-item_hidden");var e=Array.from(p.children).indexOf(t),r=p.children[e+1];null!=r&&r.classList.contains("t-catalog__breadcrumbs-divider")&&(r.style.display="",r.classList.remove("t-catalog__breadcrumbs-divider_hidden"))}))},v=function t(e){var r=Array.from(p.children).indexOf(e),o=p.children[r-1];null!=o&&o.classList.contains("t-catalog__breadcrumbs-divider")&&(o.style.display="none",o.classList.add("t-catalog__breadcrumbs-divider_hidden"))},m=u.length;m>=0;m--){var y=u.slice(m),h=y[0],b=null;if(h){var w=Array.from(p.children).indexOf(h),S=p.children[w-1];null!=S&&S.classList.contains("t-catalog__breadcrumbs-divider")&&(b=S)}g(y),b&&(b.style.display="none",b.classList.add("t-catalog__breadcrumbs-divider_hidden"));var E=buildOverflowWrapperForMeasure(e);p.insertBefore(E,d);var C=p.scrollWidth<=_;if(E.remove(),b&&(b.style.display="",b.classList.remove("t-catalog__breadcrumbs-divider_hidden")),f(y),C&&y.length>0)return g(y),b&&(b.style.display="none",b.classList.add("t-catalog__breadcrumbs-divider_hidden")),void createOverflowElement(t,p,y,null,e,d)}var A=u[0];A&&v(A),g(u),createOverflowElement(t,p,u,null,e,d)}}}}}function buildOverflowWrapperForMeasure(t){var e=t.breadcrumbs||{},r,o=(0,dividerMap[e.dividerStyle||""])(),a=('\n\t\t\n\t\t\t'+o+'\n\t\t\t...\n\t\t\t'+o+"\n\t\t\n\t").trim(),n=document.createElement("div");return n.innerHTML=a,n.firstElementChild}function createOverflowElement(t,e,r,o,a,n){var i=a.breadcrumbs||{},l=i.color?"color: "+i.color+";":"",c,s=(i.dividerColor?"color: "+i.dividerColor+";":"")||l,d,u=(dividerMap[i.dividerStyle||""]||dividerMap[""])(),_=i.dividerColor?" t-catalog__breadcrumbs-divider_colored":"",p,g,f=('\n\t\t\n\t\t\t'+u+'\n\t\t\t...\n\t\t\t'+(n?''+u+"":"")+'\n\t\t\t\n\t\t\n\t').trim(),v=document.createElement("div");v.innerHTML=f;var m=v.firstElementChild,y=m.querySelector(".t-catalog__breadcrumbs-overflow-btn"),h=m.querySelector(".t-catalog__breadcrumbs-overflow-popup"),b=function t(){h.style.left="0",h.style.right="auto";var e,r=8;h.getBoundingClientRect().right>window.innerWidth-8&&(h.style.left="auto",h.style.right="0")};r.forEach((function(e){var r=e.cloneNode(!0);r.style.display="block",r.classList.remove("t-catalog__breadcrumbs-item_hidden"),r.classList.add("t-catalog__breadcrumbs-overflow-popup-item");var o=e.getAttribute("data-breadcrumb-alias"),a=e.getAttribute("data-breadcrumb-path");o?r.addEventListener("click",(function(e){e.preventDefault(),h.style.display="none",window.location.href=t_catalog_parts__addRecAnchorToPartLink(o,t)})):a&&r.addEventListener("click",(function(r){r.preventDefault(),h.style.display="none";var o=e.getAttribute("data-breadcrumb-action"),a=e.getAttribute("data-breadcrumb-alias"),n=e.getAttribute("data-breadcrumb-path");if("home"!==o)if("all"!==o){if(a)window.location.href=t_catalog_parts__addRecAnchorToPartLink(a,t);else if(n){var i=document.getElementById("rec"+t);if(!i)return;navigateToStorePart(i,n,!1)}}else{var l=document.getElementById("rec"+t);l&&navigateToStorePart(l,"",!0)}else window.location.href="/"})),h.appendChild(r)})),y.addEventListener("click",(function(t){var e;t.stopPropagation(),"flex"===h.style.display?h.style.display="none":(h.style.display="flex",b())})),document.addEventListener("click",(function(t){m.contains(t.target)||(h.style.display="none")})),n?e.insertBefore(m,n):null!=o&&o.nextSibling?e.insertBefore(m,o.nextSibling):o?e.appendChild(m):e.insertBefore(m,e.firstChild)}function initBreadcrumbs(t,e){var r,o=document.getElementById("rec"+t);if(o){o.querySelectorAll(".t-catalog__breadcrumbs_desktop, .t-catalog__breadcrumbs_mobile, .t-catalog__breadcrumbs_all").forEach((function(t){return t.remove()}));var a=createBreadcrumbsHtml(t,e);if(a){var n=document.createElement("div");n.innerHTML=a;var i=n.firstChild,l=0,c=!1,s=e.breadcrumbs||{},d=o.querySelector(".t-section__container"),u=null==(r=o.querySelector(".js-catalog"))?void 0:r.previousElementSibling,_=null!=u&&u.classList.contains("t-catalog__grid-cont")?u:null,p,g;if("above_title"===s.position&&(d||_)){var f=i.cloneNode(!0);f.classList.add("t-catalog__breadcrumbs_all"),d?d.insertAdjacentElement("beforebegin",f):null==_||_.insertAdjacentElement("afterbegin",f),l++}else{if(e.sidebar){var v=o.querySelector(".t-catalog__filter__search-and-sort.js-catalog-filter-search-and-sort");if(v){var m,y,h=i.cloneNode(!0);h.classList.add("t-catalog__breadcrumbs_desktop");var b="above_cards"!==(null==(m=e.filtersStyles)?void 0:m.filtersLocation)&&e.sidebar,w=!(null==(y=e.filtersStyles)||!y.filterChosen);b&&w?(v.insertAdjacentElement("beforebegin",h),l++,c=!0):b&&!w&&(v.insertAdjacentElement("afterbegin",h),l++,c=!0)}else{var S=o.querySelector(".js-catalog-cont-w-filter");if(S){var E=i.cloneNode(!0);E.classList.add("t-catalog__breadcrumbs_desktop"),S.insertAdjacentElement("afterbegin",E),l++,c=!0}}}var C=o.querySelector(".t-catalog__filter.js-catalog-filter"),A,x;if(C){var T=i.cloneNode(!0);e.sidebar?T.classList.add("t-catalog__breadcrumbs_mobile"):T.classList.add("t-catalog__breadcrumbs_all"),C.insertAdjacentElement("afterbegin",T),l++}else{var P=o.querySelector(".js-catalog-parts-select-container, .t-catalog__cont-w-filter");if(P){var k=i.cloneNode(!0);e.sidebar?k.classList.add("t-catalog__breadcrumbs_mobile"):k.classList.add("t-catalog__breadcrumbs_all"),k.classList.add("t-catalog__breadcrumbs_padding"),P.insertAdjacentElement("afterbegin",k),l++}}if(e.sidebar)if(!("above_cards"!==(null==(A=e.filtersStyles)?void 0:A.filtersLocation))&&C&&!c){var L=i.cloneNode(!0);L.classList.add("t-catalog__breadcrumbs_desktop"),C.insertAdjacentElement("afterbegin",L),l++,c=!0}}if(l>0)initEvents(t,e),window.addEventListener("resize",(function(){clearTimeout(g),g=setTimeout((function(){handleOverflow(t,e)}),150)}))}}}function updateBreadcrumbs(t,e){var r;if(null!=e&&null!=(r=e.breadcrumbs)&&r.hasBreadcrumbs){var o=document.getElementById("rec"+t);if(o){var a=createBreadcrumbsHtml(t,e);if(a){var n=document.createElement("div");n.innerHTML=a;var i=n.firstChild,l=o.querySelector(".t-catalog__breadcrumbs_desktop"),c=o.querySelector(".t-catalog__breadcrumbs_mobile");if(l||c){if(l){var s,d=i.cloneNode(!0);d.classList.add("t-catalog__breadcrumbs_desktop"),null==(s=l.parentNode)||s.replaceChild(d,l)}if(c){var u,_=i.cloneNode(!0);_.classList.add("t-catalog__breadcrumbs_mobile"),c.classList.contains("t-catalog__breadcrumbs_all")&&_.classList.add("t-catalog__breadcrumbs_all"),null==(u=c.parentNode)||u.replaceChild(_,c)}initEvents(t,e),setTimeout((function(){handleOverflow(t,e)}),0)}else{var p;if("above_title"===(null==(p=e.breadcrumbs)?void 0:p.position)){var g=o.querySelector(".js-catalog-breadcrumbs");null==g||g.remove()}initBreadcrumbs(t,e)}}}}}var t_catalog__catalogDict={gallery:{EN:"Gallery",RU:"Галерея",FR:"Galerie",DE:"Galerie",ES:"Galería",PT:"Galeria",UK:"Галерея",JA:"ギャラリー",ZH:"图库",PL:"Galeria",KK:"Галерея",IT:"Galleria",LV:"Galerija"},previous_slide:{EN:"Previous slide",RU:"Предыдущий слайд",FR:"Diapositive précédente",DE:"Vorherige Folie",ES:"Diapositiva anterior",PT:"Slide anterior",UK:"Попередній слайд",JA:"前のスライド",ZH:"上一张幻灯片",PL:"Poprzedni slajd",KK:"Алдыңғы слайд",IT:"Slide precedente",LV:"Iepriekšējais slaids"},next_slide:{EN:"Next slide",RU:"Следующий слайд",FR:"Diapositive suivante",DE:"Nächste Folie",ES:"Siguiente diapositiva",PT:"Próximo slide",UK:"Наступний слайд",JA:"次のスライド",ZH:"下一张幻灯片",PL:"Następny slajd",KK:"Келесі слайд",IT:"Slide successiva",LV:"Nākamais slaids"},sku:{EN:"SKU",RU:"Артикул",FR:"UGS",DE:"SKU",ES:"SKU",PT:"SKU",UK:"Код товару",JA:"SKU",ZH:"SKU",PL:"SKU",KK:"SKU",IT:"SKU",LV:"SKU"},soldOut:{EN:"Out of stock",RU:"Нет в наличии",FR:"En rupture de stock",DE:"Ausverkauft",ES:"Agotado",PT:"Fora de estoque",UK:"Немає в наявності",JA:"在庫切れ",ZH:"缺货",PL:"Nie ma na stanie",KK:"Қорда жоқ",IT:"Esaurito",LV:"Nav noliktavā"},all:{EN:"All",RU:"Все",FR:"Tout",DE:"Alles",ES:"Todos",PT:"Todos",UK:"Всі",JA:"すべて",ZH:"所有",PL:"Wszystkie",KK:"Барлық",IT:"Tutti",LV:"Visi"},from:{EN:"from",RU:"от",FR:"de",DE:"von",ES:"de",PT:"de",JA:"から",ZH:"从",UK:"від",PL:"od",KK:"бастап",IT:"da",LV:"no"},emptypartmsg:{EN:"Nothing found",RU:"Ничего не найдено",FR:"Rien trouvé",DE:"Nichts gefunden",ES:"Nada encontrado",PT:"Nada encontrado",UK:"Нічого не знайдено",JA:"何も見つかりませんでした",ZH:"什么都没找到",PL:"Nic nie znaleziono",KK:"Ештеңе табылмады",IT:"Non abbiamo trovato nulla",LV:"Nekas nav atrasts"},seeotherproducts:{EN:"See other",RU:"Другие товары",FR:"Autres produits",DE:"Andere produkte",ES:"Otros productos",PT:"Outros produtos",UK:"Інші товари",JA:"その他の商品",ZH:"其他产品",PL:"Inne produkty",KK:"Басқа қараңыз",IT:"Vedi altri",LV:"Skatiet citas"},seeAlso:{EN:"See also",RU:"Смотрите также",FR:"Voir également",DE:"Siehe auch",ES:"Ver también",PT:"Veja também",UK:"Дивись також",JA:"また見なさい",ZH:"也可以看看",PL:"Patrz również",KK:"Сондай-ақ, қараңыз",IT:"Guarda anche",LV:"Skatīt arī"},addtocart:{EN:"Buy now",RU:"Купить",FR:"Acheter",DE:"Zu kaufen",ES:"Para comprar",PT:"Comprar",UK:"Купити",JA:"購入する",ZH:"要买",PL:"Kup",KK:"Қазір сатып Ал",IT:"Acquista ora",LV:"Pērc tagad"},loadmore:{EN:"Load more",RU:"Загрузить ещё",FR:"Charger plus",DE:"Mehr laden",ES:"Carga más",PT:"Carregue mais",UK:"Завантажити ще",JA:"もっと読み込む",ZH:"裝載更多",PL:"Pokaż więcej",KK:"Тағы жүктеу",IT:"Carica ancora",LV:"Ielādēt vairāk"},mainPage:{EN:"Main page",RU:"Главная",FR:"Page principale",DE:"Hauptseite",ES:"Página principal",PT:"Página principal",UK:"Головна сторінка",JA:"メインページ",ZH:"主页",PL:"Strona główna",KK:"Басты бет",IT:"Pagina principale",LV:"Galvenā lapa"},catalog:{EN:"Catalog",RU:"Каталог",FR:"Catalogue",DE:"Katalog",ES:"Catálogo",PT:"Catálogo",UK:"Каталог",JA:"カタログ",ZH:"产品目录",PL:"Katalog",KK:"Каталог",IT:"Catalogo",LV:"Katalogs"},PCE:{EN:"pc",RU:"шт",UK:"шт",KK:"шт"},NMP:{EN:"pack",RU:"уп",UK:"уп",KK:"уп"},MGM:{EN:"mg",RU:"мг",UK:"мг",KK:"мг"},g:{EN:"g",RU:"г",UK:"г",KK:"г"},GRM:{EN:"g",RU:"г",UK:"г",KK:"г"},KGM:{EN:"kg",RU:"кг",UK:"кг",KK:"кг"},TNE:{EN:"t",RU:"т",UK:"т",KK:"т"},MLT:{EN:"ml",RU:"мл",UK:"мл",KK:"мл"},LTR:{EN:"l",RU:"л",UK:"л",KK:"л"},mm:{EN:"mm",RU:"мм",UK:"мм",KK:"мм"},MMT:{EN:"mm",RU:"мм",UK:"мм",KK:"мм"},CMT:{EN:"cm",RU:"см",UK:"см",KK:"см"},DMT:{EN:"dm",RU:"дм",UK:"дм",KK:"дм"},MTR:{EN:"m",RU:"м",UK:"м",KK:"м"},MTK:{EN:"m²",RU:"м²",UK:"м²",KK:"м²"},MTQ:{EN:"m³",RU:"м³",UK:"м³",KK:"м³"},LMT:{EN:"lm",RU:"пог. м",UK:"пог. м",KK:"пог. м"},HAR:{EN:"ha",RU:"га",UK:"га",KK:"га"},ACR:{EN:"acre"},YRD:{EN:"yd"},LBR:{EN:"lb"},ONZ:{EN:"oz"},INH:{EN:"in"},FOT:{EN:"ft"},"product-lwh":{EN:"LxWxH",RU:"ДxШxВ",DE:"LxBxH",ES:"PxLxK",UK:"ДxШxВ"},"product-wht":{EN:"WxHxT",RU:"ШxВxТ",FR:"LxHxÉ",DE:"BxHxD",ES:"LxKxP",PT:"LxAxE",UK:"ШxВxТ"},"product-whd":{EN:"WxHxD",RU:"ШxВxГ",FR:"LxHxP",DE:"BxHxT",ES:"LxKxS",PT:"LxAxP",UK:"ШxВxГ"},"product-weight":{EN:"Weight",RU:"Вес",FR:"Poids",DE:"Gewicht",ES:"Kaal",PT:"Peso",UK:"Вага",JA:"重さ",ZH:"機重",PL:"Waga",KK:"Салмақ",IT:"Peso",LV:"Svars"}};function t_catalog__setGlobalDictObj(){var t=t_catalog__getBrowserLang();window.tCatalogDict||(window.tCatalogDict={}),Object.keys(t_catalog__catalogDict).forEach((function(e){var r=t_catalog__catalogDict[e];window.tCatalogDict[e]=t&&r[t]?r[t]:r.EN}))}function t_catalog__getCatalogTranslation(t){return t_catalog__getTranslation(t_catalog__catalogDict,t)}var t_catalog_filters__getVisibilityFlags=function t(e,r){var o,a,n;void 0===r&&(r={});var i=Boolean((null==(o=r)?void 0:o.filters)&&r.filters.length>0),l=Boolean(null==(a=r)?void 0:a.search),c=Boolean(null==(n=r)?void 0:n.sort),s=l||c,d=Boolean(null==e?void 0:e.hideFilters),u=!(null!=e&&e.useSeparateHideSearchSort),_=Boolean(null==e?void 0:e.hideSearchSort)||d&&u,p,g;return{hasFilters:i,hasSearch:l,hasSort:c,hasSearchSort:s,shouldShowFilters:i&&!d,shouldShowSearchSort:s&&!_}};function isNewPartsUsed(t){return Boolean(t.querySelector(".js-catalog-has-new-parts-02-26"))}var __tModule_index_module_ce6c43ba=function(t){var e={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId:function t(){return r(this.context.count)},getNextContextId:function t(){return r(this.context.count++)}};function r(t){var r=String(t),o=r.length-1;return e.context.id+(o?String.fromCharCode(96+o):"")+r}function o(t){e.context=t}function a(){return _extends({},e.context,{id:e.getNextContextId(),count:0})}var n=!1,i=function t(e,r){return e===r},l=Symbol("solid-proxy"),c="function"==typeof Proxy,s=Symbol("solid-track"),d={equals:i},u=D,_=1,p=2,g={owned:null,cleanups:null,context:null,owner:null},f=null,v=null,m=null,y=null,h=null,b=null,w=0;function S(t,e){var r=y,o=f,a=0===t.length,n=o,i=a?g:{owned:null,cleanups:null,context:n?n.context:null,owner:n},l=a?t:function(){return t((function(){return T((function(){return F(i)}))}))};f=i,y=null;try{return N(l,!0)}finally{y=r,f=o}}function E(t,e){var r={value:t,observers:null,observerSlots:null,comparator:(e=e?Object.assign({},d,e):d).equals||void 0},o=function t(e){return"function"==typeof e&&(e=e(r.value)),O(r,e)};return[L.bind(r),o]}function C(t,e,r){var o=void 0;j(R(t,e,!1,_))}function A(t,e,r){u=M;var o=R(t,e,!1,_);o.user=!0,b?b.push(o):j(o)}function x(t,e,r){r=r?Object.assign({},d,r):d;var o=R(t,e,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=r.equals||void 0,j(o),L.bind(o)}function T(t){if(null===y)return t();var e=y;y=null;try{return t()}finally{y=e}}function P(t){A((function(){return T(t)}))}function k(t){return null===f||(null===f.cleanups?f.cleanups=[t]:f.cleanups.push(t)),t}function L(){var t=this;if(this.sources&&this.state)if(this.state===_)j(this);else{var e=h;h=null,N((function(){return U(t)}),!1),h=e}if(y){var r=this.observers?this.observers.length:0;y.sources?(y.sources.push(this),y.sourceSlots.push(r)):(y.sources=[this],y.sourceSlots=[r]),this.observers?(this.observers.push(y),this.observerSlots.push(y.sources.length-1)):(this.observers=[y],this.observerSlots=[y.sources.length-1])}return this.value}function O(t,e,r){var o=t.value;return t.comparator&&t.comparator(o,e)||(t.value=e,t.observers&&t.observers.length&&N((function(){for(var e=0;e1e6)throw h=[],new Error}),!1)),e}function j(t){if(t.fn){F(t);var e=w;I(t,t.value,e)}}function I(t,e,r){var o,a=f,n=y;y=f=t;try{o=t.fn(e)}catch(i){return t.pure&&(t.state=_,t.owned&&t.owned.forEach(F),t.owned=null),t.updatedAt=r+1,K(i)}finally{y=n,f=a}(!t.updatedAt||t.updatedAt<=r)&&(null!=t.updatedAt&&"observers"in t?O(t,o):t.value=o,t.updatedAt=r)}function R(t,e,r,o,a){void 0===o&&(o=_);var n={fn:t,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:f,context:f?f.context:null,pure:r};return null===f||f!==g&&(f.owned?f.owned.push(n):f.owned=[n]),n}function q(t){if(0!==t.state){if(t.state===p)return U(t);if(t.suspense&&T(t.suspense.inFallback))return t.suspense.effects.push(t);for(var e=[t];(t=t.owner)&&(!t.updatedAt||t.updatedAt=0;r--)if((t=e[r]).state===_)j(t);else if(t.state===p){var o=h;h=null,N((function(){return U(t,e[0])}),!1),h=o}}}function N(t,e){if(h)return t();var r=!1;e||(h=[]),b?r=!0:b=[],w++;try{var a=t();return B(r),a}catch(o){r||(b=null),h=null,K(o)}}function B(t){if(h&&(D(h),h=null),!t){var e=b;b=null,e.length&&N((function(){return u(e)}),!1)}}function D(t){for(var e=0;e=0;e--)F(t.tOwned[e]);delete t.tOwned}if(t.owned){for(e=t.owned.length-1;e>=0;e--)F(t.owned[e]);t.owned=null}if(t.cleanups){for(e=t.cleanups.length-1;e>=0;e--)t.cleanups[e]();t.cleanups=null}t.state=0}function H(t){return t instanceof Error?t:new Error("string"==typeof t?t:"Unknown error",{cause:t})}function K(t,e){void 0===e&&(e=f);var r=void 0;throw H(t)}var W=Symbol("fallback");function V(t){for(var e=0;e1?[]:null;return k((function(){return V(n)})),function(){var c=t()||[],d=c.length,u,_;return c[s],T((function(){var t,e,s,g,f,v,m,y,h;if(0===d)0!==i&&(V(n),n=[],o=[],a=[],i=0,l&&(l=[])),r.fallback&&(o=[W],a[0]=S((function(t){return n[0]=t,r.fallback()})),i=1);else if(0===i){for(a=new Array(d),_=0;_=v&&y>=v&&o[m]===c[y];m--,y--)s[y]=a[m],g[y]=n[m],l&&(f[y]=l[m]);for(t=new Map,e=new Array(y+1),_=y;_>=v;_--)h=c[_],u=t.get(h),e[_]=void 0===u?-1:u,t.set(h,_);for(u=v;u<=m;u++)h=o[u],void 0!==(_=t.get(h))&&-1!==_?(s[_]=a[u],g[_]=n[u],l&&(f[_]=l[u]),_=e[_],t.set(h,_)):n[u]();for(_=v;_1?e-1:0),o=1;o1?r.flat():r[0],i=r.map((function(e){return new Proxy({get:function r(o){return e.includes(o)?t[o]:void 0},has:function r(o){return e.includes(o)&&o in t},keys:function r(){return e.filter((function(e){return e in t}))}},Q)}));return i.push(new Proxy({get:function e(r){return n.includes(r)?void 0:t[r]},has:function e(r){return!n.includes(r)&&r in t},keys:function e(){return Object.keys(t).filter((function(t){return!n.includes(t)}))}},Q)),i}for(var s=[],d=0;d<=a;d++)s[d]={};for(var u=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(t)),_;!(_=u()).done;){for(var p=_.value,g=a,f=0;fp-l)for(var m=e[i];l-1&&dt[e.split(":")[0]];m?vt(t,m,e,r):ft(t,nt[e]||e,r)}return r}function jt(t){var e=t.target,r="$$"+t.type,o=t.target,a=t.currentTarget,n=function e(r){return Object.defineProperty(t,"target",{configurable:!0,value:r})},i=function o(){var a=e[r];if(a&&!e.disabled){var i=e[r+"Data"];if(void 0!==i?a.call(e,i,t):a.call(e,t),t.cancelBubble)return}return e.host&&"string"!=typeof e.host&&!e.host._$host&&e.contains(t.target)&&n(e.host),!0},l=function t(){for(;i()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(t,"currentTarget",{configurable:!0,get:function t(){return e||document}}),t.composedPath){var c=t.composedPath();n(c[0]);for(var s=0;s=0;i--){var l=e[i];if(a!==l){var c=l.parentNode===t;n||i?c&&l.remove():c?t.replaceChild(a,l):t.insertBefore(a,r)}else n=!0}else t.insertBefore(a,r);return[a]}function Bt(){return e.getNextContextId()}var Dt="http://www.w3.org/2000/svg",Mt;function Ut(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=void 0),e?document.createElementNS(Dt,t):document.createElement(t,{is:r})}function zt(t,r){var o=x(t);return x((function(){var t=o();switch(typeof t){case"function":return T((function(){return t(r)}));case"string":var a=st.has(t),n=e.context?Tt():Ut(t,a,T((function(){return r.is})));return Et(n,r,a),n}}))}function Ft(t){var e,r;return zt((function(){return t.component}),X(t,["component"])[1])}function Ht(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}Ht(".t-catalog__prod__quantity{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background-color:var(--t-catalog-quantity-bg,#fff);border:1px solid var(--t-catalog-quantity-border,#777);box-sizing:border-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:14px;margin:0 4px 8px 0;vertical-align:top}.t-catalog__prod__quantity.t-catalog__prod__quantity_zero{background-color:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;height:100%;margin:0;min-width:0;padding:0;width:100%}.t-catalog__prod__quantity_xs{font-size:13px;height:35px}.t-catalog__prod__quantity_sm{font-size:14px;height:45px}.t-catalog__prod__quantity_smd{font-size:15px;height:50px}.t-catalog__prod__quantity_md{font-size:16px;height:60px}.t-catalog__prod__quantity_lg{font-size:22px;height:60px}.t-catalog__prod__quantity_xl{font-size:26px;height:80px}.t-catalog__prod__quantity_xxl{font-size:30px;height:100px}.t-catalog__prod__quantity input[type=number]::-webkit-inner-spin-button,.t-catalog__prod__quantity input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.t-catalog__prod__quantity input[type=number]{-webkit-appearance:textfield;appearance:textfield}.t-catalog__prod__quantity-input{background-color:transparent;border:none;color:var(--t-catalog-quantity-color,#000);height:30px;padding:0;text-align:center;vertical-align:top;width:30px}.t-catalog__prod__quantity_zero .t-catalog__prod__quantity-input{box-sizing:border-box;color:inherit;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;font:inherit;height:100%;min-width:0;width:0}.t-catalog__prod__quantity-input:focus{outline:none}.t-catalog__prod__quantity__minus-wrapper,.t-catalog__prod__quantity__plus-wrapper{cursor:pointer;height:25px;margin:0 5px;min-width:25px;width:25px}.t-catalog__prod__quantity_zero .t-catalog__prod__quantity__minus-wrapper,.t-catalog__prod__quantity_zero .t-catalog__prod__quantity__plus-wrapper{-ms-flex-item-align:stretch;-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;-webkit-align-self:stretch;align-self:stretch;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;height:auto;-webkit-justify-content:center;justify-content:center;margin:0;min-width:24px;width:var(--t-catalog-zero-quantity-icon-size,17px)}.t-catalog__prod__quantity__minus{background:linear-gradient(var(--t-catalog-quantity-color,#777),var(--t-catalog-quantity-color,#777)),transparent}.t-catalog__prod__quantity__plus{background:linear-gradient(var(--t-catalog-quantity-color,#777),var(--t-catalog-quantity-color,#777)),linear-gradient(var(--t-catalog-quantity-color,#777),var(--t-catalog-quantity-color,#777)),transparent}.t-catalog__prod__quantity__minus,.t-catalog__prod__quantity__plus{background-position:50%;background-repeat:no-repeat;background-size:50% 1px,1px 50%;border-radius:50px;display:inline-block;height:100%;width:100%}.t-catalog__prod__quantity_zero .t-catalog__prod__quantity__minus,.t-catalog__prod__quantity_zero .t-catalog__prod__quantity__plus{background-color:transparent;background-position:50%;background-repeat:no-repeat;height:var(--t-catalog-zero-quantity-icon-size,17px);width:var(--t-catalog-zero-quantity-icon-size,17px)}.t-catalog__prod__quantity_zero .t-catalog__prod__quantity__minus{background-image:linear-gradient(var(--t-catalog-zero-quantity-icon-color,currentColor),var(--t-catalog-zero-quantity-icon-color,currentColor));background-size:100% var(--t-catalog-zero-quantity-icon-stroke-width,1px)}.t-catalog__prod__quantity_zero .t-catalog__prod__quantity__plus{background-image:linear-gradient(var(--t-catalog-zero-quantity-icon-color,currentColor),var(--t-catalog-zero-quantity-icon-color,currentColor)),linear-gradient(var(--t-catalog-zero-quantity-icon-color,currentColor),var(--t-catalog-zero-quantity-icon-color,currentColor));background-size:100% var(--t-catalog-zero-quantity-icon-stroke-width,1px),var(--t-catalog-zero-quantity-icon-stroke-width,1px) 100%}");var Kt=pt('
'),Wt={xs:"t-catalog__prod__quantity_xs",sm:"t-catalog__prod__quantity_sm",smd:"t-catalog__prod__quantity_smd",md:"t-catalog__prod__quantity_md",lg:"t-catalog__prod__quantity_lg",xl:"t-catalog__prod__quantity_xl",xxl:"t-catalog__prod__quantity_xxl"},Vt=function t(e){var r,o=e.size?Wt[e.size]:"",a=e.state,n=a.value,i=a.onMinusClick,l=a.onPlusClick,c=a.onInputChange,s=a.onInputBlur,d={"border-radius":null==(r=e.styles)?void 0:r.borderRadius},u,_,p,g;return _=(u=Kt()).firstChild,g=(p=_.nextSibling).nextSibling,ht(_,"click",i,!0),ht(p,"blur",s),p.addEventListener("change",(function(t){return c(t.currentTarget.value)})),p.$$input=function(t){return c(t.currentTarget.value)},ht(g,"click",l,!0),C((function(t){var r,a=((r={"t-catalog__prod__quantity":!0})[o]=Boolean(o),r["t-catalog__prod__quantity_zero"]="zero"===e.variant,r),n=d,i=e.state.min,l=e.state.max;return t.e=bt(u,a,t.e),t.t=wt(u,n,t.t),i!==t.a&&ft(p,"min",t.a=i),l!==t.o&&ft(p,"max",t.o=l),t}),{e:void 0,t:void 0,a:void 0,o:void 0}),C((function(){return p.value=n()})),u},Gt;function Jt(t){var e=$t(t.initialValue,t.min,t.max),r=E(String(e),{equals:!1}),o=r[0],a=r[1],n=function e(r){var o=$t(r,t.min,t.max);a(String(o)),null==t.onChange||t.onChange(o)},i=function t(){n(parseInt(o(),10)-1)},l=function t(){n(parseInt(o(),10)+1)},c=function t(e){a(e)},s=function t(){n(o())};return{min:t.min,max:t.max,value:o,onMinusClick:i,onPlusClick:l,onInputChange:c,onInputBlur:s}}function $t(t,e,r){var o="number"==typeof t?t:parseInt(t,10);return Number.isNaN(o)||or?r:o}function Zt(t){if(null==t||""===t)return"";var e=document.createElement("textarea");return e.innerHTML=t,e.value}gt(["click","input"]),Ht('.t-product__option{margin-bottom:10px;margin-top:10px;position:relative}.t-product__option-title{padding-bottom:3px;width:-webkit-fit-content;width:fit-content}.t-product__option-variants{display:table;min-width:150px;position:relative}.t-product__option-variants_regular:after{border-color:#000 transparent transparent;border-style:solid;border-width:6px 5px 0;bottom:0;content:" ";height:0;pointer-events:none;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:0}.t-product__option-select{-webkit-appearance:none;appearance:none;background:#f8f8f8;border:1px solid #ddd;border-radius:5px;box-sizing:border-box;color:#000;cursor:pointer;overflow-x:hidden;padding:2px 30px 2px 10px;width:100%}.t-product__option-select::-ms-expand{height:0;opacity:0;width:0}@media screen and (max-width:640px){.t-product__option-select{font-size:16px}}.t-product__option-variants_custom:after{display:none}.t-product__option-variants_custom{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;min-width:auto;position:relative}.t-product__option-variants_custom.t-product__option-variants_radio{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.t-product__option-variants_custom.t-product__option-variants_buttons.t-product__option-variants_color,.t-product__option-variants_custom.t-product__option-variants_buttons.t-product__option-variants_image,.t-product__option-variants_custom.t-product__option-variants_radio{margin:5px 5px 0}.t-product__option-variants_custom .t-product__option-title{line-height:normal;overflow:hidden;padding-bottom:0;text-overflow:ellipsis}.t-product__option-item_disabled{cursor:default;opacity:.4;pointer-events:none}.t-product__option-item{-ms-flex-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;cursor:pointer;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}.t-product__option-input{height:0;left:-9999px;opacity:0;position:absolute;visibility:hidden;width:0}.t-product__option-checkmark{box-sizing:border-box;display:inline-block;height:20px;position:relative}.t-product__option-variants_buttons .t-product__option-item{margin-bottom:7px;margin-right:7px}.t-product__option-item_buttons .t-product__option-checkmark{height:0}.t-product__option-variants_buttons .t-product__option-item_simple{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background-color:#fff;border:1px solid #ddd;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;margin-bottom:7px;min-height:30px;min-width:30px;padding:7px}.t-product__option-variants_buttons .t-product__option-item_simple.t-product__option-item_active,.t-product__option-variants_buttons .t-product__option-item_simple:hover{border:1px solid rgba(0,0,0,.5)}.t-product__option-variants_buttons .t-product__option-title_buttons{padding-right:0}.t-product__option-variants_buttons .t-product__option-checkmark_color{background-color:#fff;border:1px solid #ddd;border-radius:50%;height:26px;width:26px}.t-product__option-variants_buttons .t-product__option-input:checked+.t-product__option-checkmark_color:before{border:1px solid rgba(0,0,0,.5);border-radius:50%;content:"";height:calc(100% + 8px);left:-5px;position:absolute;top:-5px;width:calc(100% + 8px)}.t-product__option-variants_buttons .t-product__option-checkmark_image{background-color:#fff;background-repeat:no-repeat;background-size:cover;border:1px solid #ddd;height:50px;width:50px}.t-product__option-variants_buttons .t-product__option-input:checked+.t-product__option-checkmark_image:before{border:1px solid rgba(0,0,0,.5);content:"";height:calc(100% + 8px);left:-5px;position:absolute;top:-5px;width:calc(100% + 8px)}.t-product__option-variants_buttons .t-product__option-title_color,.t-product__option-variants_buttons .t-product__option-title_image{display:none}.t-product__option-variants_buttons .t-product__option-item_color:hover .t-product__option-title,.t-product__option-variants_buttons .t-product__option-item_image:hover .t-product__option-title{background-color:#000;border-radius:4px;color:#fff;display:block;padding:4px 10px;position:absolute}.t-product__option-variants_buttons .t-product__option-item_color:hover .t-product__option-title{bottom:36px;-webkit-transform:translateX(calc(-50% + 13px));transform:translateX(calc(-50% + 13px))}.t-product__option-variants_buttons .t-product__option-item_image:hover .t-product__option-title{bottom:60px;-webkit-transform:translateX(calc(-50% + 25px));transform:translateX(calc(-50% + 25px))}.t-product__option-variants_buttons .t-product__option-item_color:hover .t-product__option-title:after,.t-product__option-variants_buttons .t-product__option-item_image:hover .t-product__option-title:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000;bottom:-4px;content:"";display:block;height:0;left:calc(50% - 5px);position:absolute;width:0}.t-product__option-selected_select,.t-product__option-variants_select-wrap{display:table;min-width:150px;position:relative}.t-product__option-selected_select{background:#f8f8f8;border:1px solid #ddd;border-radius:5px;box-sizing:border-box;cursor:pointer;padding:2px 30px 2px 10px}button.t-product__option-selected_select{appearance:none;-webkit-appearance:none;color:inherit;text-align:inherit}.t-product__option-selected_select.t-product__option-selected_color,.t-product__option-selected_select.t-product__option-selected_image{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;max-width:100%;width:-webkit-fit-content;width:fit-content}.t-product__option-selected_select:after{border-color:#000 transparent transparent;border-style:solid;border-width:6px 5px 0;bottom:0;content:" ";height:0;pointer-events:none;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:0}.t-product__option .t-product__option-variants_select{background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:5px;box-shadow:0 4px 10px 2px rgba(0,0,0,.1);box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;left:0;min-width:150px;padding:5px 10px;position:absolute;top:100%;width:100%;z-index:10}\n\n/* !important: у .t-product__option-variants_custom стоит display: flex — он сильнее\n браузерного скрытия закрытого [popover], и панель остаётся на экране.\n none !important прячет закрытый список; flex !important у :popover-open\n перебивает этот none, когда селект открыт. */.t-product__option .t-product__option-variants_select[popover]{display:none!important;inset:auto;left:auto;margin:0;max-height:40vh;max-width:240px;min-width:180px;position:fixed;top:auto;width:-webkit-max-content;width:max-content}.t-product__option .t-product__option-variants_select[popover]:popover-open{display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.t-product__option-variants_hidden{display:none!important}.t-product__option-item_select{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:-10px;margin-right:-10px;padding:8px 10px;width:calc(100% + 20px)}.t-product__option-item_select.t-product__option-item_active{background-color:rgba(0,0,0,.05)}.t-product__option-item_select:hover{background-color:rgba(0,0,0,.1)}.t-product__option-selected_color .t-product__option-selected-checkmark,.t-product__option-variants_select .t-product__option-checkmark_color{-ms-flex-negative:0;border:1px solid #ddd;border-radius:50%;display:block;-webkit-flex-shrink:0;flex-shrink:0;height:16px;margin-right:5px;width:16px}.t-product__option-selected_image .t-product__option-selected-checkmark,.t-product__option-variants_select .t-product__option-checkmark_image{-ms-flex-negative:0;background-color:#fff;background-repeat:no-repeat;background-size:cover;border:1px solid #ddd;border-radius:4px;display:block;-webkit-flex-shrink:0;flex-shrink:0;height:32px;margin-right:5px;width:32px}.t-product__option-selected-title,.t-product__option-title_select{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.t-product__option-variants_radio .t-product__option-item{margin-bottom:10px;min-height:14px;padding-left:26px;width:100%}.t-product__option-variants_radio .t-product__option-item_color,.t-product__option-variants_radio .t-product__option-item_image{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%}.t-product__option-variants_radio .t-product__option-checkmark_radio.t-product__option-checkmark_color{-ms-flex-negative:0;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-flex-shrink:0;flex-shrink:0;height:24px;margin-right:5px;width:24px}.t-product__option-variants_radio .t-product__option-checkmark_radio.t-product__option-checkmark_image{-ms-flex-negative:0;background-color:#fff;background-repeat:no-repeat;background-size:cover;border:1px solid #ddd;border-radius:4px;display:block;-webkit-flex-shrink:0;flex-shrink:0;height:32px;margin-right:5px;width:32px}.t-product__option-variants_radio .t-product__option-input+.t-product__option-checkmark:before,.t-product__option-variants_radio .t-product__option-input:checked+.t-product__option-checkmark:after{border-radius:50%;content:"";position:absolute}.t-product__option-item_radio .t-product__option-input+.t-product__option-checkmark:before{border:1px solid rgba(0,0,0,.2);height:16px;left:-26px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:16px}.t-product__option-item_radio .t-product__option-input:checked+.t-product__option-checkmark:after{background-color:rgba(0,0,0,.2);height:10px;left:-22px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:10px}.t-product__option-item_radio\n\t.t-product__option-input+.t-product__option-checkmark.t-product__option-checkmark_image:before{left:-26px}.t-product__option-item_radio\n\t.t-product__option-input:checked+.t-product__option-checkmark.t-product__option-checkmark_image:after{left:-22px}.t-product__option-item_radio.t-product__option-item_active\n\t.t-product__option-input+.t-product__option-checkmark:before{border:1px solid rgba(0,0,0,.5)}.t-product__option-item_radio.t-product__option-item_active\n\t.t-product__option-input:checked+.t-product__option-checkmark:after{background-color:rgba(0,0,0,.5)}.t-product__option-title_radio{display:inline-block;line-height:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.t-product__checkbox-wrap{margin-left:5px;margin-top:5px}.t-product__checkbox-wrap .t-checkbox__control+.t-checkbox__control{margin-top:10px}');var Qt=pt('
"),pe=pt('
'),ge=pt("
"),fe=function t(e){try{return e.matches(":popover-open")}catch(r){return!1}},ve=function t(e){if(fe(e))try{e.hidePopover()}catch(r){}},me=function t(e){var r=e.option.params.linkImage?"image":e.option.params.hasColor?"color":"simple",o;if("simple"===r)return At(o=ce(),$(Yt,{get option(){return e.option},get value(){return e.value},get disabled(){return e.disabled},get onChange(){return e.onChange},get selectClass(){return e.selectClass},get getPrice(){return e.getPrice}})),o;var a=ne(),n="t-product-option-popover-"+tt(),i=n+"-"+e.option.name,l=E(!1),c=l[0],s=l[1],d=E(!1),u=d[0],_=d[1],p,g,f;P((function(){if(a){var t=ae(f,g),e=function t(e){var r="newState"in e&&"open"===e.newState;s(r)};return f.addEventListener("toggle",e),void k((function(){t(),f.removeEventListener("toggle",e)}))}var r=function t(e){p.contains(e.target)||_(!1)};document.addEventListener("click",r),k((function(){return document.removeEventListener("click",r)}))}));var v=function t(){a?ve(f):_(!1),g.focus()},m=function t(){return"image"===r?(o=se(),C((function(t){var r,a,n="url('"+(null!=(r=e.option.imagesObj[e.value])?r:"")+"')",i=null!=(a=e.option.imagesObj[e.value])?a:"";return n!==t.e&&St(o,"background-image",t.e=n),i!==t.t&&ft(o,"data-original",t.t=i),t}),{e:void 0,t:void 0}),o):(a=de(),C((function(t){return St(a,"background-color",le(e.option.valuesObj,e.value))})),a);var o,a};return function(){var t=ue(),o=t.firstChild,l=o.firstChild,s=o.nextSibling,d=p;"function"==typeof p?Ct(p,t):p=t,At(t,$(Yt,{get option(){return e.option},get value(){return e.value},get disabled(){return e.disabled},get onChange(){return e.onChange},get selectClass(){return e.selectClass},get getPrice(){return e.getPrice},hidden:!0}),o),ht(o,"click",a?void 0:function(){_((function(t){return!t}))},!0);var y=g;"function"==typeof g?Ct(g,o):g=o,yt(o,"t-product__option-selected t-product__option-selected_select t-product__option-selected_"+r+" t-descr t-descr_xxs"),ft(o,"popovertarget",a?n:void 0),ft(o,"aria-controls",n),At(o,m,l),At(l,(function(){return Zt(e.value)}));var h=f;return"function"==typeof f?Ct(f,s):f=s,ft(s,"id",n),ft(s,"popover",a?"auto":void 0),At(s,$(et,{get each(){return e.option.values},children:function t(o){var a=function t(){return e.disabled.includes(o)},n,l,c,s,d;return n=_e(),c=(l=n.firstChild).nextSibling,n.$$click=function(t){a()&&t.preventDefault()},l.addEventListener("change",(function(){a()||(e.onChange(o),v())})),yt(l,"t-product__option-input t-product__option-input_select t-product__option-input_"+r),ft(l,"name",i),l.value=o,At(n,"image"===r?(d=pe(),C((function(t){var r,a,n="url('"+(null!=(r=e.option.imagesObj[o])?r:"")+"')",i=null!=(a=e.option.imagesObj[o])?a:"";return n!==t.e&&St(d,"background-image",t.e=n),i!==t.t&&ft(d,"data-original",t.t=i),t}),{e:void 0,t:void 0}),d):(yt(s=ge(),"t-product__option-checkmark t-product__option-checkmark_select t-product__option-checkmark_"+r),C((function(t){return St(s,"background-color",le(e.option.valuesObj,o))})),s),c),yt(c,"t-product__option-title t-product__option-title_select t-product__option-title_"+r+" t-descr t-descr_xxs"),At(c,(function(){return Zt(o)})),C((function(t){var i,c=((i={"t-product__option-item":!0,"t-product__option-item_select":!0})["t-product__option-item_"+r]=!0,i["t-product__option-item_active"]=o===e.value,i["t-product__option-item_disabled"]=a(),i),s=a();return t.e=bt(n,c,t.e),s!==t.t&&(l.disabled=t.t=s),t}),{e:void 0,t:void 0}),C((function(){return l.checked=o===e.value})),n}})),C((function(t){var e,n=(a?c():u())?"true":"false",i=((e={"t-product__option-variants":!0,"t-product__option-variants_custom":!0,"t-product__option-variants_select":!0})["t-product__option-variants_"+r]=!0,e["t-product__option-variants_hidden"]=!a&&!u(),e);return n!==t.e&&ft(o,"aria-expanded",t.e=n),t.t=bt(s,i,t.t),t}),{e:void 0,t:void 0}),t}()};gt(["click"]);var ye=pt("
"),he=pt("